:root {
    --bg: #000000;
    --surface: #191c24;
    --surface-2: #0f1015;
    --surface-3: #2a3038;
    --border: #2c2e33;
    --border-soft: rgba(255, 255, 255, .08);
    --text: #ffffff;
    --muted: #6c7293;
    --muted-2: #5d627d;
    --accent: #0090e7;
    --accent-hover: #0078c1;
    --accent-rgb: 0, 144, 231;
    --accent-contrast: #ffffff;
    --accent-soft: rgba(0, 144, 231, .12);
    --blue: #0090e7;
    --blue-soft: rgba(0, 144, 231, .12);
    --yellow: #ffab00;
    --yellow-soft: rgba(255, 171, 0, .12);
    --red: #fc424a;
    --red-soft: rgba(252, 66, 74, .12);
    --purple: #8f5fe8;
    --purple-soft: rgba(143, 95, 232, .12);
    --radius: .25rem;
    --shadow: none;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #000; -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
body.modal-open { padding-right: 0 !important; }
button, input, select, textarea { font: inherit; }

/* Corona shell adaptations used by the MVC application. */
.main-panel { min-height: 100vh; }
.content-wrapper { min-width: 0; }
.footer { background: #191c24; border-top: 1px solid #2c2e33; }
.footer span { color: #6c7293; }

.sidebar .sidebar-brand-wrapper .sidebar-brand img,
.navbar .navbar-brand-wrapper .navbar-brand img {
    object-fit: contain;
}

.sidebar .nav .nav-item.menu-items.active > .nav-link:before { background: #0090e7; }
.sidebar .nav .nav-item.nav-category { margin-top: .65rem; }
.sidebar .nav .nav-item.nav-category:first-of-type { margin-top: 0; }
.sidebar .nav .nav-item.profile .profile-desc { padding-top: 1rem; padding-bottom: 1rem; }
.sidebar .nav .nav-item.profile .profile-desc .profile-pic { min-width: 0; }
.sidebar .nav .nav-item.profile .profile-desc .profile-name { min-width: 0; }
.sidebar .nav .nav-item.profile .profile-desc .profile-name h5 {
    max-width: 125px;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-profile-initial,
.app-navbar-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #fff;
    background: #0f1015;
    border: 1px solid #2c2e33;
    font-weight: 700;
    text-transform: uppercase;
}
.app-profile-initial { width: 34px; height: 34px; border-radius: 50%; font-size: .8rem; }
.app-navbar-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: .78rem; margin-right: .7rem; }
.navbar .navbar-menu-wrapper .navbar-nav .nav-item .navbar-profile .navbar-profile-name { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }

.app-navbar-title { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; padding-left: .75rem; }
.app-navbar-title strong { color: #fff; font-size: .96rem; font-weight: 500; white-space: nowrap; }
.app-navbar-kicker { color: #6c7293; font-size: .56rem; font-weight: 600; letter-spacing: .12em; margin-bottom: .2rem; }
.app-create-button { min-height: 38px; display: inline-flex !important; align-items: center; justify-content: center; padding: .55rem 1rem !important; }
.app-dropdown-button { width: 100%; border: 0; background: transparent; text-align: left; }
.app-dropdown-button:hover, .app-dropdown-button:focus { background: #13151b; color: inherit; }

/* Page chrome */
.app-page-header h2 { color: #fff; font-weight: 500; }
.app-page-header p { max-width: 760px; }

/* Login keeps Corona's native full-page auth wrapper. */
.app-login-card { max-width: 510px; background: #191c24; border: 1px solid #2c2e33; }
.app-login-heading { display: flex; align-items: flex-start; gap: 1rem; }
.app-login-heading .card-title { text-transform: none; font-size: 1.45rem; }
.app-login-icon { width: 46px; height: 46px; border-radius: .25rem; background: rgba(0,144,231,.12); color: #0090e7; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.app-login-icon i { font-size: 1.5rem; }
.app-input-icon { position: relative; }
.app-input-icon > i { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: #6c7293; z-index: 2; pointer-events: none; }
.app-input-icon .form-control { padding-left: 2.75rem; }

/* ---------- Typography / Headings ---------- */

.page-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.page-heading h1 {
    color: var(--text);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -.45px;
    line-height: 1.15;
    margin: 3px 0 7px;
}

.page-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.page-heading p strong {
    color: #b8bec8;
}

.heading-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.serial-number {
    color: #cbd0d7;
    font-weight: 700;
}

.eyebrow {
    color: var(--accent);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.text-link {
    color: var(--accent);
    font-weight: 700;
    font-size: 12px;
    text-decoration: none;
}

.text-link:hover {
    color: var(--accent-hover);
}

/* ---------- Cards ---------- */

.section-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 18px;
    padding: 18px;
    box-shadow: none;
}

.section-title {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 15px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.section-title.compact {
    margin-bottom: 13px;
}

.section-title h2 {
    color: var(--text);
    font-size: 16px;
    font-weight: 800;
    margin: 0 0 4px;
}

.section-title p {
    color: var(--muted);
    font-size: 12px;
    margin: 0;
}

.count-badge {
    flex: 0 0 auto;
    background: var(--surface-2);
    color: #aab2bd;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 5px 9px;
    font-size: 10px;
    font-weight: 700;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}

.summary-grid-secondary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.summary-card {
    display: block;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 15px;
    text-decoration: none;
    transition: border-color .15s ease, transform .15s ease;
}

a.summary-card:hover {
    border-color: #38404e;
    transform: translateY(-1px);
}

.summary-card small {
    color: var(--muted);
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
}

.summary-card strong {
    color: var(--text);
    display: block;
    font-size: 18px;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.summary-card span {
    color: var(--muted-2);
    display: block;
    font-size: 10px;
    margin-top: 7px;
}

.summary-money strong {
    color: var(--accent);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(320px, .85fr);
    gap: 18px;
    align-items: stretch;
}

/* ---------- Details ---------- */

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

.detail-cell {
    min-width: 0;
    background: var(--surface-2);
    border: 1px solid var(--border-soft);
    border-radius: 7px;
    padding: 12px 13px;
    min-height: 68px;
}

.detail-cell span {
    color: var(--muted);
    display: block;
    font-size: 10px;
    margin-bottom: 6px;
}

.detail-cell strong {
    display: block;
    color: #dfe3e8;
    font-size: 13px;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.detail-cell-wide {
    grid-column: 1 / -1;
    min-height: 82px;
}

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

.document-card {
    min-width: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px;
}

.document-top {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.document-icon {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    display: grid;
    place-items: center;
    border-radius: 7px;
    background: var(--red-soft);
    border: 1px solid rgba(252, 66, 74, .22);
    color: #ff777d;
    font-size: 9px;
    font-weight: 900;
}

.document-copy {
    min-width: 0;
}

.document-copy strong {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
    font-size: 12px;
}

.document-copy span {
    color: var(--muted);
    font-size: 10px;
}

.document-note {
    margin-top: 12px;
    padding: 10px 11px;
    border-radius: 6px;
    background: #11141a;
    border-left: 3px solid var(--accent);
}

.document-note span {
    display: block;
    color: var(--muted);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 4px;
}

.document-note p {
    color: #c8cdd4;
    font-size: 11px;
    margin: 0;
}

.document-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 12px;
    color: var(--muted);
    font-size: 10px;
}

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

.note-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px;
}

.note-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 9px;
}

.note-head > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.note-type {
    color: var(--accent);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .7px;
    text-transform: uppercase;
}

.note-head strong {
    color: var(--text);
    font-size: 11px;
    margin-top: 2px;
}

.note-head time {
    color: var(--muted-2);
    font-size: 9px;
    white-space: nowrap;
}

.note-card p {
    color: #c5cad1;
    font-size: 11px;
    line-height: 1.55;
    margin: 0;
}

/* ---------- Workflow ---------- */

.workflow-timeline,
.activity-timeline {
    position: relative;
}

.workflow-timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 9px;
    bottom: 9px;
    width: 2px;
    background: #303641;
}

.workflow-event {
    position: relative;
    padding-left: 38px;
    padding-bottom: 23px;
}

.workflow-event:last-child {
    padding-bottom: 0;
}

.workflow-dot {
    position: absolute;
    z-index: 1;
    left: 1px;
    top: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 4px solid var(--surface);
    box-shadow: 0 0 0 1px var(--accent);
}

.workflow-content {
    min-width: 0;
}

.workflow-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.workflow-head strong {
    color: var(--text);
    font-size: 12px;
}

.workflow-head time {
    color: var(--muted-2);
    font-size: 9px;
    white-space: nowrap;
}

.workflow-content p {
    margin: 0 0 8px;
    color: #b8bec8;
    font-size: 11px;
    line-height: 1.55;
}

.activity-item {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    gap: 9px;
    padding-bottom: 15px;
    margin-bottom: 15px;
    border-bottom: 1px solid var(--border-soft);
}

.activity-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.activity-dot {
    width: 8px;
    height: 8px;
    margin: 5px auto 0;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.activity-head {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.activity-head strong {
    color: #d7dbe1;
    font-size: 11px;
}

.activity-head time {
    color: var(--muted-2);
    font-size: 9px;
    white-space: nowrap;
}

.activity-item p {
    color: var(--muted);
    font-size: 10px;
    line-height: 1.5;
    margin: 4px 0 0;
}

/* ---------- Status ---------- */

.status-pill {
    display: inline-flex;
    align-items: center;
    width: max-content;
    max-width: 100%;
    border-radius: 999px;
    padding: 5px 8px;
    border: 1px solid transparent;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.status-closed {
    color: var(--accent) !important;
}

.status-pill.status-closed {
    background: var(--accent-soft);
    border-color: rgba(var(--accent-rgb), .18);
}

.status-manager {
    color: #68c4ff !important;
}

.status-pill.status-manager {
    background: var(--blue-soft);
    border-color: rgba(0, 168, 255, .18);
}

.status-payment {
    color: #ffc24c !important;
}

.status-pill.status-payment {
    background: var(--yellow-soft);
    border-color: rgba(255, 171, 0, .2);
}

.status-returned {
    color: #ff7b82 !important;
}

.status-pill.status-returned {
    background: var(--red-soft);
    border-color: rgba(252, 66, 74, .18);
}

.status-accounting {
    color: #a987f4 !important;
}

.status-pill.status-accounting {
    background: var(--purple-soft);
    border-color: rgba(143, 95, 232, .2);
}

.status-neutral {
    color: #a5adb8 !important;
}

.status-pill.status-neutral {
    background: rgba(143, 150, 163, .1);
    border-color: rgba(143, 150, 163, .16);
}

/* ---------- Forms ---------- */

.form-page {
    max-width: 900px;
}

.form-page.narrow {
    max-width: 680px;
}

.form-grid {
    display: grid;
    gap: 14px;
}

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

.form-grid.three-col {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-span-2 {
    grid-column: span 2;
}

.form-span-full {
    grid-column: 1 / -1;
}

.form-field {
    min-width: 0;
    margin-bottom: 14px;
}

.form-grid .form-field {
    margin-bottom: 0;
}

/* Keep list-page search inputs and their action buttons on one baseline. */
.list-search-field {
    margin-bottom: 0;
}

.form-field > label,
.form-label {
    display: block;
    color: #aeb5bf;
    font-size: 10px;
    font-weight: 700;
    margin-bottom: 6px;
}

.label-row {
    min-height: 23px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.label-row label {
    color: #aeb5bf;
    font-size: 10px;
    font-weight: 700;
}

.text-button {
    background: transparent;
    color: var(--accent);
    border: 0;
    padding: 0;
    font-size: 10px;
    font-weight: 800;
}

.text-button:hover {
    color: var(--accent-hover);
}

.form-control,
.form-select {
    min-height: 42px;
    border-radius: 7px;
    border: 1px solid #303642;
    background-color: var(--surface-2);
    color: var(--text);
    font-size: 12px;
    box-shadow: none !important;
    padding: .55rem .72rem;
}

textarea.form-control {
    min-height: auto;
    resize: vertical;
}

.form-control:focus,
.form-select:focus {
    color: var(--text);
    background-color: #161a21;
    border-color: rgba(var(--accent-rgb), .7);
    box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .08) !important;
}

.form-control::placeholder {
    color: #5f6672;
    opacity: 1;
}

.form-control:disabled,
.form-select:disabled {
    background: #171a20;
    color: #777f8b;
}

.form-select {
    --bs-form-select-bg-img: none;
    padding-right: .72rem;
}

input[type="date"] {
    color-scheme: dark;
}

input[type="file"]::file-selector-button {
    color: #c8ced6;
    background: #252a34;
    border: 0;
    border-right: 1px solid #303642;
    margin: -.55rem .72rem -.55rem -.72rem;
    padding: .65rem .75rem;
}

.input-group-text {
    background: #252a34;
    color: #adb4be;
    border-color: #303642;
    font-size: 11px;
}

.form-text,
small.form-text {
    color: var(--muted) !important;
    font-size: 10px;
}

.text-danger,
.field-validation-error {
    display: block;
    color: #ff747b !important;
    font-size: 10px;
    margin-top: 4px;
}

.validation-summary {
    background: var(--red-soft);
    border: 1px solid rgba(252, 66, 74, .25);
    border-radius: 7px;
    color: #ff9297;
    padding: 10px 12px;
    font-size: 11px;
    margin-bottom: 14px;
}

.validation-summary:empty,
.validation-summary-valid {
    display: none;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.form-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 19px;
    padding-top: 17px;
    border-top: 1px solid var(--border);
}

.app-check {
    min-height: 24px;
}

.form-check-input {
    background-color: var(--surface-2);
    border-color: #39404d;
}

.form-check-input:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.form-check-label {
    color: #adb4be;
    font-size: 11px;
}

.create-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(310px, .7fr);
    gap: 18px;
    align-items: start;
}

.create-main,
.create-side {
    min-width: 0;
}

.sticky-card {
    position: sticky;
    top: calc(var(--topbar-height) + 18px);
}

.upload-zone {
    border: 1px dashed #3a424f;
    background: var(--surface-2);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 14px;
}

.upload-zone .upload-icon {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 50%;
    font-weight: 800;
    margin-bottom: 10px;
}

.upload-zone label {
    display: block;
    color: #b5bbc4;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 7px;
}

.upload-zone small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    margin-top: 7px;
}

.info-box {
    background: rgba(0, 168, 255, .08);
    border: 1px solid rgba(0, 168, 255, .16);
    border-left: 3px solid var(--blue);
    color: #aebac5;
    border-radius: 7px;
    padding: 10px 11px;
    font-size: 10px;
    line-height: 1.55;
    margin: 14px 0;
}

.info-box-wide {
    margin: 0 0 18px;
}

.info-box strong {
    color: #d7dce2;
}

/* ---------- Actions ---------- */

.action-card {
    border-color: #343b47;
}

.action-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, .7fr);
    gap: 12px;
}

.action-panel {
    min-width: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 14px;
}

.action-panel h3 {
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
    margin: 0 0 12px;
}

.action-panel > p {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 13px;
}

.action-panel-success {
    border-color: rgba(var(--accent-rgb), .22);
}

.action-panel-danger {
    border-color: rgba(252, 66, 74, .22);
}

.manager-action {
    border-color: rgba(0, 168, 255, .28);
}

/* ---------- Buttons ---------- */

.btn {
    border-radius: 7px;
    font-weight: 700;
    font-size: 11px;
    padding: .52rem .8rem;
    box-shadow: none !important;
}

.btn-lg {
    min-height: 45px;
    font-size: 12px;
}

.btn-primary {
    color: var(--accent-contrast);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    color: var(--accent-contrast) !important;
    background: var(--accent-hover) !important;
    border-color: var(--accent-hover) !important;
}

.btn-success {
    color: var(--accent-contrast);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-success:hover,
.btn-success:focus {
    color: var(--accent-contrast);
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-outline-primary {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), .45);
}

.btn-outline-primary:hover {
    color: var(--accent-contrast);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-outline-secondary {
    color: #a8afb9;
    border-color: #444b57;
}

.btn-outline-secondary:hover {
    color: var(--text);
    background: #292e38;
    border-color: #515966;
}

.btn-outline-success {
    color: var(--accent);
    border-color: rgba(var(--accent-rgb), .45);
}

.btn-outline-success:hover {
    color: var(--accent-contrast);
    background: var(--accent);
    border-color: var(--accent);
}

.btn-outline-danger {
    color: #ff747b;
    border-color: rgba(252, 66, 74, .45);
}

.btn-outline-danger:hover {
    color: white;
    background: var(--red);
    border-color: var(--red);
}

.btn-outline-warning {
    color: #ffc24c;
    border-color: rgba(255, 171, 0, .42);
}

.btn-outline-warning:hover,
.btn-warning {
    color: #1b1300;
    background: var(--yellow);
    border-color: var(--yellow);
}

/* ---------- Lists ---------- */

.record-list {
    display: flex;
    flex-direction: column;
}

.record-row {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--border-soft);
    color: inherit;
    text-decoration: none;
}

.record-row:first-child {
    padding-top: 2px;
}

.record-row:last-child {
    border-bottom: 0;
    padding-bottom: 2px;
}

.record-row:hover .record-title strong {
    color: var(--accent);
}

.record-main {
    min-width: 0;
}

.record-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
}

.record-title strong {
    color: #dce1e7;
    font-size: 11px;
}

.record-sub {
    color: var(--muted);
    font-size: 10px;
    margin-top: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.record-meta {
    color: var(--muted);
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
}

.record-arrow {
    color: var(--accent);
    font-size: 19px;
    line-height: 1;
}

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

.workorder-card {
    min-width: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.workorder-card-head {
    padding: 12px 13px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    border-bottom: 1px solid var(--border-soft);
}

.workorder-serial {
    color: var(--text);
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
}

.workorder-serial:hover {
    color: var(--accent);
}

.workorder-date {
    color: var(--muted);
    font-size: 9px;
    margin-top: 3px;
}

.workorder-card-body {
    padding: 13px;
}

.workorder-primary {
    margin-bottom: 12px;
}

.workorder-primary strong {
    display: block;
    color: #dce0e6;
    font-size: 12px;
    margin-bottom: 3px;
}

.workorder-primary span {
    color: var(--muted);
    font-size: 10px;
}

.workorder-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.workorder-facts div {
    min-width: 0;
    background: #11141a;
    border-radius: 6px;
    padding: 8px 9px;
}

.workorder-facts span {
    color: var(--muted-2);
    display: block;
    font-size: 8px;
    margin-bottom: 3px;
}

.workorder-facts strong {
    color: #cbd0d7;
    display: block;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.workorder-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 9px;
    padding: 10px 13px;
    border-top: 1px solid var(--border-soft);
}

.filter-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.4fr) repeat(5, minmax(130px, .7fr));
    gap: 10px;
    align-items: end;
}

.filter-grid .form-field {
    margin: 0;
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 7px;
    margin-top: 2px;
}

.entity-list,
.user-list {
    display: flex;
    flex-direction: column;
}

.entity-card,
.user-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border-soft);
}

.entity-card:first-child,
.user-card:first-child {
    padding-top: 0;
}

.entity-card:last-child,
.user-card:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.entity-main {
    min-width: 0;
    flex: 1;
}

.entity-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 9px;
}

.entity-title-row > strong {
    color: var(--text);
    font-size: 12px;
}

.entity-facts {
    display: grid;
    grid-template-columns: minmax(120px, .6fr) minmax(120px, .6fr) minmax(180px, 1.2fr);
    gap: 12px;
}

.entity-facts > div,
.user-facts > div {
    min-width: 0;
}

.entity-facts span,
.user-facts span {
    display: block;
    color: var(--muted-2);
    font-size: 8px;
    margin-bottom: 3px;
}

.entity-facts strong,
.user-facts strong {
    display: block;
    color: #bec4cc;
    font-size: 10px;
    overflow-wrap: anywhere;
}

.entity-actions,
.user-actions {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 6px;
}

.entity-actions form,
.user-actions form {
    margin: 0;
}

.user-card {
    min-width: 0;
}

.user-card.protected-user {
    margin: 0 -8px;
    padding-left: 8px;
    padding-right: 8px;
    border-radius: 7px;
    background: rgba(var(--accent-rgb), .035);
}

.user-identity {
    flex: 1 1 260px;
    min-width: 190px;
    display: flex;
    align-items: center;
    gap: 11px;
}

.user-identity > div:last-child {
    min-width: 0;
}

.user-name-line {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.user-name-line strong {
    color: var(--text);
    font-size: 11px;
}

.user-identity > div > span {
    color: var(--muted);
    display: block;
    font-size: 9px;
    margin-top: 3px;
    overflow-wrap: anywhere;
}

.user-facts {
    flex: 1.4 1 400px;
    display: grid;
    grid-template-columns: repeat(3, minmax(100px, 1fr));
    gap: 12px;
}

.protected-badge {
    border: 1px solid rgba(var(--accent-rgb), .22);
    background: var(--accent-soft);
    color: var(--accent);
    border-radius: 999px;
    padding: 3px 6px;
    font-size: 8px;
    font-weight: 800;
}

.protected-text {
    color: var(--muted);
    font-size: 9px;
}

/* ---------- Empty / Alerts ---------- */

.empty-inline,
.empty-state-inline {
    color: var(--muted);
    text-align: center;
    padding: 28px 12px;
    font-size: 11px;
}

.empty-state-inline {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.empty-state-inline strong {
    color: #cbd0d7;
    font-size: 12px;
}

.empty-state-inline span {
    color: var(--muted);
    font-size: 10px;
}

.empty-state {
    max-width: 720px;
    margin: 40px auto;
    padding: 40px 22px;
    text-align: center;
}

.empty-state-icon {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 13px;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 24px;
    font-weight: 900;
}

.empty-state-icon.danger {
    color: #ff747b;
    background: var(--red-soft);
}

.empty-state-icon.small {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
    font-size: 16px;
}

.empty-state h2 {
    font-size: 18px;
    margin: 6px 0 8px;
    color: var(--text);
}

.empty-state p {
    color: var(--muted);
    font-size: 11px;
    max-width: 500px;
    margin: 0 auto 16px;
}

.request-code {
    color: var(--muted);
    font-size: 10px;
    margin: 0 auto 16px;
}

.app-alert {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 10px 42px 10px 11px;
    margin-bottom: 14px;
    font-size: 11px;
}

.app-alert-success {
    background: var(--accent-soft);
    border-color: rgba(var(--accent-rgb), .22);
    color: #aee8c6;
}

.app-alert-danger {
    background: var(--red-soft);
    border-color: rgba(252, 66, 74, .22);
    color: #ffb1b5;
}

.app-alert-mark {
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, .06);
    font-weight: 900;
}

.app-alert .btn-close {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 10px;
}

/* ---------- Modal ---------- */

.modal-backdrop.show {
    opacity: .72;
}

.app-modal,
.modal-content {
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
}

.modal-header,
.modal-footer {
    border-color: var(--border);
}

.modal-title {
    color: var(--text);
    font-size: 15px;
    margin-top: 2px;
}

/* ---------- Auth ---------- */

.auth-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(460px, .9fr);
    background: var(--bg);
}

.auth-brand-panel {
    position: relative;
    display: flex;
    align-items: center;
    padding: 56px clamp(36px, 7vw, 100px);
    background:
        radial-gradient(circle at 25% 25%, rgba(var(--accent-rgb), .08), transparent 30%),
        var(--surface);
    border-right: 1px solid var(--border);
}

.auth-brand-copy {
    max-width: 580px;
}

.auth-logo,
.auth-mobile-logo {
    color: var(--text);
    font-weight: 900;
    font-size: 22px;
    letter-spacing: -.4px;
}

.auth-logo span,
.auth-mobile-logo span {
    color: var(--accent);
}

.auth-brand-copy h1 {
    max-width: 560px;
    color: var(--text);
    font-size: clamp(32px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.08;
    margin: 30px 0 16px;
}

.auth-brand-copy > p {
    max-width: 510px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.auth-flow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 40px;
}

.auth-flow > div {
    min-width: 0;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 13px;
}

.auth-flow > div > span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    margin-bottom: 9px;
}

.auth-flow strong {
    display: block;
    font-size: 11px;
}

.auth-flow small {
    display: block;
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
    margin-top: 4px;
}

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.auth-card {
    width: min(100%, 430px);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 28px;
}

.auth-mobile-logo {
    display: none;
    margin-bottom: 25px;
}

.auth-card h2 {
    color: var(--text);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.5px;
    margin: 5px 0 7px;
}

.auth-subtitle {
    color: var(--muted);
    font-size: 11px;
    margin: 0 0 22px;
}

/* ---------- Modern Login ---------- */

.auth-modern-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 28px 18px;
    background:
        radial-gradient(circle at 50% 0%, rgba(var(--accent-rgb), .09), transparent 34%),
        linear-gradient(180deg, #12151b 0%, var(--bg) 52%);
}

.auth-modern-card {
    width: min(100%, 430px);
    background: rgba(25, 28, 36, .96);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 30px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .28);
}

.auth-modern-brand {
    min-height: 74px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-bottom: 20px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
}

.auth-modern-brand-simple {
    min-height: 68px;
    margin-bottom: 18px;
    padding-bottom: 18px;
}

.auth-modern-logo {
    display: block;
    width: min(100%, 260px);
    height: 82px;
    max-width: 260px;
    max-height: 82px;
    object-fit: contain;
    object-position: center;
}

.auth-modern-brand-text {
    color: var(--text);
    font-size: 25px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -.5px;
}

.auth-modern-brand-text span {
    color: var(--accent);
}


.auth-modern-head {
    margin-bottom: 22px;
}

.auth-modern-head-simple {
    margin-bottom: 18px;
    text-align: center;
}

.auth-modern-head-simple .eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid rgba(var(--accent-rgb), .22);
    border-radius: 999px;
    background: rgba(var(--accent-rgb), .06);
}



.auth-modern-form {
    display: grid;
    gap: 16px;
}

.auth-modern-form .form-field {
    margin: 0;
}

.auth-input {
    min-height: 48px;
}

.auth-modern-options {
    display: flex;
    align-items: center;
    min-height: 24px;
}

.auth-submit {
    min-height: 48px;
    font-size: 13px;
    font-weight: 800;
}


@media (max-width: 479.98px) {
    .auth-modern-shell {
        padding: 0;
        place-items: stretch;
        background: var(--bg);
    }

    .auth-modern-card {
        width: 100%;
        min-height: 100dvh;
        border: 0;
        border-radius: 0;
        padding: 28px 18px;
        box-shadow: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }
}

/* ---------- Bootstrap compatibility ---------- */

.bg-light,
.bg-white {
    background-color: var(--surface) !important;
}

.text-muted {
    color: var(--muted) !important;
}

.text-dark {
    color: var(--text) !important;
}

.text-primary {
    color: var(--accent) !important;
}

.border,
.border-top,
.border-bottom {
    border-color: var(--border) !important;
}

hr {
    border-color: var(--border);
    opacity: 1;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-grid-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .filter-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .filter-search {
        grid-column: span 2;
    }

    .workorder-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    :root {
        --topbar-height: 62px;
    }

    body.sidebar-open {
        overflow: hidden;
    }

    .app-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        width: min(84vw, 290px);
        height: 100dvh;
        transform: translateX(-101%);
        transition: transform .2s ease;
        box-shadow: 18px 0 50px rgba(0, 0, 0, .32);
    }

    body.sidebar-open .app-sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1030;
        border: 0;
        padding: 0;
        background: rgba(0, 0, 0, .6);
        opacity: 0;
        visibility: hidden;
        transition: .2s ease;
    }

    body.sidebar-open .sidebar-backdrop {
        opacity: 1;
        visibility: visible;
    }

    .menu-toggle {
        display: flex;
    }

    .mobile-brand,
    .mobile-brand-logo {
        display: block;
    }

    .topbar-title {
        display: none;
    }

    .app-topbar {
        padding: 0 14px;
    }

    .app-content {
        padding: 21px 14px 34px;
    }

    .app-footer {
        padding: 14px;
    }

    .create-layout {
        grid-template-columns: 1fr;
    }

    .sticky-card {
        position: static;
    }

    .action-columns {
        grid-template-columns: 1fr;
    }

    .user-card {
        flex-wrap: wrap;
    }

    .user-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

@media (max-width: 767.98px) {
    .page-heading {
        flex-direction: column;
        margin-bottom: 16px;
    }

    .page-heading > .btn {
        width: 100%;
    }

    .page-heading h1 {
        font-size: 22px;
    }

    .heading-line {
        align-items: flex-start;
    }

    .summary-grid,
    .summary-grid-secondary {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .summary-card {
        padding: 12px;
    }

    .summary-card strong {
        font-size: 15px;
    }

    .summary-card span {
        display: none;
    }

    .section-card {
        padding: 14px;
        margin-bottom: 14px;
    }

    .section-title {
        padding-bottom: 12px;
        margin-bottom: 13px;
    }

    .detail-cards-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .detail-cell-wide {
        grid-column: 1 / -1;
    }

    .document-grid,
    .notes-grid {
        grid-template-columns: 1fr;
    }

    .form-grid.two-col,
    .form-grid.three-col {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .form-span-2,
    .form-span-full {
        grid-column: auto;
    }

    .filter-grid {
        grid-template-columns: 1fr 1fr;
        gap: 9px;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .filter-actions {
        grid-column: 1 / -1;
    }

    .entity-card {
        align-items: stretch;
        flex-direction: column;
    }

    .entity-facts {
        grid-template-columns: 1fr 1fr;
    }

    .entity-facts .wide {
        grid-column: 1 / -1;
    }

    .entity-actions {
        width: 100%;
        justify-content: flex-start;
        padding-top: 9px;
        border-top: 1px solid var(--border-soft);
    }

    .user-facts {
        flex-basis: 100%;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-copy {
        display: none;
    }

    .profile-caret {
        display: none;
    }

    .profile-menu > summary {
        padding: 3px;
    }

    .profile-dropdown {
        position: fixed;
        top: 59px;
        right: 10px;
        width: min(240px, calc(100vw - 20px));
    }

    .app-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .workflow-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .workflow-head time {
        white-space: normal;
    }

    .auth-shell {
        display: block;
    }

    .auth-brand-panel {
        display: none;
    }

    .auth-form-panel {
        min-height: 100dvh;
        padding: 18px;
    }

    .auth-card {
        padding: 23px 18px;
    }

    .auth-mobile-logo {
        display: block;
    }
}

@media (max-width: 479.98px) {
    .app-content {
        padding-left: 10px;
        padding-right: 10px;
    }

    .summary-grid,
    .summary-grid-secondary {
        grid-template-columns: 1fr 1fr;
    }

    .detail-cards-grid {
        grid-template-columns: 1fr;
    }

    .detail-cell-wide {
        grid-column: auto;
    }

    .filter-grid {
        grid-template-columns: 1fr;
    }

    .filter-search,
    .filter-actions {
        grid-column: auto;
    }

    .filter-actions {
        flex-direction: column;
    }

    .filter-actions .btn {
        width: 100%;
    }

    .workorder-card-head {
        flex-direction: column;
    }

    .workorder-facts {
        grid-template-columns: 1fr 1fr;
    }

    .workorder-card-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .workorder-card-footer .btn {
        width: 100%;
    }

    .entity-facts,
    .user-facts {
        grid-template-columns: 1fr;
    }

    .user-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .user-actions .btn,
    .user-actions form,
    .user-actions form button {
        width: 100%;
    }

    .entity-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .entity-actions .btn,
    .entity-actions form,
    .entity-actions form button {
        width: 100%;
    }

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

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

    .document-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .document-footer .btn {
        width: 100%;
    }

    .note-head {
        flex-direction: column;
        gap: 4px;
    }

    .summary-card strong {
        font-size: 14px;
    }
}

/* SweetAlert2 - uygulamanın koyu arayüzüyle uyum */
.swal2-popup {
    background: #191c24 !important;
    color: #e9ecef !important;
    border: 1px solid #282d38 !important;
    border-radius: 12px !important;
}

.swal2-title,
.swal2-html-container {
    color: #e9ecef !important;
}

.swal2-html-container {
    color: #aeb6c2 !important;
}

.swal2-actions {
    gap: 10px;
}

.swal-app-confirm,
.swal-app-cancel {
    margin: 0 !important;
}

.document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    flex-wrap: wrap;
}

.document-actions form {
    margin: 0;
}

.edit-window-note {
    margin-bottom: 18px;
}

@media (max-width: 575.98px) {
    .document-footer {
        align-items: flex-start;
        gap: 12px;
    }

    .document-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .document-actions .btn,
    .document-actions form,
    .document-actions form .btn {
        flex: 1 1 auto;
    }
}

/* ---------- Accounting ledger & recall ---------- */

.accounting-summary-grid {
    margin-top: -6px;
}

.accounting-ledger {
    display: grid;
    gap: 10px;
}

.accounting-entry {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
}

.accounting-entry-index {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: rgba(var(--accent-rgb), .1);
    border: 1px solid rgba(var(--accent-rgb), .2);
    color: var(--accent);
    font-weight: 900;
    font-size: 11px;
}

.accounting-entry-main {
    min-width: 0;
}

.accounting-entry-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--border-soft);
}

.accounting-entry-head > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.accounting-entry-head strong {
    color: var(--text);
    font-size: 12px;
}

.accounting-entry-head span,
.accounting-entry-head time {
    color: var(--muted);
    font-size: 9px;
}

.accounting-entry-head time {
    white-space: nowrap;
}

.accounting-entry-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.accounting-entry-metrics > div {
    min-width: 0;
    padding: 9px 10px;
    border-radius: 6px;
    background: #11141a;
    border: 1px solid var(--border-soft);
}

.accounting-entry-metrics span {
    display: block;
    margin-bottom: 5px;
    color: var(--muted-2);
    font-size: 9px;
}

.accounting-entry-metrics strong {
    color: #dfe3e8;
    font-size: 11px;
    overflow-wrap: anywhere;
}

.accounting-entry-note {
    margin-top: 10px;
    padding: 10px 11px;
    background: #11141a;
    border-left: 3px solid var(--accent);
    border-radius: 6px;
}

.accounting-entry-note span {
    display: block;
    color: var(--muted-2);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 4px;
}

.accounting-entry-note p {
    margin: 0;
    color: #c8cdd4;
    font-size: 11px;
    line-height: 1.55;
}

.accounting-current-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 14px;
}

.accounting-current-summary span {
    padding: 7px 9px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: #11141a;
    color: var(--muted);
    font-size: 10px;
}

.accounting-current-summary strong {
    color: var(--text);
}

.accounting-lock-card {
    border-color: rgba(255, 171, 0, .25);
}

.recall-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 14px;
    border: 1px solid rgba(255, 171, 0, .25);
    border-radius: 8px;
    background: rgba(255, 171, 0, .06);
}

.recall-panel > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.recall-label {
    color: var(--muted);
    font-size: 10px;
    margin-bottom: 3px;
}

.recall-countdown {
    color: #ffbd3f;
    font-size: 25px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    letter-spacing: .5px;
}

.recall-panel small {
    color: var(--muted-2);
    font-size: 9px;
    margin-top: 5px;
}

.workflow-status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.workflow-old-status {
    color: var(--muted);
    padding: 4px 7px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 9px;
}

.workflow-arrow {
    color: var(--muted-2);
    font-size: 10px;
}

@media (max-width: 767.98px) {
    .accounting-entry {
        grid-template-columns: 34px minmax(0, 1fr);
        gap: 9px;
        padding: 11px;
    }

    .accounting-entry-index {
        width: 30px;
        height: 30px;
        font-size: 9px;
    }

    .accounting-entry-head {
        flex-direction: column;
        gap: 4px;
    }

    .accounting-entry-head time {
        white-space: normal;
    }

    .accounting-entry-metrics {
        grid-template-columns: 1fr 1fr;
    }

    .recall-panel {
        align-items: stretch;
        flex-direction: column;
    }

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

@media (max-width: 479.98px) {
    .accounting-entry-metrics {
        grid-template-columns: 1fr;
    }
}

.recall-countdown.expired {
    color: #ff777d;
    font-size: 15px;
}


/* ---------- Simpler work list / accounting revision ---------- */

.field-label-row {
    min-height: 23px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 6px;
}

.field-label-row label {
    margin: 0;
    color: #aeb5bf;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
}

.field-label-row small {
    flex: 0 0 auto;
    color: var(--muted-2);
    font-size: 9px;
    line-height: 1.4;
    white-space: nowrap;
}

.workorder-list-readable {
    gap: 12px;
}

.readable-workorder-card {
    padding: 0;
    overflow: hidden;
}

.readable-workorder-card .workorder-card-head {
    padding: 15px 16px 12px;
    margin: 0;
    border-bottom: 1px solid var(--border-soft);
}

.workorder-identity {
    min-width: 0;
}

.workorder-customer {
    display: inline-block;
    color: var(--text);
    font-size: 16px;
    font-weight: 850;
    line-height: 1.25;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.workorder-customer:hover {
    color: var(--accent);
}

.workorder-reference {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 5px;
    color: var(--muted);
    font-size: 9px;
}

.workorder-description {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 13px 16px 4px;
}

.workorder-description strong {
    color: #dce1e7;
    font-size: 12px;
    line-height: 1.5;
    font-weight: 650;
}

.workorder-description span {
    color: var(--muted);
    font-size: 10px;
}

.readable-facts {
    padding: 10px 16px 15px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.readable-workorder-card .workorder-card-footer {
    padding: 10px 16px 13px;
    margin: 0;
    border-top: 1px solid var(--border-soft);
}

.recent-job-list {
    display: grid;
    gap: 9px;
}

.recent-job-card {
    display: block;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s ease, transform .16s ease;
}

.recent-job-card:hover {
    border-color: rgba(var(--accent-rgb), .32);
    transform: translateY(-1px);
}

.recent-job-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.recent-job-top > div {
    min-width: 0;
}

.recent-job-customer {
    display: block;
    color: var(--text);
    font-size: 12px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.recent-job-serial {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 9px;
}

.recent-job-description {
    margin-top: 9px;
    color: #c7ccd3;
    font-size: 10px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.recent-job-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-top: 9px;
    padding-top: 9px;
    border-top: 1px solid var(--border-soft);
    color: var(--muted);
    font-size: 9px;
}

.recent-job-meta strong {
    margin-left: auto;
    color: var(--text);
    font-size: 10px;
}

.detail-summary-simple {
    margin-bottom: 18px;
}

.simple-payment-history {
    display: grid;
    gap: 8px;
}

.simple-payment-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-2);
}

.simple-payment-main {
    min-width: 0;
}

.simple-payment-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.simple-payment-title > strong {
    color: #e1e5ea;
    font-size: 12px;
}

.simple-payment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 4px;
    color: var(--muted);
    font-size: 9px;
}

.simple-payment-main p {
    margin: 7px 0 0;
    color: #b8bec7;
    font-size: 10px;
    line-height: 1.5;
}

.simple-payment-totals {
    flex: 0 0 auto;
    display: grid;
    gap: 4px;
    min-width: 150px;
    text-align: right;
}

.simple-payment-totals span {
    color: var(--muted);
    font-size: 9px;
}

.simple-payment-totals strong {
    color: var(--text);
    font-size: 11px;
}

.simple-accounting-card {
    overflow: visible;
}

.simple-accounting-form {
    max-width: 100%;
}

.accounting-balance-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.accounting-balance-strip span {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 10px 11px;
    border: 1px solid var(--border);
    border-radius: 7px;
    background: #11141a;
    color: var(--muted);
    font-size: 9px;
}

.accounting-balance-strip strong {
    color: var(--text);
    font-size: 13px;
}

.accounting-primary-fields {
    margin-bottom: 14px;
}

.optional-documents {
    margin: 4px 0 16px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: #11141a;
    overflow: hidden;
}

.optional-documents summary {
    cursor: pointer;
    list-style: none;
    padding: 12px 13px;
    color: #d9dde3;
    font-size: 11px;
    font-weight: 750;
    user-select: none;
}

.optional-documents summary::-webkit-details-marker {
    display: none;
}

.optional-documents summary::after {
    content: "+";
    float: right;
    color: var(--accent);
    font-size: 16px;
    line-height: 1;
}

.optional-documents[open] summary::after {
    content: "−";
}

.optional-documents summary span {
    color: var(--muted-2);
    font-size: 9px;
    font-weight: 500;
}

.optional-documents-body {
    padding: 0 13px 13px;
    border-top: 1px solid var(--border-soft);
}

.optional-documents .document-upload-row {
    margin-top: 12px;
}

.accounting-save-button {
    min-width: 210px;
}

.manager-send-strip {
    display: grid;
    grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
    gap: 16px;
    align-items: end;
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.manager-send-strip > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.manager-send-strip > div strong {
    color: var(--text);
    font-size: 12px;
}

.manager-send-strip > div span {
    color: var(--muted);
    font-size: 10px;
}

.manager-send-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.manager-send-form .form-field {
    margin: 0;
}

.manager-send-form .btn {
    min-height: 38px;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .readable-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .accounting-primary-fields {
        grid-template-columns: 1fr 1fr;
    }

    .accounting-primary-fields .form-field:last-child {
        grid-column: 1 / -1;
    }

    .manager-send-strip {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
}

@media (max-width: 767.98px) {
    .field-label-row {
        min-height: 0;
    }

    .workorder-customer {
        font-size: 14px;
    }

    .readable-workorder-card .workorder-card-head {
        align-items: flex-start;
    }

    .readable-facts {
        grid-template-columns: 1fr 1fr;
    }

    .simple-payment-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .simple-payment-totals {
        width: 100%;
        min-width: 0;
        grid-template-columns: 1fr 1fr;
        text-align: left;
        padding-top: 8px;
        border-top: 1px solid var(--border-soft);
    }

    .accounting-balance-strip {
        grid-template-columns: 1fr;
    }

    .accounting-primary-fields {
        grid-template-columns: 1fr;
    }

    .accounting-primary-fields .form-field:last-child {
        grid-column: auto;
    }

    .manager-send-form {
        grid-template-columns: 1fr;
    }

    .manager-send-form .btn,
    .accounting-save-button {
        width: 100%;
    }
}

@media (max-width: 479.98px) {
    .readable-facts {
        grid-template-columns: 1fr;
    }

    .workorder-reference {
        gap: 3px 5px;
    }

    .recent-job-top {
        flex-direction: column;
    }

    .recent-job-meta strong {
        width: 100%;
        margin-left: 0;
    }
}

/* Entity history pagination */
.app-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--border-soft);
}

.pagination-summary {
    color: var(--muted);
    font-size: 10px;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
}

.pagination-button {
    min-width: 34px;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #303642;
    border-radius: 7px;
    background: #15181f;
    color: #b8bec7;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none;
}

.pagination-button:hover,
.pagination-button.active {
    border-color: rgba(var(--accent-rgb), .55);
    background: rgba(var(--accent-rgb), .09);
    color: var(--accent);
}

.manager-delete-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid rgba(252, 66, 74, .18);
}

.manager-delete-strip > div {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.manager-delete-strip strong {
    color: #ff8a90;
    font-size: 11px;
}

.manager-delete-strip span {
    color: var(--muted);
    font-size: 9px;
    line-height: 1.45;
}

.manager-delete-strip form {
    flex: 0 0 auto;
}

@media (max-width: 767.98px) {
    .app-pagination,
    .manager-delete-strip {
        align-items: stretch;
        flex-direction: column;
    }

    .pagination-buttons {
        justify-content: flex-start;
    }

    .manager-delete-strip .btn {
        width: 100%;
    }
}

@media (max-width: 479.98px) {
    .pagination-buttons {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .pagination-button {
        width: 100%;
    }
}


/* -------------------------------------------------------------------------
   Final Corona visual alignment. The rules below intentionally win over
   legacy component geometry while preserving the existing Razor structure.
   ------------------------------------------------------------------------- */
.page-heading {
    align-items: center;
    margin-bottom: 1.5rem;
}
.page-heading h1 {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0;
    margin-top: .3rem;
}
.page-heading p { color: #6c7293; font-size: .875rem; }
.eyebrow { color: #0090e7; font-size: .66rem; letter-spacing: .12em; font-weight: 600; }

.section-card,
.summary-card,
.entity-card,
.user-card,
.work-list-shell,
.mobile-work-card,
.detail-hero,
.detail-quick-summary,
.home-panel,
.home-status-card {
    background: #191c24;
    border-color: #2c2e33;
    border-radius: .25rem;
    box-shadow: none;
}
.section-card { padding: 1.55rem; margin-bottom: 1.5rem; }
.section-title { border-bottom-color: #2c2e33; }
.section-title h2 { color: #fff; font-size: 1.05rem; font-weight: 500; }
.section-title p { color: #6c7293; }
.count-badge { border-radius: .25rem; background: #0f1015; border: 1px solid #2c2e33; color: #b7b9cc; }

.form-field > label,
.form-label,
.field-label-row label,
.label-row label { color: #b7b9cc; font-size: .78rem; font-weight: 500; }
.form-control,
.form-select,
.ts-control {
    min-height: 42px;
    color: #fff !important;
    background-color: #2a3038 !important;
    border: 1px solid #2c2e33 !important;
    border-radius: 2px !important;
}
.form-control:focus,
.form-select:focus,
.ts-control.focus {
    color: #fff !important;
    background-color: #2a3038 !important;
    border-color: #0090e7 !important;
    box-shadow: 0 0 0 .1rem rgba(0,144,231,.12) !important;
}
.form-control::placeholder { color: #6c7293; opacity: 1; }
.form-control:disabled,
.form-select:disabled { background: #20242b !important; color: #6c7293 !important; }
.form-select option { background: #2a3038; color: #fff; }
.input-group-text { background: #0f1015; border-color: #2c2e33; color: #b7b9cc; }

.btn { border-radius: .25rem; font-weight: 500; box-shadow: none !important; }
.btn-primary { background: #0090e7; border-color: #0090e7; color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active { background: #0078c1 !important; border-color: #0078c1 !important; color: #fff !important; }
.btn-outline-primary { color: #0090e7; border-color: #0090e7; }
.btn-outline-primary:hover { background: #0090e7; border-color: #0090e7; color: #fff; }
.btn-outline-secondary { color: #b7b9cc; border-color: #4b5064; }
.btn-outline-secondary:hover { background: #2a3038; border-color: #5e647b; color: #fff; }

.table { color: #b7b9cc; }
.table thead th { color: #6c7293; border-top: 0; border-bottom: 1px solid #2c2e33; font-size: .7rem; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.table td { border-top: 1px solid #2c2e33; color: #b7b9cc; vertical-align: middle; }
.table-hover tbody tr:hover { color: #fff; background: rgba(255,255,255,.025); }
.table strong, .table-primary, .table-work-code { color: #fff; }

.info-box,
.detail-alert,
.manager-accounting-alert,
.manager-delete-strip,
.manager-send-strip,
.recall-panel {
    border-radius: .25rem;
}
.info-box { background: rgba(0,144,231,.08); border-color: rgba(0,144,231,.25); }
.validation-summary { border-radius: .25rem; }

.status-pill,
.home-status-pill,
.table-mini-badge,
.protected-badge,
.duration-chip { border-radius: 999px; }
.status-accounting { color: #4aaeff; background: rgba(0,144,231,.1); border-color: rgba(0,144,231,.25); }
.status-incomplete { color: #ffb936; background: rgba(255,171,0,.1); border-color: rgba(255,171,0,.25); }

.entity-card,
.user-card { padding-top: 1rem; padding-bottom: 1rem; }
.entity-card:hover,
.user-card:hover { background: #1d2029; }
.empty-state, .empty-state-inline, .empty-inline { color: #6c7293; }
.empty-state-icon { background: #0f1015; border-color: #2c2e33; }

.upload-zone,
.document-upload-zone {
    background: #0f1015;
    border-color: #3a3e4c;
    border-radius: .25rem;
}
.upload-zone:hover,
.document-upload-zone:hover { border-color: #0090e7; background: rgba(0,144,231,.035); }
.upload-icon { color: #0090e7; }

.modal-content,
.app-modal { background: #191c24; border-color: #2c2e33; border-radius: .25rem; color: #fff; }
.modal-header, .modal-footer { border-color: #2c2e33; }
.modal-title { color: #fff; }
.btn-close { filter: invert(1) grayscale(100%) brightness(200%); }

/* Corona dashboard */
.app-dashboard-stats .stretch-card > .app-stat-card { transition: transform .15s ease, border-color .15s ease; }
.app-dashboard-stats .stretch-card > .app-stat-card:hover { transform: translateY(-2px); border-color: #3a3e4c; }
.app-stat-card .card-body { min-height: 155px; display: flex; flex-direction: column; justify-content: center; }
.app-stat-card h3 { color: #fff; font-size: 1.8rem; font-weight: 500; }
.app-stat-card h6 { font-size: .82rem; }
.app-stat-note { color: #6c7293; font-size: .72rem; }
.app-icon-box-purple { background: rgba(143,95,232,.12); color: #8f5fe8; }
.app-work-code { color: #0090e7; letter-spacing: .02em; }
.app-job-preview-list .preview-item { padding-left: 0; padding-right: 0; }
.app-job-preview { color: inherit; }
.app-job-preview:hover { color: inherit; background: rgba(255,255,255,.02); }
.app-job-preview-main { min-width: 0; padding-right: 1rem; }
.app-job-preview-main h6 { color: #fff; }
.app-job-meta { display: flex; flex-wrap: wrap; gap: .75rem; color: #6c7293; font-size: .7rem; }
.app-job-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app-job-preview-side { min-width: 135px; display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; color: #6c7293; font-size: .7rem; }
.app-job-preview-side strong { color: #b7b9cc; font-weight: 500; }
.app-activity-item { padding-left: 0; padding-right: 0; }
.app-activity-description { line-height: 1.45; overflow-wrap: anywhere; }
.app-empty-block { min-height: 180px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .7rem; color: #6c7293; text-align: center; }
.app-empty-block.compact { min-height: 130px; }
.app-empty-block i { color: #3c4254; font-size: 2.1rem; }
.home-status-pill { display: inline-flex; padding: .24rem .45rem; border: 1px solid #2c2e33; font-size: .61rem; font-weight: 500; line-height: 1.15; }
.home-status-pill.home-status-incomplete { color: #ffab00; background: rgba(255,171,0,.08); border-color: rgba(255,171,0,.2); }
.home-status-pill.home-status-invoice { color: #0090e7; background: rgba(0,144,231,.08); border-color: rgba(0,144,231,.2); }
.home-status-pill.home-status-payment { color: #a875ff; background: rgba(143,95,232,.08); border-color: rgba(143,95,232,.2); }
.home-status-pill.home-status-manager { color: #00d25b; background: rgba(0,210,91,.08); border-color: rgba(0,210,91,.2); }
.home-status-pill.home-status-closed { color: #b7b9cc; background: rgba(108,114,147,.08); border-color: rgba(108,114,147,.2); }

/* Tom Select adopts Corona form styling. */
.ts-wrapper.single .ts-control:after { border-color: #6c7293 transparent transparent transparent; }
.ts-dropdown { background: #191c24; border-color: #2c2e33; color: #fff; }
.ts-dropdown .active { background: #0f1015; color: #fff; }
.ts-dropdown .option:hover { background: #0f1015; }
.ts-control input { color: #fff !important; }

/* SweetAlert is kept dark so confirmations look native to the template. */
.swal2-popup { background: #191c24 !important; border: 1px solid #2c2e33 !important; border-radius: .25rem !important; }
.swal2-title, .swal2-html-container { color: #fff !important; }
.swal2-html-container { color: #b7b9cc !important; }

@media (max-width: 991.98px) {
    .content-wrapper { padding: 1.25rem 1rem; }
    .app-navbar-title { padding-left: .25rem; }
    .app-navbar-kicker { display: none; }
    .app-navbar-title strong { font-size: .85rem; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
}

@media (max-width: 767.98px) {
    .page-heading { align-items: stretch; flex-direction: column; }
    .page-heading > .btn { width: 100%; }
    .section-card { padding: 1rem; }
    .app-job-preview .preview-thumbnail { display: none; }
    .app-job-preview .preview-item-content { display: block !important; }
    .app-job-preview-side { margin-top: .75rem; min-width: 0; align-items: flex-start; }
    .app-login-card { border-left: 0; border-right: 0; }
}

@media (max-width: 575.98px) {
    .content-wrapper { padding: 1rem .75rem; }
    .app-navbar-title strong { max-width: 130px; }
    .app-login-heading { gap: .75rem; }
    .app-login-icon { width: 40px; height: 40px; }
}

/* ---------- Simple theme-aware login ---------- */
.app-auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: #000000;
    color: #ffffff;
    transition: background-color .2s ease, color .2s ease;
}

.app-auth-page.corona-theme-light {
    background: #f4f5f7;
    color: #111827;
}

.login-shell {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 72px 20px 32px;
    background: #000000;
    transition: background-color .2s ease;
}

.app-auth-page.corona-theme-light .login-shell {
    background: #f4f5f7;
}

.login-card {
    width: min(100%, 420px);
    padding: 34px;
    background: #191c24;
    border: 1px solid #2c2e33;
    border-radius: 18px;
    box-shadow: 0 22px 60px rgba(0, 0, 0, .28);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.app-auth-page.corona-theme-light .login-card {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 18px 50px rgba(31, 41, 55, .10);
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    margin-bottom: 26px;
}

.login-brand img {
    display: block;
    width: min(100%, 220px);
    max-height: 72px;
    object-fit: contain;
}

.login-heading {
    margin-bottom: 25px;
    text-align: center;
}

.login-heading h1 {
    margin: 0;
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -.25px;
}

.login-heading p {
    margin: 8px 0 0;
    color: #6c7293;
    font-size: 13px;
}

.app-auth-page.corona-theme-light .login-heading h1 {
    color: #111827;
}

.app-auth-page.corona-theme-light .login-heading p {
    color: #6b7280;
}

.login-form {
    display: grid;
    gap: 18px;
}

.login-field {
    margin: 0;
}

.login-field label {
    display: block;
    margin-bottom: 8px;
    color: #cbd0d7;
    font-size: 12px;
    font-weight: 500;
}

.app-auth-page.corona-theme-light .login-field label {
    color: #4b5563;
}

.login-input.form-control {
    height: 50px;
    padding: 0 15px;
    border: 1px solid #2c2e33;
    border-radius: 10px;
    background: #0f1015;
    color: #ffffff;
    font-size: 14px;
    transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.login-input.form-control::placeholder {
    color: #5d627d;
}

.login-input.form-control:focus {
    background: #0f1015;
    color: #ffffff;
    border-color: #0090e7;
    box-shadow: 0 0 0 3px rgba(0, 144, 231, .12);
}

.app-auth-page.corona-theme-light .login-input.form-control {
    background: #ffffff;
    color: #111827;
    border-color: #d7dce2;
}

.app-auth-page.corona-theme-light .login-input.form-control::placeholder {
    color: #9ca3af;
}

.app-auth-page.corona-theme-light .login-input.form-control:focus {
    background: #ffffff;
    color: #111827;
    border-color: #0090e7;
}

.login-field .field-validation-error {
    display: block;
    margin-top: 7px;
    font-size: 11px;
}

.login-validation-summary:empty,
.login-validation-summary.validation-summary-valid {
    display: none;
}

.login-validation-summary.validation-summary-errors {
    margin: 0;
    padding: 11px 13px;
    border: 1px solid rgba(252, 66, 74, .28);
    border-radius: 9px;
    background: rgba(252, 66, 74, .08);
    color: #fc6b72;
    font-size: 12px;
}

.login-validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.login-submit {
    width: 100%;
    min-height: 50px;
    margin-top: 2px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
}

.login-theme-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: #191c24;
    border: 1px solid #2c2e33;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .18);
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.app-auth-page.corona-theme-light .login-theme-toggle {
    background: #ffffff;
    border-color: #e5e7eb;
    box-shadow: 0 8px 24px rgba(31, 41, 55, .08);
}

.login-theme-option {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #6c7293;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}

.login-theme-option i {
    font-size: 16px;
}

.login-theme-option:hover,
.login-theme-option:focus-visible {
    color: #ffffff;
    background: #0f1015;
    outline: none;
}

.login-theme-option.active {
    color: #ffffff;
    background: #0090e7;
}

.app-auth-page.corona-theme-light .login-theme-option {
    color: #6b7280;
}

.app-auth-page.corona-theme-light .login-theme-option:hover,
.app-auth-page.corona-theme-light .login-theme-option:focus-visible {
    color: #111827;
    background: #f3f4f6;
}

.app-auth-page.corona-theme-light .login-theme-option.active {
    color: #ffffff;
    background: #0090e7;
}

@media (max-width: 575.98px) {
    .login-shell {
        padding: 78px 16px 24px;
    }

    .login-card {
        padding: 28px 22px;
        border-radius: 15px;
    }

    .login-theme-toggle {
        top: 14px;
        right: 14px;
    }

    .login-theme-option span {
        display: none;
    }

    .login-theme-option {
        width: 36px;
        padding: 0;
    }
}
