:root {
    --al-navy: #102a43;
    --al-navy-soft: #173e63;
    --al-blue: #1769aa;
    --al-cyan: #4ecdc4;
    --al-canvas: #f3f6fa;
    --al-text-secondary: #4b5563;
    --al-control-border: #7b8794;
    --al-placeholder: #667085;
    --tblr-secondary: var(--al-text-secondary);
    --tblr-secondary-color: var(--al-text-secondary);
    --tblr-border-color: var(--al-control-border);
}

body { background: var(--al-canvas); color: #1f2937; }

.page-wrapper .text-secondary,
.page-wrapper .form-hint,
.page-wrapper .card-subtitle,
.page-wrapper .page-subtitle { color: var(--al-text-secondary) !important; }
.page-wrapper .form-label { color: #374151; font-weight: 600; }
.page-wrapper .form-control,
.page-wrapper .form-select { border-color: var(--al-control-border); color: #1f2937; }
.page-wrapper .form-control::placeholder { color: var(--al-placeholder); opacity: 1; }
.page-wrapper .form-control:focus,
.page-wrapper .form-select:focus { border-color: var(--al-blue); box-shadow: 0 0 0 .2rem rgba(23, 105, 170, .16); }
.page-wrapper .card-title { color: var(--al-navy); font-weight: 700; }
.product-price-kicker { color: #4b5563; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.al-login-page {
    background:
        radial-gradient(circle at 15% 20%, rgba(78, 205, 196, .16), transparent 30rem),
        radial-gradient(circle at 90% 85%, rgba(23, 105, 170, .14), transparent 34rem),
        var(--al-canvas);
}

.brand-link-login { justify-content: center; color: var(--al-navy); }
.brand-link-login:hover { color: var(--al-navy); }
.brand-link-login .brand-copy small { color: #60758a; }
.login-card { border: 0; border-radius: 1rem; box-shadow: 0 1.25rem 4rem rgba(16, 42, 67, .13); }
.login-kicker { margin-bottom: .55rem; color: var(--al-blue); font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-align: center; text-transform: uppercase; }

.al-sidebar {
    background: linear-gradient(180deg, var(--al-navy) 0%, #0b1f33 100%);
    border-right: 0;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    gap: .75rem;
    color: #fff;
    text-decoration: none;
}

.brand-link:hover { color: #fff; }
.brand-symbol { display: grid; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .75rem; background: linear-gradient(135deg, #2d8bd2, var(--al-cyan)); font-size: .82rem; font-weight: 900; letter-spacing: .06em; box-shadow: 0 .65rem 1.6rem rgba(0, 0, 0, .2); }
.brand-copy { display: flex; flex-direction: column; line-height: 1.05; }
.brand-copy strong { font-size: 1.18rem; letter-spacing: .04em; }
.brand-copy small { margin-top: .2rem; color: rgba(255, 255, 255, .58); font-size: .68rem; font-weight: 500; }

.sidebar-context { display: flex; align-items: center; gap: .65rem; margin: .75rem 1rem .35rem; padding: .65rem .8rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: .75rem; color: rgba(255, 255, 255, .7); font-size: .78rem; }
.menu-key { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: .55rem; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .7); font-size: .61rem; font-weight: 800; letter-spacing: .04em; }
.al-sidebar .nav-link-title { min-width: 0; }
.nav-counter { display: grid; flex: 0 0 1.65rem; place-items: center; min-width: 1.65rem; height: 1.65rem; margin-left: auto; padding: 0 .3rem; border-radius: 999px; background: rgba(255, 255, 255, .12); color: #eaf7fa; font-size: .68rem; font-variant-numeric: tabular-nums; font-weight: 800; line-height: 1; text-align: center; }
.nav-item.active .nav-counter { background: rgba(126, 208, 225, .2); color: #fff; }
.al-sidebar .nav-item.active .menu-key { background: rgba(78, 205, 196, .18); color: #7ff3e9; }
.al-sidebar .nav-link { border-radius: .7rem; margin: .08rem .65rem; }
.al-nav-placeholder { cursor: default; }
.al-sidebar .nav-item.active .nav-link { background: rgba(255, 255, 255, .08); }
.navigation-order-panel { margin: .5rem .65rem 0; padding: .6rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: .7rem; background: rgba(255, 255, 255, .035); }
.navigation-order-toggle, .navigation-order-reset { width: 100%; border: 0; border-radius: .5rem; background: transparent; color: rgba(255, 255, 255, .76); font-size: .72rem; font-weight: 700; text-align: left; }
.navigation-order-toggle { display: flex; align-items: center; gap: .45rem; padding: .35rem .45rem; }
.navigation-order-toggle:hover, .navigation-order-toggle:focus { background: rgba(255, 255, 255, .08); color: #fff; }
.navigation-order-toggle[aria-pressed="true"] { background: rgba(78, 205, 196, .13); color: #9af6ef; }
.navigation-order-reset { margin-top: .4rem; padding: .3rem .45rem; color: #b8ddeb; }
.navigation-order-reset:hover, .navigation-order-reset:focus { color: #fff; text-decoration: underline; }
.navigation-order-status { display: block; min-height: 1rem; margin: .35rem .45rem 0; color: rgba(255, 255, 255, .5); font-size: .65rem; line-height: 1.35; }
.navigation-reorder-actions { display: none; flex: 0 0 auto; gap: .18rem; margin-right: .65rem; }
.navigation-reorder-actions button { display: grid; place-items: center; width: 1.65rem; height: 1.65rem; padding: 0; border: 1px solid rgba(255, 255, 255, .15); border-radius: .45rem; background: rgba(255, 255, 255, .07); color: #dff8fb; font-size: .58rem; }
.navigation-reorder-actions button:hover, .navigation-reorder-actions button:focus { border-color: rgba(126, 243, 233, .65); background: rgba(78, 205, 196, .18); color: #fff; }
.navigation-reorder-actions button:disabled { opacity: .28; }
.navigation-ordering .nav-item { display: flex; align-items: center; }
.navigation-ordering .nav-link { min-width: 0; flex: 1 1 auto; }
.navigation-ordering .navigation-reorder-actions { display: flex; }
.sidebar-footer { margin: 1rem; padding: 1rem; border-radius: .8rem; background: rgba(255, 255, 255, .05); color: rgba(255, 255, 255, .82); }
.sidebar-logout { align-items: center; display: flex; gap: .55rem; justify-content: center; width: 100%; min-height: 2.65rem; padding: .55rem .75rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: .6rem; background: rgba(255, 255, 255, .08); color: #fff; font: inherit; font-weight: 700; }
.sidebar-logout:hover,
.sidebar-logout:focus-visible { border-color: rgba(255, 255, 255, .52); background: rgba(255, 255, 255, .15); }

.al-topbar { position: relative; z-index: 1060; min-height: 4.5rem; overflow: visible; background: rgba(255, 255, 255, .94); border-bottom: 1px solid rgba(20, 42, 67, .08); backdrop-filter: blur(12px); }
.al-topbar .dropdown-menu { z-index: 1070; }
/* Las ventanas y su fondo siempre quedan por encima del contexto y buscadores. */
.modal { --tblr-modal-zindex: 1200; z-index: 1200; }
.modal-backdrop { --tblr-backdrop-zindex: 1190; z-index: 1190; }
.availability-modal .modal-header,
.availability-modal .modal-footer { flex-shrink: 0; }
.availability-modal .modal-header > div { min-width: 0; }
.availability-modal .modal-header .btn-close { flex-shrink: 0; }
.availability-modal .modal-body { overscroll-behavior: contain; }
.availability-calendar-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; }
.availability-calendar-actions .btn { min-height: 2.5rem; }
@media (min-width: 576px) {
    .availability-modal .modal-xl { max-width: min(1140px, calc(100% - 3.5rem)); }
}
.context-selectors { display: flex; align-items: end; gap: .65rem; }
.context-selectors label { min-width: 9.5rem; margin: 0; }
.context-selectors label span { display: block; margin-bottom: .25rem; color: var(--tblr-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.context-selectors .form-select { border-color: rgba(20, 42, 67, .12); background-color: #f8fafc; font-weight: 600; }
.context-auto-state { align-self: center; margin-top: 1rem; color: var(--al-blue); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.restock-bell { display: grid; position: relative; place-items: center; width: 2.55rem; height: 2.55rem; border: 1px solid #d8e1eb; border-radius: .75rem; background: #fff; color: #52697f; transition: transform .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.restock-bell:hover { transform: translateY(-1px); border-color: #a8c5dc; color: var(--al-blue); box-shadow: 0 .4rem 1rem rgba(16, 42, 67, .1); }
.restock-bell svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.restock-bell-alert { border-color: #efacb2; background: #fff3f3; color: #c92a2a; animation: restock-bell-pulse 2.2s ease-in-out infinite; }
.restock-bell-badge { display: grid; position: absolute; top: -.5rem; right: -.65rem; place-items: center; min-width: 1.55rem; height: 1.55rem; padding: 0 .35rem; border: 2px solid #fff; border-radius: 999px; background: #c92a2a; color: #fff; font-size: .66rem; font-weight: 900; box-shadow: 0 .35rem .75rem rgba(201, 42, 42, .24); }
@keyframes restock-bell-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(201, 42, 42, .12); } 50% { box-shadow: 0 0 0 .45rem rgba(201, 42, 42, 0); } }
.context-summary { margin: 0; }
.context-summary > div { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px solid rgba(20, 42, 67, .08); }
.context-summary > div:first-child { padding-top: 0; }
.context-summary > div:last-child { padding-bottom: 0; border-bottom: 0; }
.context-summary dt { color: var(--tblr-secondary); font-size: .74rem; font-weight: 700; text-transform: uppercase; }
.context-summary dd { margin: 0; color: var(--al-navy); font-weight: 700; text-align: right; }
.inventory-target { display: flex; flex-direction: column; gap: .25rem; padding: 1rem; border: 1px solid rgba(23, 105, 170, .16); border-radius: .75rem; background: #f3f8fc; }
.inventory-target span { color: var(--tblr-secondary); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.inventory-target strong { color: var(--al-navy); }
.inventory-card-header { align-items: flex-start; justify-content: space-between; gap: 1rem; }
.inventory-search { width: min(100%, 34rem); }
[data-product-catalog] { min-width: 0; max-width: 100%; }
[data-product-catalog] > .table-responsive { max-width: 100%; overflow-x: auto; }
.product-catalog-search-field { position: relative; z-index: 4; }
.product-catalog-search-field:focus-within { z-index: 1055; }
.product-catalog-suggestions { position: absolute; z-index: 1050; top: calc(100% + .35rem); right: 0; left: 0; max-height: 20rem; overflow-y: auto; border: 1px solid #b7cad8; border-radius: .75rem; background: #fff; box-shadow: 0 1rem 2.5rem rgba(16, 42, 67, .2); }
.product-catalog-suggestions[hidden] { display: none; }
.product-catalog-suggestion { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .7rem .8rem; border-bottom: 1px solid #e4ebf1; color: #172033; text-decoration: none; }
.product-catalog-suggestion:last-child { border-bottom: 0; }
.product-catalog-suggestion:hover,
.product-catalog-suggestion:focus,
.product-catalog-suggestion.is-active { background: #edf6fc; color: var(--al-navy); outline: 0; }
.product-catalog-suggestion-copy { display: flex; min-width: 0; flex-direction: column; }
.product-catalog-suggestion-copy strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-catalog-suggestion-copy small { color: var(--al-text-secondary); }
.product-catalog-suggestion-status { padding: .85rem; color: var(--al-text-secondary); text-align: center; }
.product-catalog-suggestion-status.is-error { color: #b4232f; }
.product-catalog-pagination { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.automatic-reference-note,
.initial-stock-status { display: flex; min-height: 4rem; align-items: center; gap: .75rem; padding: .75rem .9rem; border: 1px solid #b8d8ec; border-radius: .7rem; background: linear-gradient(135deg, #eef8ff, #fff); color: #1b526f; }
.automatic-reference-note > span,
.initial-stock-status-icon { display: grid; flex: 0 0 2.35rem; place-items: center; width: 2.35rem; height: 2.35rem; border-radius: .65rem; background: var(--al-blue); color: #fff; font-size: .66rem; font-weight: 900; letter-spacing: .04em; }
.automatic-reference-note > div,
.initial-stock-status > div { display: flex; min-width: 0; flex-direction: column; }
.automatic-reference-note small,
.initial-stock-status small { color: var(--al-text-secondary); font-size: .74rem; }
.product-initial-stock-card { overflow: hidden; border-color: rgba(23, 105, 170, .22); box-shadow: 0 .5rem 1.3rem rgba(16, 42, 67, .06); }
.product-initial-stock-card .card-header { align-items: flex-start; justify-content: space-between; gap: .8rem; background: linear-gradient(110deg, rgba(231, 245, 255, .9), #fff 55%); }
.product-initial-stock-card .card-header > div { min-width: 0; }
.product-initial-stock-card .card-header .badge { flex: 0 0 auto; }
.product-minimum-card { overflow: hidden; border-color: rgba(23, 105, 170, .22); }
.product-minimum-card .card-header { align-items: flex-start; justify-content: space-between; gap: .8rem; background: linear-gradient(110deg, rgba(231, 245, 255, .72), #fff 58%); }
.minimum-zero-guide { display: flex; min-height: 100%; align-items: center; gap: .7rem; padding: .7rem .85rem; border: 1px solid #c9d8e4; border-radius: .7rem; background: #f7fafc; }
.minimum-zero-guide > span { display: grid; flex: 0 0 2.2rem; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: .6rem; background: #e9eef3; color: #536779; font-weight: 900; }
.minimum-zero-guide > div { display: flex; flex-direction: column; }
.minimum-zero-guide small { color: var(--al-text-secondary); font-size: .72rem; line-height: 1.35; }
.minimum-location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.minimum-branch-group { overflow: hidden; border: 1px solid #d7e2eb; border-radius: .8rem; background: #fff; box-shadow: 0 .35rem 1rem rgba(16, 42, 67, .045); }
.minimum-branch-heading { display: flex; align-items: center; gap: .7rem; padding: .75rem .85rem; border-bottom: 1px solid #e1e9f0; background: #f7fafc; }
.minimum-branch-heading > div { display: flex; min-width: 0; flex-direction: column; }
.minimum-branch-heading small { color: var(--al-text-secondary); font-size: .72rem; }
.minimum-branch-icon { display: grid; flex: 0 0 2rem; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem; background: #dff2ff; color: #0c6da7; font-size: .63rem; font-weight: 900; }
.minimum-location-list { display: grid; }
.minimum-location-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .75rem .85rem; border-bottom: 1px solid #edf1f5; cursor: text; }
.minimum-location-row:last-child { border-bottom: 0; }
.minimum-location-row > span:first-child { display: flex; min-width: 0; flex-direction: column; }
.minimum-location-row small { color: var(--al-text-secondary); font-size: .72rem; }
.minimum-location-input { display: grid; grid-template-columns: auto 6.5rem; align-items: center; gap: .45rem; color: #52677a; font-size: .72rem; font-weight: 800; }
.minimum-location-input .form-control { text-align: right; font-weight: 800; }
.minimum-location-input .form-control[readonly] { background: #edf1f5; color: #66788a; }
.initial-stock-status.is-disabled { border-color: #d5dce3; background: #f3f5f7; color: #64748b; }
.initial-stock-status.is-disabled .initial-stock-status-icon { background: #94a3b8; }
.inventory-explorer-state { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; margin-top: .4rem; color: var(--al-text-secondary); font-size: .72rem; }
.inventory-explorer-table thead th { padding: 0; vertical-align: middle; }
.inventory-column-button { display: flex; width: 100%; min-height: 3.1rem; align-items: center; justify-content: space-between; gap: .4rem; padding: .7rem .75rem; border: 0; background: transparent; color: #42566a; font: inherit; font-size: .72rem; font-weight: 800; letter-spacing: .025em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.inventory-column-button:hover,
.inventory-column-button:focus-visible { background: #edf6fc; color: var(--al-blue); outline: 0; }
.inventory-column-button.is-active { background: #e5f3fc; color: #0f659c; }
.inventory-column-menu { position: fixed; z-index: 1090; display: grid; gap: .65rem; padding: .85rem; border: 1px solid #b7cad8; border-radius: .75rem; background: #fff; box-shadow: 0 1rem 2.8rem rgba(16, 42, 67, .24); }
.inventory-column-menu > strong { color: var(--al-navy); }
.inventory-column-menu-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; }
.inventory-column-menu > .btn { width: 100%; }
.inventory-group-heading { padding: .55rem .8rem !important; border-top: 1px solid #bad6e7 !important; border-bottom: 1px solid #d7e7f1 !important; background: #edf7fd !important; color: #165f8e; font-size: .72rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.search-picker-control { position: relative; }
.search-picker { position: relative; z-index: 2; }
.search-picker:focus-within { z-index: 1055; }
.search-picker-results { position: absolute; z-index: 1050; top: calc(100% + .25rem); right: 0; left: 0; max-height: 20rem; overflow-y: auto; border: 1px solid rgba(20, 42, 67, .14); border-radius: .65rem; background: #fff; box-shadow: 0 .85rem 2.2rem rgba(16, 42, 67, .18); }
.search-picker-option { gap: .65rem; padding: .55rem .65rem; text-align: left; }
.search-picker-option > span:first-child { display: flex; min-width: 0; flex-direction: column; }
.search-picker-option strong { overflow: hidden; color: #172033; font-size: .86rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.search-picker-option small { color: #5f6b7a; font-size: .72rem; }
.search-picker-action { color: var(--al-blue); font-size: .75rem; font-weight: 700; }
.search-picker-footer { position: sticky; bottom: 0; padding: .48rem .7rem; border-top: 1px solid #dde5ec; background: #f8fafc; color: #526274; font-size: .72rem; font-weight: 700; }
.sale-product-low { border-left: .3rem solid #e6a700; background: #fffaf0; }
.sale-product-low:hover, .sale-product-low:focus { background: #fff4d5; }
.kit-component-low { border-left: .3rem solid #e6a700; background: #fff8df; }
.kit-component-low:hover, .kit-component-low:focus { background: #ffefb5; }
.kit-component-low strong, .kit-component-low .search-picker-action { color: #8a5a00; }
.sale-product-out { border-left: .3rem solid #d63939; background: #fff1f1; }
.sale-product-out:hover, .sale-product-out:focus { background: #ffe3e3; }
.sale-product-out strong, .sale-product-out .search-picker-action { color: #b4232f; }
.sale-product-out:disabled { opacity: 1; cursor: not-allowed; }
.stock-option-low { color: #7a4d00; background: #fff4d5; }
.stock-option-out { color: #a51d2d; background: #ffe3e3; }
.inventory-row-low > td { background: #fff8df !important; }
.inventory-row-low > td:first-child { box-shadow: inset .3rem 0 #e6a700; }
.inventory-row-out > td { background: #fff0f0 !important; }
.inventory-row-out > td:first-child { box-shadow: inset .3rem 0 #d63939; }
.low-stock-scope-card { overflow: hidden; border-color: rgba(23, 105, 170, .2); }
.low-stock-scope-card .card-header { align-items: flex-start; justify-content: space-between; gap: 1rem; background: linear-gradient(110deg, rgba(231, 245, 255, .8), #fff 62%); }
.low-stock-branch-selector { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.low-stock-branch-option { display: flex; min-width: 0; align-items: center; gap: .7rem; padding: .7rem .8rem; border: 1px solid #d6e1ea; border-radius: .7rem; background: #fff; cursor: pointer; }
.low-stock-branch-option:has(input:checked) { border-color: #74b9e5; background: #eef8ff; box-shadow: inset 0 0 0 1px rgba(23, 105, 170, .08); }
.low-stock-branch-option > span { display: flex; min-width: 0; flex-direction: column; }
.low-stock-branch-option small { color: var(--al-text-secondary); font-size: .72rem; }
.low-stock-rule { display: flex; max-width: 43rem; align-items: center; gap: .65rem; color: #3f566b; }
.low-stock-rule > span { display: grid; flex: 0 0 2rem; place-items: center; width: 2rem; height: 2rem; border-radius: .55rem; background: #e9eef3; font-weight: 900; }
.low-stock-rule > div { display: flex; flex-direction: column; }
.low-stock-rule small { color: var(--al-text-secondary); font-size: .72rem; }
.low-stock-metric .card-body { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.low-stock-metric span { color: var(--al-text-secondary); font-size: .76rem; font-weight: 700; }
.low-stock-metric strong { color: var(--al-navy); font-size: 1.55rem; }
.low-stock-metric.is-transfer { border-left: .28rem solid #2f9e88; }
.low-stock-metric.is-purchase { border-left: .28rem solid #d63939; }
.low-stock-provider { overflow: hidden; }
.low-stock-product-list { display: grid; gap: 1rem; background: #f5f8fb; }
.low-stock-product { overflow: hidden; border: 1px solid #d9e4ed; border-radius: .8rem; background: #fff; box-shadow: 0 .35rem 1rem rgba(16, 42, 67, .045); }
.low-stock-product-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; }
.low-stock-product-head > div:first-child { display: flex; min-width: 0; flex-direction: column; }
.low-stock-product-head small { color: var(--al-text-secondary); font-size: .72rem; }
.low-stock-product-result { display: flex; flex: 0 0 auto; align-items: baseline; gap: .55rem; }
.low-stock-product-result span { color: var(--al-text-secondary); font-size: .72rem; font-weight: 700; }
.low-stock-product-result strong { font-size: 1.25rem; }
.low-stock-summary-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: #dce6ee; border-top: 1px solid #dce6ee; border-bottom: 1px solid #dce6ee; }
.low-stock-summary-strip span { display: flex; justify-content: space-between; gap: .6rem; padding: .55rem .75rem; background: #f7fafc; color: #52677a; font-size: .72rem; }
.line-product-picker .search-picker-results { position: absolute; margin-top: 0; }
.quantity-stepper { display: grid; grid-template-columns: 2.5rem minmax(4rem, 6rem) 2.5rem; width: max-content; overflow: hidden; border: 1px solid #d8e1eb; border-radius: .55rem; background: #fff; }
.quantity-stepper button { border: 0; background: #edf4fa; color: var(--al-blue); font-size: 1.2rem; font-weight: 800; }
.quantity-stepper button:hover, .quantity-stepper button:focus { background: #dcecf8; }
.quantity-stepper input { min-width: 0; padding: .45rem .3rem; border: 0; outline: 0; text-align: center; font-weight: 700; }
.inventory-count-guide { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem 1rem; border: 1px solid #b8d9f2; border-radius: .75rem; background: linear-gradient(135deg, #eef8ff, #f9fcff); color: #294861; }
.inventory-count-guide strong { flex: 0 0 auto; color: var(--al-blue); }
.inventory-count-guide span { line-height: 1.45; }
.inventory-count-table { min-width: 58rem; }
.inventory-count-stepper { grid-template-columns: 2.75rem minmax(5rem, 7rem) 2.75rem; border-color: #a8cbea; box-shadow: 0 .2rem .65rem rgba(32, 107, 196, .08); }
.inventory-count-stepper button { min-height: 2.75rem; }
.inventory-count-difference { display: inline-flex; min-width: 4.75rem; justify-content: center; padding: .42rem .65rem; border-radius: 999px; font-weight: 800; font-variant-numeric: tabular-nums; }
.inventory-count-difference-positive { background: #e8f7ee; color: #167342; }
.inventory-count-difference-negative { background: #fff0f0; color: #c12b35; }
.inventory-count-difference-zero { background: #eef2f6; color: #5f6b78; }
.payment-verification-panel { border: 1px solid #add3ee; border-radius: .8rem; background: linear-gradient(135deg, #eef8ff, #fff); padding: 1rem; }
.payment-verification-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr)); gap: .7rem; }
.payment-verification-grid > div { padding: .7rem; border-radius: .6rem; background: #fff; box-shadow: 0 .25rem .8rem rgba(16,42,67,.06); }
.payment-verification-grid span { display: block; color: var(--tblr-secondary); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.payment-verification-grid strong { display: block; margin-top: .2rem; color: var(--al-navy); font-size: 1.05rem; }
.payment-balance-ok { color: #15803d !important; }
.payment-balance-short { color: #c92a2a !important; }
.payment-balance-over { color: #b45309 !important; }
.sale-installation-choice { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1rem; border: 1px solid rgba(20, 42, 67, .13); border-radius: .75rem; background: #f7fafc; }
.sale-installation-choice .form-check { flex: 0 0 auto; }
.sale-payment-section { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid rgba(20, 42, 67, .12); }
.sale-payment-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.kit-component-picker { min-width: min(100%, 28rem); }
.kit-component-picker .search-picker-results { position: absolute; margin-top: 0; }

.collection-toolbar { display: flex; align-items: center; justify-content: flex-end; gap: .75rem; margin-bottom: 1rem; padding: .7rem .8rem; border: 1px solid rgba(20, 42, 67, .1); border-radius: .75rem; background: #fff; box-shadow: 0 .35rem 1rem rgba(16, 42, 67, .05); }
.access-options { display: grid; gap: .55rem; }
.access-option { display: flex; align-items: flex-start; gap: .7rem; margin: 0; padding: .75rem .8rem; border: 1px solid rgba(20, 42, 67, .13); border-radius: .65rem; background: #fff; cursor: pointer; transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.access-option:hover { border-color: rgba(32, 107, 196, .45); background: #f7fbff; }
.access-option:has(.form-check-input:checked) { border-color: rgba(32, 107, 196, .58); background: #eef7ff; box-shadow: inset .2rem 0 #206bc4; }
.access-option .form-check-input { flex: 0 0 auto; margin-top: .2rem; }
.access-option-copy { display: flex; min-width: 0; flex-direction: column; }
.access-option-copy strong { color: var(--al-navy); line-height: 1.25; }
.access-option-copy small { margin-top: .15rem; color: var(--tblr-secondary); }
.access-group-invalid { border-color: rgba(214, 57, 57, .48); box-shadow: 0 0 0 .16rem rgba(214, 57, 57, .08); }
.empty-access-state { display: flex; flex-direction: column; gap: .2rem; padding: .85rem; border: 1px dashed rgba(214, 57, 57, .35); border-radius: .65rem; background: #fff5f5; }
.empty-access-state span { color: var(--tblr-secondary); font-size: .82rem; }
.collection-quick-filter { width: min(100%, 28rem); margin-right: auto; }
.collection-view-toggle .btn { min-width: 5.4rem; }
.collection-view-target.collection-view-cards { display: block; width: 100%; }
.collection-view-target.collection-view-cards thead { display: none; }
.collection-view-target.collection-view-cards tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; padding: 1rem; }
.collection-view-target.collection-view-cards tbody tr { display: flex; min-width: 0; flex-wrap: wrap; align-content: flex-start; overflow: hidden; border: 1px solid rgba(20, 42, 67, .13); border-radius: .85rem; background: #fff; box-shadow: 0 .5rem 1.25rem rgba(16, 42, 67, .07); }
.collection-view-target.collection-view-cards tbody tr[hidden] { display: none !important; }
.collection-view-target.collection-view-cards tbody tr > td { display: flex; flex: 1 1 50%; min-width: 0; align-items: flex-start; justify-content: space-between; gap: .75rem; padding: .72rem .9rem; border: 0; border-bottom: 1px solid rgba(20, 42, 67, .07); text-align: right !important; }
.collection-view-target.collection-view-cards tbody tr > td::before { content: attr(data-label); flex: 0 0 auto; color: var(--tblr-secondary); font-size: .66rem; font-weight: 800; letter-spacing: .04em; text-align: left; text-transform: uppercase; }
.collection-view-target.collection-view-cards tbody tr > td:first-child { flex-basis: 100%; background: #f7fafc; }
.collection-view-target.collection-view-cards tbody tr > td:last-child { flex-basis: 100%; justify-content: flex-end; border-bottom: 0; }
.collection-view-target.collection-view-cards tbody tr > td:last-child::before { margin-right: auto; }
.collection-view-target.collection-view-cards tbody tr[data-collection-empty] { display: block; grid-column: 1 / -1; box-shadow: none; }
.collection-view-target.collection-view-cards tbody tr[data-collection-empty] > td { display: block; text-align: center !important; }
.collection-view-target.collection-view-cards tbody tr[data-collection-empty] > td::before { content: none; }
.collection-native-grid.collection-view-list { display: flex !important; flex-direction: column; gap: .8rem; margin-right: 0; margin-left: 0; }
.collection-native-grid.collection-view-list > * { width: 100% !important; max-width: 100% !important; padding-right: 0; padding-left: 0; }
.installations-grid.collection-view-list, .restock-grid.collection-view-list { grid-template-columns: 1fr; }
[data-operational-modal] {
    --message-accent: #1769aa;
    --message-accent-dark: #12578e;
    --message-soft: #eaf4fc;
    --message-border: #bcdcf2;
}
[data-operational-modal][data-message-tone="success"] { --message-accent: #15803d; --message-accent-dark: #116832; --message-soft: #eaf8ef; --message-border: #a9dfba; }
[data-operational-modal][data-message-tone="warning"] { --message-accent: #b45309; --message-accent-dark: #92400e; --message-soft: #fff7e6; --message-border: #f3cf8a; }
[data-operational-modal][data-message-tone="danger"] { --message-accent: #c92a2a; --message-accent-dark: #a61e1e; --message-soft: #fff0f0; --message-border: #f1b4b4; }
.operational-modal-card { overflow: hidden; border: 1px solid var(--message-border); border-radius: 1.1rem; background: #fff; box-shadow: 0 1.75rem 5.5rem rgba(16, 42, 67, .28); }
.operational-modal-status { height: .42rem; background: var(--message-accent); }
.operational-modal-header { padding: 1.45rem 1.5rem 1.25rem; border-bottom: 1px solid var(--message-border); background: linear-gradient(135deg, var(--message-soft), #fff 72%); }
.operational-modal-heading { display: flex; align-items: center; gap: 1rem; }
.operational-modal-icon { display: grid; flex: 0 0 3.4rem; place-items: center; width: 3.4rem; height: 3.4rem; border: 1px solid var(--message-border); border-radius: 50%; background: #fff; color: var(--message-accent); box-shadow: 0 .45rem 1.2rem color-mix(in srgb, var(--message-accent) 17%, transparent); }
.operational-modal-icon svg { width: 1.75rem; height: 1.75rem; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2.25; }
.operational-modal-kicker { margin-bottom: .28rem; color: var(--message-accent-dark); font-size: .7rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.operational-modal-title { color: var(--al-navy); font-size: 1.25rem; font-weight: 800; }
.operational-modal-body { padding: 1.45rem 1.5rem 1.3rem; }
.operational-modal-message { margin: 0; color: #243b53; font-size: 1.05rem; font-weight: 600; line-height: 1.6; }
.daily-inspiration { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: stretch; gap: 1rem; margin-top: 1rem; overflow: hidden; border: 1px solid #b8ded4; border-radius: .85rem; background: linear-gradient(135deg, #eefaf5, #f5fbff); }
.daily-inspiration[hidden] { display: none; }
.daily-inspiration-art { display: grid; place-items: center; min-height: 8.2rem; background: linear-gradient(155deg, #1c789a, #1d8c68); color: rgba(255, 255, 255, .92); }
.daily-inspiration-art svg { width: 6.5rem; height: auto; fill: rgba(255, 239, 169, .95); }
.daily-inspiration-art svg[hidden] { display: none; }
.daily-inspiration-art path { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; }
.daily-inspiration > div:last-child { align-self: center; padding: 1rem 1rem 1rem 0; }
.daily-inspiration span { display: block; color: #18715a; font-size: .65rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.daily-inspiration blockquote { margin: .45rem 0 .35rem; color: var(--al-navy); font-size: .98rem; font-weight: 700; line-height: 1.48; }
.daily-inspiration cite { color: #416b64; font-size: .78rem; font-style: normal; font-weight: 800; }
.daily-bible-fact { margin-top: .85rem; padding: .65rem .75rem; border-left: 3px solid #1c789a; border-radius: .35rem; background: rgba(255, 255, 255, .72); color: #29445b; }
.daily-bible-fact strong { display: block; color: #15516a; font-size: .78rem; }
.daily-bible-fact p { margin: .2rem 0 0; font-size: .8rem; line-height: 1.5; }
.operational-modal-hint { display: flex; align-items: center; gap: .45rem; margin-top: 1.3rem; padding: .7rem .8rem; border-radius: .65rem; background: #f6f8fb; color: #62758a; font-size: .78rem; }
.operational-modal-hint kbd { padding: .25rem .45rem; border: 0; border-radius: .35rem; background: var(--al-navy); color: #fff; box-shadow: none; }
.operational-modal-footer { padding: 1rem 1.5rem; border-top: 1px solid var(--message-border); background: var(--message-soft); }
.operational-modal-accept { min-width: 8.5rem; border-color: var(--message-accent); background: var(--message-accent); color: #fff; font-weight: 700; box-shadow: 0 .45rem 1.1rem color-mix(in srgb, var(--message-accent) 24%, transparent); }
.operational-modal-accept:hover, .operational-modal-accept:focus { border-color: var(--message-accent-dark); background: var(--message-accent-dark); color: #fff; }
.operational-modal-accept:disabled { border-color: #91a4b7; background: #91a4b7; color: #fff; box-shadow: none; cursor: wait; opacity: 1; }
.custody-stat { display: flex; flex-direction: column; padding: .75rem; border-radius: .65rem; background: #f4f7fb; }
.custody-stat span { color: var(--tblr-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.custody-stat strong { margin-top: .15rem; color: var(--al-navy); font-size: 1.15rem; }
.admin-availability-calendar { position: relative; padding: 1.1rem; border: 1px solid #d9e2ec; border-radius: .9rem; background: linear-gradient(180deg, #fff, #f7fafc); }
.admin-availability-calendar .installer-calendar-day:not(:disabled):not([aria-disabled="true"]):hover { transform: translateY(-1px); box-shadow: 0 .35rem .8rem rgba(16, 42, 67, .15); }
.custody-route { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid rgba(23, 105, 170, .16); border-radius: .75rem; background: #f3f8fc; }
.custody-route > div:not(.custody-route-arrow) { display: flex; min-width: 0; flex-direction: column; }
.custody-route span { color: var(--tblr-secondary); font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.custody-route strong { overflow: hidden; color: var(--al-navy); text-overflow: ellipsis; white-space: nowrap; }
.custody-route-arrow { color: var(--al-blue); font-size: 1.4rem; font-weight: 800; }
.pos-logistics-alert { display: flex; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid #f1aeb5; border-radius: .8rem; background: linear-gradient(135deg, #fff0f1, #fff 78%); color: #842029; box-shadow: 0 .55rem 1.4rem rgba(201, 42, 42, .08); }
.pos-logistics-alert-icon { display: grid; flex: 0 0 3rem; place-items: center; width: 3rem; height: 3rem; border-radius: .75rem; background: #c92a2a; color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .08em; box-shadow: 0 .45rem 1rem rgba(201, 42, 42, .25); }
.pos-logistics-alert > div:last-child { display: flex; flex-direction: column; gap: .2rem; }
.pos-logistics-alert strong { font-size: .9rem; letter-spacing: .035em; }
.pos-logistics-alert span { line-height: 1.45; }
.installation-search-card { border: 0; box-shadow: 0 .45rem 1.4rem rgba(16, 42, 67, .07); }
.installation-search-card, .installation-filter-bar, .installation-date-filter { min-width: 0; }
.installation-filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.installation-search-form { width: min(100%, 42rem); }
.installation-cards-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.installation-date-filter { display: grid; grid-template-columns: minmax(10rem, 14rem) minmax(10rem, 14rem) auto 1fr; align-items: end; gap: .75rem; }
.installation-date-filter .form-label { margin-bottom: .35rem; }
.installation-view-switch { justify-self: end; }
.installation-table-card { overflow: hidden; border: 1px solid rgba(23, 105, 170, .16); box-shadow: 0 .45rem 1.4rem rgba(16, 42, 67, .07); }
.installation-list-scroll { width: 100%; }
.installation-list-table { width: 100%; min-width: 0; table-layout: fixed; }
.installation-list-table thead th { padding: .8rem .7rem; background: #f1f6fa; color: #52677c; font-size: .68rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; white-space: nowrap; }
.installation-list-table tbody td { padding: .75rem .7rem; border-color: #e8edf2; vertical-align: middle; }
.installation-list-table tbody tr:hover { background: #f8fbfe; }
.installation-list-table td strong { color: var(--al-navy); }
.installation-list-address { max-width: 15rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.installation-list-table th:nth-child(1) { width: 10%; }
.installation-list-table th:nth-child(2) { width: 15%; }
.installation-list-table th:nth-child(3) { width: 16%; }
.installation-list-table th:nth-child(4) { width: 8%; }
.installation-list-table th:nth-child(5) { width: 8%; }
.installation-list-table th:nth-child(6) { width: 11%; }
.installation-list-table th:nth-child(7) { width: 13%; }
.installation-list-table th:nth-child(8) { width: 8%; }
.installation-list-table th:nth-child(9) { width: 11%; }
.installation-list-table th, .installation-list-table td { overflow-wrap: anywhere; }
.installation-list-table td .badge { max-width: 100%; white-space: normal; text-align: center; line-height: 1.15; }
.installation-list-table td .btn { max-width: 100%; white-space: normal; line-height: 1.15; }
.installation-card { overflow: hidden; position: relative; border: 1px solid rgba(23, 105, 170, .17); border-radius: 1rem; box-shadow: 0 .7rem 2rem rgba(16, 42, 67, .09); transition: transform .18s ease, box-shadow .18s ease; }
.installation-card:hover { transform: translateY(-2px); box-shadow: 0 1rem 2.5rem rgba(16, 42, 67, .14); }
.installation-card-accent { height: .34rem; background: var(--al-blue); }
.installation-card-pos { border-color: #efacb2; box-shadow: 0 .7rem 2rem rgba(201, 42, 42, .11); }
.installation-card-pos .installation-card-accent { background: #d63939; }
.installation-card-review { border-color: #f0cf8e; }
.installation-card-review .installation-card-accent { background: #e6a700; }
.installation-card-completed { border-color: #9bd2ad; background: #fcfffd; box-shadow: 0 .7rem 2rem rgba(21, 128, 61, .09); }
.installation-card-completed .installation-card-accent { background: #15803d; }
.installation-card-completed .installation-card-header, .installation-card-completed .installation-card-footer { background: #f1fbf4; }
.installation-card-header { display: flex; align-items: center; justify-content: space-between; min-height: 5rem; padding: 1rem 1.15rem; background: #fbfcfe; }
.installation-schedule { display: flex; align-items: baseline; gap: .6rem; }
.installation-date { color: var(--al-navy); font-size: 1.1rem; font-weight: 800; }
.installation-time { padding: .25rem .5rem; border-radius: .45rem; background: #e8f2fb; color: var(--al-blue); font-size: .8rem; font-weight: 800; }
.installation-pos-banner { display: flex; align-items: center; gap: .75rem; margin: 1rem 1.15rem 0; padding: .75rem .85rem; border: 1px solid #ee9ca4; border-radius: .75rem; background: linear-gradient(135deg, #d63939, #b4232f); color: #fff; box-shadow: 0 .55rem 1.25rem rgba(201, 42, 42, .22); }
.installation-pos-icon { display: grid; flex: 0 0 2.5rem; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .6rem; background: rgba(255, 255, 255, .18); font-size: .66rem; font-weight: 900; letter-spacing: .08em; }
.installation-pos-banner > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.installation-pos-banner strong { font-size: .88rem; letter-spacing: .07em; }
.installation-pos-banner small { color: rgba(255, 255, 255, .84); }
.installation-review-banner { display: flex; align-items: center; gap: .75rem; margin: 1rem 1.15rem 0; padding: .75rem .85rem; border: 1px solid #efc66f; border-radius: .75rem; background: #fff5d6; color: #7a4b00; }
.installation-review-icon { display: grid; flex: 0 0 2.5rem; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: .6rem; background: #e6a700; color: #fff; font-size: 1.1rem; font-weight: 900; }
.installation-review-banner > span:last-child { display: flex; flex-direction: column; line-height: 1.25; }
.installation-review-banner strong { font-size: .82rem; letter-spacing: .055em; }
.installation-review-banner small { color: #8b620f; }
.installation-completed-banner { display: flex; align-items: center; gap: .75rem; margin: 1rem 1.15rem 0; padding: .75rem .85rem; border: 1px solid #9bd2ad; border-radius: .75rem; background: linear-gradient(135deg, #e7f7ec, #f8fffa); color: #146c35; }
.installation-completed-icon { display: grid; flex: 0 0 2.5rem; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: #15803d; color: #fff; font-size: 1.1rem; font-weight: 900; box-shadow: 0 .4rem 1rem rgba(21, 128, 61, .18); }
.installation-completed-banner > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.installation-completed-banner strong { font-size: .82rem; letter-spacing: .055em; }
.installation-completed-banner small { color: #397a50; }
.installation-client { margin-bottom: 1rem; }
.installation-client h2 { margin: 0; color: var(--al-navy); font-size: 1.15rem; }
.installation-client span { color: var(--tblr-secondary); font-size: .82rem; }
.installation-destination { display: flex; gap: .7rem; margin-bottom: 1rem; padding: .8rem; border-radius: .7rem; background: #f4f7fb; }
.installation-detail-icon { display: grid; flex: 0 0 2rem; place-items: center; width: 2rem; height: 2rem; border-radius: .5rem; background: #dcecf8; color: var(--al-blue); font-size: .62rem; font-weight: 900; }
.installation-destination > div { display: flex; min-width: 0; flex-direction: column; }
.installation-destination strong { color: var(--al-navy); }
.installation-destination div span { overflow: hidden; color: var(--tblr-secondary); font-size: .8rem; text-overflow: ellipsis; white-space: nowrap; }
.installation-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem 1rem; padding: .15rem 0 1rem; }
.installation-facts > div { display: flex; min-width: 0; flex-direction: column; gap: .15rem; }
.installation-facts span { color: var(--tblr-secondary); font-size: .67rem; font-weight: 800; letter-spacing: .045em; text-transform: uppercase; }
.installation-facts strong { overflow: hidden; color: #243b53; font-size: .85rem; text-overflow: ellipsis; white-space: nowrap; }
.installation-status-row { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .85rem; border-top: 1px solid rgba(16, 42, 67, .08); }
.installation-status { padding: .38rem .55rem; border-radius: .5rem; font-size: .72rem; font-weight: 800; }
.installation-status-success { background: #e7f6ed; color: #18733a; }
.installation-status-warning { background: #fff3d8; color: #925400; }
.installation-status-danger { background: #ffe3e3; color: #b4232f; }
.installation-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fbfcfe; }
.payment-confirmation-card { border-color: #b8dfc5; }
.agreed-charge { display: flex; flex-direction: column; margin: 1rem 0 1.25rem; padding: 1rem; border: 1px solid #b8dfc5; border-radius: .8rem; background: #effaf3; }
.agreed-charge span { color: #397a50; font-size: .7rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.agreed-charge strong { margin-top: .2rem; color: #146c35; font-size: 1.45rem; }
.agreed-charge small { margin-top: .15rem; color: #5c7465; }
.locked-payment-method { display: flex; align-items: center; gap: .75rem; min-height: 3rem; padding: .65rem .75rem; border: 1px solid #b8dfc5; border-radius: .55rem; background: #f5fcf7; }
.locked-payment-icon { display: grid; flex: 0 0 1.8rem; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: #15803d; color: #fff; font-weight: 900; }
.locked-payment-method > div { display: flex; flex-direction: column; }
.locked-payment-method strong { color: #146c35; }
.locked-payment-method small { color: #678073; font-size: .72rem; }

.restock-emergency-summary { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: 1.1rem 1.25rem; border: 1px solid #efacb2; border-radius: 1rem; background: linear-gradient(135deg, #fff0f0, #fff 78%); box-shadow: 0 .65rem 1.8rem rgba(201, 42, 42, .1); }
.restock-emergency-icon { display: grid; flex: 0 0 3.4rem; place-items: center; width: 3.4rem; height: 3.4rem; border-radius: 1rem; background: #c92a2a; color: #fff; font-size: 1.65rem; font-weight: 900; box-shadow: 0 .5rem 1.2rem rgba(201, 42, 42, .22); }
.restock-emergency-summary > div { display: flex; flex-direction: column; }
.restock-emergency-kicker { color: #b4232f; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.restock-emergency-summary strong { color: #7f1d1d; font-size: 1.25rem; }
.restock-emergency-summary small { margin-top: .15rem; color: #805257; }
.restock-country { margin-top: 1.75rem; }
.restock-country-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .85rem; padding-bottom: .75rem; border-bottom: 1px solid rgba(16, 42, 67, .12); }
.restock-country-heading > div { display: flex; align-items: center; gap: .7rem; }
.restock-country-heading h2 { margin: 0; color: var(--al-navy); font-size: 1.15rem; }
.restock-country-code { display: grid; place-items: center; width: 2.45rem; height: 2.45rem; border-radius: .7rem; background: #dcecf8; color: var(--al-blue); font-size: .7rem; font-weight: 900; }
.restock-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.restock-card { overflow: hidden; border: 1px solid #edc3c6; box-shadow: 0 .55rem 1.5rem rgba(16, 42, 67, .07); }
.restock-card-status { height: .28rem; background: #d63939; }
.restock-card-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.restock-product-key { padding: .25rem .45rem; border-radius: .4rem; background: #edf2f7; color: #52697f; font-size: .68rem; font-weight: 800; }
.restock-missing-number { color: #c92a2a; font-size: 1.25rem; font-weight: 900; }
.restock-card h3 { margin: .75rem 0 .15rem; color: var(--al-navy); font-size: 1rem; }
.restock-branches { min-height: 1.3rem; margin: 0 0 1rem; color: var(--tblr-secondary); font-size: .78rem; }
.restock-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.restock-facts > div { display: flex; flex-direction: column; padding: .65rem; border-radius: .6rem; background: #f6f8fb; }
.restock-facts span { color: var(--tblr-secondary); font-size: .63rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.restock-facts strong { overflow: hidden; margin-top: .12rem; color: #243b53; font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
.restock-facts > div:last-child strong { overflow: visible; text-overflow: clip; white-space: normal; }
.restock-card-actions { display: flex; justify-content: flex-end; gap: .5rem; }
.restock-clear-card { border-color: #b8dfc5; }
.restock-clear-icon { background: #e7f6ed; color: #15803d; }

.page-subtitle { margin: .45rem 0 0; color: var(--tblr-secondary); }
.metric-card { overflow: hidden; position: relative; }
.metric-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: .22rem; background: var(--al-blue); }
.metric-card.alert-metric::before { background: #f59f00; }
.metric-value { margin: .4rem 0 .15rem; font-size: 2rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--al-navy); }
.empty-compact { padding: 3.5rem 1.5rem; }
.empty-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 1rem; background: #e8f2fb; color: var(--al-blue); font-weight: 900; }
.list-group-item-action { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; }
.list-group-item-action span { color: var(--al-blue); font-size: 1.1rem; }

.transport-total-local {
    align-items: center;
    background: #ecf8f1;
    border: 1px solid #b7dfc7;
    border-radius: .65rem;
    color: #176b3a;
    display: flex;
    justify-content: space-between;
    padding: .8rem 1rem;
}

.transport-total-local strong { font-size: 1.1rem; }

.payables-search { min-width: min(100%, 28rem); }

.commissionable-product-toggle,
.installer-remember-check,
.min-touch-control {
    align-items: center;
    display: flex;
    gap: .75rem;
    min-height: 3rem;
}
.commissionable-product-toggle .form-check-label,
.installer-remember-check .form-check-label,
.access-option-copy { display: flex; flex-direction: column; }
.commissionable-product-toggle small,
.installer-remember-check span,
.access-option-copy small { color: var(--tblr-secondary); font-size: .75rem; font-weight: 400; }
.login-card .form-control-lg { min-height: 3rem; }
.installer-fixed-context { min-width: min(100%, 15rem); padding: .45rem .7rem; border: 1px solid rgba(16, 42, 67, .12); border-radius: .55rem; background: #f7fafc; }
.installer-fixed-context strong,
.installer-fixed-context small { display: block; }
.installer-touch-action { min-height: 3rem; }
.installer-settings-card { border: 1px solid rgba(18, 112, 170, .16); box-shadow: 0 .5rem 1.5rem rgba(16, 42, 67, .06); }
.installer-settings-status,
.installer-agenda-details { display: grid; gap: .7rem; margin: 0; }
.installer-settings-status > div,
.installer-agenda-details > div { display: grid; grid-template-columns: minmax(5.5rem, .42fr) 1fr; gap: .7rem; }
.installer-settings-status dt,
.installer-agenda-details dt { color: var(--tblr-secondary); font-size: .7rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.installer-settings-status dd,
.installer-agenda-details dd { margin: 0; overflow-wrap: anywhere; }
.installer-agenda-card { overflow: hidden; border: 1px solid rgba(18, 112, 170, .15); box-shadow: 0 .6rem 1.6rem rgba(16, 42, 67, .07); }
.installer-agenda-card-pos { border-color: #f0b35b; box-shadow: 0 .7rem 1.8rem rgba(217, 119, 6, .13); }
.installer-pos-warning { align-items: center; display: flex; justify-content: space-between; gap: .8rem; padding: .8rem 1rem; border: 1px solid #f2bb67; border-radius: .65rem; background: #fff4dd; color: #8a4b08; }
.installer-pos-warning strong { font-size: 1.05rem; letter-spacing: .07em; }
.installer-agenda-more { overflow: hidden; border: 1px solid rgba(18, 112, 170, .16); border-radius: .65rem; background: #f7fafc; }
.installer-agenda-more summary { cursor: pointer; padding: .75rem .9rem; color: #1769aa; font-weight: 700; list-style-position: inside; }
.installer-agenda-more[open] summary { border-bottom: 1px solid rgba(18, 112, 170, .12); background: #edf6fb; }
.installer-agenda-more .installer-agenda-details { padding: 0 .9rem .9rem; }
.installer-mobile-dock { position: fixed; z-index: 1030; right: .7rem; bottom: .7rem; left: .7rem; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); overflow: hidden; padding: .35rem; border: 1px solid rgba(16, 42, 67, .13); border-radius: 1rem; background: rgba(255, 255, 255, .96); box-shadow: 0 .9rem 2.2rem rgba(16, 42, 67, .22); backdrop-filter: blur(12px); }
.installer-mobile-dock a,
.installer-mobile-dock button { align-items: center; display: flex; flex-direction: column; gap: .15rem; justify-content: center; width: 100%; min-height: 3.25rem; padding: .25rem; border: 0; border-radius: .7rem; background: transparent; color: #294861; font: inherit; font-size: .68rem; font-weight: 700; text-decoration: none; }
.installer-mobile-dock a:active,
.installer-mobile-dock button:active { background: #e8f3fa; color: #0f6eaa; }
.installer-mobile-dock span { display: grid; place-items: center; width: 1.55rem; height: 1.55rem; border-radius: .5rem; background: #e5f2fa; color: #146b9f; font-size: .58rem; font-weight: 900; }
.installer-mobile-dock form { margin: 0; }
.installer-history-card { padding: 1rem; border-top: 1px solid rgba(16, 42, 67, .1); }
.installer-history-card > div:first-child > div { display: flex; flex-direction: column; }
.installer-history-card p { margin: .65rem 0; color: var(--tblr-secondary); }
.installer-history-breakdown { display: flex; flex-wrap: wrap; gap: .45rem; }
.installer-history-breakdown span { padding: .3rem .5rem; border-radius: .45rem; background: #edf3f8; color: #425b70; font-size: .72rem; }
.installer-history-filter .form-control { min-height: 3rem; }
.inventory-batch-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.inventory-batch-actions-thermal { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.inventory-batch-actions .btn { align-items: center; display: flex; justify-content: center; min-height: 3rem; white-space: normal; }
.mp80-printer-status { align-items: flex-start; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: .8rem; padding: .85rem; border: 1px solid #9bc7e4; border-radius: .7rem; background: #edf7fd; color: #184d70; }
.mp80-printer-status[hidden] { display: none; }
.mp80-printer-status[data-tone="success"] { border-color: #86d3a4; background: #ecfaf1; color: #17683a; }
.mp80-printer-status[data-tone="danger"] { border-color: #ef9a9a; background: #fff0f0; color: #a62525; }
.mp80-printer-mark { align-items: center; display: flex; justify-content: center; width: 3rem; height: 3rem; border-radius: .75rem; background: #1769aa; color: #fff; font-size: .8rem; font-weight: 900; letter-spacing: .06em; }
.mp80-printer-status[data-tone="success"] .mp80-printer-mark { background: #198754; }
.mp80-printer-status[data-tone="danger"] .mp80-printer-mark { background: #d63939; }
.mp80-printer-status strong { display: block; margin-bottom: .15rem; font-size: .95rem; }
.mp80-printer-status p { color: inherit; font-size: .8rem; }
.mp80-printer-status .progress-bar { background: currentColor; }
.installation-camera-preview { align-items: center; display: flex; flex-direction: column; gap: .35rem; justify-content: center; min-height: 15rem; padding: 1.5rem; border: 2px dashed #9bbbd2; border-radius: .85rem; background: #f4f9fd; color: #45667f; text-align: center; }
.installation-camera-preview span { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 1rem; background: #1769aa; color: #fff; font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.installation-camera-preview small { color: var(--tblr-secondary); }
.installation-camera-image { width: 100%; max-height: 55vh; border: 1px solid #cbd8e2; border-radius: .85rem; background: #eef3f7; object-fit: contain; }
.evidence-invoice-option { align-items: flex-start; display: flex; gap: .7rem; padding: .85rem; border: 1px solid #c8dceb; border-radius: .7rem; background: #f4f9fd; }
.evidence-invoice-option .form-check-label { display: flex; flex-direction: column; }
.evidence-invoice-option small { color: var(--tblr-secondary); font-size: .75rem; }
.client-search-main,
.product-search-main { display: flex; flex: 1 1 auto; flex-direction: column; min-width: 0; }
.client-search-meta,
.product-search-meta { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.client-search-meta span { padding: .12rem .32rem; border-radius: .3rem; background: #edf3f8; color: #52697d; font-size: .67rem; }
.product-search-meta .badge { padding: .18rem .32rem; font-size: .65rem; font-weight: 700; }
.product-search-side { align-items: flex-end; display: flex; flex: 0 0 auto; flex-direction: column; gap: .2rem; margin-left: .65rem; }
.product-search-side > strong { color: var(--al-navy); font-size: .84rem; }
.client-search-option,
.line-product-picker .search-picker-option { align-items: center; min-height: 3.45rem; }
.expense-evidence-status { padding: .75rem 1rem; border: 1px dashed #9bbbd2; border-radius: .65rem; background: #f4f9fd; color: #45667f; }
.expense-evidence-preview { align-items: center; display: flex; justify-content: center; min-height: 16rem; overflow: hidden; border: 2px dashed #9bbbd2; border-radius: .85rem; background: #eef5f9; }
.expense-evidence-preview img { width: 100%; max-height: 55vh; object-fit: contain; }
.installer-statement-totals .card { border: 1px solid rgba(18,112,170,.15); box-shadow: 0 .45rem 1.2rem rgba(16,42,67,.06); }
.client-catalog-table { min-width: 1120px; }
.support-renewal-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.support-renewal-summary > div { padding: .85rem; border: 1px solid #c9dcea; border-radius: .7rem; background: #f4f9fd; }
.support-renewal-summary span,
.support-renewal-summary strong { display: block; }
.support-renewal-summary span { color: var(--tblr-secondary); font-size: .7rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.support-renewal-summary strong { margin-top: .2rem; color: #173e63; overflow-wrap: anywhere; }
.support-renewal-preview { display: flex; justify-content: center; max-height: 22rem; overflow: hidden; padding: .65rem; border: 2px dashed #9bbbd2; border-radius: .8rem; background: #eef5f9; }
.support-renewal-preview[hidden] { display: none; }
.support-renewal-preview img { max-width: 100%; max-height: 20rem; object-fit: contain; }
.support-renewal-complete-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.support-renewal-complete-actions .btn { align-items: center; display: flex; justify-content: center; min-height: 3rem; white-space: normal; }

@media (min-width: 992px) {
    .al-sidebar { width: 16rem; }
    .page-wrapper { margin-left: 16rem; }
}

@media (max-width: 767.98px) {
    .product-minimum-card .card-header,
    .low-stock-scope-card .card-header { flex-direction: column; }
    .product-minimum-card .card-header .badge,
    .low-stock-scope-card .card-header .badge { max-width: 100%; white-space: normal; }
    .low-stock-branch-selector { grid-template-columns: 1fr; }
    .low-stock-product-head { align-items: flex-start; flex-direction: column; }
    .low-stock-product-result { width: 100%; justify-content: space-between; }
    .low-stock-summary-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .low-stock-location-table { min-width: 0; }
    .low-stock-location-table thead { display: none; }
    .low-stock-location-table tbody { display: grid; gap: .65rem; padding: .7rem; background: #f4f7fa; }
    .low-stock-location-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .4rem .8rem; padding: .7rem; border: 1px solid #dce5ec; border-radius: .65rem; background: #fff; }
    .low-stock-location-table tbody td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .5rem; padding: .28rem 0 !important; border: 0; text-align: right !important; }
    .low-stock-location-table tbody td:first-child { grid-column: 1 / -1; align-items: flex-start; flex-direction: column; text-align: left !important; }
    .low-stock-location-table tbody td[data-label]::before { content: attr(data-label); color: var(--al-text-secondary); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
    .minimum-location-grid { grid-template-columns: 1fr; }
    .minimum-location-row { align-items: flex-start; flex-direction: column; }
    .minimum-location-input { width: 100%; grid-template-columns: 1fr 7rem; }
    .al-topbar .container-xl { align-items: flex-start; gap: .75rem; padding-top: .75rem; padding-bottom: .75rem; }
    .context-selectors { order: 2; width: 100%; overflow-x: auto; padding-bottom: .25rem; }
    .context-selectors label { min-width: 8.5rem; }
    .page-header { padding-top: 1rem; }
    .page-header .row > .col { flex: 0 0 100%; max-width: 100%; }
    .page-header .row > .col-auto { width: 100%; margin-left: 0 !important; }
    .page-header .btn-list { display: flex; flex-wrap: wrap; width: 100%; }
    .page-header .btn-list .btn { flex: 1 1 9rem; white-space: normal; }
    .inventory-card-header { align-items: stretch; flex-direction: column; }
    .inventory-search { width: 100%; }
    .product-catalog-pagination { align-items: stretch; flex-direction: column; }
    .product-catalog-pagination .btn-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-catalog-pagination .btn { width: 100%; }
    .custody-route { grid-template-columns: 1fr; }
    .custody-route-arrow { transform: rotate(90deg); text-align: center; }
    .operational-modal-header, .operational-modal-body { padding-right: 1.1rem; padding-left: 1.1rem; }
    .operational-modal-heading { align-items: flex-start; }
    .operational-modal-icon { flex-basis: 3rem; width: 3rem; height: 3rem; }
    .daily-inspiration { grid-template-columns: 1fr; }
    .daily-inspiration-art { min-height: 5.2rem; }
    .daily-inspiration-art svg { width: 5.3rem; }
    .daily-inspiration > div:last-child { padding: .2rem 1rem 1rem; }
    .operational-modal-footer { padding: .9rem 1.1rem; }
    .operational-modal-accept { width: 100%; }
    .installation-cards-grid { grid-template-columns: minmax(0, 1fr); }
    .installation-card { min-width: 0; }
    .installation-card:hover { transform: none; }
    .installation-card-footer { align-items: stretch; flex-direction: column; }
    .installation-card-footer .btn { width: 100%; }
    .installation-filter-bar { align-items: stretch; flex-direction: column; }
    .installation-date-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .installation-filter-bar > .btn-group { display: flex !important; width: 100%; min-width: 0; flex-wrap: wrap; }
    .installation-filter-bar > .btn-group .btn { min-width: 0; flex: 1 1 45%; padding-right: .35rem; padding-left: .35rem; white-space: normal; }
    .installation-filter-bar > .btn-group .btn:last-child { flex-basis: 100%; }
    .installation-search-form, .installation-search-form .input-group { width: 100%; max-width: 100%; min-width: 0; }
    .installation-search-form input[type="search"] { min-width: 0; }
    .installation-date-filter { width: 100%; max-width: 100%; min-width: 0; grid-template-columns: minmax(0, 1fr); }
    .installation-date-filter > div { min-width: 0; }
    .installation-date-filter .form-control { width: 100%; max-width: 100%; min-width: 0 !important; padding-right: .35rem; padding-left: .35rem; box-sizing: border-box; }
    .installation-date-filter > button { width: 100%; }
    .installation-view-switch { grid-column: 1 / -1; justify-self: stretch; width: 100%; }
    .installation-view-switch .btn { flex: 1 1 0; }
    .installation-list-table { min-width: 1040px; table-layout: auto; }
    .installation-search-form { width: 100%; }
    .restock-grid { grid-template-columns: 1fr; }
    .support-renewal-summary,
    .support-renewal-complete-actions { grid-template-columns: 1fr; }
    .restock-emergency-summary { align-items: flex-start; }
    .login-access-methods > div { width: 100%; }
    .installer-quick-actions { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem !important; }
    .page-header .installer-quick-actions .btn { min-height: 3.45rem; padding: .65rem; border-radius: .75rem; box-shadow: 0 .35rem .9rem rgba(16, 42, 67, .07); }
    .installer-earning-summary { --tblr-gutter-x: .55rem; --tblr-gutter-y: .55rem; }
    .installer-earning-summary .card-body { padding: .7rem; }
    .installer-earning-summary .display-6 { margin-top: .15rem !important; font-size: 1.55rem; }
    .installer-earning-summary .h2 { font-size: .95rem; }
    .installer-earning-summary .text-secondary.small { font-size: .66rem; }
    .installer-extraordinary-summary .card-body { flex-wrap: nowrap !important; }
    .installer-extraordinary-summary .btn { max-width: 12rem; padding: .45rem .65rem; font-size: .72rem; line-height: 1.2; white-space: normal; }
    .installer-settings-status > div,
    .installer-agenda-details > div { grid-template-columns: 1fr; gap: .12rem; }
    .installer-agenda-primary { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .installer-agenda-primary > div { display: block; min-width: 0; padding: .55rem; border-radius: .55rem; background: #f4f8fb; }
    .installer-agenda-card .card-body { padding: .9rem; }
    .installer-agenda-card .card-footer { padding: .75rem .9rem; }
    .installer-agenda-card .card-title { font-size: 1.15rem !important; }
    .installer-agenda-more summary { padding: .65rem .75rem; }
    .installer-agenda-more .installer-agenda-details { padding: 0 .75rem .75rem; }
    .installer-agenda-grid { --tblr-gutter-y: .85rem; }
    .installer-touch-action { min-height: 2.75rem; padding: .5rem .6rem; white-space: normal; }
    .installer-pos-warning { align-items: flex-start; flex-direction: column; }
    .installer-session .page-wrapper { padding-bottom: 5.2rem; }
    .inventory-batch-actions { grid-template-columns: 1fr; }
    .product-search-side { align-items: flex-start; width: 100%; margin: .65rem 0 0; }
    .client-search-option,
    .line-product-picker .search-picker-option { align-items: flex-start; flex-direction: column; }
    .sale-installation-choice { align-items: stretch; flex-direction: column; }
    .sale-installation-choice .form-check { min-height: 2.75rem; align-items: center; padding: .7rem .85rem .7rem 3rem; border-radius: .65rem; background: #fff; }
    .sale-payment-section-heading { align-items: flex-start; }
    .sale-lines-table-wrap { overflow: visible; }
    .sale-lines-table { min-width: 0; margin: 0; }
    .sale-lines-table thead { display: none; }
    .sale-lines-table tbody { display: grid; gap: .75rem; padding: .75rem; background: #f3f6f9; }
    .sale-lines-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .85rem; padding: .85rem; border: 1px solid #d9e4ed; border-radius: .8rem; background: #fff; box-shadow: 0 .3rem .9rem rgba(16, 42, 67, .05); }
    .sale-lines-table tbody td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .55rem; padding: .28rem 0 !important; border: 0; text-align: right !important; }
    .sale-lines-table tbody td:first-child { grid-column: 1 / -1; display: block; text-align: left !important; }
    .sale-lines-table tbody td:first-child::before { display: none; }
    .sale-lines-table tbody td::before { content: attr(data-label); color: var(--al-text-secondary); font-size: .67rem; font-weight: 800; letter-spacing: .025em; text-align: left; text-transform: uppercase; }
    .sale-lines-table tbody td:last-child { grid-column: 1 / -1; }
    .sale-lines-table tbody td:last-child .btn-list { display: grid; width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sale-lines-table tbody td:last-child .btn { width: 100%; }
    .sale-lines-table .kit-line-selection { width: 100%; }
    .sale-lines-table .kit-line-selection-name { min-width: 0; overflow-wrap: anywhere; text-align: left; }
}

@media (max-width: 575.98px) {
    .crm-lead-mode-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
    .crm-lead-mode-switch .btn { white-space: normal; }
    .crm-agenda-presets .btn { flex: 1 1 auto; }
    .crm-board-wrap { touch-action: pan-x pan-y; }
    .crm-stages-table input, .crm-stages-table select { min-width: 135px; }
}

@media (max-width: 575.98px) {
    .product-initial-stock-card .card-header { flex-direction: column; }
    .product-initial-stock-card .card-header .badge { align-self: flex-start; }
    .product-price-card .card-header { align-items: stretch; flex-direction: column; }
    .product-price-card .card-actions { width: 100%; margin-left: 0; }
    .product-price-card .card-actions .btn { width: 100%; white-space: normal; }
}

/* CRM pipeline: responsive horizontally-scrolling stages with compact, keyboard-friendly suggestions. */
.crm-page { min-width: 0; }
.crm-filter-row { display: grid; grid-template-columns: minmax(240px, 1fr) minmax(170px, .35fr) minmax(180px, .35fr) auto; align-items: end; gap: .85rem; }
.crm-filter-actions { display: flex; gap: .5rem; }
.crm-search-wrap { position: relative; min-width: 0; }
.crm-suggestions { position: absolute; z-index: 1080; inset: calc(100% + 4px) 0 auto; max-height: 300px; overflow: auto; border: 1px solid var(--tblr-border-color); border-radius: .75rem; background: var(--tblr-bg-surface); box-shadow: 0 12px 28px rgba(16,42,67,.16); }
.crm-suggestions[hidden] { display: none; }
.crm-suggestion { display: grid; gap: .2rem; width: 100%; padding: .7rem .85rem; border: 0; border-bottom: 1px solid var(--tblr-border-color); background: transparent; color: inherit; text-align: left; text-decoration: none; }
.crm-suggestion:last-child { border-bottom: 0; }
.crm-suggestion:hover, .crm-suggestion:focus-visible { outline: 0; background: var(--tblr-primary-lt); }
.crm-suggestion strong { color: var(--tblr-body-color); font-size: .9rem; }
.crm-suggestion small, .crm-suggestion-state { color: var(--tblr-secondary-color); font-size: .78rem; }
.crm-suggestion-state { padding: .8rem .9rem; }
.crm-board { display: grid; grid-template-columns: repeat(6, minmax(205px, 1fr)); gap: .8rem; min-width: 1380px; }
.crm-board-wrap { min-width: 0; overflow-x: auto; padding: .2rem .1rem .8rem; }
.crm-board-wrap { overscroll-behavior-x: contain; scrollbar-gutter: stable; }
.crm-lead-mode-switch { flex-wrap: wrap; }
.crm-lead-mode-switch .btn[aria-pressed="true"] { background: var(--tblr-primary); border-color: var(--tblr-primary); color: #fff; }
.crm-agenda-presets { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .85rem; }
.crm-board-help { max-width: 100%; }
.crm-column-drop { min-height: 8rem; }
.crm-column-drop .crm-cards { min-height: 5rem; }
.crm-column-drop.is-drop-target .crm-cards { min-height: 8rem; }
.crm-column[data-crm-stage="PERDIDA"] .crm-cards { padding-bottom: 1rem; }
.crm-stages-table { min-width: 660px; }
.crm-activity-date span:empty::before,
.crm-activity-admin-date span:empty::before { content: "Sin hora"; color: var(--tblr-secondary-color); font-size: .78em; }
.crm-board-help { margin: 0 0 .6rem; color: var(--tblr-secondary-color); font-size: .78rem; }
.crm-column { min-width: 0; }
.crm-column-drop { padding: .45rem; border: 1px solid transparent; border-radius: .8rem; transition: border-color .16s, background-color .16s; }
.crm-column-drop.is-drop-target { border-color: var(--tblr-primary); background: var(--tblr-primary-lt); }
.crm-column > header { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .65rem; }
.crm-column > header > div { display: flex; align-items: center; gap: .45rem; font-size: .82rem; }
.crm-stage-dot { width: .55rem; height: .55rem; border-radius: 50%; background: #2f80b8; }
.crm-stage-calificacion { background: #8b69c6; }.crm-stage-cotizacion_enviada { background: #d69a38; }.crm-stage-negociacion { background: #22936d; }.crm-stage-ganada { background: #17834f; }.crm-stage-perdida { background: #c3474b; }
.crm-cards { display: grid; gap: .6rem; align-content: start; }
.crm-opportunity { display: grid; gap: .4rem; padding: .8rem; border: 1px solid var(--tblr-border-color); border-radius: .8rem; background: var(--tblr-bg-surface); color: inherit; text-decoration: none; box-shadow: 0 2px 8px rgba(16,42,67,.035); }
.crm-opportunity:hover, .crm-opportunity:focus-visible { border-color: var(--tblr-primary); outline: 0; box-shadow: 0 7px 18px rgba(16,42,67,.09); transform: translateY(-1px); }
.crm-opportunity[draggable="true"] { cursor: grab; }
.crm-opportunity.is-dragging { opacity: .45; cursor: grabbing; }
.crm-opportunity[aria-busy="true"] { opacity: .65; pointer-events: none; }
.crm-opportunity > div:first-child strong { color: var(--tblr-body-color); font-size: .86rem; }
.crm-card-title { display: flex; align-items: flex-start; justify-content: space-between; gap: .5rem; }
.crm-card-title strong { color: var(--tblr-body-color); font-size: .96rem; line-height: 1.25; }
.crm-card-contact { color: var(--tblr-secondary-color); font-size: .78rem; }
.crm-card-whatsapp { display: inline-flex; align-items: center; gap: .38rem; min-width: 0; color: var(--tblr-secondary-color); font-size: .76rem; line-height: 1.35; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.crm-card-whatsapp svg { flex: 0 0 .95rem; width: .95rem; height: .95rem; fill: #25d366; }
.crm-card-whatsapp .crm-card-whatsapp-glyph { fill: #fff; }
.crm-card-estimate { display: flex; align-items: baseline; justify-content: space-between; gap: .5rem; padding: .38rem .55rem; border-radius: .55rem; background: var(--tblr-primary-lt); color: var(--tblr-primary); font-size: .7rem; }
.crm-card-estimate strong { font-size: .84rem; font-variant-numeric: tabular-nums; }
.crm-card-city { color: var(--tblr-primary); font-size: .76rem; font-weight: 700; }
.crm-origin { color: var(--tblr-secondary-color); font-size: .68rem; }
.crm-opportunity p { margin: .3rem 0 0; color: var(--tblr-secondary-color); font-size: .78rem; }
.crm-card-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .2rem .6rem; color: var(--tblr-secondary-color); font-size: .65rem; }
.crm-next { display: grid; grid-template-columns: auto minmax(0,1fr); gap: .25rem .4rem; padding-top: .5rem; border-top: 1px solid var(--tblr-border-color); color: var(--tblr-primary); font-size: .72rem; }
.crm-next > span:nth-child(2) { font-weight: 700; }.crm-next time { grid-column: 2; color: var(--tblr-secondary-color); font-size: .68rem; }
.crm-next-empty, .crm-empty { padding: .75rem; border: 1px dashed var(--tblr-border-color); border-radius: .7rem; color: var(--tblr-secondary-color); font-size: .76rem; text-align: center; }
.crm-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; gap: 1rem; }
.crm-detail-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.crm-detail-facts > div { min-width: 0; }.crm-detail-facts span { display: block; color: var(--tblr-secondary-color); font-size: .75rem; }.crm-detail-facts strong { display: block; margin-top: .2rem; overflow-wrap: anywhere; }
.crm-detail-business { padding: .85rem 1rem; margin-bottom: 1rem; border-left: 4px solid var(--tblr-primary); border-radius: .6rem; background: var(--tblr-bg-surface-secondary); }
.crm-detail-business span { display: block; color: var(--tblr-secondary-color); font-size: .75rem; }
.crm-detail-business strong { display: block; margin-top: .2rem; font-size: 1.1rem; overflow-wrap: anywhere; }
.crm-lead-edit, .crm-activity-edit-inline { background: var(--tblr-bg-surface-secondary); }
.crm-timeline { position: sticky; top: 1rem; max-height: calc(100vh - 2rem); overflow: auto; }
.crm-activity-row { display: flex; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.crm-activity-date { display: grid; min-width: 105px; color: var(--tblr-primary); font-size: .8rem; }.crm-activity-date span { color: var(--tblr-secondary-color); }
.crm-complete-form { width: min(100%, 260px); padding: .7rem; border: 1px solid var(--tblr-border-color); border-radius: .7rem; background: var(--tblr-bg-surface-secondary); }
.crm-add-activity { background: var(--tblr-bg-surface-secondary); }
.crm-activity-panel { padding: 1rem; border: 1px solid var(--tblr-border-color); border-radius: .8rem; background: var(--tblr-bg-surface-secondary); }
.crm-activity-preview { padding: .8rem 1rem; border: 1px solid #b9dfca; border-left: 4px solid #22936d; border-radius: .65rem; background: #f1fbf5; color: #205b40; font-size: .84rem; }
.crm-activity-preview[hidden] { display: none; }
.crm-agenda-filters { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; }
.crm-agenda-filters > div:not(.btn-group) { min-width: 160px; }
.crm-agenda-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .85rem; }
.crm-agenda-card { min-width: 0; padding: 1rem; border: 1px solid var(--tblr-border-color); border-radius: .8rem; background: var(--tblr-bg-surface); }
.crm-agenda-card time { color: var(--tblr-secondary-color); font-size: .76rem; }
.crm-agenda-card-lead { display: block; margin-top: .8rem; font-weight: 700; }
.crm-agenda-card p { margin: .35rem 0 .8rem; overflow-wrap: anywhere; }
.crm-calendar-scroll { overflow-x: auto; padding-bottom: .3rem; }
.crm-calendar-months { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,320px),1fr)); align-items: start; gap: 1rem; }
.crm-month-card { min-width: 0; padding: .8rem; border: 1px solid var(--tblr-border-color); border-radius: .9rem; background: var(--tblr-bg-surface-secondary); box-shadow: 0 3px 12px rgba(16,42,67,.045); }
.crm-month-card h3 { margin: 0 0 .5rem; padding-bottom: .5rem; border-bottom: 1px solid var(--tblr-border-color); font-size: .95rem; text-transform: capitalize; }
.crm-month-grid { display: grid; grid-template-columns: repeat(7,minmax(0,1fr)); gap: .25rem; }
.crm-calendar-heading { padding: .35rem .1rem; color: var(--tblr-secondary-color); font-size: .68rem; font-weight: 700; text-align: center; }
.crm-month-day { min-width: 0; min-height: 76px; padding: .3rem; border: 1px solid var(--tblr-border-color); border-radius: .5rem; background: var(--tblr-bg-surface); }
.crm-month-day > strong { display: block; margin-bottom: .2rem; font-size: .75rem; }
.crm-month-blank { min-width: 0; min-height: 76px; border: 1px dashed transparent; }
.crm-month-day-outside { background: var(--tblr-bg-surface-secondary); opacity: .52; }
.crm-calendar-event { display: grid; gap: .1rem; margin-top: .25rem; padding: .35rem; border-left: 3px solid var(--tblr-primary); border-radius: .3rem; background: var(--tblr-bg-surface-secondary); font-size: .7rem; overflow-wrap: anywhere; }
.crm-calendar-event time { color: var(--tblr-primary); font-size: .68rem; font-weight: 700; }
.crm-calendar-event span { font-weight: 700; }
.crm-calendar-more { display: block; margin-top: .15rem; color: var(--tblr-secondary-color); font-size: .65rem; }
.crm-board-status { min-height: 1.3rem; color: var(--tblr-secondary-color); font-size: .78rem; }
.crm-board-status.is-error { color: var(--tblr-danger); font-weight: 700; }
.crm-activity-admin-list { display: grid; gap: .8rem; padding: 1rem; }
.crm-activity-admin-card { min-width: 0; padding: 1rem; border: 1px solid var(--tblr-border-color); border-radius: .8rem; background: var(--tblr-bg-surface); }
.crm-activity-admin-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.crm-activity-admin-head h3 { margin: .45rem 0 .2rem; font-size: .95rem; }
.crm-activity-admin-head p { margin: 0; color: var(--tblr-secondary-color); font-size: .76rem; }
.crm-activity-admin-date { display: grid; flex: 0 0 auto; text-align: right; }
.crm-activity-admin-task { margin: .75rem 0; overflow-wrap: anywhere; }
.crm-activity-edit { padding-top: .65rem; border-top: 1px solid var(--tblr-border-color); }
.crm-activity-edit summary { color: var(--tblr-primary); font-weight: 700; cursor: pointer; }
.crm-cancel-activity-form { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: .5rem; margin-top: .8rem; padding-top: .8rem; border-top: 1px dashed var(--tblr-border-color); }
.crm-cancel-activity-form label { grid-column: 1 / -1; margin-bottom: -.35rem; }
.crm-whatsapp-card { scroll-margin-top: 1rem; }
@media (max-width: 767.98px) {
    .crm-filter-row { grid-template-columns: 1fr 1fr; }
    .crm-filter-row .crm-search-wrap { grid-column: 1 / -1; }
    .crm-filter-actions { grid-column: 1 / -1; }
    .crm-board { grid-template-columns: repeat(6, minmax(245px, 82vw)); min-width: max-content; }
    .crm-detail-grid { grid-template-columns: 1fr; }
    .crm-timeline { position: static; max-height: none; }
    .crm-detail-facts { grid-template-columns: 1fr; }
    .crm-activity-row { gap: .7rem; }
    .crm-agenda-filters { align-items: stretch; }
    .crm-agenda-filters > div:not(.btn-group) { flex: 1 1 145px; min-width: 0; }
    .crm-agenda-filters .btn-group { width: 100%; }
    .crm-agenda-filters .btn-group .btn { flex: 1; }
    .crm-agenda-cards { grid-template-columns: 1fr; }
    .crm-calendar-months { grid-template-columns: 1fr; }
    .crm-month-card { padding: .55rem; }
    .crm-month-grid { gap: .18rem; }
    .crm-month-day, .crm-month-blank { min-height: 58px; padding: .2rem; }
    .crm-month-day > strong { font-size: .68rem; }
    .crm-calendar-heading { font-size: .63rem; }
    .crm-month-day .crm-calendar-event { display: block; margin-top: .15rem; padding: .2rem; font-size: .6rem; line-height: 1.2; }
    .crm-month-day .crm-calendar-event time { display: block; font-size: .57rem; }
    .crm-month-day .crm-calendar-event span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .crm-activity-admin-head { flex-direction: column-reverse; gap: .45rem; }
    .crm-activity-admin-date { text-align: left; }
    .crm-cancel-activity-form { grid-template-columns: 1fr; }
    .crm-cancel-activity-form label { grid-column: auto; }
    .crm-board-status { position: sticky; left: 0; }
}

@media (max-width: 767.98px) {
    .inventory-count-guide { flex-direction: column; gap: .25rem; }
    .inventory-count-table-wrap { overflow: visible; }
    .inventory-count-table { min-width: 0; margin: 0; }
    .inventory-count-table thead { display: none; }
    .inventory-count-table tbody { display: grid; gap: .85rem; padding: .85rem; background: #f3f6f9; }
    .inventory-count-table tbody tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; padding: .9rem; border: 1px solid #d9e4ed; border-radius: .8rem; background: #fff; box-shadow: 0 .35rem 1rem rgba(16, 42, 67, .06); }
    .inventory-count-table tbody td { display: flex; min-width: 0; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem 0 !important; border: 0; text-align: right !important; }
    .inventory-count-table tbody td:first-child { grid-column: 1 / -1; align-items: flex-start; flex-direction: column; text-align: left !important; }
    .inventory-count-table tbody td:first-child::before { display: none; }
    .inventory-count-table tbody td::before { content: attr(data-label); color: var(--tblr-secondary); font-size: .68rem; font-weight: 800; letter-spacing: .02em; text-align: left; text-transform: uppercase; }
    .inventory-count-table tbody td[data-label="Nueva cantidad"],
    .inventory-count-table tbody td[data-label="Diferencia"],
    .inventory-count-table tbody td:last-child { grid-column: 1 / -1; }
    .inventory-count-table tbody td:last-child .btn { width: 100%; min-height: 2.7rem; }
    .inventory-count-stepper { width: 100%; grid-template-columns: 3rem minmax(0, 1fr) 3rem; }
}

@media (min-width: 1400px) {
    .installation-cards-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .restock-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.inventory-source-pending .line-product-picker {
    opacity: .55;
}

.kit-line-selections {
    display: grid;
    gap: .35rem;
    margin-top: .5rem;
}

.kit-line-selection {
    display: flex;
    align-items: center;
    gap: .5rem;
    width: min(100%, 36rem);
    padding: .35rem .5rem;
    color: var(--tblr-body-color);
    font-size: .8rem;
    border: 1px solid color-mix(in srgb, var(--tblr-border-color) 75%, transparent);
    border-radius: .5rem;
    background: color-mix(in srgb, var(--tblr-bg-surface-secondary, #f6f8fb) 82%, transparent);
}

.kit-line-selection-kind {
    flex: 0 0 auto;
    padding: .12rem .4rem;
    border-radius: 999px;
    color: var(--tblr-secondary-color);
    background: var(--tblr-bg-surface);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .025em;
    text-transform: uppercase;
}

.kit-line-selection-choice .kit-line-selection-kind {
    color: var(--tblr-primary);
    background: color-mix(in srgb, var(--tblr-primary) 10%, var(--tblr-bg-surface));
}

.kit-line-selection-name {
    min-width: 0;
    overflow-wrap: anywhere;
}

.kit-line-selection.is-unavailable {
    border-color: color-mix(in srgb, var(--tblr-danger) 32%, var(--tblr-border-color));
    background: color-mix(in srgb, var(--tblr-danger) 6%, var(--tblr-bg-surface));
}

.kit-line-selection.is-unavailable .kit-line-selection-kind {
    color: var(--tblr-danger);
    background: color-mix(in srgb, var(--tblr-danger) 10%, var(--tblr-bg-surface));
}

.kit-line-selection.is-shortage {
    border-color: color-mix(in srgb, var(--tblr-warning) 48%, var(--tblr-border-color));
    background: color-mix(in srgb, var(--tblr-warning) 9%, var(--tblr-bg-surface));
}

.kit-line-selection.is-shortage .kit-line-selection-kind {
    color: var(--tblr-warning-text, #8a5700);
    background: color-mix(in srgb, var(--tblr-warning) 16%, var(--tblr-bg-surface));
}

.kit-wizard-candidates {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .85rem;
}

.kit-wizard-candidate {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
    padding: 1rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: .75rem;
    background: var(--tblr-bg-surface);
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.kit-wizard-candidate:hover {
    border-color: color-mix(in srgb, var(--tblr-primary) 45%, var(--tblr-border-color));
}

.kit-wizard-candidate:focus-within {
    outline: 2px solid color-mix(in srgb, var(--tblr-primary) 35%, transparent);
    outline-offset: 2px;
}

.kit-wizard-candidate:has(input:checked) {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--tblr-primary) 18%, transparent);
}

.kit-wizard-candidate-body {
    display: grid;
    gap: .25rem;
}

.kit-wizard-candidate-body small {
    color: var(--tblr-secondary-color);
    font-size: .82rem;
}

.kit-wizard-candidate-meta {
    color: var(--tblr-primary);
    font-weight: 700;
}

@media (max-width: 767.98px) {
    .kit-wizard-candidates { grid-template-columns: 1fr; }
}

.installer-calendar-panel {
    position: relative;
    border: 1px solid var(--tblr-border-color);
    border-radius: .75rem;
    padding: 1rem;
    background: var(--tblr-bg-surface-secondary, #f8fafc);
}

.installer-calendar-months {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.installer-calendar-month {
    border: 1px solid var(--tblr-border-color);
    border-radius: .65rem;
    background: var(--tblr-bg-surface);
    padding: .75rem;
}

.installer-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: .3rem;
    margin-top: .6rem;
}

.installer-calendar-head {
    color: var(--tblr-secondary-color);
    font-size: .72rem;
    font-weight: 700;
    text-align: center;
}

.installer-calendar-day {
    min-height: 2rem;
    border: 1px solid var(--tblr-border-color);
    border-radius: .45rem;
    background: var(--tblr-bg-surface);
    color: inherit;
}

.installer-calendar-day:hover:not(:disabled):not([aria-disabled="true"]),
.installer-calendar-day.is-selected {
    border-color: var(--tblr-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--tblr-primary) 18%, transparent);
}

.installer-calendar-day-unavailable {
    border-color: var(--tblr-danger);
    background: var(--tblr-danger-lt);
    color: var(--tblr-danger);
}

.installer-calendar-day-scheduled {
    border-color: var(--tblr-orange, #f59f00);
    background: var(--tblr-orange-lt, #fff4e6);
    color: var(--tblr-orange, #d9480f);
}

.installer-calendar-day[aria-disabled="true"] {
    cursor: help;
}

.installer-calendar-day[aria-disabled="true"]:focus-visible {
    outline: 3px solid color-mix(in srgb, currentColor 30%, transparent);
    outline-offset: 2px;
}

.installer-calendar-tooltip {
    position: absolute;
    z-index: 1085;
    width: max-content;
    max-width: min(18rem, calc(100% - 1.5rem));
    padding: .55rem .75rem;
    border-radius: .55rem;
    background: #12263f;
    color: #fff;
    box-shadow: 0 .55rem 1.4rem rgba(16, 42, 67, .24);
    font-size: .8rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    pointer-events: none;
    transform: translate(-50%, -100%);
}

.installer-calendar-tooltip::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    border: .38rem solid transparent;
    border-top-color: #12263f;
    content: '';
    transform: translateX(-50%);
}

@media (max-width: 767.98px) {
    .installer-calendar-months { grid-template-columns: 1fr; }
}

[data-line-editor-price-options] {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .5rem;
}

[data-line-editor-price-options] .btn {
    width: 100%;
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

@media (max-width: 420px) {
    [data-line-editor-price-options] { grid-template-columns: 1fr; }
}

.schedule-authorization-panel {
    display: grid;
    grid-template-columns: 3rem minmax(0, 1fr);
    gap: 1rem;
    padding: 1.25rem;
    border: 1px solid color-mix(in srgb, var(--tblr-warning) 45%, var(--tblr-border-color));
    border-radius: .85rem;
    background: linear-gradient(145deg, color-mix(in srgb, var(--tblr-warning-lt) 72%, white), var(--tblr-bg-surface));
    box-shadow: 0 .65rem 1.6rem rgba(51, 65, 85, .08);
}

.schedule-authorization-icon {
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--tblr-warning);
    color: #332701;
    font-size: 1.4rem;
    font-weight: 800;
    box-shadow: 0 0 0 .35rem color-mix(in srgb, var(--tblr-warning) 18%, transparent);
}

.schedule-authorization-copy h3 {
    margin: .15rem 0 .4rem;
    color: var(--tblr-body-color);
    font-size: 1.1rem;
}

.schedule-authorization-copy > p {
    margin-bottom: 1rem;
    color: var(--tblr-secondary-color);
    line-height: 1.55;
}

.schedule-authorization-approvers {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .35rem 1rem;
    margin-bottom: 1rem;
    padding: .7rem .85rem;
    border-radius: .65rem;
    background: color-mix(in srgb, var(--tblr-primary-lt) 76%, white);
}

.schedule-authorization-approvers span {
    color: var(--tblr-secondary-color);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.schedule-authorization-error,
.schedule-authorization-unavailable {
    margin-bottom: 1rem;
    padding: .7rem .85rem;
    border-radius: .65rem;
    background: var(--tblr-danger-lt);
    color: var(--tblr-danger);
    font-weight: 600;
}

.crm-sale-branch-choice {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .75rem 1.25rem;
    border: 1px solid color-mix(in srgb, var(--tblr-primary) 24%, white);
    border-radius: .8rem;
    background: linear-gradient(135deg, color-mix(in srgb, var(--tblr-primary-lt) 76%, white), #fff 78%);
}

.crm-sale-branch-choice > div:first-child { min-width: min(100%, 15rem); }
.crm-sale-branch-choice .btn-list { display: flex; flex-wrap: wrap; gap: .5rem; }

@media (max-width: 575.98px) {
    .crm-sale-branch-choice { align-items: stretch; }
    .crm-sale-branch-choice .btn-list,
    .crm-sale-branch-choice .btn-list > * { width: 100%; }
    .crm-sale-branch-choice .btn-list > * { white-space: normal; }
}

@media (max-width: 575.98px) {
    .schedule-authorization-panel {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

    .schedule-authorization-icon {
        width: 2.6rem;
        height: 2.6rem;
    }
}
