:root {
  --chocolate: #3d2522;
  --chocolate-light: #5c3830;
  --cocoa: #7a4b3d;
  --rose: #dcbab0;
  --ink: #2c1d1b;
  --muted: #806e68;
  --line: #eadbd4;
  --surface: #fffdfb;
  --background: #f7eee9;
  --shadow: 0 8px 28px rgba(77, 43, 34, .08);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-family: "Segoe UI", Inter, Arial, sans-serif; background: var(--background); color: var(--ink); font-size: 14px; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b7836b; outline-offset: 2px; }
.app-shell { display: grid; grid-template-columns: 258px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: linear-gradient(170deg, var(--chocolate) 0%, var(--chocolate-light) 100%); color: #f6e9e0; padding: 28px 18px 20px; display: flex; flex-direction: column; box-shadow: 8px 0 30px rgba(77, 43, 34, .1); }
.brand { display: flex; align-items: center; gap: 11px; padding: 5px 12px; color: white; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); gap: 2px; flex: none; width: 38px; height: 38px; padding: 5px; border-radius: 9px; background: #9d6b55; box-shadow: inset 0 -4px 0 rgba(51, 25, 20, .24), 0 6px 18px rgba(61, 31, 27, .2); transform: rotate(-7deg); }
.brand-mark i { display: block; border-radius: 2px; background: linear-gradient(145deg, #b8876f, #714436); border: 1px solid rgba(48, 23, 18, .22); box-shadow: inset 1px 1px 0 rgba(255, 236, 216, .22); }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: -.5px; }
.brand-name small { display: block; font-size: 9px; font-weight: 600; letter-spacing: 1.15px; color: #d2b7a9; margin-top: 4px; }
.sidebar-section-label { color: #bb9688; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; margin: 35px 13px 12px; }
.nav-list { display: grid; gap: 4px; }
.nav-link { min-height: 43px; display: flex; align-items: center; gap: 12px; color: #ecdbd0; border-radius: 10px; padding: 0 14px; font-size: 13px; font-weight: 600; position: relative; transition: background .15s, color .15s; }
.nav-link:hover { background: rgba(255,255,255,.085); color: white; }
.nav-link.active { background: linear-gradient(90deg, rgba(220,186,176,.25), rgba(220,186,176,.09)); color: white; }
.nav-link.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; background: var(--rose); border-radius: 4px; }
.ui-icon { width: 19px; height: 19px; flex: none; color: #d5afa0; }
.nav-link.active .ui-icon { color: #fff1e6; }
.sidebar-bottom { margin-top: auto; padding: 22px 10px 0; border-top: 1px solid rgba(255,238,222,.18); }
.user-line { display: flex; gap: 10px; align-items: center; }
.avatar { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; color: #fff3ea; background: #7a4b3d; font-weight: 800; }
.user-line strong, .user-line small { display: block; }
.user-line strong { font-size: 12px; color: white; overflow-wrap: anywhere; }
.user-line small { font-size: 11px; margin-top: 3px; color: #d1b6a8; }
.user-line .account-email { max-width: 160px; overflow-wrap: anywhere; }
.alias-link { display: inline-block; margin: 14px 0 0 46px; color: #e7cab9; font-size: 11px; font-weight: 600; }
.alias-link:hover { color: white; }
.logout { color: #e7cab9; background: transparent; border: 0; font-size: 12px; font-weight: 600; margin: 9px 0 0 46px; padding: 0; }
.logout:hover { color: white; }
.workspace { min-width: 0; }
.topbar { height: 45px; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 0 38px; background: var(--surface); border-bottom: 1px solid var(--line); }
.breadcrumb { color: #9e8277; font-size: 12px; font-weight: 600; }
.breadcrumb span { padding: 0 9px; color: #c6aaa0; }
.topbar-right { display: flex; align-items: center; gap: 9px; color: #765e56; font-size: 12px; font-weight: 600; }
.status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #51745e; box-shadow: 0 0 0 4px rgba(81,116,94,.12); }
.topbar-separator { height: 17px; border-left: 1px solid var(--line); margin: 0 8px; }
.main { max-width: 1500px; padding: 18px 38px 56px; margin: 0 auto; }
.page-heading { display: flex; justify-content: space-between; align-items: end; gap: 22px; padding: 14px 38px 19px; border-bottom: 1px solid var(--line); }
.page-heading h1 { font-size: clamp(25px, 2.1vw, 31px); line-height: 1.18; letter-spacing: -.9px; margin: 5px 0 4px; font-weight: 800; }
.page-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.eyebrow { color: var(--cocoa); font-size: 10px; font-weight: 800; letter-spacing: 1.65px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 15px; min-height: 40px; padding: 10px 17px; border-radius: 9px; border: 1px solid transparent; font-size: 12px; font-weight: 700; white-space: nowrap; transition: transform .15s, box-shadow .15s, background .15s; }
.button:hover { transform: translateY(-1px); }
.button-primary, .button-dark { background: linear-gradient(115deg, var(--cocoa), var(--chocolate-light)); color: white; box-shadow: 0 5px 13px rgba(92,56,48,.16); }
.button-primary:hover, .button-dark:hover { background: #4a2d28; box-shadow: 0 7px 17px rgba(92,56,48,.24); }
.button-outline { background: white; border-color: #d9c2b8; color: #5c3830; }
.button-outline:hover { background: #f5e9e3; }
.heading-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin: 26px 0 12px; }
.section-heading.first-section { margin-top: 0; }
.section-heading h2 { margin: 4px 0 0; font-size: 18px; letter-spacing: -.35px; }
.heading-note { color: var(--muted); font-size: 11px; font-weight: 600; margin-left: 7px; }
.text-link { color: var(--cocoa); font-size: 12px; font-weight: 700; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.stat, .panel { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; box-shadow: var(--shadow); }
.stat { padding: 13px 16px; min-height: 104px; display: grid; grid-template-columns: 30px 1fr; column-gap: 10px; align-content: center; }
.stat-icon { width: 30px; height: 30px; display: grid; place-items: center; grid-row: span 3; background: #f0dfd8; border-radius: 7px; color: var(--cocoa); }
.stat-icon .ui-icon { width: 17px; height: 17px; color: var(--cocoa); }
.stat > span, .stat small { display: block; color: var(--muted); font-size: 12px; }
.stat strong { display: block; color: var(--ink); font-size: 24px; letter-spacing: -.7px; margin: 1px 0; }
.stat small { color: #a99389; font-size: 10px; }
.table-panel { overflow-x: auto; }
.table-panel th { position: sticky; top: 0; z-index: 1; }
table { border-collapse: collapse; width: 100%; min-width: 650px; }
th { text-align: left; color: #937d72; font-size: 10px; text-transform: uppercase; letter-spacing: .9px; font-weight: 800; background: #fbf5f1; padding: 16px 20px; white-space: nowrap; }
td { border-top: 1px solid #f0e5df; padding: 17px 20px; color: #624d45; font-size: 12px; line-height: 1.5; vertical-align: top; }
tr:hover td { background: #fffaf7; }
td strong { display: block; color: var(--ink); font-size: 12px; }
td small { display: block; color: #9e887f; margin-top: 3px; }
.numeric { text-align: right; }
.quantity { display: inline-block; color: #5c3830; background: #f2e4dd; border-radius: 7px; padding: 4px 11px; font-size: 16px; font-weight: 800; }
.empty { padding: 35px; color: var(--muted); text-align: center; }
.tag { display: inline-block; border-radius: 20px; padding: 5px 9px; color: #765246; background: #f3e5dd; font-size: 10px; font-weight: 800; white-space: nowrap; }
.tag-compra, .tag-inicial { background: #e7f7f0; color: #197451; }
.tag-venta, .tag-merma { background: #fff1e9; color: #a3572c; }
.tag-traslado { background: #eee9f2; color: #756481; }
.searchbar { display: flex; max-width: 510px; min-height: 43px; background: white; border: 1px solid #e2cec3; border-radius: 9px; overflow: hidden; margin-bottom: 17px; }
.searchbar:focus-within { border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(122,75,61,.12); }
.searchbar input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 11px 14px; font-size: 12px; }
.searchbar button { border: 0; background: var(--cocoa); color: white; padding: 0 18px; font-size: 12px; font-weight: 700; }
.help-note { color: #806e68; font-size: 11px; margin: 14px 0 0; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 40px; margin-top: 12px; }
.sensor-card { width: min(330px, 100%); min-height: 310px; flex: none; margin-top: 22px; padding: 22px; display: flex; flex-direction: column; background: linear-gradient(155deg, #fffdfb, #f9eee8); }
.sensor-card-heading { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sensor-card h2 { margin: 13px 0 8px; color: var(--chocolate); font-size: 17px; }
.sensor-badge { border-radius: 99px; padding: 6px 9px; background: #f0e1d8; color: var(--cocoa); font-size: 10px; font-weight: 800; text-align: center; }
.sensor-card[data-state="online"] .sensor-badge { background: #e7f7f0; color: #197451; }
.sensor-card[data-state="stale"] .sensor-badge, .sensor-card[data-state="error"] .sensor-badge { background: #fff0e3; color: #9c522d; }
.sensor-temperature { display: flex; align-items: baseline; gap: 5px; color: var(--chocolate); }
.sensor-temperature strong { font-size: clamp(56px, 8vw, 76px); line-height: 1.15; letter-spacing: -3px; }
.sensor-temperature span { font-size: 24px; font-weight: 700; }
.sensor-humidity { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; font-size: 12px; color: var(--muted); }
.sensor-humidity strong { color: var(--chocolate); font-size: 18px; white-space: nowrap; }
.sensor-updated { margin: auto 0 0; padding-top: 18px; color: var(--muted); font-size: 11px; }
.sensor-communication { margin: 8px 0 0; color: var(--cocoa); font-size: 11px; font-weight: 700; }
.page-summary { color: var(--muted); font-size: 11px; }
.page-buttons { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.page-buttons a, .page-buttons span { min-width: 31px; height: 31px; display: inline-grid; place-items: center; padding: 0 6px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--cocoa); font-size: 12px; font-weight: 700; }
.page-buttons a:hover { background: #f3e4dd; }
.page-buttons .current { color: white; background: var(--cocoa); border-color: var(--cocoa); }
.page-buttons .disabled, .page-buttons .ellipsis { color: #bba89e; background: transparent; }
.form-panel { padding: 29px; }
.form-panel.narrow { max-width: 650px; }
.form-stack { display: grid; gap: 18px; }
.field label { display: block; color: #63483d; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.field input, .field select, .field textarea { width: 100%; min-height: 43px; border: 1px solid #dbc9c0; border-radius: 8px; color: var(--ink); background: white; padding: 10px 12px; outline: 0; font-size: 13px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--cocoa); box-shadow: 0 0 0 3px rgba(122,75,61,.12); }
.field-error { display: block; color: #b23f3a; font-size: 11px; margin-top: 5px; }
.form-error, .message.error { background: #fff0ed; border: 1px solid #f6d8d1; color: #9a3832; padding: 12px 15px; border-radius: 9px; font-size: 12px; }
.message.success { background: #e7f7f0; border: 1px solid #cdebdc; color: #207452; padding: 12px 15px; border-radius: 9px; font-size: 12px; }
.messages { margin-bottom: 20px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: 36px; }
.modal-shade { position: absolute; inset: 0; background: rgba(39, 22, 19, .62); }
.modal-card { position: relative; z-index: 1; width: min(640px, 100%); max-height: calc(100dvh - 36px); overflow-y: auto; scrollbar-width: none; background: var(--surface); border: 1px solid #eadbd4; border-radius: 18px; padding: 26px 30px 30px; box-shadow: 0 28px 70px rgba(31, 15, 12, .3); }
.modal-card::-webkit-scrollbar { display: none; }
.product-modal { width: min(710px, 100%); }
.movement-modal { width: min(680px, 100%); }
.location-modal { width: min(490px, 100%); }
.alias-modal { width: min(470px, 100%); }
.product-modal, .movement-modal { padding: 19px 24px 21px; }
.product-modal .modal-header, .movement-modal .modal-header { margin-bottom: 14px; }
.product-modal .modal-header h2, .movement-modal .modal-header h2 { font-size: 23px; }
.compact-form { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.compact-form .form-error, .compact-form .modal-help, .compact-form .modal-actions { grid-column: 1 / -1; }
.compact-form .field label { margin-bottom: 4px; }
.compact-form .field input, .compact-form .field select { min-height: 36px; padding: 7px 10px; }
.compact-form .field textarea { min-height: 42px; height: 42px; padding: 7px 10px; resize: vertical; }
.compact-form .modal-actions { padding-top: 10px; }
.modal-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.modal-header h2 { margin: 5px 0 4px; font-size: 26px; letter-spacing: -.5px; }
.modal-header p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.modal-close { display: grid; place-items: center; flex: none; width: 31px; height: 31px; border-radius: 8px; background: #f3e6df; color: var(--chocolate); font-size: 22px; line-height: 1; }
.modal-close:hover { background: #ead6cb; }
.modal-help { padding: 11px 13px; border-radius: 8px; background: #f7eee9; color: #72584e; font-size: 11px; line-height: 1.5; }
.modal-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 15px; border-top: 1px solid var(--line); }
.confirm-modal { width: min(620px, 100%); }
.confirm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 32px; }
.confirm-grid > div { border-bottom: 1px solid var(--line); padding-bottom: 15px; }
.confirm-grid span { display: block; color: #9c8277; font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 7px; }
.confirm-grid strong { font-size: 15px; }
.history-line { margin-bottom: 8px; }
.history-line strong { display: inline; color: #7a4b3d; }
.login-body { background: #f3e4dd; }
.login-shell { display: grid; grid-template-columns: minmax(440px, 1.04fr) minmax(430px, .96fr); min-height: 100vh; }
.login-intro { display: flex; flex-direction: column; position: relative; overflow: hidden; color: white; background: radial-gradient(circle at 90% 12%, #946656 0%, transparent 37%), linear-gradient(150deg, var(--chocolate), var(--chocolate-light)); padding: 43px clamp(35px, 5vw, 90px); }
.login-brand { z-index: 1; padding: 0; }
.login-intro-content { position: relative; z-index: 1; margin: auto 0; max-width: 550px; padding: 65px 0; }
.intro-kicker { display: inline-flex; align-items: center; gap: 11px; color: #f3d1bb; font-size: 10px; font-weight: 800; letter-spacing: 1.6px; }
.login-intro h1 { font-size: clamp(43px, 5vw, 66px); line-height: 1.07; margin: 20px 0; letter-spacing: -2.4px; }
.login-intro h1 span { color: #e6bfa9; }
.login-intro p { max-width: 480px; color: #eeddd2; line-height: 1.7; font-size: 15px; }
.intro-features { display: grid; gap: 21px; margin-top: 42px; }
.intro-features > div { display: grid; grid-template-columns: 38px 1fr; column-gap: 12px; align-items: start; }
.intro-features > div > span { grid-row: span 2; display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(242,204,181,.45); border-radius: 9px; color: #f4d1b8; font-size: 11px; font-weight: 800; }
.intro-features strong { color: #fff7f0; font-size: 13px; }
.intro-features small { color: #dbc1b2; font-size: 12px; margin-top: 4px; }
.login-intro-footer { z-index: 1; color: #cba99a; font-size: 10px; letter-spacing: 1.3px; font-weight: 700; }
.chocolate-art { position: absolute; right: -45px; bottom: 80px; width: 235px; height: 185px; display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); gap: 8px; padding: 12px; background: #6f4438; border: 10px solid #8e5d4a; border-radius: 12px; box-shadow: 14px 24px 34px rgba(30, 12, 10, .28); transform: rotate(-18deg); opacity: .43; pointer-events: none; }
.chocolate-art i { background: linear-gradient(145deg, #ae765c, #5e342c); border: 2px solid #4f2b25; border-radius: 7px; box-shadow: inset 3px 3px 0 rgba(245, 208, 181, .14); }
.login-form-side { display: grid; place-items: center; padding: 36px; background: #fffdfa; }
.login-card { width: min(420px, 100%); padding: 10px 0; }
.login-overline { color: var(--cocoa); font-size: 10px; letter-spacing: 1.8px; font-weight: 800; }
.login-card h2 { font-size: 34px; letter-spacing: -1px; margin: 10px 0; }
.login-card p { color: var(--muted); line-height: 1.6; margin: 0 0 30px; }
.login-card .full { width: 100%; margin-top: 5px; min-height: 46px; }
.login-footer { color: #a38b80; font-size: 11px; border-top: 1px solid var(--line); margin-top: 31px; padding-top: 22px; text-align: center; }
@media (max-width: 1100px) { .app-shell { grid-template-columns: 220px minmax(0,1fr); } .main { padding: 18px 25px 45px; } .topbar { padding: 0 25px; } .page-heading { padding-left: 25px; padding-right: 25px; } }
@media (max-width: 800px) { .login-shell { grid-template-columns: 1fr; } .login-intro { min-height: 340px; padding: 28px; } .login-intro-content { padding: 50px 0 20px; } .intro-features, .login-intro-footer { display: none; } .chocolate-art { width: 155px; height: 125px; right: -30px; bottom: 18px; } .login-form-side { min-height: 400px; } .app-shell { grid-template-columns: 1fr; } .sidebar { gap: 0; padding-bottom: 20px; } .sidebar .nav-list { display: flex; flex-wrap: wrap; } .sidebar-section-label { margin-top: 18px; } .sidebar-bottom { display: none; } }
@media (max-width: 620px) { .main { padding: 18px 16px 35px; } .topbar { padding: 0 16px; } .topbar-right { display: none; } .page-heading { padding: 14px 16px 18px; align-items: start; flex-direction: column; } .stats { grid-template-columns: 1fr; } .section-heading { align-items: start; flex-direction: column; } .confirm-grid { grid-template-columns: 1fr; } .modal-backdrop { padding: 22px; } .modal-card { max-height: calc(100dvh - 44px); padding: 20px; } .product-modal, .movement-modal { padding: 16px 18px; } }
@media (max-width: 420px) { .compact-form { grid-template-columns: 1fr; } }
@media (min-width: 801px) {
  html, body { height: 100%; overflow: hidden; }
  .app-shell { height: 100vh; min-height: 0; }
  .sidebar { height: 100vh; min-height: 0; overflow-y: auto; }
  .sidebar-section-label { margin-top: 23px; }
  .nav-link { min-height: 39px; }
  .workspace { display: flex; flex-direction: column; height: 100vh; min-height: 0; overflow: hidden; }
  .topbar, .page-heading { flex: none; }
  .main { display: flex; flex-direction: column; flex: 1; width: 100%; min-height: 0; overflow-y: auto; padding: 15px 38px 18px; }
  .page-dashboard, .page-movement_history { overflow: hidden; }
  .page-dashboard .section-heading, .page-dashboard .stats, .page-inventory .searchbar { flex: none; }
  .page-dashboard .recent-table { flex: 1; min-height: 0; overflow: auto; }
  .page-inventory .data-table { flex: none; overflow-x: auto; }
  .page-movement_history .data-table { flex: 0 1 auto; min-height: 0; overflow: auto; }
  .page-inventory .pagination, .page-movement_history .pagination { flex: none; }
}
@media (min-width: 801px) and (max-width: 1100px) { .main { padding-left: 25px; padding-right: 25px; } }
@media (min-width: 801px) and (max-height: 680px) {
  .sidebar { padding-top: 16px; padding-bottom: 10px; }
  .sidebar-section-label { margin-top: 12px; margin-bottom: 6px; }
  .nav-link { min-height: 32px; }
  .sidebar-bottom { padding-top: 10px; }
  .alias-link { margin-top: 8px; }
  .logout { margin-top: 6px; }
}

/* Impeccable desktop refinement: a quieter cocoa workspace with clearer reading order. */
:root {
  --background: #faf6f2;
  --surface: #fffdfa;
  --line: #e9ddd5;
  --muted: #725d54;
  --shadow: 0 8px 24px rgba(63, 35, 27, .055);
}
body { font-size: 15px; }
::selection { background: #e6c9ba; color: #2c1d1b; }
* { scrollbar-color: #c8a99a transparent; scrollbar-width: thin; }
.sidebar { background: #3f2b27; box-shadow: none; }
.brand { padding: 4px 12px 17px; border-bottom: 1px solid rgba(255, 238, 222, .13); }
.brand-name { font-size: 18px; }
.brand-name small { color: #e6c7b7; }
.sidebar-section-label { color: #d1ac9b; font-size: 10px; margin-bottom: 9px; }
.nav-link { color: #f0ddd2; font-size: 13px; }
.nav-link .ui-icon { color: #d7ae9d; }
.nav-link:hover { background: rgba(255,255,255,.1); }
.nav-link.active { background: #684a40; }
.nav-link.active::before { display: none; }
.sidebar-admin { margin-top: 19px; border-top: 1px solid rgba(255,238,222,.13); padding-top: 14px; }
.sidebar-admin summary { display: flex; align-items: center; justify-content: space-between; min-height: 38px; padding: 0 13px; color: #f1ded3; font-size: 12px; font-weight: 700; border-radius: 9px; cursor: pointer; list-style: none; }
.sidebar-admin summary::-webkit-details-marker { display: none; }
.sidebar-admin summary:hover, .sidebar-admin[open] summary { background: rgba(255,255,255,.08); }
.sidebar-admin summary span { font-size: 20px; font-weight: 400; line-height: 1; transition: transform .15s ease-out; }
.sidebar-admin[open] summary span { transform: rotate(180deg); }
.sidebar-admin .nav-list { margin-top: 6px; }
.sidebar-admin .nav-link { min-height: 35px; font-size: 12px; }
.sidebar-bottom { margin-top: auto; }
.topbar { height: 52px; background: #fffdfa; }
.breadcrumb { color: #765e55; font-size: 12px; }
.topbar-right { color: #5e4b43; }
.page-heading { padding-top: 24px; padding-bottom: 23px; background: #fffdfa; align-items: center; }
.page-heading h1 { font-size: clamp(27px, 2.3vw, 34px); letter-spacing: -.025em; margin: 0 0 6px; }
.page-heading p { max-width: 70ch; color: #725d54; font-size: 14px; line-height: 1.5; }
.button { min-height: 44px; font-size: 13px; border-radius: 10px; }
.button-primary, .button-dark { background: #714638; box-shadow: 0 5px 12px rgba(92,56,48,.16); }
.button-primary:hover, .button-dark:hover { background: #57362e; }
.button:disabled { cursor: not-allowed; opacity: .52; transform: none; box-shadow: none; }
.section-heading { margin-top: 29px; margin-bottom: 14px; }
.section-heading h2 { font-size: 20px; letter-spacing: -.02em; }
.text-link { font-size: 13px; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; }
.text-link:hover { text-decoration-color: currentColor; }
.stats { gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.stat { min-height: 130px; border: 0; border-right: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 23px 25px; grid-template-columns: 38px 1fr; column-gap: 14px; }
.stat:last-child { border-right: 0; }
.stat-icon { width: 38px; height: 38px; border-radius: 10px; background: #f4e8e1; }
.stat-icon .ui-icon { width: 20px; height: 20px; }
.stat > span { color: #604c44; font-size: 13px; font-weight: 600; }
.stat strong { font-size: 30px; font-variant-numeric: tabular-nums; line-height: 1.16; margin: 4px 0 3px; }
.stat small { color: #79645b; font-size: 11px; }
.alert-overview { display: flex; align-items: center; gap: 15px; margin-top: 16px; padding: 15px 19px; background: #edf5ee; border: 1px solid #d8e8da; border-radius: 12px; color: #24503a; }
.alert-overview.has-alerts { background: #fff3e8; border-color: #efd7bf; color: #794224; }
.alert-overview-mark { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 50%; background: #d5e9d9; font-weight: 800; font-size: 19px; }
.has-alerts .alert-overview-mark { background: #f5ddc6; }
.alert-overview strong { font-size: 14px; }
.alert-overview p { margin: 3px 0 0; font-size: 12px; }
.alert-overview a { margin-left: auto; font-size: 12px; font-weight: 800; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
th { color: #70594f; font-size: 11px; background: #f7f0eb; padding: 15px 19px; }
td { color: #514039; font-size: 13px; padding: 17px 19px; }
td strong { font-size: 13px; }
td small { color: #725d54; font-size: 12px; }
.tag { font-size: 11px; }
.quantity { font-variant-numeric: tabular-nums; }
.empty a { color: var(--cocoa); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.searchbar { max-width: 610px; min-height: 46px; }
.searchbar input, .searchbar button { font-size: 13px; }
.field label { font-size: 13px; }
.field input, .field select, .field textarea { font-size: 14px; }
@media (min-width: 801px) {
  .app-shell { grid-template-columns: 264px minmax(0, 1fr); }
  .main { padding-top: 24px; padding-bottom: 28px; }
  .page-dashboard { overflow-y: auto; }
}
@media (min-width: 801px) and (max-width: 1100px) {
  .app-shell { grid-template-columns: 228px minmax(0, 1fr); }
  .stat { padding: 18px 16px; }
  .main { padding-left: 25px; padding-right: 25px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 14px; }
}
@media (max-width: 800px) {
  .sidebar-admin { margin-top: 16px; }
  .sidebar-admin .nav-list { display: flex; flex-wrap: wrap; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
  .alert-overview { flex-wrap: wrap; }
  .alert-overview a { margin-left: 49px; }
}
