﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600&display=swap');

* { padding: 0; margin: 0; box-sizing: border-box; list-style-type: none; text-decoration: none; font-family: 'Poppins', sans-serif; box-sizing: border-box; }
:root { --main-color: #1e3099c9; --color-dark: #1D2231; --text-grey: #8390A2; --main-bg-color: #f0f0f0; --nav-start: blue; --nav-end: green; --btn-primary: #0066cc; --btn-primary-hover: #0052a3; --card-header-start: #2563eb; --card-header-end: #10b981; --table-header: #226b9b; --table-header-alt: #067cb3; --table-hover: #c5d5dd; --heading-accent: #007bff; --heading-color: #1f3a44; --label-color: #2c3e4e; --sale-header-start: #061444; --sale-header-end: #0e160c94; --dropdown-bg: #3498db; --dropdown-hover: #0b3a7a; --login-start: #1E90FF; --login-end: #3CB371; --surface: #fff; --line: #e8eef4; --dd-active-bg: #0052a3; --dd-active-ink: #fff; --dd-selected-bg: color-mix(in srgb, var(--dd-active-bg) 14%, var(--surface)); --dd-active-bg-dark: #2563eb; }
.bg-dark { background-color: var(--main-color) !important; }
b, strong, .summary-container label { font-weight: bold; }

.text-bold { font-weight: bold; }
.form-container label, .form-label { font-weight: 500; font-size: 0.8rem; margin-bottom: 0.25rem; color: var(--label-color); letter-spacing: 0.3px; text-transform: uppercase; }
/* make summary cards more elegant */
.alert-info, .alert-success, .alert-danger { border-radius: 0.85rem; border: none; padding: 1rem 1.2rem; box-shadow: 0 1px 2px rgba(0,0,0,0.02); }
.alert-info { background: #eef6fc; color: #0c5460; border-left: 4px solid #17a2b8; }
.alert-success { background: #e6f4ea; color: #1e4620; border-left: 4px solid #28a745; }
.alert-danger { background: #feeceb; color: #721c24; border-left: 4px solid #dc3545; }
.heading { font-weight: 600; font-size: 1.6rem; margin-bottom: 1.2rem; color: var(--heading-color); border-left: 5px solid var(--heading-accent); padding-left: 1rem; }

.btn { border-radius: 2rem; padding: 0.4rem 1.2rem; font-weight: 500; transition: all 0.2s ease; }
.btn-primary { background-color: var(--btn-primary); border-color: var(--btn-primary); }
.btn-primary:hover { background-color: var(--btn-primary-hover); transform: translateY(-1px); }

.login-main { width: 100%; background: linear-gradient(to right, var(--login-start), var(--login-end)); }
.login-container { width: 30%; min-width: 300px; margin-left: auto; margin-right: auto; background-color: var(--main-bg-color); margin-top: 40px; padding: 10px; box-shadow: gray 5px 5px 5px 5px; }
.login-container { background-color: #fff; border-radius: 10px; width: 70%; overflow: hidden; display: block; }
.login-container .column { padding: 20px; text-align: center; border-right: 2px solid beige; }
.login-container .column:last-child { border-right: none; }
.login-container .signin-logo img { max-width: 100%; height: auto; border-radius: 25px; border: solid 0.5px #b4b3c6; }
.login-container .signin-heading { text-transform: uppercase; margin: 10px 0; font-size: 1.5em; color: #fff; position: relative; }
.login-container .signin-heading .copyright-symbol { font-size: 18px; position: absolute; top: -0.62em; /*right: 0.9;*/ left: 14.5em; }
.login-container .signin-text { margin-top: 10px; text-align: center; color: #fff; }
.login-container .right-column { align-items: center; justify-content: center; }
.login-container .custom-icon { }
.login-container .input-group { margin: 10px; display: flex; width: 100%; }
.login-container .input-group i { margin: 10px; }
.login-container .input-group label { margin-top: 10px; }
.login-container .forgot-password { margin-top: 5px; margin-left: auto; }
.login-container .btn { padding: 10px; border: none; border-radius: 5px; cursor: pointer; width: 100%; /* Adjust as needed */ margin-top: 10px; }
.login-container input { font-size: 18px; }
.login-container .btn { text-transform: uppercase; font-weight: bold; font-size: 25px; }
#logoutLink { color: #fff; }

@media screen and (max-width: 480px) {
    .login-container { width: 95%; }
    .login-container .signin-logo img { max-width: 50%; }
    .login-container .column { padding: 10px; }
    .login-container { margin: 20px 0; }
    .login-container .input-group { width: 95%; }
    .login-container .input-group-text { padding: 2px 2px; }
}

.card-container { margin: 15px 0; padding: 15px; box-shadow: gray 1px 1px 1px 1px; border-radius: 10px; }
.card-container .header { margin: -15px -15px 0 -15px; background: linear-gradient(to right, var(--card-header-start), var(--card-header-end)); color: white; padding: 6px; font-weight: bold; border-radius: 10px 10px 0 0; opacity: 0.8; }
.card-container > .max-x, .card-container > .max { margin-left: -15px; margin-right: -15px; width: auto; }
.card-container > .max-y, .card-container > .max { margin-top: -15px; margin-bottom: -15px; }
.font-roboto { font-family: 'roboto condensed'; }
html, body { height: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }
body { display: flex; flex-direction: column; background-color: var(--main-bg-color); }
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { text-transform: uppercase; }
.small-text { font-size: 0.8rem; }
.content { flex: 1 0 auto; }
.footer { flex-shrink: 0; width: 100%; background-color: var(--main-color) !important; color: white; padding: 10px; }
.footer a { color: white; }
.full-screen.modal { position: fixed; top: 0; right: 0; bottom: 0; left: 0; overflow: hidden; }
.full-screen .modal-dialog { position: fixed; margin: 0; width: 100%; height: 100%; padding: 0; max-width: none; }
.full-screen .modal-content { position: absolute; top: 0; right: 0; bottom: 0; left: 0; border: 2px solid #3c7dcf; border-radius: 0; box-shadow: none; }
.full-screen .modal-header { position: absolute; top: 0; right: 0; left: 0; height: 40px; padding: 5px; background: rgb(2,0,36); background: linear-gradient(90deg, rgba(2,0,36,1) 0%, rgba(9,9,121,1) 11%, rgba(0,212,255,1) 100%); border: 0; }
.full-screen .modal-title { font-weight: 400; font-size: 1.4em; color: #fff; line-height: 30px; }
.full-screen .modal-body { position: absolute; top: 40px; bottom: 45px; width: 100%; font-weight: 300; overflow: auto; }
.full-screen .modal-footer { position: absolute; right: 0; bottom: 0; left: 0; height: auto; padding: 10px; background: #f1f3f5; }
.selected-item { background-color: rgba(0, 0, 0, 0.2) !important; color: white; }
.strike-through { text-decoration: line-through; }

/*Custom combobox -- searchable drop down*/
.custom-combobox { position: relative; display: inline-block; }
.custom-combobox-toggle { position: absolute; top: 0; bottom: 0; margin-left: -1px; padding: 0; }
.custom-combobox-input { margin: 0; padding: 5px 5px; width: 90%; }
.label-ss { display: none; }

/* Chosen Plugin */
.chosen-container { font-size: 16px; }
.w-100-pc, .w-100-pc .chosen-container { width: 100% !important; }
.chosen-container-single .chosen-single { height: 35px; padding: 5px 0 0 8px; }
.chosen-container .chosen-results li em { font-weight: bold; text-transform: capitalize !important; }

/* Selectize Plugin*/
.form-control.selectize-control, .form-control.selectize-dropdown { padding: 0; font-size: 16px; }
.form-control.selectize-dropdown .highlight { font-weight: bold; text-transform: uppercase; }
.selectize-input, .selectize-input input { font-size: 16px !important; }
.selectize-input { padding: 6px !important; }
.selectize-lg .form-control.selectize-control, .selectize-lg .form-control.selectize-dropdown { font-size: 19px; line-height: 20px !important; }
.selectize-lg .selectize-input, .selectize-lg .selectize-input input { font-size: 19px !important; }
.selectize-dropdown { z-index: 2000; }
#dealPickerModal .selectize-dropdown,
#creaeProductContainer .selectize-dropdown,
body > .selectize-dropdown { z-index: 2000; }

/* Active item in every drop down
   The highlighted row is an opaque band with white text, so the keyboard/hover
   position is unambiguous on any theme. --dd-active-bg is re-pointed per theme
   in Themes.css; menus drawn on a dark panel override it with
   --dd-active-bg-dark (see Restaurant.css, Purchase.css, production.css).
   The plugin rules need !important because the vendor sheets and the per-page
   stylesheets already declare the same selectors with it. */
.selectize-dropdown .option.active,
.selectize-dropdown .option:hover,
.selectize-dropdown .active,
.chosen-container .chosen-results li.highlighted,
.ui-menu .ui-menu-item-wrapper.ui-state-active,
.autocomplete-items div:hover,
.autocomplete-items div.autocomplete-active,
select option:checked,
select option:hover { background-color: var(--dd-active-bg) !important; background-image: none !important; color: var(--dd-active-ink) !important; }

/* Menu rows keep this un-flagged so the navbar and the themed page menus can
   re-point it further down the cascade. The `a.` form matches Bootstrap's
   `a:not([href]):not([tabindex]):hover { color: inherit }`, which is what made
   the action menus (anchors without an href) keep dark text on the new band. */
.dropdown-menu a.dropdown-item:hover,
.dropdown-menu a.dropdown-item:focus,
.dropdown-menu a.dropdown-item.active,
.dropdown-menu a.dropdown-item:active,
.dropdown-menu .dropdown-item:hover,
.dropdown-menu .dropdown-item:focus,
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active { background-color: var(--dd-active-bg); background-image: none; color: var(--dd-active-ink); }

/* The selected option keeps a quiet tint so it is distinguishable from the
   plain rows without competing with the active one. */
.selectize-dropdown .selected:not(.active),
.chosen-container-single .chosen-results li.result-selected:not(.highlighted) { background-color: var(--dd-selected-bg) !important; background-image: none !important; }

/* Match snippets inside an active row inherit its white instead of painting
   their own highlight colour on top of it. */
.selectize-dropdown .active .highlight,
.selectize-dropdown .option:hover .highlight,
.chosen-container .chosen-results li.highlighted em,
.ui-menu .ui-state-active strong,
.autocomplete-items div.autocomplete-active strong { background: transparent !important; color: inherit !important; }

input.plain-number::-webkit-inner-spin-button,
input.plain-number::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input.plain-number { -moz-appearance: textfield; }

.close { line-height: normal; }

@media (min-width: 768px) {
    .modal-xl { width: 90%; max-width: 1200px; }
}

.search-container .col-md-2 { padding: 0 0.5rem !important; }
.search-container .form-control:not(.selectize-control) { padding: 3px 5px; }
.search-container .selectize-input { padding: 4px !important; }
.search-container select.form-control:not([size]):not([multiple]) { height: calc(2.25rem + -4px); }
.search-container .form-label, #saleContainer .form-label, #purchaseContainer .form-label { font-size: .8rem; margin-bottom: 0; text-transform: uppercase; }
/* The Overlay (background) */
.overlay { height: 100%; width: 100%; position: fixed; z-index: 1100; left: 0; top: 0; background-color: rgba(185, 178, 178, 0.9); overflow-x: hidden; transition: 0s; }
/* Position the content inside the overlay */
.overlay-content { position: relative; top: 25%; width: 100%; text-align: center; margin-top: 30px; background-color: #FFF; }
/* TABLES SECTION */
/*[ Scroll bar ]*/
.js-pscroll { position: relative; overflow: hidden; scrollbar-width: thin; }
.table100-body .ps__rail-y { width: 9px; background-color: transparent; opacity: 1 !important; right: 5px; }
.table100-body .ps__rail-y::before { content: ""; display: block; position: absolute; background-color: #ebebeb; border-radius: 5px; width: 100%; height: calc(100% - 30px); left: 0; top: 15px; }
.table100-body .ps__rail-y .ps__thumb-y { width: 100%; right: 0; background-color: transparent; opacity: 1 !important; }
.table100-body .ps__rail-y .ps__thumb-y::before { content: ""; display: block; position: absolute; background-color: #cccccc; border-radius: 5px; width: 100%; height: calc(100% - 30px); left: 0; top: 15px; }
.table100 tr.selected td { background-color: #abcaf2; }
/*//////////////////////////////////////////////////////////////////
[ Table ]*/
.limiter { width: 1366px; margin: 0 auto; }
.container-table100 { width: 100%; min-height: 100vh; background: #fff; display: -webkit-box; display: -webkit-flex; display: -moz-box; display: -ms-flexbox; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 33px 30px; }
.wrap-table100 { width: 1170px; }
/*//////////////////////////////////////////////////////////////////
[ Table ]*/
.table100 { background-color: inherit; }
table { width: 100%; overflow: scroll; }
th, td { font-weight: unset; padding: 2px 3px; vertical-align: top; }
.table100 th { font-weight: bold; }
.table100 th a, .table100 th a:link, .table100 th a:active, .table100 th a:visited { color: #fff; }
.column0-3 { width: 3%; }
.column0-5 { width: 5%; }
.column1 { width: 10%; }
.column1-5 { width: 15%; }
.column2 { width: 20%; }
.column2-5 { width: 25%; }
.column3 { width: 30%; }
.column3-5 { width: 35%; }
.column4 { width: 40%; }
.column4-5 { width: 45%; }
.column5 { width: 50%; }
.column-5 { width: 55%; }
.table100-head th { padding-top: 5px; padding-bottom: 5px; }
.table100.slim .table100-head th { padding: 2px 5px; }
.table100-body td { }
.table100-body input[type=number]::-webkit-inner-spin-button,
.table100-body input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.table100 input.form-control,
.table100 .btn-sm { padding: 0.1rem 0.4rem; }
.table100-body input[type=number] { -moz-appearance: textfield; /* Firefox */ }
/*==================================================================
[ Fix header ]*/
.table100 { position: relative; margin-top: 10px; }
.table100-head { width: 100%; top: 0; left: 0; overflow-x: auto; scrollbar-width: thin; }

/* Grids in listings and reports routinely outgrow a phone. Every Bootstrap
   `.table-responsive` wrapper, and the `.table100` / `.table100-head` pair the
   older listing markup uses, is a horizontal scroll port; but the stock bar is a
   full-width grey strip that eats ~15px of a 360px viewport and reads as a
   rendering artefact. These give all of them one slim, self-tinted bar. Paper
   has no scroll port, so the listings release `overflow` again in their print
   blocks. */
.table-responsive,
.table100,
.table100-head { scrollbar-width: thin; scrollbar-color: #94a3b8 transparent; }
.table-responsive::-webkit-scrollbar,
.table100::-webkit-scrollbar,
.table100-head::-webkit-scrollbar { height: 8px; width: 8px; }
.table-responsive::-webkit-scrollbar-track,
.table100::-webkit-scrollbar-track,
.table100-head::-webkit-scrollbar-track { background: transparent; }
.table-responsive::-webkit-scrollbar-thumb,
.table100::-webkit-scrollbar-thumb,
.table100-head::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 999px; }
.table-responsive::-webkit-scrollbar-thumb:hover,
.table100::-webkit-scrollbar-thumb:hover,
.table100-head::-webkit-scrollbar-thumb:hover { background: #64748b; }
.table-responsive::-webkit-scrollbar-corner,
.table100::-webkit-scrollbar-corner { background: transparent; }

.table100-body { max-height: 325px; overflow: auto; width: 100%; font-size: large; }

.table100.slim .table100-body { font-size: medium; }
.table100.ver2 th, .table100.ver3 th, .table100.ver4 th, .table100.ver5 th { font-size: 13px; font-weight: bold; color: #fff; line-height: 1.4; text-transform: uppercase; }
.table100.ver1 td, .table100.ver2 td, .table100.ver3 td, .table100.ver4 td, .table100.ver5 td { color: #808080; line-height: 1.4; }
.table100.ver1 .table100-body tr:nth-child(even), .table100.ver2 .table100-body tr:nth-child(even),
.table100.ver3 .table100-body tr:nth-child(even), .table100.ver4 .table100-body tr:nth-child(even),
.table100.ver5 .table100-body tr:nth-child(even) { background-color: #f8f6ff; }
.table100.ver1, .table100.ver2, .table100.ver3, .table100.ver4, .table100.ver5 { overflow: hidden; }
.table100 { overflow-x: auto !important; }
.table100.ver1 table, .table100.ver2 table, .table100.ver3 table, .table100.ver4 table, .table100.ver5 table { border: solid 1px #808080; }
.table100.ver1 .ps__rail-y, .table100.ver2 .ps__rail-y, .table100.ver3 .ps__rail-y,
.table100.ver4 .ps__rail-y, .table100.ver5 .ps__rail-y { right: 5px; }
.table100.ver1 .ps__rail-y::before, .table100.ver2 .ps__rail-y::before, .table100.ver3 .ps__rail-y::before,
.table100.ver4 .ps__rail-y::before, .table100.ver5 .ps__rail-y::before { background-color: #ebebeb; }

.table100.ver1 .ps__rail-y .ps__thumb-y::before, .table100.ver2 .ps__rail-y .ps__thumb-y::before,
.table100.ver3 .ps__rail-y .ps__thumb-y::before, .table100.ver4 .ps__rail-y .ps__thumb-y::before,
.table100.ver5 .ps__rail-y .ps__thumb-y::before { background-color: #cccccc; }
/*==================================================================
[ Ver1 ]*/
.table100.ver1 table { width: 100%; border-collapse: collapse; background-color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); }
.table100.ver1 table th, .table100.ver1 table td { border: 1px solid #ddd; padding: 3px; text-align: left; }
.table100.ver1 table th { background-color: #f2f2f2; }
.table100.ver1 table tr:nth-child(even) { background-color: #f2f2f2; }
.table100.ver1 table tr:hover { background-color: #ddd; }

.table100.slim th { font-size: 14px; }
.table100.slim td { line-height: 1.1; }

.table100.ver2 th { background-color: var(--table-header); }
.table100.ver2 td { color: #090a0d; }
.table100.ver2 tr:nth-child(even) { background-color: #f9f7f7; }
.table100.ver2 tr:hover td { background-color: var(--table-hover); cursor: pointer; }
/*==================================================================
[ Ver3 ]*/
.table100.ver3 th { color: #FFF; background-color: var(--table-header-alt); border: 1px solid #ddd; }
.table100.ver3 td { color: #808080; line-height: 1.4; border: 1px solid #ddd; }
.table100.ver3 table tr:nth-child(even) { background-color: #ebf3f7; }
.table100.ver3 tr:hover td { background-color: var(--table-hover); }
/*[ Ver4 ]*/
.table100.ver4 { }
.table100.ver4 th { color: #FFF; background-color: #7fb3d5; border: 1px solid #ddd; }
.table100.ver4 td { color: #808080; border: 1px solid #ddd; }
.table100.ver4 table tr:nth-child(even) { background-color: #e9eff3; }
/*==================================================================
[ Ver5 ]*/
.table100.ver5 { margin-right: -30px; }
.table100.ver5 .table100-head { padding-right: 30px; }
.table100.ver5 th { color: #555555; background-color: transparent; }
.table100.ver5 td { color: #808080; background-color: #f7f7f7; }
.table100.ver5 .table100-body tr { overflow: hidden; border-bottom: 10px solid #fff; border-radius: 10px; }
.table100.ver5 .table100-body table { border-collapse: separate; border-spacing: 0 10px; }
.table100.ver5 .table100-body td { border: solid 1px transparent; border-style: solid none; padding-top: 10px; padding-bottom: 10px; }
.table100.ver5 .table100-body td:first-child { border-left-style: solid; border-top-left-radius: 10px; border-bottom-left-radius: 10px; }
.table100.ver5 .table100-body td:last-child { border-right-style: solid; border-bottom-right-radius: 10px; border-top-right-radius: 10px; }
.table100.ver5 tr:hover td { background-color: #ebebeb; cursor: pointer; }
.table100.ver5 .table100-head th { padding-top: 25px; padding-bottom: 25px; }
/* CSS Components*/
.switch { position: relative; display: inline-block; width: 60px; height: 34px; }
label.switch { margin-bottom: 0; }
/* Hide default HTML checkbox */
.switch input { opacity: 0; width: 0; height: 0; }
/* The slider */
.switch .slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; -webkit-transition: .4s; transition: .4s; }
.switch .slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; -webkit-transition: .4s; transition: .4s; }
.switch input:checked + .slider { background-color: #2196F3; }
.switch input:disabled + .slider { background-color: #f0f0f0; }
.switch input:disabled:checked + .slider { background-color: #d5cfcf; }
.switch input:focus + .slider { box-shadow: 0 0 6px #2196F3; }
.switch input:checked + .slider:before { -webkit-transform: translateX(26px); -ms-transform: translateX(26px); transform: translateX(26px); }
/* Rounded sliders */
.switch .slider.round { border-radius: 34px; }
.switch .slider.round:before { border-radius: 50%; }
/* Notifictions */
.notification-container { z-index: 100000; }
.notification-container .success { background-color: #03a679; color: #f0f0f0; }
.notification-container .error { background-color: red; color: #f0f0f0; }
.notification-container .warning { background-color: orange; color: #f0f0f0; }
.notification-container .info { background-color: deepskyblue; color: #f0f0f0; }
.notification-container .notify { position: fixed; top: 0; left: 0; width: 100%; height: 0; box-sizing: border-box; color: white; text-align: center; overflow: hidden; transition: height .2s; opacity: 1; z-index: 100000; }
.notification-container #notifyType { display: block; margin: 10px; line-height: 30px; }
.notification-container .active { height: 50px; }
.ui-dialog { width: 80vw !important; max-width: 800px; font-size: 1em; padding: 0 !important; }
.ui-dialog-titlebar { display: none; }
.ui-dialog .ui-dialog-content, .ui-dialog .modal-dialog { padding: 0 !important; margin: 0 !important; }

@media screen and (max-width: 768px) {
    .ui-dialog { width: 90vw !important; }
}

@media screen and (max-width: 480px) {
    .ui-dialog { width: 95vw; }
}

.summary-container { }
.summary-container .s-row { display: flex; flex-wrap: wrap; justify-content: space-between; }
.summary-container .s-row .item { width: 40%; margin-bottom: 6px; }
.summary-container .s-row label { font-weight: bold; }
.amount-words { font-style: italic; font-size: small; color: green; }
.label-value { font-size: 12px; }
label { margin-bottom: 0.3rem; }

/* Datatables */
.dt-info { float: left; width: 50%; margin-top: 8px; }
.dt-paging { float: right; width: 50%; text-align: right; margin-top: 5px; }
.dt-buttons { float: left; width: 50%; margin-bottom: 5px; }
.dt-search { float: right; width: 50%; text-align: right; margin-bottom: 5px; }
/*Validation*/
input.invalid { border-color: red; }

.submitting { pointer-events: none; opacity: 0.7; cursor: not-allowed; }

/*Tables*/
.table-custom { border-collapse: separate; border-spacing: 0; width: 100%; }
.table-custom thead th { background: #f8fafc; border-bottom: 2px solid #e2edf2; padding: 1rem 0.75rem; font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.3px; color: #2c3f5c; border-top: none; }
.table-custom tbody td { padding: 0.9rem 0.75rem; vertical-align: middle; border-bottom: 1px solid #ecf3f9; font-size: 0.9rem; color: #1f2e44; }
.table-custom tbody tr:hover td { background-color: #fafdff; }
.totals-row { background-color: #fef7e0; font-weight: 700; border-top: 2px solid #e9e2c7; }
.totals-row td { background-color: #fef7e0; font-weight: 700; border-bottom: none; }
.badge-amount-positive { color: #15803d; font-weight: 600; }
.badge-amount-negative { color: #b91c1c; font-weight: 600; }

/* Sale listing */
/* Shared with the Expenses listing, so these stay global; the sale page layers
   its themed treatment on top under body.so-list-page. */
.sale-listing-page .form-label { color: #6c757d; font-weight: 700; }
.sale-listing-filter-card { box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); border: 1px solid #e8eef4; }
.sale-listing-primary-filters { align-items: flex-end; }
.sale-listing-more-toggle-col { margin-bottom: 0.15rem; }
.sale-listing-more-toggle { width: 100%; white-space: nowrap; }
.sale-listing-more-filters { margin-top: 0.85rem; padding-top: 0.85rem; border-top: 1px dashed #d8dee6; }
.sale-list-table thead tr { background-image: linear-gradient(45deg, var(--sale-header-start), var(--sale-header-end)); color: #fff; }
.sale-list-table thead a,
.sale-list-table thead a:link,
.sale-list-table thead a:hover { color: #fff; }
.sale-list-table tbody tr { cursor: pointer; }
.sale-list-table .invoice-id { color: #0052a3; font-weight: 600; }
.sale-status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.sale-status-saved { background: #e9ecef; color: #495057; }
.sale-status-submitted { background: #cfe2ff; color: #084298; }
.sale-status-cancelled { background: #f8d7da; color: #842029; }
.sale-status-inprogress { background: #fff3cd; color: #664d03; }
.sale-status-shipped { background: #d1e7dd; color: #0f5132; }
.sale-status-returned { background: #e2d9f3; color: #432874; }
.sale-status-partial { background: #cff4fc; color: #055160; }

/* Income and expenses
   The screen's own styles, including the type pills, live in Expenses.css now
   that it is on the shared listing recipe. Expenses.css is also linked from the
   child view Create Production Order embeds, so nothing here is needed twice. */

/* Process sale / purchase invoice dialogs */
.process-doc.full-screen.modal,
.modal-open .process-doc.full-screen.modal { overflow: hidden !important; }
.process-doc.full-screen .modal-dialog { position: fixed !important; top: 0; right: 0; bottom: 0; left: 0; width: 100% !important; max-width: none !important; height: 100%; max-height: 100%; margin: 0 !important; padding: 0; transform: none !important; overflow: hidden; }
.process-doc.full-screen .modal-content { height: 100dvh; display: flex; flex-direction: column; background: var(--main-bg-color); }
.process-doc.full-screen .modal-header { position: sticky; top: 0; right: auto; left: auto; height: auto; flex: 0 0 auto; z-index: 4; align-items: flex-start; padding: 12px 16px; background: linear-gradient(90deg, var(--sale-header-start), var(--sale-header-end)); border: 0; }
.process-doc.full-screen .modal-body { flex: 1; overflow-y: auto; padding: 16px 18px 24px; margin-top: 30px; background: var(--main-bg-color); font-weight: 400; }
.process-doc.full-screen .modal-footer { flex-shrink: 0; z-index: 4; }
.process-doc .modal-title { font-weight: 600; font-size: 1.15rem; line-height: 1.2; margin: 0; }
.process-doc-header { width: 100%; gap: 12px; }
.process-doc-titleblock { min-width: 0; flex: 1; }
.process-doc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.process-doc-chip { display: inline-flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, 0.16); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; font-weight: 600; line-height: 1.5; }
.process-doc .modal-header .process-doc-close { color: #fff; opacity: 0.9; float: none; font-size: 1.7rem; line-height: 1; text-shadow: none; margin: 0; padding: 0 2px; align-self: flex-start; }
.process-doc .modal-header .process-doc-close:hover { color: #fff; opacity: 1; }

.process-doc-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; justify-content: space-between; margin-bottom: 4px; }
.process-doc-facts { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 560px; }
.process-doc-fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 128px; flex: 1 1 150px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.process-doc-fact .form-label { display: block; }
.process-doc-fact .label-value { font-size: 0.92rem; font-weight: 600; color: var(--heading-color); word-break: break-word; }
.process-doc-label-icon { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; margin-left: 6px; padding: 0; border: 1px solid var(--line); border-radius: 6px; background: var(--main-bg-color); color: var(--heading-accent); font-size: 0.72rem; line-height: 1; vertical-align: middle; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease; }
.process-doc-label-icon:hover,
.process-doc-label-icon:focus { background: var(--heading-accent); border-color: var(--heading-accent); color: #fff; outline: none; }
.process-doc-label-icon i { pointer-events: none; }
.customer-photo-preview { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 4px; }
.customer-photo-preview img { max-width: 100%; max-height: 68vh; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); object-fit: contain; }
.customer-photo-missing { margin: 0; color: var(--text-grey); font-weight: 600; }
.process-doc-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: center; }
.process-doc-actions .btn { margin: 0; }

.process-doc-search { position: relative; margin: 8px 0 10px; }
.process-doc-search .fa-search { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.process-doc-search .form-control { padding-left: 36px; border-radius: 999px; }

.process-doc-lines { max-height: 440px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.process-doc-lines table { margin-bottom: 0; border-collapse: separate; border-spacing: 0; width: 100%; }
.process-doc .process-doc-lines thead th { position: sticky; top: 0; z-index: 2; background: var(--table-header); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; border-color: var(--table-header); white-space: nowrap; padding: 8px 10px; }
.process-doc-lines tbody td { padding: 8px 10px; vertical-align: top; color: var(--heading-color); border-color: var(--line); font-size: 0.9rem; background: var(--surface); }
.process-doc-lines tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--table-hover) 45%, var(--surface)); }
.process-doc-lines tbody tr:hover td { background: var(--table-hover); }
.process-doc-product { font-weight: 700; }
.process-doc-code { display: block; font-size: 0.75rem; color: var(--text-grey); font-weight: 500; }

.process-doc .process-qty-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.process-doc .process-qty { display: flex; flex-direction: column; gap: 2px; min-width: 88px; margin: 0; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: var(--text-grey); }
.process-doc .process-qty input.form-control { width: 76px; padding: 0.2rem 0.4rem; font-size: 0.9rem; text-transform: none; letter-spacing: 0; }

.process-doc .card-container { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
.process-doc .card-container .header { opacity: 1; padding: 8px 12px; font-size: 0.85rem; letter-spacing: 0.04em; background: linear-gradient(90deg, var(--card-header-start), var(--card-header-end)); }
.process-doc .card-container .header i { margin-right: 6px; }
.process-doc .card-container .table { margin-bottom: 0; }
.process-doc .card-container .table thead th { background: color-mix(in srgb, var(--table-header) 10%, var(--surface)); color: var(--heading-color); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; border-bottom: 2px solid var(--line); }
.process-doc .card-container .table td { color: var(--heading-color); }

.process-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.process-stat { flex: 1 1 120px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
.process-stat .label-value { font-size: 1rem; font-weight: 700; color: var(--heading-color); }
.process-stat-emphasis { background: color-mix(in srgb, var(--heading-accent) 16%, var(--surface)); border-color: color-mix(in srgb, var(--heading-accent) 40%, var(--line)); }
.process-stat-emphasis .label-value { color: var(--heading-accent); font-size: 1.15rem; }
.process-stat-remaining { background: #fef2f2; border-color: #fecaca; }
.process-stat-remaining .label-value { color: #b91c1c; }

.process-notes { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.process-note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.process-note-text { font-weight: 500; color: var(--heading-color); }
.process-note-meta { font-size: 0.78rem; color: var(--text-grey); margin-top: 2px; }
.process-empty { color: var(--text-grey); font-size: 0.9rem; padding: 4px 0; }
.process-section-actions { margin-top: 8px; }
.process-doc-thumb { width: 160px; height: 160px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); }
.process-doc-errors { color: #b91c1c; background: #fef2f2; border: 1px solid #fecaca; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }
.process-doc-errors ul { margin: 6px 0 0 18px; }

.process-doc-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; width: 100%; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 16px; }
.process-doc-print-pref { display: flex; align-items: center; gap: 8px; }
.process-doc-print-pref .radio-inline { margin: 0; font-weight: 600; color: var(--heading-color); }
.process-doc-footer-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-left: auto; align-items: center; }
.process-doc-footer-actions .btn,
.process-doc-footer-actions .btn-group { margin: 0; }
.process-doc .sale-status-pill { background: #e9ecef; color: #495057; }


.pos-slim-scroll { scrollbar-width: thin; scrollbar-color: #cbd5e1 transparent; }
.pos-slim-scroll::-webkit-scrollbar { width: 6px; height: 6px; }
.pos-slim-scroll::-webkit-scrollbar-track { background: transparent; }
.pos-slim-scroll::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
.pos-slim-scroll::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Payment receipts */
.receipts-page .heading { margin-bottom: 0; }
.receipts-header { align-items: center; }
.receipts-actions .btn + .btn { margin-left: 0.4rem; }
.btn-receipt-out { background: #fff7ed; color: #9a3412; border: 1px solid #fdba74; }
.btn-receipt-out:hover { background: #ffedd5; color: #7c2d12; }
.receipts-filter-card,
.receipts-results { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.receipts-page .form-label { color: var(--text-grey); font-weight: 700; }
.receipts-filters { align-items: flex-end; }
.receipts-filters > [class*="col-"] { margin-bottom: 0.65rem; }
.receipts-results.table100.ver2 table { border: 0; background: transparent; }
.receipts-results .receipts-table { margin-bottom: 0; border-collapse: separate; border-spacing: 0; }
.receipts-results .receipts-table th,
.receipts-results .receipts-table td { padding: 0.65rem 0.75rem; vertical-align: middle; }
.receipts-results .receipts-table thead th { background: var(--table-header); color: #fff; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; border-color: transparent; white-space: nowrap; }
.receipts-results .receipts-table thead a,
.receipts-results .receipts-table thead a:link,
.receipts-results .receipts-table thead a:hover,
.receipts-results .receipts-table thead a:visited { color: #fff; }
.receipts-results .receipts-table tbody td { color: var(--heading-color); border-color: var(--line); background: var(--surface); }
.receipts-results .receipts-table tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--table-hover) 35%, var(--surface)); }
.receipts-results .receipts-table tbody tr { cursor: pointer; }
.receipts-results .receipts-table tbody tr:hover td { background: var(--table-hover); }
.receipts-results .num { text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.receipts-id { font-weight: 700; color: var(--heading-accent); }
.receipts-person { font-weight: 600; color: var(--heading-color); }
.receipts-details { color: var(--text-grey); max-width: 280px; }
.receipt-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.receipt-pill-in { background: #d1e7dd; color: #0f5132; }
.receipt-pill-out { background: #ffedd5; color: #9a3412; }
.receipts-balance-open { color: #c2410c; }
.receipts-empty-row,
.receipts-empty-row:hover { cursor: default; }
.receipts-results .receipts-table tbody tr.receipts-empty-row:hover td { background: var(--surface); }
.receipts-empty { text-align: center; color: var(--text-grey); padding: 1.25rem 0.5rem; font-weight: 500; }
.receipts-empty i { margin-right: 6px; }
.receipts-summary-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.receipts-summary-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.receipts-summary-tile label { display: block; margin-bottom: 4px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-grey); }
.receipts-summary-tile div { font-size: 1.15rem; font-weight: 700; color: var(--heading-color); font-variant-numeric: tabular-nums; }
.receipts-summary-tile.emphasis { background: color-mix(in srgb, var(--heading-accent) 12%, var(--surface)); border-color: color-mix(in srgb, var(--heading-accent) 35%, var(--line)); }
.receipts-summary-in div { color: #15803d; }
.receipts-summary-out div { color: #c2410c; }

.receipts-dialog .modal-header.receipts-dialog-header { align-items: flex-start; border: 0; color: #fff; background: linear-gradient(90deg, var(--card-header-start), var(--card-header-end)); }
.receipts-dialog-in .modal-header.receipts-dialog-header { background: linear-gradient(90deg, #166534, #15803d); }
.receipts-dialog-out .modal-header.receipts-dialog-header { background: linear-gradient(90deg, #9a3412, #c2410c); }
.receipts-dialog .modal-title { margin: 0; color: #fff; font-size: 1.15rem; line-height: 1.2; }
.receipts-dialog-subtitle { margin-top: 2px; font-size: 0.8rem; font-weight: 600; opacity: 0.9; }
.receipts-dialog .modal-header .close { color: #fff; opacity: 0.9; text-shadow: none; float: none; }
.receipts-dialog .modal-header .close:hover { color: #fff; opacity: 1; }
.receipts-section { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 8px; }
.receipts-section-title { margin-bottom: 4px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-grey); }
#createItemContainer .modal-header.receipts-dialog-header { padding: 10px 14px; }
#createItemContainer .modal-body { padding: 10px 12px 4px; }
#createItemContainer .modal-footer { padding: 8px 12px; }
#createItemContainer .modal-footer .btn { padding: 6px 12px; }
#createItemContainer .receipts-form label { display: block; margin-bottom: 2px; font-size: 0.8rem; font-weight: 600; color: var(--heading-color); }
#createItemContainer .receipts-form input.form-control { height: 34px; padding: 4px 8px; font-size: 0.9rem; }
#createItemContainer .receipts-form textarea.form-control { min-height: 52px; height: 52px; padding: 4px 8px; font-size: 0.9rem; resize: vertical; }
#createItemContainer .receipts-section .row,
#createItemContainer .receipts-section-pair { margin-right: -6px; margin-left: -6px; }
#createItemContainer .receipts-section .row > [class*="col-"],
#createItemContainer .receipts-section-pair > [class*="col-"] { padding-right: 6px; padding-left: 6px; margin-bottom: 0; }
#createItemContainer .receipts-section-pair > [class*="col-"] > .receipts-section { margin-bottom: 8px; }
#createItemContainer .receipts-section .form-group { margin-bottom: 0; }
#createItemContainer .receipts-form .amount-words { display: block; margin-top: 1px; font-size: 0.7rem; line-height: 1.3; }
#createItemContainer .receipts-form .text-danger { display: block; font-size: 0.7rem; line-height: 1.3; }
#createItemContainer .receipts-section .selectize-input { min-height: 30px; padding: 3px 6px !important; }
#createItemContainer .receipts-section .selectize-input,
#createItemContainer .receipts-section .selectize-input > input { font-size: 13px !important; line-height: 20px !important; }
#createItemContainer .receipts-section .nav-pills { flex-flow: row wrap; gap: 6px; }
#createItemContainer .receipts-section .nav-link { padding: 4px 12px; font-size: 12px; font-weight: 600; line-height: 1.4; }
#createItemContainer .receipts-payables,
#createItemContainer .receipts-payments,
#createItemContainer .receipts-orders { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05); }
#createItemContainer .card-container .header { opacity: 1; padding: 6px 12px; font-size: 0.82rem; letter-spacing: 0.04em; }
#createItemContainer .card-container .header i { margin-right: 6px; }
#createItemContainer .receipts-payables.card-container { margin: 0 0 8px; padding: 0 12px 8px; border-radius: 12px; }
#createItemContainer .receipts-payables .header { margin: 0 -12px 6px; border-radius: 12px 12px 0 0; }
#createItemContainer .receipts-payables .row { margin-right: -6px; margin-left: -6px; }
#createItemContainer .receipts-payables .row > [class*="col-"] { padding-right: 6px; padding-left: 6px; }
#createItemContainer .receipts-payables .form-label { margin-bottom: 2px; font-size: 0.72rem; }
#createItemContainer .receipts-payables input.form-control { height: 30px; padding: 3px 8px; font-size: 0.85rem; }
#createItemContainer .receipts-payables .alert { margin-bottom: 0; padding: 6px 10px; font-size: 0.82rem; }
#createItemContainer .receipts-payments.card-container { margin: 0; padding: 0 12px 8px; border-radius: 12px; }
#createItemContainer .receipts-payments .header { margin: 0 -12px 6px; border-radius: 12px 12px 0 0; }
#createItemContainer .receipts-payments .table100.m-b-110 { margin-bottom: 0; }
#createItemContainer .receipts-payments .table100 table { margin-bottom: 0; font-size: 0.8rem; }
#createItemContainer .receipts-payments .table100 th { padding: 4px 8px; font-size: 0.72rem; }
#createItemContainer .receipts-payments .table100 td { padding: 4px 8px; }
#createItemContainer .receipts-form .alert { margin: 6px 0 0; padding: 6px 10px; font-size: 0.8rem; }

/*Bootstrap overrides*/
select.form-control-sm { min-width: 80px; }

/* Money transfers */
.transfer-header .heading { margin-bottom: 0; }
.transfer-filter-card,
.transfer-results-card { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.transfer-page .form-label { color: var(--label-color) !important; }
.transfer-filters { align-items: flex-end; }
.transfer-page .input-group-text { background: var(--surface); border-color: var(--line); color: var(--heading-accent); }
.transfer-route { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.transfer-account { font-weight: 600; color: var(--heading-color); }
.transfer-arrow { color: var(--heading-accent); }
.transfer-amount { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--heading-color); white-space: nowrap; }
.transfer-table thead a,
.transfer-table thead a:link,
.transfer-table thead a:hover,
.transfer-table thead a:visited { color: #fff; }
.transfer-page .table100 tr.selected td { background-color: var(--table-hover); }
.transfer-empty { text-align: center; color: var(--text-grey); padding: 1.25rem !important; }
.transfer-stats { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.transfer-stat { flex: 1 1 180px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--heading-accent); border-radius: 10px; padding: 12px 14px; }
.transfer-stat label { display: block; color: var(--label-color); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 4px; }
.transfer-stat div { color: var(--heading-color); font-size: 1.35rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.transfer-same-account { margin-top: 0.35rem; padding: 0.55rem 0.75rem; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--heading-accent) 12%, var(--surface)); color: var(--heading-color); font-size: 0.85rem; }
.transfer-page .nav-pills .nav-link { border: 1px solid var(--line); color: var(--heading-color); background: var(--surface); margin-bottom: 0.35rem; border-radius: 0.5rem; text-align: left; }
.transfer-page .nav-pills .nav-link.active,
.transfer-page .nav-pills .nav-link.active:hover { background: var(--btn-primary); border-color: var(--btn-primary); color: #fff; }
.transfer-page .amount-words { color: var(--heading-accent); }

/* Manage users */
.users-page .heading { margin-bottom: 0; }
.users-page .users-filter-card,
.users-page .users-results { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.users-filters { align-items: flex-end; }
.users-filters > [class*="col-"] { margin-bottom: 0.65rem; }
.users-page .users-results.table100.ver2 table { border: 0; background: transparent; }
.users-page .users-results th,
.users-page .users-results td { padding: 0.65rem 0.75rem; vertical-align: middle; }
.users-role { display: flex; align-items: center; gap: 8px; margin: 0.35rem 0; }
.users-role > label:last-child { margin-bottom: 0; }
.users-dialog .modal-header { align-items: flex-start; border: 0; color: #fff; background: linear-gradient(90deg, var(--card-header-start), var(--card-header-end)); }
.users-dialog .modal-title { margin: 0; color: #fff; font-size: 1.15rem; line-height: 1.2; }
.users-dialog .modal-header .close { color: #fff; opacity: 0.9; text-shadow: none; float: none; }
.users-dialog .modal-header .close:hover { color: #fff; opacity: 1; }

/* Trusted devices */
.devices-page .heading { margin-bottom: 0; }
.devices-page .devices-filter-card,
.devices-page .devices-results,
.devices-page .devices-bulk { background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08); }
.devices-page .devices-bulk { margin-top: 1rem; padding: 1rem 1.15rem 1.15rem; }
.devices-filters { align-items: flex-end; }
.devices-filters > [class*="col-"] { margin-bottom: 0.65rem; }
.devices-page .devices-results.table100.ver2 table { border: 0; background: transparent; }
.devices-page .devices-results th { background: linear-gradient(45deg, var(--table-header), var(--table-header-alt)); color: #fff; }
.devices-page .devices-results th a,
.devices-page .devices-results th a:link,
.devices-page .devices-results th a:hover { color: #fff; text-decoration: none; }
.devices-page .devices-results th,
.devices-page .devices-results td { padding: 0.65rem 0.75rem; vertical-align: middle; }
.devices-stats { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.devices-stat { flex: 1 1 170px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--heading-accent); border-radius: 10px; padding: 10px 14px; }
.devices-stat label { display: block; color: var(--label-color); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 2px; }
.devices-stat div { color: var(--heading-color); font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.device-name { font-weight: 600; color: var(--heading-color); }
.device-user { font-weight: 600; color: var(--heading-color); }
.device-email { color: var(--text-grey); font-size: 0.78rem; }
.device-agent { color: var(--text-grey); font-size: 0.75rem; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-actions { white-space: nowrap; }
.device-status-pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; line-height: 1.4; white-space: nowrap; }
.device-status-active { background: #d1e7dd; color: #0f5132; }
.device-status-revoked { background: #f8d7da; color: #842029; }
.device-empty { text-align: center; color: var(--text-grey); padding: 1.25rem !important; }
.devices-bulk-title { font-size: 0.95rem; font-weight: 700; color: var(--heading-color); margin-bottom: 0.25rem; }
.devices-bulk-help { color: var(--text-grey); font-size: 0.85rem; margin-bottom: 0.75rem; }
