/* Dark palette for legacy shared components. Screen only to protect documents. */
@media screen {
html[data-theme="dark"]{--card:#191c1f;--text:#edf1f5;--text-muted:#b6bec8;--soft:#202428}
html[data-theme="dark"] .brand-subtitle{color:#b6bec8!important}
html[data-theme="dark"] .nav-label{color:#b6bec8!important}
html[data-theme="dark"] .nav-item{color:#b6bec8!important}
html[data-theme="dark"] .nav-item:hover{background-color:#191c1f!important;color:#edf1f5!important}
html[data-theme="dark"] .nav-item.active{background-color:hsl(244 45% 17%)!important;color:hsl(242 50% 76%)!important}
html[data-theme="dark"] .user-avatar{background-color:#202428!important}
html[data-theme="dark"] .user-meta span{color:#b6bec8!important}
html[data-theme="dark"] .sidebar-logout{color:#b6bec8!important}
html[data-theme="dark"] .sidebar-logout:hover{background-color:#191c1f!important;color:#edf1f5!important}
html[data-theme="dark"] .topbar-title{color:#edf1f5!important}
html[data-theme="dark"] .topbar-user span{color:#b6bec8!important}
html[data-theme="dark"] .ts-btn-primary{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .ts-btn-secondary{background-color:#191c1f!important;color:#edf1f5!important}
html[data-theme="dark"] .ts-btn-secondary:hover{background-color:#191c1f!important}
html[data-theme="dark"] .ts-stat-label{color:#b6bec8!important}
html[data-theme="dark"] .ts-stat-note{color:#b6bec8!important}
html[data-theme="dark"] .ts-table th,html[data-theme="dark"] .ts-table td{border-bottom-color:#3a424c!important}
html[data-theme="dark"] .ts-table th{background-color:hsl(210 25% 17%)!important;color:#b6bec8!important}
html[data-theme="dark"] .ts-table tbody tr:hover{background-color:hsl(210 25% 17%)!important}
html[data-theme="dark"] .ts-label,html[data-theme="dark"] .ts-page form label{color:#b6bec8!important}
html[data-theme="dark"] .ts-input,html[data-theme="dark"] .ts-select,html[data-theme="dark"] .ts-textarea,html[data-theme="dark"] .ts-page form input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),html[data-theme="dark"] .ts-page form select,html[data-theme="dark"] .ts-page form textarea{background-color:#191c1f!important}
html[data-theme="dark"] .ts-input:focus,html[data-theme="dark"] .ts-select:focus,html[data-theme="dark"] .ts-textarea:focus,html[data-theme="dark"] .ts-page form input:focus,html[data-theme="dark"] .ts-page form select:focus,html[data-theme="dark"] .ts-page form textarea:focus{border-top-color:hsl(243 28% 38%)!important;border-right-color:hsl(243 28% 38%)!important;border-bottom-color:hsl(243 28% 38%)!important;border-left-color:hsl(243 28% 38%)!important}
html[data-theme="dark"] .ts-link{color:hsl(242 50% 76%)!important}
html[data-theme="dark"] .ts-badge-danger{background-color:hsl(4 45% 17%)!important;color:hsl(4 65% 76%)!important}
html[data-theme="dark"] .ts-badge-warning{background-color:hsl(34 45% 17%)!important;color:hsl(34 65% 76%)!important}
html[data-theme="dark"] .ts-badge-success{background-color:hsl(131 44% 17%)!important;color:hsl(137 55% 76%)!important}
html[data-theme="dark"] .ts-empty{color:#b6bec8!important}
html[data-theme="dark"] .ts-flash{border-top-color:hsl(133 28% 38%)!important;border-right-color:hsl(133 28% 38%)!important;border-bottom-color:hsl(133 28% 38%)!important;border-left-color:hsl(133 28% 38%)!important;background-color:hsl(132 42% 17%)!important;color:hsl(139 65% 76%)!important}
html[data-theme="dark"] .ts-warning{background-color:hsl(48 45% 17%)!important}
html[data-theme="dark"] .ts-danger-note{color:hsl(4 65% 76%)!important}
html[data-theme="dark"] .quick-action{background-color:#191c1f!important}
html[data-theme="dark"] .quick-action:hover{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .quick-action-plus{color:hsl(242 50% 76%)!important}
html[data-theme="dark"] .recent-sales,html[data-theme="dark"] .stock-alert{background-color:#191c1f!important}
html[data-theme="dark"] .recent-sales-header{background-color:hsl(210 25% 17%)!important;color:#b6bec8!important}
html[data-theme="dark"] .recent-sale-row{border-top-color:#3a424c!important}
html[data-theme="dark"] .stock-alert-badge-low{background-color:hsl(34 45% 17%)!important;color:hsl(34 65% 76%)!important}
html[data-theme="dark"] .stock-alert-badge-out{background-color:hsl(4 45% 17%)!important;color:hsl(4 65% 76%)!important}
html[data-theme="dark"] .module{background-color:#191c1f!important}
html[data-theme="dark"] .module:hover{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
@media (max-width: 1050px){
}
@media (max-width: 900px){
}
@media (max-width: 700px){
}
@media (max-width: 520px){
}
html[data-theme="dark"] .camera i{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .remove:hover{color:hsl(4 65% 76%)!important}
html[data-theme="dark"] .error{color:hsl(4 65% 76%)!important;background-color:hsl(8 45% 17%)!important;border-top-color:hsl(6 28% 38%)!important;border-right-color:hsl(6 28% 38%)!important;border-bottom-color:hsl(6 28% 38%)!important;border-left-color:hsl(6 28% 38%)!important}
html[data-theme="dark"] .success{background-color:hsl(127 39% 17%)!important;color:hsl(127 36% 76%)!important;border-top-color:hsl(129 28% 38%)!important;border-right-color:hsl(129 28% 38%)!important;border-bottom-color:hsl(129 28% 38%)!important;border-left-color:hsl(129 28% 38%)!important}
html[data-theme="dark"] .no-js{color:hsl(4 65% 76%)!important}
@media (max-width: 1100px){
}
@media (max-width: 800px){
}
@media (max-width: 560px){
}
@media (pointer: coarse){
}
html[data-theme="dark"] .delete-modal{background-color:#191c1f!important}
html[data-theme="dark"] .delete-modal .warning{color:#b6bec8!important}
html[data-theme="dark"] .delete-modal-item{background-color:#191c1f!important}
html[data-theme="dark"] .delete-modal-item span{color:#b6bec8!important}
html[data-theme="dark"] .quick-action,html[data-theme="dark"] .module{background-color:#191c1f!important;border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important;color:#edf1f5!important}
html[data-theme="dark"] .quick-action:hover,html[data-theme="dark"] .module:hover{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important;background-color:#191c1f!important}
html[data-theme="dark"] .quick-action-plus{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .quick-action small,html[data-theme="dark"] .module-text{color:#b6bec8!important}
html[data-theme="dark"] .recent-sales{background-color:#191c1f!important;border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .recent-sales-header{background-color:#191c1f!important;color:#b6bec8!important}
html[data-theme="dark"] .recent-sale-row{border-top-color:#3a424c!important}
html[data-theme="dark"] .recent-sale-row span{color:#b6bec8!important}
html[data-theme="dark"] .stock-alert{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important;background-color:#191c1f!important}
html[data-theme="dark"] .stock-alert-info span{color:#b6bec8!important}
html[data-theme="dark"] .stock-alert-badge-out{background-color:hsl(4 45% 17%)!important;color:hsl(4 65% 76%)!important}
html[data-theme="dark"] .stock-alert-badge-low{background-color:hsl(38 45% 17%)!important;color:hsl(33 65% 76%)!important}
html[data-theme="dark"] .refund-amount{color:hsl(4 65% 76%)!important}
@media (max-width: 600px){
}
html[data-theme="dark"] .correction-modal{background-color:#191c1f!important}
html[data-theme="dark"] .correction-modal-description{color:#b6bec8!important}
html[data-theme="dark"] .correction-change{background-color:#191c1f!important}
html[data-theme="dark"] .correction-label{color:#b6bec8!important}
html[data-theme="dark"] .correction-arrow{color:#b6bec8!important}
html[data-theme="dark"] .correction-values{border-top-color:#3a424c!important;border-bottom-color:#3a424c!important}
html[data-theme="dark"] .correction-value-row span:first-child{color:#b6bec8!important}
html[data-theme="dark"] .correction-note{color:#b6bec8!important}
@media (max-width: 520px){
}
html[data-theme="dark"] .product-header{background-color:#191c1f!important;border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .product-subtitle{color:#b6bec8!important}
html[data-theme="dark"] .info-box{background-color:#191c1f!important}
html[data-theme="dark"] .info-label{color:#b6bec8!important}
html[data-theme="dark"] .stat-card{background-color:#191c1f!important;border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .stat-label{color:#b6bec8!important}
html[data-theme="dark"] .stock-section{background-color:#191c1f!important;border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .section-header{border-bottom-color:#3a424c!important}
html[data-theme="dark"] .stock-table th,html[data-theme="dark"] .stock-table td{border-bottom-color:#3a424c!important}
html[data-theme="dark"] .stock-table th{color:#b6bec8!important;background-color:#191c1f!important}
html[data-theme="dark"] .status.available{background-color:hsl(138 45% 17%)!important;color:hsl(138 57% 76%)!important}
html[data-theme="dark"] .status.sold{background-color:#191c1f!important;color:#b6bec8!important}
html[data-theme="dark"] .history-link{color:#edf1f5!important}
html[data-theme="dark"] .empty-state{color:#b6bec8!important}
html[data-theme="dark"] .back-link{color:#b6bec8!important}
html[data-theme="dark"] .back-link:hover{color:#edf1f5!important}
@media (max-width: 900px){
}
@media (max-width: 600px){
}
@media screen{
html[data-theme="dark"] .ts-btn-primary{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .ts-btn-secondary{background-color:#191c1f!important}
html[data-theme="dark"] .ts-stat-grid{background-color:#191c1f!important}
html[data-theme="dark"] .ts-stat-grid > .ts-stat,html[data-theme="dark"] .ts-stat-grid > .ts-card{border-right-color:#3a424c!important}
html[data-theme="dark"] .ts-stat-label{color:#b6bec8!important}
html[data-theme="dark"] .ts-stat-note{color:#b6bec8!important}
html[data-theme="dark"] .ts-table th{color:#b6bec8!important;background-color:#191c1f!important}
html[data-theme="dark"] .ts-table tbody tr:hover{background-color:hsl(210 25% 17%)!important}
html[data-theme="dark"] .ts-filter-bar{background-color:#191c1f!important}
html[data-theme="dark"] .app-content a:focus-visible,html[data-theme="dark"] .app-content button:focus-visible,html[data-theme="dark"] .app-content summary:focus-visible{outline-color:hsl(244 28% 38%)!important}
html[data-theme="dark"] .interface-standalone{background-color:hsl(220 23% 17%)!important;color:#edf1f5!important}
html[data-theme="dark"] .interface-standalone .login-box,html[data-theme="dark"] .interface-standalone .card{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .interface-standalone .subtitle{color:#b6bec8!important}
@media (max-width: 1100px){
html[data-theme="dark"] .ts-stat-grid.dashboard-stats > :nth-child(n+3){border-top-color:#3a424c!important}}
@media (max-width: 900px){
}
@media (max-width: 700px){
html[data-theme="dark"] .ts-stat-grid > .ts-stat,html[data-theme="dark"] .ts-stat-grid > .ts-card{border-bottom-color:#3a424c!important}
}
}
@media screen{html[data-theme="dark"] .ts-stat-grid.dashboard-stats > :nth-child(n+5){border-top-color:#3a424c!important}
html[data-theme="dark"] .ts-page form .ts-actions > a:not(.ts-btn){background-color:#191c1f!important}
}
@media screen and (max-width: 700px){
}
@media screen{
html[data-theme="dark"] .ts-page form .ts-actions > a:has(+ button[type="submit"]){background-color:#191c1f!important}
}
@media screen{html[data-theme="dark"] .ts-pos-root .general-button{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important;background-color:#191c1f!important}
html[data-theme="dark"] .ts-pos-root .checkout select{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important;background-color:#191c1f!important}
html[data-theme="dark"] .ts-pos-root .cart-item{border-bottom-color:#3a424c!important}
html[data-theme="dark"] .ts-pos-root .price-row input{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .ts-pos-root .remove{color:#b6bec8!important}}
@media screen{
html[data-theme="dark"] .ts-page > .ts-link,html[data-theme="dark"] .ui-standard-list > a:first-child,html[data-theme="dark"] .ui-standard-form > a:first-child{color:#b6bec8!important}
html[data-theme="dark"] .ts-page > .ts-link:hover{color:#edf1f5!important}
html[data-theme="dark"] .ui-standard-form > .ts-card,html[data-theme="dark"] .ui-standard-form > .ts-form-card,html[data-theme="dark"] .ui-standard-form > .ts-table-card{background-color:#191c1f!important;border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .ui-standard-form .ui-control label{color:#b6bec8!important}
html[data-theme="dark"] .ui-standard-form form > button[type="submit"],html[data-theme="dark"] .ui-standard-form .ts-actions > button[type="submit"]{border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .ui-standard-list .contact{color:#b6bec8!important}
html[data-theme="dark"] .ui-standard-reports .period-form{background-color:#191c1f!important;border-top-color:#3a424c!important;border-right-color:#3a424c!important;border-bottom-color:#3a424c!important;border-left-color:#3a424c!important}
html[data-theme="dark"] .ui-standard-reports table th,html[data-theme="dark"] .ui-standard-reports table td{border-bottom-color:#3a424c!important}
@media (max-width: 500px){
}}
@media screen{
@media (max-width: 700px){
}}
@media screen{
}
@media screen and (min-width: 901px){
}
html[data-theme="dark"] .ts-dropdown-trigger{border-top-color:hsl(212 28% 38%)!important;border-right-color:hsl(212 28% 38%)!important;border-bottom-color:hsl(212 28% 38%)!important;border-left-color:hsl(212 28% 38%)!important;background-color:#191c1f!important;color:hsl(216 32% 76%)!important}
html[data-theme="dark"] .ts-dropdown-trigger:hover{border-top-color:hsl(211 28% 38%)!important;border-right-color:hsl(211 28% 38%)!important;border-bottom-color:hsl(211 28% 38%)!important;border-left-color:hsl(211 28% 38%)!important;background-color:hsl(216 45% 17%)!important}
html[data-theme="dark"] .ts-dropdown-trigger[aria-expanded="true"]{border-top-color:hsl(214 28% 38%)!important;border-right-color:hsl(214 28% 38%)!important;border-bottom-color:hsl(214 28% 38%)!important;border-left-color:hsl(214 28% 38%)!important}
html[data-theme="dark"] .ts-dropdown-chevron{color:#b6bec8!important}
html[data-theme="dark"] .ts-dropdown-menu{border-top-color:hsl(212 28% 38%)!important;border-right-color:hsl(212 28% 38%)!important;border-bottom-color:hsl(212 28% 38%)!important;border-left-color:hsl(212 28% 38%)!important;background-color:#191c1f!important}
html[data-theme="dark"] .ts-dropdown-option{color:hsl(216 32% 76%)!important}
html[data-theme="dark"] .ts-dropdown-option:hover,html[data-theme="dark"] .ts-dropdown-option:focus-visible{background-color:hsl(214 37% 17%)!important}
html[data-theme="dark"] .ts-dropdown-option[aria-selected="true"]{background-color:hsl(136 44% 17%)!important;color:hsl(143 62% 76%)!important}
html[data-theme="dark"] .ts-dropdown-option .ts-dropdown-tick{color:hsl(143 62% 76%)!important}
html[data-theme="dark"] .ts-dropdown-trigger:focus-visible{border-top-color:hsl(214 28% 38%)!important;border-right-color:hsl(214 28% 38%)!important;border-bottom-color:hsl(214 28% 38%)!important;border-left-color:hsl(214 28% 38%)!important}
@media (max-width: 620px){
}
html[data-theme="dark"]{--legacy-color-c33:hsl(0 60% 76%)}
html[data-theme="dark"]{--legacy-background-fff4db:hsl(42 45% 17%)}
html[data-theme="dark"]{--legacy-color-815b13:hsl(39 65% 76%)}
}
/* Paired colors for selected payment controls and the checkout action. */
@media screen {
html[data-theme="dark"] .ts-pos-root{--blue:#bdb7ff}
html[data-theme="dark"] .ts-pos-root .payment-choice input:checked+span{background:#302b4a!important;color:#e3ddff!important;box-shadow:inset 0 0 0 1px #8177ba}
html[data-theme="dark"] .ts-pos-root .complete{background:#218c4a!important;color:#fff!important}
html[data-theme="dark"] .ts-pos-root .complete:disabled{background:#303a35!important;color:#c7d1ca!important;opacity:.65}
}

/* Document previews keep their paper palette inside the dark application shell. */
@media screen {
html[data-theme="dark"] .invoice-page .invoice{color-scheme:light;--ink:#24262b;--muted:#747883;--surface:#fff;--surface-2:#f9fafb;--line:#e2e4e9;--line-strong:#dcdfe5}
html[data-theme="dark"] .invoice-page .invoice .logo{color:#24262b!important}
html[data-theme="dark"] .invoice-page .invoice .ts-table th{background:#f7f8fa!important;color:#7a808b!important;border-color:#e2e4e9!important}
html[data-theme="dark"] .invoice-page .invoice .ts-table td{border-color:#e2e4e9!important}
html[data-theme="dark"] .invoice-page .invoice .ts-table tbody tr:hover{background:#fafbfc!important}
}
