/* ——— Isee Lens brand system ——— */
:root {
    --isee-navy: #073f87;
    --isee-blue: #0867bd;
    --isee-sky: #28a8e8;
    --isee-ice: #eaf5ff;
    --isee-line: #d9e8f6;
    --isee-ink: #173554;
    --bs-primary: #0867bd;
    --bs-primary-rgb: 8, 103, 189;
    --bs-success: #0876b9;
    --bs-success-rgb: 8, 118, 185;
    --bs-body-color: #173554;
    --bs-body-font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --bs-link-color: #075eae;
    --bs-link-hover-color: #063f87;
    --bs-border-color: #d9e8f6;
}

html,
body {
    min-height: 100%;
}

body {
    color: var(--isee-ink);
    background:
        radial-gradient(circle at 96% 23%, rgba(40, 168, 232, 0.14), transparent 20rem),
        radial-gradient(circle at 4% 82%, rgba(8, 103, 189, 0.11), transparent 24rem),
        linear-gradient(135deg, #f9fcff 0%, #eff7ff 52%, #f8fbff 100%);
    letter-spacing: 0.005em;
}

body::before {
    content: '';
    position: fixed;
    z-index: 0;
    top: 58%;
    right: -13rem;
    width: 35rem;
    height: 35rem;
    opacity: 0.48;
    pointer-events: none;
    background:
        linear-gradient(138deg, transparent 0 33%, rgba(31, 133, 210, 0.14) 33% 37%, transparent 37% 48%, rgba(7, 63, 135, 0.18) 48% 54%, transparent 54% 64%, rgba(40, 168, 232, 0.16) 64% 69%, transparent 69%),
        radial-gradient(circle, rgba(8, 103, 189, 0.42) 1px, transparent 1.8px);
    background-size: auto, 11px 11px;
    transform: rotate(-12deg);
}

/* Keep decorative bg behind content; header above main so dropdowns aren't covered */
#header {
    position: relative;
    z-index: 1030;
}

#main,
#footer {
    position: relative;
    z-index: 1;
}

#main {
    min-height: calc(100vh - 8.75rem);
}

.isee-navbar {
    min-height: 4.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    background: rgba(255, 255, 255, 0.94);
    border-bottom: 1px solid rgba(7, 63, 135, 0.1);
    box-shadow: 0 6px 24px rgba(7, 63, 135, 0.08);
    backdrop-filter: blur(14px);
}

.isee-navbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--isee-navy), var(--isee-sky), var(--isee-blue));
}

.isee-navbar .navbar-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.48rem;
    margin-right: 2.25rem;
    color: var(--isee-navy);
    font-size: 1.32rem;
    font-weight: 700;
    letter-spacing: -0.04em;
}

.isee-navbar .navbar-brand:hover,
.isee-navbar .navbar-brand:focus {
    color: var(--isee-blue);
}

.isee-brand-logo {
    display: block;
    width: auto;
    height: 2.1rem;
    max-width: 14.5rem;
    object-fit: contain;
    object-position: left center;
}

.isee-navbar .navbar-nav .nav-link {
    padding: 0.55rem 0.78rem;
    color: #4d6680;
    font-size: 0.92rem;
    font-weight: 600;
    border-radius: 0.5rem;
    transition: color 0.16s ease, background-color 0.16s ease;
}

.isee-navbar .navbar-nav .nav-link:hover,
.isee-navbar .navbar-nav .nav-link:focus,
.isee-navbar .navbar-nav .nav-link.active,
.isee-navbar .navbar-nav .show > .nav-link {
    color: var(--isee-navy);
    background: #e9f5ff;
}

.isee-navbar .dropdown-menu {
    padding: 0.45rem;
    border: 1px solid var(--isee-line);
    border-radius: 0.75rem;
    box-shadow: 0 14px 32px rgba(7, 63, 135, 0.13);
}

.isee-navbar .dropdown-item {
    padding: 0.56rem 0.7rem;
    color: #38536e;
    font-size: 0.9rem;
    border-radius: 0.45rem;
}

.isee-navbar .dropdown-item:hover,
.isee-navbar .dropdown-item:focus {
    color: var(--isee-navy);
    background: #e9f5ff;
}

.isee-navbar .navbar-toggler.isee-nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 0.28rem;
    width: 2.5rem;
    height: 2.35rem;
    padding: 0.5rem;
    border: 1px solid rgba(7, 63, 135, 0.22);
    border-radius: 0.52rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(7, 63, 135, 0.06);
}

.isee-navbar .navbar-toggler.isee-nav-toggle:focus {
    box-shadow: 0 0 0 0.22rem rgba(40, 168, 232, 0.2);
}

.isee-navbar .navbar-toggler.isee-nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    border-radius: 99px;
    background: var(--isee-navy);
    transition: transform 0.16s ease, opacity 0.16s ease;
}

.isee-navbar .navbar-toggler.isee-nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(0.35rem) rotate(45deg);
}

.isee-navbar .navbar-toggler.isee-nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.isee-navbar .navbar-toggler.isee-nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-0.35rem) rotate(-45deg);
}

@media (max-width: 991.98px) {
    .isee-navbar .navbar-brand {
        margin-right: 0;
    }

    .isee-navbar .navbar-toggler.isee-nav-toggle {
        display: inline-flex;
    }

    .isee-navbar .navbar-collapse {
        margin-top: 0.65rem;
        padding: 0.55rem;
        background: rgba(255, 255, 255, 0.98);
        border: 1px solid var(--isee-line);
        border-radius: 0.75rem;
        box-shadow: 0 16px 36px rgba(7, 63, 135, 0.16);
    }

    .isee-navbar .navbar-collapse .navbar-nav + .navbar-nav {
        margin-top: 0.4rem;
        padding-top: 0.4rem;
        border-top: 1px solid var(--isee-line);
    }
}

main > .container {
    padding: calc(5.75rem + env(safe-area-inset-top, 0px)) 15px 20px;
}

/* Wide pages use container-fluid; keep space under fixed-top navbar */
main > .container-fluid {
    padding-top: calc(5.75rem + env(safe-area-inset-top, 0px));
    padding-bottom: 20px;
}

.footer {
    background-color: #f5f5f5;
    font-size: .9em;
    height: 60px;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

#footer {
    margin-top: 2rem;
    padding: 1.1rem 0;
    color: #6b8298;
    font-size: 0.84rem;
    background: rgba(255, 255, 255, 0.7);
    border-top: 1px solid rgba(7, 63, 135, 0.08);
}

.footer-caption {
    font-size: 0.78rem;
}

.breadcrumb {
    margin-bottom: 1.3rem;
    padding: 0.55rem 0.75rem;
    color: #6d8499;
    font-size: 0.82rem;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(217, 232, 246, 0.78);
    border-radius: 0.55rem;
}

.breadcrumb-item + .breadcrumb-item::before { color: #9fb9cf; }
.breadcrumb-item.active { color: #4b6883; }

.card {
    border: 1px solid rgba(217, 232, 246, 0.9) !important;
    border-radius: 0.85rem;
    box-shadow: 0 7px 24px rgba(22, 79, 130, 0.07) !important;
}

.card-header { border-color: var(--isee-line) !important; }

.btn {
    --bs-btn-font-weight: 650;
    --bs-btn-border-radius: 0.52rem;
    --bs-btn-padding-x: 0.9rem;
    --bs-btn-padding-y: 0.48rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn:hover:not(:disabled) { transform: translateY(-1px); }

.btn-primary,
.btn-success {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--isee-blue);
    --bs-btn-border-color: var(--isee-blue);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #07549b;
    --bs-btn-hover-border-color: #07549b;
    --bs-btn-focus-shadow-rgb: 8, 103, 189;
    --bs-btn-active-bg: #064988;
    --bs-btn-active-border-color: #064988;
    box-shadow: 0 4px 10px rgba(8, 103, 189, 0.17);
}

.btn-outline-primary {
    --bs-btn-color: #075eae;
    --bs-btn-border-color: #8dc6ee;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--isee-blue);
    --bs-btn-hover-border-color: var(--isee-blue);
}

.btn-outline-secondary {
    --bs-btn-color: #56718b;
    --bs-btn-border-color: #c7d9e8;
    --bs-btn-hover-bg: #6b8298;
    --bs-btn-hover-border-color: #6b8298;
}

.form-label,
.form-group > label,
.form-check-label {
    color: #3c5873;
    font-size: 0.9rem;
    font-weight: 600;
}

.form-control,
.form-select {
    color: var(--isee-ink);
    border-color: #cbddeb;
    border-radius: 0.5rem;
    box-shadow: none;
}

.form-control::placeholder { color: #9aafc0; }
.form-control:hover, .form-select:hover { border-color: #93c5e7; }

.form-control:focus,
.form-select:focus,
.form-check-input:focus {
    border-color: #6eb6e7;
    box-shadow: 0 0 0 0.22rem rgba(40, 168, 232, 0.16);
}

.form-check-input:checked {
    background-color: var(--isee-blue);
    border-color: var(--isee-blue);
}

.alert { border-radius: 0.65rem; }

.not-set {
    color: #c55;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: '';
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #212529;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #212529;
    border-bottom-width: 0;
}

.grid-view th {
    white-space: nowrap;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #999;
}

.error-summary {
    color: #a94442;
    background: #fdf7f7;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media(max-width:767px) {
    .nav li > form > button.logout {
        display:block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

.form-group {
    margin-bottom: 1rem;
}

/* Login */
.site-index {
    display: flex;
    align-items: center;
    min-height: calc(100vh - 9.5rem);
}

.site-index > .row { width: 100%; }

.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.13fr) minmax(21rem, 0.87fr);
    overflow: hidden;
    min-height: 33rem;
    background: #fff;
    border: 1px solid rgba(217, 232, 246, 0.95);
    border-radius: 1.25rem;
    box-shadow: 0 20px 55px rgba(7, 63, 135, 0.14);
}

.login-intro {
    position: relative;
    overflow: hidden;
    padding: clamp(2.2rem, 5vw, 4.7rem);
    color: #fff;
    background:
        radial-gradient(circle at 24% 25%, rgba(118, 217, 255, 0.48), transparent 23rem),
        linear-gradient(135deg, #043b7e 0%, #0765b5 58%, #159ee0 100%);
}

.login-intro::before,
.login-intro::after {
    content: '';
    position: absolute;
    pointer-events: none;
}

.login-intro::before {
    right: -10rem;
    bottom: -12rem;
    width: 37rem;
    height: 37rem;
    opacity: 0.8;
    background: repeating-linear-gradient(48deg, transparent 0 3.8rem, rgba(255, 255, 255, 0.15) 3.8rem 5.2rem, transparent 5.2rem 7.4rem);
    transform: rotate(-16deg);
}

.login-intro::after {
    left: -5rem;
    bottom: -8rem;
    width: 24rem;
    height: 24rem;
    opacity: 0.3;
    background-image: radial-gradient(circle, #fff 1.3px, transparent 1.7px);
    background-size: 11px 11px;
}

.login-intro > * { position: relative; z-index: 1; }

.login-intro-brand {
    display: inline-flex;
    align-items: center;
    width: min(100%, 18rem);
    margin-bottom: clamp(3.3rem, 11vw, 7rem);
    padding: 0.55rem 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.65rem;
    box-shadow: 0 6px 18px rgba(0, 38, 90, 0.14);
}

.login-brand-logo {
    display: block;
    width: 100%;
    height: auto;
    max-height: 3.75rem;
    object-fit: contain;
    object-position: left center;
}

.login-kicker {
    margin: 0 0 0.65rem;
    color: #e5f5ff;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.login-intro h1 {
    max-width: 30rem;
    margin: 0;
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3.3rem);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.06;
}

.login-intro-copy {
    max-width: 26rem;
    margin: 1.25rem 0 1.7rem;
    color: rgba(255, 255, 255, 0.84);
    font-size: 1.03rem;
    line-height: 1.6;
}

.login-intro-points {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.login-intro-points span {
    padding: 0.38rem 0.68rem;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
}

.login-card-wrap {
    display: flex;
    align-items: center;
    padding: clamp(2rem, 4vw, 4rem);
    background: linear-gradient(150deg, #fff 0%, #f6fbff 100%);
}

.login-card {
    width: 100%;
    max-width: 23rem;
    margin: 0 auto;
}

.login-card-heading { margin-bottom: 2rem; }
.login-card-heading .login-kicker { color: var(--isee-blue); }

.login-card-heading h2 {
    margin: 0 0 0.5rem;
    color: var(--isee-navy);
    font-size: 1.65rem;
    font-weight: 750;
    letter-spacing: -0.04em;
}

.login-card-heading p:last-child {
    margin: 0;
    color: #72879a;
    font-size: 0.94rem;
}

.login-card .form-group,
.login-card .mb-3 { margin-bottom: 1.1rem !important; }

.login-card .form-control {
    min-height: 2.9rem;
    padding: 0.7rem 0.85rem;
    background: #fff;
}

.login-card .btn-lg {
    min-height: 3rem;
    font-size: 0.98rem;
}

/* ——— Order view ——— */
.order-view-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #f0fdf4 100%);
}

.order-view-hero .letter-spacing {
    letter-spacing: 0.08em;
}

.order-view-status-wrap .order-status-badge {
    font-size: 1rem;
    padding: 0.5em 0.85em;
}

.order-view-track {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(0, 0, 0, 0.06);
    font-size: 0.95rem;
    color: #1e293b;
}

.order-view-tile {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
}

.order-view-product-tiles > [class*="col-"] {
    min-width: 0;
}

.order-view-eye-badge {
    width: 1.65rem;
    height: 1.65rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    vertical-align: middle;
    margin-right: 0.35rem;
}

.order-view-dl dt {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.order-view-dl dd {
    margin-bottom: 1rem;
    color: #0f172a;
}

.order-view-dl dd:last-child {
    margin-bottom: 0;
}

.order-view-dl.row dt {
    padding-top: 0.35rem;
}

.order-view-dl.row dd {
    margin-bottom: 0.75rem;
}

.order-view-empty {
    color: #94a3b8;
    font-style: normal;
}

.order-view-rx thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    border-bottom-width: 1px;
}

.order-view-rx tbody td {
    vertical-align: middle;
    font-variant-numeric: tabular-nums;
}

.order-view-rx tbody tr:last-child td {
    border-bottom: 0;
}

.order-view-muted-card {
    background: #f8fafc;
    border: 1px dashed #cbd5e1 !important;
}

.order-view-remark {
    line-height: 1.6;
    color: #334155;
}

.product-view .badge.rounded-pill.fs-6 {
    font-size: 0.875rem !important;
}

@media (max-width: 767.98px) {
    .order-view-hero .card-body {
        padding: 1.25rem !important;
    }
}

/* ——— List index (shared grid pages) ——— */
.list-index-hero {
    background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 55%, #f0fdf4 100%);
}

.list-index-eyebrow {
    letter-spacing: 0.08em;
}

.list-index-table-card .grid-view {
    border: 0;
}

.list-index-table-card .table-responsive {
    margin: 0;
}

.list-index-table {
    width: 100%;
    margin-bottom: 0;
}

.list-index-table thead th {
    background: #f8fafc;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #64748b;
    font-weight: 600;
    border-bottom: 1px solid #e2e8f0;
    vertical-align: middle;
}

.list-index-table thead th a {
    color: #64748b;
}

.order-index-sort {
    min-width: 11.5rem;
    width: auto;
    max-width: 18rem;
}

.order-index-toolbar {
    background: #fff;
}

.order-bulk-toolbar {
    background: #fcf8f8;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
}

.order-bulk-status,
.order-bulk-payment-status {
    min-width: 14rem;
}

.order-index-table .order-bulk-check {
    width: 1.1rem;
    height: 1.1rem;
}

/* Desktop: allow filter dropdowns to escape the table. Mobile: keep horizontal scroll. */
.order-index-table-card .table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 992px) {
    .order-index-table-card .table-responsive {
        overflow-x: visible;
    }
}

.order-index-table {
    table-layout: auto;
    width: 100%;
}

.order-index-table th,
.order-index-table td {
    white-space: normal;
}

.order-index-table .text-nowrap {
    white-space: nowrap;
}

.list-index-table tbody tr.order-index-row-reorder > td {
    background-color: #fffbeb;
    box-shadow: inset 0 2px 0 #eab308, inset 0 -2px 0 #eab308;
}

.list-index-table tbody tr.order-index-row-reorder > td:first-child {
    box-shadow: inset 2px 2px 0 #eab308, inset 0 -2px 0 #eab308;
}

.list-index-table tbody tr.order-index-row-reorder > td:last-child {
    box-shadow: inset -2px 2px 0 #eab308, inset 0 -2px 0 #eab308;
}

.list-index-table tbody tr.order-index-row-urgent > td,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-reorder > td,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-contractor > td,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-contractor.order-index-row-reorder > td {
    background-color: #fef2f2;
    box-shadow: inset 0 2px 0 #dc2626, inset 0 -2px 0 #dc2626;
}

.list-index-table tbody tr.order-index-row-urgent > td:first-child,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-reorder > td:first-child,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-contractor > td:first-child,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-contractor.order-index-row-reorder > td:first-child {
    box-shadow: inset 2px 2px 0 #dc2626, inset 0 -2px 0 #dc2626;
}

.list-index-table tbody tr.order-index-row-urgent > td:last-child,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-reorder > td:last-child,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-contractor > td:last-child,
.list-index-table tbody tr.order-index-row-urgent.order-index-row-contractor.order-index-row-reorder > td:last-child {
    box-shadow: inset -2px 2px 0 #dc2626, inset 0 -2px 0 #dc2626;
}

.list-index-table tbody tr.order-index-row-contractor > td {
    background-color: #f3e8ff;
    box-shadow: inset 0 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.list-index-table tbody tr.order-index-row-contractor > td:first-child {
    box-shadow: inset 2px 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.list-index-table tbody tr.order-index-row-contractor > td:last-child {
    box-shadow: inset -2px 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.list-index-table tbody tr.order-index-row-contractor.order-index-row-reorder > td {
    background-color: #f3e8ff;
    box-shadow: inset 0 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.list-index-table tbody tr.order-index-row-contractor.order-index-row-reorder > td:first-child {
    box-shadow: inset 2px 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.list-index-table tbody tr.order-index-row-contractor.order-index-row-reorder > td:last-child {
    box-shadow: inset -2px 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.list-index-table tbody tr.optic-index-row-contractor > td {
    background-color: #f3e8ff;
    box-shadow: inset 0 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.list-index-table tbody tr.optic-index-row-contractor > td:first-child {
    box-shadow: inset 2px 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.list-index-table tbody tr.optic-index-row-contractor > td:last-child {
    box-shadow: inset -2px 2px 0 #9333ea, inset 0 -2px 0 #9333ea;
}

.text-bg-contractor {
    background-color: #9333ea !important;
    color: #fff !important;
}

.order-index-subsidiary-filter-cell {
    min-width: 12rem;
}

.order-index-subsidiary-filter-cell .searchable-combobox-list {
    min-width: 16rem;
}

.order-index .order-index-product-filter-cell {
    min-width: 8rem;
    max-width: none;
}

.list-index-table tbody td {
    border-color: #f1f5f9;
    vertical-align: middle;
}

.list-index-table .filters td {
    background: #fafbfc;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
    vertical-align: top;
}

.list-index-grid .btn + .btn {
    margin-left: 0.25rem;
}

.list-index-summary {
    font-size: 0.9375rem;
    font-variant-numeric: tabular-nums;
}

.list-index-page-size-wrap {
    flex: 0 0 auto;
}

.list-index-page-size {
    width: auto;
    min-width: 4.5rem;
}

.list-index-pager .pagination {
    --bs-pagination-padding-x: 0;
    --bs-pagination-padding-y: 0;
    --bs-pagination-border-width: 0;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.list-index-pager .page-item {
    margin: 0;
}

.list-index-pager .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0.35rem 0.7rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    color: #334155;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.55rem;
    text-decoration: none;
    box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.list-index-pager .page-item:first-child .page-link,
.list-index-pager .page-item:last-child .page-link {
    border-radius: 0.55rem;
}

.list-index-pager .page-link:hover,
.list-index-pager .page-link:focus {
    z-index: 2;
    color: #0f172a;
    background: #f8fafc;
    border-color: #cbd5e1;
    box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.12);
}

.list-index-pager .page-item.active .page-link {
    color: #fff;
    background: #2563eb;
    border-color: #2563eb;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.28);
}

.list-index-pager .page-item.disabled .page-link {
    color: #94a3b8;
    background: #f8fafc;
    border-color: #e2e8f0;
    box-shadow: none;
    pointer-events: none;
}

.list-index-pager .page-item.prev .page-link,
.list-index-pager .page-item.next .page-link,
.list-index-pager .page-item.first .page-link,
.list-index-pager .page-item.last .page-link {
    font-size: 1.25rem;
    font-weight: 500;
}

@media (max-width: 575.98px) {
    .list-index-pager .page-link {
        min-width: 2.25rem;
        min-height: 2.25rem;
        font-size: 0.9375rem;
    }
}

.order-index-track,
.list-index-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.8125rem;
    padding: 0.2rem 0.45rem;
    background: #f1f5f9;
    border-radius: 0.25rem;
    color: #334155;
    text-decoration: none;
}

.order-index-track:hover,
.list-index-mono:hover {
    background: #e2e8f0;
    color: #0f172a;
}

.order-index-product,
.list-index-truncate {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    max-width: none;
    word-break: break-word;
}

.order-index-product-filter-cell {
    min-width: 9rem;
    max-width: 12rem;
}

.order-index-product-filter {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    width: 100%;
}

.order-index-product-filter .form-control-sm {
    width: 100%;
    min-width: 0;
}

.order-status-badge {
    font-weight: 500;
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
}

.searchable-combobox-list {
    top: 100%;
    left: 0;
    z-index: 1050;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.searchable-combobox-list .list-group-item-action {
    cursor: pointer;
}

.report-monthly-country .report-optic-filter-toggle {
    position: relative;
    padding-right: 2rem;
}

.report-monthly-country .report-optic-filter-chevron::before {
    content: '';
    position: absolute;
    right: 0.85rem;
    top: 50%;
    margin-top: -0.15rem;
    border: 0.3em solid transparent;
    border-top-color: currentColor;
}

.report-monthly-country .report-optic-filter-modal-dialog {
    max-width: 34rem;
}

.report-monthly-country .report-optic-select-all-wrap {
    background: rgba(var(--bs-primary-rgb), 0.06);
    border: 1px solid rgba(var(--bs-primary-rgb), 0.12);
    border-radius: 0.5rem;
    padding: 0.75rem 0.85rem;
}

.report-monthly-country .report-optic-filter-tree {
    border: 1px solid var(--bs-border-color);
    border-radius: 0.5rem;
    background: #fff;
    max-height: 22rem;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
}

.report-monthly-country .report-optic-group {
    padding: 0.55rem 0;
}

.report-monthly-country .report-optic-group + .report-optic-group {
    border-top: 1px solid var(--bs-border-color-translucent, rgba(0, 0, 0, 0.08));
}

.report-monthly-country .report-optic-group-parent .form-check-label {
    font-weight: 600;
    color: var(--bs-body-color);
}

.report-monthly-country .report-optic-group-children {
    margin: 0.35rem 0 0 0.35rem;
    padding: 0.15rem 0 0.15rem 1rem;
    border-left: 2px solid rgba(var(--bs-primary-rgb), 0.18);
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.report-monthly-country .report-optic-group-child .form-check-label {
    color: var(--bs-secondary-color);
}

.report-monthly-country .report-optic-group-child .form-check-label::before {
    content: '— ';
    color: var(--bs-secondary-color);
}

.report-monthly-country .report-optic-filter .form-check {
    min-height: 1.35rem;
    padding-left: 1.65em;
}

.report-monthly-country .report-optic-filter .form-check-input {
    margin-top: 0.2em;
}

.order-dia-pane {
    max-width: 28rem;
}

.order-dia-pane .form-label {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
}

.order-dia-decentral .form-label {
    font-size: 0.8125rem;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.order-dia-decentral-field {
    min-width: 7rem;
}

/* ——— Price list sheets ——— */
.price-list-sheets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.price-list-sheet {
    background: linear-gradient(180deg, #f4f9ff 0%, #dceaf8 100%);
    color: #14376e;
    border-radius: 0.65rem;
    padding: 0.7rem 0.85rem 0.85rem;
    overflow: hidden;
    border: 1px solid rgba(43, 76, 126, 0.12);
}

.price-list-sheet__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.35rem;
    min-height: 1.6rem;
}

.price-list-sheet__title {
    margin: 0;
    text-align: center;
    font-size: 1.05rem;
    font-weight: 700;
    color: #14376e;
    letter-spacing: 0.01em;
}

.price-list-sheet__add {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
}

.price-list-sheet__table {
    width: 100%;
    border-collapse: collapse;
}

.price-list-sheet__table th,
.price-list-sheet__table td {
    border-bottom: 1px solid #2b4c7e;
    padding: 0.28rem 0.4rem;
    text-align: center;
    vertical-align: middle;
    color: #14376e;
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
}

.price-list-sheet__table thead th {
    font-weight: 700;
    font-size: 0.8rem;
    border-bottom-width: 1px;
}

.price-list-sheet__table tbody th {
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
    width: 1%;
    padding-left: 0.15rem;
}

.price-list-sheet__table tbody tr:last-child th,
.price-list-sheet__table tbody tr:last-child td {
    border-bottom-color: #2b4c7e;
}

.price-list-sheet__axis {
    width: 1%;
    border-bottom-color: transparent !important;
}

.price-list-sheet__price {
    color: #14376e;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

a.price-list-sheet__price:hover {
    text-decoration: underline;
    color: #0f2d5c;
}

.price-list-sheet__empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 0.25rem;
    color: #7ba3d4;
    text-decoration: none;
    font-weight: 600;
    line-height: 1;
}

.price-list-sheet__empty:hover {
    background: rgba(20, 55, 110, 0.08);
    color: #14376e;
}

@media (min-width: 1400px) {
    .price-list-sheets {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .price-list-sheets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767.98px) {
    .price-list-sheets {
        grid-template-columns: 1fr;
    }

    .price-list-sheet {
        padding: 0.75rem;
        border-radius: 0;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .price-list-sheet__title {
        font-size: 1.05rem;
    }

    .price-list-sheet__add {
        position: static;
        transform: none;
        margin-top: 0.35rem;
    }

    .price-list-sheet__header {
        flex-direction: column;
    }

    .price-list-sheet__table th,
    .price-list-sheet__table td {
        padding: 0.35rem 0.4rem;
        font-size: 0.8rem;
    }

    .list-index-table-card {
        border-radius: 0;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
    }

    .list-index-table .ps-4,
    .list-index-table thead th.ps-4,
    .list-index-table .filters td.ps-4 {
        padding-left: 0.75rem !important;
    }

    .list-index-table .pe-4,
    .list-index-table .filters td.pe-4 {
        padding-right: 0.75rem !important;
    }
}

/* ——— Task board (kanban) ——— */
.task-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(220px, 1fr));
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}

.task-board-column {
    min-width: 220px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 220px);
}

.task-board-column-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e2e8f0;
    border-top: 3px solid #94a3b8;
    border-radius: 0.75rem 0.75rem 0 0;
    background: #fff;
}

.task-board-column.tone-new .task-board-column-head { border-top-color: #3b82f6; }
.task-board-column.tone-progress .task-board-column-head { border-top-color: #0ea5e9; }
.task-board-column.tone-review .task-board-column-head { border-top-color: #f59e0b; }
.task-board-column.tone-rework .task-board-column-head { border-top-color: #64748b; }
.task-board-column.tone-rejected .task-board-column-head { border-top-color: #ef4444; }
.task-board-column.tone-done .task-board-column-head { border-top-color: #22c55e; }

.task-board-column-title {
    font-size: 0.85rem;
    font-weight: 650;
    margin: 0;
    line-height: 1.3;
}

.task-board-column-count {
    min-width: 1.5rem;
    height: 1.5rem;
    padding: 0 0.4rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.task-board-column-body {
    padding: 0.75rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.task-board-empty {
    color: #94a3b8;
    font-size: 0.85rem;
    text-align: center;
    padding: 1.25rem 0.5rem;
}

.task-board-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    padding: 0.85rem 0.9rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.task-board-card:hover {
    color: inherit;
    border-color: #cbd5e1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
    transform: translateY(-1px);
}

.task-board-card.is-overdue {
    background: #fef2f2;
    border-color: #fca5a5;
}

.task-board-card.is-overdue:hover {
    border-color: #f87171;
    box-shadow: 0 6px 16px rgba(185, 28, 28, 0.12);
}

.task-board-card-title {
    font-weight: 650;
    font-size: 0.95rem;
    margin-bottom: 0.45rem;
    line-height: 1.35;
}

.task-board-card-meta {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.78rem;
    color: #64748b;
}

.task-board-card-due {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: #475569;
}

.task-board-card-due.is-overdue {
    color: #b91c1c;
    font-weight: 600;
}

.task-board-card-viewed {
    margin-top: 0.45rem;
}

.task-board-card-optic,
.task-board-card-order {
    margin-top: 0.45rem;
    font-size: 0.75rem;
    color: #475569;
}

.task-body-text {
    white-space: pre-wrap;
    line-height: 1.55;
}

.task-result-item {
    background: #f8fafc;
}

@media (max-width: 1199.98px) {
    .task-board {
        grid-template-columns: repeat(6, minmax(240px, 1fr));
    }
}

/* ——— Mobile / PWA ——— */
html {
    overflow-x: hidden;
    overflow-x: clip;
}

body {
    overflow-x: hidden;
    overflow-x: clip;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    padding-bottom: env(safe-area-inset-bottom);
}

#header .navbar.fixed-top {
    padding-top: env(safe-area-inset-top);
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

.list-index-table-card .table-responsive,
.table-responsive {
    -webkit-overflow-scrolling: touch;
}

.task-board {
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
}

.task-board-column {
    scroll-snap-align: start;
}

@media (max-width: 991.98px) {
    .order-bulk-status,
    .order-bulk-payment-status,
    .order-index-sort {
        min-width: 0;
        width: 100%;
        max-width: 100%;
    }

    .order-bulk-toolbar .order-bulk-form,
    .order-index-toolbar .card-body {
        width: 100%;
    }

    .order-bulk-toolbar .card-body {
        align-items: stretch !important;
    }

    .list-index-hero .card-body {
        padding: 1.15rem !important;
    }

    .list-index-hero h1.h2 {
        font-size: 1.45rem;
    }

    .order-view-hero h1.h2,
    .task-view .h2 {
        font-size: 1.45rem;
        word-break: break-word;
    }

    .order-view-hero .btn,
    .task-view .order-view-hero .btn,
    .list-index-hero .d-flex.flex-wrap.gap-2 > .btn {
        flex: 1 1 auto;
    }
}

@media (max-width: 575.98px) {
    main > .container,
    main > .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    /* Prevent iOS zoom on focus */
    .form-control,
    .form-select,
    .form-control-sm,
    .form-select-sm,
    textarea.form-control {
        font-size: 16px;
    }

    .list-index-hero .d-flex.flex-wrap.gap-2 {
        width: 100%;
    }

    .list-index-hero .d-flex.flex-wrap.gap-2 > .btn {
        flex: 1 1 100%;
        text-align: center;
    }

    .order-view-hero .d-flex.flex-wrap.gap-2 > .btn,
    .task-view .order-view-hero .d-flex.flex-wrap.gap-2 > .btn {
        flex: 1 1 calc(50% - 0.25rem);
        text-align: center;
    }

    .order-index-product-filter-cell,
    .order-index-subsidiary-filter-cell {
        min-width: 10rem;
    }

    .order-index-subsidiary-filter-cell .searchable-combobox-list {
        min-width: 100%;
    }

    .report-monthly-country .fs-4 {
        font-size: 1.05rem !important;
        white-space: normal !important;
        word-break: break-word;
        line-height: 1.25;
    }

    .report-monthly-country .btn-group.w-100 {
        flex-direction: column;
    }

    .report-monthly-country .btn-group.w-100 > .btn,
    .report-monthly-country .btn-group.w-100 > label.btn {
        border-radius: 0.375rem !important;
        width: 100%;
    }

    .list-index-summary,
    .list-index-page-size-wrap,
    .list-index-pager {
        width: 100%;
    }

    .list-index-page-size-wrap {
        margin-left: 0 !important;
        margin-right: 0 !important;
        justify-content: flex-start;
    }

    .list-index-pager .pagination {
        justify-content: center;
    }

    #header .navbar-collapse {
        max-height: calc(100vh - 3.5rem - env(safe-area-inset-top));
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .order-dia-decentral-field {
        min-width: 0;
        flex: 1 1 100%;
    }

    .order-dia-decentral .form-label {
        white-space: normal;
    }

    .task-board {
        grid-template-columns: repeat(6, minmax(78vw, 1fr));
        gap: 0.75rem;
        margin-left: -0.75rem;
        margin-right: -0.75rem;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .task-board-column {
        min-width: 78vw;
        max-height: calc(100vh - 180px - env(safe-area-inset-bottom));
    }

    .breadcrumb {
        font-size: 0.8125rem;
        flex-wrap: wrap;
    }
}

/* Applied after component styles so every screen shares the Isee Lens palette. */
.order-view-hero,
.list-index-hero {
    position: relative;
    overflow: hidden;
    color: var(--isee-ink);
    background: linear-gradient(102deg, rgba(255, 255, 255, 0.97) 0%, rgba(245, 251, 255, 0.96) 53%, rgba(223, 242, 255, 0.92) 100%);
}

.order-view-hero::after,
.list-index-hero::after {
    content: '';
    position: absolute;
    top: -8rem;
    right: -3rem;
    width: 22rem;
    height: 22rem;
    opacity: 0.72;
    pointer-events: none;
    background: repeating-linear-gradient(137deg, transparent 0 2.4rem, rgba(8, 103, 189, 0.1) 2.4rem 3.6rem, transparent 3.6rem 5rem);
}

.order-view-hero .card-body,
.list-index-hero .card-body { position: relative; z-index: 1; }
.list-index-eyebrow { color: var(--isee-blue) !important; }

.list-index-hero h1,
.order-view-hero h1 {
    color: var(--isee-navy);
    letter-spacing: -0.035em;
}

.list-index-table-card,
.order-index-toolbar,
.order-bulk-toolbar { background: rgba(255, 255, 255, 0.94); }

/* Keep order filter dropdowns above neighboring cells */
.order-index-table .filters td {
    position: relative;
    overflow: visible;
}

.list-index-table thead th {
    color: #54708a;
    background: #eef7ff;
    border-bottom-color: #d5e7f6;
}

.list-index-table thead th a { color: #3f6381; }
.list-index-table tbody td { border-color: #e8f1f8; }

.table-hover > tbody > tr:hover > * {
    --bs-table-accent-bg: #f0f8ff;
    color: var(--isee-ink);
}

.list-index-table .filters td {
    background: #f8fbfe;
    border-color: #e1edf7;
}

.order-index-track,
.list-index-mono {
    color: #075eae;
    background: #e9f5ff;
}

.order-index-track:hover,
.list-index-mono:hover {
    color: var(--isee-navy);
    background: #d7edff;
}

.list-index-pager .page-link {
    color: #3d5d78;
    border-color: #d3e3f0;
}

.list-index-pager .page-link:hover,
.list-index-pager .page-link:focus {
    color: var(--isee-navy);
    background: #eaf5ff;
    border-color: #9dc9e7;
    box-shadow: 0 0 0 0.2rem rgba(8, 103, 189, 0.1);
}

.list-index-pager .page-item.active .page-link {
    background: var(--isee-blue);
    border-color: var(--isee-blue);
}

.order-view-tile,
.task-result-item {
    background: #f6fbff;
    border-color: #dceaf6;
}

.order-view-dl dt { color: #62809a; }
.order-view-dl dd { color: var(--isee-ink); }

/* Task board */
.task-board-column {
    border-color: #d7e6f3;
    background: rgba(247, 251, 255, 0.9);
    box-shadow: 0 5px 15px rgba(22, 79, 130, 0.05);
}

.task-board-column-head {
    border-bottom-color: #dceaf6;
    background: #fff;
}

.task-board-column.tone-new .task-board-column-head { border-top-color: #159ee0; }
.task-board-column.tone-progress .task-board-column-head { border-top-color: #0867bd; }
.task-board-column.tone-review .task-board-column-head { border-top-color: #f0a128; }
.task-board-column.tone-rework .task-board-column-head { border-top-color: #6688a8; }
.task-board-column.tone-rejected .task-board-column-head { border-top-color: #d95b63; }
.task-board-column.tone-done .task-board-column-head { border-top-color: #159d90; }

.task-board-column-title { color: #365572; }

.task-board-column-count {
    color: #075eae;
    background: #e2f2ff;
}

.task-board-card {
    border-color: #d9e8f4;
    box-shadow: 0 2px 7px rgba(22, 79, 130, 0.04);
}

.task-board-card:hover {
    border-color: #97c9eb;
    box-shadow: 0 8px 18px rgba(8, 103, 189, 0.1);
}

/* Price list */
.price-list-sheet {
    color: var(--isee-navy);
    background: linear-gradient(150deg, #f9fdff 0%, #ddecfa 100%);
    border-color: #c7e0f3;
    box-shadow: 0 5px 16px rgba(22, 79, 130, 0.07);
}

.price-list-sheet__title,
.price-list-sheet__table th,
.price-list-sheet__table td,
.price-list-sheet__price { color: var(--isee-navy); }

.price-list-sheet__table th,
.price-list-sheet__table td { border-bottom-color: rgba(7, 63, 135, 0.44); }

@media (max-width: 991.98px) {
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 38rem;
        margin: 0 auto;
    }

    .login-intro { padding: 2.2rem; }
    .login-intro-brand { margin-bottom: 2.2rem; }
}

@media (max-width: 575.98px) {
    .isee-navbar .navbar-brand {
        margin-right: 0;
        font-size: 1.18rem;
    }

    .isee-brand-mark { width: 1.85rem; }
    .site-index { min-height: auto; }

    .login-shell {
        margin: 0 -0.15rem;
        border-radius: 0.95rem;
    }

    .login-intro,
    .login-card-wrap { padding: 1.55rem; }

    .login-intro h1 { font-size: 1.9rem; }

    .login-intro-copy {
        margin-bottom: 1.2rem;
        font-size: 0.94rem;
    }
}

.design-theme-toggle {
    font-size: 0.88rem;
    font-weight: 600;
    white-space: nowrap;
}

@media (max-width: 991.98px) {
    .navbar-nav .design-theme-toggle {
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }
}

/* ——— Maximum range sheets ——— */
.maximum-range-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    align-items: start;
}

.maximum-range-section {
    color: var(--isee-navy);
    background: linear-gradient(150deg, #f9fdff 0%, #ddecfa 100%);
    border: 1px solid #c7e0f3;
    border-radius: 0.65rem;
    padding: 0.8rem 0.9rem 0.9rem;
    overflow: hidden;
    box-shadow: 0 5px 16px rgba(22, 79, 130, 0.07);
}

.maximum-range-section__header {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 1.75rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.maximum-range-section__title {
    margin: 0;
    color: var(--isee-navy);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.maximum-range-section__subtitle {
    margin: 0.1rem 0 0;
    color: #52749f;
    font-size: 0.8rem;
    font-weight: 600;
}

.maximum-range-section__add {
    position: absolute;
    top: 50%;
    right: 0;
    padding: 0.1rem 0.45rem;
    font-size: 0.75rem;
    transform: translateY(-50%);
}

.maximum-range-section__actions {
    position: absolute;
    top: 50%;
    right: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.35rem;
    transform: translateY(-50%);
}

.maximum-range-section__actions .maximum-range-section__add {
    position: static;
    padding: 0.375rem 0.7rem;
    font-size: 0.8rem;
    transform: none;
}

.maximum-range-section__actions .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.45rem;
    padding: 0.375rem 0.7rem;
    line-height: 1.2;
    white-space: nowrap;
}

.maximum-range-section__actions .btn:hover:not(:disabled) {
    transform: none;
}

.maximum-range-table {
    width: 100%;
    border-collapse: collapse;
}

.maximum-range-table th,
.maximum-range-table td {
    padding: 0.33rem 0.45rem;
    color: var(--isee-navy);
    border-bottom: 1px solid rgba(7, 63, 135, 0.44);
    font-size: 0.8rem;
    font-variant-numeric: tabular-nums;
    text-align: center;
    vertical-align: middle;
}

.maximum-range-table thead th {
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
}

.maximum-range-table tbody th {
    font-weight: 600;
    text-align: left;
}

.maximum-range-table__group {
    min-width: 9rem;
    background: rgba(255, 255, 255, 0.28);
}

.maximum-range-table__note {
    padding: 0.55rem 0.45rem !important;
    color: #315f93 !important;
    background: rgba(255, 255, 255, 0.42);
    font-size: 0.76rem !important;
    line-height: 1.35;
    text-align: left !important;
}

.maximum-range-table__value {
    color: var(--isee-navy);
    text-decoration: none;
}

.maximum-range-table__value:hover {
    color: #0f4e91;
    text-decoration: underline;
}

.maximum-range-table--progressive th,
.maximum-range-table--progressive td {
    min-width: 4.75rem;
    font-size: 0.76rem;
}

.maximum-range-table--progressive .maximum-range-table__group {
    min-width: 11rem;
    white-space: normal;
}

.maximum-range-table--bifocal {
    max-width: 46rem;
    margin: 0 auto;
}

.maximum-range-table--bifocal th:first-child,
.maximum-range-table--bifocal td:first-child {
    text-align: left;
}

@media (min-width: 768px) {
    .price-list-sheet__add.btn:hover:not(:disabled),
    .maximum-range-section__header > .maximum-range-section__add.btn:hover:not(:disabled) {
        transform: translateY(-50%);
    }
}

@media (max-width: 767.98px) {
    .maximum-range-grid {
        grid-template-columns: 1fr;
    }

    .maximum-range-section {
        border-radius: 0;
        margin-right: -0.75rem;
        margin-left: -0.75rem;
        padding: 0.75rem;
    }

    .maximum-range-section__header {
        flex-direction: column;
    }

    .maximum-range-section__add {
        position: static;
        margin-top: 0.35rem;
        transform: none;
    }

    .maximum-range-section__actions {
        position: static;
        justify-content: center;
        margin-top: 0.35rem;
        transform: none;
    }
}

/* ISEE CRM starter pages */
.brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.15rem;
    height: 2.15rem;
    margin-right: 0.36rem;
    border-radius: 0.58rem;
    color: #fff;
    font-size: 0.71rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--isee-navy), var(--isee-sky));
}

.login-brand-text {
    color: #fff;
    font-size: 1.7rem;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.isee-navbar .isee-crm-logo {
    width: auto;
    height: 2.8rem;
    max-width: 11rem;
    border-radius: 0.35rem;
    object-fit: contain;
}

.login-crm-logo {
    display: block;
    width: min(100%, 22rem);
    height: auto;
    padding: 0.3rem 0.5rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 12px 30px rgba(4, 33, 73, 0.2);
}

.page-kicker,
.home-kicker {
    margin-bottom: 0.4rem;
    color: var(--isee-blue);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.5rem, 7vw, 5rem);
    border: 1px solid rgba(7, 86, 166, 0.09);
    border-radius: 1.25rem;
    color: #fff;
    background: linear-gradient(125deg, var(--isee-navy), var(--isee-blue));
    box-shadow: 0 24px 54px rgba(7, 63, 135, 0.18);
}

.home-hero::after {
    position: absolute;
    top: -10rem;
    right: -7rem;
    width: 26rem;
    height: 26rem;
    border: 2.4rem solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: '';
}

.home-hero h1,
.home-copy,
.home-kicker {
    position: relative;
    z-index: 1;
}

.home-hero h1 {
    max-width: 45rem;
    margin-bottom: 1rem;
    font-size: clamp(2rem, 5vw, 4.25rem);
    font-weight: 800;
    letter-spacing: -0.05em;
}

.home-hero .home-kicker { color: #a9e5ff; }
.home-copy { max-width: 40rem; margin-bottom: 0; color: rgba(255, 255, 255, 0.8); font-size: 1.08rem; }

/* ——— Client card ——— */
.client-card {
    border-radius: 1rem;
    overflow: hidden;
}

.client-card-fields {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.client-card-row,
.schedule-field-row {
    display: grid;
    grid-template-columns: minmax(9rem, 11.5rem) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: stretch;
}

.client-card-label,
.schedule-field-label {
    display: flex;
    align-items: center;
    padding: 0.7rem 0.95rem;
    border-radius: 0.55rem;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    background: linear-gradient(135deg, var(--isee-blue), var(--isee-sky));
    box-shadow: 0 6px 16px rgba(8, 103, 189, 0.18);
}

.client-card-value {
    display: flex;
    align-items: center;
    min-height: 2.75rem;
    padding: 0.65rem 0.95rem;
    border: 1px solid var(--isee-line);
    border-radius: 0.55rem;
    background: #fff;
    color: var(--isee-ink);
    font-weight: 500;
}

.client-card-value--input {
    padding: 0.35rem 0.5rem;
}

.client-card-value--input .form-control,
.client-card-value--input .form-select,
.schedule-field-control .form-control,
.schedule-field-control .form-select {
    border-color: transparent;
    box-shadow: none;
    background: transparent;
}

.client-card-value--input .form-control:focus,
.client-card-value--input .form-select:focus,
.schedule-field-control .form-control:focus,
.schedule-field-control .form-select:focus {
    border-color: rgba(8, 103, 189, 0.35);
    box-shadow: 0 0 0 0.2rem rgba(40, 168, 232, 0.15);
    background: #fff;
}

.schedule-appointment-panel {
    overflow: hidden;
    max-height: 0;
    margin-top: 0;
    opacity: 0;
    pointer-events: none;
    transition: max-height 0.3s ease, opacity 0.22s ease, margin-top 0.22s ease;
}

.schedule-appointment-panel.is-open {
    max-height: 42rem;
    margin-top: 1.25rem;
    opacity: 1;
    pointer-events: auto;
}

.schedule-appointment-inner {
    padding: 1.15rem 1.2rem 1.25rem;
    border: 1px solid var(--isee-line);
    border-radius: 0.85rem;
    background:
        linear-gradient(180deg, rgba(234, 245, 255, 0.85), rgba(255, 255, 255, 0.95));
}

.schedule-appointment-form {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.schedule-field-control {
    display: flex;
    align-items: stretch;
    min-height: 2.75rem;
    padding: 0.35rem 0.5rem;
    border: 1px solid var(--isee-line);
    border-radius: 0.55rem;
    background: #fff;
}

.schedule-field-row--textarea .schedule-field-label {
    align-items: flex-start;
    padding-top: 0.95rem;
}

.schedule-field-row--textarea .schedule-field-control {
    min-height: 7rem;
}

.schedule-field-row--textarea textarea {
    resize: vertical;
}

@media (max-width: 575.98px) {
    .client-card-row,
    .schedule-field-row {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .client-card-label,
    .schedule-field-label {
        width: fit-content;
        min-width: 8.5rem;
    }
}

/* ——— Sale checkout ——— */
.sale-checkout {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.sale-checkout-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.55rem;
}

.sale-checkout-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--isee-navy), var(--isee-blue));
    color: #fff;
    font-size: 0.92rem;
    font-weight: 650;
    box-shadow: 0 8px 18px rgba(7, 63, 135, 0.18);
}

.sale-checkout-tab-menu {
    opacity: 0.75;
    font-weight: 700;
}

.sale-checkout-add-client {
    display: none;
}

.sale-recipe-form-panel {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    margin-top: 0;
    pointer-events: none;
    transition: max-height 0.28s ease, opacity 0.22s ease, margin-top 0.22s ease;
}

.sale-recipe-form-panel.is-open {
    max-height: 48rem;
    opacity: 1;
    margin-top: 0.85rem;
    pointer-events: auto;
}

.sale-recipe-form-inner {
    padding: 1rem 1.1rem 1.15rem;
    border: 1px solid var(--isee-line);
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(234, 245, 255, 0.9), #fff);
}

.sale-checkout-meta-row {
    display: none;
}

.sale-checkout-card {
    padding: 1rem;
    border: 1px solid var(--isee-line);
    border-radius: 1rem;
    background: linear-gradient(180deg, #f4f8fc, #fff);
}

.sale-checkout-client-row {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 0.85rem;
    margin-bottom: 0.85rem;
}

.sale-checkout-client-name {
    font-size: 1.15rem;
    font-weight: 750;
    color: var(--isee-ink);
}

.sale-checkout-client-phone {
    color: #5d738c;
    font-size: 0.95rem;
}

.sale-checkout-recipe {
    position: relative;
    padding: 0.75rem 0.85rem;
    border-radius: 0.75rem;
    background: #fff;
    border: 1px solid var(--isee-line);
    box-shadow: 0 6px 16px rgba(7, 63, 135, 0.06);
}

.sale-checkout-recipe.is-empty {
    opacity: 0.72;
}

.sale-checkout-recipe-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.35rem;
    color: #6a8098;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.sale-checkout-recipe-clear {
    border: 0;
    background: transparent;
    color: #8aa0b8;
    font-size: 1.1rem;
    line-height: 1;
}

.sale-checkout-recipe-body {
    font-size: 0.92rem;
    color: var(--isee-ink);
}

.sale-checkout-meta-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.sale-checkout-meta-card {
    padding: 0.7rem 0.8rem;
    border-radius: 0.7rem;
    background: #fff;
    border: 1px solid var(--isee-line);
}

.sale-checkout-meta-label {
    margin-bottom: 0.3rem;
    color: #6a8098;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sale-item-card {
    padding: 0.9rem 1rem;
    border: 1px solid var(--isee-line);
    border-radius: 0.9rem;
    background: #fff;
    box-shadow: 0 8px 20px rgba(7, 63, 135, 0.05);
}

.sale-item-card + .sale-item-card {
    margin-top: 0.65rem;
}

.sale-item-top,
.sale-item-controls {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.sale-item-name {
    font-weight: 750;
    color: var(--isee-ink);
}

.sale-item-barcode {
    color: #7b8fa6;
    font-size: 0.82rem;
}

.sale-item-line-total {
    font-weight: 750;
    white-space: nowrap;
}

.sale-item-controls {
    align-items: center;
    margin-top: 0.55rem;
}

.sale-item-qty {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.15rem;
    border-radius: 999px;
    background: #eef5fb;
}

.sale-qty-btn {
    width: 1.8rem;
    height: 1.8rem;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--isee-blue);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1;
    box-shadow: 0 2px 6px rgba(7, 63, 135, 0.08);
}

.sale-qty-input {
    width: 2.4rem;
    border: 0;
    background: transparent;
    text-align: center;
    font-weight: 700;
}

.sale-item-pick {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem;
    margin-top: 0.7rem;
}

.sale-checkout-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
    padding: 1rem 0 0.25rem;
    border-top: 1px solid var(--isee-line);
}

.sale-checkout-total-label {
    color: #6a8098;
    font-size: 0.9rem;
}

.sale-checkout-total-value {
    font-size: 1.8rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--isee-ink);
}

.sale-checkout-actions {
    display: flex;
    gap: 0.55rem;
    flex: 1 1 auto;
    justify-content: flex-end;
}

.sale-checkout-pay {
    min-width: 10rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    background: #2ea86a !important;
    border-color: #2ea86a !important;
    font-weight: 700;
}

.sale-checkout-pay:hover {
    background: #248a56 !important;
    border-color: #248a56 !important;
}

.home-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.5rem;
    position: relative;
    z-index: 1;
}

.home-actions .btn {
    min-width: 11rem;
    font-weight: 650;
}

@media (max-width: 767.98px) {
    .sale-checkout-client-row,
    .sale-checkout-meta-row {
        grid-template-columns: 1fr;
    }

    .sale-checkout-actions {
        width: 100%;
    }

    .sale-checkout-pay,
    .sale-checkout-more {
        flex: 1;
    }
}


