:root {
    --bg: #f6faf9;
    --surface: #ffffff;
    --surface-low: #f1f4f3;
    --surface-high: #e6e9e8;
    --ink: #181c1c;
    --ink-soft: #3f484a;
    --muted: #6f797a;
    --line: #e2eae9;
    --line-strong: #bfc8ca;
    --primary: #075760;
    --primary-strong: #003e45;
    --secondary: #07858f;
    --mint: #1fc3ae;
    --gold: #c8932b;
    --green: #147d52;
    --red: #b42318;
    --amber: #9a6500;
    --shadow: 0 8px 30px rgba(0, 62, 69, 0.04);
    --font: 'Instrument Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    overflow-x: clip;
}

body {
    margin: 0;
    overflow-x: clip;
    color: var(--ink);
    background: var(--bg);
    font-family: 'Instrument Sans', Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }

.topbar {
    max-width: 100%;
    min-height: 68px;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #003e45 0%, #075760 100%);
    color: #fff;
    border-bottom: 3px solid var(--mint);
    position: sticky;
    top: 0;
    z-index: 20;
    overflow: visible;
    box-shadow: 0 4px 20px rgba(0, 62, 69, 0.12);
}

.brand {
    min-width: 0;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    white-space: nowrap;
    flex: 0 1 auto;
}

.brand img {
    width: 138px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border: 1px solid rgba(255, 255, 255, .8);
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.brand span { letter-spacing: 0.5px; }

.nav {
    min-width: 0;
    height: 68px;
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    overflow: visible;
    scrollbar-width: none;
}

.nav::-webkit-scrollbar {
    display: none;
}

.nav a {
    flex: 0 0 auto;
    height: 68px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border-bottom: 3px solid transparent;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.nav-dropdown {
    position: relative;
    height: 68px;
    flex: 0 0 auto;
}

.nav-dropdown-toggle {
    height: 68px;
    border: 0;
    border-bottom: 3px solid transparent;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
}

.nav-dropdown-toggle:hover,
.nav-dropdown-toggle.active,
.nav-dropdown:focus-within .nav-dropdown-toggle {
    color: #fff;
    border-bottom-color: var(--mint);
    background: rgba(255, 255, 255, .08);
}

.nav-dropdown-menu {
    position: absolute;
    top: 68px;
    right: 0;
    width: 210px;
    padding: 6px;
    display: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 62, 69, 0.16);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    display: grid;
    gap: 3px;
}

.nav .nav-dropdown-menu a {
    width: 100%;
    height: auto;
    min-height: 38px;
    padding: 9px 10px;
    border: 0;
    border-radius: 6px;
    color: var(--ink-soft);
}

.nav .nav-dropdown-menu a:hover,
.nav .nav-dropdown-menu a.active {
    color: var(--primary);
    background: #edf7f6;
}

.nav-icon {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    fill: currentColor;
    opacity: .9;
}

.nav a:hover,
.nav a.active {
    color: #fff;
    border-bottom-color: var(--mint);
    background: rgba(255, 255, 255, .08);
}

.user-chip {
    flex: 0 1 220px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, .15);
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding: 7px 11px;
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 700;
    transition: all 0.25s ease;
}

.logout-form {
    flex: 0 0 auto;
    margin: 0;
}

.shell {
    width: min(1440px, calc(100% - 48px));
    margin: 24px auto 56px;
    min-width: 0;
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    min-width: 0;
}

.page-head > * {
    min-width: 0;
}

.page-head h1,
.auth-panel h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--secondary);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.muted { color: var(--muted); }

.head-actions,
.action-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.panel,
.stat,
.search-panel,
.auth-panel,
.process-track {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.panel {
    padding: 20px;
    margin-bottom: 16px;
    min-width: 0;
    overflow-wrap: anywhere;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
    min-width: 0;
}

.panel-head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 800;
}

.stage-state {
    display: grid;
    justify-items: end;
    gap: 5px;
    text-align: right;
}

.stage-state small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
}

.btn {
    min-height: 36px;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 8px 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    background: transparent;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.btn.primary:hover {
    background: var(--primary-strong);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 62, 69, 0.15);
}

.btn.secondary,
.btn.ghost {
    border-color: var(--line-strong);
    background: #fff;
    color: var(--primary);
}

.btn.secondary:hover,
.btn.ghost:hover {
    background: #edf7f6;
    border-color: var(--secondary);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 62, 69, 0.08);
}

.btn.is-disabled,
.btn[aria-disabled="true"],
.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

.btn.danger {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.btn.danger:hover {
    background: #901a11;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(180, 35, 24, 0.15);
}

.btn.warning {
    background: var(--amber);
    border-color: var(--amber);
    color: #fff;
}

.btn.warning:hover {
    background: #734c00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(154, 101, 0, 0.15);
}

.btn.success {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.btn.success:hover {
    background: #0f5c3c;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(20, 125, 82, 0.15);
}

.btn.compact {
    min-height: 30px;
    padding: 6px 9px;
    color: var(--primary);
    background: #edf7f6;
    border-color: #cfe6e3;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat {
    min-height: 86px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 4px solid var(--secondary);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 62, 69, 0.08);
}

.stat span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.stat strong {
    margin-top: 4px;
    color: var(--primary);
    font-size: 32px;
    line-height: 1;
    font-weight: 800;
}

.search-panel {
    width: min(820px, 100%);
    margin: 0 auto 14px;
    padding: 10px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.dashboard-search {
    position: relative;
}

.dashboard-search::after {
    content: "Barkod";
    position: absolute;
    right: 82px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    pointer-events: none;
}

.dashboard-search input,
.search-panel input {
    min-height: 44px;
    font-size: 15px;
    font-weight: 700;
}

.stage-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.stage-button {
    min-height: 34px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 8px 11px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.stage-count {
    display: inline-block;
    min-width: 18px;
    margin-inline-start: 6px;
    padding: 0 5px;
    border-radius: 9px;
    background: var(--line);
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.stage-button.active .stage-count,
.stage-button:hover .stage-count {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

.stage-button.active,
.stage-button:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.form-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
}

.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .wide { grid-column: 1 / -1; }

.application-create-form {
    width: min(100%, 640px);
    margin: 0 auto;
    gap: 16px;
    padding: 22px;
}

.application-create-form label,
.application-create-form .form-field {
    gap: 7px;
}

.application-create-form input,
.application-create-form textarea,
.application-create-form .date-trigger {
    min-height: 46px;
    border-radius: 6px;
    font-size: 14px;
}

.application-create-form textarea {
    min-height: 104px;
}

.application-create-form input::placeholder,
.application-create-form textarea::placeholder {
    color: #9aa7a9;
    font-weight: 600;
}

.drivers-search {
    grid-template-columns: minmax(220px, 1fr) 120px auto;
}

.drivers-table td small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.driver-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.driver-actions form {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.driver-passive-menu {
    position: relative;
}

.driver-passive-menu summary {
    list-style: none;
}

.driver-passive-menu summary::-webkit-details-marker {
    display: none;
}

.driver-passive-menu[open] .driver-passive-form {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 20;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    box-shadow: var(--shadow);
}

.driver-passive-form input {
    width: 170px;
    min-height: 32px;
    border-radius: 4px;
    padding: 6px 8px;
    font-size: 12px;
}

.btn.compact.danger {
    border-color: #d14848;
    background: #fff5f5;
    color: #a91d1d;
}

.btn.danger {
    border-color: #d14848;
    background: #fff5f5;
    color: #a91d1d;
}

.table-icon-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn.icon-only {
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center;
}

.btn.icon-only svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

label,
.form-field {
    display: grid;
    gap: 6px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

input,
select,
textarea {
    min-width: 0;
    width: 100%;
    border: 1.5px solid var(--line-strong);
    border-radius: 8px;
    padding: 10px 12px;
    color: var(--ink);
    background: #fff;
    transition: all 0.25s ease;
}

.readonly-value {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 9px 10px;
    background: #f7faf9;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

textarea { resize: vertical; }

input[type="file"] {
    padding: 8px;
}

.file-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(150px, .45fr);
    gap: 12px;
    align-items: stretch;
}

.file-dropzone {
    min-height: 110px;
    border: 2px dashed var(--line-strong);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    background: #fbfdfd;
    color: var(--ink-soft);
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, background .16s ease;
    position: relative;
}

.file-upload.is-dragging .file-dropzone,
.file-dropzone:hover {
    border-color: var(--secondary);
    background: #eefafa;
}

.file-dropzone input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-dropzone__title {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.file-dropzone__hint {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.file-preview {
    min-height: 110px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #edf2f2;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    padding: 8px;
    text-align: center;
}

.file-preview.has-file {
    background: #e8f7ef;
    border-color: #bde5cf;
    color: var(--green);
}

.sms-variable-panel {
    display: grid;
    gap: 8px;
}

.sms-variable-panel > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
}

.sms-variable-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sms-variable-chip {
    border: 1px solid #cfe6e3;
    border-radius: 4px;
    padding: 6px 9px;
    background: #edf7f6;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    cursor: pointer;
}

.sms-variable-chip:hover {
    border-color: var(--secondary);
    background: #e2f4f2;
}

.sms-template-form {
    align-items: start;
}

.sms-template-form textarea {
    min-height: 138px;
}

.sms-template-list-panel {
    padding-bottom: 16px;
}

.sms-template-list {
    display: grid;
    gap: 8px;
}

.sms-template-list-item > span:first-child {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.sms-template-list-item strong,
.sms-template-list-item small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sms-template-list-item strong {
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.sms-template-list-item small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.sms-create-panel[hidden] {
    display: none;
}

.netgsm-settings-form {
    align-items: start;
}

.settings-note {
    min-height: 70px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    align-content: center;
    gap: 4px;
    background: #f8fbfa;
}

.settings-note strong {
    color: var(--ink);
    font-size: 12px;
    font-weight: 900;
}

.settings-note span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.sms-test-preview .sms-test-preview__body {
    white-space: pre-wrap;
    word-break: break-word;
    line-height: 1.5;
    color: var(--ink);
}

.sms-test-preview small {
    color: var(--muted);
    font-weight: 700;
}

.application-import-modal {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.application-import-modal.is-open {
    display: flex;
}

.application-import-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 36, .46);
}

.application-import-modal__dialog {
    position: relative;
    width: min(620px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 62, 69, .26);
}

.application-import-modal__head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.application-import-modal__head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.application-import-form {
    padding: 18px;
}

.application-import-note {
    border: 1px solid #d4e6e4;
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 10px 12px;
    background: #fbfdfd;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.sms-modal .application-import-modal__dialog {
    width: min(760px, 100%);
}

.sms-modal__body {
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sms-modal__cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

@media (max-width: 600px) {
    .sms-modal__cols { grid-template-columns: 1fr; }
}

.sms-modal__label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 5px;
}

.sms-modal__textarea {
    width: 100%;
    min-height: 130px;
    padding: 10px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    resize: vertical;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ink);
    background: #fff;
}

.sms-modal__select {
    width: 100%;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
    color: var(--ink);
}

.sms-modal__vars {
    font-size: 11px;
    color: var(--ink-soft);
    margin-top: 6px;
}

.sms-modal__preview {
    background: var(--surface-low);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 14px;
    min-height: 130px;
}

.sms-modal__preview-label {
    font-size: 11px;
    font-weight: 800;
    color: var(--ink-soft);
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 8px;
}

.sms-modal__preview-text {
    font-size: 13px;
    line-height: 1.55;
    color: var(--ink);
    white-space: pre-wrap;
    word-break: break-word;
}

.sms-modal__throttle {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-low);
    cursor: pointer;
    transition: border-color .15s;
}

.sms-modal__throttle:has(input:checked) {
    border-color: var(--secondary);
    background: color-mix(in srgb, var(--secondary) 6%, #fff);
}

.sms-modal__throttle input[type="checkbox"] {
    margin-top: 3px;
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    accent-color: var(--secondary);
    cursor: pointer;
}

.sms-modal__throttle-title {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 2px;
}

.sms-modal__throttle-desc {
    font-size: 12px;
    color: var(--ink-soft);
    line-height: 1.4;
}

.sms-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 22px 18px;
    border-top: 1px solid var(--line);
}

.field-hint {
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(7, 133, 143, 0.1);
}

.check-line {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 9px 10px;
    background: #fbfdfd;
}

.check-line input {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    accent-color: var(--green);
}

.check-line span {
    min-width: 0;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 850;
}

.check-line:has(input:checked) {
    border-color: #a8ddb9;
    background: #e8f7ef;
    color: var(--green);
}

.check-line:has(input:checked) span {
    color: var(--green);
}

.check-line.is-disabled {
    opacity: .55;
    background: #f1f4f3;
    cursor: not-allowed;
}

.check-line.is-disabled input {
    cursor: not-allowed;
}

.document-stage-form {
    align-items: start;
    margin-top: 14px;
}

.document-checklist {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
}

.criminal-record-card {
    border: 1px solid #cfe6e3;
    border-left: 4px solid var(--primary);
    border-radius: 6px;
    padding: 12px;
    background: #f8fbfb;
}

.criminal-record-card.is-blocked {
    border-color: #ffd1d1;
    border-left-color: var(--red);
    background: #fff6f6;
}

.criminal-record-card.is-blocked .criminal-record-card__head strong,
.criminal-record-card.is-blocked .criminal-record-card__head span {
    color: var(--red);
}

.criminal-record-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.criminal-record-card__head div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.criminal-record-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.criminal-record-card__head strong {
    color: var(--ink);
    font-size: 15px;
    font-weight: 900;
}

.criminal-record-card__head span,
.criminal-record-meta span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.criminal-record-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, .55fr) auto auto;
    gap: 12px;
    align-items: end;
}

.criminal-record-submit {
    display: flex;
    align-items: end;
}

.criminal-record-meta {
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 7px 10px;
    display: grid;
    gap: 1px;
    background: #fff;
}

.criminal-record-meta strong {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
    white-space: nowrap;
}

.criminal-record-summary {
    margin: 12px 0 0;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 9px 10px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 750;
}

.criminal-record-rules {
    margin-top: 12px;
    border-top-color: #cfe6e3;
}

/* 765 s. mülga TCK karşılığından gelen eşleşmenin rozet üzerindeki işareti */
.rule-legacy-flag {
    margin-left: 3px;
    font-size: 9px;
    font-weight: 900;
    opacity: .85;
}

/* Yapay zekâ belge çözümlemesi (aktif/arşiv kayıt, kayıt tablosu, belirsizlikler) */
.criminal-record-analysis {
    margin-top: 12px;
    border-top-color: #cfe6e3;
}

.criminal-record-meta-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.criminal-record-table-wrap {
    margin-top: 12px;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}

.criminal-record-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.criminal-record-table th,
.criminal-record-table td {
    padding: 7px 10px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    white-space: nowrap;
}

.criminal-record-table th {
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .4px;
}

.criminal-record-table td {
    color: var(--ink-soft);
    font-weight: 700;
}

.criminal-record-table tbody tr:last-child td {
    border-bottom: 0;
}

.criminal-record-uncertainties {
    margin-top: 12px;
    border: 1px solid #f0d9a8;
    border-radius: 4px;
    padding: 9px 10px;
    background: #fffaf0;
}

.criminal-record-uncertainties strong {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 900;
    color: #8a6316;
}

.criminal-record-uncertainties ul {
    margin: 0;
    padding-left: 18px;
}

.criminal-record-uncertainties li {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 700;
}

/* PDF Drag and Drop Upload CSS */
.criminal-record-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 12px;
    margin-top: 12px;
}

.criminal-record-option-box {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fff;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.criminal-record-option-box .option-title {
    font-size: 11px;
    font-weight: 900;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--line);
    padding-bottom: 6px;
    margin-bottom: 4px;
}

.pdf-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: stretch;
}

.pdf-dropzone {
    min-height: 132px;
    border: 2px dashed var(--line-strong);
    border-radius: 8px;
    padding: 12px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 4px;
    background: #fbfdfd;
    color: var(--ink-soft);
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, background .16s ease;
    position: relative;
}

.pdf-upload.is-dragging .pdf-dropzone,
.pdf-dropzone:hover {
    border-color: var(--secondary);
    background: #eefafa;
}

.pdf-dropzone input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.pdf-dropzone__title {
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.pdf-dropzone__hint {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.pdf-preview {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #edf2f2;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    padding: 8px;
    text-align: center;
}

.pdf-preview.has-file {
    background: #e8f7ef;
    border-color: #bde5cf;
    color: var(--green);
}

.pdf-file-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    position: relative;
}

.pdf-icon {
    color: var(--green);
    margin-bottom: 2px;
}

.pdf-filename {
    font-size: 11px;
    font-weight: 800;
    word-break: break-all;
    max-height: 32px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.pdf-filesize {
    font-size: 10px;
    color: var(--muted);
    font-weight: 700;
}

.pdf-clear-btn {
    position: absolute;
    top: -6px;
    right: -4px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: background 0.15s;
}

.pdf-clear-btn:hover {
    background: #901a11;
}

.criminal-record-common-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: end;
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.psychotechnic-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    align-items: end;
}

.psychotechnic-row .check-line {
    min-height: 56px;
}

.psychotechnic-row.is-active [data-psychotechnic-date-field] {
    color: var(--green);
}

.psychotechnic-expiration-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    align-items: end;
    margin-top: 14px;
}

[data-psychotechnic-date-field].is-disabled {
    opacity: .62;
}

.date-trigger:disabled {
    cursor: not-allowed;
    background: #f1f4f3;
    color: var(--muted);
}

.license-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.identity-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.form-section-title {
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.identity-fields.is-disabled,
.license-fields.is-disabled,
.photo-stage.is-disabled,
.commercial-vehicle-fields.is-disabled {
    opacity: .62;
}

.identity-fields.is-disabled input,
.identity-fields.is-disabled select,
.identity-fields.is-disabled textarea,
.license-fields.is-disabled input,
.license-fields.is-disabled select,
.license-fields.is-disabled textarea,
.photo-stage.is-disabled input,
.photo-stage.is-disabled .photo-dropzone,
.commercial-vehicle-fields.is-disabled input {
    background: #f1f4f3;
    cursor: not-allowed;
}

.commercial-vehicle-fields.is-disabled .radio-card {
    pointer-events: none;
    cursor: not-allowed;
}

.photo-stage.is-disabled .photo-dropzone {
    border-color: var(--line);
    color: var(--muted);
}

.photo-stage.is-disabled .photo-dropzone__title,
.photo-stage.is-disabled .photo-dropzone__hint {
    color: var(--muted);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
}

.document-stage-form.is-autosaving {
    opacity: .86;
}

.stage-print-actions {
    margin-top: 14px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.commercial-vehicle-fields {
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.radio-card-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.commercial-vehicle-fields .radio-card-group + label {
    margin-top: 10px;
}

.radio-card {
    min-height: 74px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    color: var(--ink);
    font-weight: 850;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.radio-card:hover {
    border-color: var(--secondary);
    background: #f4faf9;
}

.radio-card:has(input[type="radio"]:checked) {
    border-color: var(--primary);
    background: #eefafa;
    box-shadow: 0 4px 12px rgba(0, 62, 69, 0.05);
}

.radio-card input[type="radio"] {
    width: 17px;
    height: 17px;
    accent-color: var(--primary);
    margin: 0;
}

.vehicle-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 6px;
    background: #edf2f1;
    color: var(--primary);
    transition: all 0.16s ease;
}

.radio-card:hover .vehicle-icon-wrapper {
    background: #e1f0ee;
    color: var(--secondary);
}

.radio-card:has(input[type="radio"]:checked) .vehicle-icon-wrapper {
    background: var(--primary);
    color: #fff;
}

.vehicle-icon {
    width: 26px;
    height: 26px;
}

.photo-upload {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 12px;
    align-items: stretch;
}

.photo-stage {
    display: grid;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding-top: 12px;
}

.photo-dropzone {
    min-height: 132px;
    border: 2px dashed var(--line-strong);
    border-radius: 8px;
    padding: 18px;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 6px;
    background: #fbfdfd;
    color: var(--ink-soft);
    cursor: pointer;
    text-align: center;
    transition: border-color .16s ease, background .16s ease;
}

.photo-upload.is-dragging .photo-dropzone,
.photo-dropzone:hover {
    border-color: var(--secondary);
    background: #eefafa;
}

.photo-dropzone input {
    position: absolute;
    inline-size: 1px;
    block-size: 1px;
    opacity: 0;
    pointer-events: none;
}

.photo-dropzone__title {
    color: var(--primary);
    font-size: 14px;
    font-weight: 900;
}

.photo-dropzone__hint {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.photo-preview {
    min-height: 132px;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    place-items: center;
    overflow: hidden;
    background: #edf2f2;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
}

.photo-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-cropper {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(220px, 420px) minmax(180px, 1fr);
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f7fbfb;
}

.photo-cropper[hidden] {
    display: none;
}

.photo-cropper__title {
    grid-column: 1 / -1;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.photo-cropper__stage {
    position: relative;
    width: min(100%, 420px);
    aspect-ratio: 21 / 26.5;
    overflow: hidden;
    border-radius: 8px;
    background: #dfe8e7;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.photo-cropper__stage.is-dragging {
    cursor: grabbing;
}

.photo-cropper__stage canvas {
    width: 100%;
    height: 100%;
    display: block;
}

.photo-cropper__guide {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, .95);
    background:
        linear-gradient(to right, transparent 33.333%, rgba(255, 255, 255, .72) 33.333%, rgba(255, 255, 255, .72) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent 66.666%, rgba(255, 255, 255, .72) 66.666%, rgba(255, 255, 255, .72) calc(66.666% + 1px), transparent calc(66.666% + 1px)),
        linear-gradient(to bottom, transparent 33.333%, rgba(255, 255, 255, .72) 33.333%, rgba(255, 255, 255, .72) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent 66.666%, rgba(255, 255, 255, .72) 66.666%, rgba(255, 255, 255, .72) calc(66.666% + 1px), transparent calc(66.666% + 1px));
    box-shadow: inset 0 0 0 1px rgba(12, 106, 115, .72);
    pointer-events: none;
}

.photo-cropper__controls {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 10px;
    align-items: center;
}

.photo-cropper__controls input[type="range"] {
    width: 100%;
    accent-color: var(--secondary);
}

.photo-cropper__zoom-button {
    width: 34px;
    height: 34px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--primary);
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
}

.photo-cropper__zoom-button:hover {
    border-color: var(--secondary);
    background: #eefafa;
}

.generated-password-panel {
    border-left: 4px solid var(--green);
}

.credential-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px;
}

.credential-grid input[readonly] {
    background: #f7faf9;
    font-weight: 850;
}

.user-create-modal {
    position: fixed;
    inset: 0;
    z-index: 105;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.user-create-modal.is-open {
    display: flex;
}

.user-create-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 36, .46);
}

.user-create-modal__dialog {
    position: relative;
    width: min(520px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 22px 60px rgba(0, 62, 69, .26);
}

.user-create-modal__head {
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.user-create-modal__head h2 {
    margin: 0;
    font-size: 20px;
    line-height: 1.2;
    font-weight: 900;
}

.user-create-form {
    padding: 18px;
    display: grid;
    gap: 13px;
}

.user-create-form input,
.user-create-form select {
    min-height: 44px;
}

.user-create-modal__note {
    border: 1px solid #d4e6e4;
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 10px 12px;
    background: #fbfdfd;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.user-create-modal__actions {
    margin-top: 2px;
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;
}

.tckn-check {
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px 12px;
    display: grid;
    gap: 7px;
    align-items: start;
    background: #f8fbfb;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 750;
}

.tckn-check .btn {
    justify-self: start;
}

.tckn-check.is-loading,
.tckn-check.is-idle {
    border-color: #d9e2e2;
}

.tckn-check.is-clear {
    border-color: #bde5cf;
    background: #e8f7ef;
    color: var(--green);
}

.tckn-check.is-duplicate {
    border-color: #f2c3bd;
    background: #fde9e7;
    color: var(--red);
}

.tckn-check.is-error {
    border-color: #ead49b;
    background: #fff8e7;
    color: #8a6500;
}

.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 6px;
}

.datatable-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    margin-bottom: 12px;
}

.datatable-toolbar--split {
    justify-content: space-between;
}

.bulk-action-form {
    display: flex;
    align-items: center;
    gap: 8px;
}

.driver-bulk-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.bulk-action-form--reason input {
    width: 180px;
    min-height: 36px;
    border-radius: 4px;
    padding: 7px 9px;
    font-size: 12px;
    font-weight: 700;
}

.select-col {
    width: 42px;
    text-align: center;
}

.select-col input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--primary);
    cursor: pointer;
}

.datatable-search {
    width: min(720px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.datatable-search input {
    min-height: 42px;
    font-size: 14px;
    font-weight: 750;
}

.datatable-tools {
    display: flex;
    align-items: end;
    gap: 8px;
}

.datatable-tools label {
    min-width: 92px;
}

.datatable-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 12px;
}

.datatable-info,
.datatable-pagination span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.datatable-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.live-table.is-loading {
    cursor: progress;
}

.live-table.is-loading .table-wrap {
    opacity: .58;
}

.live-table .empty {
    height: 74px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th,
td {
    height: 38px;
    padding: 8px 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
}

th {
    background: #edf5f4;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

td {
    color: var(--ink);
    font-size: 13px;
    font-weight: 550;
}

tbody tr:nth-child(even) td { background: #fbfdfd; }
tbody tr:hover td { background: #f1f8f7; }

.empty {
    padding: 26px;
    text-align: center;
    color: var(--muted);
}

.badge,
.rule {
    display: inline-flex;
    align-items: center;
    border: 0;
    border-radius: 4px;
    padding: 4px 8px;
    background: #edf2f2;
    color: var(--ink-soft);
    font-size: 11px;
    font-weight: 900;
    line-height: 1.2;
}

button.rule {
    cursor: pointer;
    font-family: inherit;
}

button.rule:hover {
    filter: brightness(.97);
    text-decoration: underline;
}

.badge.ok,
.rule.ok,
.verify-card.ok .verify-status {
    background: #dff3e8;
    color: var(--green);
}

tr.row-status-ok td {
    background-color: #dcfce7 !important;
}

tr.row-status-ok:hover td {
    background-color: #bbf7d0 !important;
}

.badge.bad,
.rule.bad,
.verify-card.bad .verify-status {
    background: #fde9e7;
    color: var(--red);
}

.badge.warning,
.rule.warning {
    background: #fff0c2;
    color: #8a6100;
}

.alert {
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 14px;
    border: 1px solid transparent;
    font-weight: 800;
}

.alert.success {
    border-color: #bde5cf;
    background: #e8f7ef;
    color: var(--green);
}

.alert.danger {
    border-color: #f2c3bd;
    background: #fde9e7;
    color: var(--red);
}

.auth-panel {
    min-height: 500px;
    padding: 36px;
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 28px;
    align-items: center;
    border-top: 4px solid var(--primary);
}

.auth-login {
    min-height: min(620px, calc(100vh - 150px));
    padding: 0;
    grid-template-columns: minmax(0, 1fr) minmax(340px, 430px);
    gap: 0;
    align-items: stretch;
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(7, 87, 96, .05) 0, rgba(7, 87, 96, 0) 34%),
        var(--surface);
}

.auth-intro,
.auth-form {
    min-width: 0;
}

.auth-intro {
    padding: clamp(28px, 5vw, 56px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-right: 1px solid var(--line);
}

.auth-brand-mark {
    width: min(280px, 100%);
    min-height: 76px;
    margin-bottom: 28px;
    display: flex;
    align-items: center;
}

.auth-brand-mark img {
    width: 100%;
    max-height: 76px;
    object-fit: contain;
    object-position: left center;
}

.auth-copy {
    width: min(560px, 100%);
    margin: 14px 0 0;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.65;
    font-weight: 650;
}

.auth-points {
    width: min(620px, 100%);
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.auth-points span {
    min-height: 54px;
    border: 1px solid #d4e6e4;
    border-left: 3px solid var(--gold);
    border-radius: 6px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    background: #f8fbfb;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
}

.auth-form {
    padding: clamp(24px, 4vw, 42px);
    align-content: center;
    background: #fbfdfd;
}

.auth-form-head {
    display: grid;
    gap: 4px;
    margin-bottom: 4px;
}

.auth-form-head span {
    color: var(--secondary);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-form-head strong {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.2;
    font-weight: 900;
}

.auth-form input[type="email"],
.auth-form input[type="password"] {
    min-height: 46px;
    background: #fff;
    font-size: 15px;
    font-weight: 750;
}

.recaptcha-field {
    min-width: 0;
    overflow-x: auto;
}

.auth-submit {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding-inline: 16px;
    font-size: 14px;
}

.process-track {
    margin-bottom: 16px;
    padding: 14px 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    min-width: 0;
    overflow: hidden;
}

.application-summary {
    margin-bottom: 16px;
    padding: 18px;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.applicant-mark {
    width: 58px;
    height: 58px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: #e5f4f2;
    color: var(--primary);
    font-size: 28px;
    font-weight: 900;
}

.summary-main h2 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.summary-facts {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.summary-fact-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-width: 0;
}

.summary-fact-row span {
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 5px 8px;
    background: #fbfdfd;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
}

.summary-status {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.summary-status small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.process-step {
    position: relative;
    min-height: 62px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    grid-template-rows: 22px 20px 18px;
    column-gap: 10px;
    align-items: start;
    color: var(--muted);
    min-width: 0;
}

.process-step::after {
    content: "";
    position: absolute;
    left: 18px;
    right: 0;
    top: 9px;
    height: 2px;
    background: var(--line);
    z-index: 0;
}

.process-step:last-child::after { display: none; }

.process-step span {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    grid-column: 1;
    grid-row: 1;
    z-index: 1;
}

.process-step strong,
.process-step small {
    grid-column: 2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    position: relative;
    z-index: 1;
}

.process-step strong {
    grid-row: 2;
    color: var(--ink);
    font-size: 13px;
    font-weight: 900;
}

.process-step small {
    grid-row: 3;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
}

.process-step.done span {
    border-color: var(--green);
    background: var(--green);
}

.process-step.done span::before {
    content: "✓";
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 1000;
    line-height: 1;
}

.process-step.done::after { background: #bde5cf; }
.process-step.active span { border-color: var(--gold); }
.process-step.blocked span { border-color: var(--red); background: var(--red); }
.process-step.locked span { border-color: var(--line-strong); background: var(--surface-high); }
.process-step.locked strong,
.process-step.locked small { color: var(--muted); }

.detail-grid {
    display: block;
    min-width: 0;
}

.detail-grid--with-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 16px;
    align-items: start;
}

.detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    min-width: 0;
}

.detail-aside {
    position: sticky;
    top: 84px;
    margin-top: 0;
    display: grid;
    gap: 14px;
    min-width: 0;
}

.flow-panel {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 14px;
    background: #fff;
    box-shadow: var(--shadow);
    min-width: 0;
}

.flow-panel__head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
    min-width: 0;
}

.flow-panel__head h2 {
    margin: 0;
    color: var(--primary);
    font-size: 17px;
    line-height: 1.2;
}

.flow-alert {
    margin-bottom: 12px;
    border: 1px solid #ffd1d1;
    border-left: 4px solid var(--red);
    border-radius: 6px;
    padding: 10px 11px;
    background: #fff6f6;
    color: var(--red);
}

.flow-alert strong,
.flow-alert span {
    display: block;
}

.flow-alert strong {
    margin-bottom: 3px;
    font-size: 13px;
    font-weight: 950;
}

.flow-alert span {
    font-size: 12px;
    line-height: 1.35;
    font-weight: 760;
}

.flow-list {
    display: grid;
    gap: 8px;
}

.flow-step {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    gap: 9px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 10px;
    background: #fbfdfd;
    color: var(--ink);
    text-decoration: none;
    min-width: 0;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.flow-step:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 16px rgba(0, 62, 69, .08);
    transform: translateY(-1px);
}

.flow-anchor-target,
#emniyet-yazisi,
#adli-sicil-kaydi,
#dilekce-kaydi {
    scroll-margin-top: 92px;
}

.flow-step__mark {
    width: 24px;
    height: 24px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
    color: #fff;
    font-size: 15px;
    font-weight: 1000;
}

.flow-step__body {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.flow-step__stage {
    color: var(--primary);
    font-size: 10px;
    font-weight: 950;
    text-transform: uppercase;
}

.flow-step__body strong,
.flow-step__body small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-step__body strong {
    font-size: 13px;
    font-weight: 900;
}

.flow-step__body small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 760;
}

.flow-step em {
    border-radius: 999px;
    padding: 4px 7px;
    background: #eef3f2;
    color: var(--muted);
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    white-space: nowrap;
}

.flow-step--done {
    border-color: #cfead9;
    background: #f5fcf7;
}

.flow-step--done .flow-step__mark {
    border-color: var(--green);
    background: var(--green);
}

.flow-step--done .flow-step__mark::before {
    content: "✓";
}

.flow-step--done em {
    background: #dff3e7;
    color: var(--green);
}

.flow-step--active {
    border-color: #f3d487;
    background: #fffaf0;
}

.flow-step--active .flow-step__mark {
    border-color: var(--gold);
}

.flow-step--active .flow-step__mark::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
}

.flow-step--active em {
    background: #fff0c2;
    color: #8a6100;
}

.flow-step--bad {
    border-color: #ffd1d1;
    background: #fff6f6;
}

.flow-step--bad .flow-step__mark {
    border-color: var(--red);
    background: var(--red);
}

.flow-step--bad .flow-step__mark::before {
    content: "!";
}

.flow-step--bad em {
    background: #ffe1e1;
    color: var(--red);
}

.flow-step--locked {
    opacity: .78;
}

.flow-step--locked .flow-step__mark::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--line-strong);
}

.flow-meta {
    margin-top: 12px;
    border-top: 1px solid var(--line);
    padding-top: 10px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.flow-meta strong {
    color: var(--ink);
    text-align: right;
}

.flow-panel--actions {
    display: grid;
    gap: 10px;
}

.flow-panel--actions .flow-panel__head,
.flow-panel--actions .flow-meta {
    margin: 0;
}

.flow-panel--actions form,
.flow-panel--actions .btn {
    width: 100%;
}

.flow-panel--actions .btn {
    justify-content: center;
}

.stage-panel {
    position: relative;
    overflow: hidden;
}

.stage-panel.stage-done {
    padding-left: 70px;
}

.stage-panel.stage-done::before {
    content: "✓";
    position: absolute;
    left: 18px;
    top: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    font-size: 26px;
    font-weight: 1000;
    box-shadow: 0 8px 18px rgba(20, 125, 82, .18);
}

.stage-done {
    border-left: 4px solid var(--green);
    background: #f6fcf8;
}

.stage-done .panel-head {
    border-bottom: 1px solid #cfead9;
    padding-bottom: 12px;
}

.stage-active {
    border-left: 4px solid var(--gold);
}

.stage-blocked {
    border-left: 4px solid var(--red);
    background: #fffafa;
}

.stage-locked {
    border-left: 4px solid var(--line-strong);
    background: #fbfbfb;
}

.petition-panel {
    border-left: 4px solid var(--green);
}

.petition-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

.petition-grid--application {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.petition-field {
    min-height: 74px;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 12px;
    background: #fbfdfd;
    min-width: 0;
}

.petition-field.wide {
    grid-column: 1 / -1;
}

.petition-field span {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.petition-field strong {
    display: block;
    color: var(--ink);
    font-size: 14px;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.segmented {
    display: flex;
    gap: 8px;
    min-width: 0;
}

.segmented label {
    flex: 1;
    min-height: 42px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 9px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fbfdfd;
    min-width: 0;
}

.locked-state {
    border: 1px dashed var(--line-strong);
    border-radius: 6px;
    padding: 14px;
    background: #f7faf9;
    color: var(--ink-soft);
}

.locked-state strong {
    display: block;
    margin-bottom: 4px;
    color: var(--ink);
    font-weight: 900;
}

.locked-state p {
    margin: 0;
    color: var(--muted);
    font-weight: 750;
}

.locked-state__actions {
    margin-top: 10px;
}

.stage-block-message {
    margin-top: 16px;
    border: 1px solid #ffd1d1;
    border-left: 4px solid var(--red);
    padding: 18px 20px;
    background: #fff6f6;
    color: var(--red);
}

.stage-block-message strong,
.stage-block-message p {
    color: var(--red);
}

.criminal-record-gate-warning {
    margin-top: 12px;
    border-color: #ffd1d1;
    border-left: 4px solid var(--red);
    background: #fff6f6;
}

.criminal-record-gate-warning strong,
.criminal-record-gate-warning p {
    color: var(--red);
}

.police-locked {
    margin-bottom: 14px;
}

.police-result-grid {
    margin-top: 10px;
}

.police-edit-actions {
    margin-top: 14px;
}

.segmented input {
    width: 17px;
    height: 17px;
}

.rule-box {
    margin-top: 16px;
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

.rule-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.swal2-popup.criminal-rule-toast {
    width: min(560px, calc(100vw - 24px)) !important;
    border: 1px solid #ffd1d1 !important;
    border-left: 4px solid var(--red) !important;
    border-radius: 8px !important;
    background: #fff6f6 !important;
    box-shadow: 0 14px 34px rgba(180, 35, 24, .14) !important;
}

.swal2-popup.criminal-rule-toast .swal2-icon.swal2-warning {
    border-color: var(--red) !important;
    color: var(--red) !important;
}

.swal2-popup.criminal-rule-toast .swal2-title {
    color: var(--red) !important;
    font-size: 16px !important;
    font-weight: 900 !important;
}

.swal2-popup.criminal-rule-toast .swal2-html-container,
.swal2-popup.criminal-rule-toast .swal2-title + div {
    color: var(--ink-soft) !important;
    font-size: 13px !important;
    font-weight: 750 !important;
}

.criminal-rule-popover {
    position: fixed;
    z-index: 200;
    width: min(360px, calc(100vw - 24px));
    border: 1px solid #ffd1d1;
    border-left: 4px solid var(--red);
    border-radius: 8px;
    padding: 12px;
    display: none;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
    background: #fff6f6;
    box-shadow: 0 14px 34px rgba(180, 35, 24, .14);
}

.criminal-rule-popover.is-open {
    display: grid;
}

.criminal-rule-popover__icon {
    width: 30px;
    height: 30px;
    border: 2px solid var(--red);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--red);
    font-size: 18px;
    font-weight: 1000;
}

.criminal-rule-popover__body {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.criminal-rule-popover__body strong {
    color: var(--red);
    font-size: 14px;
    line-height: 1.25;
    font-weight: 950;
}

.criminal-rule-popover__body span {
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.4;
    font-weight: 750;
}

.criminal-rule-popover__body .btn {
    justify-self: start;
}

.card-preview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 128px;
    gap: 16px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 16px;
    margin: 14px 0;
    background: #fbfdfd;
}

.card-preview h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.card-preview p { margin: 3px 0; }

.card-preview img {
    width: 120px;
    height: 120px;
}

.card-print-workspace {
    display: grid;
    justify-content: center;
    gap: 24px;
    padding: 12px 0 32px;
}

@media screen and (min-width: 900px) {
    .card-print-workspace {
        gap: 96px;
        padding-top: 32px;
    }

    .driver-id-card {
        transform: scale(1.55);
        transform-origin: top center;
        margin-bottom: 46px;
    }
}

.driver-id-card {
    width: 85.60mm;
    height: 54.00mm;
    position: relative;
    overflow: hidden;
    border-radius: 3.2mm;
    background: #fbfdfd;
    color: #1a1c1c;
    box-shadow: 0 14px 30px rgba(0, 62, 69, .22);
    font-family: Inter, "Segoe UI", Arial, Helvetica, sans-serif;
    isolation: isolate;
}

.driver-id-card,
.driver-id-card *,
.driver-id-card::before,
.card-pattern::after,
.front-band::after {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
    color-adjust: exact;
}

.driver-id-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 69% 30%, rgba(0, 76, 76, .08), transparent 22mm),
        linear-gradient(135deg, rgba(0, 102, 102, .055), transparent 46%),
        repeating-linear-gradient(45deg, rgba(0, 76, 76, .04) 0 .35mm, transparent .35mm 1.8mm);
    z-index: -2;
}

.card-pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.card-pattern::after {
    content: "";
    position: absolute;
    width: 38mm;
    height: 38mm;
    right: 15mm;
    top: 12mm;
    border: 1.3mm solid rgba(0, 76, 76, .055);
    border-radius: 50%;
}

.card-top {
    height: 12.2mm;
    display: grid;
    grid-template-columns: 12.2mm 1fr 20.5mm;
    align-items: center;
    gap: 2mm;
    padding: 1.8mm 4mm 1.2mm;
    background: linear-gradient(90deg, #004c4c, #006666);
}

.card-emblem {
    width: 11.2mm;
    height: 8.8mm;
    overflow: hidden;
    border-radius: .8mm;
    background: rgba(255, 255, 255, .95);
}

.card-emblem img {
    width: 30.5mm;
    max-width: none;
    height: auto;
    display: block;
}

.card-organization {
    color: #fff;
    font-size: 2.45mm;
    line-height: 1.18;
    font-weight: 800;
    letter-spacing: 0;
}

.card-organization::after {
    content: "";
    display: block;
    height: .22mm;
    margin-top: .65mm;
    background: rgba(255, 255, 255, .72);
}

.ahilik-box {
    height: 8.5mm;
    border: .25mm solid rgba(255, 255, 255, .72);
    border-left: 4.1mm solid #e7f5f4;
    display: grid;
    align-content: center;
    padding-left: 1.4mm;
    background: rgba(255, 255, 255, .95);
}

.ahilik-box strong {
    color: #004c4c;
    font-family: "Brush Script MT", "Segoe Script", cursive;
    font-size: 3.45mm;
    line-height: .8;
}

.ahilik-box span {
    color: #006666;
    font-size: 1.32mm;
    font-weight: 700;
}

.front-band {
    height: 6mm;
    margin-left: 30mm;
    padding: .25mm 2.5mm 0;
    color: #fff;
    background: linear-gradient(90deg, #004c4c 0%, #006666 82%, #0c8f8f 100%);
    font-size: 4.05mm;
    line-height: 5.75mm;
    font-weight: 850;
    letter-spacing: 0;
}

.front-band::after {
    content: "";
    position: absolute;
    right: 0;
    top: 12.2mm;
    width: 16mm;
    height: 6mm;
    background: linear-gradient(120deg, rgba(255, 255, 255, .32), rgba(255, 255, 255, .04));
}

.front-body {
    display: grid;
    grid-template-columns: 28mm 1fr;
    gap: 2.8mm;
    padding: 1.5mm 4.2mm 0;
    margin-top: 0;
}

.card-photo {
    width: 22mm;
    height: 28mm;
    border: .25mm solid #bec9c8;
    border-radius: .9mm;
    padding: .45mm;
    background: #fff;
    display: grid;
    place-items: center;
    color: #8a9698;
    font-size: 2.4mm;
    font-weight: 700;
}

.card-photo img {
    width: 100%;
    height: 100%;
    border-radius: .6mm;
    object-fit: cover;
    object-position: center top;
}

.front-fields {
    display: grid;
    gap: .75mm;
    padding-top: .8mm;
}

.card-row,
.back-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 3.6mm minmax(0, 1fr) 18.4mm;
    align-items: center;
    gap: .8mm;
    border-bottom: .18mm solid rgba(0, 76, 76, .32);
    min-height: 3.75mm;
}

.card-front .card-row {
    min-height: 3.25mm;
}

.card-front .card-icon {
    width: 2.75mm;
    height: 2.75mm;
    font-size: 1.1mm;
}

.card-front .card-row label {
    font-size: 1.38mm;
}

.card-front .card-row strong {
    font-size: 1.75mm;
}

.card-icon {
    width: 3mm;
    height: 3mm;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #006666;
    color: #fff;
    font-size: 1.2mm;
    font-weight: 800;
}

.card-row label,
.back-row label {
    color: #004c4c;
    font-size: 1.45mm;
    font-weight: 800;
    line-height: 1.05;
}

.card-row strong,
.back-row strong {
    min-width: 0;
    color: #1a1c1c;
    font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
    font-size: 1.9mm;
    line-height: 1.05;
    font-weight: 700;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.front-footer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 7mm;
    display: grid;
    grid-template-columns: 1fr 21mm;
    align-items: end;
    padding: 0 3.8mm 1mm 4.6mm;
    color: #fff;
    background:
        linear-gradient(63deg, transparent 0 58%, rgba(147, 225, 224, .8) 59% 67%, transparent 68%),
        linear-gradient(90deg, #004c4c, #006666);
}

.safe-drive {
    display: flex;
    align-items: center;
    gap: 1.25mm;
    font-size: 1.48mm;
    font-weight: 800;
}

.safe-drive span {
    width: 3.15mm;
    height: 3.15mm;
    border-radius: 999px;
    background: #fff;
}

.small-qr {
    display: grid;
    grid-template-columns: 1fr 7.4mm;
    gap: .75mm;
    align-items: center;
    color: #1a1c1c;
    font-size: 1.2mm;
    line-height: 1.05;
    font-weight: 900;
}

.small-qr img {
    width: 7.4mm;
    height: 7.4mm;
    padding: .55mm;
    background: #fff;
}

.back-content {
    display: grid;
    grid-template-columns: 1fr 22mm;
    gap: 2.6mm;
    padding: 1.5mm 4.2mm 0;
}

.back-fields {
    display: grid;
    gap: .6mm;
}

.back-row {
    grid-template-columns: 3.6mm minmax(0, 1fr) 16mm;
    min-height: 3.25mm;
    gap: .8mm;
}

.back-row .card-icon {
    width: 2.75mm;
    height: 2.75mm;
    font-size: 1.1mm;
}

.back-row label {
    font-size: 1.35mm;
}

.back-row strong {
    font-size: 1.72mm;
}

.back-qr-box {
    border-radius: 1.2mm;
    padding: 1.2mm 1.1mm;
    background: linear-gradient(180deg, #004c4c, #003737);
    color: #fff;
    text-align: center;
    box-shadow: none;
}

.back-qr-box strong {
    display: block;
    margin-bottom: .75mm;
    font-size: 1.58mm;
    font-weight: 800;
    letter-spacing: 0;
}

.back-qr-box img {
    width: 17.8mm;
    height: 17.8mm;
    padding: 1.25mm;
    border-radius: .8mm;
    background: #fff;
}

.back-qr-box span {
    display: block;
    margin-top: .55mm;
    font-size: 1.05mm;
    font-weight: 700;
}

.signature-strip {
    position: absolute;
    left: 4.5mm;
    right: 4.5mm;
    bottom: 5.7mm;
    display: grid;
    grid-template-columns: 17.5mm 17.5mm 1fr;
    gap: 2mm;
    align-items: end;
}

.signature-box {
    min-height: 7mm;
    color: #1a1c1c;
}

.signature-box strong {
    display: block;
    font-size: 1.3mm;
    font-weight: 800;
}

.signature-box span {
    display: block;
    font-size: 1.12mm;
    font-weight: 650;
    color: #3f4948;
}

.signature-box i {
    display: block;
    width: 12.5mm;
    height: 2.6mm;
    margin-top: .45mm;
    border-bottom: .22mm solid #004c4c;
    border-radius: 50%;
    transform: skewX(-25deg);
}

.card-warning {
    border: .18mm solid rgba(0, 76, 76, .35);
    border-radius: .85mm;
    padding: .75mm .9mm;
    background: rgba(255, 255, 255, .82);
    color: #1a1c1c;
    font-size: 1.18mm;
    line-height: 1.08;
    font-weight: 700;
}

.validity-bar {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 4.5mm;
    padding-top: .9mm;
    background: #004c4c;
    color: #fff;
    text-align: center;
    font-size: 1.72mm;
    font-weight: 800;
    letter-spacing: 0;
}

.document-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 12px;
    background: #fbfdfd;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 800;
}

.print-sheet {
    width: min(794px, 100%);
    margin: 0 auto;
    padding: 28px 28px 14px;
    background: #fff;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    position: relative;
    color: #111;
    font-family: "Times New Roman", Times, serif;
}

.application-form-sheet {
    width: 210mm;
    min-height: 297mm;
    margin: 0 auto;
    padding: 7mm 10mm 10mm;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    color: #000;
}

.application-form-sheet,
.application-form-sheet * { font-family: Arial, Helvetica, sans-serif; }

.application-form-sheet--bulk {
    margin-bottom: 14mm;
    page-break-after: always;
}

.application-form-sheet * { box-sizing: border-box; }

.application-form-sheet .top { position: relative; height: 44mm; }
.application-form-sheet .logo { position: absolute; top: -3mm; width: 31mm; height: 31mm; object-fit: contain; }
.application-form-sheet .logo.left { left: 5mm; }
.application-form-sheet .logo.right { right: 5mm; }

.application-form-sheet .file-no {
    position: absolute;
    right: 0;
    top: 31mm;
    width: 31mm;
    height: 13mm;
    border: 1px solid #9db8d4;
    border-bottom: 0;
    border-radius: 4mm 4mm 0 0;
    background: #eef3f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1mm;
    font-weight: bold;
    font-size: 10pt;
    color: #000;
}

.application-form-sheet .file-no span { color: #5a7ca3; letter-spacing: 0.3mm; }
.application-form-sheet .file-no strong { font-size: 15pt; letter-spacing: 0.5mm; color: #34516f; }

.application-form-sheet h1 {
    position: absolute;
    left: 0;
    right: 0;
    top: 31mm;
    text-align: center;
    font-size: 15pt;
    margin: 0;
    font-weight: bold;
    color: #000;
}

.application-form-sheet .form { border: 1px solid #333; min-height: 230mm; }
.application-form-sheet .application-form-table { border-collapse: collapse; }
.application-form-sheet .intro-cell { padding: 0; height: auto; vertical-align: top; }
.application-form-sheet .intro { position: relative; min-height: 75mm; padding: 18mm 7mm 8mm 7mm; font-size: 14pt; line-height: 1.22; font-weight: normal; color: #000; white-space: normal; }
.application-form-sheet .intro-title { font-size: 15pt; font-weight: bold; text-align: center; margin-bottom: 7mm; color: #000; white-space: normal; }
.application-form-sheet .intro-text { text-align: justify; text-justify: inter-word; white-space: normal; word-break: break-word; overflow-wrap: break-word; }
.application-form-sheet .intro-text::before { content: ""; float: right; width: 31mm; height: 39mm; }
.application-form-sheet .intro-text::after { content: ""; display: block; clear: right; }
.application-form-sheet .intro-closing { display: block; margin-top: 3mm; text-indent: 9mm; white-space: normal; }

.application-form-sheet .photo {
    position: absolute;
    right: 1.5mm;
    top: 29mm;
    width: 34mm;
    height: 39mm;
    border: 3px dotted #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 11pt;
    color: #000;
}

.application-form-sheet .signature { text-align: left; margin-top: 7mm; margin-left: 105mm; font-size: 13pt; line-height: 1.15; font-weight: bold; color: #000; white-space: nowrap; }
.application-form-sheet .signature strong { font-weight: normal; color: #555; }
.application-form-sheet .section-title,
.application-form-sheet .driver-title { text-align: center; font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.15; padding: 1.5mm 2mm; border-bottom: 1px solid #333; color: #000; font-weight: bold; }
.application-form-sheet .section-title { border-top: 1px solid #333; }
.application-form-sheet table { width: 100%; border-collapse: collapse; table-layout: fixed; font-family: Arial, Helvetica, sans-serif; font-size: 15px; }
.application-form-sheet td { border-bottom: 1px solid #777; border-right: 1px solid #777; height: 12mm; padding: 1.5mm 2mm; vertical-align: middle; font-size: 15px; font-weight: bold; color: #000; }
.application-form-sheet td strong { font-weight: normal; color: #555; }
.application-form-sheet td:last-child { border-right: 0; }
.application-form-sheet .row-2 td,
.application-form-sheet .row-small td { height: 12mm; }
.application-form-sheet td.education { font-family: Arial, Helvetica, sans-serif; font-size: 15px; line-height: 1.15; color: #000; font-weight: bold; height: auto; padding: 3mm 4mm; }
.application-form-sheet .education-options { display: flex; justify-content: space-between; align-items: center; }
.application-form-sheet .education-option { font-weight: normal; color: #000; display: inline-flex; align-items: center; }
.application-form-sheet .education-option .box { margin: 0 0 0 3mm; }

.application-form-sheet .box {
    display: inline-block;
    width: 6mm;
    height: 6mm;
    border: 2px solid #111;
    vertical-align: middle;
    margin: 0 8mm 0 3mm;
    text-align: center;
    line-height: 5mm;
    font-weight: normal;
    color: #555;
    font-family: Arial, sans-serif;
}

.application-form-sheet .wide-line { height: 12mm; padding: 1.5mm 2mm; border-bottom: 1px solid #777; font-family: Arial, Helvetica, sans-serif; font-size: 11.5pt; line-height: 1.15; color: #000; font-weight: bold; display: flex; align-items: center; }
.application-form-sheet .wide-line strong { font-weight: normal; color: #555; }
.application-form-sheet td.declaration { font-family: Arial, Helvetica, sans-serif; font-size: 15px; padding: 7mm 2mm 2mm; height: 38mm; vertical-align: top; color: #000; font-weight: normal; }
.application-form-sheet .declaration strong { font-weight: normal; color: #555; }
.application-form-sheet .final-sign { margin-top: 8mm; margin-left: 118mm; line-height: 1.4; font-weight: bold; color: #000; }
.application-form-sheet .final-sign strong { font-weight: normal; color: #555; }
.application-form-sheet .final-sign::after { content: ""; display: block; height: 5mm; }
.application-form-sheet .no-bottom td { border-bottom: 0; }

.uploaded-print-document {
    margin-top: 18px;
    min-height: 1040px;
    break-before: page;
    page-break-before: always;
}

.uploaded-print-document__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #111;
    font-family: Arial, Helvetica, sans-serif;
}

.uploaded-print-document__head strong {
    font-size: 15px;
}

.uploaded-print-document__head span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
}

.uploaded-print-document img,
.uploaded-print-document object {
    display: block;
    width: 100%;
    min-height: 940px;
    object-fit: contain;
    border: 0;
}

.print-form-header {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr) 112px;
    gap: 16px;
    align-items: center;
    margin-bottom: 14px;
    border-bottom: 2px solid #111;
    padding-bottom: 10px;
}

.print-form-logo {
    min-height: 76px;
    display: grid;
    place-items: center;
}

.print-form-logo img {
    max-width: 124px;
    max-height: 74px;
    object-fit: contain;
}

.print-form-heading {
    display: grid;
    gap: 5px;
    text-align: center;
}

.print-form-heading strong {
    font-size: 15px;
    line-height: 1.15;
}

.print-form-heading span {
    font-size: 14px;
    font-weight: 800;
}

.form-title {
    margin-bottom: 12px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
}

.print-file-no {
    margin-bottom: 0;
    text-align: right;
    font-size: 12px;
    font-weight: 700;
}

.docx-form-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: collapse;
    background: #fff;
    font-size: 11.5pt;
}

.docx-form-table td {
    height: 31px;
    border: 1px solid #000;
    padding: 5px 6px;
    color: #111;
    font-size: 11.5pt;
    line-height: 1.25;
    white-space: normal;
    vertical-align: middle;
}

.docx-form-table strong {
    font-weight: 700;
}

.docx-form-table .section {
    height: 30px;
    text-align: center;
    font-weight: 700;
}

.petition-cell {
    padding: 0;
}

.petition-inner {
    min-height: 276px;
    padding: 14px 16px 4px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px;
    gap: 14px;
    align-items: start;
}

.petition-title {
    margin-bottom: 14px;
    text-align: center;
    font-size: 12.5pt;
    font-weight: 700;
}

.petition-copy p {
    margin: 0 0 10px;
    font-size: 11.5pt;
    line-height: 1.35;
}

.date-line {
    display: inline-block;
    min-width: 110px;
    text-align: center;
    font-weight: 700;
}

.petition-sign {
    width: 245px;
    margin: 8px 0 0 auto;
    display: grid;
    gap: 9px;
    font-size: 11.5pt;
    font-weight: 700;
}

.photo-box {
    width: 86px;
    height: 106px;
    border: 1px solid #000;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    font-size: 10.5pt;
    font-weight: 700;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.applicant-title {
    padding: 3px 6px 6px;
    text-align: center;
    font-size: 11.5pt;
    font-weight: 700;
}

.education-options {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-left: 10px;
}

.declaration-cell {
    height: 114px;
    vertical-align: top;
}

.declaration-cell p {
    margin: 4px 0 22px;
    text-align: center;
    font-size: 11.5pt;
    line-height: 1.35;
}

.signature {
    width: 245px;
    margin-left: auto;
    display: grid;
    gap: 16px;
    font-size: 11.5pt;
    font-weight: 700;
}

.verify-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 22px;
}

.verify-card {
    width: min(520px, 100%);
    background: #fff;
    border: 1px solid var(--line);
    border-top: 6px solid var(--green);
    border-radius: 8px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.verify-card.bad { border-top-color: var(--red); }
.verify-status { border-radius: 4px; padding: 7px 10px; font-weight: 900; }
.verify-card dt { color: var(--muted); font-weight: 800; margin-top: 14px; }
.verify-card dd { margin: 4px 0 0; font-size: 20px; font-weight: 900; }
.reason { padding: 12px; border-radius: 6px; background: #fff5e3; color: #7a4b00; font-weight: 800; }
.is-hidden { display: none; }

.date-trigger {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--line-strong);
    border-radius: 4px;
    padding: 9px 38px 9px 10px;
    color: var(--muted);
    background: #fff;
    text-align: left;
    font-weight: 800;
    cursor: pointer;
    position: relative;
}

.date-trigger::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    width: 14px;
    height: 14px;
    transform: translateY(-50%);
    border: 2px solid var(--secondary);
    border-top-width: 4px;
    border-radius: 3px;
}

.date-trigger:hover,
.date-trigger:focus {
    outline: 2px solid rgba(31, 195, 174, .22);
    border-color: var(--secondary);
}

.date-trigger.has-value {
    color: var(--ink);
}

.date-trigger.is-invalid {
    border-color: var(--red);
    background: #fff8f7;
    color: var(--red);
}

.date-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.date-modal.is-open {
    display: flex;
}

.date-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 36, .38);
}

.date-modal__dialog {
    position: relative;
    width: min(392px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 62, 69, .22);
    overflow: hidden;
}

.date-modal__head {
    min-height: 58px;
    padding: 10px 12px;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: #fff;
}

.date-modal__selectors {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(88px, .8fr);
    gap: 8px;
    min-width: 0;
}

.date-modal__selectors label {
    display: grid;
    gap: 3px;
    color: rgba(255, 255, 255, .74);
    font-size: 10px;
    font-weight: 900;
}

.date-modal__selectors select {
    min-height: 34px;
    border-color: rgba(255, 255, 255, .3);
    padding: 6px 8px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 900;
}

.date-modal__nav {
    width: 38px;
    height: 38px;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 4px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
}

.date-modal__nav:hover,
.date-modal__nav:focus {
    background: rgba(255, 255, 255, .18);
}

.date-modal__days,
.date-modal__grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.date-modal__days {
    padding: 12px 14px 4px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 900;
    text-align: center;
}

.date-modal__grid {
    gap: 6px;
    padding: 8px 14px 14px;
}

.date-modal__blank {
    min-height: 38px;
}

.date-modal__day {
    min-height: 38px;
    border: 1px solid transparent;
    border-radius: 4px;
    background: #f7faf9;
    color: var(--ink);
    font-weight: 850;
    cursor: pointer;
}

.date-modal__day:hover,
.date-modal__day:focus {
    border-color: var(--secondary);
    background: #e8f7f5;
}

.date-modal__day.is-today {
    border-color: var(--gold);
}

.date-modal__day.is-selected {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

.date-modal__actions {
    padding: 12px 14px;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    border-top: 1px solid var(--line);
    background: #fbfdfd;
}

.swal-confirm {
    position: fixed;
    inset: 0;
    z-index: 110;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.swal-confirm.is-open {
    display: flex;
}

.swal-confirm__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 32, 36, .42);
}

.swal-confirm__dialog {
    position: relative;
    width: min(420px, 100%);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 26px 24px 20px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(0, 62, 69, .24);
    text-align: center;
}

.swal-confirm__icon {
    width: 58px;
    height: 58px;
    margin: 0 auto 14px;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 32px;
    font-weight: 900;
    line-height: 1.2;
}

.swal-confirm__icon.success {
    border-color: var(--green);
    color: var(--green);
}

.swal-confirm__icon.error {
    border-color: var(--red);
    color: var(--red);
}

.swal-confirm__icon.warning {
    border-color: var(--gold);
    color: var(--gold);
}

.swal-confirm__dialog h3 {
    margin: 0 0 8px;
    font-size: 21px;
    line-height: 1.2;
    font-weight: 900;
}

.swal-confirm__dialog p {
    margin: 0;
    color: var(--ink-soft);
    font-weight: 750;
    white-space: pre-line;
}

.swal-confirm__actions {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
}

@media (max-width: 960px) {
    .topbar {
        min-height: auto;
        padding: 10px 16px;
        flex-wrap: wrap;
    }

    .brand,
    .nav,
    .nav a {
        height: auto;
    }

    .nav {
        width: 100%;
        margin-left: 0;
        overflow: visible;
        flex-wrap: wrap;
    }

    .nav a,
    .nav-dropdown-toggle {
        min-height: 40px;
        white-space: nowrap;
    }

    .nav-dropdown,
    .nav-dropdown-toggle {
        height: auto;
    }

    .nav-dropdown-menu {
        top: 42px;
        right: auto;
        left: 0;
    }

    .drivers-search {
        grid-template-columns: 1fr;
    }

    .driver-actions,
    .driver-actions form {
        align-items: stretch;
        flex-direction: column;
    }

    .driver-passive-form input {
        width: 100%;
    }

    .user-chip { display: none; }
    .shell { width: min(100% - 24px, 1440px); margin-top: 16px; }
    .page-head { align-items: stretch; flex-direction: column; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .form-grid.two { grid-template-columns: 1fr; }
    .credential-grid { grid-template-columns: 1fr; }
    .criminal-record-card__head { align-items: stretch; flex-direction: column; }
    .criminal-record-actions { justify-content: flex-start; }
    .criminal-record-fields { grid-template-columns: 1fr; }
    .criminal-record-split { grid-template-columns: 1fr; }
    .pdf-upload { grid-template-columns: 1fr; }
    .photo-upload { grid-template-columns: 1fr; }
    .photo-cropper { grid-template-columns: 1fr; }
    .criminal-record-common-fields { grid-template-columns: 1fr; }
    .file-upload { grid-template-columns: 1fr; }
    .psychotechnic-row { grid-template-columns: 1fr; }
    .radio-card-group { grid-template-columns: 1fr; }
    .psychotechnic-expiration-form { grid-template-columns: 1fr; }
    .identity-fields { grid-template-columns: 1fr; }
    .license-fields { grid-template-columns: 1fr; }
    .search-panel { grid-template-columns: 1fr; }
    .datatable-toolbar,
    .datatable-footer {
        align-items: stretch;
        flex-direction: column;
    }
    .datatable-search { width: 100%; grid-template-columns: 1fr; }
    .datatable-tools,
    .datatable-pagination { justify-content: space-between; }
    .dashboard-search::after { display: none; }
    .application-summary { grid-template-columns: 1fr; }
    .summary-status { justify-items: start; }
    .detail-grid--with-aside { grid-template-columns: 1fr; }
    .detail-aside {
        position: static;
        margin-top: 0;
        order: 2;
    }
    .process-track { grid-template-columns: 1fr; gap: 10px; }
    .process-step::after { display: none; }
    .petition-grid { grid-template-columns: 1fr; }
    .card-preview { grid-template-columns: 1fr; }
    .auth-panel { grid-template-columns: 1fr; padding: 24px; }
    .auth-login {
        min-height: auto;
        padding: 0;
    }
    .auth-intro {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .auth-form {
        padding: 24px;
    }
}

@media (max-width: 560px) {
    .stats-grid { grid-template-columns: 1fr; }
    .page-head h1, .auth-panel h1 { font-size: 24px; }
    .brand { width: 100%; }
    .brand img { width: 120px; }
    .auth-intro {
        padding: 22px;
    }
    .auth-brand-mark {
        min-height: 58px;
        margin-bottom: 18px;
    }
    .auth-brand-mark img {
        max-height: 58px;
    }
    .auth-copy {
        font-size: 14px;
        line-height: 1.55;
    }
    .auth-points {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 6px;
        margin-top: 18px;
    }
    .auth-points span {
        min-height: 48px;
        padding: 8px 9px;
        font-size: 11px;
    }
    .auth-form {
        padding: 22px;
    }
    .auth-form-head strong {
        font-size: 20px;
    }
}

@media print {
    @page {
        size: A4;
        margin: 10mm;
    }

    @page driverCard {
        size: 85.60mm 54.00mm;
        margin: 0;
    }

    .topbar,
    .no-print,
    .alert {
        display: none;
    }

    html,
    body {
        min-width: 0;
        background: #fff;
    }

    .shell { width: 100%; margin: 0; }

    .card-print-workspace {
        display: block;
        padding: 0;
    }

    .driver-id-card {
        page: driverCard;
        width: 85.60mm;
        height: 54.00mm;
        border-radius: 0;
        box-shadow: none;
        break-after: page;
        page-break-after: always;
    }

    .driver-id-card:last-child {
        break-after: auto;
        page-break-after: auto;
    }

    .print-sheet {
        width: 190mm;
        max-width: 190mm;
        padding: 0;
        border: 0;
        box-shadow: none;
        margin: 0 auto;
    }

    .application-form-sheet {
        width: 190mm;
        max-width: 190mm;
        min-height: 0;
        padding: 0;
    }

    .application-form-sheet .form {
        min-height: 0 !important;
    }

    .application-form-sheet .top {
        height: 31mm !important;
    }

    .application-form-sheet .logo {
        width: 23mm !important;
        height: 23mm !important;
        top: 0 !important;
    }

    .application-form-sheet .file-no {
        top: 21mm !important;
        width: 30mm !important;
        height: 10mm !important;
        border-radius: 3mm 3mm 0 0 !important;
        gap: 0.4mm !important;
        font-size: 8.5pt !important;
    }

    .application-form-sheet .file-no strong {
        font-size: 12.5pt !important;
        line-height: 1 !important;
    }

    .application-form-sheet .file-no span {
        letter-spacing: 0.2mm !important;
        line-height: 1 !important;
    }

    .application-form-sheet h1 {
        left: 28mm !important;
        right: 34mm !important;
        top: 22mm !important;
        font-size: 13pt !important;
    }

    .application-form-sheet td {
        height: 8.4mm !important;
        padding: 0.9mm 1.6mm !important;
        font-size: 13px !important;
        line-height: 1.1 !important;
    }

    .application-form-sheet .intro {
        min-height: 55mm !important;
        padding: 8mm 5mm 4mm 5mm !important;
        font-size: 12.5pt !important;
        line-height: 1.12 !important;
    }

    .application-form-sheet .intro-title {
        font-size: 13pt !important;
        margin-bottom: 4mm !important;
    }

    .application-form-sheet .photo {
        width: 30mm !important;
        height: 34mm !important;
        top: 20mm !important;
    }

    .application-form-sheet .intro-text::before {
        width: 29mm !important;
        height: 31mm !important;
    }

    .application-form-sheet .signature {
        margin-top: 4mm !important;
        font-size: 11pt !important;
    }

    .application-form-sheet td.education {
        padding: 1.4mm 2mm !important;
    }

    .application-form-sheet .box {
        width: 4.8mm !important;
        height: 4.8mm !important;
        line-height: 4mm !important;
        margin-right: 4mm !important;
    }

    .application-form-sheet td.declaration {
        height: 30mm !important;
        padding-top: 4mm !important;
    }

    .application-form-sheet .final-sign {
        margin-top: 4mm !important;
    }

    .uploaded-print-document {
        margin-top: 0;
        min-height: 0;
    }

    .uploaded-print-document img,
    .uploaded-print-document object {
        min-height: 250mm;
    }

    .docx-form-table td {
        height: 30px;
        padding: 4px 5px;
        border: 1px solid #000 !important;
    }
}

/* --- LOGIN PAGE NEW DESIGN --- */
body:has(.login-container) .topbar {
    display: none;
}

body:has(.login-container) {
    background-image: linear-gradient(to right, rgba(0, 15, 20, 0.9) 0%, rgba(7, 87, 96, 0.6) 45%, rgba(0, 15, 20, 0.45) 100%), url('../brand/login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    min-height: 100vh;
    margin: 0;
    overflow-y: auto;
    font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
}

body:has(.login-container) .shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.login-header {
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
    position: relative;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent);
}

.brand-badge {
    background: #ffffff;
    border-radius: 8px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.logo-konesob {
    height: 36px;
    width: auto;
    object-fit: contain;
}

.logo-divider {
    width: 1px;
    height: 28px;
    background-color: #dfe7e6;
}

.logo-ahilik {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ahilik-icon {
    width: 32px;
    height: 32px;
}

.ahilik-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.ahilik-title {
    font-size: 13px;
    font-weight: 800;
    color: #075760;
}

.ahilik-tagline {
    font-size: 9px;
    font-weight: 500;
    color: #6f797a;
}

.header-system-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Container Split Layout */
.login-container {
    flex: 1;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    padding: 0 80px 40px 80px;
    align-items: center;
    gap: 60px;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Intro Section */
.login-intro {
    color: #ffffff;
    max-width: 580px;
    animation: fadeInUp 0.8s ease;
}

.intro-eyebrow {
    font-size: 12px;
    font-weight: 800;
    color: #1fc3ae;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 12px;
    position: relative;
}

.intro-eyebrow::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background-color: #1fc3ae;
    margin-top: 8px;
    border-radius: 2px;
}

.intro-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0 0 20px 0;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.intro-desc {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 40px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.intro-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 18px;
    transition: transform 0.3s ease, background 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.feature-icon-wrapper {
    width: 42px;
    height: 42px;
    background: rgba(31, 195, 174, 0.2);
    border: 1px solid rgba(31, 195, 174, 0.3);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1fc3ae;
}

.feature-icon-wrapper svg {
    width: 22px;
    height: 22px;
}

.feature-info h3 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
}

.feature-info p {
    margin: 0;
    font-size: 11px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.85);
}

/* Login Card Section */
.login-form-wrapper {
    display: flex;
    justify-content: flex-end;
    animation: fadeInRight 0.8s ease;
}

.login-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 460px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
}

.card-user-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: #edf7f6;
    color: #07858f;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
}

.card-user-avatar svg {
    width: 28px;
    height: 28px;
}

.login-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #181c1c;
    margin: 0 0 12px 0;
}

.title-divider {
    width: 60px;
    height: 3px;
    background-color: #1fc3ae;
    margin: 0 auto 30px auto;
    border-radius: 2px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 13px;
    font-weight: 700;
    color: #3f484a;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 14px;
    color: #6f797a;
    display: flex;
    align-items: center;
}

.input-icon svg {
    width: 18px;
    height: 18px;
}

.input-wrapper input {
    padding: 12px 14px 12px 42px;
    font-size: 14px;
    border: 1.5px solid #dfe7e6;
    border-radius: 8px;
    width: 100%;
    transition: all 0.3s ease;
    background-color: #fcfdfd;
}

.input-wrapper input::placeholder {
    color: #bfc8ca;
}

.input-wrapper input:focus {
    border-color: #07858f;
    outline: none;
    box-shadow: 0 0 0 4px rgba(7, 133, 143, 0.1);
    background-color: #ffffff;
}

.password-toggle {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    cursor: pointer;
    color: #6f797a;
    display: flex;
    align-items: center;
    padding: 0;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 500;
}

.remember-me input {
    width: 18px;
    height: 18px;
    accent-color: #075760;
    border-radius: 4px;
    cursor: pointer;
}

.forgot-password {
    color: #07858f;
    font-weight: 600;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #075760;
    text-decoration: underline;
}

.login-submit-btn {
    background-color: #075760;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-submit-btn:hover {
    background-color: #003e45;
    box-shadow: 0 8px 16px rgba(7, 87, 96, 0.25);
}

.login-submit-btn svg {
    width: 18px;
    height: 18px;
    transition: transform 0.3s ease;
}

.login-submit-btn:hover svg {
    transform: translateX(4px);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 40px 40px 40px;
    }
    .login-intro {
        max-width: 100%;
        text-align: center;
    }
    .intro-eyebrow::after {
        margin: 8px auto 0 auto;
    }
    .intro-title {
        font-size: 38px;
    }
    .login-form-wrapper {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .login-header {
        padding: 0 20px;
    }
    .header-system-title {
        display: none;
    }
    .login-container {
        padding: 0 20px 20px 20px;
    }
    .login-intro {
        display: none;
    }
    .login-card {
        padding: 30px 20px;
    }
}

/* --- DETAILED DOCX FORM STYLES --- */
.docx-header {
    display: grid;
    grid-template-columns: 100px 1fr 120px;
    gap: 16px;
    align-items: start;
    margin-bottom: 20px;
    padding: 0 4px;
}

.docx-header-logo {
    height: 64px;
    width: auto;
    object-fit: contain;
}

.docx-header-center h1 {
    font-size: 13.5pt;
    font-weight: bold;
    text-align: center;
    margin: 20px 0 0 0;
    line-height: 1.25;
    font-family: "Times New Roman", Times, serif;
}

.docx-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.docx-file-no-box {
    border: 1px solid #000;
    border-radius: 6px;
    padding: 8px 10px;
    font-size: 10.5pt;
    font-weight: bold;
    width: 110px;
    height: 52px;
    text-align: left;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    margin-top: 4px;
    line-height: 1.1;
}

.docx-form-table {
    border: 1.5px solid #000 !important;
}

.docx-form-table td {
    height: 38px;
    border: 1px solid #000;
    padding: 6px 10px;
    color: #000;
    font-size: 11.5pt;
    line-height: 1.3;
    vertical-align: middle;
}

.petition-cell {
    padding: 0 !important;
}

.petition-inner {
    padding: 16px 14px 4px;
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 16px;
    align-items: start;
}

.petition-copy {
    display: flex;
    flex-direction: column;
}

.petition-title {
    font-size: 12pt;
    font-weight: bold;
    text-align: center;
    margin-bottom: 16px;
    line-height: 1.35;
}

.petition-copy p {
    font-size: 11.5pt;
    line-height: 1.45;
    margin: 0 0 10px 0;
    text-indent: 20px;
}

.date-line {
    display: inline-block;
    min-width: 110px;
    text-align: center;
    font-weight: bold;
    text-indent: 0;
}

.petition-sign {
    width: 280px;
    margin: 16px 0 0 auto;
    display: grid;
    gap: 8px;
    font-size: 11pt;
    font-weight: bold;
}

.photo-box {
    width: 90px;
    height: 112px;
    border: 1.5px dashed #000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11pt;
    font-weight: bold;
    text-align: center;
    color: #111;
    background: #fff;
    margin-top: 18px;
}

.photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.applicant-title {
    border-top: 1.5px solid #000;
    padding: 8px 12px;
    text-align: center;
    font-weight: bold;
    font-size: 11.5pt;
    background-color: #f7faf9;
    text-transform: uppercase;
}

.docx-form-table .section {
    background-color: #f1f4f3;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 11.5pt;
    letter-spacing: 0.5px;
    height: 34px;
}

.education-row-cell {
    padding: 10px 12px !important;
}

.education-options {
    display: inline-flex;
    gap: 20px;
    font-weight: normal;
    margin-left: 14px;
}

.education-options span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.checkbox-box {
    border: 1.5px solid #000;
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-family: monospace;
    font-size: 11pt;
    background: #fff;
}

.declaration-cell {
    padding: 24px 14px !important;
    vertical-align: top;
}

.declaration-text {
    text-align: center;
    font-size: 11.5pt;
    line-height: 1.45;
    margin: 0 0 24px 0;
}

.signature {
    width: 280px;
    margin-left: auto;
    display: grid;
    gap: 12px;
    font-weight: bold;
    font-size: 11pt;
}

/* Yazici Uyumluluk Duzeltmeleri */
@media print {
    .docx-header-logo {
        height: 52px;
    }
    .docx-header-center h1 {
        font-size: 12pt;
        margin-top: 14px;
    }
    .docx-file-no-box {
        width: 100px;
        height: 48px;
        font-size: 9.5pt;
    }
    .docx-form-table td {
        height: 34px;
        padding: 5px 8px;
        border: 1px solid #000 !important;
    }
    .docx-form-table {
        border: 1.5px solid #000 !important;
    }
}

/* --- CREATE APPLICATION PAGE NEW PREMIUM DESIGN --- */
.create-app-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 120px);
    padding: 40px 20px;
    box-sizing: border-box;
}

body:has(.create-app-container) {
    background-image: linear-gradient(to right, rgba(0, 15, 20, 0.9) 0%, rgba(7, 87, 96, 0.6) 45%, rgba(0, 15, 20, 0.45) 100%), url('../brand/login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 100vh;
    overflow-y: auto;
    font-family: 'Instrument Sans', Inter, system-ui, sans-serif;
}

body:has(.create-app-container) .shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    min-height: calc(100vh - 68px);
    display: flex;
    flex-direction: column;
}

.create-app-card {
    background: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 680px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.85);
    position: relative;
    animation: fadeInUp 0.6s ease;
}

.back-link {
    position: absolute;
    top: 32px;
    left: 40px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    transition: color 0.15s ease;
}

.back-link:hover {
    color: var(--primary);
}

.create-app-card h2 {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #181c1c;
    margin: 0 0 10px 0;
}

.create-app-card .title-divider {
    width: 60px;
    height: 3px;
    background-color: #1fc3ae;
    margin: 0 auto 24px auto;
}

.create-app-card .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.create-app-card .form-grid .wide {
    grid-column: 1 / -1;
}

.create-app-card .form-actions {
    margin-top: 12px;
}

.create-app-card .form-actions .btn {
    width: 100%;
    justify-content: center;
    padding: 12px;
    font-weight: 800;
    font-size: 14px;
    height: 44px;
}

.create-app-card label,
.create-app-card .form-field span {
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 850;
    margin-bottom: 6px;
    display: block;
}

.create-app-card input,
.create-app-card select,
.create-app-card textarea,
.create-app-card .date-trigger {
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 10px 12px;
    background: #fbfdfd;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-size: 13px;
    width: 100%;
}

.create-app-card input:focus,
.create-app-card select:focus,
.create-app-card textarea:focus,
.create-app-card .date-trigger:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 87, 96, 0.12);
    outline: none;
}

.create-app-card .date-trigger {
    padding-right: 38px;
}

@media (max-width: 768px) {
    .create-app-container {
        padding: 20px 12px;
        min-height: auto;
    }
    .create-app-card {
        padding: 30px 20px;
        border-radius: 16px;
    }
    .create-app-card .form-grid {
        grid-template-columns: 1fr;
    }
    .back-link {
        position: static;
        margin-bottom: 20px;
    }
}

/* --- GLOBAL ADMIN PAGES NEW PREMIUM DESIGN --- */
body:has(.topbar):not(:has(.create-app-container)):not(:has(.login-container)) {
    background-image: linear-gradient(to bottom, rgba(235, 245, 243, 0.94) 0%, rgba(247, 250, 249, 0.98) 100%), url('../brand/login-bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

body:has(.topbar) .page-head h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--primary-strong);
}

body:has(.topbar) .page-head .eyebrow {
    font-size: 11px;
    font-weight: 900;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}

body:has(.topbar) .dashboard-search,
body:has(.topbar) .user-search {
    background: #ffffff;
    border: 1px solid rgba(223, 231, 230, 0.8);
    box-shadow: 0 4px 20px rgba(0, 62, 69, 0.03);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 20px;
}

body:has(.topbar) .dashboard-search input,
body:has(.topbar) .user-search input {
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 10px 14px;
    transition: all 0.2s ease;
    background: #fbfdfd;
}

body:has(.topbar) .dashboard-search input:focus,
body:has(.topbar) .user-search input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(7, 87, 96, 0.1);
    outline: none;
}

body:has(.topbar) .stage-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.6);
    padding: 6px;
    border-radius: 10px;
    border: 1px solid rgba(223, 231, 230, 0.7);
    backdrop-filter: blur(8px);
}

body:has(.topbar) .stage-button {
    min-height: 36px;
    border: none;
    border-radius: 6px;
    padding: 8px 14px;
    background: transparent;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 750;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body:has(.topbar) .stage-button:hover {
    background: rgba(7, 87, 96, 0.08);
    color: var(--primary);
}

body:has(.topbar) .stage-button.active {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 4px 10px rgba(7, 87, 96, 0.15);
}

body:has(.topbar) .panel {
    border-radius: 12px;
    border: 1px solid rgba(223, 231, 230, 0.8);
    box-shadow: 0 8px 30px rgba(0, 62, 69, 0.05);
    background: #ffffff;
}

@media (max-width: 768px) {
    body:has(.topbar) .stage-buttons {
        background: transparent;
        padding: 0;
        border: none;
    }
    body:has(.topbar) .stage-button {
        background: #ffffff;
        border: 1px solid var(--line);
    }
}

/* Fotoğraf uyarısı */
.photo-stage__hint {
    margin: 0 0 12px;
    padding: 10px 12px;
    border: 1px solid #fcd34d;
    background: #fffbeb;
    color: #92400e;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

/* Vehicle type flash */
.vehicle-type-flash {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
    pointer-events: none;
}

.vehicle-type-flash.is-visible {
    opacity: 1;
}

.vehicle-type-flash__card {
    min-width: 280px;
    max-width: 90vw;
    padding: 36px 48px;
    border-radius: 24px;
    text-align: center;
    color: #fff;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    transform: scale(0.85);
    transition: transform 0.25s ease;
}

.vehicle-type-flash.is-visible .vehicle-type-flash__card {
    transform: scale(1);
}

.vehicle-type-flash--taxi .vehicle-type-flash__card {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #422006;
}

.vehicle-type-flash--minibus .vehicle-type-flash__card {
    background: linear-gradient(135deg, #22c55e, #15803d);
    color: #f0fdf4;
}

.vehicle-type-flash__icon {
    font-size: 64px;
    line-height: 1;
    margin-bottom: 12px;
}

.vehicle-type-flash__label {
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.vehicle-type-flash__name {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 600;
    opacity: 0.85;
}
