/* SERVI COLOR .15 — espacio de trabajo. Cambios de pantalla, sin alterar impresión. */
@media screen {
  :root {
    --ink: #202e43;
    --muted: #647187;
    --line: #e2e7ef;
    --blue: #176b91;
    --accent: #087d80;
    --sc-bg: #f5f6f9;
    --sc-focus: #176b91;
    --workspace-radius: 12px;
  }
  body { background: var(--sc-bg); color: var(--ink); font-size: 14px; }
  h1,h2,h3 { color: #202e43; letter-spacing: -.025em; }
  .layout { grid-template-columns: 238px minmax(0,1fr); }
  .side {
    background: #142538;
    background-image: linear-gradient(165deg,#1c354a 0,transparent 46%);
    border-right: 1px solid #22384b;
    padding: 23px 13px 16px;
    gap: 10px;
    box-shadow: none;
  }
  .brand { padding: 0 9px 20px; gap: 11px; border-color: #ffffff14; }
  .brand img { width: 48px; height: 48px; border-radius: 11px; box-shadow: none; }
  .brand strong { font-size: 15px; letter-spacing: .025em; }
  .brand small { font-size: 10.5px; color: #adc1d0; }
  .side .nav { gap: 3px; padding: 0 3px 12px; }
  .nav-group-label {
    color: #a2b5c6;
    text-transform: uppercase;
    font-weight: 600;
    font-size: 9px;
    letter-spacing: .14em;
    margin: 19px 11px 7px;
  }
  .nav-group-label:first-child { margin-top: 9px; }
  .side .nav button { min-height: 39px; padding: 9px 10px; font-size: 13px; gap: 10px; border-radius: 8px; color: #c2d0de; }
  .side .nav button:hover { background: #ffffff09; color: #fff; }
  .side .nav button.active { background: #234c61; border-color: #5ea5ad24; box-shadow: none; color: #fff; }
  .side .nav button.active::before { display: none; }
  .navicon { width: 19px; opacity: .9; }
  .navicon .ui-icon { width: 18px; height: 18px; }
  .nav-label { min-width: 0; }
  .nav-active-dot { margin-left: auto; width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0; background: #85d8cd; }
  .side-foot { display: grid; grid-template-columns: 34px minmax(0,1fr); column-gap: 10px; row-gap: 2px; padding: 16px 9px 0; border-color: #ffffff14; }
  .profile-avatar { grid-row: span 2; display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #647e8f55; background: #294457; border-radius: 10px; color: #e1f2f3; font-size: 11px; font-weight: 650; }
  .side-foot strong { font-size: 11px; line-height: 1.5; align-self: end; }
  .side-foot small { font-size: 8px; color: #a4b9ca; letter-spacing: .06em; }
  .side-foot button { grid-column: 1/-1; margin-top: 12px; min-height: 33px; font-size: 11px; border-color: #ffffff1a; border-radius: 7px; }
  .main { max-width: 1720px; padding: 23px 32px 40px; }
  .workspace-breadcrumb { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: #748096; font-size: 11px; }
  .workspace-breadcrumb>span:first-child { color: #31465b; font-size: 10px; font-weight: 700; letter-spacing: .07em; }
  .workspace-breadcrumb time { margin-left: auto; color: #66768a; }
  .topline { background: transparent; box-shadow: none; border: 0; border-radius: 0; padding: 0 0 23px; margin-bottom: 22px; border-bottom: 1px solid #e0e5ed; align-items: center; gap: 20px; }
  .page-heading { min-width: 0; }
  .welcome-greeting { font-size: 12px; color: #60738a; font-weight: 500; margin: 0 0 5px; }
  .welcome-username { font-size: 10px; color: #748096; margin: -2px 0 8px; }
  .topline h1 { font-size: 31px; line-height: 1.18; margin: 0 0 7px; font-weight: 700; letter-spacing: -.045em; }
  .subtitle { font-size: 12px; color: #66768a; line-height: 1.5; }
  .top-actions { max-width: 480px; justify-content: flex-end; gap: 8px; }
  .top-actions .btn { font-size: 11px; min-height: 36px; padding: 9px 12px; }
  .top-actions .workspace-sale { font-size: 12px; min-height: 39px; order: 2; }
  .top-actions .role-badge { margin: 0; font-size: 9px; letter-spacing: .025em; padding: 5px 8px; border: 1px solid #dce9e7; background: #eaf3f0; color: #2c6e64; }
  .top-actions [data-action=logout] { background: transparent; border-color: transparent; color: #63738a; }
  .btn { border-radius: 8px; box-shadow: none; font-size: 12px; font-weight: 600; min-height: 40px; background: #f1f5f9; color: #385168; border-color: #d9e2eb; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
  .btn .ui-icon { width: 16px; height: 16px; }
  .btn.primary { background: #176b91; border-color: #176b91; color: #fff; box-shadow: 0 2px 4px #17485d0a; }
  .btn:hover { filter: none; background: #e9eff5; border-color: #bdccda; }
  .btn.primary:hover { background: #125a7d; border-color: #125a7d; }
  .btn.danger { color: #a5454e; background: #fff9f9; border-color: #e7cdd0; }
  .btn.danger:hover { background: #fff0f1; }
  .btn.ghost { background: #fff; }
  .btn:disabled { opacity: .55; cursor: not-allowed; }
  .card { border-radius: var(--workspace-radius); border-color: #e1e6ee; box-shadow: 0 2px 5px #1c324004; padding: 22px; margin-bottom: 18px; }
  .grid { gap: 16px; }
  .grid.cols4 { margin-bottom: 0; }
  .grid.cols4>.metric-card { border-top: 1px solid #e1e6ee; }
  .metric-card { position: relative; min-height: 142px; padding: 18px 20px!important; overflow: hidden; }
  .metric-card::before { display: none!important; }
  .metric-heading { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; min-height: 36px; }
  .metric-card .stat-label { font-size: 12px; font-weight: 550; color: #5f7086; line-height: 1.5; margin: 0; padding-top: 3px; }
  .metric-icon { width: 29px; height: 29px; flex-shrink: 0; display: grid; place-items: center; border-radius: 8px; background: #eff4f8; color: #55748b; }
  .metric-icon .ui-icon { width: 15px; height: 15px; }
  .metric-card .stat { font-size: clamp(23px,2.05vw,34px); font-weight: 650; letter-spacing: -.045em; line-height: 1.25; color: #243b51; margin-top: 7px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
  .metric-card small { display: block; color: #64768b; font-size: 11px; line-height: 1.6; margin-top: 10px; }
  .main[data-page=dashboard] #content>.grid.cols4:first-of-type>.metric-card:first-child { background: #1c3b51; border-color: #1c3b51; box-shadow: 0 5px 14px #1235460b; }
  .main[data-page=dashboard] #content>.grid.cols4:first-of-type>.metric-card:first-child .stat { color: #fff; }
  .main[data-page=dashboard] #content>.grid.cols4:first-of-type>.metric-card:first-child .stat-label,
  .main[data-page=dashboard] #content>.grid.cols4:first-of-type>.metric-card:first-child small { color: #b8d0dd; }
  .main[data-page=dashboard] #content>.grid.cols4:first-of-type>.metric-card:first-child .metric-icon { color: #a5e3d8; background: #ffffff13; }
  .main[data-page=dashboard] #content>.grid.cols4:nth-of-type(2) .metric-card { min-height: 132px; }
  .period-form { padding: 0 0 20px; gap: 9px; }
  .period-form .field { max-width: 180px; }
  .period-form .field label { font-size: 10px; letter-spacing: .03em; }
  .period-form input { min-height: 38px; padding: 8px 10px; font-size: 12px; }
  .period-form .btn { min-height: 38px; padding: 8px 16px; }
  .alerts-panel { background: #fffdf8; border-color: #ece5d5; border-radius: 10px; padding: 12px 16px; margin-bottom: 20px; }
  .alerts-panel .section-head { margin: 0; }
  .alerts-panel summary { font-size: 11px; color: #746344; gap: 9px; }
  .alerts-panel summary::before { width: 23px; height: 23px; font-size: 11px; background: #fbefd4; border-color: #f0dfb8; color: #8d6b24; }
  .alerts-panel summary::after { font-size: 10px; }
  .alerts-panel .btn { font-size: 10px; min-height: 32px; padding: 6px 10px; background: #fffefa; border-color: #e4dccb; }
  .alerts-panel details[open] { width: 100%; }
  .alerts-panel details[open] p { font-size: 12px; }
  .executive-banner { padding: 18px 22px; margin: 2px 0 22px; color: #233e54; background: #edf3f6; border: 1px solid #dce7ec; border-radius: 11px; box-shadow: none; gap: 20px; }
  .executive-banner .eyebrow { color: #607f92; font-size: 9px; font-weight: 650; letter-spacing: .12em; }
  .executive-banner h2 { color: #233e54; font-size: 19px; margin: 5px 0 3px; letter-spacing: -.025em; }
  .executive-banner p { color: #637b8d; font-size: 11px; }
  .executive-links { display: flex; gap: 8px; flex-shrink: 0; }
  .executive-links .btn { background: #ffffffb0; border-color: #d2dfe7; color: #315c72; font-size: 11px; min-height: 36px; padding: 8px 12px; }
  .chart-card { padding: 24px; }
  .chart-card h3 { font-size: 14px; color: #354c62; font-weight: 600; }
  .chart-bars { gap: 18px; }
  .chart-row { font-size: 12px; }
  .chart-row strong { font-weight: 600; font-size: 12px; color: #38536b; }
  .bar-track { background: #edf2f6; height: 8px; border-radius: 4px; }
  .bar-track i { background: #468eaa; border-radius: 4px; }
  .sales-chart { min-height: 150px; max-height: 270px; }
  .chart-card details { border-top: 1px solid #edf0f5; padding-top: 12px; color: #667d91; font-size: 11px; }
  .toolbar { gap: 8px; margin: 16px 0 20px; }
  .toolbar .btn { min-height: 38px; font-size: 11px; padding: 9px 13px; }
  .table-search { border-radius: 8px; min-height: 41px; font-size: 12px; padding: 10px 13px; background: #fff; border-color: #dce4ed; }
  .table-wrap { padding: 0; border-radius: 11px; overflow: auto; }
  .table-wrap th { background: #f8f9fc; color: #61748a; padding: 14px 17px; font-size: 10px; text-transform: uppercase; letter-spacing: .055em; font-weight: 650; border-bottom: 1px solid #e6ebf1; }
  .table-wrap td { padding: 15px 17px; color: #41566c; font-size: 13px; border-bottom-color: #edf0f5; }
  .table-wrap tbody tr:nth-child(even) td { background: #fff; }
  .table-wrap tbody tr:hover td { background: #f7fafc; }
  .table-wrap td b,.table-wrap td strong { color: #2b435a; font-weight: 600; }
  .table-wrap td small { color: #7b8b9e; font-size: 10px; margin-top: 3px; }
  .table-wrap .btn { min-height: 32px; font-size: 10px; padding: 7px 9px; }
  .badge { background: #edf3f5; color: #496c7c; font-size: 10px; padding: 5px 9px; border-radius: 6px; font-weight: 600; }
  .badge.warn { color: #8a652b; background: #fbf1df; }
  .badge.bad { color: #a04e59; background: #fbeef0; }
  .field label { color: #4b6077; font-size: 11px; font-weight: 600; }
  .field input,.field select,.field textarea { font-size: 13px; padding: 10px 12px; border-color: #d6e0e9; border-radius: 8px; min-height: 42px; }
  .field input:focus,.field select:focus,.field textarea:focus { border-color: #3e92ad; box-shadow: 0 0 0 3px #318aa013; }
  .field input::placeholder,.field textarea::placeholder { color: #91a0b1; }
  .modal-shade { background: #12263880; backdrop-filter: blur(4px); }
  .modal { border-radius: 15px; border-color: #e0e7ef; box-shadow: 0 28px 90px #0b243a35; padding: 26px; }
  .modal>.section-head { border-color: #e9edf3; }
  .modal>.section-head h2 { font-size: 20px; }
  .modal>.section-head>.btn { min-height: 32px; font-size: 10px; background: #f8fafc; }
  .empty { display: grid; justify-items: center; gap: 9px; padding: 38px 22px!important; color: #7b8a9b; font-size: 11px; }
  .empty strong { color: #536b80; font-size: 13px; font-weight: 600; }
  .empty-icon { display: grid; place-items: center; width: 43px; height: 43px; background: #f0f5f8; color: #7c9aaf; border: 1px solid #e7eef4; border-radius: 12px; margin-bottom: 3px; }
  .empty-icon .ui-icon { width: 22px; height: 22px; }
  .section-eyebrow { display: block; color: #7c8ca0; font-size: 9px; font-weight: 650; letter-spacing: .12em; margin-bottom: 5px; }
  .sale-grid { grid-template-columns: minmax(0,1.2fr) minmax(340px,.85fr); gap: 20px; align-items: start; }
  .sale-grid>.card { padding: 22px; }
  .pos-catalog-heading { align-items: center; padding-bottom: 17px; margin-bottom: 0; border-bottom: 1px solid #e7ecf2; }
  .pos-catalog-heading h2 { font-size: 17px; }
  #pos-search { font-size: 12px; min-height: 39px; border-color: #dce4ed!important; background: #f9fbfd; }
  .qty { padding: 8px 10px; min-height: 36px; border: 1px solid #d6e0e9; border-radius: 7px; background: #fff; color: #304c63; font-size: 13px; }
  .products-list { max-height: 64vh; padding-right: 0; }
  .product-select { padding: 18px 0; gap: 15px; border-bottom-color: #edf0f5; }
  .product-select b { font-size: 13px; font-weight: 600; color: #304c63; }
  .product-select small { font-size: 10px; color: #7c8b9c; margin-top: 5px; line-height: 1.5; }
  .product-select .btn { min-height: 33px; padding: 7px 12px; font-size: 10px; background: #edf5f8; border-color: #d5e6ed; color: #287591; }
  .checkout-card { border-top: 1px solid #d9e5ea; background: #fff; padding: 22px; top: 50px; }
  .pos-document-brand { gap: 13px; margin-bottom: 16px; padding-bottom: 17px; }
  .pos-document-brand img { width: 72px; border: 1px solid #edf1f5; padding: 7px; }
  .pos-document-brand h2 { font-size: 18px; margin-bottom: 3px; }
  .pos-document-brand small { font-size: 10px; }
  .checkout-card>.toolbar { padding: 4px; background: #f2f5f8; border-radius: 8px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 0 0 17px; }
  .checkout-card>.toolbar .btn { border: 0; background: transparent; color: #76889c; font-size: 11px; min-height: 34px; }
  .checkout-card>.toolbar .btn.primary { color: #245c79; background: #fff; box-shadow: 0 1px 4px #203b5011; }
  #cart-summary { padding: 14px 0; border-bottom: 1px solid #e8edf3; }
  .total { color: #1f536c; font-size: 32px; letter-spacing: -.04em; }
  .checkout-note { color: #7a899b; font-size: 10px; line-height: 1.7; padding: 12px; background: #f7fafc; border-radius: 8px; }
  #checkout-form>button[type=submit] { min-height: 45px; margin-top: 3px; }
  [data-section-reset].section-reset-bar { display: block; border: 1px dashed #dce2e9; background: transparent; margin-top: 28px; margin-bottom: 0!important; padding: 0!important; border-radius: 9px; color: #7e8b9a; }
  [data-section-reset]>summary { cursor: pointer; list-style-position: inside; font-size: 10px; font-weight: 500; padding: 12px 15px; color: #78889b; }
  [data-section-reset]>summary>span { float: right; font-size: 9px; color: #8a96a5; }
  [data-section-reset]>div { padding: 0 15px 15px; }
  [data-section-reset]>div>p { font-size: 11px; }
  [data-section-reset] .btn { min-height: 36px; font-size: 10px; }
  .sc-sync-banner { min-height: 30px; padding: 6px 12px; font-size: 10px; font-weight: 550; border-color: #dce9e3; letter-spacing: .01em; }
  .sc-sync-banner.online { color: #4b786b; background: #eef5f1; }
  .side { top: 30px; height: calc(100dvh - 30px); }
  .toast { border-radius: 9px; font-size: 12px; padding: 12px 16px; box-shadow: 0 8px 30px #17374b16; }
  .auth { background: #f6f7f9; grid-template-columns: 1.05fr 1fr; }
  .auth-left { background: #182f43; background-image: radial-gradient(ellipse at 5% 100%,#275f6a 0,transparent 65%); padding: clamp(40px,6.5vw,110px); }
  .auth-left::after { width: 430px; height: 430px; right: -210px; bottom: -180px; border-color: #ffffff0b; box-shadow: 0 0 0 65px #ffffff03,0 0 0 130px #ffffff02; }
  .auth-left img { width: 126px; margin-bottom: 55px; border-radius: 13px; padding: 9px; box-shadow: none; }
  .auth-eyebrow { font-size: 10px; font-weight: 550; color: #99d1cd; letter-spacing: .18em; margin-bottom: 19px; }
  .auth-left h1 { font-size: clamp(35px,3.5vw,57px); line-height: 1.12; font-weight: 650; letter-spacing: -.045em; margin-bottom: 22px; }
  .auth-left>p { font-size: 14px; max-width: 390px; line-height: 1.9; color: #b9cbd8; }
  .auth-capabilities { display: grid; gap: 17px; margin-top: 29px; color: #dce7ed; font-size: 12px; }
  .auth-capabilities>div { display: flex; align-items: center; gap: 12px; }
  .auth-capabilities .ui-icon { width: 18px; height: 18px; color: #87bcbf; }
  .auth-signature { margin-top: 55px; color: #9db5c4; font-size: 10px; letter-spacing: .03em; }
  .auth-right { padding: 45px; }
  .auth-card { padding: 36px; max-width: 450px; border-radius: 16px; border: 1px solid #e2e7ed; box-shadow: 0 18px 60px #24364b06; }
  .auth-card-mark { color: #25455d; font-size: 10px; font-weight: 700; letter-spacing: .1em; padding-bottom: 22px; margin-bottom: 27px; border-bottom: 1px solid #e9edf2; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .auth-card-mark span { font-size: 9px; font-weight: 500; color: #7e8ea0; letter-spacing: .01em; }
  .auth-card h2 { font-size: 28px; margin-bottom: 9px; letter-spacing: -.04em; }
  .auth-card>p { color: #7b899b; font-size: 12px; line-height: 1.7; margin-bottom: 25px; }
  .auth-card .field label { font-size: 12px; }
  .auth-card input { min-height: 47px; font-size: 16px; border-color: #d8e1ea; }
  .auth-card form { gap: 19px; }
  .auth-card .btn[type=submit] { margin-top: 5px; min-height: 46px; font-size: 13px; }
  .auth-card .password-toggle { font-size: 10px; background: #f5f8fa; }
  .auth-card .auth-help { color: #8693a2; font-size: 10px; margin: -5px 0 0; line-height: 1.7; }
  .auth-card #forgot-password { font-size: 11px; border-color: transparent; background: transparent; color: #46758e; min-height: 35px; padding: 0; margin-top: -10px; }
  .skip-link { position: fixed; top: -100px; left: 15px; z-index: 10030; background: #fff; border: 2px solid #176b91; color: #176b91; padding: 10px 15px; border-radius: 8px; }
  .skip-link:focus { top: 40px; }
  .workspace-loading { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid #e5eaf1; border-radius: 11px; padding: 23px; color: #718397; font-size: 12px; }
  .workspace-loading>span { width: 15px; height: 15px; border: 2px solid #d8e4ec; border-top-color: #357f9e; border-radius: 50%; animation: workspace-spin 1s linear infinite; }
  @keyframes workspace-spin { to { transform: rotate(360deg); } }
}
@media screen and (min-width:981px) and (max-width:1200px) {
  .layout { grid-template-columns: 218px minmax(0,1fr); }
  .main { padding: 22px; }
  .top-actions { max-width: 310px; }
  .metric-card { padding: 16px!important; }
  .metric-card .stat { font-size: 25px; }
  .sale-grid { grid-template-columns: 1fr; }
  .checkout-card { position: static; }
}
@media screen and (max-width:980px) {
  .layout { display: block; }
  .side { top: auto; height: auto; padding: 12px 17px; overflow: visible; }
  .side .brand { min-height: 46px; padding: 0; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 14px; }
  .brand small { font-size: 10px; }
  .side .nav button { min-height: 45px; font-size: 12px; padding: 11px; }
  .side.nav-open .nav { gap: 6px; padding: 0 0 10px; margin-top: 12px; }
  .nav-group-label { grid-column: 1/-1; margin: 15px 8px 3px; font-size: 9px; }
  .side-foot { display: none; }
  .main { padding: 21px 18px 30px; }
  .workspace-breadcrumb { margin-bottom: 18px; font-size: 10px; }
  .workspace-breadcrumb time { font-size: 10px; }
  .topline { margin-bottom: 20px; padding-bottom: 19px; }
  .topline h1 { font-size: 28px; }
  .top-actions .btn { min-height: 42px; }
  .top-actions .workspace-sale { min-height: 42px; }
  .top-actions { max-width: 340px; }
  .card { padding: 20px; border-radius: 11px; }
  .grid { gap: 13px; }
  .metric-card { min-height: 135px; padding: 17px!important; }
  .metric-card .stat { font-size: 30px; }
  .metric-card .stat-label { font-size: 12px; }
  .metric-card small { font-size: 11px; }
  .field input,.field select,.field textarea { font-size: 16px; min-height: 46px; }
  .field label { font-size: 12px; }
  .period-form .field { max-width: none; }
  .period-form { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .period-form .field input { min-width: 0; max-width: 100%; width: 100%; }
  .period-form input { min-height: 44px; font-size: 16px; }
  .period-form .btn { min-height: 44px; }
  .btn,.toolbar .btn { min-height: 44px; font-size: 12px; }
  .table-search { min-height: 46px; font-size: 16px; }
  .table-wrap .btn { min-height: 44px; font-size: 12px; }
  .mobile-shortcuts { padding-top: 5px; border-color: #e2e8ef; box-shadow: 0 -4px 20px #15384b06; }
  .mobile-shortcuts button { min-height: 53px; font-size: 10px; color: #708398; border-radius: 9px; }
  .mobile-shortcuts button.active { background: #ecf4f7; color: #286b87; }
  .mobile-shortcuts .ui-icon { width: 20px; height: 20px; }
  .mobile-menu-toggle { min-height: 41px; border-radius: 8px; font-size: 12px; padding: 9px 12px; background: #ffffff05; border-color: #ffffff26; }
  .sale-grid { grid-template-columns: 1fr; gap: 16px; }
  .checkout-card { position: static; }
  .product-select .btn { min-height: 44px; font-size: 12px; }
  .qty { min-height: 44px; font-size: 16px; }
  .products-list { max-height: 50dvh; }
  .modal { padding: 20px; border-radius: 13px; }
  .modal .actions { bottom: -20px; margin: 18px -20px -20px; padding: 14px 20px; }
  .auth-left { padding: 45px 35px; }
  .auth-left h1 { font-size: 36px; }
  .auth-right { padding: 25px; }
  .auth-card { padding: 28px; }
  .auth-card-mark { font-size: 9px; }
}
@media screen and (max-width:600px) {
  .main { padding: 18px 13px 26px; }
  .workspace-breadcrumb { font-size: 9px; gap: 8px; margin: 0 0 16px; }
  .workspace-breadcrumb>span:first-child { font-size: 9px; }
  .workspace-breadcrumb time { display: none; }
  .topline { display: block; margin-bottom: 18px; padding: 0 0 17px; }
  .topline h1 { font-size: 27px; margin-bottom: 6px; }
  .topline .subtitle { display: block; font-size: 11px; line-height: 1.6; }
  .welcome-greeting { font-size: 11px; line-height: 1.6; }
  .welcome-username { font-size: 9px; margin-bottom: 8px; }
  .top-actions { justify-content: flex-start; max-width: none; border: 0; padding: 0; margin-top: 15px; gap: 6px; }
  .top-actions .btn { padding: 9px 10px; font-size: 10px; min-height: 40px; }
  .top-actions .workspace-sale { display: none; }
  .top-actions .role-badge { font-size: 9px; padding: 6px 7px; }
  .top-actions [data-action=logout] { display: inline-flex; }
  .grid { gap: 10px; }
  .metric-card { min-height: 137px; padding: 15px!important; border-radius: 10px; }
  .metric-heading { min-height: 34px; gap: 5px; }
  .metric-card .stat-label { font-size: 11px; padding-top: 2px; line-height: 1.5; }
  .metric-icon { width: 23px; height: 23px; border-radius: 6px; }
  .metric-icon .ui-icon { width: 12px; height: 12px; }
  .metric-card .stat { font-size: clamp(21px,6vw,28px); margin-top: 5px; }
  .metric-card small { font-size: 10px; line-height: 1.65; margin-top: 8px; }
  .alerts-panel { padding: 12px 13px; margin-bottom: 17px; }
  .alerts-panel .section-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
  .alerts-panel summary { font-size: 11px; }
  .alerts-panel summary::after { padding-left: 0; font-size: 9px; }
  .alerts-panel .btn { min-height: 40px; margin: 0; font-size: 10px; }
  .period-form { padding-bottom: 17px; gap: 8px; }
  .period-form .field label { font-size: 10px; }
  .executive-banner { padding: 17px 16px; margin-bottom: 18px; border-radius: 10px; display: flex; flex-wrap: wrap; gap: 13px; }
  .executive-banner .eyebrow { font-size: 8px; }
  .executive-banner h2 { font-size: 18px; }
  .executive-banner>div>p { display: block; font-size: 10px; }
  .executive-links { width: 100%; gap: 7px; }
  .executive-links .btn { flex: 1; min-height: 42px; font-size: 11px; padding: 10px; }
  .chart-card { padding: 18px; }
  .chart-card h3 { font-size: 13px; }
  .chart-row { grid-template-columns: 65px minmax(15px,1fr) 90px; font-size: 10px; gap: 8px; }
  .chart-row strong { font-size: 10px; }
  .sales-chart { min-height: 135px; }
  .table-wrap { padding: 8px; overflow: visible; }
  .table-wrap tbody tr { margin: 5px 0 10px; border: 1px solid #e2e8ef; border-radius: 9px; overflow: hidden; }
  .table-wrap td { font-size: 12px; padding: 12px 10px 12px 41%; min-height: 44px; }
  .table-wrap tbody td[data-label]::before { font-size: 10px; left: 11px; top: 13px; color: #73879b; }
  .table-wrap td small { font-size: 10px; }
  .table-wrap td .badge { font-size: 10px; }
  .table-wrap .empty { padding: 25px 12px!important; }
  .empty strong { font-size: 12px; }
  .empty>span:last-child { font-size: 10px; }
  .toolbar { gap: 7px; }
  .toolbar .btn { font-size: 11px; padding: 10px; }
  .sale-grid>.card { padding: 18px; }
  .pos-catalog-heading { gap: 13px; }
  .pos-catalog-heading h2 { font-size: 17px; }
  #pos-search { font-size: 16px; min-height: 44px; }
  .product-select b { font-size: 13px; }
  .product-select small { font-size: 10px; }
  .checkout-card>.toolbar .btn { min-height: 42px; }
  .pos-document-brand img { width: 67px; }
  .pos-document-brand h2 { font-size: 17px; }
  .section-eyebrow { font-size: 8px; }
  .total { font-size: 31px; }
  .checkout-note { font-size: 10px; }
  .modal { padding: 17px; }
  .modal .actions { bottom: -17px; margin: 17px -17px -17px; padding: 13px 17px; }
  .modal>.section-head h2 { font-size: 18px; }
  .modal>.section-head>.btn { min-height: 40px; }
  [data-section-reset].section-reset-bar { margin-top: 23px; }
  [data-section-reset]>summary { font-size: 9px; padding: 13px 12px; }
  [data-section-reset]>summary>span { font-size: 8px; }
  [data-section-reset] .btn { min-height: 44px; font-size: 11px; }
  .sc-sync-banner { min-height: 30px; font-size: 9px; padding: 7px 10px; }
  .auth { display: block; }
  .auth-left { min-height: auto; padding: 28px 26px 30px; }
  .auth-left img { width: 92px; margin-bottom: 23px; padding: 6px; border-radius: 9px; }
  .auth-eyebrow { font-size: 8px; margin-bottom: 12px; }
  .auth-left h1 { font-size: 33px; margin-bottom: 13px; }
  .auth-left>p { font-size: 11px; line-height: 1.8; margin-bottom: 0; }
  .auth-capabilities { display: none; }
  .auth-signature { margin-top: 19px; font-size: 9px; }
  .auth-right { padding: 19px 13px 30px; }
  .auth-card { max-width: 450px; padding: 25px 22px; border-radius: 13px; }
  .auth-card-mark { padding-bottom: 17px; margin-bottom: 22px; font-size: 9px; }
  .auth-card-mark span { font-size: 8px; }
  .auth-card h2 { font-size: 25px; }
  .auth-card .field label { font-size: 12px; }
  .auth-card input { min-height: 47px; font-size: 16px; }
}
@media screen and (max-width:350px) {
  .main { padding-left: 10px; padding-right: 10px; }
  .topline h1 { font-size: 25px; }
  .top-actions .btn { font-size: 9px; padding: 8px; }
  .top-actions .workspace-sale { font-size: 10px; }
  .top-actions .role-badge { font-size: 8px; padding: 5px; }
  .metric-card { padding: 12px!important; }
  .metric-card .stat-label { font-size: 9px; }
  .metric-card .stat { font-size: 21px; }
  .metric-card small { font-size: 9px; }
  .table-wrap td { font-size: 11px; }
  .auth-left h1 { font-size: 29px; }
  .nav-group-label { grid-column: 1/-1; }
}
@media print { .workspace-breadcrumb,.skip-link { display: none!important; } }
@media (prefers-reduced-motion:reduce) { .workspace-loading>span { animation: none; } }
