/* Elite Feast application theme. Shared components remain in app.css. */
:root {
  --forest: #07563e;
  --forest-deep: #064631;
  --green: #08734f;
  --ink: #182c25;
  --paper: #f5f7f3;
  --line: #e8ede6;
  --muted: #748178;
  --radius: 24px;
  font-family: "Segoe UI", Roboto, Arial, sans-serif;
}
/* Hide tracks, never the ability to scroll. */
* { scrollbar-width: none; -ms-overflow-style: none; }
*::-webkit-scrollbar { width: 0; height: 0; display: none; }
html { overflow-x: hidden; scroll-padding-top: 92px; }
body { background: var(--paper); overscroll-behavior-y: none; }
button, a { touch-action: manipulation; }
.button { min-height: 46px; border-radius: 14px; font-size: 13px; }
.button.primary { background: #07563e; box-shadow: none; }
.button.secondary { border-color: #e3e9e0; }
.panel { border: 1px solid #e8ede5; border-radius: 24px; box-shadow: none; }
.notice { border-radius: 16px; }
input, select, textarea { border-radius: 13px; background: #fbfcf9; }
.empty-state { padding: 36px 24px; }
.empty-state>.icon { background: #edf5e9; border-radius: 18px; padding: 12px; box-sizing: content-box; width: 25px; height: 25px; }
.eyebrow { letter-spacing: 1.4px; }
.sidebar {
  width: 248px; padding: 22px 16px 14px; background: #fff;
  border-right: 1px solid var(--line); color: #64766b; overflow: hidden; box-shadow: none;
}
.sidebar-brand { position: relative; text-align: center; padding: 0 18px 10px; }
.sidebar-brand>a { display: block; }
.business-logo { display: block; width: 100px; height: 100px; object-fit: contain; margin: 0 auto; border-radius: 16px; }
.workspace-chip { display: none; }
.workspace-chip .status-dot { background: #0e7b54; width: 5px; height: 5px; }
.sidebar nav { min-height: 0; flex: 1; overflow-y: auto; padding: 0 3px 12px; }
.nav-section-label { display: block; padding: 8px 15px 5px; font-size: 8px; letter-spacing: 1.5px; font-weight: 600; color: #98a298; }
.nav-link { min-height: 38px; padding: 9px 15px; margin: 2px 0; border-radius: 13px; gap: 13px; color: #68766e; font-size: 13px; font-weight: 500; }
.nav-link .icon { width: 19px; height: 19px; opacity: 1; color: #819183; }
.nav-link:hover { background: #f2f6ed; color: #165d41; }
.nav-link.active { background: #e2efda; color: #185b39; font-weight: 650; }
.nav-link.active .icon { color: #176b42; }
.sidebar-account { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding: 16px 8px 3px; flex-shrink: 0; }
.sidebar-account>span:nth-child(2) { min-width: 0; flex: 1; }
.sidebar-account strong { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar-account small { font-size: 10px; margin-top: 4px; }
.sidebar-account>a { padding: 6px; color: #92a18c; }
.sidebar-account .icon { width: 17px; }
.drawer-close { display: none; }
.app-shell { margin-left: 248px; }
.topbar { padding: 0 34px; height: 82px; background: #f5f7f3ee; border: 0; gap: 20px; }
.app-title { display: flex; flex-direction: column; gap: 4px; }
.app-title>span { font-size: 8px; letter-spacing: 1.6px; color: #8a968c; font-weight: 600; }
.app-title>strong { font-size: 17px; font-weight: 600; line-height: 1.2; }
.search-launch { margin-left: auto; display: flex; align-items: center; gap: 12px; width: 310px; padding: 12px 14px; background: #fff; color: #8b978b; border: 1px solid #e9ede5; border-radius: 14px; font-size: 12px; }
.search-launch>.icon { width: 18px; }
.search-launch kbd { margin-left: auto; font-family: inherit; font-size: 9px; background: #f4f6ef; border-radius: 5px; padding: 3px 5px; }
.profile { margin-left: 0; }
.avatar { width: 40px; height: 40px; background: #e3ecda; color: #486441; border: 3px solid #fff; }
.profile-menu { top: 50px; border-radius: 18px; padding: 18px; }
.profile-menu>strong { display: block; font-size: 12px; margin-bottom: 10px; }
.profile-menu>a { display: block; }
.main { max-width: 1450px; padding: 20px 34px 25px; animation: page-enter .22s ease-out; }
.page-heading h1 { font-size: 29px; font-weight: 650; }
.page-heading .eyebrow { font-size: 9px; }
.page-heading p { font-size: 12px; }
.page-footer { border: 0; margin-top: 26px; padding-top: 0; color: #a3aca1; font-size: 10px; }
.panel-heading { padding: 24px 25px 18px; }
.panel-heading h2 { font-size: 17px; font-weight: 650; }
.panel-heading p { font-size: 11px; }
.home-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 10px 0 26px; }
.home-date { display: block; color: #899488; font-size: 12px; margin-bottom: 10px; }
.home-heading h1 { font-size: 29px; line-height: 1.25; letter-spacing: -.8px; font-weight: 650; }
.home-heading p { font-size: 12px; color: #8b968b; margin-top: 8px; }
.greeting-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: #e6b76f; margin-left: 2px; }
.home-summary { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.revenue-card { background: #07563e; color: #fff; padding: 24px 27px; border-radius: 26px; overflow: hidden; position: relative; }
.revenue-card::before { content: ''; position: absolute; width: 230px; height: 230px; border: 1px solid #ffffff10; border-radius: 50%; right: -80px; top: -100px; box-shadow: 0 0 0 36px #ffffff04, 0 0 0 72px #ffffff03; pointer-events: none; }
.revenue-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: #d3e5d6; font-size: 12px; position: relative; }
.revenue-top>span:first-child { display: flex; align-items: center; gap: 8px; }
.revenue-top .icon { width: 17px; height: 17px; color: #bbd8aa; }
.today-chip { padding: 6px 10px; background: #ffffff13; border-radius: 20px; font-size: 9px; display: flex; gap: 6px; align-items: center; }
.today-chip>span { width: 5px; height: 5px; background: #c7db9a; border-radius: 50%; }
.revenue-card>strong { display: block; font-size: clamp(27px, 2.6vw, 40px); letter-spacing: -1.2px; margin: 22px 0; line-height: 1.1; font-weight: 550; overflow-wrap: anywhere; }
.revenue-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.revenue-bottom>span { font-size: 10px; color: #bad7c2; }
.revenue-bottom>a { display: inline-flex; align-items: center; gap: 8px; font-size: 10px; padding: 9px 12px; background: #e7f0d9; color: #205c3e; border-radius: 10px; font-weight: 600; }
.revenue-bottom .icon { width: 15px; height: 15px; }
.metric-tile { background: white; border-radius: 26px; padding: 23px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #edf0e9; min-width: 0; }
.metric-icon { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 12px; margin-bottom: 15px; }
.metric-icon .icon { width: 19px; height: 19px; }
.expense-tone { background: #fcf0df; color: #bd8950; }
.stock-tone { background: #eaf1e1; color: #7b9853; }
.sale-tone { background: #e0efda; color: #397549; }
.people-tone { background: #e9edf7; color: #7a85b2; }
.metric-label { font-size: 11px; color: #849080; }
.metric-tile>strong { font-size: clamp(21px, 1.9vw, 28px); letter-spacing: -.6px; margin: 8px 0 17px; overflow-wrap: anywhere; }
.metric-tile strong small { display: inline; font-size: 12px; font-weight: 400; letter-spacing: 0; }
.metric-tile>a { margin-top: auto; font-size: 10px; display: inline-flex; align-items: center; gap: 8px; color: #85917c; }
.metric-tile>a .icon { width: 14px; height: 14px; }
.home-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin-bottom: 26px; }
.home-actions>a { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid #e9ede6; padding: 14px 18px; border-radius: 18px; font-size: 12px; font-weight: 550; }
.home-actions>a:hover { border-color: #c4d9b8; background: #fcfdf9; }
.action-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 13px; }
.action-icon .icon { width: 20px; height: 20px; }
.home-content-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; margin-bottom: 23px; }
.home-content-grid>.panel { margin: 0; }
.chart-summary { display: flex; gap: 12px; align-items: baseline; padding: 0 25px; }
.chart-summary strong { font-size: 26px; letter-spacing: -.7px; font-weight: 600; }
.chart-summary>span { font-size: 10px; color: #8d9786; }
.sales-chart-panel { padding-bottom: 20px; }
.bar-chart { height: 142px; margin-top: 17px; border: 0; background: repeating-linear-gradient(to top, transparent, transparent 35px, #f1f4eb 36px); }
.bar-track { height: 112px; max-width: 26px; }
.bar-fill { color: #d2e4c5; }
.bar-fill.today { color: #42845a; }
.bar-column>span:last-child { font-size: 9px; }
.chart-note { font-size: 10px; color: #a4ad9c; }
.department-list { padding: 0 22px 12px; }
.department-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #f0f3eb; }
.department-row:last-child { border: 0; }
.department-row .department-icon { width: 39px; height: 39px; border-radius: 13px; margin: 0; }
.department-info { flex: 1; min-width: 0; }
.department-info>strong { font-size: 12px; }
.department-info>small { font-size: 9px; margin-top: 4px; }
.department-amount { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.department-amount .icon { width: 14px; height: 14px; color: #a4af9d; }
.department-panel .panel-heading { padding-bottom: 5px; }
.recent-panel th { background: #f8faf5; }
.recent-panel .panel-heading { padding-bottom: 22px; }
.table-scroll { border-radius: 0 0 23px 23px; }
thead { background: #f8faf5; }
td, th { border-color: #f0f3eb; }
.row-arrow { color: #859a7e; }
.drawer-scrim { position: fixed; inset: 0; background: #122b2266; z-index: 39; backdrop-filter: blur(3px); }
.drawer-open { overflow: hidden; }
/* Search surface */
.search-dialog { padding: 0; border: 1px solid #edf0e7; border-radius: 28px; width: min(650px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 60px)); margin: 8vh auto auto; color: var(--ink); background: #fff; box-shadow: 0 30px 100px #12352438; }
.search-dialog::backdrop { background: #12352866; backdrop-filter: blur(5px); }
.search-dialog[open] { display: flex; flex-direction: column; animation: page-enter .18s ease-out; }
.search-dialog-heading { display: flex; justify-content: space-between; align-items: center; padding: 26px 26px 19px; gap: 15px; flex-shrink: 0; }
.search-dialog-heading .eyebrow { font-size: 8px; margin-bottom: 6px; color: #91a086; }
.search-dialog-heading h2 { font-size: 25px; font-weight: 600; letter-spacing: -.7px; }
.search-dialog-heading .icon-button { font-size: 27px; width: 42px; height: 42px; padding: 0; border-radius: 50%; background: #f3f6ed; color: #84917c; }
.live-search-form { display: flex; align-items: center; gap: 12px; padding: 0 16px; margin: 0 26px; background: #f4f7ee; border: 1px solid #e5ecdc; border-radius: 16px; flex-shrink: 0; }
.live-search-form>.icon { width: 20px; color: #84977a; }
.live-search-form>input { flex: 1; background: transparent; border: 0; box-shadow: none; font-size: 14px; min-height: 52px; padding-left: 0; }
.live-search-form:focus-within { border-color: #b5cba4; box-shadow: 0 0 0 3px #d8e6cb55; }
.live-search-form>input:focus-visible { outline: 0; }
.search-status { font-size: 12px; padding: 15px 27px; color: #94a08b; flex-shrink: 0; }
.live-search-results { overflow-y: auto; padding: 0 15px 12px; min-height: 0; }
.search-group-label { padding: 12px 14px 6px; font-size: 9px; letter-spacing: 1px; color: #9ba88f; font-weight: 600; text-transform: uppercase; }
.live-result { display: flex; align-items: center; gap: 15px; padding: 14px; border-radius: 15px; outline-offset: -3px; }
.live-result:hover, .live-result[aria-selected="true"] { background: #eef5e5; }
.live-result>span { flex: 1; min-width: 0; }
.live-result strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.live-result small { font-size: 11px; margin-top: 5px; color: #8d9984; overflow-wrap: anywhere; }
.live-result::after { content: '↗'; font-size: 18px; color: #91a182; }
.search-dialog-foot { padding: 15px 26px; border-top: 1px solid #edf1e5; display: flex; justify-content: space-between; gap: 15px; font-size: 9px; color: #a0aa98; margin-top: auto; flex-shrink: 0; }
.search-spinner, .button.is-busy::after { width: 17px; height: 17px; border: 2px solid #92b88c55; border-top-color: #4b8553; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; flex-shrink: 0; }
.button.is-busy::after { content: ''; border-color: #ffffff35; border-top-color: #fff; width: 14px; height: 14px; }
.route-loader { position: fixed; inset: 0 0 auto; height: 3px; z-index: 200; pointer-events: none; overflow: hidden; opacity: 0; transition: opacity .15s; background: #d9e8c6; }
.route-loader>span { display: block; width: 35%; height: 100%; background: #448455; animation: progress 1.05s ease-in-out infinite; }
.is-navigating .route-loader { opacity: 1; }
.dialog-open { overflow: hidden; }
.login-story .brand { background: #fbf5ec; border-radius: 20px; align-self: flex-start; padding: 10px; }
.login-story .brand>img { width: 120px; height: 120px; object-fit: contain; }
.login-mobile-brand { font-size: inherit; }
.login-mobile-brand>img { width: 106px; height: 106px; object-fit: contain; border-radius: 18px; }
.receipt-logo { width: 82px; height: 82px; border-radius: 14px; object-fit: contain; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes progress { 0% { transform: translateX(-110%); } 100% { transform: translateX(390%); } }
@keyframes page-enter { from { opacity: .55; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@media (max-width: 1200px) {
  .sidebar { width: 220px; }
  .app-shell { margin-left: 220px; }
  .main { padding-left: 25px; padding-right: 25px; }
  .topbar { padding-left: 25px; padding-right: 25px; }
  .home-summary { grid-template-columns: 1.6fr 1fr 1fr; gap: 14px; }
  .metric-tile { padding: 20px; }
  .revenue-card { padding: 23px; }
  .home-actions>a { padding: 12px; gap: 9px; font-size: 11px; }
  .home-content-grid { grid-template-columns: 1.2fr 1fr; gap: 18px; }
  .department-amount { font-size: 11px; gap: 7px; }
}
@media (max-width: 1000px) {
  html { scroll-padding-top: 80px; }
  .sidebar { width: 288px; inset: 0 auto 0 0; transform: translateX(-105%); border-radius: 0 28px 28px 0; padding: 23px 18px 20px; box-shadow: none; transition: transform .22s ease-out; z-index: 40; }
  .sidebar.menu-open { transform: translateX(0); }
  .sidebar nav { padding-bottom: 10px; }
  .sidebar .nav-link { font-size: 13px; padding: 12px 16px; }
  .sidebar-brand { padding-top: 5px; }
  .business-logo { width: 126px; height: 126px; }
  .drawer-close { display: block; position: absolute; right: -4px; top: -6px; font-size: 25px; width: 40px; height: 40px; padding: 0; color: #8c9983; }
  .app-shell { margin: 0; }
  .mobile-menu { display: flex; margin: 0; background: #fff; border-radius: 13px; width: 42px; height: 42px; align-items: center; justify-content: center; padding: 0; }
  .topbar { height: 78px; padding: 0 24px; gap: 14px; position: sticky; top: 0; z-index: 30; backdrop-filter: blur(14px); }
  .main { padding: 18px 24px 110px; }
  .bottom-nav { display: flex; position: fixed; inset: auto 0 0; height: calc(76px + env(safe-area-inset-bottom)); padding: 7px 15px calc(6px + env(safe-area-inset-bottom)); background: #fffffff7; border: 0; box-shadow: 0 -1px 0 #e8ede5; backdrop-filter: blur(14px); z-index: 35; justify-content: space-around; }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; font-size: 10px; font-weight: 500; color: #96a08e; }
  .bottom-nav a.active { color: #306f44; }
  .bottom-nav a>.icon { width: 22px; height: 22px; border-radius: 14px; box-sizing: content-box; padding: 5px 15px; }
  .bottom-nav a.active>.icon { background: #e5efda; }
  .bottom-nav a:nth-child(2)>.icon { background: transparent; color: inherit; width: 22px; height: 22px; margin: 0; border-radius: 14px; padding: 5px 15px; }
  .bottom-nav a:nth-child(2).active>.icon { background: #e5efda; }
  .bottom-nav a:nth-child(3)>.icon { background: #07563e; color: #fff; padding: 8px 14px; width: 22px; height: 22px; border-radius: 15px; margin-top: -7px; }
  .home-summary { grid-template-columns: 1.8fr 1fr 1fr; }
  .search-launch { width: 280px; }
}
@media (max-width: 700px) {
  .topbar { height: 73px; padding: 0 18px; gap: 11px; }
  .app-title { gap: 4px; min-width: 0; flex: 1; }
  .app-title>span { font-size: 7px; letter-spacing: 1.1px; }
  .app-title>strong { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search-launch { width: 40px; height: 40px; padding: 0; display: grid; place-items: center; margin: 0; flex-shrink: 0; border: 0; }
  .search-launch>span, .search-launch kbd { display: none; }
  .search-launch>.icon { width: 20px; height: 20px; }
  .avatar { width: 34px; height: 34px; border-width: 2px; font-size: 12px; }
  .main { padding: 15px 18px 105px; }
  .home-heading { margin: 9px 0 23px; gap: 10px; }
  .home-heading h1 { font-size: 24px; letter-spacing: -.75px; }
  .home-date { font-size: 10px; margin-bottom: 8px; }
  .home-heading p { font-size: 11px; margin-top: 7px; }
  .home-report { padding: 8px; min-height: 40px; width: 40px; flex-shrink: 0; font-size: 0; border-radius: 13px; }
  .home-report .icon { width: 18px; height: 18px; }
  .greeting-dot { width: 6px; height: 6px; margin: 0; }
  .home-summary { grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 22px; }
  .revenue-card { grid-column: 1/-1; padding: 22px 23px; border-radius: 25px; }
  .revenue-top { font-size: 12px; }
  .revenue-card>strong { font-size: 36px; margin: 23px 0 20px; }
  .revenue-bottom>span { font-size: 10px; }
  .revenue-bottom>a { font-size: 10px; padding: 9px 12px; border-radius: 10px; }
  .metric-tile { padding: 17px 19px; border-radius: 22px; }
  .metric-icon { width: 31px; height: 31px; border-radius: 11px; margin-bottom: 11px; }
  .metric-icon .icon { width: 17px; height: 17px; }
  .metric-label { font-size: 10px; }
  .metric-tile>strong { font-size: 23px; margin: 8px 0 13px; }
  .metric-tile>strong small { font-size: 11px; }
  .metric-tile>a { font-size: 9px; }
  .home-actions { gap: 8px; margin: 0 0 25px; }
  .home-actions>a { border: 0; padding: 0; background: transparent; flex-direction: column; gap: 10px; font-size: 10px; color: #627557; }
  .home-actions>a:hover { background: transparent; }
  .action-icon { width: 54px; height: 51px; border-radius: 19px; }
  .action-icon>.icon { width: 23px; height: 23px; }
  .home-content-grid { grid-template-columns: 1fr; gap: 20px; margin-bottom: 22px; }
  .panel-heading { padding: 22px 21px 17px; }
  .panel-heading h2 { font-size: 17px; }
  .panel-heading p { font-size: 10px; }
  .chart-summary { padding: 0 21px; }
  .chart-summary>strong { font-size: 26px; }
  .chart-summary>span { font-size: 9px; }
  .bar-chart { margin: 17px 24px 0; height: 135px; gap: 17px; }
  .bar-track { height: 106px; max-width: 23px; }
  .chart-note { padding-left: 21px; }
  .department-list { padding: 0 21px 10px; }
  .department-row { gap: 12px; padding: 16px 0; }
  .department-row .department-icon { width: 40px; height: 40px; border-radius: 14px; }
  .department-info>strong { font-size: 12px; }
  .department-amount { font-size: 12px; }
  .page-heading h1 { font-size: 25px; }
  .page-heading p { font-size: 11px; }
  .panel { border-radius: 22px; }
  .add-panel>summary { padding: 20px; }
  .form-grid { padding: 6px 20px 22px; gap: 20px; }
  .form-stack>label, .form-grid>label { font-size: 12px; }
  input, select, textarea { min-height: 49px; font-size: 16px; }
  .bottom-nav { height: calc(74px + env(safe-area-inset-bottom)); padding-left: 8px; padding-right: 8px; }
  .bottom-nav a { font-size: 9px; }
  .bottom-nav a>.icon, .bottom-nav a:nth-child(2)>.icon { width: 20px; height: 20px; padding: 5px 13px; }
  .bottom-nav a:nth-child(3)>.icon { width: 21px; height: 21px; padding: 7px 13px; }
  .search-dialog { margin-top: 12px; width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 25px; }
  .search-dialog-heading { padding: 23px 20px 18px; }
  .search-dialog-heading h2 { font-size: 24px; }
  .live-search-form { margin: 0 20px; padding: 0 13px; gap: 10px; }
  .live-search-form>input { font-size: 16px; min-height: 51px; }
  .live-search-form>input::placeholder { font-size: 12px; }
  .search-status { padding: 16px 21px; font-size: 11px; }
  .live-search-results { padding: 0 9px 10px; }
  .live-result { padding: 15px 12px; }
  .search-dialog-foot { padding: 15px 20px; font-size: 8px; }
  .search-dialog-foot>span:last-child { display: none; }
  .login-form-panel { padding-top: 23px; }
  .login-mobile-brand { align-self: center; }
  .login-form-inner { padding-top: 30px; }
  .login-form-inner>h2 { font-size: 32px; }
  .login-form-inner>.eyebrow { display: none; }
}
@media (max-width: 360px) {
  .main { padding-left: 14px; padding-right: 14px; }
  .topbar { padding-left: 14px; padding-right: 14px; gap: 9px; }
  .home-heading h1 { font-size: 22px; }
  .metric-tile { padding: 16px; }
  .metric-tile>strong { font-size: 21px; }
  .department-amount { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .main, .search-dialog[open] { animation: none; }
  .search-spinner, .button.is-busy::after { animation-duration: 1.5s; }
  .route-loader>span { animation: none; width: 100%; }
}
@media print {
  .route-loader, .drawer-scrim, .search-dialog, .sidebar-account { display: none!important; }
}
