/* Interface Nimba : typographie lisible et système visuel commun aux métiers. */
:root {
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  font-size: 16px;
  color: #182638;
  background: #f3f6fa;
  --navy: #102b4d;
  --accent: #1d55d2;
  --muted: #526278;
  --line: #dce3ed;
}
body { line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, .brand, .profile-choice strong, .stat>strong, .total strong, .pos-product>b, .grand-total strong { font-family: "Segoe UI", Inter, Arial, sans-serif; }
button, input, select, textarea { font-family: inherit; }
h1 { font-size: 32px; line-height: 1.2; font-weight: 700; letter-spacing: -.7px; color: #13253d; margin-bottom: 12px; }
h2 { font-size: 23px; font-weight: 650; line-height: 1.35; color: #192d47; }
h3 { font-size: 17px; font-weight: 650; color: #233951; }
.fine, .muted { color: #526278; }
.fine { font-size: 14px; line-height: 1.65; }
.eyebrow { color: #2454a5; font-size: 12px; line-height: 1.5; font-weight: 650; letter-spacing: 1px; margin-bottom: 12px; }
.brand { font-size: 32px; color: #122d50; letter-spacing: -1px; gap: 11px; }
.brand>b { width: 40px; height: 40px; background: #2157d4; color: #fff; border-radius: 11px; box-shadow: 0 3px 8px #1d55d21c; }
.brand>span { color: #2865e2; }
.ui-icon { width: 21px; height: 21px; display: inline-block; vertical-align: middle; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
aside { width: 276px; background: #fff; color: #4a5c74; border-right: 1px solid #dce4ef; padding: 26px 18px 20px; box-shadow: none; }
aside .brand { color: #122d50; margin: 0 12px 20px; }
.workspace { padding: 15px 12px; background: #f6f8fc; border: 1px solid #e2e8f1; border-radius: 10px; gap: 12px; margin-bottom: 18px; }
.workspace>span { width: 39px; height: 40px; border-radius: 9px; background: #e6edfb; color: #2453a4; border: 1px solid #d8e3f7; font-size: 17px; font-weight: 650; }
.workspace strong { color: #25384e; font-size: 15px; max-width: 172px; }
.workspace small { color: #576a83; font-size: 13px; margin-top: 4px; }
.nav-label { display: none; color: #566a85; font-size: 11px; letter-spacing: .8px; margin-bottom: 12px; font-weight: 650; }
#profileSwitcher { margin: 0 10px 17px; }
#profileSwitcher label, #profileSwitcher small { font-size: 11px; color: #5c6e88; letter-spacing: .6px; font-weight: 650; }
#profileSwitcher select { min-height: 44px; padding: 9px 11px; background: #fff; color: #273e5c; border: 1px solid #cbd6e5; font-size: 15px; }
.single-profile strong { display: flex; gap: 9px; align-items: center; font-size: 16px; font-weight: 650; color: #254e98; margin-top: 9px; }
.nav { font-size: 15px; font-weight: 550; color: #41546f; gap: 12px; padding: 10px 14px; min-height: 46px; border-radius: 8px; margin: 2px 0; }
.nav i { color: #637994; width: 22px; display: inline-flex; align-items: center; justify-content: center; }
.nav.active { background: #eaf0ff; color: #1b4fc3; box-shadow: inset 3px 0 #245bd6; font-weight: 650; }
.nav.active i { color: #245bd6; }
.nav:hover { background: #f0f4fa; color: #163e7b; }
.nav.active:hover { background: #e4ecff; }
aside nav { scrollbar-color: #c9d3e2 transparent; }
aside .connection { display: none; font-size: 12px; color: #3d6a58; border-color: #e1e8f0; padding: 13px 10px; margin: 10px 0; }
aside .sidebar-bottom { padding-top: 12px; }
.main { margin-left: 276px; }
header { height: 80px; background: #fff; padding: 0 32px; position: sticky; top: 0; z-index: 10; border-bottom: 1px solid #dfe5ee; }
header>div { font-size: 14px; color: #5c6d83; gap: 16px; }
header strong { color: #243e60; font-weight: 600; }
header em { color: #8a98ab; }
.currency { font-size: 13px; color: #526781; }
.avatar { width: 38px; height: 38px; color: #2554b1; background: #edf2ff; border: 1px solid #d9e4ff; font-size: 14px; }
main { max-width: 1640px; padding: 34px 32px 36px; min-height: calc(100vh - 145px); }
.page-heading { gap: 22px; align-items: center; margin-bottom: 30px; }
.page-heading p { font-size: 16px; color: #53667f; line-height: 1.6; max-width: 720px; }
.page-heading .primary { white-space: nowrap; }
.primary, .secondary, .row-button, .text, .link { transition: background .15s, border-color .15s, box-shadow .15s; }
.primary, .secondary { min-height: 44px; border-radius: 8px; font-size: 14px; padding: 11px 17px; font-weight: 600; line-height: 1.45; }
.primary { background: #2157d4; border: 1px solid #2157d4; color: #fff; box-shadow: 0 2px 4px #1b4aa115; }
.primary:hover { background: #1948b2; border-color: #1948b2; box-shadow: 0 3px 9px #1d55d222; }
.secondary { background: #fff; color: #314b6c; border: 1px solid #cbd6e5; box-shadow: 0 1px 2px #142a4610; }
.secondary:hover { background: #f2f6fc; border-color: #9cb1cf; }
.text, .link { color: #2456b8; font-size: 14px; font-weight: 600; }
.text:hover, .link:hover { color: #143e8b; text-decoration: underline; }
.icon { width: 38px; height: 38px; min-height: 38px; color: #4c6380; font-size: 23px; border-radius: 8px; }
button:disabled { cursor: not-allowed; opacity: .55; }
button:focus-visible, a:focus-visible { outline: 3px solid #7c9ef0; outline-offset: 3px; }
.card { border-color: #dce4ef; border-radius: 12px; box-shadow: 0 2px 5px #223c5b04; }
.stats { gap: 18px; margin-bottom: 28px; }
.stat { padding: 22px; border-top: 3px solid #dbe6ff; }
.stat-top { color: #485f7a; font-size: 14px; font-weight: 550; margin-bottom: 16px; gap: 12px; line-height: 1.5; }
.stat-top i, .stat:nth-child(2) i, .stat:nth-child(3) i, .stat:nth-child(4) i { width: 34px; height: 34px; background: #eff4ff; color: #365eab; font-size: 18px; flex-shrink: 0; }
.stat>strong { font-size: 30px; color: #122d4e; letter-spacing: -.7px; line-height: 1.3; font-weight: 700; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.stat>strong small { font-size: 13px; color: #566b85; font-weight: 550; margin-left: 6px; letter-spacing: 0; }
.stat>p { font-size: 13px; color: #526780; margin-top: 10px; line-height: 1.5; }
.section-header { padding: 23px 25px; gap: 20px; border-color: #e0e7ef; }
.section-header h2 { font-size: 19px; font-weight: 650; color: #233d5c; letter-spacing: -.2px; line-height: 1.4; }
.section-header p { font-size: 14px; line-height: 1.6; color: #566b85; margin-top: 6px; }
.section-header .muted { font-size: 17px; }
.pill { border-radius: 6px; background: #eaf5ee; color: #276243; font-size: 13px; font-weight: 600; padding: 6px 10px; line-height: 1.4; }
.pill.draft { background: #edf1f6; color: #4d6079; }
.pill.issued { background: #eaf0ff; color: #2856a7; }
.pill.low { background: #fff3dc; color: #815312; }
.pill.out { background: #fdebea; color: #a3312f; }
table { font-variant-numeric: tabular-nums; }
th { font-size: 13px; text-transform: none; letter-spacing: 0; color: #445c7a; font-weight: 650; padding: 16px 22px; background: #f3f6fb; border-color: #dfe6f0; }
td { font-size: 15px; padding: 19px 22px; color: #3d5571; border-color: #e7edf4; line-height: 1.6; }
td strong { font-size: 15px; color: #253e5b; font-weight: 600; }
td small { font-size: 13px; color: #5c708b; margin-top: 6px; }
tbody tr:hover { background: #fafcff; }
.row-button { min-height: 38px; font-size: 13px; padding: 8px 12px; border-color: #cbd7e6; color: #2e527f; border-radius: 7px; font-weight: 600; }
.row-button:hover { background: #edf3ff; color: #204ba2; border-color: #a7bde6; }
.tablewrap { scrollbar-width: thin; scrollbar-color: #b6c6dc #f1f5fb; }
.empty { padding: 45px 24px; color: #526c87; }
.empty>i { width: 58px; height: 58px; color: #4c72ad; background: #f0f5ff; border-color: #dce6fa; font-size: 27px; }
.empty h3 { font-size: 18px; color: #344d6c; margin-bottom: 10px; }
.empty p { font-size: 15px; color: #586d87; max-width: 440px; margin-bottom: 20px; line-height: 1.65; }
.toolbar { padding: 18px 23px; gap: 16px; border-color: #e1e8f1; }
.toolbar input { border: 1px solid #cbd7e5; background: #fff; font-size: 15px; padding: 11px 14px; max-width: 460px; min-height: 44px; }
.toolbar select { font-size: 14px; border-color: #cbd7e5; padding: 10px 13px; min-height: 44px; }
.toolbar>span { font-size: 13px; color: #526b88; }
label { font-size: 15px; font-weight: 600; color: #304a69; margin-bottom: 20px; }
input, select, textarea { font-size: 16px; line-height: 1.5; min-height: 46px; padding: 11px 13px; color: #233d5b; border-color: #bbcadd; border-radius: 8px; margin-top: 8px; }
input::placeholder, textarea::placeholder { color: #6b7e96; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: #3d70d7; box-shadow: 0 0 0 3px #2c65da1c; }
input[type=checkbox], input[type=radio] { min-height: 0; accent-color: #245bd6; width: 19px; height: 19px; flex-shrink: 0; }
input[type=hidden] { display: none; }
textarea { min-height: 100px; }
.form-grid { gap: 0 20px; }
.form-actions { gap: 12px; padding-top: 22px; margin-top: 26px; flex-wrap: wrap; border-color: #dfe7f1; }
.notice { padding: 17px 20px; font-size: 14px; color: #365479; background: #edf3fd; border: 1px solid #d4e1f7; border-radius: 9px; line-height: 1.75; }
dialog { width: min(940px,95vw); border-color: #cfdbea; border-radius: 15px; box-shadow: 0 20px 90px #13294b35; }
dialog::backdrop { background: #0d203b80; backdrop-filter: blur(3px); }
.modal-header { padding: 25px 28px; background: #fafcff; border-color: #dfe6ef; }
.modal-header h2 { font-size: 25px; }
#modalBody { padding: 27px 28px; }
.line-head, .document-line { grid-template-columns: minmax(170px,1fr) 90px 145px 38px; gap: 12px; }
.line-head { font-size: 13px; color: #4d6380; font-weight: 600; padding: 9px 0; }
.document-line { margin-bottom: 18px; }
.line-input-label { margin: 0; }
.line-input-label>span { display: none; }
.document-line input, .document-line select, .document-line .description { font-size: 15px; padding: 10px 11px; min-height: 44px; }
.total { font-size: 16px; color: #4a6280; padding: 25px 0; }
.total strong { color: #173e70; font-size: 30px; font-weight: 700; }
.document-top { margin-bottom: 30px; }
.document-top h2 { font-size: 29px; }
.document-top p, .document-client p, .document-notes { font-size: 14px; color: #506982; line-height: 1.7; }
.document-client { background: #f3f7fc; border: 1px solid #e0e8f3; padding: 20px; }
.document-client h3 { font-size: 20px; }
.toast { font-size: 15px; padding: 16px 23px; color: #245d43; background: #effaf3; border-color: #bfdcc9; border-radius: 10px; line-height: 1.6; box-shadow: 0 5px 28px #193e611c; }
.toast.error { color: #9b302e; background: #fff1ef; border-color: #e8bfba; }
.loading { color: #3f5b7c; font-size: 16px; background: #f5f8fd; }
.modules-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 22px; }
.module-card { padding: 27px; }
.module-card>i, .module-card:nth-child(n+6)>i { width: 52px; height: 52px; border-radius: 12px; background: #edf3ff; color: #2d5daf; margin-bottom: 22px; display: flex; align-items: center; justify-content: center; }
.module-card>i .ui-icon { width: 27px; height: 27px; }
.module-card h2 { font-size: 23px; }
.module-card p, .profile-catalog .module-card p { font-size: 15px; line-height: 1.7; color: #4e6681; min-height: 82px; }
.module-foot { font-size: 14px; color: #385e48; padding-top: 21px; border-color: #dfe7f2; gap: 12px; flex-wrap: wrap; }
.profile-catalog .module-foot .primary, .profile-catalog .module-foot .secondary { font-size: 14px; min-height: 42px; padding: 10px 15px; }
.included-tools { min-height: 84px; gap: 7px; align-content: flex-start; margin: 18px 0 22px; }
.included-tools span { font-size: 13px; color: #3e5d82; background: #f0f4fb; padding: 5px 9px; border: 1px solid #e0e8f5; border-radius: 5px; }
.profile-review>p, .profile-review ul { font-size: 16px; color: #445f7d; }
.profile-review ul { columns: 2; line-height: 2; }
.profile-review .profile-choice-icon { width: 55px; height: 55px; }
.onboarding { max-width: 1080px; margin: 44px auto 60px; padding: 0 24px; }
.onboarding>.brand { margin-bottom: 30px; }
.onboarding .card { padding: 36px 40px; border-radius: 16px; box-shadow: 0 5px 24px #1c3b6610; }
.onboarding h1 { font-size: 35px; }
.onboarding p { font-size: 16px; color: #4c6380; }
.onboarding .eyebrow { font-size: 12px; }
.profile-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin: 28px 0; }
.profile-choices legend { font-size: 15px; color: #354f70; margin-bottom: 16px; font-weight: 600; }
.profile-choice { margin: 0; padding: 21px 18px; gap: 12px; border-color: #cedaea; border-radius: 11px; align-items: flex-start; box-shadow: 0 1px 3px #19375a05; }
.profile-choice:last-child { grid-column: 1/-1; }
.profile-choice:hover { background: #f8fbff; border-color: #98b4df; }
.profile-choice:has(input:checked) { background: #eef4ff; border-color: #3870dc; box-shadow: 0 0 0 2px #3870dc25; }
.profile-choice>input { width: 19px; height: 19px; accent-color: #245bd6; margin-top: 4px; }
.profile-choice-icon { width: 40px; height: 40px; color: #2c5bb0; background: #eaf1ff; border-radius: 9px; }
.profile-choice-icon .ui-icon { width: 23px; height: 23px; }
.profile-choice strong { font-size: 19px; color: #233f64; font-weight: 650; }
.profile-choice small { font-size: 14px; color: #4a6584; line-height: 1.65; margin-top: 7px; }
.profile-choice em { font-size: 13px; color: #456794; line-height: 1.7; margin-top: 12px; }
.choice-company { background: #f0f5fc; padding: 17px 20px; border: 1px solid #dde7f5; }
.choice-company small { font-size: 14px; color: #567090; }
.story { background: #102b4d; background-image: radial-gradient(ellipse at 20% 0%,#244e7c 0,transparent 60%); padding: 42px 54px; }
.story .brand { color: #fff; }
.story .brand>b { background: #477be4; }
.story .brand>span { color: #8eaff5; }
.story .eyebrow { color: #b4d0ff; font-size: 12px; }
.story h1 { font-size: 48px; color: #fff; line-height: 1.22; letter-spacing: -1.3px; }
.story p { font-size: 18px; color: #d0deef; line-height: 1.8; max-width: 460px; }
.story>small { font-size: 14px; color: #c0d2e9; line-height: 1.7; }
.tags { gap: 10px; }
.tags span { font-size: 13px; color: #e1ebf9; border-color: #7395c173; padding: 9px 13px; border-radius: 6px; background: #ffffff06; }
.auth-form { padding: 44px; }
.auth-form>div { max-width: 420px; }
.auth-form h2 { font-size: 32px; letter-spacing: -.7px; }
.auth-form p { font-size: 16px; color: #4f6682; line-height: 1.7; }
.auth-form label { font-size: 15px; }
.auth-form input { min-height: 52px; padding: 13px 15px; font-size: 16px; }
.auth-form .primary, .auth-form .secondary { font-size: 16px; min-height: 50px; }
.divider { font-size: 14px!important; color: #5d6e86; margin: 26px 0 18px!important; }
.auth-form .fine { font-size: 13px; margin-top: 25px; color: #586e88; }
footer { color: #536b87; font-size: 12px; padding: 22px 32px; background: #f8fafe; border-color: #dfe7f1; }
footer>span { color: #617792; }
.quick strong { font-size: 15px; color: #2e4767; }
.quick small { font-size: 13px; color: #576f8b; }
.insight h3 { font-size: 17px; }
.insight p, .module-strip strong { font-size: 14px; color: #45617f; }
.sector-actions { gap: 12px; margin-bottom: 26px; }
.dining-grid { grid-template-columns: repeat(auto-fill,minmax(200px,1fr)); gap: 18px; }
.dining-table { padding: 22px; }
.dining-table.occupied { border-top-color: #e5a938; }
.dining-table h3 { font-size: 20px; color: #294868; }
.dining-table .fine { font-size: 14px; }
.dining-table .row-button { font-size: 13px; min-height: 42px; }
.table-symbol { color: #436fa8; font-size: 30px; }
.kitchen-column { background: #eaf0f8; padding: 18px; border: 1px solid #dce5f1; }
.kitchen-column>h3 { font-size: 15px; margin-bottom: 19px; }
.kitchen-column>h3 span { color: #456587; }
.kitchen-ticket { padding: 19px; }
.kitchen-ticket>strong { font-size: 16px; color: #263f60; }
.kitchen-ticket>small { font-size: 13px; color: #566d87; }
.kitchen-ticket li { font-size: 15px; line-height: 1.85; color: #3e5979; }
.ticket-note { font-size: 14px; color: #77551e; background: #fff5df; padding: 12px; border: 1px solid #f0dfbc; }
.sector-line, .sector-line-head { grid-template-columns: minmax(150px,1fr) 125px 38px; gap: 13px; }
.detail-summary { font-size: 14px; color: #506a86; }
.progress-track { width: 120px; height: 7px; background: #e5edf8; }
.progress-track>span { background: #3f78d9; }
.checkbox-label { font-size: 14px; color: #3e5775; align-items: flex-start; gap: 11px; line-height: 1.7; }
.checkbox-label input { width: 19px; height: 19px; margin-top: 3px; }
.pos-toolbar { margin-bottom: 19px; }
.pos-tabs { background: #e7edf7; padding: 5px; border: 1px solid #dce4f0; border-radius: 10px; }
.pos-tab { font-size: 14px; font-weight: 600; color: #46617f; padding: 11px 18px; min-height: 42px; }
.pos-tab.selected { color: #2355b0; background: #fff; border-radius: 7px; }
.pos-payments { padding: 18px 21px; background: #fff; border-color: #dce5f0; font-size: 13px; color: #4f6784; gap: 15px 25px; border-radius: 10px; }
.pos-payments strong { color: #244568; font-size: 14px; font-weight: 650; }
.pos-layout { grid-template-columns: minmax(0,1.15fr) minmax(350px,1fr); gap: 22px; }
.pos-products { padding: 20px; gap: 14px; max-height: 730px; }
.pos-product { padding: 20px 17px; border-color: #dbe4ef; border-radius: 10px; box-shadow: 0 1px 3px #1e406307; }
.pos-product:hover { background: #f7faff; border-color: #7da2df; }
.product-glyph { color: #3d6ab4; background: #edf3ff; width: 42px; height: 42px; margin-bottom: 15px; }
.pos-product strong { font-size: 16px; color: #294362; line-height: 1.5; }
.pos-product small { font-size: 13px; color: #526d8b; line-height: 1.65; }
.pos-product>b { font-size: 21px; color: #153f7a; margin-top: 18px; }
.pos-product>b span { font-size: 12px; color: #55708f; }
.basket-line { padding: 20px 23px; gap: 15px; }
.basket-line strong { font-size: 15px; color: #2b4766; }
.basket-line small { font-size: 13px; color: #56718d; }
.basket-line>b { font-size: 16px; color: #274565; }
.quantity-stepper { font-size: 15px; gap: 11px; margin-top: 13px; }
.quantity-stepper .icon { width: 32px; height: 32px; min-height: 32px; font-size: 17px; border-color: #bccde3; }
.quantity-stepper .text { font-size: 12px; }
.basket-total { padding: 24px; background: #fcfdff; }
.basket-total>div { font-size: 15px; color: #506781; }
.basket-total>div strong { color: #304f72; }
.discount-field { font-size: 14px; }
.discount-field input { max-width: 200px; }
.basket-total>.grand-total { font-size: 15px; padding: 21px 0 26px; border-color: #dce5f0; gap: 15px; flex-wrap: wrap; }
.grand-total strong { color: #174787!important; font-size: 30px; }
.grand-total strong small { font-size: 13px; color: #55718e; }
.basket-total>.fine { font-size: 13px; color: #526e89; margin-top: 17px; }
.receipt-amounts { max-width: 430px; }
.receipt-amounts p { font-size: 15px; color: #4d6682; }
.receipt-amounts strong { color: #2a4565; }
.receipt-grand { font-size: 19px!important; border-color: #dbe5f0; }
.return-line { gap: 19px; grid-template-columns: minmax(150px,1fr) 100px minmax(170px,1fr); padding: 22px 0; }
.return-line strong { font-size: 16px; color: #294564; }
.return-line small { font-size: 13px; color: #54708c; }
.return-line label { font-size: 14px; }

@media(max-width:1390px) {
  .modules-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .stat { padding: 20px 17px; }
  .stat>strong { font-size: 27px; }
  .stat>strong small { display: block; margin: 4px 0 0; }
}
@media(max-width:1150px) {
  aside { width: 252px; padding-left: 14px; padding-right: 14px; }
  .main { margin-left: 252px; }
  header { padding: 0 25px; }
  main { padding: 29px 25px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
  .stat>strong { font-size: 30px; }
  .stat>strong small { display: inline; margin-left: 6px; }
  .page-heading { align-items: flex-start; flex-wrap: wrap; }
  .pos-layout { grid-template-columns: 1fr; }
  .pos-basket { grid-row: auto; }
  .pos-products { max-height: 480px; }
  .kitchen-grid { grid-template-columns: 1fr; }
  .story { padding: 35px; }
  .story h1 { font-size: 40px; }
}
@media(max-width:960px) {
  aside { width: 280px; transform: translateX(-100%); visibility: hidden; }
  aside.open { transform: translateX(0); visibility: visible; box-shadow: 14px 0 40px #18335130; }
  .main { margin-left: 0; }
  .mobile { display: inline-flex; }
  header { height: 72px; padding: 0 22px; }
  main { padding: 27px 22px; }
  .currency { font-size: 12px; }
  .onboarding { margin-top: 30px; }
  .onboarding .card { padding: 30px; }
  .profile-choice { padding: 18px 15px; gap: 10px; }
  .profile-choice-icon { width: 34px; height: 34px; }
  .auth { grid-template-columns: 1fr; }
  .story { min-height: 0; padding: 28px 32px; }
  .story>div { padding: 40px 0 18px; max-width: none; }
  .story h1 { font-size: 37px; }
  .story p { font-size: 17px; max-width: 650px; margin: 20px 0; }
  .story>small, .tags { display: none; }
  .auth-form { padding: 40px 30px 50px; }
  .auth-form>div { max-width: 580px; }
}
@media(max-width:650px) {
  h1, .page-heading h1 { font-size: 28px; }
  .page-heading p { font-size: 15px; }
  .page-heading .primary { font-size: 14px; padding: 11px 16px; }
  .eyebrow { font-size: 11px; }
  header { padding: 0 17px; gap: 12px; }
  header>div { gap: 10px; font-size: 13px; }
  .currency { display: none; }
  main { padding: 26px 16px; }
  .stats { gap: 12px; }
  .stat { padding: 19px 15px; }
  .stat-top { font-size: 13px; gap: 6px; margin-bottom: 12px; }
  .stat>strong { font-size: 25px; letter-spacing: -.6px; }
  .stat>strong small { font-size: 12px; display: block; margin: 4px 0 0; }
  .stat>p { font-size: 12px; }
  .stat-top i { display: none; }
  .modules-grid { grid-template-columns: 1fr; }
  .module-card { padding: 25px; }
  .profile-catalog .module-card p { min-height: 0; }
  .included-tools { min-height: 0; }
  .section-header { padding: 21px 18px; align-items: flex-start; flex-wrap: wrap; }
  .section-header h2 { font-size: 18px; }
  .section-header p { font-size: 14px; }
  th, td { padding: 15px 17px; }
  .toolbar { padding: 17px; flex-wrap: wrap; }
  .toolbar input { font-size: 16px; max-width: none; }
  .toolbar select { width: 100%; }
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; gap: 10px; }
  .form-actions .primary, .form-actions .secondary { flex: 1; }
  .notice { font-size: 14px; padding: 17px; }
  dialog { width: calc(100vw - 18px); max-height: 93vh; border-radius: 12px; }
  .modal-header { padding: 21px 18px; }
  .modal-header h2 { font-size: 22px; }
  #modalBody { padding: 22px 17px; }
  .line-head { display: none; }
  .document-line { grid-template-columns: minmax(0,1fr) minmax(0,1fr) 30px; gap: 13px 9px; padding: 16px; border: 1px solid #d9e3f1; border-radius: 10px; background: #f8fbff; }
  .document-line>div:first-child { grid-column: 1/-1; }
  .line-input-label>span { display: block; color: #425f80; font-size: 14px; margin-bottom: 7px; }
  .document-line .icon { align-self: end; margin-bottom: 7px; }
  .document-line input, .document-line select, .document-line .description { font-size: 16px; padding: 9px 7px; }
  .document-line .icon { width: 28px; min-height: 38px; }
  .total { font-size: 15px; }
  .total strong { font-size: 26px; }
  .document-top { flex-wrap: wrap; }
  .document-top h2 { font-size: 24px; }
  .toast { font-size: 14px; max-width: calc(100vw - 26px); width: max-content; bottom: 16px; padding: 15px 18px; }
  .onboarding { margin: 27px auto 35px; padding: 0 16px; }
  .onboarding .card { padding: 27px 21px; }
  .onboarding h1 { font-size: 29px; }
  .onboarding p { font-size: 15px; }
  .profile-choices { grid-template-columns: 1fr; gap: 13px; }
  .profile-choice:last-child { grid-column: auto; }
  .profile-choice { padding: 19px 14px; }
  .profile-choice strong { font-size: 19px; }
  .profile-choice small { font-size: 14px; }
  .profile-choice em { font-size: 13px; }
  .profile-choice>input { width: 18px; height: 18px; }
  .profile-review ul { columns: 1; }
  .story { padding: 26px; }
  .story h1 { font-size: 34px; }
  .story .eyebrow { font-size: 10px; }
  .story p { font-size: 16px; }
  .auth-form { padding: 34px 25px 45px; }
  .auth-form h2 { font-size: 29px; }
  .auth-form p { font-size: 15px; }
  footer { font-size: 12px; padding: 20px 18px; }
  footer>span { display: none; }
  .dining-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
  .dining-table { padding: 17px 14px; }
  .dining-table>div { flex-wrap: wrap; gap: 10px; }
  .dining-table h3 { font-size: 19px; }
  .dining-table .pill { font-size: 12px; }
  .dining-table .fine { font-size: 13px; }
  .dining-table .row-button { font-size: 12px; }
  .sector-actions .secondary { font-size: 13px; padding: 11px 13px; }
  .sector-line-head { display: none; }
  .sector-line { grid-template-columns: minmax(0,1fr) 38px; gap: 12px; padding: 16px; background: #f8fbff; border: 1px solid #d9e3f1; border-radius: 10px; }
  .sector-line>select { grid-column: 1/-1; }
  .sector-line>.icon { align-self: end; margin-bottom: 6px; }
  .sector-line input, .sector-line select { font-size: 15px; padding: 10px 8px; }
  .pos-toolbar { align-items: stretch; gap: 12px; flex-direction: column; }
  .pos-tab { font-size: 14px; padding: 10px 12px; }
  .pos-payments { gap: 15px; padding: 19px; font-size: 13px; }
  .pos-payments strong { font-size: 14px; display: block; margin: 5px 0 0; }
  .pos-products { padding: 15px; gap: 11px; max-height: 450px; }
  .pos-product { padding: 16px 12px; }
  .pos-product strong { font-size: 15px; }
  .pos-product small { font-size: 12px; }
  .pos-product>b { font-size: 19px; }
  .product-glyph { margin-bottom: 15px; width: 36px; height: 36px; }
  .basket-line { padding: 21px 18px; }
  .basket-total { padding: 22px 19px; }
  .basket-line>b { font-size: 15px; }
  .basket-line strong { font-size: 15px; }
  .basket-line small { font-size: 13px; }
  .quantity-stepper .text { font-size: 13px; }
  .grand-total strong { font-size: 29px; }
  .return-line { grid-template-columns: 1fr 82px; gap: 15px; }
  .return-line>.checkbox-label { grid-column: 1/-1; }
  .receipt-amounts p { font-size: 14px; }
}
@media(prefers-reduced-motion:reduce) { *, *:before, *:after { transition: none!important; scroll-behavior: auto!important; } }
@media print {
  :root { background: #fff; color: #111; }
  header, aside, footer { display: none!important; }
  dialog[open] { position: absolute; border: 0; border-radius: 0; box-shadow: none; width: 100%; inset: 0; max-height: none; }
  #modalBody { padding: 10mm; }
  th { font-size: 11pt; background: #f3f5f8; }
  td, td strong { font-size: 11pt; white-space: normal; }
  td small, .fine, .document-top p, .document-client p, .document-notes { font-size: 10pt; color: #333; }
  .total strong { font-size: 22pt; color: #111; }
  .receipt-amounts p { font-size: 11pt; }
  .pill { font-size: 10pt; }
}
