:root {
  color-scheme: light;
  --paper: #f4f3ed;
  --paper-deep: #eeeee6;
  --white: #fffefa;
  --ink: #202a22;
  --ink-soft: #546056;
  --muted: #899088;
  --line: #e8e8df;
  --line-strong: #d9ded3;
  --forest: #294b39;
  --forest-deep: #203d2e;
  --sage: #829782;
  --sage-pale: #e6ede1;
  --lime-pale: #f0f3e9;
  --amber: #b47a2c;
  --amber-pale: #fff4df;
  --red: #b74d48;
  --red-pale: #fff0ed;
  --shadow: 0 5px 18px rgba(42, 58, 45, .045), 0 1px 2px rgba(42, 58, 45, .035);
  --radius: 15px;
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font-size: 14px; }
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid #99b89a; outline-offset: 2px; }
button:disabled { cursor: not-allowed; opacity: .5; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 14px; color: white; background: var(--forest); border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; display: flex; width: 248px; flex-direction: column; padding: 26px 16px 15px; color: #e7eee5; background: var(--forest-deep); }
.brand { display: flex; align-items: center; gap: 11px; min-height: 49px; margin: 0 9px 37px; color: inherit; text-decoration: none; }
.brand-mark { display: grid; width: 40px; height: 40px; place-items: center; color: #f5f5e9; background: #617c62; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; }
.brand-name { font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; letter-spacing: -.65px; line-height: 1.08; }
.workspace-label { padding: 0 12px; margin-bottom: 11px; color: #8ca18d; font-size: 9px; font-weight: 700; letter-spacing: 1.2px; }
.side-nav { display: grid; gap: 5px; }
.nav-link { position: relative; display: flex; min-height: 44px; width: 100%; align-items: center; gap: 13px; padding: 0 13px; border: 0; border-radius: 10px; color: #c5d1c6; background: transparent; text-align: left; cursor: pointer; transition: color .18s ease, background .18s ease; }
.nav-link:hover { color: white; background: rgba(255,255,255,.07); }
.nav-link.active { color: #fff; background: #46674e; box-shadow: inset 3px 0 #c0d29d; }
.nav-icon { display: grid; width: 21px; place-items: center; color: #aabea8; font-family: Manrope, sans-serif; font-size: 20px; line-height: 1; }
.nav-link.active .nav-icon { color: #f1f3e2; }
.nav-count { display: grid; width: 22px; height: 22px; margin-left: auto; place-items: center; color: #ffedcf; background: rgba(203,151,81,.25); border: 1px solid rgba(243,196,128,.22); border-radius: 7px; font-size: 11px; font-weight: 700; }
.sidebar-bottom { margin-top: auto; }
.demo-note { display: flex; align-items: center; gap: 11px; padding: 13px 12px; margin: 0 1px 12px; border: 1px solid rgba(226,237,224,.14); border-radius: 11px; background: rgba(255,255,255,.045); }
.demo-note strong, .demo-note small { display: block; }
.demo-note strong { color: #eff4e9; font-size: 11px; font-weight: 600; }
.demo-note small { margin-top: 3px; color: #a1b1a1; font-size: 10px; }
.demo-pulse { width: 8px; height: 8px; flex: 0 0 auto; background: #afcb9c; border-radius: 50%; box-shadow: 0 0 0 4px rgba(175,203,156,.12); }
.reset-link { min-height: 38px; gap: 10px; padding-left: 10px; color: #a6b8a6; font-size: 11px; }
.reset-link svg { color: #a6b8a6; }

.main-column { min-height: 100vh; margin-left: 248px; display: flex; flex-direction: column; }
.topbar { position: sticky; z-index: 10; top: 0; display: flex; min-height: 72px; align-items: center; justify-content: space-between; padding: 0 42px; background: rgba(244,243,237,.91); border-bottom: 1px solid rgba(217,222,211,.7); backdrop-filter: blur(16px); }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #8b9288; font-size: 12px; }
.breadcrumb svg { color: #aeb4aa; }
.breadcrumb strong { color: #39453b; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 17px; }
.global-search, .search-control { display: flex; height: 38px; align-items: center; gap: 8px; padding: 0 10px; color: #8a9489; background: #fffefa; border: 1px solid #e6e7de; border-radius: 9px; }
.global-search { width: 258px; }
.global-search input, .search-control input { width: 100%; min-width: 0; color: var(--ink); background: transparent; border: 0; outline: none; font-size: 11px; }
.global-search input::placeholder, .search-control input::placeholder { color: #a1a69e; }
.global-search kbd { flex: 0 0 auto; padding: 2px 5px; color: #9ca198; background: #f4f4ee; border: 1px solid #e8e9e1; border-radius: 4px; font: 10px 'DM Sans', sans-serif; }
.icon-button { position: relative; display: grid; width: 37px; height: 37px; flex: 0 0 auto; place-items: center; color: #6a776d; background: #fffefa; border: 1px solid #e6e7de; border-radius: 10px; cursor: pointer; transition: background .16s ease, color .16s ease; }
.icon-button:hover { color: var(--forest); background: #f8faf3; }
.alert-button i { position: absolute; top: -5px; right: -5px; display: grid; min-width: 17px; height: 17px; padding: 0 4px; place-items: center; color: white; background: var(--red); border: 2px solid var(--paper); border-radius: 99px; font-size: 9px; font-style: normal; font-weight: 700; }
.topbar-date { color: #8d958c; font-size: 11px; text-transform: capitalize; }
.mobile-menu-button { display: none; }
.page-content { width: min(100%, 1600px); flex: 1; padding: 34px 42px 28px; margin: 0 auto; }
.app-footer { display: flex; justify-content: space-between; padding: 15px 42px 19px; color: #9a9f97; font-size: 10px; }
.app-footer b { padding: 0 5px; color: #bbc3b8; }
.app-footer span:last-child { display: flex; align-items: center; gap: 7px; }
.app-footer i { width: 6px; height: 6px; background: #83a083; border-radius: 50%; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 25px; margin: 3px 0 25px; }
.eyebrow { display: block; margin-bottom: 7px; color: #879286; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 7px; font-family: Manrope, 'Segoe UI', sans-serif; font-size: clamp(25px, 2vw, 32px); font-weight: 700; letter-spacing: -1.1px; line-height: 1.17; }
.page-heading p { margin: 0; color: #818980; font-size: 12px; }
.heading-actions { display: flex; align-items: center; gap: 9px; padding-bottom: 2px; }
.button { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; gap: 8px; padding: 0 14px; border: 1px solid transparent; border-radius: 9px; font-size: 11px; font-weight: 600; cursor: pointer; transition: transform .15s ease, background .15s ease, box-shadow .15s ease; }
.button:hover { transform: translateY(-1px); }
.button.primary { color: white; background: var(--forest); box-shadow: 0 4px 9px rgba(41,75,57,.13); }
.button.primary:hover { background: #365e45; box-shadow: 0 6px 14px rgba(41,75,57,.18); }
.button.dark-primary { color: white; background: #744f4b; }
.button.secondary { color: #526858; background: #fffefa; border-color: #dfe4d8; }
.button.secondary:hover { background: #f5f7f0; border-color: #cdd7c7; }
.button.small { min-height: 30px; gap: 5px; padding: 0 9px; font-size: 10px; }
.inventory-date, .period-tag { display: inline-flex; align-items: center; gap: 7px; padding: 8px 10px; color: #778275; background: #fffefa; border: 1px solid #e6e8df; border-radius: 8px; font-size: 10px; }
.notice-banner { display: flex; align-items: center; gap: 10px; padding: 12px 15px; margin: 0 0 18px; color: #745920; background: #fff5dc; border: 1px solid #f1deb0; border-radius: 10px; font-size: 12px; }
.notice-banner > svg { flex: 0 0 auto; }
.notice-close { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; margin-left: auto; color: inherit; background: transparent; border: 0; cursor: pointer; }

.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 17px; }
.metric-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 0 0 17px; }
.movement-metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-card { min-width: 0; padding: 16px 17px 14px; background: var(--white); border: 1px solid #e9eae2; border-radius: 13px; box-shadow: var(--shadow); }
.metric-clickable { cursor: pointer; transition: transform .15s ease, border-color .15s ease; }
.metric-clickable:hover { transform: translateY(-2px); border-color: #cbd8c8; }
.metric-top { display: flex; align-items: center; justify-content: space-between; color: #828a80; font-size: 10px; font-weight: 600; }
.metric-icon { display: grid; width: 31px; height: 31px; place-items: center; color: #507456; background: #edf2e8; border-radius: 9px; }
.metric-card.amber .metric-icon { color: var(--amber); background: var(--amber-pale); }
.metric-card.rose .metric-icon { color: var(--red); background: var(--red-pale); }
.metric-card.sage .metric-icon { color: #667d67; background: #edf1e9; }
.metric-value { display: block; overflow: hidden; margin: 8px 0 7px; font-family: Manrope, sans-serif; font-size: clamp(20px, 1.8vw, 25px); font-weight: 700; letter-spacing: -.7px; text-overflow: ellipsis; white-space: nowrap; }
.metric-foot { display: flex; min-height: 16px; align-items: center; gap: 5px; color: #a0a59c; font-size: 9px; }
.metric-dot { width: 5px; height: 5px; background: #8ca48a; border-radius: 50%; }
.status-pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 99px; font-size: 9px; font-weight: 600; }
.status-pill.low { color: #956524; background: var(--amber-pale); }
.status-pill.out { color: #a24843; background: var(--red-pale); }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(280px, .95fr); gap: 14px; }
.panel { min-width: 0; padding: 19px 19px 17px; background: var(--white); border: 1px solid #e9eae2; border-radius: var(--radius); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.panel-heading .eyebrow { margin-bottom: 5px; font-size: 8px; }
.panel h2, .table-toolbar h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 14px; font-weight: 700; letter-spacing: -.25px; }
.text-action { display: inline-flex; align-items: center; gap: 3px; padding: 3px 0; color: #658068; background: transparent; border: 0; font-size: 10px; font-weight: 600; cursor: pointer; }
.text-action:hover { color: var(--forest); }
.movement-panel { min-height: 279px; }
.chart-legend { display: flex; align-items: center; gap: 15px; margin: 19px 0 9px; color: #858d83; font-size: 9px; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend small { margin-left: auto; color: #a2a89f; }
.legend-dot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; }
.legend-dot.entry { background: #6e9272; }
.legend-dot.exit { background: #d4a15f; }
.bar-chart { position: relative; display: flex; height: 139px; align-items: stretch; justify-content: space-around; padding: 10px 6px 0; background: repeating-linear-gradient(to bottom, transparent 0, transparent 33px, #eff0e9 34px, transparent 35px); border-bottom: 1px solid #e6e9df; }
.bar-group { display: flex; min-width: 23px; flex: 1; flex-direction: column; align-items: center; justify-content: flex-end; gap: 7px; }
.bar-pair { display: flex; width: 36px; height: 100%; align-items: flex-end; justify-content: center; gap: 4px; }
.bar { display: block; width: 11px; min-height: var(--bar-height); height: var(--bar-height); border-radius: 4px 4px 1px 1px; transition: height .25s ease; }
.bar.entry { background: #729477; }
.bar.exit { background: #deb169; }
.bar-label { color: #979e94; font-size: 9px; text-transform: capitalize; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 7px; color: #a3a89f; font-size: 8px; }
.category-panel { min-height: 279px; }
.donut-layout { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 26px 2px 12px; }
.donut { display: grid; width: 142px; height: 142px; flex: 0 0 auto; place-items: center; border-radius: 50%; }
.donut-hole { display: flex; width: 86px; height: 86px; flex-direction: column; align-items: center; justify-content: center; background: var(--white); border-radius: 50%; }
.donut-hole small { color: #92998f; font-size: 8px; }
.donut-hole strong { margin-top: 5px; font-family: Manrope, sans-serif; font-size: 11px; letter-spacing: -.3px; }
.category-legend { display: grid; width: min(100%, 170px); gap: 11px; }
.category-legend > div { display: flex; align-items: center; gap: 7px; color: #727c72; font-size: 9px; }
.category-legend i, .category-break-label i { width: 8px; height: 8px; flex: 0 0 auto; background: var(--category-color); border-radius: 2px; }
.category-legend strong { margin-left: auto; color: #455247; font-size: 9px; }
.alert-panel { min-height: 236px; }
.alert-summary { display: flex; align-items: center; gap: 11px; padding: 14px 0; border-bottom: 1px solid #eff0e9; }
.alert-round { display: grid; width: 35px; height: 35px; flex: 0 0 auto; place-items: center; border-radius: 10px; }
.alert-round.danger { color: var(--red); background: var(--red-pale); }
.alert-round.warning { color: #ad7a35; background: var(--amber-pale); }
.alert-summary > span:nth-child(2) { display: block; }
.alert-summary strong, .alert-summary small { display: block; }
.alert-summary strong { font-size: 11px; font-weight: 600; }
.alert-summary small { margin-top: 4px; color: #969d94; font-size: 9px; }
.alert-count { display: grid; width: 28px; height: 28px; margin-left: auto; place-items: center; color: #94554e; background: #fff1ed; border-radius: 8px; font-size: 11px; font-weight: 700; }
.alert-summary:nth-of-type(3) .alert-count { color: #9e712e; background: #fff5e3; }
.alert-link { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 13px 0 0; color: #638066; background: transparent; border: 0; font-size: 10px; font-weight: 600; cursor: pointer; }
.activity-panel { min-height: 236px; }
.activity-list { margin-top: 8px; }
.activity-row { display: flex; min-height: 47px; align-items: center; gap: 10px; border-bottom: 1px solid #f0f1eb; }
.activity-row:last-child { border: 0; }
.activity-icon { display: grid; width: 29px; height: 29px; flex: 0 0 auto; place-items: center; border-radius: 9px; }
.activity-icon.positive { color: #5e8264; background: #edf3e9; }
.activity-icon.negative { color: #b67844; background: #fbf1e6; }
.activity-copy { min-width: 0; flex: 1; }
.activity-copy strong, .activity-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.activity-copy strong { font-size: 10px; font-weight: 600; }
.activity-copy small { margin-top: 3px; color: #9aa096; font-size: 9px; }
.activity-amount { font-size: 11px; }
.positive-text { color: #54795c; }
.negative-text { color: #ad6d49; }
.top-products-panel { grid-column: 1 / -1; }
.top-product-list { margin-top: 10px; }
.top-product { display: flex; min-height: 36px; align-items: center; gap: 11px; }
.rank { color: #a3aa9d; font-size: 9px; font-weight: 700; }
.top-product-name { width: 135px; overflow: hidden; font-size: 10px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.top-product-name small { display: block; margin-top: 2px; color: #a2a79f; font-size: 8px; font-weight: 400; }
.top-product-bar { height: 5px; flex: 1; overflow: hidden; background: #eff1e9; border-radius: 99px; }
.top-product-bar i { display: block; height: 100%; background: linear-gradient(90deg, #88a184, #42674a); border-radius: inherit; }
.top-product > strong { width: 34px; color: #5f6d60; font-size: 10px; text-align: right; }
.empty-inline { padding: 24px 5px; color: #9ba198; font-size: 11px; text-align: center; }

.metric-strip .metric-card { min-height: 113px; }
.table-panel { padding: 0; overflow: hidden; }
.table-toolbar { display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 18px; border-bottom: 1px solid #eceee7; }
.table-toolbar > div:first-child { display: flex; align-items: baseline; gap: 9px; }
.result-count { color: #a0a69c; font-size: 9px; }
.table-controls { display: flex; align-items: center; gap: 8px; }
.search-control { width: 185px; height: 34px; }
.select-control select { height: 34px; max-width: 168px; padding: 0 25px 0 10px; color: #687368; background: #fffefa; border: 1px solid #e6e7de; border-radius: 8px; font-size: 10px; cursor: pointer; }
.table-scroll { width: 100%; overflow-x: auto; }
.data-table { width: 100%; min-width: 920px; border-collapse: collapse; text-align: left; }
.category-table { min-width: 500px; }
.data-table th { height: 40px; padding: 0 10px; color: #899187; background: #f8f8f3; border-bottom: 1px solid #eaede5; font-size: 9px; font-weight: 600; white-space: nowrap; }
.data-table td { height: 55px; padding: 7px 10px; border-bottom: 1px solid #f0f1eb; color: #5b655b; font-size: 10px; white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: #fcfcf8; }
.data-table th:first-child, .data-table td:first-child { padding-left: 19px; }
.data-table th:last-child, .data-table td:last-child { padding-right: 17px; }
.product-cell { display: flex; min-width: 175px; align-items: center; gap: 9px; }
.product-thumb { display: grid; width: 31px; height: 31px; flex: 0 0 auto; place-items: center; color: #58745a; background: #eef2e9; border-radius: 9px; }
.product-thumb.emballage { color: #a77938; background: #fbf2e5; }
.product-thumb.informatique { color: #607c87; background: #edf2f3; }
.product-thumb.fournitures { color: #846a78; background: #f4eef2; }
.product-thumb.has-photo { overflow: hidden; background: #eef2e9; }
.product-thumb.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-cell strong, .product-cell small { display: block; }
.product-cell strong { color: #374338; font-size: 10px; font-weight: 600; }
.product-cell small, .table-subline { margin-top: 4px; color: #a1a69e; font-size: 8px; }
.category-tag { padding: 4px 7px; color: #718170; background: #f0f2eb; border-radius: 6px; font-size: 8px; }
.category-list-name { display: inline-flex; align-items: center; gap: 9px; }
.category-list-name i { width: 8px; height: 8px; flex: 0 0 auto; background: #789779; border-radius: 50%; }
.category-in-use { display: inline-flex; padding: 5px 8px; color: #758170; background: #eef2e8; border-radius: 7px; font-size: 9px; }
.numeric-cell { text-align: right; }
.muted-cell { color: #939b91 !important; }
.quantity-value { color: #3e4c40; font-size: 11px; }
.quantity-value.low-text, .low-text { color: #ac7932; }
.quantity-value.out-text, .out-text { color: #b44f4a; }
.stock-status { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; color: #5e795f; background: #edf3e9; border-radius: 6px; font-size: 8px; font-weight: 600; }
.stock-status i { width: 5px; height: 5px; background: #779678; border-radius: 50%; }
.stock-status.low { color: #966b2b; background: #fff3df; }
.stock-status.low i { background: #d3a454; }
.stock-status.rupture { color: #a94e49; background: #fff0ed; }
.stock-status.rupture i { background: #cf6a60; }
.row-action { display: grid; width: 29px; height: 29px; place-items: center; color: #879387; background: transparent; border: 0; border-radius: 7px; cursor: pointer; }
.row-action:hover { color: var(--forest); background: #edf2e9; }
.row-action.danger-action { color: #a94e49; }
.row-action.danger-action:hover { color: #8d3a36; background: #fff0ed; }
.row-action:disabled, .row-action.danger-action:disabled:hover { color: #c8c8c0; background: transparent; cursor: not-allowed; }
.table-footer { display: flex; justify-content: flex-end; gap: 12px; padding: 12px 18px; color: #a0a69c; border-top: 1px solid #f0f1eb; font-size: 9px; }
.legend-status { display: inline-flex; align-items: center; gap: 5px; }
.legend-status i { width: 6px; height: 6px; border-radius: 50%; }
.ok-dot { background: #7c9b7b; }
.low-dot { margin-left: 7px; background: #d3a454; }
.out-dot { margin-left: 7px; background: #c7675d; }
.table-empty { display: flex; min-height: 172px; flex-direction: column; align-items: center; justify-content: center; color: #98a095; white-space: normal; }
.table-empty > span { display: grid; width: 38px; height: 38px; margin-bottom: 9px; place-items: center; color: #83917f; background: #f0f3eb; border-radius: 12px; }
.table-empty strong { color: #667166; font-size: 11px; }
.table-empty small { margin: 5px 0 10px; color: #a1a79e; font-size: 9px; }
.table-empty .all-clear { color: #638167; }
.table-empty .button { margin-top: 4px; }
.movement-table { min-width: 750px; }
.movement-quantity { font-size: 11px; }

.inventory-table { min-width: 780px; }
.inventory-table td { height: 53px; }
.table-subline { display: block; }
.count-input { width: 93px; height: 30px; padding: 0 8px; color: #425447; background: #fff; border: 1px solid #dfe5d9; border-radius: 7px; font-size: 10px; }
.difference-chip { display: inline-flex; min-width: 30px; justify-content: center; padding: 4px 7px; border-radius: 6px; font-size: 9px; font-weight: 700; }
.difference-chip.neutral { color: #90988e; background: #f1f2ed; }
.difference-chip.positive { color: #527c59; background: #eaf3e8; }
.difference-chip.negative { color: #af6b4b; background: #fbefe9; }
.inventory-history { margin-top: 15px; }
.history-list { margin-top: 8px; }
.history-row { display: grid; grid-template-columns: 1fr 130px 100px; align-items: center; padding: 11px 3px; color: #8b9488; border-bottom: 1px solid #eff0e9; font-size: 9px; }
.history-row:last-child { border-bottom: 0; }
.history-product { color: #4d5b4e; font-size: 10px; font-weight: 600; }
.history-row strong { text-align: right; }

.alert-hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.alert-hero { position: relative; display: flex; min-height: 122px; align-items: center; gap: 15px; overflow: hidden; padding: 19px 21px; border: 1px solid transparent; border-radius: 14px; }
.alert-hero.red { color: #a04d48; background: linear-gradient(110deg, #fff1ed, #fff9f4); border-color: #f2dfd8; }
.alert-hero.amber { color: #976b2e; background: linear-gradient(110deg, #fff5e2, #fffaf0); border-color: #f1e6ca; }
.alert-hero-icon { display: grid; width: 44px; height: 44px; flex: 0 0 auto; place-items: center; background: rgba(255,255,255,.72); border: 1px solid rgba(196,127,89,.12); border-radius: 13px; }
.alert-hero div { position: relative; z-index: 1; }
.alert-hero div > span, .alert-hero strong, .alert-hero small { display: block; }
.alert-hero div > span { font-size: 8px; font-weight: 700; letter-spacing: 1.2px; }
.alert-hero strong { margin-top: 1px; color: #553f39; font-family: Manrope, sans-serif; font-size: 27px; letter-spacing: -1px; }
.alert-hero small { color: #a18c7e; font-size: 9px; }
.hero-orbit { position: absolute; right: -26px; bottom: -72px; width: 170px; height: 170px; border: 1px solid rgba(183,105,79,.12); border-radius: 50%; box-shadow: 0 0 0 20px rgba(183,105,79,.035), 0 0 0 42px rgba(183,105,79,.025); }
.red .hero-orbit { border-color: rgba(183,105,79,.13); }
.amber .hero-orbit { border-color: rgba(193,153,75,.18); }
.alert-table { min-width: 900px; }

.analysis-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(290px, .9fr); gap: 14px; }
.analysis-chart-panel { min-height: 310px; }
.large-chart { height: 194px; margin-top: 17px; }
.large-chart .bar-pair { width: 52px; }
.large-chart .bar { width: 16px; }
.analysis-category-panel { min-height: 310px; }
.category-breakdown { display: grid; gap: 17px; margin-top: 22px; }
.category-break-label { display: flex; align-items: center; gap: 8px; color: #758076; font-size: 9px; }
.category-break-label strong { margin-left: auto; color: #526052; font-size: 9px; }
.progress-track { height: 6px; overflow: hidden; margin-top: 7px; background: #eff1ea; border-radius: 99px; }
.progress-track i { display: block; height: 100%; background: var(--category-color); border-radius: inherit; }
.analysis-top-panel { min-height: 215px; }
.analysis-note-panel { display: flex; align-items: flex-start; gap: 15px; min-height: 215px; background: linear-gradient(140deg, #f1f4eb, #fbfbf6); }
.analysis-note-icon { display: grid; width: 42px; height: 42px; flex: 0 0 auto; place-items: center; color: #678467; background: #e5ede0; border-radius: 13px; }
.analysis-note-panel h2 { margin-bottom: 8px; }
.analysis-note-panel p { max-width: 330px; margin: 0 0 9px; color: #8b9589; font-size: 10px; line-height: 1.6; }

.modal { width: min(560px, calc(100vw - 30px)); max-height: min(90vh, 790px); padding: 0; overflow: auto; color: var(--ink); background: transparent; border: 0; border-radius: 17px; box-shadow: 0 22px 80px rgba(17,32,22,.23); }
.modal::backdrop { background: rgba(23,36,27,.38); backdrop-filter: blur(3px); }
.modal-card { padding: 22px; background: var(--white); border: 1px solid rgba(255,255,255,.5); border-radius: 17px; }
.compact-modal { max-width: 480px; }
.modal-heading { display: flex; align-items: center; gap: 11px; }
.modal-symbol { display: grid; width: 39px; height: 39px; flex: 0 0 auto; place-items: center; color: #547653; background: #edf2e8; border-radius: 12px; }
.modal-symbol.green-symbol { color: #527d5b; background: #edf4e9; }
.modal-symbol.rose-symbol { color: #a7584f; background: #fff0ed; }
.modal-heading .eyebrow { margin-bottom: 4px; font-size: 8px; }
.modal-heading h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 17px; letter-spacing: -.4px; }
.modal-close { margin-left: auto; }
.modal-intro { margin: 15px 0 17px; color: #899187; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px 12px; }
.form-grid.two-col { margin-top: 13px; }
.form-field { display: grid; gap: 6px; margin-bottom: 13px; color: #697469; font-size: 10px; font-weight: 600; }
.form-grid .form-field { margin-bottom: 1px; }
.form-field > span > i { color: #bf6b5c; font-style: normal; }
.form-field input, .form-field select { width: 100%; min-width: 0; height: 38px; padding: 0 10px; color: #354339; background: #fff; border: 1px solid #e2e6dc; border-radius: 8px; font-size: 11px; }
.form-field input::placeholder { color: #b2b7ae; }
.form-field.has-error input, .form-field.has-error select { border-color: #d58072; background: #fff9f7; }
.field-error { color: #b04d48; font-size: 9px; font-weight: 500; }
.field-help { color: #9ba398; font-size: 9px; font-weight: 400; }
.form-error-summary { padding: 9px 11px; margin: 14px 0 0; color: #a54f49; background: #fff1ee; border-radius: 8px; font-size: 10px; }
.form-error-summary[hidden] { display: none; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; padding-top: 17px; margin-top: 18px; border-top: 1px solid #eceee7; }
.toast-root { position: fixed; z-index: 70; right: 23px; bottom: 21px; display: grid; gap: 9px; }
.toast { display: flex; max-width: min(420px, calc(100vw - 32px)); align-items: center; gap: 10px; padding: 11px 12px; color: #3d5942; background: #fffefa; border: 1px solid #dfe8da; border-radius: 11px; box-shadow: 0 10px 35px rgba(36,55,39,.14); font-size: 11px; animation: toast-in .2s ease-out; }
.toast.warning { color: #895f28; border-color: #efe0bd; }
.toast-icon { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; color: #608264; background: #edf4e9; border-radius: 8px; }
.toast.warning .toast-icon { color: #a27330; background: #fff5e2; }
.toast button { display: grid; width: 25px; height: 25px; flex: 0 0 auto; place-items: center; margin-left: auto; color: #8c9489; background: transparent; border: 0; cursor: pointer; }
@keyframes toast-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: translateY(0); } }

@media (min-width: 1920px) {
  .topbar { padding-right: 60px; padding-left: 60px; }
  .page-content { padding-right: 60px; padding-left: 60px; }
  .app-footer { padding-right: 60px; padding-left: 60px; }
  .metric-card { padding: 18px 20px 16px; }
  .panel { padding: 22px; }
  .table-panel { padding: 0; }
}
@media (min-width: 2240px) {
  .page-content { width: min(100%, 2160px); }
}

@media (max-width: 1180px) {
  .sidebar { width: 220px; }
  .main-column { margin-left: 220px; }
  .topbar, .app-footer { padding-right: 25px; padding-left: 25px; }
  .page-content { padding-right: 25px; padding-left: 25px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1.25fr) minmax(260px, .9fr); }
  .donut-layout { gap: 13px; }
  .donut { width: 120px; height: 120px; }
  .donut-hole { width: 74px; height: 74px; }
  .category-legend { gap: 8px; }
}
@media (max-width: 930px) {
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid, .analysis-grid { grid-template-columns: 1fr 1fr; }
  .movement-panel, .analysis-chart-panel { grid-column: 1 / -1; }
  .top-products-panel { grid-column: auto; }
  .category-panel { grid-column: auto; }
  .topbar-date { display: none; }
  .global-search { width: 215px; }
  .category-panel { padding-right: 14px; padding-left: 14px; }
  .donut-layout { flex-direction: column; padding-top: 16px; }
  .category-legend { width: 100%; grid-template-columns: 1fr 1fr; }
  .category-legend > div { min-width: 0; }
  .category-legend > div span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
@media (max-width: 700px) {
  .sidebar { width: min(280px, 84vw); transform: translateX(-103%); transition: transform .22s ease; box-shadow: 12px 0 40px rgba(14,30,20,.16); }
  body.sidebar-open .sidebar { transform: translateX(0); }
  .main-column { margin-left: 0; }
  .mobile-menu-button { display: grid; }
  .topbar { min-height: 61px; gap: 10px; padding: 0 15px; }
  .breadcrumb { margin-right: auto; gap: 5px; font-size: 10px; }
  .breadcrumb > span { display: none; }
  .breadcrumb > svg { display: none; }
  .topbar-actions { gap: 8px; }
  .global-search { width: 38px; height: 37px; padding: 0; justify-content: center; cursor: text; }
  .global-search input { position: absolute; width: 1px; height: 1px; opacity: 0; }
  .global-search:focus-within { position: absolute; right: 99px; left: 64px; z-index: 2; width: auto; padding: 0 10px; justify-content: flex-start; }
  .global-search:focus-within input { position: static; width: 100%; height: 100%; opacity: 1; }
  .global-search kbd { display: none; }
  .topbar-actions .alert-button { width: 35px; height: 35px; }
  .page-content { padding: 23px 15px 23px; }
  .app-footer { flex-direction: column; gap: 6px; padding: 12px 15px 15px; font-size: 9px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 16px; margin-bottom: 18px; }
  .page-heading h1 { font-size: 26px; }
  .page-heading p { max-width: 470px; font-size: 11px; line-height: 1.5; }
  .heading-actions { width: 100%; }
  .heading-actions .button { flex: 1; }
  .metric-grid { gap: 9px; margin-bottom: 11px; }
  .metric-strip { grid-template-columns: 1fr; gap: 8px; margin-bottom: 12px; }
  .metric-strip .metric-card { min-height: 88px; padding: 12px 14px; }
  .metric-card { padding: 12px 13px 11px; border-radius: 11px; }
  .metric-icon { width: 28px; height: 28px; }
  .metric-value { margin: 7px 0 4px; font-size: 21px; }
  .metric-top { font-size: 9px; }
  .metric-foot { font-size: 8px; }
  .dashboard-grid, .analysis-grid { grid-template-columns: 1fr; gap: 11px; }
  .movement-panel, .analysis-chart-panel, .top-products-panel, .category-panel { grid-column: auto; }
  .panel { padding: 15px 14px; border-radius: 12px; }
  .table-panel { padding: 0; }
  .panel h2, .table-toolbar h2 { font-size: 13px; }
  .movement-panel, .category-panel { min-height: 0; }
  .bar-chart { height: 132px; }
  .donut-layout { flex-direction: row; justify-content: space-around; gap: 14px; padding: 22px 0 8px; }
  .donut { width: 124px; height: 124px; }
  .donut-hole { width: 76px; height: 76px; }
  .category-legend { width: auto; min-width: 135px; grid-template-columns: 1fr; gap: 9px; }
  .alert-panel, .activity-panel { min-height: 0; }
  .top-products-panel { grid-column: auto; }
  .table-toolbar { align-items: flex-start; flex-direction: column; padding: 14px; }
  .table-controls { width: 100%; flex-wrap: wrap; }
  .search-control { min-width: 125px; flex: 1; }
  .select-control { flex: 1; }
  .select-control select { width: 100%; max-width: unset; }
  .table-footer { align-items: flex-start; flex-direction: column; padding: 10px 14px; }
  .data-table { min-width: 850px; }
  .movement-table { min-width: 690px; }
  .alert-hero-grid { gap: 9px; }
  .alert-hero { min-height: 112px; gap: 9px; padding: 13px; }
  .alert-hero-icon { width: 36px; height: 36px; }
  .alert-hero div > span { font-size: 7px; }
  .alert-hero strong { font-size: 24px; }
  .alert-hero small { font-size: 8px; }
  .inventory-date, .period-tag { font-size: 9px; }
  .history-row { grid-template-columns: 1fr 85px 68px; font-size: 8px; }
  .history-product { font-size: 9px; }
  .analysis-note-panel { min-height: 0; }
  .modal { width: min(500px, calc(100vw - 18px)); max-height: calc(100vh - 24px); }
  .modal-card { padding: 18px; }
  .form-grid { gap: 12px 8px; }
  .form-field input, .form-field select { height: 36px; padding: 0 8px; font-size: 10px; }
  .toast-root { right: 12px; bottom: 12px; left: 12px; }
  .toast { max-width: none; }
  .mobile-scrim { position: fixed; z-index: 25; inset: 0; display: none; background: rgba(24,39,28,.3); }
  body.sidebar-open .mobile-scrim { display: block; }
}
@media (max-width: 390px) {
  .breadcrumb { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-card { padding: 10px; }
  .metric-value { font-size: 19px; }
  .metric-icon { width: 25px; height: 25px; }
  .category-legend { min-width: 118px; }
  .donut { width: 108px; height: 108px; }
  .donut-hole { width: 68px; height: 68px; }
  .donut-hole strong { font-size: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .alert-hero-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Papercraft palette and paper treatment adapted from the Budget project. */
:root {
  --paper: #f4efe5;
  --paper-deep: #eadfce;
  --white: #fffaf0;
  --ink: #3d443f;
  --ink-soft: #6d746d;
  --muted: #92958b;
  --line: #d8c9b6;
  --line-strong: #cdb9a2;
  --forest: #496b58;
  --forest-deep: #304e42;
  --sage: #9fbd92;
  --sage-pale: #e5eee1;
  --lime-pale: #f2f1e4;
  --amber: #bd8738;
  --amber-pale: #fff1ce;
  --red: #b86162;
  --red-pale: #fae4df;
  --shadow: 0 5px 0 rgba(112,84,55,.055), 0 14px 28px rgba(82,61,39,.09);
  --radius: 14px;
  color: var(--ink);
  font-family: "Segoe UI", Arial, sans-serif;
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18px 18px, rgba(109,116,109,.08) 1.2px, transparent 1.5px) 0 0 / 36px 36px,
    linear-gradient(112deg, rgba(243,222,219,.55), transparent 34%),
    linear-gradient(252deg, rgba(208,225,199,.52), transparent 35%),
    var(--paper);
}
body::before, body::after {
  position: fixed;
  z-index: 0;
  width: min(360px, 32vw);
  height: 92px;
  background: url("./assets/floral-garland.svg") center / contain no-repeat;
  content: "";
  opacity: .42;
  pointer-events: none;
}
body::before { top: -13px; left: -66px; transform: rotate(-7deg); }
body::after { right: -86px; bottom: -17px; transform: rotate(172deg); }
.app-shell { position: relative; z-index: 1; max-width: 1900px; margin: 0 auto; }
@media (min-width: 2240px) {
  .app-shell { max-width: 2160px; }
  .app-footer { max-width: 2120px; }
}

@media (min-width: 701px) {
  .sidebar {
    position: relative;
    inset: auto;
    display: flex;
    width: 100%;
    min-height: 94px;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    padding: 16px clamp(22px, 4vw, 60px);
    color: var(--forest-deep);
    background: rgba(255,250,240,.75);
    border-bottom: 1px solid rgba(184,151,116,.35);
    box-shadow: 0 5px 18px rgba(89,72,48,.045);
    backdrop-filter: blur(8px);
  }
  .brand { flex: 0 0 auto; min-height: 52px; gap: 12px; margin: 0; }
  .brand-mark {
    width: 48px;
    height: 48px;
    color: #bd6b54;
    background: #f6d8ca;
    border: 2px dashed #ca9a81;
    border-radius: 46% 54% 50% 50%;
    transform: rotate(-5deg);
  }
  .brand-name { color: var(--forest-deep); font-family: Georgia, "Times New Roman", serif; font-size: 20px; letter-spacing: -.45px; }
  .side-nav { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: center; gap: 4px; }
  .nav-link {
    width: auto;
    min-height: 44px;
    gap: 8px;
    padding: 0 13px;
    color: #704e4c;
    background: #f8e1d7;
    border: 1px solid #cdb9a2;
    border-bottom: 3px solid #cdb9a2;
    border-radius: 12px 12px 3px 3px;
    box-shadow: inset 0 -3px 0 rgba(125,91,66,.06);
    white-space: nowrap;
  }
  .nav-link:nth-child(2) { color: #6d592b; background: #f6e7bd; }
  .nav-link:nth-child(3) { color: #42604a; background: #dcebd8; }
  .nav-link:nth-child(4) { color: #684f61; background: #eaddec; }
  .nav-link:nth-child(5) { color: #536273; background: #dce9ed; }
  .nav-link:nth-child(6) { color: #744e49; background: #f3dbd1; }
  .nav-link:hover { color: var(--forest-deep); background: #fff6e8; transform: translateY(-2px); }
  .nav-link.active { color: var(--forest-deep); background: #fffaf0; border-color: #b99c7f; border-bottom-color: #496b58; box-shadow: inset 0 -3px 0 rgba(73,107,88,.12); }
  .nav-icon, .nav-link.active .nav-icon { width: auto; color: #8c6d5d; }
  .nav-count { color: #fffaf0; background: #b86162; border-color: #b86162; }
  .sidebar-bottom { display: flex; flex: 0 0 auto; align-items: center; margin: 0; }
  .demo-note { display: none; }
  .reset-link { width: 39px; height: 39px; justify-content: center; padding: 0; color: var(--forest); background: #fffaf0; border: 1px dashed #cdb9a2; border-radius: 50%; font-size: 0; }
  .reset-link svg { color: var(--forest); }
  .main-column { min-height: calc(100vh - 94px); margin-left: 0; }
  .topbar {
    position: relative;
    width: calc(100% - 64px);
    max-width: 1780px;
    min-height: 70px;
    margin: 16px auto 0;
    padding: 0 22px;
    background: rgba(255,250,240,.83);
    border: 1px solid rgba(184,151,116,.3);
    border-radius: 7px 17px 8px 16px;
    box-shadow: 0 5px 0 rgba(112,84,55,.04), 0 10px 24px rgba(82,61,39,.055);
    backdrop-filter: blur(8px);
  }
  .topbar::before, .topbar::after {
    position: absolute;
    top: -8px;
    width: 74px;
    height: 18px;
    background: rgba(239,210,160,.68);
    box-shadow: 0 1px 2px rgba(80,58,33,.1);
    content: "";
  }
  .topbar::before { left: 7%; transform: rotate(-4deg); }
  .topbar::after { right: 8%; transform: rotate(4deg); }
  .page-content { width: min(100%, 1780px); padding-top: 31px; }
  .app-footer { max-width: 1860px; width: 100%; margin: 0 auto; }
}

.page-heading h1, .panel h2, .table-toolbar h2, .modal-heading h2 {
  color: var(--forest-deep);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -.035em;
}
.page-heading h1 { font-weight: 500; }
.eyebrow { color: #9b5b53; letter-spacing: .17em; }
.breadcrumb strong { color: var(--forest-deep); font-family: Georgia, "Times New Roman", serif; font-size: 15px; }
.global-search, .search-control, .icon-button {
  color: var(--forest);
  background: #fffaf0;
  border-color: #d8c9b6;
  border-radius: 10px 6px 11px 7px;
}
.global-search kbd { background: #f4ecdd; border-color: #e5d8c5; }
.button, .metric-card, .panel, .inventory-date, .period-tag, .notice-banner, .alert-hero {
  border-radius: 9px 15px 8px 16px;
}
.metric-card, .panel, .table-panel { border-color: #d8c9b6; box-shadow: var(--shadow); }
.panel { background: rgba(255,250,240,.94); }
.metric-card { background: #fffaf0; }
.button.primary { background: #496b58; box-shadow: 0 4px 0 rgba(48,78,66,.12), 0 8px 14px rgba(48,78,66,.12); }
.button.primary:hover { background: #385d4c; }
.button.secondary { color: #496b58; background: #fffaf0; border-color: #cdb9a2; }
.button.secondary:hover { background: #f5efe3; border-color: #b99c7f; }
.data-table th { color: #76594a; background: #f4ead9; border-color: #dfd2c0; }
.data-table td { border-color: #eee5d8; }
.table-toolbar, .table-footer { border-color: #e7dccd; }
.stock-status.ok { color: #496b58; background: #e5eee1; }
.stock-status.low { color: #916723; background: #fff1ce; }
.stock-status.rupture { color: #a34e50; background: #fae4df; }
.alert-panel .alert-summary { border-color: #eadfce; }
.modal::backdrop { background: rgba(51,63,53,.4); }
.modal-card { background: #fffaf0; border-color: #eadfce; box-shadow: 0 8px 0 rgba(112,84,55,.06), 0 22px 60px rgba(82,61,39,.18); }
.form-field input, .form-field select { background: #fffdf8; border-color: #dfd2c0; }
.form-field input:focus, .form-field select:focus { border-color: #9fbd92; }
.toast { background: #fffaf0; border-color: #d8c9b6; box-shadow: 0 8px 0 rgba(112,84,55,.05), 0 12px 30px rgba(82,61,39,.12); }

@media (max-width: 700px) {
  body::before, body::after { width: 240px; height: 60px; opacity: .27; }
  .sidebar { color: #e7eee5; background: var(--forest-deep); }
  .brand-mark { color: #f5f5e9; background: #617c62; border: 1px solid rgba(255,255,255,.17); border-radius: 13px; transform: none; }
  .brand-name { color: #e7eee5; }
  .nav-link, .nav-link:nth-child(n) { color: #c5d1c6; background: transparent; border: 0; border-radius: 10px; box-shadow: none; }
  .nav-link.active { color: white; background: #496b58; box-shadow: inset 3px 0 #e9ba55; }
  .nav-icon, .nav-link.active .nav-icon { color: #c2d1bd; }
  .demo-note { display: flex; }
  .reset-link { width: 100%; height: 38px; justify-content: flex-start; padding: 0 10px; color: #a6b8a6; border: 0; border-radius: 9px; font-size: 11px; }
  .topbar { background: rgba(255,250,240,.9); border-color: rgba(184,151,116,.3); }
  .topbar::before, .topbar::after { display: none; }
  .breadcrumb strong { font-size: 12px; }
}

/* Keep the paper navigation readable while the desktop header is narrow. */
@media (min-width: 701px) and (max-width: 930px) {
  .sidebar {
    min-height: 112px;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    padding: 8px 20px 10px;
  }
  .brand { min-height: 42px; gap: 9px; }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 18px; }
  .side-nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: center;
    gap: 3px;
  }
  .nav-link { min-height: 38px; gap: 5px; padding: 0 8px; font-size: 10px; }
  .sidebar-bottom { margin-left: auto; }
  .reset-link span { display: none; }
  .topbar { margin-top: 12px; }
}



/* Product photo picker and catalogue thumbnails. */
.product-photo-field { padding-top: 2px; margin-top: 15px; }
.photo-field-title { display: block; margin-bottom: 8px; color: #697469; font-size: 10px; font-weight: 600; }
.product-photo-editor { display: flex; min-width: 0; align-items: center; gap: 12px; }
.product-photo-preview { display: grid; width: 56px; height: 56px; flex: 0 0 auto; overflow: hidden; place-items: center; color: #58745a; background: #eef2e9; border-radius: 11px; }
.product-photo-preview img { display: block; width: 100%; height: 100%; object-fit: cover; }
.product-photo-controls { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px; }
.photo-file-input { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; }
.photo-upload-button, .photo-remove-button { display: inline-flex; min-height: 34px; align-items: center; justify-content: center; gap: 6px; padding: 0 10px; color: var(--forest); background: #f4f6f0; border: 1px solid #dce4d7; border-radius: 8px; font: inherit; font-size: 10px; font-weight: 600; cursor: pointer; }
.photo-upload-button:hover, .photo-remove-button:hover { background: #edf2e9; }
.product-photo-editor:focus-within .photo-upload-button { outline: 2px solid #6d946d; outline-offset: 2px; }
.photo-remove-button:focus-visible { outline: 2px solid #6d946d; outline-offset: 2px; }
.photo-remove-button { color: #a04d48; background: #fff6f2; border-color: #f0ded6; }
.photo-remove-button[hidden] { display: none; }
.product-photo-controls .field-help { flex-basis: 100%; }

