/* bakedbyann — pink & white */
:root {
  --bg: #FBF6F4;
  --bg-2: #F7EEEC;
  --card: #FFFFFF;
  --ink: #3E2F31;
  --ink-2: #6E5A5D;
  --muted: #A8969A;
  --line: #F1E3E2;
  --pink: #E79AA6;
  --pink-deep: #C9667A;
  --pink-ink: #A84B60;
  --pink-soft: #FCE8EA;
  --pink-mist: #FDF2F3;
  --peach: #F6D7C3;
  --sage: #8FB39A;
  --sage-soft: #E7F2EA;
  --amber: #D79A4E;
  --amber-soft: #FBEFDF;
  --rose-red: #D2596B;
  --sky: #7FA2C9;
  --sky-soft: #E8F0F9;
  --shadow: 0 6px 24px rgba(201, 102, 122, .10), 0 1px 3px rgba(62, 47, 49, .05);
  --shadow-lg: 0 18px 50px rgba(168, 75, 96, .18);
  --r: 20px;
  --r-sm: 14px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --script: "Allura", "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--pink-deep); text-decoration: none; }
img { max-width: 100%; display: block; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
#app { max-width: 560px; margin: 0 auto; min-height: 100vh; position: relative; }
.view {
  padding: calc(var(--safe-t) + 8px) 16px calc(110px + var(--safe-b));
  animation: viewIn .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0 14px;
  position: sticky; top: 0; z-index: 20;
  background: linear-gradient(var(--bg) 75%, rgba(251, 246, 244, 0));
}
.topbar h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; margin: 0; flex: 1; letter-spacing: .2px; }
.topbar .sub { font-size: 12px; color: var(--muted); font-family: var(--sans); font-weight: 600; letter-spacing: .4px; text-transform: uppercase; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--card); box-shadow: var(--shadow);
  color: var(--pink-deep); flex: none;
  transition: transform .15s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  border-radius: 28px; padding: 22px 20px 20px;
  background:
    radial-gradient(120px 90px at 82% 30%, rgba(246, 215, 195, .9), transparent 70%),
    radial-gradient(160px 120px at 60% 70%, rgba(240, 170, 180, .55), transparent 70%),
    radial-gradient(200px 140px at 20% 20%, rgba(250, 210, 214, .8), transparent 70%),
    linear-gradient(135deg, #FDEDEF, #FBE2E5);
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.hero .flower { position: absolute; right: -6px; bottom: -8px; width: 110px; opacity: .9; pointer-events: none; }
.hero .hello { font-size: 13px; color: var(--ink-2); font-weight: 700; letter-spacing: .3px; }
.hero .name { font-family: var(--script); font-size: 46px; line-height: 1; margin: 2px 0 8px; color: var(--ink); }
.hero .date { font-size: 13px; color: var(--ink-2); }
.hero .pill-row { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; position: relative; z-index: 1; }
.hero .pill { background: rgba(255, 255, 255, .75); backdrop-filter: blur(6px); padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--pink-ink); }

/* ---------- cards ---------- */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px; }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.section-title { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 2px 10px; }
.section-title h2 { font-family: var(--serif); font-size: 21px; font-weight: 600; margin: 0; }
.section-title a, .section-title button { font-size: 13px; font-weight: 700; color: var(--pink-deep); }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: var(--card); border-radius: var(--r); padding: 14px 16px; box-shadow: var(--shadow); }
.stat .label { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.stat .value { font-size: 22px; font-weight: 800; margin-top: 2px; letter-spacing: -.3px; }
.stat .hint { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.stat.accent { background: linear-gradient(135deg, var(--pink-deep), #DE8C9A); color: #fff; }
.stat.accent .label, .stat.accent .hint { color: rgba(255, 255, 255, .85); }
.stat.wide { grid-column: span 2; }

/* ---------- order list ---------- */
.o-item {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border-radius: var(--r); padding: 14px;
  box-shadow: var(--shadow); margin-bottom: 10px;
  transition: transform .15s;
  width: 100%; text-align: left;
}
.o-item:active { transform: scale(.985); }
.o-date {
  width: 52px; flex: none; text-align: center; border-radius: 14px;
  background: var(--pink-mist); padding: 6px 0; color: var(--pink-ink);
}
.o-date .d { font-size: 20px; font-weight: 800; line-height: 1.1; }
.o-date .m { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.o-date.today { background: var(--pink-deep); color: #fff; }
.o-body { flex: 1; min-width: 0; }
.o-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.o-name { font-weight: 800; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-total { font-weight: 800; white-space: nowrap; }
.o-items { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin: 2px 0 6px; }
.o-tags { display: flex; gap: 6px; flex-wrap: wrap; }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--ink-2); white-space: nowrap; }
.tag.baru { background: var(--sky-soft); color: #4C74A0; }
.tag.proses { background: var(--amber-soft); color: #A86C22; }
.tag.siap { background: var(--pink-soft); color: var(--pink-ink); }
.tag.selesai { background: var(--sage-soft); color: #4D7D5B; }
.tag.batal { background: #F1ECEC; color: #8D7F80; text-decoration: line-through; }
.tag.unpaid { background: #FCE4E4; color: var(--rose-red); }
.tag.deposit { background: var(--amber-soft); color: #A86C22; }
.tag.paid { background: var(--sage-soft); color: #4D7D5B; }
.tag.time { background: var(--pink-mist); color: var(--pink-ink); }

/* ---------- chips / segmented ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; margin: 0 -2px; }
.chips::-webkit-scrollbar { display: none; }
.chips.wrap { flex-wrap: wrap; overflow: visible; }
.chip {
  flex: none; padding: 8px 14px; border-radius: 999px;
  background: var(--card); border: 1.5px solid var(--line);
  font-size: 13.5px; font-weight: 700; color: var(--ink-2);
  transition: all .18s;
}
.chip.on { background: var(--pink-deep); border-color: var(--pink-deep); color: #fff; box-shadow: 0 4px 12px rgba(201, 102, 122, .3); }
.chip .n { opacity: .7; margin-left: 4px; font-weight: 800; }
.chip.full { opacity: .45; text-decoration: line-through; }

.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg-2); border-radius: 14px; padding: 4px; gap: 4px; }
.seg button { padding: 9px 6px; border-radius: 11px; font-weight: 700; font-size: 13.5px; color: var(--ink-2); transition: all .2s; }
.seg button.on { background: var(--card); color: var(--pink-deep); box-shadow: 0 2px 8px rgba(62, 47, 49, .08); }

/* ---------- forms ---------- */
.field { margin-bottom: 14px; }
.field > label, .lbl { display: block; font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin: 0 2px 6px; letter-spacing: .2px; }
.input, select.input, textarea.input {
  width: 100%; padding: 13px 14px; border-radius: var(--r-sm);
  border: 1.5px solid var(--line); background: var(--card);
  font-size: 16px; outline: none; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
textarea.input { min-height: 84px; resize: vertical; line-height: 1.45; }
.input:focus { border-color: var(--pink); box-shadow: 0 0 0 4px rgba(231, 154, 166, .18); }
.input::placeholder { color: #C9B9BB; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; min-width: 0; }
.prefix { position: relative; }
.prefix span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: 14px; pointer-events: none; }
.prefix .input { padding-left: 42px; }
.help { font-size: 12px; color: var(--muted); margin: 6px 2px 0; }

.switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 2px; }
.switch input { display: none; }
.switch .track { width: 46px; height: 28px; border-radius: 99px; background: #EADCDC; position: relative; transition: background .2s; flex: none; }
.switch .track::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .15); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1); }
.switch input:checked + .track { background: var(--pink-deep); }
.switch input:checked + .track::after { transform: translateX(18px); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px; border-radius: 16px; font-weight: 800; font-size: 15px;
  background: var(--pink-deep); color: #fff;
  box-shadow: 0 8px 20px rgba(201, 102, 122, .28);
  transition: transform .12s, box-shadow .2s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn.block { width: 100%; }
.btn.soft { background: var(--pink-soft); color: var(--pink-ink); box-shadow: none; }
.btn.ghost { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.btn.line { background: transparent; color: var(--pink-deep); border: 1.5px solid var(--pink); box-shadow: none; }
.btn.wa { background: #3FB872; box-shadow: 0 8px 20px rgba(63, 184, 114, .25); }
.btn.danger { background: #FBE7E9; color: var(--rose-red); box-shadow: none; }
.btn.sm { padding: 9px 13px; font-size: 13.5px; border-radius: 12px; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ---------- list rows ---------- */
.list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; margin-bottom: 14px; }
.li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); width: 100%; text-align: left; background: var(--card); }
.li:last-child { border-bottom: 0; }
.li:active { background: var(--pink-mist); }
.li .ic { width: 38px; height: 38px; border-radius: 12px; background: var(--pink-mist); color: var(--pink-deep); display: grid; place-items: center; flex: none; font-size: 18px; }
.li .ic svg { width: 19px; height: 19px; }
.li .t { flex: 1; min-width: 0; }
.li .t b { display: block; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .t small { color: var(--muted); font-size: 12.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.li .r { text-align: right; font-weight: 800; white-space: nowrap; }
.li .r small { display: block; color: var(--muted); font-weight: 600; font-size: 12px; }
.li .chev { color: #D9C6C8; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; font-weight: 800; color: var(--pink-ink); background: linear-gradient(135deg, var(--pink-soft), var(--peach)); }

/* ---------- bottom nav ---------- */
.nav {
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: calc(12px + var(--safe-b)); z-index: 40;
  width: min(528px, calc(100% - 24px));
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 26px; box-shadow: var(--shadow-lg); padding: 8px 6px;
}
.nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 800; color: var(--muted); padding: 4px 0; transition: color .2s; }
.nav a svg { width: 22px; height: 22px; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); }
.nav a.on { color: var(--pink-deep); }
.nav a.on svg { transform: translateY(-1px) scale(1.08); }
.nav .fab {
  width: 54px; height: 54px; margin: -26px auto 0; border-radius: 50%;
  background: linear-gradient(145deg, #E58F9F, var(--pink-deep)); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px rgba(201, 102, 122, .45);
  border: 4px solid #fff; transition: transform .15s;
}
.nav .fab:active { transform: scale(.92); }
.nav .fab svg { width: 26px; height: 26px; }

/* ---------- sheet ---------- */
.scrim { position: fixed; inset: 0; background: rgba(62, 47, 49, .35); z-index: 80; opacity: 0; transition: opacity .25s; backdrop-filter: blur(2px); }
.scrim.show { opacity: 1; }
.sheet {
  position: fixed; left: 50%; bottom: 0; z-index: 90;
  width: min(560px, 100%); max-height: 92vh; overflow-y: auto;
  background: var(--bg); border-radius: 28px 28px 0 0;
  padding: 10px 18px calc(24px + var(--safe-b));
  transform: translate(-50%, 100%); transition: transform .34s cubic-bezier(.2, .9, .25, 1);
  box-shadow: 0 -10px 40px rgba(62, 47, 49, .15);
}
.sheet.show { transform: translate(-50%, 0); }
.sheet .grab { width: 42px; height: 5px; border-radius: 9px; background: #E6D5D6; margin: 0 auto 12px; }
.sheet h3 { font-family: var(--serif); font-size: 24px; font-weight: 600; margin: 0 0 14px; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; top: calc(16px + var(--safe-t)); z-index: 200;
  transform: translate(-50%, -140%); transition: transform .35s cubic-bezier(.2, 1.2, .3, 1);
  background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px;
  font-weight: 700; font-size: 14px; box-shadow: var(--shadow-lg); max-width: 90vw; text-align: center;
  opacity: 0; visibility: hidden;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- search ---------- */
.search { position: relative; margin-bottom: 12px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search .input { padding-left: 42px; border-radius: 999px; background: var(--card); border-color: transparent; box-shadow: var(--shadow); }

/* ---------- empty ---------- */
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .big { font-family: var(--script); font-size: 36px; color: var(--pink); margin-bottom: 4px; }
.empty p { margin: 0 0 14px; }

/* ---------- order editor ---------- */
.item-row { display: flex; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.item-row:last-child { border-bottom: 0; }
.item-row .nm { flex: 1; min-width: 0; }
.item-row .nm b { display: block; font-weight: 800; font-size: 14.5px; }
.item-row .nm small { color: var(--muted); font-size: 12.5px; }
.item-row .price-in { width: 86px; padding: 8px 10px; font-size: 15px; border-radius: 10px; text-align: right; }
.stepper { display: flex; align-items: center; background: var(--pink-mist); border-radius: 12px; overflow: hidden; flex: none; }
.stepper button { width: 32px; height: 34px; font-size: 18px; font-weight: 800; color: var(--pink-deep); }
.stepper span { min-width: 22px; text-align: center; font-weight: 800; }
.x-btn { color: #D4B9BC; font-size: 20px; width: 26px; flex: none; }

.sumbar {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 45;
  width: min(560px, 100%); padding: 12px 16px calc(14px + var(--safe-b));
  background: rgba(255, 255, 255, .95); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: 24px 24px 0 0; box-shadow: 0 -8px 30px rgba(168, 75, 96, .12);
  display: flex; align-items: center; gap: 12px;
}
.sumbar .tot { flex: 1; }
.sumbar .tot small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.sumbar .tot b { font-size: 22px; font-weight: 800; letter-spacing: -.3px; }

.totals { font-size: 14.5px; }
.totals .tr { display: flex; justify-content: space-between; padding: 5px 0; color: var(--ink-2); }
.totals .tr.big { font-size: 18px; font-weight: 800; color: var(--ink); border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.totals .tr.bal { font-weight: 800; color: var(--rose-red); }
.totals .tr.ok { font-weight: 800; color: #4D7D5B; }

/* product picker */
.p-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.p-card { background: var(--card); border-radius: 18px; padding: 14px; box-shadow: var(--shadow); text-align: left; transition: transform .15s; position: relative; }
.p-card:active { transform: scale(.97); }
.p-card .pc-cat { font-size: 10.5px; font-weight: 800; color: var(--pink); text-transform: uppercase; letter-spacing: .6px; }
.p-card .pc-name { font-weight: 800; margin: 3px 0 4px; line-height: 1.25; }
.p-card .pc-price { font-size: 13px; color: var(--ink-2); font-weight: 700; }
.p-card.off { opacity: .5; }

/* status stepper */
.flow { display: flex; gap: 6px; }
.flow button { flex: 1; padding: 10px 2px; border-radius: 12px; background: var(--bg-2); font-size: 12px; font-weight: 800; color: var(--muted); position: relative; transition: all .2s; }
.flow button.done { background: var(--pink-soft); color: var(--pink-ink); }
.flow button.on { background: var(--pink-deep); color: #fff; box-shadow: 0 6px 14px rgba(201, 102, 122, .3); }

.kv { display: flex; gap: 12px; padding: 7px 0; font-size: 14.5px; }
.kv span { color: var(--muted); width: 92px; flex: none; font-weight: 700; font-size: 13px; padding-top: 1px; }
.kv b { flex: 1; font-weight: 700; word-break: break-word; }

/* ---------- calendar ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head b { font-family: var(--serif); font-size: 22px; font-weight: 600; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-dow { text-align: center; font-size: 11px; font-weight: 800; color: var(--muted); padding: 4px 0; }
.cal-day {
  aspect-ratio: 1 / 1.1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 7px; font-weight: 700; font-size: 14px; position: relative; transition: background .15s;
}
.cal-day.out { color: #D9CACC; }
.cal-day.has { background: var(--pink-mist); }
.cal-day.lvl2 { background: var(--pink-soft); }
.cal-day.lvl3 { background: #F7CFD5; }
.cal-day.full { background: #F2B9C2; }
.cal-day.blocked { background: repeating-linear-gradient(45deg, #F4ECEC, #F4ECEC 4px, #FBF6F4 4px, #FBF6F4 8px); color: var(--muted); }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--pink); }
.cal-day.sel { background: var(--pink-deep) !important; color: #fff; }
.cal-day .cnt { font-size: 10.5px; font-weight: 800; color: var(--pink-ink); margin-top: 2px; }
.cal-day.sel .cnt { color: #fff; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); margin-top: 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: 5px; vertical-align: -1px; }

/* ---------- chart ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding: 18px 2px 0; border-bottom: 1px solid var(--line); position: relative; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; cursor: pointer; }
.bar { width: 100%; max-width: 34px; border-radius: 4px 4px 0 0; background: var(--pink); transition: height .6s cubic-bezier(.2, .9, .3, 1), background .2s; min-height: 2px; }
.bar-col.cur .bar { background: var(--pink-deep); }
.bar-col:hover .bar, .bar-col.tip .bar { background: var(--pink-ink); }
.bar-x { display: flex; gap: 10px; padding: 6px 2px 0; }
.bar-x span { flex: 1; text-align: center; font-size: 11px; color: var(--muted); font-weight: 700; }
.bar-tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; padding: 5px 8px; border-radius: 8px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .15s; z-index: 2; }
.bar-col:hover .bar-tip, .bar-col.tip .bar-tip { opacity: 1; }
.bar-top { position: absolute; top: -18px; font-size: 10.5px; font-weight: 800; color: var(--ink-2); }

.hbar { margin-bottom: 12px; }
.hbar .hb-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 5px; gap: 8px; }
.hbar .hb-top b { font-weight: 800; }
.hbar .hb-top span { color: var(--ink-2); font-weight: 700; white-space: nowrap; }
.hbar .hb-track { height: 8px; background: var(--pink-mist); border-radius: 99px; overflow: hidden; }
.hbar .hb-fill { height: 100%; background: var(--pink); border-radius: 99px; transition: width .7s cubic-bezier(.2, .9, .3, 1); }

/* ---------- invoice ---------- */
.inv-wrap { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.invoice { background: #fff; padding: 26px 22px 22px; color: #3E2F31; font-family: var(--sans); position: relative; }
.invoice .inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.invoice .inv-logo { width: 150px; margin: -12px 0 0 -10px; }
.invoice .inv-title { text-align: right; }
.invoice .inv-title h2 { font-family: var(--serif); font-size: 30px; margin: 0; font-weight: 600; letter-spacing: 3px; color: var(--pink-deep); }
.invoice .inv-title div { font-size: 12.5px; color: var(--ink-2); }
.invoice .inv-band { height: 4px; border-radius: 4px; background: linear-gradient(90deg, #F6D7C3, #E79AA6, #F9D3D8); margin: 14px 0 16px; }
.invoice .inv-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; font-size: 13px; margin-bottom: 16px; }
.invoice .inv-meta h4 { margin: 0 0 3px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--pink); }
.invoice table { width: 100%; border-collapse: collapse; font-size: 13px; }
.invoice th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--muted); padding: 8px 4px; border-bottom: 1.5px solid var(--pink-soft); }
.invoice td { padding: 9px 4px; border-bottom: 1px solid #F6ECEB; vertical-align: top; }
.invoice td.n, .invoice th.n { text-align: right; white-space: nowrap; }
.invoice .inv-tot { margin-left: auto; width: 62%; margin-top: 10px; font-size: 13.5px; }
.invoice .inv-tot div { display: flex; justify-content: space-between; padding: 4px 0; }
.invoice .inv-tot .g { font-weight: 800; font-size: 16px; border-top: 1.5px solid var(--pink-soft); margin-top: 4px; padding-top: 8px; }
.invoice .inv-tot .b { font-weight: 800; color: var(--rose-red); }
.invoice .inv-pay { display: flex; gap: 14px; margin-top: 18px; padding: 14px; border-radius: 16px; background: var(--pink-mist); font-size: 13px; align-items: center; }
.invoice .inv-pay img { width: 96px; height: 96px; object-fit: contain; border-radius: 10px; background: #fff; flex: none; }
.invoice .inv-pay h4 { margin: 0 0 4px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 1px; color: var(--pink-deep); }
.invoice .inv-note { font-size: 12px; color: var(--ink-2); margin-top: 14px; white-space: pre-line; line-height: 1.55; }
.invoice .inv-foot { text-align: center; margin-top: 18px; }
.invoice .inv-foot .s { font-family: var(--script); font-size: 30px; color: var(--pink-deep); line-height: 1; }
.invoice .inv-foot small { font-size: 11px; color: var(--muted); }
.invoice .stamp { position: absolute; left: 6px; top: 18px; transform: rotate(-12deg); border: 3px solid #6FA57F; color: #6FA57F; font-weight: 900; letter-spacing: 3px; padding: 4px 12px; border-radius: 10px; font-size: 20px; opacity: .85; }

/* misc */
.banner { display: flex; gap: 12px; align-items: center; background: var(--amber-soft); border-radius: 16px; padding: 12px 14px; margin-bottom: 14px; font-size: 13.5px; color: #8A5A1E; }
.banner b { font-weight: 800; }
.banner .btn { margin-left: auto; }
.muted { color: var(--muted); }
.center { text-align: center; }
.mt { margin-top: 14px; }
.mb0 { margin-bottom: 0; }
.qr-prev { width: 140px; height: 140px; object-fit: contain; border-radius: 14px; background: #fff; border: 1.5px dashed var(--line); }
.var-row { display: grid; grid-template-columns: 1.4fr 1fr 1fr 28px; gap: 8px; margin-bottom: 8px; align-items: center; }
.var-row .input { padding: 10px; font-size: 15px; }
.brand-script { font-family: var(--script); }
.linkbox { background: var(--pink-mist); padding: 12px; border-radius: 14px; font-size: 12px; word-break: break-all; color: var(--ink-2); max-height: 84px; overflow: hidden; }

@media print {
  body { background: #fff; }
  .nav, .topbar, .no-print, .sumbar { display: none !important; }
  .view { padding: 0; }
  .inv-wrap { box-shadow: none; border-radius: 0; }
}

/* monthly sales list */
.sales-list .sl-day { display: flex; justify-content: space-between; padding: 10px 16px; background: var(--pink-mist); font-size: 12.5px; font-weight: 800; color: var(--pink-ink); }
.sales-list .li { padding: 11px 16px; }
.sales-list .sl-foot { display: flex; justify-content: space-between; align-items: flex-end; padding: 14px 16px; border-top: 1.5px solid var(--pink-soft); }
.sales-list .sl-foot small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.sales-list .sl-foot b { font-size: 17px; font-weight: 900; }
