/* Bean Block Inventory App v1.9.40 stylesheet. */

:root{
  --bb-primary: #F67E0F;
  --bb-coffee: #784C1D;
  --bb-cream: #FFE5CD;
  --bb-off-white: #FFF7ED;
  --bb-ink: #111721;
  --bb-ink-soft: #181E29;
  --bb-espresso: #3A1F12;
  --bb-copper: #A35C31;
  --bb-orange-deep: #C96A1D;
  --bb-cream-text: #F7E6D6;
  --bb-primary-900: #662C00;
  --bb-primary-800: #8A3D00;
  --bb-primary-700: #B95604;
  --bb-primary-600: #DB6908;
  --bb-primary-500: #F67E0F;
  --bb-primary-100: #FFE7CF;
  --bb-primary-50: #FFF3E8;
  --bb-coffee-950: #2C1607;
  --bb-coffee-900: #3F210C;
  --bb-coffee-700: #784C1D;
  --bb-coffee-600: #936229;
  --bb-coffee-300: #DEBC8C;
  --bb-coffee-200: #EED7B8;
  --bb-coffee-100: #F8ECDD;
  --bb-cream-500: #FFE5CD;
  --bb-cream-300: #FFF0DF;
  --bb-cream-200: #FFF4E8;
  --bb-cream-100: #FFF7ED;
  --bb-cream-50: #FFFBF7;
  --color-bg: var(--theme-surface-variant, var(--bb-off-white));
  --color-surface: #FFFFFF;
  --color-bg-soft: #FFF4E8;
  --color-surface-container: #FFF4E8;
  --color-surface-container-high: #FFF0DF;
  --color-surface-strong: var(--bb-cream);
  --color-bg-dark: var(--bb-ink);
  --color-on-dark: var(--bb-cream-text);
  --color-primary: var(--theme-accent, var(--bb-primary));
  --color-primary-hover: #DB6908;
  --color-primary-pressed: #B95604;
  --color-primary-soft: #FFE7CF;
  --color-on-primary: var(--theme-on-primary, #FFFFFF);
  --color-nav-premium: var(--bb-ink);
  --color-on-nav: var(--bb-off-white);
  --color-on-nav-muted: #F8ECDD;
  --color-text: #2C1607;
  --color-text-strong: #1F0F04;
  --color-text-muted: #7A5A3A;
  --color-text-soft: #9A7A5A;
  --color-border: rgba(120,76,29,.18);
  --color-border-strong: var(--theme-outline, #DEBC8C);
  --color-divider: rgba(120,76,29,.13);
  --color-focus: var(--bb-primary);
  --color-focus-ring: var(--primary-a28);
  --color-success: #1F7A4D;
  --color-success-bg: #E7F5EC;
  --color-success-border: #B7DEC6;
  --color-on-success-bg: #0E3D25;
  --color-warning: #B7791F;
  --color-warning-bg: #FFF3D6;
  --color-warning-border: #F3D28A;
  --color-on-warning-bg: #5F3B00;
  --color-danger: #B42318;
  --color-danger-bg: #FDE8E5;
  --color-danger-border: #F5B8B1;
  --color-on-danger-bg: #65120C;
  --color-info: #2563EB;
  --color-info-bg: #E7EFFF;
  --color-info-border: #B8CCFF;
  --color-on-info-bg: #153E96;
  --color-neutral-bg: #EFE5DA;
  --color-neutral-border: #D8C7B7;
  --color-on-neutral-bg: #3A2A20;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-xxl: 30px;
  --radius-pill: 999px;
  --shadow-sm: 0 4px 12px rgba(17,23,33,.04), 0 1px 4px rgba(120,76,29,.06);
  --shadow-md: 0 8px 20px rgba(17,23,33,.05), 0 2px 6px rgba(120,76,29,.08);
  --shadow-lg: 0 20px 50px rgba(17,23,33,.10), 0 4px 12px rgba(120,76,29,.10);
  --elevation-card: 0 4px 12px rgba(17,23,33,.04), 0 1px 4px rgba(120,76,29,.06);
  --elevation-card-hover: 0 10px 22px rgba(120,76,29,.12), 0 2px 6px rgba(17,23,33,.04);
  --font-heading: var(--font-body);
  --font-body: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  --mobile-nav-height: 64px;
  --mobile-nav-gap: 0px;
  --bb-page-banner-bg: linear-gradient(90deg,var(--color-nav-premium) 0%,var(--color-nav-dark) 64%,var(--bb-coffee-700) 100%);
  --bb-page-banner-text: var(--color-text-inverse);
  --bb-page-banner-control-bg: var(--color-surface);
  --bb-page-banner-control-text: var(--color-text-strong);
  --bb-banner-text-strong: var(--color-text-inverse);
  --bb-banner-control-surface: var(--color-surface);
  --bb-banner-control-text: var(--color-text-strong);
  --bb-select-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237A5A3A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --bb-banner-readable-text: #FFFFFF;
  --bb-pending-gray-bg: var(--bb-pending-gray-bg);
  --color-nav: var(--bb-coffee);
  --color-nav-dark: #3F210C;
  --color-text-inverse: var(--bb-off-white);
  --color-neutral: #6B5B50;
  --control-height-desktop: 40px;
  --control-height-mobile: 48px;
  --card-padding-desktop: 18px;
  --card-padding-mobile: 14px;
  --page-padding-desktop: 24px;
  --page-padding-mobile: 14px;
  --section-gap-desktop: 16px;
  --section-gap-mobile: 14px;
  --mobile-nav-clearance: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 72px);
  --z-behind: -1;
  --z-1: 1;
  --z-2: 2;
  --z-5: 5;
  --z-dropdown: 10;
  --z-sidebar: 20;
  --z-handle: 40;
  --z-banner: 60;
  --z-context: 85;
  --z-overlay: 1000;
  --z-loading: 2000;
  --z-sheet: 9200;
  --z-panel: 9700;
  --z-picker: 9800;
  --z-popover: 10000;
  --z-modal-backdrop: 50000;
  --z-modal: 120000;
  --z-modal-over: 120001;
  --z-topmost: 2147483000;
  --z-topmost-over: 2147483001;
  --z-settings: 2147483600;
  --z-max: 2147483640;
  --white-a08: rgba(255,255,255,.08);
  --white-a10: rgba(255,255,255,.10);
  --white-a12: rgba(255,255,255,.12);
  --white-a14: rgba(255,255,255,.14);
  --white-a16: rgba(255,255,255,.16);
  --white-a20: rgba(255,255,255,.20);
  --white-a28: rgba(255,255,255,.28);
  --white-a44: var(--white-a44);
  --white-a45: var(--white-a45);
  --white-a92: var(--white-a92);
  --white-a95: var(--white-a95);
  --off-white-a72: rgba(255,247,237,.72);
  --off-white-a60: rgba(255,247,237,.60);
  --off-white-a35: rgba(255,247,237,.35);
  --off-white-a25: rgba(255,247,237,.25);
  --off-white-a12: var(--off-white-a12);
  --off-white-a82: rgba(255,247,237,.82);
  --primary-a22: rgba(246,126,15,.22);
  --primary-a18: rgba(246,126,15,.18);
  --black-a02: rgba(0,0,0,.02);
  --black-a06: rgba(0,0,0,.06);
  --black-a14: rgba(0,0,0,.14);
  --black-a18: rgba(0,0,0,.18);
  --ink-a08: rgba(17,23,33,.08);
  --brown-a18: rgba(120,76,29,.18);
  --brown-a08: rgba(120,76,29,.08);
  --brown-a10: rgba(120,76,29,.10);
  --white-a96: rgba(255,251,247,.96);
  --white-a85: rgba(255,255,255,.85);
  --white-a72: rgba(255,255,255,.72);
  --white-a48: rgba(255,255,255,.48);
  --white-a42: rgba(255,255,255,.42);
  --white-a40: rgba(255,255,255,.40);
  --white-a34: rgba(255,255,255,.34);
  --white-a15: rgba(255,255,255,.15);
  --white-a11: rgba(255,255,255,.11);
  --white-a06: rgba(255,255,255,.06);
  --white-a03: rgba(255,255,255,.03);
  --off-white-a85: rgba(255,247,237,.85);
  --off-white-a65: rgba(255,247,237,.65);
  --off-white-a20: rgba(255,247,237,.2);
  --off-white-a45: rgba(255,247,237,.45);
  --primary-a28: rgba(246,126,15,.28);
  --black-a22: rgba(0,0,0,.22);
  --black-a12: rgba(0,0,0,.12);
}

*,*::before,*::after{
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,body,#root{
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  min-height: 100%;
}

body{
  -webkit-tap-highlight-color: transparent;
  position: static;
  overflow-x: hidden;
  overscroll-behavior-y: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
}

button,input,select,textarea{
  font-family: inherit;
  outline: none;
}

button{
  cursor: pointer;
  border: 0;
}

::-webkit-scrollbar{
  width: 4px;
  height: 4px;
}

::-webkit-scrollbar-thumb{
  background: #C8B8A8;
  border-radius: var(--radius-pill);
}

.mono{
  font-family: "SF Mono","Cascadia Code","Fira Code",Menlo,Consolas,monospace;
  font-variant-numeric: tabular-nums;
}

.app-shell{
  display: flex;
  --theme-accent: var(--bb-primary);
  --theme-accent-2: var(--bb-coffee);
  --theme-soft: var(--bb-cream);
  --theme-contrast: #fff;
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  height: auto;
}

.sidebar{
  width: 250px;
  padding: 16px 14px;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: var(--z-sidebar);
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--color-nav-premium);
  color: var(--color-on-nav);
}

.brand-block{
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--white-a15);
  padding: 6px 6px 14px;
}

.brand-home-link{
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-lg);
  transition: transform .16s ease,filter .16s ease;
}

.brand-home-link:hover{
  filter: brightness(1.05);
}

.brand-home-link:active{
  transform: scale(.985);
}

.brand-account-btn{
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-lg);
  background: transparent;
  border: 0;
  width: 100%;
  text-align: left;
  padding: 0;
  position: relative;
  cursor: default;
}

.sidebar-hub-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-size: 13px;
  font-weight: 950;
  transition: transform .16s ease,background .16s ease,color .16s ease,box-shadow .16s ease,border-color .16s ease;
  margin-top: auto;
  border: 1.5px solid var(--white-a16);
  box-shadow: 0 10px 22px var(--white-a08);
  background: var(--color-surface);
  color: var(--color-text);
  border-color: var(--white-a20);
}

.sidebar-hub-btn:hover{
  filter: brightness(.96);
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: var(--color-primary);
}

.mobile-account-wrap{
  display: flex;
  align-items: center;
  flex-shrink: 0;
  position: relative;
  z-index: var(--z-popover);
}

.mobile-header{
  display: none;
  padding: 14px 18px;
  padding-top: calc(14px + env(safe-area-inset-top));
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  overflow: visible;
  position: relative;
}
.mobile-header::before{
  content: '';
  position: absolute;
  top: calc(env(safe-area-inset-top) * -1);
  left: 0;
  right: 0;
  height: calc(100% + env(safe-area-inset-top));
  background: inherit;
  z-index: var(--z-behind);
}

.mobile-banner-top{
  position: relative;
  z-index: var(--z-banner);
}

.mobile-banner-controls{
  position: relative;
  z-index: var(--z-dropdown);
}

.mobile-banner-station,.mobile-banner-controls{
  position: relative;
  z-index: var(--z-2);
}

.brand-mark{
  width: 42px;
  height: 42px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  color: var(--bb-ink);
  border: 1px solid var(--off-white-a20);
  background: var(--color-surface-strong);
  box-shadow: 0 0 0 1px var(--white-a12);
}

.brand-mark img{
  object-position: center center;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.3);
}

.brand-title{
  font-size: 15px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--color-on-nav);
}

.brand-subtitle{
  font-size: 12px;
  margin-top: 3px;
  color: var(--color-on-nav-muted);
}

.nav-label{
  font-size: 11px;
  color: var(--white-a48);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 4px 8px 6px;
}

.nav-list{
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.side-nav-btn{
  background: transparent;
  text-align: left;
  display: flex;
  align-items: center;
  transition: .18s ease;
  font-weight: 700;
  padding: 10px 12px;
  font-size: 14px;
  gap: 11px;
  border-radius: var(--radius-lg);
  min-height: 40px;
  color: var(--off-white-a72);
}

.side-nav-btn:hover{
  background: var(--white-a08);
  color: var(--color-on-nav);
}

.side-nav-btn.active{
  font-weight: 900;
  background: var(--color-primary);
  color: var(--bb-ink);
}

.side-icon{
  width: 22px;
  text-align: center;
  font-size: 16px;
}

.sidebar-station{
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: var(--radius-lg);
  background: var(--white-a06);
  border: 0;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
  font-family: inherit;
}
.sidebar-station:hover{
  background: var(--white-a10);
}

.sidebar-station-label{
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--white-a45);
  margin-bottom: 3px;
}

.sidebar-station-name{
  font-size: 13px;
  font-weight: 700;
  color: var(--white-a85);
  line-height: 1.3;
}

.sidebar-station-hint{
  font-size: 10px;
  font-weight: 600;
  color: var(--off-white-a35);
  margin-top: 3px;
}

.station-picker-overlay{
  position: fixed;
  inset: 0;
  z-index: var(--z-picker);
  background: transparent;
}
.station-picker-popover{
  position: fixed;
  left: 230px;
  top: 50%;
  transform: translateY(-50%);
  width: 220px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 4px;
}
.station-picker-head{
  padding: 10px 12px 6px;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.station-picker-list{
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.station-picker-option{
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  font-size: 13px;
  text-align: left;
  cursor: pointer;
  transition: background .1s;
}
.station-picker-option:hover{
  background: var(--color-surface-container);
}
.station-picker-option.selected{
  background: var(--color-surface-container-high);
  font-weight: 700;
}
.station-picker-check{
  color: var(--color-primary);
  font-weight: 900;
  font-size: 14px;
}

.sidebar-bottom{
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-bottom .sidebar-hub-btn{
  margin: 0;
}

.sidebar-hub-btn:active{
  transform: scale(.99);
}

.sidebar-switch-btn{
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  background: var(--white-a03);
  color: var(--off-white-a60);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  border: 1.5px solid rgba(255,247,237,.16);
  transition: color .15s, background .15s, border-color .15s;
}
.sidebar-switch-btn:hover{
  color: var(--off-white-a85);
  background: var(--white-a08);
  border-color: rgba(255,247,237,.28);
}

.sidebar-footer{
  margin-top: 0;
  background: var(--white-a08);
  border-radius: var(--radius-lg);
  padding: 14px;
  font-size: 12px;
  color: var(--white-a72);
  line-height: 1.45;
}

.sidebar-footer strong{
  color: var(--color-text-inverse);
}

.status-dot{
  display: inline-block;
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: var(--radius-pill);
  background: currentColor;
  opacity: .72;
}

.main-shell{
  margin-left: 250px;
  width: calc(100% - 250px);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar{
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding-bottom: 22px;
  max-width: none;
  margin: 0;
  padding: 20px 24px;
  align-items: center;
  z-index: var(--z-5);
  background: var(--bb-page-banner-bg);
  color: var(--bb-page-banner-text);
  border-bottom: 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.page-title{
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.05;
  color: var(--color-text-strong);
}

.page-subtitle{
  margin-top: 5px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.top-actions{
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pill{
  border-radius: var(--radius-pill);
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pill.primary{
  background: var(--theme-accent);
  color: var(--theme-contrast);
  box-shadow: 0 8px 18px var(--black-a14);
}

.pill.light{
  background: var(--color-surface);
  color: var(--color-text-strong);
  border: 1px solid var(--color-border);
}

.pill.dark{
  background: #000;
  color: var(--color-text-inverse);
}

.content-scroll{
  flex: 1;
  overflow-y: auto;
  scrollbar-gutter: stable;
  background: var(--color-bg);
}

.content-wrap{
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.mobile-bottom-nav{
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: var(--z-handle);
  padding: 10px 10px calc(10px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px var(--black-a18);
  background: #000;
}

.mobile-nav-inner{
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 7px;
  max-width: 640px;
  margin: 0 auto;
}

.mobile-nav-btn{
  background: transparent;
  padding: 9px 4px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-weight: 800;
  min-height: 48px;
  color: var(--off-white-a72);
  border-radius: var(--radius-lg);
}

.mobile-nav-btn b{
  font-size: 17px;
  line-height: 1;
}

.mobile-nav-btn.active{
  background: var(--bb-primary);
  color: var(--color-text-strong);
  font-weight: 900;
}

.card{
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--elevation-card);
  transition: transform .2s cubic-bezier(.05,.7,.1,1), box-shadow .2s cubic-bezier(.05,.7,.1,1);
}

.card-elevated{
  box-shadow: var(--elevation-card);
  transition: transform .2s cubic-bezier(.05,.7,.1,1), box-shadow .2s cubic-bezier(.05,.7,.1,1);
}

@media (hover: hover) and (pointer: fine){
  .card-elevated:hover{
    transform: translateY(-2px);
    box-shadow: var(--elevation-card-hover);
  }
}

.soft-card{
  border: none;
  border-radius: var(--radius-lg);
  background: var(--color-surface-container-high);
}

.section-label{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 12px;
  color: var(--color-text-muted);
}

.grid-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.grid-3{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 12px;
}

.grid-4{
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 12px;
}

.field{
  margin-bottom: 14px;
}

.field label{
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--color-neutral);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.input,.select,.textarea{
  width: 100%;
  padding: 11px 12px;
  border: 1.5px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-strong);
  font-size: 14px;
}

.select{
  background: var(--color-surface);
  padding-right: 42px;
  background-color: var(--color-surface);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='2.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  background-size: 18px 18px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.textarea{
  min-height: 82px;
  resize: vertical;
}

.btn{
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 14px var(--brown-a08);
}

.btn.orange{
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.btn.black{
  background: var(--color-nav-premium);
  color: var(--color-on-nav);
  border-color: var(--color-nav-premium);
}

.btn.white{
  background: var(--bb-off-white);
  color: var(--color-text-strong);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 5px 12px rgba(0,0,0,.07);
}

.btn.red{
  border-color: var(--color-danger);
  background: var(--color-danger);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-danger);
}

.btn.green{
  border-color: var(--color-success-border);
  background: var(--color-success-bg);
  color: var(--color-on-success-bg);
  border: 1px solid var(--color-success-border);
}

.btn.yellow{
  border-color: var(--color-warning-border);
  background: var(--color-warning-bg);
  color: var(--color-on-warning-bg);
  border: 1px solid var(--color-warning-border);
}

.muted{
  color: var(--color-text-muted);
}

.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  box-shadow: none;
}

.badge.ok{
  border-color: var(--color-success-border);
  color: var(--color-on-success-bg);
  background: var(--color-success-bg);
  border: 1px solid var(--color-success-border);
}

.badge.out_of_stock{
  border-color: var(--color-danger-border);
  color: var(--color-on-danger-bg);
  background: var(--color-danger-bg);
  border: 1px solid var(--color-danger-border);
}

.badge.reorder{
  border-color: var(--color-warning-border);
  color: var(--color-on-warning-bg);
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
}

.badge.neutral{
  border-color: var(--color-neutral-border);
  color: var(--color-on-neutral-bg);
  background: var(--color-neutral-bg);
  border: 1px solid var(--color-neutral-border);
}

.badge.info{
  border-color: var(--color-info-border);
  color: var(--color-on-info-bg);
  background: var(--color-info-bg);
  border: 1px solid var(--color-info-border);
}

.badge.pending{
  border-color: var(--color-info-border);
  color: var(--color-on-warning-bg);
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
}

.pending-dot{
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  display: inline-block;
  background: currentColor;
  opacity: .72;
}

.pending-panel{
  margin: 0 0 var(--section-gap-desktop);
  padding: 0;
  border: 1px solid var(--color-neutral-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: var(--section-gap-desktop);
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: var(--color-on-warning-bg);
}
.pending-panel.pending-has-items{
  background: var(--color-warning-bg);
  border-color: var(--color-warning-border);
  color: var(--color-on-warning-bg);
}

.pending-panel.pending-empty{
  background: var(--color-neutral-bg);
  border-color: var(--color-neutral-border);
  color: var(--color-on-neutral-bg);
}

.pending-panel.pending-empty .pending-panel-toggle,
.pending-panel.pending-empty .pending-count-text{
  color: var(--color-on-neutral-bg);
}

.pending-panel.pending-empty .pending-title-chip:before{
  background: currentColor;
  box-shadow: none;
}

.pending-title-chip{
  gap: 6px;
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: var(--radius-pill);
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  background: var(--color-surface);
  color: var(--color-on-neutral-bg);
  border: 1px solid var(--color-neutral-border);
  box-shadow: none;
  text-transform: none;
  letter-spacing: 0;
  cursor: default;
  margin: 0;
}

.pending-title-heading{
  font-size: 0.9375rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.pending-title-chip:before{
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  border-radius: var(--radius-pill);
  background: currentColor;
  opacity: .72;
  box-shadow: none;
}

.pending-meta{
  font-size: 11px;
  color: var(--color-neutral);
  font-weight: 500;
  line-height: 1.35;
}

.toast{
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%);
  border: 1.5px solid #16A34A44;
  padding: 12px 20px;
  font-weight: 900;
  font-size: 13px;
  box-shadow: 0 4px 20px #0002;
  white-space: nowrap;
  animation: toast 3.2s ease forwards;
  background: var(--color-success-bg);
  color: var(--color-on-success-bg);
  border-color: var(--color-success-border);
  border-radius: var(--radius-md);
  z-index: var(--z-max);
}

.stock-row{
  display: grid;
  grid-template-columns: minmax(180px,1.25fr) minmax(160px,1fr) minmax(72px,.25fr) minmax(60px,auto);
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-divider);
}

.stock-row:last-child{
  border-bottom: 0;
}

.stock-row>div{
  min-width: 0;
}

.stock-row-title-line{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-row-status-line{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stock-row>div:nth-child(2){
  min-width: 0;
}

.stock-row>div:last-child{
  min-width: 0;
  width: 178px;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  overflow: visible;
}

.stock-row .btn.compact-btn{
  min-width: 82px;
  max-width: 82px;
  padding: 9px 8px;
  flex: 0 0 82px;
}

.stock-bar{
  height: 4px;
  border-radius: var(--radius-pill);
  overflow: hidden;
  background: var(--color-surface-container);
}

.stock-fill{
  height: 100%;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
}

.stock-category-list{display:grid;gap:12px;min-width:0}
.stock-category-card{background:var(--color-surface);border:none;border-radius:var(--radius-xl);box-shadow:var(--elevation-card);padding:16px}
.stock-category-title{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 0 4px;border:0;background:transparent;color:var(--bb-coffee);font-size:19px;font-weight:800;line-height:1.15;letter-spacing:-.015em;text-align:left;cursor:pointer}
.stock-category-title:hover{color:var(--color-primary)}
.stock-category-title span{display:inline-flex;align-items:center;justify-content:center;min-height:28px;padding:6px 10px;border:1px solid var(--brown-a18);border-radius:var(--radius-pill);background:var(--color-surface-container);color:var(--bb-coffee);font-size:11px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap}
.stock-category-title span:hover{border-color:var(--color-primary);color:var(--color-primary)}
.category-jump-list{display:grid;gap:8px}
.category-jump-option{width:100%;display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-radius:var(--radius-lg);background:var(--color-surface-container);color:var(--color-text);font-weight:800;font-size:1rem;text-align:left}
.category-jump-option:hover{background:var(--color-surface-container-high)}
.category-jump-option span{font-size:0.875rem;color:var(--color-text-muted);font-weight:800}
.stock-category-card .stock-row:last-child{border-bottom:0}
.skeleton-grid{display:grid;gap:14px;margin-bottom:14px}
.skeleton-card{background:var(--color-surface);border:1px solid var(--color-border);border-radius:var(--radius-xl);box-shadow:var(--shadow-sm);padding:16px;overflow:hidden}
.skeleton-line{height:12px;border-radius:var(--radius-pill);background:linear-gradient(90deg,#F3DEC8,var(--bb-off-white),#F3DEC8);background-size:180% 100%;animation:skeletonShimmer 1.2s linear infinite}
.skeleton-line.short{width:46%}
.skeleton-line.medium{width:68%}
.skeleton-line.long{width:88%}
.skeleton-line.title{height:18px;width:58%;margin-bottom:12px}
.skeleton-row{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(120px,.9fr) 92px 80px;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid var(--color-divider)}
.skeleton-row:last-child{border-bottom:0}
.skeleton-filter{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:center;margin-bottom:14px}
.skeleton-sync-banner{margin-bottom:14px;padding:12px 14px;border:1px solid var(--color-info-border);border-radius:var(--radius-lg);background:var(--color-info-bg);color:var(--color-on-info-bg);font-size:13px;font-weight:800}
@keyframes skeletonShimmer{from{background-position:0 0}to{background-position:-180% 0}}

.modal-backdrop{
  position: fixed;
  inset: 0;
  background: #0007;
  z-index: var(--z-topmost);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  isolation: isolate;
  pointer-events: auto;
.modal{
  width: 100%;
  max-width: 520px;
  background: var(--color-surface);
  border-radius: var(--radius-xxl);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  animation: modalIn .2s ease;
  max-height: 88vh;
  overflow-y: auto;
  position: relative;
  z-index: var(--z-topmost-over);
  pointer-events: auto;
  touch-action: auto;
}
  overflow-y: auto;
}

.modal-head{
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body{
  padding: 18px 20px 20px;
}

.xbtn{
  background: transparent;
  border: 0;
  color: var(--color-text-muted);
  font-size: 0;
  line-height: 1;
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  cursor: pointer;
  transition: color .15s;
}
.xbtn:hover{
  color: var(--color-text-strong);
}

}
.confirm-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.58);
  z-index: var(--z-modal-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.confirm-dialog{
  width: 100%;
  max-width: 460px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: modalIn .18s ease;
}

.confirm-head{
  padding: 18px 20px;
}

.confirm-title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
}

.confirm-sub{
  font-size: 13px;
  color: var(--color-neutral);
  line-height: 1.45;
  margin-top: 5px;
}

.confirm-body{
  padding: 16px 20px;
}

.confirm-details{
  padding: 0;
  font-size: 15px;
  font-weight: 550;
  line-height: 1.55;
  white-space: pre-line;
  color: var(--color-text-strong);
}

.confirm-actions{
  display: flex;
  gap: 10px;
  padding: 0 20px 20px;
  justify-content: flex-end;
}

.confirm-actions .btn{
  min-width: 80px;
}

.table-wrap{
  overflow-x: auto;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.manager-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.manager-table th{
  text-align: left;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 11px;
  background: var(--color-surface-container);
  color: var(--color-text-muted);
}

.manager-table td{
  padding: 12px 11px;
  border-bottom: 1px solid var(--color-divider);
  white-space: nowrap;
}

.manager-table tr:last-child td{
  border-bottom: 0;
}

.admin-table-modal{
  width: min(1040px,calc(100vw - 36px));
  max-width: 1040px;
}
.admin-data-table{
  width: 100%;
  table-layout: fixed;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.admin-data-table thead{
  position: sticky;
  top: 0;
  z-index: var(--z-2);
}
.admin-data-table th{
  white-space: nowrap;
  border-bottom: 1px solid var(--color-divider);
}
.admin-data-table td{
  white-space: normal;
  max-width: none;
  border-bottom: 1px solid var(--color-divider);
}

.staff-branch-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: var(--shadow-sm);
}
.staff-list-table{
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border: none;
  border-radius: 0;
}
.staff-list-table th,
.staff-list-table td{
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.staff-list-table th:nth-child(1),.staff-list-table td:nth-child(1){width:20%}
.staff-list-table th:nth-child(2),.staff-list-table td:nth-child(2){width:13%}
.staff-list-table th:nth-child(3),.staff-list-table td:nth-child(3){width:12%}
.staff-list-table th:nth-child(4),.staff-list-table td:nth-child(4){width:13%}
.staff-list-table th:nth-child(5),.staff-list-table td:nth-child(5){width:24%;white-space:normal;word-break:break-word}
.staff-list-table th:nth-child(6),.staff-list-table td:nth-child(6){width:9%}
.staff-list-table th:nth-child(7),.staff-list-table td:nth-child(7){width:9%;text-align:right}
.staff-list-table th:first-child{
  border-top-left-radius: var(--radius-lg);
}
.staff-list-table th:last-child{
  border-top-right-radius: var(--radius-lg);
}
.staff-branch-card .admin-data-table{
  border: none;
  border-radius: 0;
  table-layout: fixed;
}
.staff-branch-card .admin-data-table td{
  white-space: normal;
  max-width: none;
}
.admin-data-table thead th:first-child,
.admin-data-table tbody td:first-child{
  padding-left: 14px;
}

.modal-body input[type=checkbox]:focus,
.modal-body input[type=checkbox]:focus-visible{
  outline: none;
  box-shadow: none;
}

.select:disabled{
  background-color: var(--bb-pending-gray-bg);
  color: var(--color-text-soft);
  cursor: not-allowed;
  opacity: .85;
}

.btn,.pill,.side-nav-btn,.mobile-nav-btn,.xbtn{
  transition: transform .16s ease,box-shadow .16s ease,filter .16s ease,border-color .16s ease;
}

.btn:hover,.pill:hover{
  filter: brightness(1.1);
}
.btn.white:hover,.btn.white:focus-visible{
  filter: brightness(.94);
}

.btn:active,.pill:active,.action-card:active{
  transform: translateY(0) scale(.99);
}

.btn.secondary{
  background: #000;
  color: var(--color-text-inverse);
}

.btn.compact-btn{
  min-width: 76px;
  white-space: nowrap;
}

.locked-station-field{
  height: 44px;
  min-width: 230px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-strong);
  background: #F9FAFB;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 1px 0 var(--black-a02);
}

.locked-station-dot{
  width: 9px;
  height: 9px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  background: var(--theme-contrast);
  box-shadow: 0 0 0 3px var(--white-a20);
}

.station-selector-wrap{
  width: 290px;
  min-width: 0;
  max-width: 290px;
  flex: 0 0 auto;
}

.top-actions .select{
  height: 44px;
  background-color: var(--white-a92);
  color: var(--color-text-strong);
  border-color: var(--white-a40);
}

.list-toolbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 12px;
  flex-wrap: wrap;
}

.sort-control{
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 180px;
}

.sort-control label{
  font-size: 11px;
  font-weight: 900;
  color: var(--color-neutral);
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}

.sort-control .select{
  height: 40px;
  background-color: var(--color-surface);
  font-size: 12px;
  font-weight: 800;
}

.side-nav-btn.active,.mobile-nav-btn.active{
  background: var(--color-primary);
  color: var(--color-on-primary);
}

.view-banner{
  margin: 0 0 22px;
  border-radius: 0;
  overflow: hidden;
  border: 0;
  box-shadow: none;
  background: linear-gradient(90deg,var(--theme-accent),var(--theme-accent-2));
  color: var(--theme-contrast);
  position: relative;
  display: none;
}

.view-banner:before{
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 38%;
  background: linear-gradient(90deg,transparent,var(--white-a11));
  pointer-events: none;
}

.view-banner:after{
  display: none;
}

.view-banner-inner{
  position: relative;
  z-index: var(--z-1);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.view-title{
  font-size: 22px;
  font-weight: 950;
  letter-spacing: -.035em;
  line-height: 1.05;
}

.view-sub{
  font-size: 12px;
  opacity: .84;
  margin-top: 6px;
  line-height: 1.4;
  max-width: 760px;
}

.view-code{
  font-family: "SF Mono","Cascadia Code","Fira Code",Menlo,Consolas,monospace;
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 900;
  background: var(--white-a16);
  padding: 8px 11px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  backdrop-filter: blur(8px);
}

.theme-strip{
  display: block;
  height: 5px;
  background: linear-gradient(90deg,var(--color-primary),var(--bb-copper));
  border-radius: var(--radius-pill);
  margin: 0 var(--space-8);
  transform: translateY(-calc(var(--space-4)));
}

.loading-overlay{
  position: fixed;
  inset: 0;
  background: var(--off-white-a82);
  backdrop-filter: blur(5px);
  z-index: var(--z-loading);
  display: flex;
  align-items: center;
  justify-content: center;
}

.loading-card{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 20px 24px;
  box-shadow: 0 14px 40px var(--black-a14);
  display: flex;
  align-items: center;
  gap: 14px;
  font-weight: 900;
}

.spinner{
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--bb-cream);
  border-top-color: var(--theme-accent,var(--bb-primary));
  animation: spin .8s linear infinite;
}

.mini-spinner{
  width: 18px;
  height: 18px;
  border-radius: var(--radius-pill);
  border: 3px solid var(--color-border);
  border-top-color: var(--color-text-strong);
  animation: spin .8s linear infinite;
  display: inline-block;
}

.btn[disabled]{
  cursor: not-allowed;
  opacity: .72;
}

.refresh-btn{
  min-width: 104px;
  background: var(--bb-off-white);
  color: var(--bb-ink);
  border: 1px solid var(--color-border-strong);
  box-shadow: 0 4px 12px var(--brown-a10);
}

.refresh-btn[disabled]{
  min-width: 58px;
}

.top-actions .refresh-btn{
  height: 44px;
  color: var(--bb-ink);
}

.inline-loading{
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-neutral);
  font-size: 12px;
  font-weight: 800;
}

.btn-loading-content{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.btn .mini-spinner{
  width: 15px;
  height: 15px;
  border-width: 2px;
}

.sync-row{
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  margin: var(--space-4) 0 var(--space-3);
}

.sync-row.has-heading, .sync-row.has-actions{
  justify-content: space-between;
  align-items: flex-start;
}

.sync-heading{
  min-width: 0;
  max-width: 760px;
}

.sync-left{
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  min-width: 0;
}

.sync-heading-title{
  color: var(--color-text-strong);
  font-size: 26px;
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -.025em;
}

.sync-heading-subtitle{
  margin-top: 5px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.45;
  font-weight: 650;
}
.sync-pair{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
}

.sync-stock-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-2);
}

.sync-meta{
  color: var(--color-neutral);
  line-height: 1.15;
  text-align: right;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 800;
}

.sync-meta-label{
  display: block;
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 900;
}

.sync-meta-value{
  display: block;
  color: var(--color-text-strong);
  font-size: 13px;
  font-weight: 950;
}

.station-control-right{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 1 1 auto;
}

.station-control-left{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.error-card{
  max-width: 720px;
  margin: 80px auto;
  background: var(--color-surface);
  border: 1.5px solid #DC262633;
  border-radius: var(--radius-xxl);
  padding: 24px;
  box-shadow: 0 14px 40px var(--black-a12);
}

.pin-screen{
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  position: relative;
  overflow: hidden;
  min-height: 100dvh;
  background: var(--color-bg-dark);
  color: var(--color-on-dark);
  padding: 24px;
}

.pin-card{
  max-width: 460px;
  animation: fadeUp .22s ease;
  border-color: var(--primary-a18);
  position: relative;
  z-index: var(--z-2);
  width: min(100%,440px);
  background: var(--color-surface);
  border: 1px solid var(--primary-a22);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  padding: 24px;
}

.pin-logo{
  width: 60px;
  height: 60px;
  border-radius: var(--radius-lg);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 4px;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface-strong);
  box-shadow: 0 5px 12px var(--black-a06);
  margin-bottom: 16px;
}

.pin-logo img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform: scale(1.3);
}

.pin-input{
  padding: 16px 18px;
  width: 100%;
  min-height: 56px;
  margin: 18px 0 12px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  color: var(--color-text-strong);
  font-size: 30px;
  font-family: "SF Mono","Cascadia Code","Fira Code",Menlo,Consolas,monospace;
  font-variant-numeric: tabular-nums;
  font-weight: 900;
  text-align: center;
  letter-spacing: .28em;
}

.pin-input:focus{
  border-color: var(--color-focus);
  box-shadow: 0 0 0 4px var(--color-focus-ring);
  outline: none;
}

.pin-error{
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 800;
  margin-top: 10px;
  background: var(--color-danger-bg);
  color: var(--color-on-danger-bg);
  border: 1px solid var(--color-danger-border);
  border-radius: var(--radius-md);
}

.link-btn{
  background: transparent;
  color: var(--color-neutral);
  font-weight: 900;
  font-size: 12px;
  text-decoration: underline;
  box-shadow: none;
  padding: 0;
}

.locked-user-field{
  height: 44px;
  min-width: 210px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border-strong);
  background: #F9FAFB;
  color: #374151;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  box-shadow: 0 1px 0 var(--black-a02);
}

.topbar:before{
  display: none;
}

.topbar>*{
  position: relative;
  z-index: var(--z-1);
}

.topbar .page-title{
  color: var(--color-text-strong);
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: 1;
  margin: 0;
}

.topbar .page-subtitle{
  color: var(--color-text-muted);
  opacity: .9;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.42;
  margin-top: var(--space-3);
  max-width: 760px;
}

.banner-kicker{
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  opacity: .82;
  margin-bottom: 6px;
  color: var(--color-primary);
}

.top-actions .pill.light,.mobile-header .pill.light{
  background: var(--white-a14);
  color: var(--theme-contrast);
  border: 1.5px solid var(--white-a28);
  box-shadow: none;
}

.top-actions .pill.primary,.mobile-header .pill.primary{
  background: var(--white-a95);
  color: var(--color-text-strong);
  border: 1.5px solid var(--white-a45);
}

.locked-user-field,.locked-station-field{
  background: var(--white-a14);
  color: var(--theme-contrast);
  border-color: var(--white-a28);
  box-shadow: none;
}

.content-wrap .page{
  padding-top: 14px;
}

.sync-row .btn.white{
  background: var(--color-surface);
}

.top-chip-group{
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.gcb-list{
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gcb-card{
  position: relative;
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 24px var(--black-a06);
  padding: 16px 16px 14px;
  overflow: hidden;
}

.gcb-card-head{
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.gcb-title{
  font-size: 15px;
  font-weight: 950;
  letter-spacing: -.02em;
  color: var(--color-text-strong);
}

.gcb-dot{
  width: 12px;
  height: 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 1px 4px var(--black-a22);
  flex: 0 0 auto;
  margin-top: 2px;
}

.gcb-bar{
  height: 8px;
  background: var(--bb-off-white);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}

.gcb-fill{
  height: 100%;
  border-radius: var(--radius-pill);
}

.gcb-card-foot{
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.gcb-kg{
  font-family: "SF Mono","Cascadia Code","Fira Code",Menlo,Consolas,monospace;
  font-variant-numeric: tabular-nums;
  font-size: 20px;
  font-weight: 950;
  line-height: 1;
  color: var(--color-success);
}

.gcb-kg small{
  font-size: 11px;
  color: var(--color-neutral);
  font-family: var(--font-body);
  font-weight: 800;
  margin-left: 6px;
}

.gcb-date{
  font-size: 11px;
  color: var(--color-neutral);
  font-weight: 800;
  margin-top: 5px;
}

.gcb-reorder{
  font-size: 12px;
  color: var(--color-neutral);
  font-weight: 800;
  text-align: right;
  white-space: nowrap;
}

.roastery-note{
  font-size: 13px;
  color: var(--color-neutral);
  line-height: 1.5;
  margin-bottom: 12px;
}

.quick-action-dock{
  position: fixed;
  right: 24px;
  bottom: 18px;
  z-index: var(--z-context);
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  background: var(--color-nav-premium);
  border: 1px solid var(--off-white-a12);
  box-shadow: var(--shadow-lg);
  display: none;
}

.quick-action-btn{
  width: 46px;
  height: 46px;
  font-size: 22px;
  font-weight: 950;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 18px var(--black-a18);
  min-width: 48px;
  min-height: 48px;
  border-radius: var(--radius-pill);
}

.quick-action-btn.add{
  border: 1.5px solid #16A34A33;
  background: var(--color-success-bg);
  color: var(--color-on-success-bg);
}

.quick-action-btn.remove{
  border: 1.5px solid #DC262633;
  background: var(--color-danger);
  color: var(--color-text-inverse);
}

.quick-action-btn.check{
  border: 1.5px solid var(--bb-primary)33;
  background: var(--color-info-bg);
  color: var(--color-on-info-bg);
}

.pin-logo-link{
  display: inline-block;
  color: inherit;
  text-decoration: none;
  border-radius: var(--radius-xl);
}

.pin-logo-link:active{
  transform: scale(.985);
}

.pin-title{
  font-weight: 950;
  font-family: var(--font-heading);
  font-size: clamp(26px,4vw,32px);
  line-height: 1;
  letter-spacing: -.045em;
  color: var(--color-text-strong);
}

.pin-subtitle{
  max-width: 34rem;
  margin-top: 8px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-muted);
}

.pin-submit{
  width: 100%;
  margin-top: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  font-weight: 900;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: 1px solid var(--color-primary);
  box-shadow: none;
}

.pin-submit[disabled]{
  box-shadow: none;
  cursor: not-allowed;
  opacity: .55;
  background: var(--color-neutral-bg);
  color: var(--color-on-neutral-bg);
  border-color: var(--color-neutral-border);
}

.pin-back-hub{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 13px;
  font-weight: 900;
  background: var(--color-nav-premium);
  color: var(--color-on-nav);
  border: 1px solid var(--white-a10);
  box-shadow: none;
}

.pin-back-hub:active{
  transform: scale(.99);
}

.settings-title-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.settings-page-title{
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -.045em;
  color: var(--color-text-strong);
  line-height: 1;
}

.mobile-banner-controls,.mobile-banner-station{
  z-index: var(--z-5);
}

:focus-visible{
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.mobile-bottom-nav,.mobile-header{
  background: var(--color-nav-premium);
  color: var(--color-on-nav);
}

.soft-card{
  background: var(--color-surface-container-high);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.section-label,.field label{
  color: var(--color-text-muted);
}

.input,.select,.textarea,input,select,textarea{
  font-family: var(--font-body);
  min-height: 48px;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border-strong);
  font-size: 16px;
  color: var(--color-text);
  border-radius: var(--radius-md);
  background-color: var(--color-surface);
}

.select,select{
  appearance: none;
  -webkit-appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23784C1D' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
}

.input:focus,.select:focus,.textarea:focus,input:focus,select:focus,textarea:focus{
  border-color: var(--color-focus);
  box-shadow: 0 0 0 3px var(--color-focus-ring);
  outline: none;
}

.btn,.pill{
  min-height: var(--control-height-desktop);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 6px 14px var(--brown-a08);
}

.btn.orange,.pill.primary,.pin-submit{
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: transparent;
  box-shadow: 0 8px 18px var(--primary-a22);
}

.btn.white,.btn.black,.refresh-btn,.sidebar-hub-btn,.pin-back-hub{
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
  box-shadow: none;
}

.side-icon,.mobile-nav-btn b{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: currentColor;
}

.mobile-nav-btn svg,.side-icon svg,.box-svg-icon{
  display: block;
  stroke: currentColor;
}

.brand-title,.mobile-banner-title{
  font-family: var(--font-heading);
  font-weight: 900;
  letter-spacing: -.03em;
}

.brand-subtitle,.mobile-banner-sub{
  color: var(--color-on-nav-muted);
}

.topbar:before{
  display: none;
}

.view-banner,.theme-strip{
  display: none;
}

.locked-user-field,.locked-station-field,.mobile-station-chip,.sync-meta{
  background: var(--color-surface-container);
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.gcb-card,.compact-card{
  background: var(--color-surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}
.stat-value{
  font-size: clamp(26px,2.6vw,34px);
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-strong);
}

.stat-label{
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--color-text);
}

.stat-sub{
  font-size: 11px;
  margin-top: 2px;
  color: var(--color-text-muted);
}

.confirm-dialog{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
}

.topbar:after{
  display: none;
}

.topbar .banner-kicker{
  color: var(--bb-banner-text-strong);
  opacity: .92;
  font-size: 13px;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: var(--space-2);
}

.topbar .select,
.topbar select,
.topbar .locked-user-field,
.topbar .locked-station-field{
  min-height: 48px;
  background: var(--bb-page-banner-control-bg);
  color: var(--bb-page-banner-control-text);
  border: 1px solid rgba(255,247,237,.34);
  box-shadow: var(--shadow-sm);
}

.topbar .pill.light,
.topbar .btn.white{
  min-height: 48px;
  background: var(--off-white-a12);
  color: var(--color-text-inverse);
  border: 1px solid rgba(255,247,237,.30);
}

.topbar .pill.primary,
.topbar .btn.orange{
  min-height: 48px;
  background: var(--color-primary);
  color: var(--color-on-primary);
  border-color: transparent;
}

.topbar .pill.primary:hover,
.topbar .btn.orange:hover{
  background: var(--color-primary-hover);
}

.pending-dot,
.pending-title-chip:before{
  background: currentColor;
  box-shadow: none;
}

.stock-fill[style*="var(--bb-primary)"]{
  background: var(--color-warning);
}

.main-shell > .topbar,
.topbar{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: 10px 24px;
  gap: 12px;
  min-height: 68px;
  background: var(--color-nav-premium);
  position: relative;
}
.topbar,
.topbar *{
  color: var(--color-text-inverse);
}
.topbar .page-title{
  color: var(--color-text-inverse);
}
.topbar .banner-kicker{
  opacity: .6;
  color: var(--color-text-inverse);
}
.topbar .page-subtitle{
  opacity: .7;
  color: var(--color-text-inverse);
}
.topbar > *{ position: relative; z-index: var(--z-1); min-width: 0; }
.topbar .top-actions{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: auto;
}
.topbar .top-actions > *{ min-width: 0; }
.topbar .sync-meta{
  color: var(--off-white-a65);
}
.topbar .sync-meta-label{
  color: rgba(255,247,237,.5);
}
.topbar .sync-meta-value{
  color: var(--color-text-inverse);
}

.topbar .locked-station-dot{
  background: var(--bb-banner-text-strong);
  box-shadow: 0 0 0 4px color-mix(in srgb,var(--color-surface) 22%,transparent);
}

.topbar select,
.topbar .select{
  min-height: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background-color: var(--bb-banner-control-surface);
  color: var(--bb-banner-control-text);
  border: 1.5px solid color-mix(in srgb,var(--color-surface) 38%,transparent);
  box-shadow: none;
  font-size: 16px;
  font-weight: 700;
}

.sync-meta,
.locked-user-field.sync-meta,
.locked-station-field.sync-meta{
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
  min-height: 0;
  color: var(--color-text-muted);
  text-align: right;
  line-height: 1.12;
  white-space: nowrap;
}

.sync-row .btn.white,
.sync-row .refresh-btn,
.sync-pair .btn.white,
.sync-pair .refresh-btn{
  min-height: 48px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-strong);
  border: 1.5px solid var(--color-border-strong);
  box-shadow: none;
}

.topbar,
.topbar *{
  color: var(--color-text);
}

.topbar .banner-kicker,
.topbar .page-title,
.topbar .page-subtitle{
  color: var(--color-text-inverse);
}
.topbar .page-title{
  color: var(--color-text-inverse);
}
.topbar .banner-kicker{
  opacity: .6;
}
.topbar .page-subtitle{
  opacity: .7;
}

.topbar .locked-user-field,
.topbar .locked-user-field *,
.topbar .locked-station-field,
.topbar .locked-station-field *{
  color: var(--color-text);
}

.topbar .locked-station-dot,
.topbar .locked-user-field .locked-station-dot{
  background: var(--color-text-inverse);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--color-surface) 22%,transparent);
}

select,
.select{
  appearance: none;
  -webkit-appearance: none;
  background-image: var(--bb-select-chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  padding-right: 44px;
}

.topbar select,
.topbar .select,
.mobile-header select,
.mobile-header .select{
  background-color: var(--color-surface);
  background-image: var(--bb-select-chevron);
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 20px 20px;
  color: var(--color-text-strong);
  border: 1.5px solid color-mix(in srgb,var(--color-surface) 38%,transparent);
  box-shadow: none;
}

.topbar select *,
.topbar .select *{
  color: var(--color-text-strong);
}

.mobile-header .mobile-banner-title,
.mobile-header .mobile-banner-sub{
  color: var(--bb-banner-readable-text);
  -webkit-text-fill-color: var(--bb-banner-readable-text);
  text-shadow: none;
}

.main-shell > .topbar .locked-user-field,
.main-shell > .topbar .locked-user-field *,
.main-shell > .topbar .locked-station-field,
.main-shell > .topbar .locked-station-field *{
  -webkit-text-fill-color: unset;
}

.main-shell > .topbar .select,
.main-shell > .topbar select,
.mobile-header .select,
.mobile-header select{
  color: var(--color-text-strong);
  -webkit-text-fill-color: var(--color-text-strong);
}

.pending-panel,
.pending-manager-panel{
  background: var(--color-surface-container);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
}

.pending-count-pill{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text-strong);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  cursor: default;
}

.stat-card-tone-orange{
  background: var(--color-primary-soft);
  border-color: rgba(246,126,15,.32);
}

.stat-card-tone-orange .stat-label,.stat-card-tone-orange .stat-value{
  color: var(--color-primary);
}

.stat-card-tone-green{
  background: var(--color-success-bg);
  border-color: rgba(31,122,77,.26);
}

.stat-card-tone-green .stat-label,.stat-card-tone-green .stat-value{
  color: var(--color-success);
}

.stat-card-tone-yellow{
  background: var(--color-warning-bg);
  border-color: rgba(183,121,31,.28);
}

.stat-card-tone-yellow .stat-label,.stat-card-tone-yellow .stat-value{
  color: var(--color-warning);
}

.stat-card-tone-red{
  background: var(--color-danger-bg);
  border-color: rgba(180,35,24,.24);
}

.stat-card-tone-red .stat-label,.stat-card-tone-red .stat-value{
  color: var(--color-danger);
}

.stat-card-tone-neutral{
  background: var(--color-neutral-bg);
  border-color: rgba(58,42,32,.18);
}

.stat-card-tone-neutral .stat-label,.stat-card-tone-neutral .stat-value{
  color: var(--color-on-neutral-bg);
}

.stat-card-tone-info{
  background: var(--color-info-bg);
  border-color: rgba(37,99,235,.22);
}

.stat-card-tone-info .stat-label,.stat-card-tone-info .stat-value{
  color: var(--color-info);
}

*:focus-visible{
  outline: 3px solid var(--color-focus-ring);
  outline-offset: 2px;
}

.main-shell>.topbar{
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 10px 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: var(--color-nav-premium);
  position: relative;
}

.main-shell>.topbar>div:first-child{
  min-width: 0;
  max-width: 720px;
  flex: 1 1 auto;
}

.main-shell>.topbar .banner-kicker,
.main-shell>.topbar .page-title,
.main-shell>.topbar .page-subtitle{
  color: var(--color-text-inverse);
}
.main-shell>.topbar .banner-kicker{
  opacity: .6;
  font-size: 11px;
  letter-spacing: .18em;
  font-weight: 800;
  opacity: .95;
  margin: 0 0 5px;
  line-height: 1.1;
}

.main-shell>.topbar .page-title{
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.045em;
  margin: 0;
  max-width: 100%;
}

.main-shell>.topbar .page-subtitle{
  font-size: 14px;
  line-height: 1.35;
  font-weight: 500;
  opacity: .7;
  margin-top: 8px;
  color: var(--color-text-inverse);
  max-width: 680px;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.main-shell>.topbar .top-actions{
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  max-width: min(620px,48vw);
  flex-wrap: nowrap;
}

.main-shell>.topbar .top-chip-group{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: nowrap;
  max-width: 100%;
}

.main-shell>.topbar .locked-user-field,
.main-shell>.topbar .locked-station-field{
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  background: var(--white-a12);
  border: 1.5px solid var(--off-white-a25);
  color: var(--color-text-inverse);
  font-size: 13px;
  font-weight: 900;
  box-shadow: none;
}

.main-shell>.topbar .locked-user-field *,
.main-shell>.topbar .locked-station-field *{
  color: var(--color-text-inverse);
}

.main-shell>.topbar .locked-station-dot{
  background: var(--off-white-a60);
  box-shadow: 0 0 0 4px rgba(255,247,237,.22);
}

.main-shell>.topbar .station-selector-wrap,
.main-shell>.topbar .select{
  min-height: 44px;
  height: 44px;
  width: 300px;
  min-width: 260px;
  max-width: 340px;
  border-radius: var(--radius-lg);
  background-color: var(--white-a96);
  color: var(--color-text);
  border: 1.5px solid var(--white-a42);
  font-size: 14px;
  font-weight: 900;
  box-shadow: none;
}

.input,.select,input,select{
  min-height: var(--control-height-desktop);
}

.textarea,textarea{
  min-height: 96px;
}

select,.select{
  appearance: none;
  -webkit-appearance: none;
  padding-right: 40px;
  background-image: var(--bb-select-chevron);
  background-position: calc(100% - 14px) 50%;
  background-size: 20px 20px;
  background-repeat: no-repeat;
}

.btn.orange,.pill.primary{
  background: var(--color-primary);
  color: var(--color-on-primary);
  border: 1px solid var(--color-primary);
  box-shadow: 0 8px 18px var(--primary-a22);
}

.btn.white,.pill.light{
  background: var(--color-surface);
  color: var(--color-text);
  border: 1px solid var(--color-border-strong);
}

.btn.black,.pill.dark{
  background: var(--color-nav-premium);
  color: var(--color-text-inverse);
}

.card:not([class*='stat-card-tone-']),.gcb-card{
  background: var(--color-surface);
  border-color: var(--color-border);
  box-shadow: var(--shadow-sm);
}

.stock-row,.pending-row,.manager-table td{
  border-color: var(--color-divider);
}

.mono,.stat-value,.gcb-kg{
  font-family: "SF Mono","Cascadia Code","Fira Code",Menlo,Consolas,monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.03em;
}

.input-calculated,.calculated-field,.readonly-value{
  color: var(--color-text-strong);
  background: var(--color-surface-container-high);
  border: 1px dashed var(--color-border-strong);
}

.pin-card-loading{
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
}

.pin-loading-box{
  width: 100%;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  min-height: 56px;
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-lg);
  background: var(--color-surface-container);
  border: 1px solid var(--color-border);
  color: var(--color-text-strong);
  font-weight: 850;
}

.pending-panel-toggle{
  cursor: pointer;
  width: 100%;
  min-height: 56px;
  padding: 14px 16px;
  background: transparent;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  color: var(--color-on-warning-bg);
}

.pending-panel-toggle:disabled{
  cursor: default;
  opacity: 1;
}

.pending-count-text{
  margin-top: 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--color-on-neutral-bg);
  line-height: 1.35;
}

.pending-toggle-chev{
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--color-on-neutral-bg);
  transform: rotate(0deg);
  transition: transform .16s ease;
  flex: 0 0 auto;
}

.pending-panel.open .pending-toggle-chev{
  transform: rotate(180deg);
}

.pending-panel .select{
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,var(--color-text-muted) 50%),linear-gradient(135deg,var(--color-text-muted) 50%,transparent 50%);
  background-position: calc(100% - 18px) 50%,calc(100% - 12px) 50%;
  background-size: 6px 6px,6px 6px;
  background-repeat: no-repeat;
  padding-right: 40px;
}

.move-check-list .stock-row > div:first-child strong{
  font-size: 16px;
  font-weight: 950;
  color: var(--color-text-strong);
  line-height: 1.15;
}

.move-check-list .stock-row > div:first-child .mono{
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 700;
}

.restore-card-clean{
  position: relative;
  z-index: var(--z-1);
}

.move-check-list .stock-row .btn.compact-btn{
  min-height: 40px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  padding: 9px 12px;
}

.move-check-list .stock-row .btn.green{
  background: var(--color-success-bg);
  color: var(--color-on-success-bg);
  border: 1px solid var(--color-success-border);
}

.move-check-list .stock-row .btn.red{
  background: var(--color-danger);
  color: var(--color-text-inverse);
  border: 1px solid var(--color-danger);
}

.move-check-list .stock-row .btn.orange{
  background: var(--color-info-bg);
  color: var(--color-on-info-bg);
  border: 1px solid var(--color-info-border);
}

.pending-modal-backdrop{
  z-index: var(--z-modal);
}

.confirm-dialog,.pending-modal{
  z-index: var(--z-modal-over);
}

.pending-modal-backdrop{
  position: fixed;
  inset: 0;
  background: rgba(17,23,33,.62);
  z-index: var(--z-topmost);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  isolation: isolate;
  pointer-events: auto;
  overscroll-behavior: none;
  touch-action: none;
}

.pending-modal{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xxl);
  box-shadow: var(--shadow-lg);
  color: var(--color-text);
  animation: modalIn .18s ease;
  width: min(920px,calc(100vw - 36px));
  max-height: calc(100dvh - 36px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pending-modal-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
}

.pending-modal-title{
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--color-text-strong);
}

.pending-modal-subtitle{
  margin-top: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--color-text-muted);
}

.pending-modal-body{
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  display: block;
  padding: 12px 16px;
}

.pending-modal-footer{
  padding: 10px 16px 14px;
}

.segmented-btn{
  display: inline-grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0,1fr);
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xxl);
  background: var(--color-surface);
}
.segmented-btn button{
  min-height: 36px;
  padding: 6px 10px;
  border: none;
  border-radius: calc(var(--radius-xxl) - 6px);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 0.8125rem;
  font-weight: 800;
  cursor: pointer;
  line-height: 1.2;
  word-break: break-word;
  transition: background .15s, color .15s;
}
.segmented-btn button:hover{
  background: var(--color-surface-container-high);
  color: var(--color-text);
}
.segmented-btn button.active{
  background: var(--color-surface-container-high);
  color: var(--bb-coffee);
  font-weight: 900;
}

.pending-modal-toolbar{
  display: flex;
  margin-bottom: 2px;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.pending-request-card{
  padding: 10px 14px;
  display: grid;
  gap: 8px;
}

.pending-request-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pending-request-item{
  font-size: 15px;
  line-height: 1.2;
  color: var(--color-text-strong);
}

.pending-edit-grid{
  display: grid;
  grid-template-columns: minmax(110px,.6fr) minmax(80px,.35fr) minmax(150px,1fr) minmax(130px,.75fr) minmax(130px,.85fr);
  gap: 8px;
  align-items: end;
}

.pending-field label{
  display: block;
  margin-bottom: 3px;
}

.pending-row-actions{
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.pending-row-actions .btn{
  min-height: 36px;
}

.pin-screen::before{
  content: "";
  position: absolute;
  inset: auto -12% -22% -12%;
  height: 46vh;
  background: linear-gradient(90deg,var(--color-primary),var(--bb-copper));
  opacity: .95;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  transform: rotate(-2deg);
  pointer-events: none;
}

.pin-screen::after{
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -90px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-soft);
  opacity: .10;
  pointer-events: none;
}

.pin-submit,
.pin-back-hub{
  min-height: 48px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 800;
}

.pin-submit:hover{
  background: var(--color-primary-hover);
}


.loading-overlay{
  isolation: isolate;
  pointer-events: auto;
  position: fixed;
  inset: 0;
  z-index: var(--z-topmost);
  overscroll-behavior: contain;
  touch-action: auto;
}

.pending-modal,
.confirm-dialog,
.loading-card{
  pointer-events: auto;
  position: relative;
  z-index: var(--z-topmost-over);
  touch-action: auto;
}

.stock-filter-card{
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.stock-filter-card .stock-search-wrap{
  flex: 1 1 200px;
  min-width: 0;
}

.stock-filter-card .sort-control{
  margin-left: auto;
}

.stock-filter-card .status-filter-tabs{
  flex: 0 0 auto;
}

.stock-summary-grid{
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--color-divider);
  margin-bottom: 14px;
}

.recent-activity-section{
  margin-top: 18px;
}

.stock-search-wrap{
  position: relative;
}

.stock-search-wrap label{
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.stock-search-input{
  background: var(--color-surface);
  min-height: 40px;
  font-size: 16px;
  padding-right: 42px;
}

.search-clear-btn{
  position: absolute;
  right: 8px;
  bottom: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.search-clear-btn:hover{
  background: var(--color-surface-container);
  color: var(--color-text);
}

.status-filter-tabs{
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.status-filter-tab{
  min-height: 36px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
  transition: background .15s, border-color .15s;
}
.status-filter-tab:hover{
  background: var(--color-surface-container);
}

.status-filter-tab.active{
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-on-primary);
}
.stock-row.transfer-row .transfer-btn{
  min-width: 112px;
  max-width: 112px;
  flex-basis: 112px;
}

.stock-row.check-row .btn.orange{
  background: var(--color-info-bg);
  color: var(--color-on-info-bg);
  border: 1px solid var(--color-info-border);
  box-shadow: none;
}

.variance-preview{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  margin: -4px 0 14px;
}

.variance-preview>div{
  background: var(--color-surface-container-high);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 11px 12px;
}

.variance-preview span{
  display: block;
  font-size: 11px;
  font-weight: 900;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 4px;
}

.variance-preview strong{
  display: block;
  font-family: "SF Mono","Cascadia Code","Fira Code",Menlo,Consolas,monospace;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-text-strong);
  line-height: 1;
}

.variance-preview.ok>div:last-child{
  background: var(--color-success-bg);
  border-color: var(--color-success-border);
}

.variance-preview.critical>div:last-child{
  background: var(--color-danger-bg);
  border-color: var(--color-danger-border);
}

.stock-row.transfer-row{
  grid-template-columns: minmax(180px,1.1fr) minmax(160px,.8fr) minmax(72px,.25fr) minmax(64px,auto);
}

.stock-row.transfer-row>div:last-child{
  width: 252px;
}

.pending-request-group{
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface-container);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.pending-group-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-container-high);
}

.pending-group-title{
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 14px;
  font-weight: 950;
  color: var(--color-text-strong);
  line-height: 1.2;
}

.pending-group-sub{
  margin-top: 3px;
  font-size: 12px;
  font-weight: 750;
  color: var(--color-text-muted);
  line-height: 1.35;
}

.pending-group-count{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 22px;
  padding: 3px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  color: var(--color-text-strong);
  cursor: default;
}

.pending-group-body{
  display: block;
}
.pending-group-body > * + *{
  border-top: 1px solid var(--color-divider);
}

.pending-request-actions{
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.request-type-chip,.request-status-chip{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border);
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
  white-space: nowrap;
  cursor: default;
  box-shadow: none;
}

.request-type-chip.in{
  background: var(--color-success-bg);
  color: var(--color-on-success-bg);
  border-color: var(--color-success-border);
}

.request-type-chip.out{
  background: var(--color-danger-bg);
  color: var(--color-on-danger-bg);
  border-color: var(--color-danger-border);
}

.request-type-chip.check{
  background: var(--color-info-bg);
  color: var(--color-on-info-bg);
  border-color: var(--color-info-border);
}

.request-type-chip.transfer{
  background: var(--color-primary-soft);
  color: var(--bb-primary-900);
  border-color: var(--primary-a22);
}

.request-status-chip.pending{
  background: var(--color-warning-bg);
  color: var(--color-on-warning-bg);
  border-color: var(--color-warning-border);
}

.request-status-chip.approved,.request-status-chip.applied{
  background: var(--color-success-bg);
  color: var(--color-on-success-bg);
  border-color: var(--color-success-border);
}

.request-status-chip.rejected{
  background: var(--color-danger-bg);
  color: var(--color-on-danger-bg);
  border-color: var(--color-danger-border);
}

.request-status-chip.neutral{
  background: var(--color-neutral-bg);
  color: var(--color-on-neutral-bg);
  border-color: var(--color-neutral-border);
}

.pending-modal-summary{
  font-size: 12px;
  font-weight: 800;
  color: var(--color-text-muted);
  line-height: 1.35;
}

html.modal-open,
body.modal-open{
  overscroll-behavior: none;
  touch-action: none;
}


.loading-overlay{
  overscroll-behavior: none;
  touch-action: none;
}

.confirm-dialog,
.pending-modal,
.loading-card{
  touch-action: auto;
}

.modal-body,
.pending-modal-body{
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

html.bb-modal-lock,
body.bb-modal-lock{
  touch-action: none;
  overflow: hidden;
  overscroll-behavior: none;
}

body.bb-modal-lock{
  position: fixed;
  left: 0;
  right: 0;
  width: 100%;
}

.modal-body,
.pending-modal-body,
.confirm-body{
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.pending-modal-head,
.pending-modal-footer{
  flex: 0 0 auto;
}

.pending-modal-body > .pending-request-group + .pending-request-group,
.pending-modal-body > * + *{
  margin-top: 12px;
}

body.bb-modal-lock .app-shell,
body.bb-modal-lock .main-shell,
body.bb-modal-lock .content-scroll,
body.bb-modal-lock .content-wrap,
body.bb-modal-lock .page,
body.bb-modal-lock .mobile-header,
body.bb-modal-lock .mobile-bottom-nav,
body.bb-modal-lock .sidebar{
  overscroll-behavior: none;
  touch-action: none;
}

body.bb-modal-lock .content-scroll{
  overflow: hidden;
}

body:not(.bb-modal-lock) .app-shell,
body:not(.bb-modal-lock) .main-shell,
body:not(.bb-modal-lock) .content-scroll,
body:not(.bb-modal-lock) .content-wrap,
body:not(.bb-modal-lock) .page,
body:not(.bb-modal-lock) .mobile-header,
body:not(.bb-modal-lock) .mobile-bottom-nav,
body:not(.bb-modal-lock) .sidebar{
  touch-action: auto;
}

body.bb-modal-lock .app-shell{
  pointer-events: none;
}

body:not(.bb-modal-lock),
body:not(.bb-modal-lock) .app-shell,
body:not(.bb-modal-lock) .main-shell,
body:not(.bb-modal-lock) .content-scroll,
body:not(.bb-modal-lock) .content-wrap,
body:not(.bb-modal-lock) .page{
  pointer-events: auto;
  touch-action: auto;
}

.settings-version-text{
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  color: var(--color-text-muted);
}

.transfer-form-card{
  padding: 18px;
  margin-bottom: 14px;
}

.transfer-form-grid{
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 12px;
}

.transfer-form-grid-notes{
  grid-template-columns: 280px minmax(0,1fr);
  margin-top: 12px;
}

.transfer-impact-card{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 12px;
}
.transfer-impact-card strong{
  font-size: 21px;
  line-height: 1.2;
}
.transfer-impact-card .muted-small{
  font-size: 15px;
  margin-top: 1px;
}

.transfer-impact-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  min-width: 300px;
}

.transfer-impact-grid div{
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 10px;
}

.transfer-impact-grid span{
  display: block;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 800;
  margin-bottom: 4px;
}

.transfer-impact-grid strong{
  font-family: "SF Mono","Cascadia Code","Fira Code",Menlo,Consolas,monospace;
  font-variant-numeric: tabular-nums;
  font-size: 18px;
  font-weight: 900;
  color: var(--color-text-strong);
}

.transfer-submit-row{
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.danger-text{
  color: var(--color-danger);
}

.muted-small{
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 4px;
}

.card:not([class*='stat-card-tone-']),.stock-card,.settings-card,.transfer-form-card{
  background: var(--color-surface);
  border-color: var(--color-border);
}

input,select,textarea,.select,.input,.textarea{
  background-color: var(--color-surface);
  border-color: var(--color-border-strong);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
}

.stat-value,.gcb-kg,.mono,.metric-value,.kpi-value,.dashboard-number,.data-number{
  font-family: "SF Mono","Cascadia Code","Fira Code",Menlo,Consolas,monospace;
  font-variant-numeric: tabular-nums;
}

.stat-value,.gcb-kg,.metric-value,.kpi-value,.dashboard-number,.data-number{
  font-weight: 800;
  letter-spacing: -.03em;
  color: var(--color-text-strong);
}

.pin-card{
  background: var(--color-surface);
  border-color: var(--color-border);
}

.loading-overlay{
  z-index: var(--z-topmost);
}

.modal-card,.pending-modal,.confirm-modal{
  z-index: var(--z-topmost-over);
  background: var(--color-surface);
  border-color: var(--color-border);
}

.pending-panel .pending-title-chip{
  background: var(--color-warning-bg);
  border: 1px solid var(--color-warning-border);
  color: var(--color-on-warning-bg);
  box-shadow: none;
}

.pending-panel .pending-count-pill{
  background: var(--color-surface);
  border: 1px solid var(--color-warning-border);
  color: var(--color-on-warning-bg);
}

.pending-modal .pending-modal-subtitle,
.pending-group-sub{
  display: none;
}

.recent-activity-card{
  margin-top: var(--section-gap-desktop);
}

.sync-row .refresh-btn,
.sync-pair .refresh-btn,
.settings-title-row .refresh-btn{
  font-size: 14px;
  font-weight: 900;
}
@keyframes fadeUp{
from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}
}

@media (prefers-reduced-motion: reduce){
.content-wrap{animation:none!important}
}

@keyframes toast{
0%{opacity:0;transform:translateY(18px)}15%{opacity:1;transform:translateY(0)}85%{opacity:1;transform:translateY(0)}100%{opacity:0;transform:translateY(-10px)}
}

@keyframes modalIn{
from{opacity:0;transform:scale(.96)}to{opacity:1;transform:scale(1)}
}
@keyframes modal-slide-up{
from{opacity:0;transform:translateY(100%)}to{opacity:1;transform:translateY(0)}
}

@keyframes spin{
to{transform:rotate(360deg)}
}

@keyframes bottomSheetOpen{
from{opacity:0;transform:translateY(28px)}
  to{opacity:1;transform:translateY(0)}
}

@media (max-width:1180px){
.stock-row{
  grid-template-columns: minmax(170px,1.1fr) minmax(150px,.8fr) minmax(68px,.22fr) minmax(56px,auto);
  gap: 12px;
}

.stock-row>div:nth-child(2){
  min-width: 0;
}

.stock-row>div:last-child{
  width: 160px;
}

.stock-row .btn.compact-btn{
  min-width: 74px;
  max-width: 74px;
  flex-basis: 74px;
  padding: 9px 7px;
}
}

@media (max-width:980px){
.grid-4{
  grid-template-columns: 1fr 1fr;
}

.grid-3{
  grid-template-columns: repeat(3,1fr);
}

.stock-row{
  grid-template-columns: 1fr;
  gap: 8px;
}

.stock-row>div{
  text-align: left;
}

.stock-row>div:nth-child(2),.stock-row>div:last-child{
  min-width: 0;
}
  .confirm-backdrop{
    align-items: center;
    justify-content: center;
  }

.stock-row>div:last-child{
  justify-content: flex-start;
}
}

@media (max-width:820px){
  .admin-table-modal .staff-branch-card {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table-modal .modal-body .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .admin-table-modal .manager-table {
    min-width: 600px;
  }

  /* Mobile bottom-sheet modals */
  .pending-modal-backdrop{
    align-items: flex-end;
    padding: 0 12px;
  }
  .pending-modal{
    width: 100%;
    max-width: 100%;
    border-radius: var(--radius-xxl) var(--radius-xxl) 0 0;
    animation: modal-slide-up .3s cubic-bezier(.05,.7,.1,1) both;
  }
  .modal-backdrop{
    align-items: center;
    justify-content: center;
    padding: 18px;
    position: fixed;
    inset: 0;
    z-index: var(--z-settings);
  }
  .confirm-dialog,
  .modal.confirm{
    border-radius: var(--radius-xxl);
    animation: modalIn .17s ease both;
  }
  .modal-backdrop:has(.modal.confirm){
    align-items: center;
    justify-content: center;
  }

.pending-row-actions{
  gap: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pending-submit-top{
  display: none;
}

.pending-submit-bottom{
  display: flex;
  width: 100%;
  margin-top: 14px;
}
}

.confirm-dialog{
  border-radius: var(--radius-xxl);
  max-width: 460px;
}

.confirm-actions{
  padding-bottom: calc(20px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr;
}

.locked-station-field,.station-selector-wrap{
  width: 100%;
  min-width: 0;
}

.top-actions{
  display: none;
}

.app-shell{
  flex-direction: column;
  display: block;
  min-height: 100dvh;
  height: auto;
  max-height: none;
  overflow: visible;
  background: var(--color-bg);
}

.sidebar{
  display: none;
}

.main-shell{
  flex-direction: column;
  margin-left: 0;
  width: 100%;
  height: auto;
  max-height: none;
  padding-bottom: 0;
  background: var(--color-bg);
  min-height: 100vh;
  overflow: visible;
  display: block;
  padding-top: 104px;
}

.topbar{
  padding-bottom: 0;
  display: none;
}

.mobile-header{
  flex: 0 0 auto;
  align-items: stretch;
  background: var(--color-nav-premium);
  color: var(--color-on-nav);
  box-shadow: var(--shadow-md);
  overflow: visible;
  transform: translateZ(0);
  will-change: transform;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-panel);
  max-height: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 104px;
  padding: 8px 14px 9px;
  padding-top: calc(8px + env(safe-area-inset-top));
  gap: 6px;
}
.mobile-header::before{
  content: '';
  position: absolute;
  top: calc(env(safe-area-inset-top) * -1);
  left: 0;
  right: 0;
  height: calc(100% + env(safe-area-inset-top));
  background: var(--color-nav-premium);
  z-index: var(--z-behind);
}

.mobile-bottom-nav{
  flex: 0 0 auto;
  display: block;
  min-height: var(--mobile-nav-height);
  overflow: hidden;
  width: 100%;
  max-width: none;
  background: var(--color-nav-premium);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(17,23,33,.18);
  z-index: var(--z-sheet);
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 0;
  padding-bottom: calc(8px + env(safe-area-inset-bottom));
}

.content-wrap{
  width: 100%;
  max-width: none;
  display: block;
  min-height: 0;
}

.content-wrap .page{
  animation: none;
  padding: 14px 14px var(--mobile-nav-clearance);
  --z-behind: -1;
  --z-1: 1;
  --z-2: 2;
  --z-5: 5;
  --z-dropdown: 10;
  --z-sidebar: 20;
  --z-handle: 40;
  --z-banner: 60;
  --z-context: 85;
  --z-overlay: 1000;
  --z-loading: 2000;
  --z-sheet: 9200;
  --z-panel: 9700;
  --z-picker: 9800;
  --z-popover: 10000;
  --z-modal-backdrop: 50000;
  --z-modal: 120000;
  --z-modal-over: 120001;
  --z-topmost: 2147483000;
  --z-topmost-over: 2147483001;
  --z-settings: 2147483600;
  --z-max: 2147483640;
  --white-a44: var(--white-a44);
  --off-white-a12: var(--off-white-a12);
  max-width: 100%;
  overflow-x: hidden;
  padding-top: 10px;
  padding-bottom: var(--mobile-nav-clearance);
  --z-behind: -1;
  --z-1: 1;
  --z-2: 2;
  --z-5: 5;
  --z-dropdown: 10;
  --z-sidebar: 20;
  --z-handle: 40;
  --z-banner: 60;
  --z-context: 85;
  --z-overlay: 1000;
  --z-loading: 2000;
  --z-sheet: 9200;
  --z-panel: 9700;
  --z-picker: 9800;
  --z-popover: 10000;
  --z-modal-backdrop: 50000;
  --z-modal: 120000;
  --z-modal-over: 120001;
  --z-topmost: 2147483000;
  --z-topmost-over: 2147483001;
  --z-settings: 2147483600;
  --z-max: 2147483640;
  --white-a44: var(--white-a44);
  --off-white-a12: var(--off-white-a12);
}

.grid-2{
  grid-template-columns: 1fr;
}

.grid-4{
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 10px;
}

.toast{
  max-width: 92%;
  white-space: normal;
  text-align: center;
  bottom: calc(var(--mobile-nav-height) + env(safe-area-inset-bottom) + 16px);
}

.modal-backdrop{
  align-items: flex-end;
  padding: 0;
}

.modal{
  border-radius: var(--radius-xxl) var(--radius-xxl) 0 0;
  max-height: min(86dvh, calc(100dvh - 10px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.stock-row .btn.compact-btn{
  padding: 9px 12px;
  min-width: auto;
  flex: 0 0 auto;
}

.stock-row>div:last-child{
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.list-toolbar{
  align-items: flex-start;
}

.sort-control{
  width: 100%;
  min-width: 0;
}

.sort-control .select{
  flex: 1;
}

.stat-card-mobile-compact{
  --stat-card-min-height: 78px;
  --stat-card-padding: 10px 8px;
}

.stat-sub{
  display: none;
}
.stat-card-mobile-compact{
  background: transparent;
  box-shadow: none;
}
.stat-value{
  font-size: 26px;
  font-weight: 800;
}
.stat-label{
  font-size: 14px;
  font-weight: 800;
}

.view-banner{
  margin: 0 0 18px;
  display: none;
}

.view-banner-inner{
  padding: 15px 16px;
  align-items: flex-start;
  flex-direction: column;
  gap: 10px;
}

.view-title{
  font-size: 20px;
}

.view-code{
  font-size: 10px;
}

.locked-user-field{
  width: 100%;
  min-width: 0;
}

.sync-row{
  display: none;
}

.mobile-header:before{
  right: 0;
  top: 0;
  bottom: 0;
  content: "";
  position: absolute;
  inset: 0 0 0 auto;
  pointer-events: none;
  width: 48%;
  background: linear-gradient(90deg,transparent,color-mix(in srgb,var(--color-surface) 12%,transparent));
  display: none;
}

.mobile-header>*{
  position: relative;
  z-index: var(--z-1);
}

.mobile-banner-top{
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: var(--z-2);
  gap: 10px;
}

.mobile-banner-title{
  font-weight: 950;
  font-family: var(--font-heading);
  letter-spacing: -.03em;
  color: var(--color-text-inverse);
  -webkit-text-fill-color: var(--color-text-inverse);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 21px;
  line-height: 1.04;
  margin: 0;
}

.mobile-banner-sub{
  line-height: 1.25;
  font-weight: 600;
  margin-top: 4px;
  font-size: 12px;
  color: var(--color-text-inverse);
  opacity: .9;
  display: none;
}

.mobile-banner-station{
  align-items: center;
  display: block;
  flex: 1 1 auto;
  min-width: 0;
}

.mobile-banner-station .select{
  height: 42px;
  background-color: rgba(255,255,255,.94);
  border-color: var(--white-a45);
  color: var(--color-text-strong);
  font-size: 13px;
  font-weight: 900;
  appearance: none;
  -webkit-appearance: none;
  background-image: linear-gradient(45deg,transparent 50%,var(--color-text-muted) 50%),linear-gradient(135deg,var(--color-text-muted) 50%,transparent 50%);
  background-position: calc(100% - 22px) 50%,calc(100% - 14px) 50%;
  background-size: 8px 8px,8px 8px;
  background-repeat: no-repeat;
}

.mobile-station-chip{
  height: 42px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--white-a34);
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 10px;
  display: flex;
  align-items: center;
  color: var(--color-text-inverse);
  background: var(--white-a16);
}

.mobile-banner-actions{
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: center;
}

.mobile-banner-actions.single-action{
  grid-template-columns: 1fr;
}

.mobile-header .brand-mark{
  flex: 0 0 auto;
  background: var(--color-surface);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
}

.sync-row .btn{
  padding: 10px 12px;
}

.gcb-card{
  padding: 14px;
}

.gcb-card-foot{
  align-items: flex-start;
}

.gcb-kg{
  font-size: 18px;
}

.gcb-reorder{
  font-size: 11px;
}

.mobile-banner-controls{
  align-items: center;
  gap: 8px;
  display: flex;
  width: 100%;
  position: relative;
  z-index: var(--z-1);
  margin-top: 0;
}

.mobile-sync-control{
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
  min-width: 0;
}

.mobile-sync-copy{
  display: grid;
  gap: 1px;
  min-width: 0;
  color: var(--color-text-inverse);
  text-align: right;
  line-height: 1.05;
}

.mobile-sync-copy span{
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
  opacity: .72;
}

.mobile-sync-copy strong{
  max-width: 76px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.mobile-refresh-btn{
  width: 40px;
  height: 40px;
  min-height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background: var(--white-a96);
  color: var(--color-text-strong);
  -webkit-text-fill-color: var(--color-text-strong);
  border: 1px solid var(--white-a44);
  box-shadow: var(--shadow-sm);
  font-size: 18px;
  font-weight: 950;
  padding: 0;
}

.mobile-refresh-btn[disabled]{
  opacity: .72;
}

.mobile-banner-station .select,.mobile-station-chip{
  width: 100%;
  min-height: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  background-color: var(--color-surface);
  color: var(--color-text-strong);
  -webkit-text-fill-color: var(--color-text-strong);
  border: 1px solid var(--white-a44);
  font-size: 13px;
  font-weight: 900;
  padding: 8px 38px 8px 13px;
  box-shadow: var(--shadow-sm);
}

.station-control-left{
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.station-control-left .btn{
  padding: 10px 10px;
  font-size: 12px;
  white-space: nowrap;
  flex: 0 1 auto;
}

.station-control-right{
  flex: 0 0 auto;
  gap: 8px;
  min-width: 0;
}

.sync-pair{
  gap: var(--space-2);
}

.sync-stock-actions{
  display: none;
}

.sync-meta{
  line-height: 1.08;
  white-space: nowrap;
  text-align: right;
  font-size: 12px;
  color: var(--color-text-muted);
  background: transparent;
  border: 0;
}

.sync-meta-label,.sync-meta-value{
  display: block;
}

.sync-row .btn.white,.station-control-right .btn.white{
  padding: 10px 10px;
  font-size: 12px;
  white-space: nowrap;
}

.movement-list .stock-row,.check-list .stock-row{
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 6px 10px;
  align-items: center;
  padding: 12px 0;
}

.movement-list .stock-row>div:nth-child(1),
      .check-list .stock-row>div:nth-child(1){
  grid-column: 1;
  grid-row: 1;
}

.movement-list .stock-row>div:nth-child(2),
      .check-list .stock-row>div:nth-child(2){
  display: none;
}

.movement-list .stock-row>div:nth-child(3),
      .check-list .stock-row>div:nth-child(3){
  grid-column: 1;
  grid-row: 2;
}

.movement-list .stock-row>div:last-child,
      .check-list .stock-row>div:last-child{
  grid-column: 2;
  grid-row: 1 / span 2;
  width: auto;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  align-self: center;
  flex-wrap: nowrap;
  gap: 6px;
  overflow: visible;
}

.movement-list .stock-row>div:last-child{
  flex-direction: column;
}

.movement-list .stock-row .btn.compact-btn,
      .check-list .stock-row .btn.compact-btn{
  min-width: 70px;
  max-width: 76px;
  flex: 0 0 auto;
  padding: 8px 8px;
  font-size: 12px;
  border-radius: var(--radius-pill);
}

.check-list .stock-row .btn.compact-btn{
  min-width: 78px;
}

.movement-list .stock-row .mono,.check-list .stock-row .mono{
  font-size: 18px;
}

.quick-action-dock{
  right: 50%;
  transform: translateX(50%);
  padding: 8px;
  border-radius: var(--radius-xl);
  gap: 8px;
  bottom: calc(var(--mobile-nav-clearance) - 52px);
  --z-behind: -1;
  --z-1: 1;
  --z-2: 2;
  --z-5: 5;
  --z-dropdown: 10;
  --z-sidebar: 20;
  --z-handle: 40;
  --z-banner: 60;
  --z-context: 85;
  --z-overlay: 1000;
  --z-loading: 2000;
  --z-sheet: 9200;
  --z-panel: 9700;
  --z-picker: 9800;
  --z-popover: 10000;
  --z-modal-backdrop: 50000;
  --z-modal: 120000;
  --z-modal-over: 120001;
  --z-topmost: 2147483000;
  --z-topmost-over: 2147483001;
  --z-settings: 2147483600;
  --z-max: 2147483640;
  --white-a44: var(--white-a44);
  --off-white-a12: var(--off-white-a12);
}

.quick-action-btn{
  width: 44px;
  height: 44px;
  border-radius: var(--radius-lg);
  font-size: 20px;
}

.move-check-list .stock-row{
  display: grid;
  grid-template-rows: auto auto;
  gap: 3px 10px;
  align-items: center;
  padding: 12px 0;
  grid-template-columns: minmax(0,1fr) 82px;
}

.move-check-list .stock-row>div:nth-child(1){
  grid-column: 1;
  grid-row: 1;
  text-align: left;
  align-self: end;
}

.move-check-list .stock-row>div:nth-child(2){
  display: none;
}

.move-check-list .stock-row>div:nth-child(3){
  grid-column: 1;
  grid-row: 2;
  text-align: left;
  align-self: start;
}

.move-check-list .stock-row>div:last-child{
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  overflow: visible;
  align-self: center;
  grid-column: 2;
  grid-row: 1 / span 2;
  justify-self: end;
  width: 82px;
}

.move-check-list .stock-row .btn.compact-btn{
  padding: 8px 8px;
  font-size: 12px;
  border-radius: var(--radius-pill);
  flex: 0 0 auto;
  width: 78px;
  min-width: 78px;
  max-width: 78px;
  min-height: 48px;
}

.move-check-list .stock-row .mono{
  font-size: 18px;
}

.move-check-list .stock-row strong{
  font-size: 13px;
}

.settings-title-row{
  align-items: flex-start;
}

.settings-title-row .sync-pair{
  display: none;
}

.settings-page-title{
  font-size: 26px;
}

html,body,#root{
  overscroll-behavior: none;
  overflow: hidden;
  height: auto;
  overflow-y: auto;
  background: var(--color-bg);
  overscroll-behavior-y: auto;
  min-height: 100%;
  overflow-x: hidden;
}

body{
  overflow: hidden;
  position: static;
  inset: auto;
  width: auto;
  height: auto;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: auto;
}

.content-scroll{
  position: relative;
  z-index: var(--z-1);
  flex: 1 1 auto;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scroll-padding-bottom: var(--mobile-nav-clearance);
  --z-behind: -1;
  --z-1: 1;
  --z-2: 2;
  --z-5: 5;
  --z-dropdown: 10;
  --z-sidebar: 20;
  --z-handle: 40;
  --z-banner: 60;
  --z-context: 85;
  --z-overlay: 1000;
  --z-loading: 2000;
  --z-sheet: 9200;
  --z-panel: 9700;
  --z-picker: 9800;
  --z-popover: 10000;
  --z-modal-backdrop: 50000;
  --z-modal: 120000;
  --z-modal-over: 120001;
  --z-topmost: 2147483000;
  --z-topmost-over: 2147483001;
  --z-settings: 2147483600;
  --z-max: 2147483640;
  --white-a44: var(--white-a44);
  --off-white-a12: var(--off-white-a12);
  display: block;
  max-height: none;
  overscroll-behavior-y: auto;
  touch-action: auto;
  background: var(--color-bg);
  overflow: visible;
  height: auto;
  min-height: 0;
}

.mobile-bottom-nav::-webkit-scrollbar{
  display: none;
}

.mobile-nav-inner{
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-x: contain;
  overflow-x: visible;
  overflow-y: hidden;
  overflow: visible;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(var(--nav-count),minmax(0,1fr));
  gap: 6px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.mobile-nav-inner::-webkit-scrollbar{
  display: none;
}

.mobile-nav-btn{
  font-weight: 800;
  max-width: none;
  flex: none;
  line-height: 1.05;
  white-space: nowrap;
  border-radius: var(--radius-lg);
  padding: 6px 4px;
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--off-white-a72);
  background: transparent;
  min-height: 48px;
  width: 100%;
  min-width: 0;
}

.mobile-nav-btn b{
  font-size: 0;
  line-height: 1;
  display: flex;
}

.content-wrap:after{
  height: var(--mobile-nav-clearance);
  --z-behind: -1;
  --z-1: 1;
  --z-2: 2;
  --z-5: 5;
  --z-dropdown: 10;
  --z-sidebar: 20;
  --z-handle: 40;
  --z-banner: 60;
  --z-context: 85;
  --z-overlay: 1000;
  --z-loading: 2000;
  --z-sheet: 9200;
  --z-panel: 9700;
  --z-picker: 9800;
  --z-popover: 10000;
  --z-modal-backdrop: 50000;
  --z-modal: 120000;
  --z-modal-over: 120001;
  --z-topmost: 2147483000;
  --z-topmost-over: 2147483001;
  --z-settings: 2147483600;
  --z-max: 2147483640;
  --white-a44: var(--white-a44);
  --off-white-a12: var(--off-white-a12);
  flex: 0 0 auto;
  display: none;
  content: none;
}

.mobile-nav-btn svg{
  width: 19px;
  height: 19px;
  stroke: currentColor;
}

.btn,.pill{
  min-height: 48px;
}

.mobile-header:after{
  content: "";
  position: absolute;
  left: var(--space-4);
  right: var(--space-4);
  bottom: 0;
  height: 5px;
  border-radius: var(--radius-pill) var(--radius-pill) 0 0;
  background: linear-gradient(90deg,var(--color-primary),var(--bb-copper));
  pointer-events: none;
  display: none;
}

.mobile-banner-station .select,
  .mobile-station-chip{
  background: var(--color-surface);
  border: 1px solid color-mix(in srgb,var(--color-surface) 48%,transparent);
  font-weight: 900;
  color: var(--color-text-strong);
  background-color: var(--color-surface);
  background-image: var(--bb-select-chevron);
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px 18px;
  padding: 8px 36px 8px 13px;
  min-height: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  line-height: 1.2;
}

.btn,.pill,button.btn{
  min-height: 48px;
}

.main-shell > .topbar,
  .topbar{
  display: none;
}

.mobile-header > *{
  position: relative;
  z-index: var(--z-1);
}

.sync-meta-label{
  font-size: 11px;
}

.sync-meta-value{
  font-size: 12px;
}

.mobile-header,
  .mobile-header *{
  color: var(--color-text-inverse);
}

.mobile-station-chip,
  .mobile-station-chip *{
  color: var(--color-text-inverse);
}

.mobile-header *{
  color: inherit;
}

.mobile-nav-btn.active{
  background: var(--color-primary);
  color: #fff;
}

.btn,.pill,.input,.select,.textarea,input,select,textarea,.mobile-station-chip,.xbtn{
  min-height: 48px;
  font-size: 16px;
}

.mobile-header .select,
.mobile-header .mobile-station-chip,
.mobile-header .mobile-refresh-btn{
  min-height: 40px;
  height: 40px;
  font-size: 13px;
  color: var(--color-text-strong);
  -webkit-text-fill-color: var(--color-text-strong);
}

.mobile-header .mobile-refresh-btn{
  width: 40px;
  padding: 0;
  font-size: 18px;
}

.btn,.pill{
  padding: 11px 14px;
}

.xbtn{
  width: 48px;
  height: 48px;
}

.grid-3{
  grid-template-columns: repeat(3,1fr);
}

.card:not(.station-stock-list-card):not(.check-list){
  border-radius: var(--radius-xl);
  max-width: 100%;
  overflow: hidden;
}

.mobile-header:after{
  display: none;
}

.mobile-banner-brand{
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.mobile-banner-title-wrap{
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mobile-header .brand-account-btn{
  min-height: auto;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mobile-user-chip{
  max-width: 34%;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 0 1 auto;
  min-height: 32px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 900;
  background: var(--white-a14);
  color: var(--color-text-inverse);
  -webkit-text-fill-color: var(--color-text-inverse);
  border: 1px solid var(--white-a28);
  box-shadow: none;
}

.mobile-user-chip .locked-station-dot{
  flex: 0 0 auto;
  background: var(--color-text-inverse);
  box-shadow: 0 0 0 3px var(--white-a20);
}

.mobile-account-wrap{
  position: relative;
  z-index: var(--z-popover);
}

.manager-table{
  width: 100%;
  min-width: 0;
  table-layout: auto;
}

.table-wrap{
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

.manager-table th,.manager-table td{
  padding: 8px 6px;
  font-size: 12px;
  white-space: normal;
}

.recent-activity-card .manager-table td:last-child{
  min-width: 116px;
}

.manager-page-recent-table th:first-child,.manager-page-recent-table td:first-child{
  min-width: 112px;
}

.grid-2,.grid-4{
  max-width: 100%;
  overflow-x: hidden;
}

.pending-panel-toggle{
  min-height: 48px;
  padding: 14px;
}

.main-shell > .topbar,
  .main-shell>.topbar,
  .topbar{
  display: none;
  visibility: hidden;
  height: 0;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
  pointer-events: none;
}

.content-wrap .view-banner,
  .content-wrap .theme-strip,
  .view-banner,
  .theme-strip{
  display: none;
  visibility: hidden;
  height: 0;
  min-height: 0;
  max-height: 0;
  overflow: hidden;
  padding: 0;
  margin: 0;
}

.pending-modal-backdrop{
  align-items: flex-end;
  padding: 0;
}

.pending-modal{
  width: 100%;
  height: min(88dvh, calc(100dvh - 10px));
  max-height: calc(100dvh - 10px);
  border-radius: var(--radius-xxl) var(--radius-xxl) 0 0;
}

.pending-modal-head{
  padding: 16px;
}

.pending-modal-body{
  gap: 12px;
  padding: 14px;
}

.pending-modal-footer{
  padding: 12px 14px calc(14px + env(safe-area-inset-bottom));
}

.pending-edit-grid{
  gap: 9px;
  grid-template-columns: 2fr 1fr;
}

.pending-field-item,.pending-field-reason,.pending-field-remarks{
  grid-column: 1/-1;
}

.pending-row-actions .btn,.pending-submit-bottom,.pending-submit-top{
  min-height: 48px;
  width: 100%;
}

.pin-screen{
  align-items: center;
  padding: 20px 16px;
}

.pin-card{
  width: 100%;
  max-width: 430px;
  padding: 22px;
}

.pin-title{
  font-size: 28px;
}

.pending-field-type,
  .pending-field-qty{
  grid-column: auto;
}


  .modal-backdrop{
  position: fixed;
  inset: 0;
  z-index: var(--z-settings);
}

.stock-filter-card{
  grid-template-columns: 1fr;
  gap: 9px;
  padding: 10px;
  margin-bottom: 12px;
}

.stock-search-wrap label{
  margin-bottom: 4px;
  font-size: 10px;
}

.stock-search-input{
  min-height: 44px;
}

.status-filter-tab{
  min-height: 38px;
  padding: 7px 8px;
  font-size: 11.5px;
}

.status-filter-tabs{
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  width: 100%;
  gap: 6px;
}
.stock-row.transfer-row .transfer-btn{
  min-width: 0;
  max-width: none;
  flex: 1 1 0;
  width: 100%;
}

.variance-preview{
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.variance-preview>div:last-child{
  grid-column: 1 / -1;
}

.variance-preview strong{
  font-size: 17px;
}

.modal .select,.modal .input,.modal .textarea{
  font-size: 16px;
  min-height: 48px;
}

.stock-row.transfer-row{
  grid-template-columns: 1fr;
}

.stock-row.transfer-row>div:last-child{
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.pending-group-head{
  align-items: flex-start;
  padding: 12px;
}

.pending-group-title{
  font-size: 13px;
}

.pending-group-sub{
  font-size: 11px;
}

.pending-group-body{
  padding: 10px;
  gap: 10px;
}

.pending-request-head{
  gap: 8px;
}

.pending-request-actions{
  justify-content: flex-start;
}

.pending-modal-toolbar{
  display: block;
}

.pending-modal-summary{
  margin-bottom: 10px;
}

.modal-head{
  flex: 0 0 auto;
}

.modal-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

body:not(.bb-modal-lock),
  body:not(.bb-modal-lock) .content-scroll,
  body:not(.bb-modal-lock) .content-wrap,
  body:not(.bb-modal-lock) .page{
  overflow-y: visible;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}

body:not(.bb-modal-lock),
  body:not(.bb-modal-lock) .app-shell,
  body:not(.bb-modal-lock) .main-shell,
  body:not(.bb-modal-lock) .content-scroll,
  body:not(.bb-modal-lock) .content-wrap,
  body:not(.bb-modal-lock) .page{
  overflow: visible;
  pointer-events: auto;
  touch-action: auto;
  -webkit-overflow-scrolling: touch;
}

.transfer-form-card{
  padding: 14px;
}

.transfer-form-grid,.transfer-form-grid-notes{
  grid-template-columns: 1fr;
  gap: 10px;
}

.transfer-impact-card{
  align-items: stretch;
  flex-direction: column;
}

.transfer-impact-grid{
  min-width: 0;
  width: 100%;
  grid-template-columns: 1fr 1fr;
}

.transfer-submit-row .btn{
  width: 100%;
}

input,select,textarea,.select,.input,.textarea,.btn,.pill{
  min-height: var(--control-height-mobile);
}

  .pending-modal-backdrop{
  align-items: flex-end;
  justify-content: center;
  padding-left: 12px;
  padding-right: 12px;
}

  .pending-modal{
  width: 100%;
  max-width: 100%;
}

.modal-backdrop .modal,
  .pending-modal-backdrop .pending-modal{
  margin-left: 0;
  margin-right: 0;
}
.recent-activity-card{
  margin-top: var(--section-gap-mobile);
}

.mobile-banner-kicker{
  display: block;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--color-text-inverse);
  opacity: .78;
  line-height: 1;
}

.mobile-header .brand-mark,
  .brand-account-btn .brand-mark{
  border: 1.5px solid rgba(255,247,237,.58);
  box-shadow: 0 0 0 1px var(--ink-a08), var(--shadow-sm);
}

.modal-backdrop .modal,
  .pending-modal-backdrop .pending-modal{
  animation: bottomSheetOpen .24s cubic-bezier(.2,.8,.2,1) both;
}
  .stock-category-list{
    padding: 0;
  }

  html,body,#root{
    background: var(--color-nav-premium);
  }

  .stock-category-card{
    padding: 10px;
  }

  .stock-category-list .list-toolbar{
    margin-bottom: 8px;
  }
  .stock-category-list .stock-row{
    display: grid;
    grid-template-columns: minmax(0,1fr) auto auto;
    gap: 4px 8px;
    align-items: center;
    padding: 10px 0;
  }

  .stock-category-list .stock-row > div:first-child{
    grid-column: 1;
    grid-row: 1;
  }

  .stock-category-list .stock-row-title-line{
    display: grid;
    grid-template-columns: minmax(0,1fr) auto;
    align-items: start;
    gap: 8px;
  }

  .stock-category-list .stock-row-status-line{
    justify-content: flex-end;
    gap: 6px;
  }

  .stock-category-list .stock-row > div:first-child strong{
    min-width: 0;
    font-size: 16px !important;
    line-height: 1.12;
    letter-spacing: -.01em;
  }

  .stock-category-list .stock-row > div:first-child .mono{
    font-size: 12px !important;
    line-height: 1.3;
    color: var(--color-text-muted) !important;
  }

  .stock-category-list .stock-row > div:nth-child(2){
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .stock-category-list .stock-row > div:nth-child(3){
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0;
    grid-column: 2;
    grid-row: 1;
    margin-top: 0;
  }

  .stock-category-list .stock-row > div:nth-child(3) .mono{
    font-size: 22px;
    line-height: 1;
  }

  .stock-category-list .stock-row > div:nth-child(3) > div:last-child{
    font-size: 10px !important;
    line-height: 1.1;
    color: var(--color-text-muted) !important;
  }

  .stock-category-list .stock-row > div:last-child{
    width: auto;
    justify-content: flex-end;
    gap: 0;
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
    align-self: center;
  }

  .stock-category-list .stock-row .btn.compact-btn{
    display: grid;
    place-items: center;
    width: 38px;
    min-width: 38px;
    max-width: 38px;
    height: 36px;
    min-height: 36px;
    flex: 0 0 38px;
    padding: 0 !important;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 0;
    line-height: 0;
  }

  .stock-category-list .stock-row .btn.compact-btn + .btn.compact-btn{
    border-left: 1px solid var(--color-divider);
  }

  .stock-category-list .stock-row .btn.green.compact-btn{
    color: var(--color-success);
    -webkit-text-fill-color: var(--color-success);
  }

  .stock-category-list .stock-row .btn.red.compact-btn{
    color: var(--bb-coffee);
    -webkit-text-fill-color: var(--bb-coffee);
  }

  .stock-category-list .stock-row.check-row .btn.compact-btn{
    width: auto;
    min-width: 52px;
    max-width: none;
    height: auto;
    min-height: 36px;
    flex: 0 0 auto;
    padding: 6px 10px;
    border: 1px solid var(--color-info-border);
    border-radius: var(--radius-lg);
    background: var(--color-info-bg);
    box-shadow: none;
    font-size: 12px;
    line-height: 1.2;
    color: var(--color-on-info-bg);
    -webkit-text-fill-color: var(--color-on-info-bg);
  }

  .stock-category-list .stock-row.check-row .btn.compact-btn::before{
    content: none;
  }

  .stock-category-list .stock-row .btn.green.compact-btn::before,
  .stock-category-list .stock-row .btn.red.compact-btn::before{
    display: block;
    width: 100%;
    height: 36px;
    font-weight: 950;
    line-height: 34px;
    text-align: center;
  }

  .stock-category-list .stock-row .btn.green.compact-btn::before{
    content: '+';
    font-size: 23px;
  }

  .stock-category-list .stock-row .btn.red.compact-btn::before{
    content: '−';
    font-size: 24px;
  }
/* Utility classes extracted from repeated inline styles */
.w-50{width:50px;}
.mb-14{margin-bottom:14px;}
.modal-title{font-weight:900;font-size:20px;}
.modal-subtitle{font-size:12px;color:var(--color-neutral);margin-top:3px;}
.compact-control{padding:6px 12px;font-size:0.75rem;min-height:32px;}
.inline-spinner{width:14px;height:14px;border-width:2px;border-top-color:#fff;}
.section-title{font-weight:900;font-size:1.25rem;}
.text-white{color:#fff;}
.card-pad{padding:18px;}
.grid-2col{display:grid;grid-template-columns:1fr 1fr;gap:12px;}
.flex-end{display:flex;gap:10px;justify-content:flex-end;}
.flex-center{display:flex;gap:8px;align-items:center;}
.btn-compact{padding:6px 14px;font-size:0.8125rem;}
.modal-scroll{max-width:460px;overflow-y:auto;max-height:88vh;}
.btn-pad-sm{padding:9px 10px;}
.text-white{color:#fff;}
.w-80{width:80px;}
.w-48{width:48px;}
.btn-xs{padding:4px 8px;font-size:0.75rem;}
.modal-body-scroll{padding:4px 16px 16px;max-height:62vh;overflow-y:auto;}
.date-input{min-height:32px;font-size:0.75rem;padding:4px 8px;width:140px;}
.mt-8{margin-top:8px;}
.flex-bar{display:flex;gap:8px;margin-bottom:10px;}
.modal-actions{display:flex;gap:10px;margin-top:4px;justify-content:flex-end;}
}

@media (min-width:821px){
  .stat-card-mobile-compact{
    --stat-card-min-height: auto;
    --stat-card-padding: 0;
    border-radius: var(--radius-lg);
    background: transparent;
    box-shadow: none;
  }
  .stat-value{
    font-size: clamp(32px,3vw,40px);
    font-weight: 800;
  }
  .stat-label{
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 2px;
  }
  .stat-sub{
    display: none;
  }
  .btn{
    min-height: 36px;
    padding: 9px 12px;
  }
  .manager-table th{
    padding: 8px 10px;
  }
  .manager-table td{
    padding: 8px 10px;
  }
.pending-submit-bottom{
  display: none;
}

.content-wrap .page{
  padding: 14px 24px 24px;
  padding-top: 14px;
}

.mobile-header{
  display: none;
}

.content-scroll{
  padding-top: 0;
}

.topbar .top-actions{
  width: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  z-index: var(--z-1);
  flex: 0 1 620px;
  min-width: 360px;
  max-width: 720px;
  gap: 8px;
}

.topbar .top-chip-group{
  width: auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: flex-end;
}

.main-shell>.topbar .locked-user-field,
.topbar .locked-user-field{
  box-shadow: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 0 0 230px;
  width: 230px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 900;
  background: var(--white-a12);
  color: var(--color-text-inverse);
  border: 1.5px solid var(--off-white-a25);
}

.topbar .locked-station-field,
  .topbar .station-selector-wrap,
  .topbar .select{
  width: 100%;
  background-color: var(--color-surface);
  color: var(--color-text-strong);
  border: 1.5px solid color-mix(in srgb,var(--color-surface) 38%,transparent);
  box-shadow: none;
  flex: 1 1 300px;
  min-width: 260px;
  max-width: 420px;
  min-height: 44px;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 800;
}

.topbar .locked-station-dot{
  flex: 0 0 auto;
  background: var(--color-text-inverse);
  box-shadow: 0 0 0 3px color-mix(in srgb,var(--color-surface) 20%,transparent);
}

.theme-strip{
  display: none;
}

.sync-row{
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin: 0 0 var(--space-4);
}

.sync-pair{
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

  /* Desktop card radius reduction */
  .card,.stock-category-card,.transfer-form-card,.recent-activity-card,.gcb-card,.pending-panel,.soft-card,.admin-table-modal{
    border-radius: var(--radius-lg);
  }
  .confirm-dialog,.pending-modal,.pin-card,.error-card{
    border-radius: var(--radius-xl);
  }
  .table-wrap{
    border-radius: var(--radius-lg);
  }
  .input,.select,.textarea,input,select,textarea{
    min-height: 36px;
    padding: 8px 10px;
    font-size: 14px;
  }
  .pending-modal{
    max-width: 760px;
  }
  .pending-submit-bottom{
    display: none;
  }
}

@media (min-width:821px) and (max-width:1240px){
.topbar{
  padding: 18px 22px;
  gap: 14px;
}

.topbar .page-title{
  font-size: 22px;
}

.topbar .top-actions{
  flex-basis: 560px;
  min-width: 340px;
}

.topbar .locked-user-field{
  flex-basis: 210px;
  width: 210px;
}

.topbar .station-selector-wrap,.topbar .select{
  min-width: 240px;
}
}

@media (max-width:480px){
.mobile-banner-title{
  font-size: 22px;
}

.mobile-user-chip{
  max-width: 34%;
  font-size: 10px;
  padding-inline: 8px;
}

.mobile-header .brand-mark{
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md);
}

.grid-3{
  grid-template-columns: repeat(3,1fr);
}
}
