@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,500;0,600;1,500&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  --plum: #713b60;
  --deep: #352431;
  --ink: #242732;
  --muted: #626a79;
  --line: #e2e4e9;
  --paper: #f5f6f8;
  --serif: 'Cormorant Garamond', Georgia, serif;
}
* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 14px/1.5 'DM Sans', sans-serif; -webkit-font-smoothing: antialiased; }
body.dialog-open { overflow: hidden; }
button, input, select, a { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; background: none; border: 0; }
button, a, input, select { transition: background-color .18s, border-color .18s, box-shadow .18s, transform .18s; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #a66c96; outline-offset: 3px; }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
a { text-decoration: none; color: inherit; }
h1, h2, h3, p { margin: 0; }
.ui-icon { width: 19px; height: 19px; display: inline-block; flex: none; vertical-align: middle; }
.muted { color: var(--muted); }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 240px; background: var(--deep); padding: 28px 18px 0; display: flex; flex-direction: column; z-index: 20; color: #e7dfe5; }
.brand-lockup { display: flex; gap: 10px; align-items: center; padding: 0 4px 27px; }
.brand-lockup img { width: 40px; height: 45px; border-radius: 6px; }
.brand-lockup strong { font: 600 21px var(--serif); white-space: nowrap; letter-spacing: -.5px; color: #fff; }
.brand-dot { color: #dda5bd; }
.brand-lockup small { display: block; font-size: 7px; letter-spacing: 2px; color: #c8b7c3; margin-top: 5px; }
.workspace-tag { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #44303f; border: 1px solid #634956; border-radius: 7px; color: #dfd0da; font-size: 9px; letter-spacing: 1px; }
.workspace-tag > span:last-child { margin-left: auto; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #76b48d; display: inline-block; flex: none; }
.sidebar nav { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #634956 transparent; padding-bottom: 12px; }
.nav-section { margin-top: 24px; }
.nav-section > p { font-size: 9px; letter-spacing: 1.35px; color: #bfa9b9; padding: 0 13px; margin-bottom: 9px; }
.nav { width: 100%; display: flex; align-items: center; gap: 11px; text-align: left; padding: 11px 13px; margin: 3px 0; border: 1px solid transparent; border-radius: 7px; color: #dfd0da; font-size: 13px; }
.nav .ui-icon { width: 18px; height: 18px; color: #bfa5b7; }
.nav:hover { background: #473240; color: white; }
.nav.active { background: #f2e5ed; color: #582747; border-color: #f2e5ed; font-weight: 700; box-shadow: 0 3px 10px #1b101c20; }
.nav.active .ui-icon { color: #713b60; }
.nav small { margin-left: auto; background: #604354; padding: 1px 6px; border-radius: 4px; font-size: 10px; color: white; }
.nav.active small { background: #fff; color: #713b60; }
.settings-nav { margin-top: 21px; font-size: 12px; }
.sidebar-note { display: flex; align-items: center; gap: 10px; flex-shrink: 0; margin: 16px 0; border: 1px solid #654959; background: #44303c; padding: 17px 12px; border-radius: 9px; font-size: 11px; color: #d4bfcc; }
.sidebar-note em { font: italic 500 18px var(--serif); color: #f1d9df; }
.note-icon { color: #d0a794; }
.profile { display: flex; align-items: center; gap: 9px; flex-shrink: 0; text-align: left; border-top: 1px solid #624857; padding: 18px 0; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 35px; height: 35px; flex: none; border-radius: 50%; background: #f1e4ec; color: #713b60; font-size: 11px; font-weight: 700; border: 2px solid #fff; }
.profile strong { display: block; font-size: 11px; color: #fff; font-weight: 600; max-width: 138px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.profile small { display: block; color: #c4aebd; font-size: 10px; margin-top: 4px; }
.profile-dots { margin-left: auto; font-size: 19px; }
.main { margin-left: 240px; }
.topbar { height: 76px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 0 34px; background: #fff; }
.breadcrumb { color: #6f7180; font-size: 12px; white-space: nowrap; }
.breadcrumb span { color: #a0a5b0; margin: 0 13px; }
.breadcrumb strong { color: #343541; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 19px; }
.global-search { display: flex; align-items: center; gap: 8px; color: #6f7180; }
.global-search input { width: 165px; border: 0; font-size: 11px; background: none; color: #333541; outline: 0; }
.global-search input::placeholder { color: #747886; }
.global-search .ui-icon { width: 16px; height: 16px; }
.global-search kbd { font-size: 11px; color: #7f8491; border: 1px solid #dfe1e7; border-radius: 4px; padding: 0 4px; }
.header-divider { height: 24px; width: 1px; background: var(--line); }
.shop-switch { display: flex; align-items: center; gap: 7px; border: 1px solid #e2d5df; border-radius: 6px; padding: 8px 10px; color: #67425b; font-size: 11px; font-weight: 600; background: #fff; }
.shop-switch .ui-icon { width: 15px; height: 15px; }
main { max-width: 1680px; margin: auto; padding: 30px 34px 0; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 25px; }
.eyebrow { color: #82526f; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
.eyebrow > span { margin: 0 6px; color: #bda4b4; }
.page-heading h1 { font: 700 28px/1.2 'DM Sans', sans-serif; color: #292531; margin-top: 8px; letter-spacing: -.8px; }
.page-heading p { font-size: 12px; color: #636673; margin-top: 9px; line-height: 1.6; }
.heading-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid #713b60; background: #713b60; color: white; border-radius: 7px; padding: 11px 17px; min-height: 42px; font-size: 12px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.btn .ui-icon { width: 16px; height: 16px; }
.btn:hover { background: #572c49; border-color: #572c49; box-shadow: 0 4px 10px #713b6020; }
.btn.secondary { background: #fff; color: #515463; border-color: #d7dbe3; }
.btn.secondary:hover { background: #f4f0f4; border-color: #a991a0; }
.select-control { border: 1px solid #d8dce4; border-radius: 7px; padding: 11px 28px 11px 12px; color: #525969; font-size: 12px; background: white; cursor: pointer; min-height: 42px; }
.editorial-hero { position: relative; height: 258px; overflow: hidden; border-radius: 11px; background: #432b3b; isolation: isolate; border: 1px solid #5f3f50; box-shadow: 0 5px 14px #32263809; }
.hero-photo { position: absolute; inset: -3% -1% -3% 35%; background: url('assets/boutique-editorial.png') 63% 46% / cover; z-index: -3; animation: editorialDrift 25s ease-in-out infinite alternate; }
.hero-wash { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg,#422b3c 0%,#422b3c 36%,#422b3ce0 44%,#422b3c00 66%); }
.hero-grain { display: none; }
.hero-copy { position: relative; padding: 28px 33px; color: #fff; }
.hero-kicker { display: flex; align-items: center; gap: 9px; color: #e2c6d3; font-size: 8px; font-weight: 500; letter-spacing: 1.5px; }
.hero-kicker > span { width: 19px; height: 1px; background: #e5c9bd; }
.hero-copy h2 { font: 600 37px/1.03 var(--serif); letter-spacing: -.5px; color: #fff; margin-top: 15px; }
.hero-copy h2 em { font-weight: 500; color: #e6c5cf; }
.hero-copy p { color: #e4d4de; font-size: 11px; line-height: 1.7; margin-top: 14px; }
.hero-link { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; color: #fff; font-weight: 500; border-bottom: 1px solid #be9bab; padding: 0 0 5px; margin-top: 14px; }
.hero-link .ui-icon { width: 15px; height: 15px; }
.hero-link:hover .ui-icon { transform: translateX(3px); }
.hero-stamp { position: absolute; top: 18px; right: 20px; color: #fff; background: #4a2c4090; width: 66px; height: 66px; border: 1px solid #ead8cf; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; transform: rotate(9deg); }
.hero-stamp span { font: 600 22px var(--serif); }
.hero-stamp small { font-size: 4.5px; letter-spacing: 1px; margin-top: 3px; }
.floating-label { position: absolute; right: 19px; bottom: 19px; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #e4d6d8; background: #fff; box-shadow: 0 5px 15px #3d1f3528; border-radius: 8px; animation: floatLabel 8s ease-in-out infinite; }
.floating-symbol { width: 30px; height: 33px; border-radius: 5px; background: #f2e8ed; color: #713b60; display: flex; justify-content: center; align-items: center; }
.floating-label small { display: block; color: #6e5965; font-size: 7px; font-weight: 500; letter-spacing: .6px; }
.floating-label strong { display: block; color: #342b34; font-size: 11px; font-weight: 600; margin-top: 4px; }
.floating-dot { height: 5px; width: 5px; border-radius: 50%; background: #508263; margin-left: 6px; }
.section-caption { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 25px 0 13px; font-size: 9px; letter-spacing: 1.3px; font-weight: 600; color: #6a4d61; }
.section-caption > span:last-child { font-size: 10px; letter-spacing: 0; font-weight: 400; color: #687181; }
.caption-dot { margin: 0 5px; }
.section-caption > button { display: inline-flex; align-items: center; gap: 7px; color: #713b60; font-weight: 600; font-size: 10px; letter-spacing: 0; }
.section-caption .ui-icon { width: 14px; height: 14px; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 15px; margin-bottom: 22px; }
.metric-card { border: 1px solid var(--line); border-top: 3px solid #855270; border-radius: 9px; background: white; padding: 18px; box-shadow: 0 3px 7px #29304903; }
.metric-card:hover { box-shadow: 0 7px 19px #2930490a; transform: translateY(-2px); }
.metric-card.rose { border-top-color: #bd7187; }
.metric-card.sage { border-top-color: #5f8a7a; }
.metric-card.sand { border-top-color: #bd9660; }
.metric-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #51596a; font-size: 12px; font-weight: 500; }
.metric-icon { display: inline-flex; background: #f3eaf0; color: #713b60; padding: 7px; border-radius: 7px; }
.metric-icon .ui-icon { width: 16px; height: 16px; }
.rose .metric-icon { background: #fbeaf0; color: #ab4a68; }
.sage .metric-icon { background: #eaf4ee; color: #2e7258; }
.sand .metric-icon { background: #faf1e4; color: #93682e; }
.metric-value { display: block; font-size: 28px; color: #282632; font-weight: 700; letter-spacing: -.9px; margin-top: 10px; font-variant-numeric: tabular-nums; }
.metric-bottom { display: flex; align-items: baseline; gap: 6px; font-size: 10px; color: #626a79; margin-top: 9px; line-height: 1.6; }
.metric-mini-dot { display: inline-block; width: 4px; height: 4px; flex: none; background: #9d778f; border-radius: 50%; align-self: center; }
.card { border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; box-shadow: 0 3px 7px #29304903; }
.card-heading { padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-heading h2 { font-size: 14px; font-weight: 700; color: #32313d; }
.card-heading p { font-size: 11px; color: #657080; margin-top: 6px; line-height: 1.6; }
.card-heading > .ui-icon { color: #8c6680; }
.analytics-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 21px; }
.chart-legend { display: inline-flex; align-items: center; gap: 6px; color: #6b5964; font-size: 10px; white-space: nowrap; }
.chart-legend i { width: 6px; height: 6px; background: #713b60; border-radius: 50%; }
.chart-body { display: flex; gap: 12px; padding: 8px 23px 0; }
.chart-axis { display: flex; flex-direction: column; justify-content: space-between; color: #6b7380; font-size: 10px; min-width: 39px; padding: 21px 0 34px; }
.chart-plot { flex: 1; min-width: 0; }
.chart-plot svg { display: block; width: 100%; height: 175px; overflow: visible; }
.chart-labels { display: flex; justify-content: space-between; color: #666d7b; font-size: 10px; padding: 9px 2.5% 0; }
.chart-summary { border-top: 1px solid var(--line); padding: 17px 23px; margin-top: 21px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.chart-summary > span { display: inline-flex; align-items: center; gap: 6px; color: #6d6872; font-size: 9px; }
.chart-summary .ui-icon { width: 13px; height: 13px; }
.chart-summary strong { color: #653b55; font-size: 12px; font-weight: 700; white-space: nowrap; }
.chart-summary small { font-size: 9px; font-weight: 400; color: #686c79; }
.chart-line { stroke-dasharray: 1; stroke-dashoffset: 1; animation: drawLine 1s ease forwards; }
.chart-point circle { cursor: crosshair; }
.point-tooltip { opacity: 0; pointer-events: none; transition: opacity .15s; }
.chart-point:hover .point-tooltip, .chart-point:focus .point-tooltip { opacity: 1; }
.collection-donut { margin: 0 auto 22px; width: 138px; height: 138px; background: var(--donut); display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.collection-donut > div { width: 102px; height: 102px; background: #fff; box-shadow: 0 0 0 4px #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; }
.collection-donut strong { color: #302c36; font-size: 27px; font-weight: 700; }
.collection-donut small { color: #6e6670; font-size: 9px; margin-top: 3px; }
.category-legend { padding: 0 24px 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 16px; }
.category-legend > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 10px; color: #5f5f6a; }
.category-legend span { display: flex; align-items: center; gap: 6px; }
.category-legend i { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.category-legend strong { font-weight: 600; color: #454453; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; perspective: 1200px; }
.showroom-card { position: relative; overflow: hidden; text-align: left; border: 1px solid #d8c8d4; border-radius: 10px; background: #f5edf3; padding: 21px 23px; transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .35s,box-shadow .2s; }
.showroom-card:hover { border-color: #9e6d8e; box-shadow: 0 7px 18px #643d5014; }
.showroom-card.selected-shop { border-color: #713b60; box-shadow: 0 0 0 1px #713b60; }
.rose-shop { background: #fcf1eb; border-color: #e8cfc1; }
.showroom-top { display: flex; align-items: center; gap: 9px; position: relative; z-index: 1; }
.shop-glyph { width: 31px; height: 33px; border: 1px solid #d7c1d0; border-radius: 6px; background: #fff; color: #713b60; display: flex; align-items: center; justify-content: center; }
.shop-glyph .ui-icon { width: 18px; height: 18px; }
.shop-tag { font-size: 9px; font-weight: 600; letter-spacing: 1px; color: #714561; }
.live-tag { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; color: #2c6a48; font-size: 10px; background: #fff; padding: 3px 7px; border-radius: 4px; }
.live-tag i { width: 4px; height: 4px; background: #398255; border-radius: 50%; }
.showroom-top > .ui-icon { width: 16px; height: 16px; color: #765068; }
.showroom-card h3 { position: relative; z-index: 1; font: 700 20px 'DM Sans', sans-serif; color: #503246; letter-spacing: -.5px; margin-top: 17px; }
.showroom-card p { position: relative; z-index: 1; font-size: 10px; color: #735f6d; margin-top: 7px; line-height: 1.7; }
.showroom-card p > span { margin-left: 7px; }
.rose-shop h3 { color: #704a36; }
.rose-shop p, .rose-shop .shop-tag { color: #85614e; }
.shop-metrics { display: flex; padding-top: 16px; margin-top: 18px; border-top: 1px solid #d8c8d4; position: relative; z-index: 1; }
.shop-metrics > div { flex: 1; border-right: 1px solid #d8c8d4; padding-left: 15px; }
.shop-metrics > div:first-child { padding-left: 0; }
.shop-metrics > div:last-child { border: 0; }
.shop-metrics small { display: block; color: #725d6b; font-size: 10px; margin-bottom: 5px; }
.shop-metrics strong { color: #4c3143; font-size: 16px; font-weight: 700; white-space: nowrap; }
.shop-metrics em { font: 400 10px 'DM Sans', sans-serif; }
.rose-shop .shop-metrics strong { color: #73503c; }
.shop-watermark { position: absolute; right: 8px; top: 43px; font: italic 600 135px/.8 var(--serif); color: #b591aa17; pointer-events: none; }
.activity-grid { display: grid; grid-template-columns: 1.8fr 1fr; gap: 21px; margin-top: 22px; }
.text-link { display: inline-flex; align-items: center; gap: 7px; font-size: 11px; color: #713b60; font-weight: 600; white-space: nowrap; }
.text-link .ui-icon { width: 14px; height: 14px; }
.text-link:hover { text-decoration: underline; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; text-align: left; }
th { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; background: #f6f7f9; color: #5f6272; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 13px 20px; }
td { font-size: 12px; color: #515768; padding: 17px 20px; border-bottom: 1px solid #e8eaf0; }
td strong { color: #35323e; font-size: 12px; font-weight: 600; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcf9fb; }
.table-wrap { overflow-x: auto; scrollbar-width: thin; scrollbar-color: #c5abbc transparent; }
.status-label { display: block; color: #6c6e7b; font-size: 10px; margin-top: 5px; }
.table-action { font-size: 10px; font-weight: 600; border: 1px solid #d7c9d3; border-radius: 5px; padding: 5px 9px; color: #713b60; background: white; }
.table-action:hover { background: #f1e5ec; }
.badge { font-size: 10px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; border-radius: 4px; background: #e8f3ed; color: #286348; font-weight: 500; white-space: nowrap; }
.badge i { width: 4px; height: 4px; background: currentColor; border-radius: 50%; }
.badge-warning { background: #fcf0db; color: #8d5915; }
.badge-rose { background: #f2e3ed; color: #88466d; }
.attention-count { display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 5px; color: #8d5915; background: #fbefd9; font-size: 11px; font-weight: 600; }
.stock-row { display: flex; align-items: center; gap: 10px; margin: 0 22px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stock-row > div { min-width: 0; }
.stock-row strong { display: block; font-size: 11px; font-weight: 600; color: #49394a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stock-row small { display: block; font-size: 9px; color: #6d6d7b; margin-top: 5px; }
.stock-link { margin: 19px 22px; }
.low-stock { margin-left: auto; white-space: nowrap; background: #fcf0dc; color: #8c5715; font-size: 9px; border-radius: 4px; padding: 4px 7px; }
.product-swatch { width: 35px; height: 40px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center; background: #f0dfeb; color: #87506f; flex: none; }
.product-swatch .ui-icon { width: 18px; height: 18px; }
.swatch-rose { background: #f2dce2; color: #a1526c; }
.swatch-plum { background: #e6d5e1; color: #713b60; }
.swatch-sage { background: #e1ece5; color: #4b745c; }
.swatch-sand { background: #f2e6d6; color: #967145; }
.product-cell { display: flex; align-items: center; gap: 11px; }
.shop-pill { color: #694d60; font-size: 10px; font-weight: 500; background: #f6f0f4; border: 1px solid #e1d4dd; padding: 4px 7px; border-radius: 4px; white-space: nowrap; }
.module-strip { display: flex; align-items: center; gap: 15px; border: 1px solid #dfd1dc; background: #f2eaf0; padding: 23px; border-radius: 9px; margin-bottom: 25px; }
.module-icon { width: 40px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 6px; color: #713b60; background: white; border: 1px solid #ddc8d6; }
.module-strip > p { font-size: 12px; color: #695064; max-width: 325px; line-height: 1.7; }
.module-strip > div { display: flex; gap: 30px; margin-left: auto; }
.module-strip > div > span { display: flex; flex-direction: column; gap: 6px; white-space: nowrap; }
.module-strip small { color: #755e6c; font-size: 10px; }
.module-strip strong { font-size: 21px; font-weight: 700; color: #4f2c43; }
.view-tabs { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 18px; }
.view-tabs > button { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: #666575; border: 1px solid transparent; border-radius: 6px; padding: 10px 13px; }
.view-tabs .selected { background: #eadde7; color: #713b60; border-color: #d9bfd0; font-weight: 700; }
.view-tabs > button:hover { background: #f0e7ed; }
.view-tabs .ui-icon { width: 15px; height: 15px; }
.report-shops { margin-bottom: 24px; }
.report-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.report-toolbar .view-tabs { margin: 0; }
.report-summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 27px; }
.report-summary h2 { font-size: 20px; font-weight: 700; color: #3b2d39; margin-top: 8px; }
.report-summary p { font-size: 11px; color: #6d6770; margin-top: 7px; }
.report-summary > strong { font-size: 30px; font-weight: 700; color: #713b60; }
.report-note { color: #656b78; font-size: 11px; margin-top: 16px; line-height: 1.7; }
.positive { color: #26754d; font-weight: 700; }
.negative { color: #a43f65; font-weight: 700; }
.search-row { padding: 20px 23px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.search-field { width: 320px; min-width: 180px; display: flex; align-items: center; gap: 8px; border: 1px solid #d5d9e2; border-radius: 6px; padding: 10px 12px; color: #777382; }
.search-field .ui-icon { width: 16px; height: 16px; }
.search-field input { width: 100%; border: 0; outline: 0; background: none; color: #333743; font-size: 12px; }
.search-field input::placeholder { color: #747887; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; gap: 8px; padding: 40px 20px; font-size: 11px; color: #6c6471; }
.empty-state > span { font-size: 10px; }
.empty-state .ui-icon { width: 27px; height: 27px; color: #956d87; margin-bottom: 6px; }
.empty-table { padding: 40px 20px; text-align: center; line-height: 1.9; color: #626675; font-size: 12px; }
.empty-table > span { font-size: 11px; }
.settings-card { padding: 28px; max-width: 780px; }
.settings-card > h2 { font-size: 22px; font-weight: 700; color: #3e2b3a; }
.settings-card > p { font-size: 12px; color: #6a6570; line-height: 1.8; margin-top: 10px; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 23px 0; border-bottom: 1px solid var(--line); }
.setting-row strong { display: block; color: #493746; font-size: 13px; font-weight: 600; }
.setting-row small { display: block; color: #6e6874; font-size: 11px; margin-top: 5px; }
.setting-row input { width: 18px; height: 18px; }
.settings-card .btn { margin-top: 24px; }
footer { border-top: 1px solid #dde0e7; margin-top: 30px; padding: 20px 0 25px; display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #73707c; font-size: 9px; }
footer > div { display: flex; align-items: center; gap: 7px; }
footer .status-dot { width: 5px; height: 5px; }
footer button { color: #713b60; font-size: 9px; font-weight: 500; }
.footer-separator { margin: 0 4px; }
.reset-link { margin-left: 10px; text-decoration: underline; }
.mobile-navigation { display: none; }
.page-content { animation: contentIn .2s ease-out; }
dialog { border: 1px solid #d4c6d0; border-radius: 14px; padding: 0; width: min(650px,calc(100vw - 40px)); max-height: calc(100dvh - 48px); background: #fff; color: var(--ink); box-shadow: 0 24px 90px #16142140; }
dialog::backdrop { background: #1d15235c; }
.modal-header { display: flex; align-items: flex-start; gap: 13px; padding: 24px 27px; border-bottom: 1px solid var(--line); background: #fff; }
.modal-header-icon { width: 41px; height: 44px; flex: none; border: 1px solid #e2cad9; border-radius: 9px; background: #f7edf3; display: flex; align-items: center; justify-content: center; color: #713b60; }
.modal-eyebrow { display: block; color: #875776; font-size: 9px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 5px; }
.modal-header h2 { font: 700 22px/1.3 'DM Sans',sans-serif; letter-spacing: -.5px; color: #302431; }
.modal-header p { font-size: 12px; color: #6b6773; margin-top: 6px; line-height: 1.6; }
.modal-close { display: flex; align-items: center; justify-content: center; margin: 0 0 0 auto; border: 1px solid #dfe1e6; border-radius: 6px; width: 32px; height: 32px; flex: none; color: #616170; background: #fff; font-size: 24px; line-height: 1; }
.modal-close:hover { background: #f2e7ef; color: #713b60; border-color: #c8a5bc; }
.modal-content { padding: 25px 27px; }
.dialog-description { font-size: 12px; color: #68616d; margin-bottom: 22px; line-height: 1.7; }
label { font-size: 12px; font-weight: 500; color: #4b4351; }
.field { display: block; width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #cdd2dc; border-radius: 6px; color: #272936; background: #fff; font-size: 13px; line-height: 1.4; margin-top: 7px; }
.field:focus { border-color: #92507d; box-shadow: 0 0 0 3px #713b6010; outline: 0; }
.field::placeholder { color: #81818f; }
select.field { cursor: pointer; padding-right: 25px; }
input[type=checkbox] { accent-color: #713b60; }
.dialog-footer { display: flex; justify-content: flex-end; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 19px; margin-top: 25px; }
.full-width { grid-column: 1/-1; }
.shop-picker { display: grid; gap: 10px; }
.shop-picker > button { display: flex; align-items: center; gap: 14px; border: 1px solid #dfd5dc; border-radius: 8px; padding: 18px; background: #fff; text-align: left; color: #80516c; }
.shop-picker > button:hover { background: #f5ecf2; border-color: #a77995; }
.shop-picker span { flex: 1; }
.shop-picker strong { display: block; font-size: 13px; font-weight: 600; color: #523d4d; }
.shop-picker small { display: block; font-size: 11px; color: #706574; margin-top: 5px; }
#toast { position: fixed; bottom: 24px; right: 24px; border: 1px solid #6a435c; border-radius: 9px; padding: 15px 22px; background: #422c3c; color: white; font-size: 12px; box-shadow: 0 6px 25px #21112625; display: none; z-index: 100; max-width: calc(100vw - 32px); }
.transaction-dialog { width: min(1020px,calc(100vw - 48px)); }
dialog[open] #modal-body { display: flex; flex-direction: column; max-height: calc(100dvh - 50px); min-height: 0; }
.modal-header { flex-shrink: 0; }
.modal-content { overflow-y: auto; min-height: 0; }
.transaction-dialog .modal-content { padding: 0; overflow: hidden; display: flex; flex-direction: column; flex: 1; }
.transaction-dialog form { display: flex; flex-direction: column; min-height: 0; }
.transaction-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; overflow-y: auto; min-height: 0; overscroll-behavior: contain; }
.transaction-main { padding: 18px 27px; min-width: 0; }
.form-section + .form-section { margin-top: 23px; }
.form-section-title { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.form-section-title > span { display: inline-flex; align-items: center; justify-content: center; height: 24px; width: 24px; border-radius: 6px; background: #eee5ed; color: #713b60; font-size: 10px; font-weight: 700; }
.form-section-title h3 { font: 700 13px 'DM Sans',sans-serif; color: #3b3040; }
.form-section-title small { margin-left: auto; color: #727481; font-size: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid > label { min-width: 0; }
.field-hint { display: block; color: #72717f; font-size: 10px; line-height: 1.6; margin-top: 7px; font-weight: 400; }
.item-entry { display: grid; grid-template-columns: minmax(0,1fr) 70px auto; align-items: end; gap: 9px; padding: 12px; border: 1px solid #e0d4de; background: #faf7fa; border-radius: 8px; }
.item-entry label { font-size: 11px; }
.item-entry .field { min-height: 41px; padding: 10px; font-size: 12px; margin-top: 6px; }
.item-entry .btn { min-height: 41px; padding: 10px 13px; }
.stock-availability { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #536559; margin: 10px 0 0; min-height: 17px; }
.stock-availability .ui-icon { height: 12px; width: 12px; }
.cart-empty { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 8px; margin-top: 16px; padding: 32px 14px; border: 1px dashed #d5c6d0; border-radius: 8px; background: #fff; text-align: center; }
.cart-empty > span { display: flex; align-items: center; justify-content: center; width: 40px; height: 43px; border-radius: 9px; color: #977589; background: #f3ecf0; margin-bottom: 3px; }
.cart-empty strong { color: #5e4e5c; font-size: 12px; font-weight: 600; }
.cart-empty p { color: #79727c; font-size: 11px; max-width: 260px; line-height: 1.6; }
.cart-table { margin-top: 16px; border: 1px solid #e1dce2; border-radius: 8px; overflow-x: auto; }
.cart-table th { padding: 11px 12px; font-size: 9px; border-top: 0; background: #f6f5f8; letter-spacing: .6px; }
.cart-table td { padding: 12px; font-size: 12px; vertical-align: middle; }
.cart-table td:first-child { white-space: normal; min-width: 145px; }
.cart-table td:first-child strong { display: block; color: #3e3040; line-height: 1.5; font-size: 12px; }
.cart-table small { display: block; font-size: 10px; color: #77717c; margin-top: 4px; }
.cart-quantity { display: flex; align-items: center; border: 1px solid #d5c6d0; background: #fff; border-radius: 5px; width: 100px; overflow: hidden; }
.cart-quantity button { display: flex; align-items: center; justify-content: center; width: 27px; min-height: 32px; flex: none; color: #80546f; font-size: 16px; background: #f8f3f6; }
.cart-quantity button:hover { background: #ead8e4; }
.cart-quantity input { min-width: 0; width: 44px; border: 0; border-left: 1px solid #eee6ed; border-right: 1px solid #eee6ed; text-align: center; background: white; padding: 7px 2px; font-size: 11px; appearance: textfield; -moz-appearance: textfield; }
.cart-quantity input::-webkit-inner-spin-button { -webkit-appearance: none; }
.remove-item { display: inline-flex; align-items: center; justify-content: center; color: #a6637b; height: 28px; width: 25px; font-size: 20px; border-radius: 4px; }
.remove-item:hover { background: #fae9ee; color: #95364f; }
.cart-footnote { display: flex; align-items: center; gap: 6px; color: #767080; font-size: 10px; margin-top: 12px; }
.cart-footnote .ui-icon { height: 12px; width: 12px; color: #826776; }
.transaction-summary { padding: 17px 23px; background: #f7f5f8; border-left: 1px solid #e4dce3; }
.summary-heading { display: flex; align-items: center; gap: 8px; color: #583a50; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.summary-heading .ui-icon { height: 17px; width: 17px; }
.summary-caption { font-size: 10px; color: #77707c; line-height: 1.6; margin-bottom: 14px; }
.summary-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 12px; color: #665c6a; margin: 9px 0; }
.summary-row strong { color: #3a2e3c; font-size: 12px; font-weight: 600; text-align: right; }
.summary-total { border-top: 1px solid #dcd0d9; border-bottom: 1px solid #dcd0d9; padding: 13px 0; margin: 14px 0; }
.summary-total > span { display: block; color: #786473; font-size: 10px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase; }
.summary-total > strong { display: block; color: #542e47; font-size: 30px; line-height: 1.4; font-weight: 700; letter-spacing: -.8px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.summary-vat { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 9px 0; }
.summary-vat label { font-size: 12px; color: #665c6a; }
.summary-vat .field { width: 73px; margin-top: 0; min-height: 35px; padding: 7px 9px; text-align: right; font-size: 12px; }
.payment-entry { margin-top: 13px; }
.payment-label { display: flex; align-items: center; justify-content: space-between; }
.payment-label label { font-size: 11px; font-weight: 600; color: #5e4c5b; }
.fill-payment { font-size: 10px; color: #713b60; font-weight: 700; padding: 2px 0; text-decoration: underline; }
.money-field { display: flex; align-items: center; border: 1px solid #ccc1cc; border-radius: 6px; background: #fff; margin-top: 8px; }
.money-field > span { padding: 10px 0 10px 13px; color: #80556f; }
.money-field input { width: 100%; border: 0; padding: 10px; background: none; color: #342537; outline: 0; font-size: 16px; font-weight: 600; min-height: 45px; }
.money-field:focus-within { border-color: #92507d; box-shadow: 0 0 0 3px #713b6010; }
.due-line { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 8px 12px; border: 1px solid #ead6b2; border-radius: 6px; background: #fff7e9; color: #8b5c1d; margin-top: 10px; font-size: 11px; }
.due-line strong { font-size: 13px; font-weight: 700; }
.due-line.is-paid { background: #eaf4ed; border-color: #c8dece; color: #306d47; }
.due-line.is-invalid { background: #fcebef; border-color: #edc3ce; color: #9d3d58; }
.mushak-option { display: flex; align-items: flex-start; gap: 10px; padding-top: 14px; border-top: 1px solid #ded2dc; margin-top: 14px; }
.mushak-option input { margin-top: 3px; width: 15px; height: 15px; flex: none; }
.mushak-option strong { display: block; font-size: 11px; color: #64445a; font-weight: 600; line-height: 1.5; }
.mushak-option small { display: block; color: #7c6d78; font-size: 10px; line-height: 1.6; margin-top: 4px; }
.transaction-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 27px; border-top: 1px solid #ddd5df; background: #fff; flex-shrink: 0; }
.transaction-footer > div { display: flex; align-items: center; gap: 9px; }
.transaction-footer > p { font-size: 10px; color: #76717e; display: inline-flex; align-items: center; gap: 6px; }
.transaction-footer > p .ui-icon { height: 13px; width: 13px; color: #53765f; }
.transaction-footer .btn { min-height: 43px; }
.form-error { padding: 12px 16px; border: 1px solid #edc9d1; background: #fff0f3; color: #a13552; border-radius: 6px; font-size: 12px; margin: 12px 27px; line-height: 1.6; flex-shrink: 0; }
.form-error[hidden] { display: none; }
.product-receipt-preview { display: flex; align-items: center; gap: 12px; padding: 16px; background: #f9f7fa; border: 1px solid #e4dbe3; border-radius: 8px; margin-top: 17px; }
.product-receipt-preview .product-swatch { height: 45px; width: 41px; }
.product-receipt-preview strong { display: block; color: #4b3746; font-size: 12px; font-weight: 600; line-height: 1.6; }
.product-receipt-preview small { display: block; color: #786b77; font-size: 10px; margin-top: 3px; }
.stock-projection { border: 1px solid #d0ddcf; background: #edf4ed; border-radius: 7px; padding: 15px; margin-top: 20px; }
.stock-projection > span { color: #446e4d; font-size: 10px; font-weight: 600; }
.stock-projection > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 13px; }
.stock-projection p { display: flex; flex-direction: column; gap: 3px; }
.stock-projection strong { font-size: 23px; font-weight: 700; color: #36583d; }
.stock-projection small { font-size: 9px; color: #64816a; }
.stock-projection .ui-icon { color: #85a28a; }
.summary-note { display: flex; align-items: flex-start; gap: 6px; color: #756677; font-size: 10px; line-height: 1.7; margin-top: 22px; }
.summary-note .ui-icon { width: 14px; height: 14px; margin-top: 2px; }
@keyframes editorialDrift { from { transform: scale(1); } to { transform: scale(1.045); } }
@keyframes floatLabel { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes contentIn { from { transform: translateY(3px); } to { transform: none; } }
@media (min-width:1500px) {
  .editorial-hero { height: 286px; }
  .hero-copy { padding: 34px 40px; }
  .hero-copy h2 { font-size: 42px; }
  .hero-copy p { font-size: 12px; }
  .hero-link { margin-top: 19px; }
}
@media (max-height:820px) and (min-width:981px) { .sidebar-note { display: none; } }
@media (max-width:1200px) {
  .sidebar { width: 218px; padding-left: 15px; padding-right: 15px; }
  .main { margin-left: 218px; }
  .brand-lockup { gap: 7px; }
  .brand-lockup strong { font-size: 19px; }
  .brand-lockup img { width: 34px; }
  .global-search { display: none; }
  .topbar { padding: 0 25px; }
  main { padding: 27px 25px 0; }
  .stats { gap: 11px; }
  .metric-card { padding: 16px 13px; }
  .metric-value { font-size: 25px; }
  .metric-top { font-size: 11px; }
  .metric-bottom { font-size: 9px; }
  .shop-metrics strong { font-size: 13px; }
  .showroom-card p > span { display: block; margin: 3px 0 0; }
  .category-legend { grid-template-columns: 1fr; }
  .chart-summary > span { max-width: 165px; font-size: 8px; }
  .chart-summary small { font-size: 8px; }
  .stock-row strong { max-width: 120px; }
}
@media (max-width:980px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .mobile-navigation { display: flex; align-items: center; gap: 9px; padding: 11px 22px; background: #352431; color: #fff; }
  .mobile-navigation > strong { font: 600 22px var(--serif); }
  .mobile-navigation img { width: 29px; border-radius: 3px; }
  .mobile-navigation select { margin-left: auto; max-width: 140px; font-size: 11px; color: #f5e8f1; background: #523447; padding: 8px 10px; border: 1px solid #815e75; border-radius: 6px; }
  .topbar { height: 59px; }
  .category-legend { grid-template-columns: 1fr 1fr; }
}
@media (max-width:760px) {
  .transaction-dialog { width: calc(100vw - 30px); max-height: calc(100dvh - 30px); }
  .transaction-layout { grid-template-columns: minmax(0,1fr) 265px; }
  .transaction-main { padding: 22px 19px; }
  .transaction-summary { padding: 22px 18px; }
  .transaction-footer { padding: 16px 19px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .item-entry { grid-template-columns: 1fr 65px; padding: 11px; }
  .item-entry .btn { grid-column: 1/-1; }
  .form-section-title small { display: none; }
  .transaction-footer > p { display: none; }
  .transaction-footer > div { margin-left: auto; }
}
@media (max-width:700px) {
  main { padding: 23px 18px 0; }
  .topbar { padding: 0 18px; }
  .topbar-actions { gap: 10px; }
  .header-divider, .topbar .avatar { display: none; }
  .breadcrumb { font-size: 10px; }
  .breadcrumb span { margin: 0 7px; }
  .shop-switch { font-size: 10px; }
  .page-heading { flex-direction: column; align-items: flex-start; gap: 19px; }
  .page-heading h1 { font-size: 27px; }
  .page-heading p { font-size: 12px; }
  .heading-actions { justify-content: space-between; width: 100%; }
  .heading-actions > .btn:only-child { margin-left: auto; }
  .editorial-hero { height: 285px; }
  .hero-copy { padding: 25px 23px; }
  .hero-copy h2 { font-size: 33px; margin-top: 18px; }
  .hero-kicker { font-size: 6px; letter-spacing: 1px; }
  .hero-copy p { font-size: 11px; }
  .hero-photo { inset: 0 -35% 0 22%; background-position: 72% 45%; }
  .hero-wash { background: linear-gradient(90deg,#422b3c 0%,#422b3ced 40%,#422b3c55 85%); }
  .hero-stamp { display: none; }
  .hero-link { margin-top: 15px; }
  .floating-label { right: 13px; bottom: 13px; padding: 10px; gap: 7px; }
  .floating-symbol { display: none; }
  .floating-label small { font-size: 6px; }
  .floating-label strong { font-size: 9px; }
  .stats { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .metric-card { padding: 15px; }
  .metric-top { font-size: 11px; }
  .metric-value { font-size: 26px; }
  .metric-bottom { font-size: 10px; }
  .section-caption { font-size: 8px; letter-spacing: .6px; gap: 10px; }
  .section-caption > span:last-child, .section-caption > button { font-size: 9px; }
  .analytics-grid, .activity-grid { grid-template-columns: 1fr; gap: 17px; }
  .category-card { display: grid; grid-template-columns: 1fr 1fr; padding-bottom: 23px; }
  .category-card .card-heading { grid-column: 1/-1; }
  .collection-donut { margin: 0 auto; width: 125px; height: 125px; }
  .collection-donut > div { width: 93px; height: 93px; }
  .category-legend { grid-template-columns: 1fr; align-content: center; padding: 0 23px 0 7px; gap: 12px; }
  .chart-summary > span { max-width: 160px; }
  .chart-summary strong { font-size: 11px; }
  .shop-grid { grid-template-columns: 1fr; gap: 14px; }
  .shop-metrics strong { font-size: 16px; }
  .stock-row strong { max-width: none; }
  .module-strip { align-items: flex-start; flex-wrap: wrap; padding: 19px; gap: 12px; }
  .module-strip > p { flex: 1; font-size: 11px; }
  .module-strip > div { width: 100%; margin: 0; padding-top: 15px; border-top: 1px solid #d8c6d3; gap: 0; }
  .module-strip > div > span { flex: 1; }
  .view-tabs > button { font-size: 11px; padding: 9px 10px; }
  .report-toolbar { flex-wrap: wrap; }
  .report-toolbar .btn { margin-left: auto; }
  .report-summary { flex-direction: column; align-items: flex-start; gap: 16px; padding: 23px; }
  .report-summary > strong { font-size: 28px; }
  .search-row { flex-wrap: wrap; padding: 18px; }
  .search-field { width: 100%; }
  .search-row > .shop-pill { margin-left: auto; }
  footer { flex-direction: column; align-items: flex-start; gap: 10px; font-size: 9px; line-height: 1.8; }
  footer > div { flex-wrap: wrap; }
  .settings-card { padding: 23px; }
}
@media (max-width:580px) {
  dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); border-radius: 11px; }
  .modal-header { padding: 20px; gap: 10px; }
  .modal-header h2 { font-size: 20px; }
  .modal-header p { font-size: 11px; }
  .modal-header-icon { width: 34px; height: 38px; }
  .modal-header-icon .ui-icon { width: 17px; height: 17px; }
  .modal-content { padding: 20px; }
  .transaction-dialog { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); }
  .transaction-dialog .modal-header { padding: 20px 17px; }
  .transaction-dialog .modal-header p { max-width: 230px; }
  .transaction-layout { grid-template-columns: 1fr; }
  .transaction-main { padding: 23px 18px; }
  .transaction-summary { border: 0; border-top: 1px solid #e1d6df; padding: 24px 22px; }
  .summary-heading { font-size: 14px; }
  .summary-caption { margin-bottom: 15px; }
  .summary-total { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .summary-total > strong { font-size: 28px; margin: 0; }
  .transaction-footer { padding: 15px 17px; box-shadow: 0 -4px 15px #40203a07; }
  .transaction-footer > div { width: 100%; margin: 0; }
  .transaction-footer .btn { padding: 11px 13px; font-size: 11px; }
  .transaction-footer button[type=submit] { flex: 1; }
  .form-grid { grid-template-columns: 1fr; gap: 17px; }
  .grid-cols-2 { grid-template-columns: 1fr !important; }
  .full-width { grid-column: auto; }
  .dialog-footer { flex-wrap: wrap; }
  .cart-table { overflow: hidden; }
  .cart-table table, .cart-table tbody { display: block; width: 100%; white-space: normal; }
  .cart-table thead { display: none; }
  .cart-table tr { position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 7px 12px; padding: 13px; border-bottom: 1px solid #e2d7df; }
  .cart-table tr:last-child { border-bottom: 0; }
  .cart-table td { display: block; padding: 0; border: 0; }
  .cart-table td:first-child { grid-column: 1/-1; min-width: 0; padding-right: 25px; }
  .cart-table td:first-child strong { font-size: 12px; }
  .cart-table td:nth-child(3) { text-align: right; align-self: end; padding-bottom: 8px; }
  .cart-table td:nth-child(2)::before, .cart-table td:nth-child(3)::before { display: block; font-size: 9px; color: #7b6977; margin-bottom: 5px; }
  .cart-table td:nth-child(2)::before { content: 'Quantity'; }
  .cart-table td:nth-child(3)::before { content: 'Line total'; }
  .cart-table td:nth-child(4) { position: absolute; right: 8px; top: 8px; }
  .cart-quantity { width: 110px; }
  .cart-quantity button { width: 32px; min-height: 36px; }
  .cart-quantity input { width: 46px; }
  .form-error { margin: 0 18px 15px; font-size: 11px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chart-line { stroke-dashoffset: 0; }
  .showroom-card { transform: none !important; }
}
@media print {
  html { scrollbar-gutter: auto; }
  body.dialog-open { overflow: visible; }
  body > * { display: none !important; }
  body > dialog { display: block !important; position: static; width: 100%; max-height: none; box-shadow: none; border: 0; }
  dialog[open] #modal-body { display: block; max-height: none; overflow: visible; }
  dialog .modal-content { padding: 0; overflow: visible; }
  dialog .modal-header { padding: 0 0 20px; border: 0; }
  dialog .modal-header-icon { display: none; }
  dialog button { display: none !important; }
  dialog td { font-size: 11px; }
  dialog th { font-size: 9px; }
}

/* Compact forms and right-aligned, stacked quick-create panels. */
@media screen {
 .modal-header { padding: 15px 18px; gap: 10px; }
 .modal-header h2 { font-size: 18px; }
 .modal-content { padding: 16px 18px; }
 .field,.item-entry .field { min-height: 36px; padding: 7px 9px; margin-top: 4px; font-size: 12px; }
 .form-grid { gap: 12px; }
 .dialog-footer { padding-top: 12px; margin-top: 16px; }
 .transaction-main,.transaction-summary { padding: 16px 18px; }
 .form-section + .form-section { margin-top: 15px; }
 .form-section-title { margin-bottom: 10px; }
 .transaction-footer { padding: 12px 18px; }
 .field-hint { margin-top: 4px; line-height: 1.4; }
 .inline-add { color: #713b60; background: #f5edf2; border: 1px solid #ddccda; border-radius: 4px; padding: 3px 7px; font-size: 11px; margin-left: 5px; cursor: pointer; }
 .entry-drawer { position: fixed; inset: 0 0 0 auto; margin: 0; height: 100dvh; max-height: 100dvh; width: min(440px,100vw); border-radius: 12px 0 0 12px; }
 .entry-drawer[open] { display: flex; flex-direction: column; animation: entry-slide .18s ease-out; }
 .entry-drawer .modal-content { flex: 1; overflow-y: auto; }
 .entry-drawer .modal-header { flex-shrink: 0; }
 @keyframes entry-slide { from { transform: translateX(100%); } to { transform: translateX(0); } }
}
@media (prefers-reduced-motion: reduce) { .entry-drawer[open] { animation: none; } }
@media screen and (max-width: 420px) { .entry-drawer .form-grid { grid-template-columns: 1fr; } }

/* Shared screen/print invoice typography stays independent of utility styles. */
.invoice-dialog { width: min(760px,calc(100vw - 24px)); }
.invoice-sheet { color: #25232a; font: 12px/1.45 'DM Sans',Arial,sans-serif; }
.invoice-brand { display: flex; justify-content: space-between; gap: 18px; border-bottom: 2px solid #654155; padding-bottom: 14px; }
.invoice-brand-name { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
.invoice-brand-name img { width: 40px; height: 40px; flex-shrink: 0; }
.invoice-brand h3 { font-size: 15px; font-weight: 700; line-height: 1.3; margin: 0 0 4px; }
.invoice-brand p { font-size: 10px; line-height: 1.5; color: #62606a; margin: 0; }
.invoice-heading { text-align: right; flex-shrink: 0; }
.invoice-heading span,.invoice-heading strong,.invoice-heading small { display: block; }
.invoice-heading span { font-size: 9px; letter-spacing: 1.2px; color: #76556b; }
.invoice-heading strong { font-size: 12px; margin: 4px 0; }
.invoice-heading small { font-size: 10px; color: #62606a; }
.invoice-customer { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 12px 0; }
.invoice-label { display: block; font-size: 9px; color: #62606a; letter-spacing: 1px; margin-bottom: 3px; }
.invoice-customer strong { font-weight: 700; }
.invoice-customer p { font-size: 10px; margin: 2px 0 0; }
.invoice-address { white-space: pre-line; overflow-wrap: anywhere; }
.invoice-status { padding: 4px 8px; border: 1px solid #d9cbd3; border-radius: 4px; font-size: 10px; white-space: nowrap; }
.invoice-items { width: 100%; border-collapse: collapse; table-layout: fixed; }
.invoice-description { width: 49%; }
.invoice-items th,.invoice-items td { padding: 7px 8px; border-bottom: 1px solid #e4dfe3; font-size: 11px; text-align: right; overflow-wrap: anywhere; }
.invoice-items th { background: #f4f0f3; color: #51414c; font-size: 9px; font-weight: 700; letter-spacing: .3px; }
.invoice-items th:first-child,.invoice-items td:first-child { text-align: left; }
.invoice-items th:nth-child(2),.invoice-items td:nth-child(2) { width: 9%; }
.invoice-bottom { display: flex; justify-content: space-between; gap: 24px; padding-top: 12px; }
.invoice-thanks { font-size: 11px; color: #51414c; margin: 0; }
.invoice-thanks span { font-size: 10px; color: #6d6770; }
.invoice-totals { width: 235px; max-width: 55%; margin: 0; }
.invoice-totals > div { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; font-size: 11px; }
.invoice-totals dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.invoice-grand-total { border-top: 1px solid #bca8b6; border-bottom: 1px solid #bca8b6; margin: 3px 0; font-weight: 700; }
.invoice-balance { font-weight: 700; }
.invoice-tax-note { border-top: 1px solid #ddd; padding-top: 8px; margin: 12px 0 0; font-size: 9px; color: #625a51; }
.invoice-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid #e4dfe3; }
@media screen and (max-width: 520px) {
 .invoice-brand { flex-direction: column; gap: 10px; }
 .invoice-heading { text-align: left; padding-left: 50px; }
 .invoice-heading strong,.invoice-heading small { display: inline-block; margin-right: 8px; }
 .invoice-bottom { gap: 12px; }
 .invoice-thanks { max-width: 40%; font-size: 10px; }
 .invoice-items th,.invoice-items td { padding: 6px 4px; font-size: 10px; }
}
@media print {
 @page { margin: 10mm; }
 body { background: #fff !important; color: #000; }
 body > dialog:not([open]) { display: none !important; }
 body > dialog.invoice-dialog[open] { margin: 0; padding: 0; border-radius: 0; overflow: visible; height: auto; }
 .invoice-dialog .modal-header,.invoice-actions { display: none !important; }
 .invoice-dialog #modal-body,.invoice-dialog .modal-content { display: block; padding: 0; max-height: none; overflow: visible; }
 .invoice-sheet { font-family: Arial,sans-serif; font-size: 10px; }
 .invoice-brand { padding-bottom: 9px; gap: 14px; }
 .invoice-brand h3 { font-size: 14px; }
 .invoice-customer { padding: 9px 0; }
 .invoice-items th,.invoice-items td { padding: 5px 7px; font-size: 10px; }
 .invoice-items th { font-size: 9px; background: none; border-bottom: 1px solid #777; }
 .invoice-items thead { display: table-header-group; }
 .invoice-items tr { break-inside: avoid; }
 .invoice-brand,.invoice-customer,.invoice-bottom,.invoice-tax-note { break-inside: avoid; }
 .invoice-bottom { padding-top: 9px; }
 .invoice-totals > div { padding: 3px 0; font-size: 10px; }
 .invoice-status { color: #222; border-color: #aaa; }
}
@media print {
 body > dialog.invoice-dialog.pos-print[open] { width: 74mm !important; max-width: 74mm !important; position: static; max-height: none; }
 .pos-print .invoice-sheet { width: 100%; color: #000; overflow-wrap: anywhere; }
 .pos-print .invoice-brand,.pos-print .invoice-brand-name,.pos-print .invoice-customer,.pos-print .invoice-bottom { display: block; }
 .pos-print .invoice-brand { text-align: center; border-color: #000; }
 .pos-print .invoice-brand-name img { margin: 0 auto 4px; }
 .pos-print .invoice-brand h3 { font-size: 13px; }
 .pos-print .invoice-heading { text-align: center; padding: 6px 0 0; }
 .pos-print .invoice-heading strong,.pos-print .invoice-heading small { display: block; margin: 2px 0; }
 .pos-print .invoice-status { display: inline-block; margin-top: 5px; white-space: normal; }
 .pos-print .invoice-description { width: 40%; }
 .pos-print .invoice-items th,.pos-print .invoice-items td { padding: 5px 2px; font-size: 9px; }
 .pos-print .invoice-items th:nth-child(2),.pos-print .invoice-items td:nth-child(2) { width: 10%; }
 .pos-print .invoice-totals { width: 100%; max-width: none; }
 .pos-print .invoice-thanks { max-width: none; margin-bottom: 8px; }
 .pos-print .invoice-brand p,.pos-print .invoice-heading span,.pos-print .invoice-heading small,.pos-print .invoice-label,.pos-print .invoice-thanks,.pos-print .invoice-thanks span { color: #000; }
}

.report-date-controls,.report-date-form { display:flex; align-items:flex-end; gap:10px; flex-wrap:wrap; }
.report-date-form label { display:flex; flex-direction:column; gap:4px; font-size:12px; }
.report-date-form input { max-width:180px; }
@media (max-width:600px) { .report-date-controls { width:100%; } .report-date-form { width:100%; } .report-date-form label { flex:1; min-width:120px; } .report-date-form input { width:100%; max-width:none; } }

.correction-number { min-width:85px; max-width:140px; } .correction-totals { padding:12px 0; font-weight:600; } .audit-entry { border-top:1px solid #ddd; margin-top:18px; padding-top:14px; } .audit-entry summary { cursor:pointer; font-weight:600; padding:10px 0; } .audit-reason { white-space:pre-wrap; overflow-wrap:anywhere; } .inventory-help { font-size:13px; padding:16px 20px 0; line-height:1.6; color:#51414c; }

.delete-action { color:#a12a37; } .deleted-records { margin-top:20px; } .deleted-records > summary { padding:18px 22px; cursor:pointer; font-weight:600; }

/* Roles and account management */
.permission-columns{display:grid;grid-template-columns:1fr 1fr;gap:24px;margin:24px 0}.permission-columns fieldset{border:1px solid #e6dce2;border-radius:12px;padding:16px}.permission-columns legend{font-weight:700;padding:0 6px}.permission-option{display:flex;align-items:center;gap:10px;padding:8px 0;cursor:pointer}.permission-option input{width:17px;height:17px;accent-color:#67415c}.access-users{margin-top:24px}.settings-card .card-heading{gap:16px;flex-wrap:wrap}.settings-card table small{display:block;color:#74646e;margin-top:4px}@media(max-width:600px){.permission-columns{grid-template-columns:1fr;gap:14px}}

/* Dedicated sign-in, using the existing boutique artwork and plum palette. */
.signed-out .mobile-navigation{display:none!important}.signin-shell{display:grid;grid-template-columns:1.1fr 1fr;min-height:100svh;padding:0;margin:0;max-width:none}.signin-editorial{position:relative;display:flex;flex-direction:column;justify-content:space-between;min-height:100svh;padding:48px 54px;color:#fff;background:linear-gradient(180deg,rgba(41,23,36,.35),rgba(41,23,36,.12) 30%,rgba(41,23,36,.78)),url('assets/boutique-editorial.png') center/cover}.signin-brand{display:flex;align-items:center;gap:14px;color:inherit;text-decoration:none;font-size:22px;font-weight:600}.signin-brand img{width:48px;height:58px;background:#fff;border-radius:22px 22px 5px 5px;padding:5px}.signin-brand small{display:block;font-size:9px;letter-spacing:4px;margin-top:5px}.signin-story{padding:110px 0 70px}.signin-eyebrow{font-size:10px;font-weight:600;letter-spacing:2.5px}.signin-story h1{font-family:var(--serif);font-size:clamp(42px,4.6vw,76px);font-weight:500;line-height:1.08;margin:25px 0}.signin-story h1 em{color:#f1ccd9;font-weight:500}.signin-story p{font-size:15px;line-height:1.9;color:#f2e6ed}.signin-location{display:flex;justify-content:space-between;gap:16px;font-size:12px;letter-spacing:.4px}.signin-location span{font-size:9px;letter-spacing:2px}.signin-panel{display:flex;flex-direction:column;justify-content:center;position:relative;padding:80px 48px;background:#fcfafb}.signin-form-wrap{width:100%;max-width:370px;margin:auto}.signin-panel .signin-eyebrow{color:var(--plum)}.signin-panel h2{font-family:var(--serif);font-size:54px;line-height:1.1;font-weight:500;margin:20px 0 14px}.signin-panel h2 span{color:var(--plum)}.signin-description{color:var(--muted);margin-bottom:34px}.signin-panel form>label{display:flex;flex-direction:column;gap:9px;margin:20px 0;font-weight:500;font-size:13px}.signin-panel .field{width:100%;min-height:50px;background:white;border:1px solid #dfd5dd;border-radius:8px;padding:12px 14px;color:var(--ink)}.signin-submit{width:100%;min-height:50px;justify-content:center;margin-top:12px}.signin-note{border-top:1px solid #e7dfe4;margin-top:36px;padding-top:24px;color:var(--muted);font-size:12px}.signin-footer{text-align:center;letter-spacing:2px;font-size:9px;color:var(--muted);margin:42px 0 0}.signin-footer span{padding:0 8px;color:#ac7d97}.signin-status{margin-top:20px;font-size:12px;color:var(--muted)}.signin-status button{text-decoration:underline;color:var(--plum);padding:0}.signin-panel .form-error:empty{display:none}
@media(max-width:760px){.signin-shell{grid-template-columns:1fr}.signin-editorial{min-height:300px;padding:26px 28px;background-position:center 38%}.signin-brand{font-size:18px}.signin-brand img{width:36px;height:44px}.signin-story{padding:35px 0 20px}.signin-story h1{font-size:40px;margin:15px 0}.signin-story p{display:none}.signin-location{font-size:10px}.signin-location span{display:none}.signin-panel{padding:40px 28px}.signin-panel h2{font-size:44px}.signin-description{margin-bottom:24px}.signin-footer{margin-top:32px}}

/* PDF pages share the existing invoice print design, independent of viewport. */
.report-pdf-stage{position:absolute;left:-20000px;top:0;background:#fff;pointer-events:none}.report-pdf-page{position:relative;box-sizing:border-box;background:#fff;color:#25232a;font:10px/1.45 Arial,sans-serif;padding:0 0 32px;margin:0;overflow:hidden}.report-pdf-page .invoice-brand{display:flex;flex-direction:row;gap:14px;padding-bottom:9px}.report-pdf-page .invoice-brand h3{font-size:14px}.report-pdf-page .invoice-heading{text-align:right;padding-left:0;max-width:35%;white-space:normal}.report-pdf-page .invoice-heading strong,.report-pdf-page .invoice-heading small{display:block;margin:4px 0}.report-pdf-page .invoice-customer{display:flex;padding:9px 0}.report-pdf-total{text-align:right;flex-shrink:0}.report-pdf-total strong{font-size:17px;color:#713b60}.report-pdf-table{table-layout:fixed}.report-pdf-page .report-pdf-table th,.report-pdf-page .report-pdf-table td{padding:5px 6px;font-size:10px;white-space:normal;overflow-wrap:anywhere;text-align:left;width:auto}.report-pdf-page .report-pdf-table th{font-size:9px;background:#f4f0f3;border-bottom:1px solid #777}.report-pdf-page .report-pdf-table th.report-pdf-number,.report-pdf-page .report-pdf-table td.report-pdf-number{text-align:right;font-variant-numeric:tabular-nums}.report-pdf-note{margin:0 0 10px;font-size:9px;color:#51414c}.report-pdf-footer{display:block;margin:0;position:absolute;bottom:0;left:0;right:0;border-top:1px solid #ddd;padding:7px 0 0;color:#62606a;font-size:9px;text-align:right}.report-pdf-empty{text-align:center!important;padding:24px!important}
