* {
    box-sizing: border-box;
}

:root {
    --bg: #f4f7fb;
    --surface: #ffffff;
    --text: #172033;
    --muted: #6f7a8d;
    --border: #dfe6ef;

    --blue: #1467e8;
    --blue-dark: #0b4fb8;
    --blue-soft: #eaf2ff;

    --danger: #c93434;

    --radius: 18px;
    --shadow: 0 18px 55px rgba(20, 44, 80, 0.12);
}

html,
body {
    margin: 0;
    min-height: 100%;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);
    background: var(--bg);
}

button,
input {
    font: inherit;
}


/* LOGIN */

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;

    background:
        radial-gradient(
            circle at top left,
            #dceaff 0,
            transparent 35%
        ),
        linear-gradient(
            145deg,
            #f7faff,
            #edf3fb
        );
}

.login-container {
    width: min(100%, 440px);
}

.login-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            #00a7ff
        );

    color: white;
    font-size: 27px;
    font-weight: 800;

    box-shadow:
        0 10px 30px rgba(20, 103, 232, 0.25);
}

.brand-mark.small {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    font-size: 21px;
}

.brand-name {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.brand-subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
}

.login-card {
    padding: 34px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;
    background: rgba(255,255,255,.92);
    box-shadow: var(--shadow);
}

.eyebrow {
    color: var(--blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
}

.login-heading h1,
.dashboard-heading h1 {
    margin: 8px 0 7px;
}

.login-heading p,
.dashboard-heading p {
    margin: 0;
    color: var(--muted);
}

.login-card form {
    display: grid;
    gap: 9px;
    margin-top: 28px;
}

.login-card label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
}

.login-card input {
    width: 100%;
    height: 50px;

    padding: 0 14px;

    border: 1px solid var(--border);
    border-radius: 12px;

    background: white;
    outline: none;
}

.login-card input:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.login-card button,
.primary-action {
    border: 0;
    border-radius: 12px;

    background:
        linear-gradient(
            135deg,
            var(--blue),
            var(--blue-dark)
        );

    color: white;
    font-weight: 750;
    cursor: pointer;
}

.login-card button {
    height: 51px;
    margin-top: 16px;
}

.alert {
    margin-top: 20px;
    padding: 12px 14px;

    border-radius: 10px;

    background: #fff0f0;
    color: var(--danger);

    font-size: 13px;
    font-weight: 650;
}

.login-footer {
    padding: 20px 0;
    text-align: center;

    color: var(--muted);
    font-size: 12px;
}


/* APP */

.topbar {
    min-height: 70px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px max(20px, calc((100% - 1280px) / 2));

    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.94);

    position: sticky;
    top: 0;
    z-index: 10;
}

.topbar-brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.topbar-brand strong,
.topbar-brand span {
    display: block;
}

.topbar-brand span {
    color: var(--muted);
    font-size: 12px;
}

.user-area {
    display: flex;
    align-items: center;
    gap: 14px;

    font-size: 13px;
    font-weight: 650;
}

.logout-button {
    padding: 8px 12px;

    border: 1px solid var(--border);
    border-radius: 9px;

    background: white;
    cursor: pointer;
}

.dashboard {
    width: min(1280px, calc(100% - 40px));
    margin: 38px auto;
}

.dashboard-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
}

.primary-action {
    min-height: 46px;
    padding: 0 20px;
}

.status-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;

    margin-top: 30px;
}

.status-card,
.content-card {
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 8px 30px rgba(20,44,80,.05);
}

.status-card {
    padding: 21px;
    border-radius: var(--radius);
}

.status-card span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
}

.status-card strong {
    display: block;
    margin: 11px 0 4px;

    font-size: 32px;
}

.status-card small {
    color: var(--muted);
}

.content-card {
    margin-top: 20px;
    border-radius: var(--radius);
    overflow: hidden;
}

.content-card-header {
    padding: 22px;
    border-bottom: 1px solid var(--border);
}

.content-card-header h2 {
    margin: 0 0 5px;
    font-size: 18px;
}

.content-card-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.empty-state {
    padding: 70px 20px;
    text-align: center;
    color: var(--muted);
}


/* TABLET */

@media (max-width: 900px) {

    .status-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


/* PHONE */

@media (max-width: 600px) {

    .login-page {
        padding: 18px;
        place-items: start center;
    }

    .login-container {
        margin-top: 8vh;
    }

    .login-card {
        padding: 25px 20px;
        border-radius: 19px;
    }

    .topbar {
        padding: 10px 14px;
    }

    .user-area > span {
        display: none;
    }

    .dashboard {
        width: calc(100% - 28px);
        margin: 25px auto;
    }

    .dashboard-heading {
        display: grid;
        align-items: stretch;
    }

    .primary-action {
        width: 100%;
    }

    .status-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 22px;
    }

    .status-card {
        padding: 16px;
    }

    .status-card strong {
        font-size: 27px;
    }

    .status-card span {
        font-size: 9px;
    }
}
/* OBRIXEL LOGO */

.brand-logo {
    display: block;
    width: auto;
    object-fit: contain;
}

.login-logo {
    max-width: 150px;
    max-height: 64px;
}

.topbar-logo {
    max-width: 105px;
    max-height: 44px;
}

@media (max-width: 600px) {

    .login-logo {
        max-width: 125px;
        max-height: 54px;
    }

    .topbar-logo {
        max-width: 90px;
        max-height: 38px;
    }
}


/* NAVIGATION & DEFINITIONS */

.app-nav {
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.94);
}

.app-nav-inner {
    width: min(1280px, calc(100% - 40px));
    min-height: 48px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

.app-nav-inner::-webkit-scrollbar {
    display: none;
}

.nav-link {
    flex: 0 0 auto;
    padding: 10px 13px;
    border-radius: 9px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
}

.nav-link:hover,
.nav-link.active {
    color: var(--blue);
    background: var(--blue-soft);
}

.management-grid {
    display: grid;
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    gap: 20px;
    align-items: start;
}

.definition-card,
.branch-list-card {
    margin-top: 30px;
}

.definition-form {
    display: grid;
    gap: 16px;
    padding: 22px;
}

.form-field {
    display: grid;
    gap: 7px;
}

.form-field label {
    font-size: 13px;
    font-weight: 700;
}

.form-field input,
.form-field select,
.form-field textarea {
    width: 100%;
    padding: 12px 13px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;
    color: var(--text);
    outline: none;
    font: inherit;
}

.form-field input,
.form-field select {
    min-height: 46px;
}

.form-field textarea {
    resize: vertical;
    min-height: 100px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 4px var(--blue-soft);
}

.form-submit {
    width: 100%;
    margin-top: 2px;
}

.page-alert {
    margin-top: 20px;
    padding: 13px 15px;
    border-radius: 11px;
    font-size: 13px;
    font-weight: 700;
}

.page-alert.error {
    color: var(--danger);
    background: #fff0f0;
    border: 1px solid #ffd3d3;
}

.responsive-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th,
.data-table td {
    padding: 14px 15px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: middle;
}

.data-table th {
    color: var(--muted);
    background: #f9fbfe;
    font-size: 11px;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.status-badge.active {
    color: #14733b;
    background: #e8f8ee;
}

.status-badge.passive {
    color: #7a5360;
    background: #f4edf0;
}

.table-action {
    text-align: right !important;
}

.table-action form {
    margin: 0;
}

.secondary-action {
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: white;
    color: var(--text);
    cursor: pointer;
    font-weight: 700;
    white-space: nowrap;
}

.secondary-action:hover {
    border-color: var(--blue);
    color: var(--blue);
}

@media (max-width: 1000px) {
    .management-grid {
        grid-template-columns: 1fr;
    }

    .branch-list-card {
        margin-top: 0;
    }
}

@media (max-width: 600px) {
    .app-nav-inner {
        width: calc(100% - 20px);
    }

    .nav-link {
        padding: 9px 11px;
        font-size: 12px;
    }

    .definition-card {
        margin-top: 22px;
    }

    .definition-form {
        padding: 18px;
    }

    .responsive-table-wrap {
        overflow: visible;
    }

    .data-table,
    .data-table tbody,
    .data-table tr,
    .data-table td {
        display: block;
        width: 100%;
    }

    .data-table thead {
        display: none;
    }

    .data-table tr {
        padding: 14px 16px;
        border-bottom: 1px solid var(--border);
    }

    .data-table tr:last-child {
        border-bottom: 0;
    }

    .data-table td {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        gap: 10px;
        padding: 6px 0;
        border: 0;
        overflow-wrap: anywhere;
    }

    .data-table td::before {
        content: attr(data-label);
        color: var(--muted);
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
    }

    .data-table .table-action {
        display: block;
        padding-top: 11px;
        text-align: left !important;
    }

    .data-table .table-action::before {
        display: none;
    }

    .secondary-action {
        width: 100%;
        min-height: 40px;
    }
}


/* ===== OBRIXEL BRANCH UI REFINEMENT ===== */

.topbar {
    min-height: 82px;
}

.topbar-logo {
    width: auto;
    max-width: 190px;
    max-height: 62px;
}

.topbar-brand {
    gap: 16px;
}

.topbar-brand > span {
    font-size: 13px;
    font-weight: 650;
}

.branch-heading {
    align-items: center;
}

.branch-count-card {
    min-width: 170px;
    padding: 16px 20px;
    border: 1px solid #d7e5fb;
    border-radius: 15px;
    background: linear-gradient(145deg, #f8fbff, #edf5ff);
}

.branch-count-card span {
    display: block;
    color: var(--muted);
    font-size: 12px;
}

.branch-count-card strong {
    display: block;
    margin-top: 4px;
    color: var(--text);
    font-size: 27px;
}

.page-alert.success {
    color: #14733b;
    background: #eaf8ef;
    border: 1px solid #ccebd7;
}

.branch-list-card {
    overflow: visible;
}

.branch-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.data-table tbody tr {
    transition: background .15s ease;
}

.data-table tbody tr:hover {
    background: #fbfdff;
}

.table-action {
    min-width: 190px;
}

.action-group {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
}

.action-group form {
    margin: 0;
}

.action-button {
    min-height: 38px;
    padding: 0 13px;
    border-radius: 9px;
    background: white;
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}

.action-button:hover {
    transform: translateY(-1px);
}

.edit-action {
    color: var(--blue);
    border: 1px solid #9fc4ff;
    background: #f6faff;
}

.edit-action:hover {
    background: var(--blue-soft);
    box-shadow: 0 5px 14px rgba(20, 103, 232, .12);
}

.deactivate-action {
    color: #d43a3a;
    border: 1px solid #ffc0c0;
    background: #fff8f8;
}

.deactivate-action:hover {
    background: #fff0f0;
    box-shadow: 0 5px 14px rgba(201, 52, 52, .10);
}

.activate-action {
    color: #14834b;
    border: 1px solid #a9e0c3;
    background: #f4fcf7;
}

.activate-action:hover {
    background: #eaf8ef;
    box-shadow: 0 5px 14px rgba(20, 131, 75, .10);
}

/* MODAL */

body.modal-open {
    overflow: hidden;
}

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 22px;
    background: rgba(15, 27, 48, .48);
    backdrop-filter: blur(4px);
}

.modal-backdrop.open {
    display: flex;
}

.edit-modal {
    width: min(680px, 100%);
    max-height: calc(100vh - 44px);
    overflow-y: auto;
    border: 1px solid rgba(255,255,255,.9);
    border-radius: 20px;
    background: white;
    box-shadow: 0 30px 90px rgba(17, 38, 70, .28);
    animation: modalIn .16s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 26px 20px;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    margin: 6px 0 5px;
    font-size: 22px;
}

.modal-header p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.modal-close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 10px;
    background: #f4f7fb;
    color: #657187;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.modal-close:hover {
    background: #eaf0f7;
}

.modal-form {
    padding: 24px 26px 26px;
}

.modal-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.modal-form-grid .form-field:last-child {
    grid-column: 2;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.modal-cancel {
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: white;
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.modal-save {
    min-height: 44px;
}

@media (max-width: 900px) {
    .topbar-logo {
        max-width: 165px;
        max-height: 56px;
    }

    .branch-heading {
        align-items: stretch;
    }

    .branch-count-card {
        min-width: 145px;
    }
}

@media (max-width: 600px) {
    .topbar {
        min-height: 72px;
    }

    .topbar-logo {
        max-width: 145px;
        max-height: 50px;
    }

    .topbar-brand > span {
        display: none;
    }

    .branch-count-card {
        width: 100%;
        margin-top: 4px;
    }

    .data-table .table-action {
        display: block;
    }

    .action-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .action-button {
        width: 100%;
        min-height: 42px;
    }

    .modal-backdrop {
        align-items: flex-end;
        padding: 10px;
    }

    .edit-modal {
        width: 100%;
        max-height: 92vh;
        border-radius: 20px 20px 14px 14px;
    }

    .modal-header {
        padding: 20px 18px 17px;
    }

    .modal-form {
        padding: 18px;
    }

    .modal-form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .modal-form-grid .form-field:last-child {
        grid-column: 1;
    }

    .modal-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .modal-save,
    .modal-cancel {
        width: 100%;
    }
}

/* ===== RECORD FILTERS ===== */
.record-filter-grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(3, 1fr);
    gap: 14px;
}
.record-filter-grid .filter-search {
    grid-column: span 2;
}
.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
}
.filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}
.status-card {
    text-decoration: none;
    color: inherit;
}
@media (max-width: 900px) {
    .record-filter-grid {
        grid-template-columns: 1fr 1fr;
    }
    .record-filter-grid .filter-search {
        grid-column: span 2;
    }
}
@media (max-width: 600px) {
    .record-filter-grid {
        grid-template-columns: 1fr;
    }
    .record-filter-grid .filter-search {
        grid-column: span 1;
    }
    .filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
    .filter-actions > * {
        width: 100%;
    }
}

/* ===== REPAIR ORDER PHOTO GALLERY ===== */
.photo-groups { display: grid; gap: 24px; }
.photo-group h3, .photo-upload-panel h3 { margin: 0 0 12px; }
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 14px;
}
.receipt-gallery { grid-template-columns: repeat(auto-fill, minmax(230px, 320px)); }
.photo-card {
    appearance: none;
    border: 1px solid rgba(120, 140, 170, .22);
    border-radius: 14px;
    padding: 0;
    overflow: hidden;
    background: var(--card-bg, #fff);
    cursor: zoom-in;
    text-align: left;
}
.photo-card img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    background: #eef2f7;
}
.receipt-photo-card img { height: 260px; object-fit: contain; }
.photo-meta {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
}
.photo-meta small { opacity: .7; }
.photo-upload-panel {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid rgba(120, 140, 170, .18);
}
.photo-upload-panel p { margin-top: 4px; }
.photo-upload-form {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 14px;
    align-items: end;
    margin-top: 16px;
}
.photo-help { display: block; margin-top: 10px; opacity: .7; }
.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0,0,0,.82);
}
.photo-lightbox.open { display: flex; }
.photo-lightbox-dialog {
    position: relative;
    max-width: min(1100px, 96vw);
    max-height: 94vh;
}
.photo-lightbox-dialog img {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    object-fit: contain;
    border-radius: 12px;
}
.photo-lightbox-close {
    position: absolute;
    right: -12px;
    top: -12px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}
.photo-lightbox-caption {
    margin-top: 8px;
    text-align: center;
    color: #fff;
}
@media (max-width: 760px) {
    .photo-upload-form { grid-template-columns: 1fr; }
    .photo-gallery, .receipt-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .photo-card img { height: 145px; }
    .receipt-photo-card img { height: 200px; }
}
@media (max-width: 460px) {
    .photo-gallery, .receipt-gallery { grid-template-columns: 1fr; }
}

/* ===== USER MANAGEMENT / TOUCH ===== */
.branch-chip{display:inline-flex;padding:5px 9px;margin:2px;border-radius:999px;background:rgba(40,120,255,.10);font-size:12px}
.user-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.branch-access-block{margin-top:22px}.branch-access-block h3{margin-bottom:4px}.branch-select-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:14px}
.branch-select-card{display:flex;align-items:center;gap:12px;min-height:68px;padding:13px;border:1px solid rgba(120,140,170,.25);border-radius:14px;cursor:pointer}
.branch-select-card:has(input:checked){border-width:2px}.branch-select-card input{width:21px;height:21px;flex:0 0 auto}.branch-select-card span{display:grid;gap:3px}.branch-select-card small{opacity:.7}
.password-reset-row{display:grid;grid-template-columns:minmax(240px,1fr) auto;gap:14px;align-items:end}
@media(max-width:800px){.branch-select-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.user-form-grid,.branch-select-grid,.password-reset-row{grid-template-columns:1fr}.branch-select-card{min-height:76px}.table-actions{flex-wrap:wrap}.table-actions>*{min-height:44px}}


/* =========================================================
   OBRIXEL UI v2 — ELECTRIC BLUE / ORANGE / GRAPHITE
   ========================================================= */

:root {
    --bg: #e9eef5;
    --surface: #f8fafc;
    --surface-2: #eef3f8;
    --surface-3: #e4eaf2;
    --text: #152033;
    --muted: #667286;
    --border: #cfd8e5;

    --blue: #087cff;
    --blue-dark: #0057c8;
    --blue-soft: #e5f1ff;
    --blue-glow: rgba(8,124,255,.22);

    --orange: #ff8a1f;
    --orange-dark: #dc6810;
    --orange-soft: #fff0df;

    --graphite: #263241;
    --graphite-2: #344253;
    --danger: #c9463f;

    --radius: 18px;
    --shadow: 0 14px 38px rgba(30,49,76,.10);
    --shadow-soft: 0 7px 20px rgba(30,49,76,.07);
}

html, body {
    background:
        radial-gradient(circle at 8% 0%, rgba(8,124,255,.08), transparent 28%),
        radial-gradient(circle at 92% 12%, rgba(255,138,31,.06), transparent 24%),
        var(--bg);
}

.app-page {
    min-height: 100vh;
}

/* TOP BAR — layered graphite shell */
.topbar {
    min-height: 84px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background:
        linear-gradient(110deg, #202b38 0%, #2b3949 58%, #222e3b 100%);
    box-shadow: 0 10px 30px rgba(21,32,51,.16);
}

.topbar-brand > span,
.user-area {
    color: #dce5f1;
}

.topbar-brand > span {
    font-weight: 700;
    letter-spacing: .02em;
}

/* 3D / illuminated logo treatment without altering logo artwork */
.topbar-logo {
    max-width: 205px;
    max-height: 66px;
    padding: 7px 10px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(255,255,255,.10), rgba(255,255,255,.025));
    border: 1px solid rgba(255,255,255,.12);
    filter:
        drop-shadow(0 3px 1px rgba(0,0,0,.30))
        drop-shadow(0 8px 12px rgba(0,0,0,.25))
        drop-shadow(0 0 10px rgba(8,124,255,.26));
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.12),
        0 8px 24px rgba(0,0,0,.16);
}

.logout-button {
    min-height: 38px;
    padding: 0 14px;
    color: #eef5ff;
    border-color: rgba(255,255,255,.18);
    background: rgba(255,255,255,.07);
    transition: .16s ease;
}

.logout-button:hover {
    border-color: rgba(255,138,31,.65);
    background: rgba(255,138,31,.13);
}

/* NAV */
.app-nav {
    position: sticky;
    top: 84px;
    z-index: 9;
    border-bottom: 1px solid #cbd5e2;
    background: rgba(239,244,249,.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 5px 18px rgba(32,50,75,.06);
}

.app-nav-inner {
    min-height: 54px;
}

.nav-link {
    position: relative;
    padding: 10px 14px;
    border-radius: 11px;
    color: #5c687a;
    transition: .16s ease;
}

.nav-link:hover {
    color: var(--blue-dark);
    background: rgba(8,124,255,.07);
}

.nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    box-shadow: 0 7px 18px rgba(8,124,255,.20);
}

.nav-link.active::after {
    content: "";
    position: absolute;
    left: 22%;
    right: 22%;
    bottom: -7px;
    height: 3px;
    border-radius: 3px;
    background: var(--orange);
}

/* PAGE / CARDS */
.dashboard {
    margin-top: 32px;
}

.dashboard-heading {
    padding: 5px 2px 8px;
}

.eyebrow {
    color: var(--blue-dark);
}

.dashboard-heading h1 {
    color: #172235;
    letter-spacing: -.025em;
}

.status-card,
.content-card {
    border: 1px solid rgba(155,170,191,.42);
    background:
        linear-gradient(145deg, rgba(255,255,255,.90), rgba(244,247,251,.96));
    box-shadow: var(--shadow-soft);
}

.content-card {
    box-shadow: var(--shadow);
}

.content-card-header {
    background: linear-gradient(90deg, rgba(8,124,255,.045), rgba(255,138,31,.025));
}

.status-card {
    position: relative;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.status-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(var(--blue), #45a4ff);
}

.status-card:nth-child(4n+4)::before {
    background: linear-gradient(var(--orange), #ffad5f);
}

.status-card:hover {
    transform: translateY(-3px);
    border-color: rgba(8,124,255,.32);
    box-shadow: 0 15px 35px rgba(30,49,76,.13);
}

/* BUTTON SYSTEM */
.primary-action,
.login-card button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    background: linear-gradient(135deg, #1689ff, #0062d8);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 7px 17px rgba(8,124,255,.22);
    transition: transform .14s ease, box-shadow .14s ease;
}

.primary-action:hover,
.login-card button:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.24),
        0 10px 22px rgba(8,124,255,.28);
}

.table-actions,
.action-group {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.table-actions form,
.action-group form {
    margin: 0;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    min-height: 38px;
    padding: 0 13px;
    border-radius: 10px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    line-height: 1;
}

.edit-action {
    color: #fff;
    border: 1px solid #087cff;
    background: linear-gradient(135deg, #1689ff, #066bd7);
    box-shadow: 0 5px 13px rgba(8,124,255,.18);
}

.edit-action:hover {
    color: #fff;
    background: linear-gradient(135deg, #087cff, #0057c8);
    box-shadow: 0 7px 16px rgba(8,124,255,.25);
}

.deactivate-action {
    color: #8a460d;
    border: 1px solid #f1b06f;
    background: linear-gradient(145deg, #fff5e9, #ffe5c7);
}

.deactivate-action:hover {
    color: #743705;
    background: linear-gradient(145deg, #ffedda, #ffd7ad);
    box-shadow: 0 6px 14px rgba(255,138,31,.16);
}

.activate-action {
    color: #17623b;
    border: 1px solid #9fd3b8;
    background: #e9f7ef;
}

/* TABLE */
.data-table th {
    color: #566377;
    background: #e9eef5;
    border-bottom-color: #cbd5e2;
}

.data-table td {
    background: rgba(255,255,255,.58);
}

.data-table tbody tr:hover td {
    background: #f1f6fc;
}

/* FORMS */
.form-field input,
.form-field select,
.form-field textarea {
    border-color: #c8d3e1;
    background: #f9fbfd;
    box-shadow: inset 0 1px 2px rgba(30,49,76,.035);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    background: #fff;
    border-color: var(--blue);
    box-shadow: 0 0 0 4px rgba(8,124,255,.12);
}

.branch-select-card {
    background: #f5f8fb;
    border-color: #cbd5e2;
    transition: .15s ease;
}

.branch-select-card:hover {
    background: #eef5fd;
    border-color: #a7c9f4;
}

.branch-select-card:has(input:checked) {
    border-color: var(--blue);
    background: linear-gradient(145deg, #edf6ff, #f8fbff);
    box-shadow: 0 5px 16px rgba(8,124,255,.10);
}

.branch-chip {
    color: #075ebc;
    background: #e3f0ff;
    border: 1px solid #c5dfff;
}

/* STATUS */
.status-badge.active {
    color: #12613a;
    background: #e3f5eb;
    border: 1px solid #c4e8d3;
}

.status-badge.passive {
    color: #775245;
    background: #f3ebe7;
    border: 1px solid #e2d2ca;
}

/* MODAL */
.modal-backdrop {
    background: rgba(19,29,42,.62);
    backdrop-filter: blur(7px);
}

.edit-modal {
    border-color: rgba(255,255,255,.7);
    background: #f7f9fc;
    box-shadow: 0 34px 100px rgba(12,25,43,.34);
}

.modal-header {
    background: linear-gradient(105deg, #eef6ff, #f7f9fc 68%, #fff2e6);
}

/* LOGIN v2 */
.login-page {
    background:
        radial-gradient(circle at 14% 10%, rgba(8,124,255,.18), transparent 31%),
        radial-gradient(circle at 86% 80%, rgba(255,138,31,.12), transparent 29%),
        linear-gradient(145deg, #dfe6ef, #f1f4f8);
}

.login-card {
    border-color: rgba(255,255,255,.76);
    background: rgba(247,250,253,.94);
    box-shadow: 0 28px 75px rgba(30,49,76,.16);
}

.login-logo {
    filter:
        drop-shadow(0 3px 1px rgba(0,0,0,.18))
        drop-shadow(0 8px 13px rgba(8,124,255,.17));
}

/* TOUCH / TABLET / PHONE */
@media (max-width: 900px) {
    .topbar {
        min-height: 78px;
    }
    .app-nav {
        top: 78px;
    }
    .topbar-logo {
        max-width: 175px;
        max-height: 58px;
    }
    .action-button {
        min-height: 42px;
    }
}

@media (max-width: 600px) {
    .topbar {
        min-height: 70px;
    }
    .app-nav {
        top: 70px;
    }
    .topbar-logo {
        max-width: 142px;
        max-height: 48px;
        padding: 5px 7px;
    }
    .status-card {
        min-height: 122px;
    }
    .data-table tr {
        margin: 10px 10px 14px;
        padding: 14px;
        width: auto;
        border: 1px solid #ccd6e3;
        border-radius: 14px;
        background: rgba(248,250,252,.92);
        box-shadow: 0 6px 16px rgba(30,49,76,.06);
    }
    .data-table td {
        background: transparent !important;
    }
    .table-actions,
    .action-group {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }
    .action-button,
    .table-actions form,
    .table-actions form button {
        width: 100%;
        min-height: 46px;
    }
}

/* ===== OBRIXEL USER PERMISSIONS ===== */
.permission-access-block{margin-top:26px;padding-top:22px;border-top:1px solid var(--border)}
.permission-heading h3{margin:0 0 5px}.permission-heading p{margin:0;color:var(--muted)}
.permission-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:16px}
.permission-card{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;min-height:92px;padding:15px 16px;border:1px solid #cbd5e2;border-radius:15px;background:#f5f8fb;cursor:pointer;transition:.16s ease}
.permission-card:hover{border-color:#a7c9f4;background:#eef5fd}
.permission-card>input{position:absolute;opacity:0;pointer-events:none}
.permission-copy{display:grid;gap:5px}.permission-copy strong{color:var(--text);font-size:14px}.permission-copy small{color:var(--muted);line-height:1.4}
.permission-switch{position:relative;display:flex;align-items:center;width:132px;height:38px;padding:3px;border-radius:12px;background:#e1e6ed;border:1px solid #cbd3de}
.permission-state{display:flex;align-items:center;justify-content:center;width:100%;height:30px;border-radius:9px;font-size:10px;font-weight:900;letter-spacing:.03em}
.permission-state.on{display:none;color:#fff;background:linear-gradient(135deg,var(--blue),var(--blue-dark));box-shadow:0 4px 12px var(--blue-glow)}
.permission-state.off{color:#697587}
.permission-card:has(input:checked){border-color:var(--blue);background:linear-gradient(145deg,#edf6ff,#f8fbff);box-shadow:0 5px 16px rgba(8,124,255,.10)}
.permission-card:has(input:checked) .permission-state.off{display:none}
.permission-card:has(input:checked) .permission-state.on{display:flex}
.admin-disabled{opacity:.48;filter:saturate(.6);pointer-events:none}
.admin-disabled::after{content:"ADMIN: otomatik tam yetki";display:block;margin-top:10px;color:var(--blue-dark);font-size:12px;font-weight:800}
@media(max-width:760px){.permission-grid{grid-template-columns:1fr}.permission-card{min-height:96px}.permission-switch{width:118px}}
@media(max-width:430px){.permission-card{grid-template-columns:1fr;gap:10px}.permission-switch{width:100%}}


/* =========================================================
   OBRIXEL RECORDS — COMPACT MOBILE/TABLET FILTER UX
   ========================================================= */

.record-filter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.filter-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 0 13px;
    border: 1px solid #b9c9db;
    border-radius: 11px;
    background: #f5f8fc;
    color: #314055;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.filter-toggle:hover {
    border-color: var(--blue);
    color: var(--blue-dark);
    background: #edf5ff;
}

.filter-count {
    display: inline-grid;
    place-items: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--orange);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
}

.filter-chevron {
    min-width: 12px;
    text-align: center;
    font-size: 15px;
    line-height: 1;
}

.filter-panel {
    display: block;
}

.filter-panel.is-collapsed {
    display: none;
}

.compact-filter-form {
    padding-top: 16px;
}

.records-page .content-card-header {
    padding: 18px 20px;
}

.records-page .empty-state {
    padding: 42px 18px;
}

/* Tablet: denser without compromising touch size */
@media (max-width: 900px) {
    .records-page {
        width: calc(100% - 24px);
        margin: 20px auto;
    }

    .records-page .dashboard-heading {
        gap: 12px;
    }

    .records-page .dashboard-heading h1 {
        margin-top: 5px;
        margin-bottom: 4px;
        font-size: 24px;
    }

    .records-page .dashboard-heading p {
        font-size: 12px;
    }

    .records-page .content-card {
        margin-top: 14px;
        border-radius: 15px;
    }

    .records-page .content-card-header {
        padding: 14px 15px;
    }

    .records-page .content-card-header h2 {
        font-size: 16px;
        margin-bottom: 3px;
    }

    .records-page .content-card-header p {
        font-size: 12px;
    }

    .compact-filter-form {
        padding: 14px 15px 15px;
        gap: 11px;
    }

    .record-filter-grid {
        gap: 10px;
    }

    .compact-filter-form .form-field {
        gap: 5px;
    }

    .compact-filter-form .form-field label {
        font-size: 11px;
    }

    .compact-filter-form .form-field input,
    .compact-filter-form .form-field select {
        min-height: 42px;
        padding: 8px 10px;
        border-radius: 10px;
        font-size: 13px;
    }

    .filter-actions {
        margin-top: 11px;
        gap: 8px;
    }

    .filter-actions .primary-action,
    .filter-actions .modal-cancel {
        min-height: 42px;
    }
}

/* Phone: compact cards + collapsible filters */
@media (max-width: 600px) {
    .records-page {
        width: calc(100% - 18px);
        margin: 14px auto 22px;
    }

    .records-page .dashboard-heading {
        gap: 9px;
        padding-top: 0;
    }

    .records-page .dashboard-heading h1 {
        font-size: 21px;
    }

    .records-page .dashboard-heading p {
        font-size: 11px;
        line-height: 1.4;
    }

    .records-page .dashboard-heading .primary-action {
        min-height: 42px;
        padding: 0 14px;
        font-size: 13px;
    }

    .record-filter-card {
        margin-bottom: 12px !important;
    }

    .record-filter-header {
        padding: 11px 12px !important;
    }

    .record-filter-header > div p {
        display: none;
    }

    .record-filter-header h2 {
        font-size: 15px !important;
    }

    .filter-toggle {
        min-height: 38px;
        padding: 0 10px;
        font-size: 11px;
    }

    .compact-filter-form {
        padding: 10px 12px 12px;
    }

    .record-filter-grid {
        gap: 8px;
    }

    .compact-filter-form .form-field {
        gap: 4px;
    }

    .compact-filter-form .form-field input,
    .compact-filter-form .form-field select {
        min-height: 40px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .filter-actions {
        margin-top: 9px;
    }

    .filter-actions .primary-action,
    .filter-actions .modal-cancel {
        min-height: 40px;
        font-size: 12px;
    }

    .records-page .content-card-header {
        padding: 11px 12px;
    }

    .records-page .data-table tr {
        margin: 6px 6px 9px;
        padding: 10px 11px;
        border-radius: 12px;
    }

    .records-page .data-table td {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 7px;
        padding: 4px 0;
        font-size: 12px;
        line-height: 1.35;
    }

    .records-page .data-table td::before {
        font-size: 9px;
    }

    .records-page .status-badge {
        min-height: 24px;
        padding: 0 8px;
        font-size: 10px;
    }
}
/* =========================================================
   OBRIXEL - DASHBOARD COMPACT STATUS CARDS
   Sadece Dashboard durum kutularını küçültür.
   ========================================================= */

.dashboard .status-grid {
    gap: 16px;
    margin-top: 18px;
    margin-bottom: 20px;
}

.dashboard .status-card {
    min-height: 82px;
    padding: 13px 20px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    column-gap: 14px;
    row-gap: 3px;
    align-items: center;
}

.dashboard .status-card > span {
    grid-column: 1;
    grid-row: 1;
    margin: 0;
    font-size: 11px;
    line-height: 1.2;
}

.dashboard .status-card > strong {
    grid-column: 2;
    grid-row: 1 / 3;
    align-self: center;
    margin: 0;
    font-size: 30px;
    line-height: 1;
}

.dashboard .status-card > small {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    line-height: 1.2;
}

/* Tablet */
@media (max-width: 900px) {
    .dashboard .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .dashboard .status-card {
        min-height: 74px;
        padding: 11px 16px;
    }

    .dashboard .status-card > strong {
        font-size: 27px;
    }
}

/* Telefon */
@media (max-width: 520px) {
    .dashboard .status-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
        margin-top: 12px;
        margin-bottom: 15px;
    }

    .dashboard .status-card {
        min-height: 68px;
        padding: 10px 12px;
        column-gap: 8px;
        border-radius: 13px;
    }

    .dashboard .status-card > span {
        font-size: 9px;
    }

    .dashboard .status-card > strong {
        font-size: 24px;
    }

    .dashboard .status-card > small {
        font-size: 10px;
    }
}
/* =========================================================
   OBRIXEL - REPAIR ORDER STATUS ROWS
   Tamir & Sipariş kayıt listesindeki durum renkleri.
   ========================================================= */

.records-page .data-table tbody tr.repair-status-row td {
    transition:
        background-color .16s ease,
        box-shadow .16s ease;
}

/* BEKLİYOR */
.records-page .data-table tbody tr.status-bekliyor td {
    background: #f3f5f8;
}

/* İŞLEME ALINDI */
.records-page .data-table tbody tr.status-isleme-alindi td {
    background: #eaf4ff;
}

/* KALİTE KONTROL */
.records-page .data-table tbody tr.status-kalite-kontrol td {
    background: #fff5df;
}

/* GÖNDERİLDİ */
.records-page .data-table tbody tr.status-gonderildi td {
    background: #eaf7ef;
}

/* İPTAL */
.records-page .data-table tbody tr.status-iptal td {
    background: #fff0f0;
}


/* Hover sırasında durum rengi kaybolmasın, sadece biraz belirginleşsin */

.records-page .data-table tbody tr.status-bekliyor:hover td {
    background: #e9edf2;
}

.records-page .data-table tbody tr.status-isleme-alindi:hover td {
    background: #dceeff;
}

.records-page .data-table tbody tr.status-kalite-kontrol:hover td {
    background: #ffedc8;
}

.records-page .data-table tbody tr.status-gonderildi:hover td {
    background: #dcf1e5;
}

.records-page .data-table tbody tr.status-iptal:hover td {
    background: #ffe2e2;
}


/* Telefon görünümünde tablo satırları kart haline geliyor.
   Hücreler transparent olduğu için rengi karta uygula. */

@media (max-width: 600px) {

    .records-page .data-table tbody tr.status-bekliyor {
        background: #f3f5f8;
        border-color: #d8dee7;
    }

    .records-page .data-table tbody tr.status-isleme-alindi {
        background: #eaf4ff;
        border-color: #bfdcff;
    }

    .records-page .data-table tbody tr.status-kalite-kontrol {
        background: #fff5df;
        border-color: #f0d49c;
    }

    .records-page .data-table tbody tr.status-gonderildi {
        background: #eaf7ef;
        border-color: #bfe1cd;
    }

    .records-page .data-table tbody tr.status-iptal {
        background: #fff0f0;
        border-color: #efc4c4;
    }

    .records-page .data-table tbody tr.repair-status-row td {
        background: transparent !important;
    }
}

/* =========================================================
   OBRIXEL - REPAIR ORDER STATUS BADGES
   Tamir & Sipariş durum rozetlerini satır renkleriyle eşleştirir.
   ========================================================= */

.records-page .repair-status-badge {
    border: 1px solid transparent;
}

.records-page .repair-status-badge.status-bekliyor {
    color: #596575;
    background: #e9edf2;
    border-color: #d2d9e2;
}

.records-page .repair-status-badge.status-isleme-alindi {
    color: #075ebc;
    background: #dceeff;
    border-color: #b8d9fb;
}

.records-page .repair-status-badge.status-kalite-kontrol {
    color: #8a5708;
    background: #ffedc8;
    border-color: #efd28f;
}

.records-page .repair-status-badge.status-gonderildi {
    color: #12613a;
    background: #dcf1e5;
    border-color: #b9dfc9;
}

.records-page .repair-status-badge.status-iptal {
    color: #a02f2f;
    background: #ffe2e2;
    border-color: #efbcbc;
}

/* =========================================================
   OBRIXEL - REPORTS V1
   ========================================================= */
.reports-page .filter-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.report-metric-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:20px 0}.report-metric-grid-three{grid-template-columns:repeat(3,minmax(0,1fr));margin:0}.report-metric-card{min-height:128px;padding:20px;border:1px solid #d5dfeb;border-radius:18px;background:rgba(255,255,255,.78);box-shadow:0 10px 30px rgba(29,55,90,.08);display:flex;flex-direction:column;justify-content:center}.report-metric-card span{font-size:12px;font-weight:800;letter-spacing:.08em;color:#607086}.report-metric-card strong{margin-top:8px;font-size:30px;line-height:1;color:#0b203d}.report-metric-card small{margin-top:9px;color:#687a90}.report-section{margin-top:20px}.report-two-column{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.report-two-column .report-section{min-width:0}.reports-page .data-table tfoot th{font-weight:800;background:#edf3f9}.status-badge.report-status-bekliyor{background:#edf1f5;color:#536274;border-color:#d6dde6}.status-badge.report-status-isleme-alindi{background:#e4f2ff;color:#075da8;border-color:#b9dcff}.status-badge.report-status-kalite-kontrol{background:#fff0ce;color:#955d00;border-color:#f0cf88}@media(max-width:900px){.reports-page .filter-grid,.report-metric-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-two-column{grid-template-columns:1fr}}@media(max-width:600px){.reports-page .filter-grid,.report-metric-grid,.report-metric-grid-three{grid-template-columns:1fr}.report-metric-card{min-height:108px}}


/* OBRIXEL RAPORLAR v1 - filtre başlık hizası */
.reports-page .filter-grid .form-field label{
    display:block;
    width:100%;
    margin:0 0 8px;
    text-align:center;
    font-size:13px;
    font-weight:800;
    line-height:1.2;
    color:#203a5d;
}


/* =========================================================
   OBRIXEL - REPORTS V1.1
   Kompakt/acilir filtre paneli + cikti aksiyonlari
   ========================================================= */
.reports-page .report-heading{
    display:flex;
    align-items:flex-end;
    justify-content:space-between;
    gap:20px;
}
.reports-page .report-export-actions{
    display:flex;
    gap:10px;
    flex-wrap:wrap;
}
.reports-page .report-export-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:82px;
    height:42px;
    padding:0 18px;
    border:1px solid #c8d8e8;
    border-radius:12px;
    background:rgba(255,255,255,.82);
    color:#0b5fc6;
    font-weight:800;
    text-decoration:none;
    box-shadow:0 8px 22px rgba(29,55,90,.06);
}
.reports-page .report-export-button:hover{
    background:#fff;
    border-color:#8eb9e7;
}
.reports-page .report-filter-panel{
    padding:0;
    overflow:hidden;
}
.reports-page .report-filter-summary{
    list-style:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:18px;
    padding:14px 18px;
    user-select:none;
}
.reports-page .report-filter-summary::-webkit-details-marker{display:none}
.reports-page .report-filter-summary > div{
    min-width:0;
    display:flex;
    align-items:center;
    gap:14px;
}
.reports-page .report-filter-summary strong{
    color:#0b203d;
    font-size:15px;
}
.reports-page .report-filter-summary span{
    color:#687a90;
    font-size:12px;
    white-space:nowrap;
    overflow:hidden;
    text-overflow:ellipsis;
}
.reports-page .report-filter-chevron{
    flex:0 0 auto;
    font-size:20px !important;
    color:#0b5fc6 !important;
    transition:transform .18s ease;
}
.reports-page .report-filter-panel[open] .report-filter-chevron{
    transform:rotate(180deg);
}
.reports-page .report-filter-form{
    border-top:1px solid #d9e3ee;
    padding:15px 18px 14px;
}
.reports-page .report-filter-form .filter-grid{
    grid-template-columns:repeat(4,minmax(150px,1fr));
    gap:14px;
    max-width:1160px;
    margin:0 auto;
}
.reports-page .report-filter-form .form-field{
    min-width:0;
}
.reports-page .report-filter-form .form-field label{
    margin:0 0 6px;
    text-align:center;
    font-size:12px;
    font-weight:800;
}
.reports-page .report-filter-form input,
.reports-page .report-filter-form select{
    width:100%;
    min-height:44px;
    height:44px;
}
.reports-page .report-filter-form .filter-actions{
    max-width:1160px;
    margin:12px auto 0;
    display:flex;
    justify-content:flex-end;
    gap:10px;
}
.reports-page .report-filter-form .filter-actions .modal-cancel,
.reports-page .report-filter-form .filter-actions .primary-action{
    min-height:42px;
    height:42px;
    padding:0 20px;
}
.reports-page .report-cancel-card small{
    font-weight:700;
}
@media(max-width:900px){
    .reports-page .report-heading{align-items:flex-start}
    .reports-page .report-filter-form .filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:600px){
    .reports-page .report-heading{display:block}
    .reports-page .report-export-actions{margin-top:14px}
    .reports-page .report-export-button{flex:1}
    .reports-page .report-filter-summary{padding:13px 14px}
    .reports-page .report-filter-summary > div{display:block}
    .reports-page .report-filter-summary span{display:block;margin-top:3px;max-width:76vw}
    .reports-page .report-filter-form{padding:14px}
    .reports-page .report-filter-form .filter-grid{grid-template-columns:1fr}
    .reports-page .report-filter-form input,
    .reports-page .report-filter-form select{min-height:46px;height:46px}
    .reports-page .report-filter-form .filter-actions{
        display:grid;
        grid-template-columns:1fr 1fr;
    }
}
\n\n/* ===== WORKFLOW WAIT / REVERT ===== */\n.wait-badge {\n    display: inline-flex;\n    align-items: center;\n    min-height: 30px;\n    padding: 5px 10px;\n    margin-left: 7px;\n    border: 1px solid #f0c56f;\n    border-radius: 999px;\n    background: #fff4d8;\n    color: #8a5700;\n    font-size: 12px;\n    font-weight: 800;\n    line-height: 1.15;\n}\n.wait-badge.compact {\n    min-height: 24px;\n    padding: 4px 8px;\n    margin: 5px 0 0;\n    font-size: 10px;\n}\n.wait-info-field {\n    border-left: 3px solid #e8a62c;\n    padding-left: 12px;\n}\n.wait-note { margin-top: 5px; color: var(--muted); }\n.wait-panel {\n    display: flex;\n    align-items: center;\n    justify-content: space-between;\n    gap: 18px;\n    padding: 16px;\n    border: 1px solid #efd18f;\n    border-radius: 14px;\n    background: #fff9ea;\n}\n.wait-panel > div { min-width: 0; }\n.wait-panel strong { display: block; margin: 4px 0; color: #6e4800; }\n.wait-panel p { margin: 5px 0; }\n.wait-panel small { color: var(--muted); }\n.wait-panel-label { font-size: 10px; font-weight: 850; letter-spacing: .08em; color: #a36800; }\n.workflow-note { margin-top: 10px; color: #7a6338; font-size: 12px; }\n.workflow-divider { height: 1px; margin: 20px 0; background: var(--border); }\n.wait-start-form h3, .revert-status-form h3 { margin: 0 0 14px; }\n.field-hint { color: var(--muted); font-weight: 500; }\n.wait-action { color: #8a5700; border-color: #e8bd65; background: #fff8e8; }\n.wait-action:hover { background: #fff0ce; }\n.revert-status-form { padding: 16px; border: 1px dashed #b8c8dc; border-radius: 14px; background: #f8fbff; }\n.revert-summary { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; color: #37506f; }\n.revert-action { color: #365f98; border-color: #a7c0e2; background: #f4f8ff; }\n.revert-action:hover { background: #eaf2ff; }\n.wait-after-revert-toggle { display: flex; align-items: center; gap: 9px; margin: 6px 0 14px; font-weight: 700; cursor: pointer; }\n.wait-after-revert-fields { padding: 12px; margin-bottom: 14px; border: 1px solid #efd18f; border-radius: 12px; background: #fffaf0; }\n.wait-after-revert-fields[hidden] { display: none; }\n@media (max-width: 650px) {\n    .wait-panel { align-items: stretch; flex-direction: column; }\n    .wait-panel form, .wait-panel .primary-action { width: 100%; }\n    .wait-badge { margin-left: 0; margin-top: 7px; }\n}\n
/* ===== REPORT WORKFLOW / WAITING ===== */
.reports-page .report-subset-row td{
    background:rgba(255,246,226,.62);
    color:#5f6670;
}
.reports-page .report-subset-row td:first-child{
    padding-left:28px;
}
.reports-page .report-subset-label{
    display:inline-block;
    margin-right:8px;
    font-weight:800;
    color:#a66700;
}
.reports-page .report-subset-row small{
    color:#7d8794;
}
.reports-page .report-subsection{
    margin-top:18px;
    padding-top:18px;
    border-top:1px solid #dde5ee;
}
.reports-page .report-subsection h3{
    margin:0;
    color:#0b203d;
    font-size:16px;
}
.reports-page .report-subsection-note{
    margin:5px 0 12px;
    color:#6a7a8e;
    font-size:12px;
}
.reports-page .report-correction-header{
    align-items:center;
}
.reports-page .report-count-chip{
    min-width:46px;
    height:38px;
    padding:0 12px;
    border:1px solid #b9dcff;
    border-radius:999px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:#eaf5ff;
    color:#075da8;
    font-size:18px;
    font-weight:850;
}
@media(max-width:600px){
    .reports-page .report-correction-header{align-items:flex-start}
    .reports-page .report-count-chip{margin-top:4px}
    .reports-page .report-subset-row td:first-child{padding-left:12px}
}
