/* YST TECH quick appearance menu, themes and Sale discount UI — Version 8.4 */
.theme-options{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.theme-choice{position:relative;margin:0!important;padding:10px;border:1px solid #dce4ee;border-radius:10px;background:#fff;cursor:pointer}.theme-choice:hover{border-color:#8db3e6}.theme-choice:has(input:checked){border-color:#1766d2;box-shadow:0 0 0 3px #1766d219}.theme-choice input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;margin:0!important;opacity:0}.theme-choice>b,.theme-choice>small{display:block}.theme-choice>b{margin-top:9px;color:#21364f;font-size:13px}.theme-choice>small{margin-top:2px;color:#7c8b9e;font-size:10px}.theme-preview{height:66px;display:grid;grid-template-columns:22px 1fr;grid-template-rows:13px 1fr;overflow:hidden;border:1px solid #cad5e2;border-radius:7px}.theme-preview:before{grid-row:1/3;background:#fff;border-right:1px solid #d7e0ea;content:""}.theme-preview i{display:block;background:#0b1f3a}.theme-preview em{display:block;margin:7px;border-radius:4px;background:#fff;box-shadow:0 0 0 1px #dce4ed}.theme-preview-light{background:#f4f6f9}.theme-preview-gray{background:#dce1e7}.theme-preview-dark{border-color:#34465d;background:#101824}.theme-preview-dark:before{background:#162235;border-color:#2b3b50}.theme-preview-dark i{background:#071426}.theme-preview-dark em{background:#1c2a3e;box-shadow:0 0 0 1px #33455b}

body.theme-gray{--bg:#e4e8ed}body.theme-gray .page-wrap{background:linear-gradient(180deg,#e9edf2,#e3e7ec)}body.theme-gray .card,body.theme-gray .metric{box-shadow:0 4px 14px rgba(20,38,61,.065)}

body.theme-dark{--navy:#071426;--navy2:#050e1a;--ink:#e8eef7;--muted:#9aabc0;--line:#2d3d52;--bg:#0f1723;--white:#172334;--danger:#ee6969;background:#0f1723;color:#e8eef7;color-scheme:dark}
body.theme-dark .main,body.theme-dark .page-wrap{background:#0f1723}body.theme-dark .sidebar{border-color:#2b394c;background:#121c2b}body.theme-dark .sidebar .brand{border-color:#2b394c}body.theme-dark .sidebar .brand b{color:#f2f6fc}body.theme-dark .sidebar .brand small,body.theme-dark .sidebar .nav-label{color:#8292a6}body.theme-dark .sidebar nav a{color:#aab7c8}body.theme-dark .sidebar nav a:hover{background:#1c2a3d;color:#fff}body.theme-dark .sidebar nav a.active{background:#17365e;color:#80b7ff}body.theme-dark .sidebar-bottom{border-color:#2b394c}body.theme-dark .topbar{background:#071426;border-color:#26364a}
body.theme-dark .page-head h1,body.theme-dark .smart-head h1,body.theme-dark .card-head h2,body.theme-dark .premium-panel-title h2,body.theme-dark .data-toolbar h2,body.theme-dark .settings-section-title h2{color:#edf3fb}body.theme-dark .page-head p,body.theme-dark .smart-head p,body.theme-dark .card-head p,body.theme-dark .premium-panel-title p{color:#91a2b8}
body.theme-dark .card:not(.invoice),body.theme-dark .metric,body.theme-dark .premium-metrics,body.theme-dark .modal,body.theme-dark .data-card,body.theme-dark .activity-card{border-color:#2d3d52!important;background:#172334!important;box-shadow:0 4px 16px rgba(0,0,0,.16)!important}
body.theme-dark .btn-light{border-color:#3a4b61;background:#1a283a;color:#c7d2e1}body.theme-dark .btn-light:hover{background:#223248}body.theme-dark .search-box,body.theme-dark .top-search{border-color:#34455b;background:#111d2c;color:#90a2b8}body.theme-dark .search-box input{color:#e9eef6}
body.theme-dark input:not([type=file]),body.theme-dark select,body.theme-dark textarea{border-color:#3a4a5f!important;background:#111c2b!important;color:#e6edf6!important}body.theme-dark input::placeholder,body.theme-dark textarea::placeholder{color:#75869b!important}body.theme-dark input:focus,body.theme-dark select:focus,body.theme-dark textarea:focus{border-color:#4d8ddd!important;box-shadow:0 0 0 3px #2b78da24!important}
body.theme-dark table:not(.quote-items-table):not(.invoice-items) th{border-color:#34455a;background:#1d2b3e;color:#9eafc3}body.theme-dark table:not(.quote-items-table):not(.invoice-items) td{border-color:#2a394d;color:#bdc9d8}body.theme-dark table:not(.quote-items-table):not(.invoice-items) td b{color:#edf3fa}body.theme-dark table:not(.quote-items-table):not(.invoice-items) td small{color:#8fa0b4}body.theme-dark table:not(.quote-items-table):not(.invoice-items) tbody tr:hover td{background:#1b293b}
body.theme-dark .premium-metric{border-color:#2d3d52}body.theme-dark .premium-metric>b,body.theme-dark .chart-summary b{color:#edf3fb}body.theme-dark .metric-heading>i,body.theme-dark .premium-action-grid i{background:#1b3557}body.theme-dark .chart-summary{border-color:#2d3d52;background:#131f2f}body.theme-dark .chart-grid-line{stroke:#2b3b50}body.theme-dark .chart-y-label,body.theme-dark .chart-x-label{fill:#8fa0b5}body.theme-dark .chart-area{fill:#438cef18}body.theme-dark .chart-point{fill:#172334}body.theme-dark .premium-stock-list>a,body.theme-dark .premium-action-grid>a{border-color:#2d3d52;background:#172334;color:#bdc9d8}body.theme-dark .premium-stock-list>a:hover,body.theme-dark .premium-action-grid>a:hover{background:#1c2a3d}body.theme-dark .premium-stock-list b{color:#e8eef7}
body.theme-dark .pick-product,body.theme-dark .pc-product-card,body.theme-dark .pc-add-product,body.theme-dark .quote-product,body.theme-dark .quote-selected-row input{border-color:#33445a;background:#172334;color:#dfe7f1}body.theme-dark .pick-product:hover,body.theme-dark .pc-add-product:hover,body.theme-dark .quote-product:hover{background:#1c2b3e}body.theme-dark .cart-customer,body.theme-dark .cart-row,body.theme-dark .quote-customer-fields,body.theme-dark .quote-grand-total{border-color:#2d3d52}body.theme-dark .cart-row button,body.theme-dark .quote-selected-row button{background:#4a2529;color:#ff9e9e}
body.theme-dark .job-column,body.theme-dark .schedule-board .job-column{border-color:#2c3b50;background:#111d2b}body.theme-dark .job-card,body.theme-dark .service-job{border-color:#304157;background:#172334}body.theme-dark .job-meta p,body.theme-dark .job-description{border-color:#304157;background:#132030!important}body.theme-dark .job-meta b,body.theme-dark .service-job h3{color:#e5ecf6}body.theme-dark .purchase-summary article,body.theme-dark .pc-build-totals span,body.theme-dark .telegram-test,body.theme-dark .ai-description-field{border-color:#304157;background:#142133}body.theme-dark .modal-head,body.theme-dark .activity-head,body.theme-dark .data-toolbar{border-color:#2d3d52}
body.theme-dark .user-menu-dropdown{border-color:#34455b;background:#172334;color:#e5edf6}body.theme-dark .user-menu-dropdown:before{border-color:#34455b;background:#172334}body.theme-dark .user-menu-head,body.theme-dark .user-menu-dropdown form{border-color:#2d3d52}body.theme-dark .user-menu-head:hover,body.theme-dark .user-menu-dropdown>a:not(.user-menu-head):hover,body.theme-dark .user-menu-dropdown form button:hover{background:#203047}body.theme-dark .user-menu-head b,body.theme-dark .user-menu-dropdown>a b,body.theme-dark .user-menu-dropdown form button b{color:#edf3fb}
body.theme-dark .theme-choice{border-color:#34455b;background:#172334}body.theme-dark .theme-choice>b{color:#edf3fb}body.theme-dark .theme-choice>small{color:#92a3b8}
body.theme-dark .report-header h1,body.theme-dark .report-block-heading p b,body.theme-dark .report-workspace .report-section-head h2,body.theme-dark .report-workspace .report-table td>b{color:#edf3fb!important}body.theme-dark .report-subtitle,body.theme-dark .report-block-heading p small{color:#94a5ba!important}body.theme-dark .report-control,body.theme-dark .report-section-nav,body.theme-dark .report-workspace .report-metric,body.theme-dark .report-workspace .report-section{border-color:#304157!important;background:#172334!important}body.theme-dark .report-workspace .report-section-head,body.theme-dark .report-workspace .report-table th{border-color:#304157!important;background:#1d2b3e!important}body.theme-dark .report-workspace .report-table td{border-color:#2a394d!important;color:#bdc9d8!important}body.theme-dark .report-context{border-color:#315377;background:#142940}body.theme-dark .report-section-nav a,body.theme-dark .report-workspace .report-presets a{border-color:#34475e;background:#172334;color:#aab9ca}body.theme-dark .report-section-nav a:hover,body.theme-dark .report-workspace .report-presets a:hover{background:#20324a;color:#87baff}body.theme-dark .report-workspace .report-presets a.active{border-color:#397fd8;background:#17365e;color:#9cc7ff}

.settings-menu{position:relative}.settings-menu-dropdown{display:none;position:absolute;top:calc(100% + 11px);right:-7px;width:280px;padding:7px;border:1px solid #dce4ee;border-radius:11px;background:#fff;color:#21344c;box-shadow:0 18px 48px rgba(5,20,42,.24);z-index:120}.settings-menu-dropdown.show{display:block}.settings-menu-dropdown:before{position:absolute;right:16px;top:-6px;width:10px;height:10px;transform:rotate(45deg);border-left:1px solid #dce4ee;border-top:1px solid #dce4ee;background:#fff;content:""}.settings-menu-head{padding:9px 10px 8px}.settings-menu-head b,.settings-menu-head small{display:block}.settings-menu-head b{font-size:13px}.settings-menu-head small{margin-top:2px;color:#7e8c9f;font-size:10px}.settings-menu-dropdown form{padding-bottom:6px;border-bottom:1px solid #e8edf3}.settings-menu-dropdown form label{position:relative;display:grid;grid-template-columns:28px 1fr 18px;align-items:center;gap:9px;min-height:52px;padding:7px 9px;border-radius:7px;cursor:pointer}.settings-menu-dropdown form label:hover{background:#f3f6fa}.settings-menu-dropdown form input{grid-column:3;grid-row:1;width:15px;height:15px;accent-color:#1261cf}.appearance-swatch{grid-column:1;grid-row:1;width:26px;height:26px;border:1px solid #cfd9e5;border-radius:7px;box-shadow:inset 7px 0 0 #fff}.swatch-light{background:#f5f7fa}.swatch-gray{background:#dfe4ea}.swatch-dark{border-color:#35465c;background:#142033;box-shadow:inset 7px 0 0 #0b1422}.settings-menu-dropdown form label>span{grid-column:2;grid-row:1}.settings-menu-dropdown form label b,.settings-menu-dropdown form label small,.settings-menu-all b,.settings-menu-all small{display:block}.settings-menu-dropdown form label b,.settings-menu-all b{color:#23364d;font-size:11px}.settings-menu-dropdown form label small,.settings-menu-all small{margin-top:2px;color:#8190a2;font-size:9px}.settings-menu-all{display:flex;align-items:center;gap:10px;margin-top:5px;padding:10px;border-radius:7px;color:#597087}.settings-menu-all:hover{background:#f3f6fa;color:#1261cf}.settings-menu-all>svg{flex:0 0 auto}
body.theme-dark .settings-menu-dropdown{border-color:#34455b;background:#172334;color:#e5edf6}body.theme-dark .settings-menu-dropdown:before{border-color:#34455b;background:#172334}body.theme-dark .settings-menu-dropdown form{border-color:#2d3d52}body.theme-dark .settings-menu-dropdown form label:hover,body.theme-dark .settings-menu-all:hover{background:#203047}body.theme-dark .settings-menu-dropdown form label b,body.theme-dark .settings-menu-all b{color:#edf3fb}body.theme-dark .settings-menu-dropdown form label small,body.theme-dark .settings-menu-all small,body.theme-dark .settings-menu-head small{color:#91a2b7}

.sale-discount-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.sale-total-summary{margin-top:10px;padding-top:9px;border-top:1px solid var(--line)}.sale-total-summary>p{display:flex;align-items:center;justify-content:space-between;margin:0;padding:5px 0;color:var(--muted);font-size:12px}.sale-total-summary>p b{color:var(--ink);font-size:13px}.sale-total-summary .cart-total{margin-top:4px}.invoice-discount b{color:#ba3c36}.invoice-items th:nth-child(n+3),.invoice-items td:nth-child(n+3){text-align:right}

@media(max-width:760px){.theme-options{grid-template-columns:1fr}.theme-choice{display:grid;grid-template-columns:105px 1fr;column-gap:12px}.theme-choice .theme-preview{grid-row:1/3}.theme-choice>b{align-self:end}.sale-discount-grid{grid-template-columns:1fr 1fr}.sale-discount-grid label:last-child{grid-column:1/-1}}
@media print{body.theme-gray,body.theme-dark{background:#fff!important;color:#111!important;color-scheme:light}body.theme-dark .invoice,body.theme-dark .quote-paper,body.theme-dark .report-workspace,body.theme-dark .report-workspace .report-metric,body.theme-dark .report-workspace .report-section{background:#fff!important;color:#111!important;box-shadow:none!important}body.theme-dark .report-header h1,body.theme-dark .report-block-heading p b,body.theme-dark .report-workspace .report-section-head h2,body.theme-dark .report-workspace .report-table td>b{color:#111!important}body.theme-dark .report-workspace .report-section-head,body.theme-dark .report-workspace .report-table th{background:#eee!important;color:#222!important}body.theme-dark .report-workspace .report-table td{background:#fff!important;color:#222!important}}
