@import url("https://fonts.googleapis.com/css2?family=Kalam:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Dancing+Script:wght@600;700&display=swap");
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root{
  font-family:"DM Sans",Arial,sans-serif;color:#30262a;background:#f8f6f6;
  font-synthesis:none;text-rendering:optimizeLegibility;
  --maroon:#7b243f;--maroon-dark:#5f1930;--maroon-soft:#f4e9ed;--maroon-pale:#fbf5f7;
  --ink:#30262a;--muted:#8c7d82;--line:#eadfe3;--white:#fff;--green:#26734f;--amber:#94651b;
}
*{box-sizing:border-box}
body{margin:0;min-width:320px;background:#f8f6f6}
button,input,select,textarea{font:inherit}
button{cursor:pointer}
button:disabled{opacity:.6;cursor:not-allowed}
input,select,textarea{width:100%;border:1px solid #e5d9de;border-radius:10px;background:#fff;padding:11px 12px;color:var(--ink);outline:none;transition:border .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{border-color:#a65b73;box-shadow:0 0 0 3px #7b243f14}
textarea{resize:vertical}
label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:600;color:#5c4b51}
label em{color:#b33d5d;font-style:normal}
small,.muted{color:var(--muted)}
h1,h2,h3,p{margin-top:0}
h1{font-size:28px;letter-spacing:-.7px;margin-bottom:7px}
h2{font-size:18px;margin-bottom:6px}
h3{font-size:15px;margin-bottom:12px}
p{line-height:1.55}
.eyebrow{display:block;color:#a16b7c;font-size:10px;letter-spacing:1.5px;font-weight:700;margin-bottom:8px}
.eyebrow.light{color:#f3cbd6}
.btn{border:1px solid transparent;border-radius:10px;padding:11px 15px;font-weight:700;font-size:13px;display:inline-flex;align-items:center;justify-content:center;gap:8px;white-space:nowrap;transition:.15s}
.btn-primary{background:var(--maroon);color:#fff;box-shadow:0 5px 14px #7b243f20}
.btn-primary:hover{background:var(--maroon-dark);transform:translateY(-1px)}
.btn-outline{background:#fff;border-color:#d9c4cc;color:var(--maroon)}
.btn-outline:hover{background:var(--maroon-pale)}
.btn-ghost{background:#f5f1f2;color:#69565d}
.btn-small{padding:8px 11px;font-size:12px}
.btn-full{width:100%}
.icon-button{width:38px;height:38px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#765461;display:inline-flex;align-items:center;justify-content:center}
.icon-button:hover{border-color:#cda8b5;color:var(--maroon)}
.small-icon{width:32px;height:32px}
.text-button{border:0;background:transparent;color:var(--maroon);display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:6px}
.text-button.danger{color:#b63c52}
.text-button.centered{margin:10px auto 0;justify-content:center}
.centered{display:flex}
.loading-screen{min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#faf7f8;color:var(--muted);gap:14px}
.loading-brand{font-family:"Playfair Display",Georgia,serif;color:var(--maroon);font-size:29px}
.loading-brand b{display:block;text-align:center}
.spinner{width:27px;height:27px;border:3px solid #ead8df;border-top-color:var(--maroon);border-radius:50%;animation:spin .8s linear infinite}
.spinner-inline{display:inline-block;width:15px;height:15px;border:2px solid #ffffff60;border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.spin{animation:spin 1s linear infinite}
.brand-mark{width:100%;max-width:270px;color:var(--maroon);text-align:center;position:relative;display:flex;flex-direction:column;align-items:center;line-height:1}
.brand-ornament{width:100%;height:auto;max-height:112px;overflow:visible;margin-bottom:-24px}
.brand-wordmark{font-family:"Playfair Display",Georgia,serif;font-size:35px;font-weight:700;line-height:1.02;position:relative}
.brand-wordmark span{display:block;font-size:34px}
.brand-phone{font-size:10px;font-weight:700;display:flex;align-items:center;gap:4px;margin-top:8px}
.brand-social{display:flex;align-items:center;justify-content:center;gap:5px;font-size:9px;margin-top:7px;white-space:nowrap}
.social-f{font-family:Arial,sans-serif;font-weight:800;font-size:12px;border:1px solid currentColor;border-radius:50%;width:13px;height:13px;display:inline-flex;align-items:center;justify-content:center}
.brand-mark-watermark{opacity:.14}
.auth-screen{min-height:100vh;display:grid;grid-template-columns:minmax(400px,520px) 1fr;background:#fff}
.auth-panel{padding:42px clamp(24px,6vw,76px);display:flex;flex-direction:column;justify-content:center;max-width:620px;width:100%;margin:auto}
.auth-brand{display:flex;justify-content:flex-start;margin-bottom:32px}
.auth-brand .brand-mark{max-width:220px}
.auth-brand .brand-wordmark{font-size:29px}
.auth-brand .brand-wordmark span{font-size:28px}
.auth-brand .brand-ornament{max-height:88px}
.auth-heading h1{font-size:29px}
.auth-heading p{font-size:14px;color:var(--muted);max-width:400px}
.auth-tabs{display:flex;background:#f6f1f3;padding:4px;border-radius:11px;margin:20px 0}
.auth-tabs button{flex:1;border:0;background:transparent;padding:10px;border-radius:8px;color:#8d7780;font-weight:700}
.auth-tabs button.active{background:#fff;color:var(--maroon);box-shadow:0 2px 8px #3c1c2710}
.form-stack{display:flex;flex-direction:column;gap:14px}
.form-stack label{font-size:13px}
.auth-footnote{font-size:11px;color:#9b8d92;margin-top:20px}
.auth-side{background:linear-gradient(145deg,#76213c,#4c1428);color:#fff;display:flex;align-items:center;justify-content:center;padding:60px;position:relative;overflow:hidden}
.auth-side-copy{max-width:480px;position:relative;z-index:1}
.auth-side-copy h2{font-family:"Playfair Display",Georgia,serif;font-size:42px;line-height:1.16;margin:12px 0 20px}
.auth-side-copy p{color:#f0dce3;font-size:15px;max-width:440px}
.auth-side-decoration{position:absolute;right:5%;bottom:-10%;color:#ffffff13;transform:rotate(-12deg)}
.alert{border-radius:10px;padding:11px 12px;display:flex;align-items:flex-start;gap:8px;font-size:12px;line-height:1.45}
.alert-error{background:#fff0f1;color:#a33247;border:1px solid #f1cdd3}
.alert-success{background:#edf8f1;color:#276c4c;border:1px solid #cce8d7}
.alert-muted{background:#f4f1f2;color:#76666c}
.invite-screen{min-height:100vh;display:grid;place-items:center;padding:20px;background:linear-gradient(145deg,#fbf7f8,#f1e7eb)}
.invite-card{background:#fff;border:1px solid var(--line);border-radius:22px;box-shadow:0 18px 50px #51203212;padding:32px;width:min(100%,470px)}
.invite-logo{width:200px;margin:0 auto 25px}
.invite-card h1{font-size:25px}
.invite-card p{font-size:13px;color:var(--muted)}
.app-shell{min-height:100vh;display:flex}
.sidebar{width:248px;background:#fff;border-right:1px solid #eee5e8;position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;padding:23px 16px 18px;z-index:20}
.sidebar-brand{padding:3px 5px 24px;border-bottom:1px solid #f0e7ea;display:flex;justify-content:center}
.sidebar-brand .brand-mark{max-width:190px}
.sidebar-brand .brand-wordmark{font-size:28px}
.sidebar-brand .brand-wordmark span{font-size:27px}
.sidebar-brand .brand-ornament{max-height:82px}
.sidebar-brand .brand-phone{font-size:9px}
.sidebar-brand .brand-social{font-size:8px}
.sidebar-caption{font-size:9px;letter-spacing:1.4px;font-weight:800;color:#b2a3a8;padding:23px 12px 9px}
.sidebar-nav{display:flex;flex-direction:column;gap:5px}
.sidebar-nav button,.sidebar-bottom>button{height:44px;padding:0 12px;display:flex;align-items:center;gap:12px;border:0;border-radius:10px;background:transparent;color:#77676d;font-size:13px;font-weight:600;text-align:left;position:relative}
.sidebar-nav button.active,.sidebar-bottom>button.active{background:var(--maroon-soft);color:var(--maroon);font-weight:800}
.sidebar-nav button:hover,.sidebar-bottom>button:hover{background:#faf5f7;color:var(--maroon)}
.nav-dot{width:7px;height:7px;border-radius:50%;background:#c23e5d;margin-left:auto}
.sidebar-bottom{margin-top:auto}
.sidebar-bottom>button{width:100%}
.sidebar-user{border-top:1px solid #f0e7ea;margin-top:14px;padding:16px 5px 10px;display:flex;align-items:center;gap:10px;min-width:0}
.avatar{width:34px;height:34px;border-radius:50%;background:var(--maroon-soft);color:var(--maroon);display:grid;place-items:center;font-weight:800}
.sidebar-user div:last-child{display:flex;flex-direction:column;min-width:0;gap:3px}
.sidebar-user b{font-size:12px}
.sidebar-user small{font-size:10px;overflow:hidden;text-overflow:ellipsis}
.logout-button{font-size:12px!important;color:#9a6a78!important}
.main-area{margin-left:248px;width:calc(100% - 248px);min-height:100vh}
.topbar{height:74px;background:#fff;border-bottom:1px solid #eee6e9;padding:0 34px;display:flex;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:10}
.topbar-date{display:flex;flex-direction:column;gap:3px}
.today-label{font-size:9px;letter-spacing:1.4px;color:#aa8995;font-weight:800}
.topbar-date b{font-size:13px;color:#5b4850}
.topbar-actions{display:flex;align-items:center;gap:10px}
.mobile-brand{display:none}
.page-content{max-width:1500px;margin:0 auto;padding:31px 34px 56px}
.page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px}
.page-heading h1{font-size:27px;margin-bottom:5px}
.page-heading p{font-size:13px;color:var(--muted);margin-bottom:0}
.calendar-layout{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(310px,.9fr);gap:22px;align-items:start}
.calendar-main{min-width:0}
.calendar-card,.selected-day-panel,.content-card,.toolbar-card,.report-filter{background:#fff;border:1px solid #eee5e8;border-radius:16px;box-shadow:0 4px 18px #3c1d2906}
.calendar-card{padding:22px}
.calendar-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px;gap:10px}
.calendar-toolbar h2{font-size:19px;margin-bottom:4px}
.calendar-toolbar p{font-size:11px;color:var(--muted);margin:0}
.month-controls{display:flex;align-items:center;gap:6px}
.month-controls .icon-button{width:34px;height:34px}
.today-button{border:1px solid #e6d7dd;background:#fff;border-radius:9px;padding:8px 11px;font-size:11px;color:var(--maroon);font-weight:700}
.calendar-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.weekday{text-align:center;font-size:10px;font-weight:800;color:#a28e96;padding:7px 0}
.calendar-day{height:62px;border:1px solid transparent;border-radius:12px;background:transparent;color:#493a40;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;position:relative}
.calendar-day:hover{background:#faf4f6;border-color:#ead7df}
.calendar-day .day-number{font-size:14px;font-weight:600}
.calendar-day.is-today:not(.selected){border-color:#bd8a9c;color:var(--maroon);font-weight:800}
.calendar-day.selected{background:var(--maroon);color:#fff;box-shadow:0 5px 12px #7b243f25}
.day-dot{width:6px;height:6px;border-radius:50%;background:var(--maroon);position:absolute;bottom:7px}
.calendar-day.selected .day-dot{background:#fff}
.calendar-day.empty{pointer-events:none}
.calendar-legend{display:flex;gap:20px;border-top:1px solid #f2eaed;margin-top:17px;padding-top:14px;color:#8f7e85;font-size:10px}
.calendar-legend span{display:flex;align-items:center;gap:7px}
.legend-dot{width:8px;height:8px;border-radius:50%;background:var(--maroon)}
.legend-today{width:10px;height:10px;border:1px solid #bd8a9c;border-radius:4px}
.selected-day-panel{padding:20px;position:sticky;top:95px}
.selected-day-head{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:15px;border-bottom:1px solid #f0e8eb}
.selected-day-head h2{font-size:17px;line-height:1.35;margin:0}
.add-circle{width:38px;height:38px;border:0;border-radius:50%;background:var(--maroon);color:#fff;display:grid;place-items:center}
.day-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:15px 0;border-bottom:1px solid #f0e8eb}
.day-stats div{display:flex;flex-direction:column;gap:4px}
.day-stats div:last-child{grid-column:span 2;background:#fbf5f7;border-radius:9px;padding:10px}
.day-stats span{font-size:10px;color:var(--muted)}
.day-stats b{font-size:18px;color:#3d2b32}
.day-stats small{font-size:10px;font-weight:500}
.selected-order-list{padding-top:14px}
.list-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.list-title b{font-size:12px}
.list-title span{font-size:10px;color:var(--muted)}
.order-card{width:100%;text-align:left;border:1px solid #eee4e8;background:#fff;border-radius:12px;padding:12px;margin-bottom:9px;display:block;transition:.15s;color:var(--ink)}
.order-card:hover{border-color:#d2aab8;box-shadow:0 4px 14px #7b243f0c;transform:translateY(-1px)}
.order-card-top,.order-card-bottom,.order-card-meta{display:flex;align-items:center;justify-content:space-between;gap:8px}
.order-card-top>b{font-size:12px}
.status-pill{display:inline-flex;align-items:center;border-radius:100px;padding:4px 8px;font-size:9px;font-weight:800;white-space:nowrap}
.status-warning{background:#fff4df;color:#94651b}
.status-success{background:#e8f5ed;color:#26734f}
.status-info{background:#edf0fa;color:#5b639b}
.status-muted{background:#f0edef;color:#7e7277}
.order-card-meta{justify-content:flex-start;color:#927f87;font-size:10px;margin-top:9px}
.order-card-meta span{display:flex;align-items:center;gap:4px}
.order-card-menu{font-size:10px;color:#88777e;line-height:1.45;margin:8px 0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.order-card-bottom{border-top:1px solid #f4edef;padding-top:8px;font-size:10px;color:#96868c}
.order-card-bottom b{color:#4d3a42;font-size:11px}
.empty-state{padding:38px 20px;text-align:center;color:var(--muted);background:#fff;border:1px dashed #e8dce1;border-radius:14px}
.empty-state.compact{padding:22px 12px;border:0;background:#fbf8f9}
.empty-icon{width:46px;height:46px;margin:0 auto 12px;border-radius:50%;background:var(--maroon-soft);color:var(--maroon);display:grid;place-items:center}
.empty-state b{display:block;color:#58454d;font-size:13px;margin-bottom:6px}
.empty-state p{font-size:11px;max-width:260px;margin:0 auto 14px}
.page-stack{display:flex;flex-direction:column;gap:18px}
.toolbar-card{padding:13px;display:flex;gap:12px;align-items:center}
.search-box{display:flex;align-items:center;gap:9px;padding:0 11px;border:1px solid #eadfe3;border-radius:10px;flex:1;color:#a38f97}
.search-box input{border:0;box-shadow:none!important;padding:10px 0}
.toolbar-selects{display:flex;gap:8px}
.toolbar-selects select{width:auto;min-width:140px;font-size:11px}
.orders-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.orders-list .order-card{margin:0}
.tab-switch{display:flex;gap:6px;background:#f1eaed;padding:4px;border-radius:10px;width:max-content}
.tab-switch button{border:0;background:transparent;padding:9px 14px;border-radius:7px;color:#8d7a82;font-size:12px;font-weight:700}
.tab-switch button.active{background:#fff;color:var(--maroon);box-shadow:0 2px 8px #341b2510}
.section-heading-row{display:flex;align-items:center;justify-content:space-between;gap:14px}
.section-heading-row h2{margin-bottom:4px}
.section-heading-row p{font-size:11px;color:var(--muted);margin:0}
.menu-management-list{display:flex;flex-direction:column;gap:8px}
.menu-management-card{background:#fff;border:1px solid #eee5e8;border-radius:12px;padding:12px;display:flex;align-items:center;gap:12px}
.menu-management-card.inactive{opacity:.58}
.menu-icon,.package-icon{width:38px;height:38px;border-radius:11px;background:var(--maroon-soft);color:var(--maroon);display:grid;place-items:center;flex-shrink:0}
.menu-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.menu-info b{font-size:12px}
.menu-info small{font-size:10px}
.menu-management-card>strong{font-size:12px;white-space:nowrap}
.menu-management-card>.text-button{font-size:10px}
.package-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.package-card{background:#fff;border:1px solid #eee5e8;border-radius:14px;padding:17px}
.package-card-top{display:flex;justify-content:space-between;align-items:center}
.package-card h3{font-size:17px;margin:14px 0 5px}
.package-card>strong{font-size:13px;color:var(--maroon)}
.package-card p{font-size:11px;color:var(--muted);min-height:36px;margin:10px 0 14px;line-height:1.5}
.modal-backdrop{position:fixed;inset:0;background:#24151bcc;z-index:100;display:flex;align-items:center;justify-content:center;padding:18px;overflow:auto}
.modal{width:min(100%,620px);max-height:calc(100vh - 36px);background:#fff;border-radius:17px;box-shadow:0 25px 80px #1b0c1240;display:flex;flex-direction:column;overflow:hidden}
.modal-wide{width:min(100%,820px)}
.modal-small{width:min(100%,480px)}
.modal-note{width:min(100%,900px);max-height:calc(100vh - 28px)}
.modal-header{padding:19px 22px;border-bottom:1px solid #f0e8eb;display:flex;justify-content:space-between;align-items:flex-start;gap:12px;flex-shrink:0}
.modal-header h2{font-size:19px;margin:0}
.modal-header p{font-size:11px;margin:5px 0 0}
.modal-body{padding:20px 22px;overflow:auto}
.order-form{display:flex;flex-direction:column;gap:18px}
.form-section{display:flex;flex-direction:column;gap:12px}
.form-section h3{margin:0}
.form-section>label{margin-top:2px}
.form-grid{display:grid;gap:12px}
.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.section-heading-row>div{min-width:0}
.group-editor{border:1px solid #eadfe3;border-radius:13px;padding:14px;background:#fdfbfc;display:flex;flex-direction:column;gap:12px}
.group-editor-head{display:flex;align-items:center;justify-content:space-between}
.group-editor-head>b{font-size:12px;color:var(--maroon)}
.helper-note{display:flex;gap:7px;align-items:center;background:#f7eef1;color:#805064;padding:9px 10px;border-radius:8px;font-size:10px}
.menu-picker{border:1px solid #eee4e8;border-radius:10px;background:#fff;padding:10px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}
.picker-title{font-size:11px;font-weight:800;color:#6e5961;grid-column:1/-1;margin-bottom:4px}
.menu-choice{display:flex;align-items:center;gap:8px;padding:8px;border-radius:8px;border:1px solid transparent;cursor:pointer;min-width:0}
.menu-choice.checked{background:#fbf3f6;border-color:#ead4dd}
.menu-choice input{position:absolute;opacity:0;width:1px;height:1px}
.choice-check{width:17px;height:17px;border:1px solid #d6c4cb;border-radius:5px;display:grid;place-items:center;color:#fff;flex-shrink:0}
.menu-choice.checked .choice-check{background:var(--maroon);border-color:var(--maroon)}
.choice-name{font-size:10px;display:flex;flex-direction:column;gap:2px;flex:1;min-width:0}
.choice-name small{font-size:9px}
.menu-choice>b{font-size:10px;white-space:nowrap}
.selected-menu-summary{background:#fff;border:1px solid #eee4e8;border-radius:9px;padding:10px}
.selected-menu-summary>b{font-size:10px;display:block;margin-bottom:8px}
.selected-menu-row{display:flex;justify-content:space-between;align-items:center;gap:8px;border-top:1px solid #f2ecee;padding:7px 0;font-size:10px}
.selected-menu-row>span{display:flex;flex-direction:column;gap:2px}
.selected-menu-row small{font-size:9px;color:#a07b89}
.selected-menu-row>div{display:flex;align-items:center;gap:5px;color:#8a737d}
.selected-menu-row input{width:48px;padding:5px;text-align:center;font-size:10px}
.group-price{display:flex;justify-content:space-between;align-items:center;padding-top:9px;border-top:1px solid #eadfe3;font-size:10px;color:#8b777f}
.group-price b{font-size:13px;color:var(--maroon)}
.order-total-preview{background:#f8f0f3;border:1px solid #eedce3;border-radius:12px;padding:14px;display:flex;flex-direction:column;gap:8px}
.order-total-preview>div{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:#775f69}
.order-total-preview b{color:#43333a}
.order-total-preview strong{font-size:21px;color:var(--maroon)}
.order-total-preview small{font-size:10px;line-height:1.4}
.modal-footer{display:flex;justify-content:flex-end;gap:8px;padding-top:13px;border-top:1px solid #f0e8eb;margin-top:5px}
.detail-body{display:flex;flex-direction:column;gap:14px}
.detail-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;background:#fbf6f8;padding:12px;border-radius:11px}
.detail-summary div{display:flex;flex-direction:column;gap:5px}
.detail-summary span,.detail-line span{font-size:10px;color:var(--muted)}
.detail-summary b{font-size:12px;color:#4c3941}
.detail-line{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #f3edef;padding-bottom:9px;font-size:11px}
.detail-line span{display:flex;align-items:center;gap:6px}
.detail-line b{text-align:right;font-size:11px;max-width:65%;overflow-wrap:anywhere}
.detail-menu-list h3{margin-bottom:9px}
.detail-group{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-top:1px solid #f1e9ec}
.detail-group div{display:flex;flex-direction:column;gap:4px;min-width:0}
.detail-group b{font-size:11px;color:var(--maroon)}
.detail-group span{font-size:10px;color:#85747b;line-height:1.45}
.detail-group strong{font-size:11px;white-space:nowrap}
.detail-note{background:#fbf7f8;padding:10px;border-radius:9px;font-size:11px}
.detail-note p{margin:5px 0 0;color:#78666e}
.payment-summary{background:#fbf7f8;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:9px}
.payment-summary>div:not(.payment-history){display:flex;justify-content:space-between;align-items:center;font-size:11px}
.payment-summary>div>span{color:#88767e}
.payment-history{border-top:1px solid #eadddf;padding-top:9px;display:flex;flex-direction:column;gap:7px;font-size:10px}
.payment-history>b{font-size:11px}
.payment-history div{display:flex;justify-content:space-between}
.prep-control label{display:flex;align-items:center;flex-direction:row;justify-content:space-between}
.prep-control select{width:190px;font-size:11px}
.detail-actions{display:flex;gap:7px;flex-wrap:wrap}
.detail-actions .btn{flex:1}
.payment-balance{background:#f8f0f3;border-radius:10px;padding:13px;display:flex;justify-content:space-between;align-items:center}
.payment-balance span{font-size:11px;color:#866d77}
.payment-balance b{font-size:18px;color:var(--maroon)}
.reminder-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.reminder-panel{border:1px solid #eee4e8;border-radius:15px;padding:17px;background:#fff}
.reminder-tomorrow{border-top:3px solid #7b243f}
.reminder-pending{border-top:3px solid #c28b38}
.reminder-panel-head{display:flex;gap:12px;align-items:center;margin-bottom:14px}
.reminder-icon{width:42px;height:42px;border-radius:12px;background:var(--maroon-soft);color:var(--maroon);display:grid;place-items:center}
.reminder-pending .reminder-icon{background:#fff4df;color:#94651b}
.reminder-panel-head .eyebrow{margin-bottom:4px}
.reminder-panel-head h2{margin:0;font-size:16px}
.reminder-panel-head p{font-size:10px;color:var(--muted);margin:4px 0 0}
.reminder-numbers{display:flex;gap:28px;padding:12px 0;border-top:1px solid #f1e9ec;border-bottom:1px solid #f1e9ec;margin-bottom:12px}
.reminder-numbers div{display:flex;flex-direction:column;gap:3px}
.reminder-numbers b{font-size:23px;color:var(--maroon)}
.reminder-pending .reminder-numbers b{color:#94651b}
.reminder-numbers span{font-size:10px;color:var(--muted)}
.empty-inline{padding:17px 10px;text-align:center;color:#9a8990;background:#fbf8f9;border-radius:9px;font-size:11px}
.info-banner{background:#f4eef1;border:1px solid #e8d9df;border-radius:11px;padding:12px;display:flex;gap:10px;align-items:flex-start;color:var(--maroon)}
.info-banner p{font-size:11px;color:#795c68;margin:0;line-height:1.5}
.report-filter{padding:14px;display:flex;justify-content:space-between;align-items:center;gap:15px}
.filter-presets{display:flex;gap:4px;flex-wrap:wrap}
.filter-presets button{border:0;background:transparent;border-radius:8px;padding:9px 11px;color:#87747d;font-size:11px;font-weight:700}
.filter-presets button.active{background:var(--maroon);color:#fff}
.date-range-inputs{display:flex;gap:8px}
.date-range-inputs label{font-size:9px}
.date-range-inputs input{padding:7px;font-size:10px;min-width:130px}
.report-period{font-size:11px;color:#88767d}
.stats-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.stat-card{background:#fff;border:1px solid #eee5e8;border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:6px}
.stat-icon{width:34px;height:34px;border-radius:10px;background:#f6edf1;color:var(--maroon);display:grid;place-items:center;margin-bottom:5px}
.stat-card>span{font-size:10px;color:var(--muted)}
.stat-card>b{font-size:20px;color:#43343a;overflow-wrap:anywhere}
.stat-card>small{font-size:9px}
.stat-accent{background:#fbf5f7;border-color:#e9d4dd}
.stat-accent>b{color:var(--maroon)}
.content-card{padding:18px}
.report-table-wrap{overflow-x:auto;margin-top:12px}
.report-table{width:100%;border-collapse:collapse;min-width:500px}
.report-table th{text-align:left;font-size:10px;color:#a18e96;background:#fbf7f8;padding:11px}
.report-table td{font-size:11px;padding:12px 11px;border-bottom:1px solid #f0e8eb}
.report-footnote{font-size:10px;color:#98878e;line-height:1.5}
.settings-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.settings-card{display:flex;flex-direction:column;gap:17px}
.card-title-row{display:flex;justify-content:space-between;align-items:flex-start;color:var(--maroon)}
.card-title-row h2{color:#45343b;margin-bottom:4px}
.card-title-row p{font-size:10px;color:var(--muted);margin:0}
.settings-toggle{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #f0e8eb;padding-bottom:12px}
.settings-toggle div{display:flex;flex-direction:column;gap:4px}
.settings-toggle b{font-size:11px}
.settings-toggle small,.push-setup small{font-size:10px;line-height:1.4}
.settings-toggle input{width:18px;height:18px;accent-color:var(--maroon)}
.push-setup{background:#fbf5f7;border:1px solid #eedfe4;border-radius:10px;padding:12px;display:flex;justify-content:space-between;align-items:center;gap:10px}
.push-setup div{display:flex;flex-direction:column;gap:4px}
.push-setup b{font-size:11px}
.push-setup .btn{font-size:10px;padding:8px}
.settings-save{grid-column:1/-1;display:flex;justify-content:flex-end}
.field-hint{font-size:10px}
.package-menu-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px}
.note-preview-viewport{overflow:auto;background:#f3eff1;padding:18px;display:flex;justify-content:center}
.note-sheet{width:794px;min-height:1123px;background:#fff;color:#34272c;padding:36px 38px 25px;font-family:Arial,sans-serif;position:relative;flex-shrink:0;box-shadow:0 4px 18px #2e142015}
.note-header{display:grid;grid-template-columns:1fr 1fr;gap:18px;align-items:center;min-height:205px}
.note-logo{display:flex;justify-content:flex-start}
.note-logo .brand-mark{max-width:310px}
.note-logo .brand-wordmark{font-size:43px}
.note-logo .brand-wordmark span{font-size:42px}
.note-logo .brand-ornament{max-height:128px}
.note-logo .brand-phone{font-size:11px}
.note-logo .brand-social{font-size:10px}
.note-customer{display:flex;flex-direction:column;gap:18px;font-size:13px;color:var(--maroon);padding:5px 0 0}
.note-title{text-align:center;font-size:18px;letter-spacing:2px;font-weight:800;margin-bottom:5px}
.note-customer>div:not(.note-title){display:grid;grid-template-columns:110px 10px 1fr;gap:6px;align-items:end}
.note-customer u{text-decoration:none;border-bottom:1px dotted #b88a9a;padding-bottom:4px;color:#42343a;min-height:20px}
.note-address{display:flex;align-items:center;gap:9px;color:var(--maroon);font-weight:700;font-size:10px;line-height:1.4;border-bottom:3px solid var(--maroon);padding:10px 0 13px;margin-bottom:18px}
.note-address svg{flex-shrink:0}
.note-table-wrap{position:relative}
.note-watermark{position:absolute;z-index:0;left:50%;top:170px;transform:translateX(-50%);width:460px;pointer-events:none}
.note-watermark .brand-mark{max-width:460px}
.note-watermark .brand-wordmark{font-size:65px}
.note-watermark .brand-wordmark span{font-size:64px}
.note-watermark .brand-ornament{max-height:190px}
.note-watermark .brand-phone{font-size:14px}
.note-watermark .brand-social{font-size:12px}
.note-table{width:100%;border-collapse:collapse;position:relative;z-index:1;table-layout:fixed}
.note-table th,.note-table td{border:1.5px solid var(--maroon);padding:9px 7px;font-size:11px;height:43px}
.note-table th{background:#fbf5f7;color:var(--maroon);font-size:11px;letter-spacing:.5px;text-align:center;height:52px}
.note-table th:nth-child(1){width:15%}
.note-table th:nth-child(2){width:48%}
.note-table th:nth-child(3){width:18%}
.note-table th:nth-child(4){width:19%}
.note-table td{text-align:center;color:#46373d}
.note-table .note-menu-cell{text-align:left;line-height:1.45}
.note-footer{display:grid;grid-template-columns:1fr 1fr;gap:18px;position:relative;z-index:1;margin-top:28px;min-height:185px}
.note-thanks{grid-column:1/-1;font-family:"Playfair Display",Georgia,serif;font-style:italic;font-size:20px;font-weight:700;color:var(--maroon)}
.note-signatures{display:flex;gap:24px;color:var(--maroon);font-size:11px}
.note-signatures div{display:flex;flex-direction:column;justify-content:space-between;min-height:90px;flex:1}
.note-signatures i{display:block;border-bottom:1px solid #d8c1ca;width:100%}
.note-totals{grid-column:2;grid-row:2;display:flex;flex-direction:column;gap:11px}
.note-totals>div{display:flex;justify-content:space-between;align-items:baseline;gap:10px;border-bottom:1px solid var(--maroon);padding-bottom:4px;color:var(--maroon);font-size:14px}
.note-totals>div strong{font-weight:900;color:#3d2c33;font-size:14px}
.note-totals .note-balance{border-bottom:3px double var(--maroon);font-weight:900}
.note-totals .note-balance strong{font-size:16px;font-weight:900}
.note-bottom-brand{text-align:center;color:#9b7e89;font-size:9px;letter-spacing:1px;margin-top:22px}
.note-modal-footer{padding:13px 18px 17px;margin:0 18px 12px}
.toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);z-index:200;background:#2f493c;color:#fff;border-radius:100px;padding:11px 17px;display:flex;align-items:center;gap:8px;font-size:12px;box-shadow:0 8px 30px #1b382744}
.global-error{margin:14px 34px 0;padding:10px 12px;background:#fff0f1;border:1px solid #f0cbd2;color:#a33247;border-radius:9px;font-size:11px;display:flex;align-items:center;gap:8px}
.global-error button{margin-left:auto;background:transparent;border:0;color:inherit}
.mobile-nav{display:none}

@media(max-width:1100px){
  .calendar-layout{grid-template-columns:minmax(0,1.2fr) minmax(280px,.9fr)}
  .page-content{padding-left:23px;padding-right:23px}
  .topbar{padding:0 23px}
  .package-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:820px){
  .sidebar{display:none}
  .main-area{margin-left:0;width:100%;padding-bottom:72px}
  .topbar{height:62px;padding:0 16px}
  .mobile-brand{display:block;font-family:"Playfair Display",Georgia,serif;color:var(--maroon);font-size:18px}
  .mobile-brand b{font-weight:700}
  .topbar-date{display:none}
  .top-add{padding:9px 11px;font-size:11px}
  .topbar-actions .icon-button{width:34px;height:34px}
  .page-content{padding:23px 15px 30px}
  .calendar-layout{grid-template-columns:1fr;gap:14px}
  .selected-day-panel{position:static}
  .calendar-card{padding:16px}
  .calendar-day{height:52px}
  .calendar-toolbar h2{font-size:17px}
  .calendar-toolbar p{font-size:10px}
  .page-heading{align-items:flex-start;margin-bottom:17px}
  .page-heading h1{font-size:23px}
  .page-heading p{font-size:11px}
  .desktop-add{display:none}
  .mobile-nav{display:grid;grid-template-columns:repeat(6,1fr);position:fixed;z-index:30;bottom:0;left:0;right:0;background:#fff;border-top:1px solid #eee3e8;padding:7px 3px max(7px,env(safe-area-inset-bottom));box-shadow:0 -5px 18px #3719270b}
  .mobile-nav button{border:0;background:transparent;color:#98858d;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:9px;font-weight:700;min-width:0}
  .mobile-nav button.active{color:var(--maroon)}
  .mobile-nav button.active svg{stroke-width:2.5}
  .orders-list{grid-template-columns:1fr}
  .toolbar-card{flex-direction:column;align-items:stretch}
  .toolbar-selects select{flex:1;min-width:0}
  .reminder-grid{grid-template-columns:1fr}
  .report-filter{flex-direction:column;align-items:stretch}
  .date-range-inputs label{flex:1}
  .date-range-inputs input{width:100%;min-width:0}
  .settings-layout{grid-template-columns:1fr}
  .settings-save{grid-column:1}
  .auth-screen{grid-template-columns:1fr}
  .auth-panel{padding:30px 25px;min-height:100vh}
  .auth-side{display:none}
  .auth-brand{margin-bottom:24px}
  .auth-heading h1{font-size:25px}
  .form-grid.two{grid-template-columns:1fr}
  .menu-picker{grid-template-columns:1fr}
  .package-menu-checks{grid-template-columns:1fr}
  .menu-management-card{gap:8px}
  .menu-management-card>.text-button{font-size:9px}
  .package-grid{grid-template-columns:1fr}
  .detail-summary{grid-template-columns:1fr 1fr}
  .detail-summary div:last-child{grid-column:span 2}
  .modal-backdrop{padding:8px;align-items:flex-end}
  .modal{max-height:calc(100vh - 16px);border-radius:17px 17px 12px 12px}
  .modal-header{padding:16px}
  .modal-body{padding:16px}
  .modal-note{max-height:calc(100vh - 16px)}
  .note-preview-viewport{justify-content:flex-start;padding:10px}
  .note-modal-footer{margin:0;padding:10px 14px 14px}
  .note-sheet{transform-origin:top left}
}
@media(max-width:430px){
  .topbar{padding:0 11px}
  .top-add{font-size:10px;padding:8px 9px}
  .page-content{padding-left:11px;padding-right:11px}
  .page-heading h1{font-size:21px}
  .calendar-card{padding:12px}
  .calendar-grid{gap:2px}
  .calendar-day{height:47px;border-radius:9px}
  .calendar-day .day-number{font-size:12px}
  .calendar-legend{gap:12px}
  .selected-day-panel{padding:14px}
  .filter-presets{display:grid;grid-template-columns:repeat(3,1fr)}
  .filter-presets button{padding:8px 6px;font-size:10px}
  .stats-grid{gap:7px}
  .stat-card{padding:11px}
  .stat-card>b{font-size:17px}
  .push-setup{align-items:flex-start;flex-direction:column}
  .detail-actions .btn{font-size:10px;padding:9px 8px}
  .menu-management-card>strong{font-size:10px}
  .menu-management-card>.text-button{padding:4px}
}


/* Compact mobile-first refinement */
.page-content{padding-top:24px;padding-bottom:42px}
.page-heading{margin-bottom:16px;gap:12px}
.page-heading h1{font-size:23px;letter-spacing:-.45px}
.page-heading p{font-size:12px;line-height:1.45}
.eyebrow{font-size:9px;letter-spacing:1.25px;margin-bottom:6px}
.btn{padding:9px 12px;font-size:11.5px;border-radius:9px}
.icon-button{width:35px;height:35px}
.calendar-card{padding:17px}
.calendar-toolbar{margin-bottom:14px}
.calendar-toolbar h2{font-size:17px}
.calendar-toolbar p{font-size:10px}
.calendar-grid{gap:4px}
.calendar-day{height:53px;border-radius:10px}
.calendar-day .day-number{font-size:13px}
.weekday{font-size:9px;padding:5px 0}
.calendar-legend{font-size:9px;margin-top:12px;padding-top:11px}
.selected-day-panel{padding:16px}
.selected-day-head{padding-bottom:12px}
.selected-day-head h2{font-size:15px}
.add-circle{width:34px;height:34px}
.day-stats{padding:12px 0;gap:8px}
.day-stats span{font-size:9px}
.day-stats b{font-size:16px}
.day-stats div:last-child{padding:8px}
.selected-order-list{padding-top:11px}
.list-title b{font-size:11px}
.list-title span{font-size:9px}
.order-card{padding:11px;border-radius:11px}
.order-card-top>b{font-size:11px}
.order-card-meta{font-size:9px;margin-top:7px}
.order-card-menu{font-size:9px;margin:7px 0}
.order-card-bottom{font-size:9px;padding-top:7px}
.order-card-bottom b{font-size:10px}
.status-pill{font-size:8px;padding:4px 7px}
.toolbar-card{padding:10px}
.search-box input{font-size:12px;padding:9px 0}
.toolbar-selects select{font-size:10px;padding:9px}
.stat-card{padding:12px}
.stat-card>b{font-size:17px}
.stat-card>span{font-size:9px}
.stat-card>small{font-size:8px}
.content-card{padding:15px}
.report-filter{padding:11px}
.filter-presets button{font-size:10px;padding:8px}
.date-range-inputs input{font-size:10px}
.menu-management-card{padding:10px;gap:8px}
.menu-info b{font-size:11px}
.menu-info small{font-size:9px}
.menu-management-card>strong{font-size:11px}
.package-card{padding:14px}
.package-card h3{font-size:15px;margin:11px 0 5px}
.package-card>strong{font-size:12px}
.package-card p{font-size:10px}
.empty-state{padding:28px 16px}
.empty-state b{font-size:12px}
.empty-state p{font-size:10px}

/* Orders page: one clear search area, quick filters, and tidy cards */
.orders-page{gap:12px}
.orders-toolbar{background:#fff;border:1px solid #eee5e8;border-radius:14px;padding:11px;display:flex;flex-direction:column;gap:10px;box-shadow:0 3px 14px #3c1d2905}
.orders-toolbar .search-box{min-height:39px}
.orders-filter-row{display:flex;align-items:center;justify-content:flex-start;gap:8px;min-width:0}
.filter-chips{display:flex;gap:5px;overflow-x:auto;scrollbar-width:none;min-width:0;width:100%;padding-bottom:2px}
.filter-chips::-webkit-scrollbar{display:none}
.filter-chips button{flex:0 0 auto;border:1px solid #eee2e7;border-radius:100px;background:#fff;color:#806d75;padding:7px 10px;font-size:10px;font-weight:700;white-space:nowrap}
.filter-chips button.active{background:var(--maroon);border-color:var(--maroon);color:#fff}
.orders-sort{width:auto;min-width:88px;max-width:105px;padding:7px 8px;font-size:10px;border-radius:9px;background:#fbf8f9}
.orders-results-meta{display:flex;align-items:center;justify-content:space-between;color:#9a8990;font-size:10px;padding:0 2px}
.orders-results-meta b{color:#5b454e;font-size:11px}
.orders-list{gap:9px}
.order-card{padding:12px}
.order-card-top{align-items:flex-start}
.order-card-customer{display:flex;flex-direction:column;gap:5px;min-width:0}
.order-card-customer>b{font-size:12px;color:#44343b}
.order-card-customer>span{display:flex;align-items:center;gap:5px;color:#98858d;font-size:9px}
.order-card-summary{display:grid;grid-template-columns:1fr 1fr;gap:9px;background:#fbf7f8;border-radius:9px;padding:9px 10px;margin-top:10px}
.order-card-summary>div{display:flex;flex-direction:column;gap:4px;min-width:0}
.order-card-summary small{font-size:9px;color:#9a8990}
.order-card-summary b{display:flex;align-items:center;gap:4px;font-size:11px;color:#4b3941;overflow-wrap:anywhere}
.order-card-summary>div:last-child b{color:var(--maroon)}
.order-card-menu{margin:8px 0;font-size:9px;line-height:1.4}
.order-card-bottom{justify-content:space-between;gap:8px}
.order-card-bottom span:last-child{color:#a18e96}

/* Menu management and editing affordances */
.menu-edit-button{padding:6px 8px;font-size:10px;gap:4px}
.menu-toggle-button{font-size:9px;padding:4px;white-space:nowrap}
.menu-empty,.package-empty{width:100%;border:1px dashed #e7dce0;background:#fff}
.package-empty{grid-column:1/-1}
.package-card .btn{font-size:10px;padding:8px 10px}


@media(max-width:820px){
  .main-area{padding-bottom:68px}
  .topbar{height:58px;padding:0 13px}
  .mobile-brand{font-size:17px}
  .top-add{padding:8px 10px;font-size:10px}
  .page-content{padding:17px 12px 24px}
  .page-heading{align-items:center;margin-bottom:12px}
  .page-heading h1{font-size:20px;margin-bottom:3px}
  .page-heading p{font-size:10px}
  .page-heading .btn{padding:8px 10px;font-size:10px}
  .calendar-layout{gap:11px}
  .calendar-card{padding:11px}
  .calendar-toolbar{margin-bottom:10px}
  .calendar-toolbar h2{font-size:15px}
  .calendar-toolbar p{font-size:9px}
  .month-controls{gap:4px}
  .month-controls .icon-button{width:30px;height:30px}
  .today-button{padding:7px 8px;font-size:9px}
  .calendar-grid{gap:2px}
  .weekday{font-size:8px;padding:4px 0}
  .calendar-day{height:42px;border-radius:8px;gap:4px}
  .calendar-day .day-number{font-size:11px}
  .day-dot{width:5px;height:5px;bottom:5px}
  .calendar-legend{font-size:8px;margin-top:9px;padding-top:8px}
  .selected-day-panel{padding:12px}
  .selected-day-head{padding-bottom:9px}
  .selected-day-head h2{font-size:14px}
  .add-circle{width:31px;height:31px}
  .day-stats{padding:9px 0;gap:7px}
  .day-stats span{font-size:8px}
  .day-stats b{font-size:14px}
  .day-stats small{font-size:8px}
  .day-stats div:last-child{padding:7px}
  .selected-order-list{padding-top:9px}
  .list-title{margin-bottom:7px}
  .list-title b{font-size:10px}
  .list-title span{font-size:8px}
  .order-card{padding:10px;margin-bottom:7px}
  .order-card-customer>b{font-size:11px}
  .order-card-customer>span{font-size:8px}
  .order-card-summary{padding:8px;margin-top:8px}
  .order-card-summary small{font-size:8px}
  .order-card-summary b{font-size:10px}
  .order-card-menu{font-size:8px}
  .order-card-bottom{font-size:8px}
  .status-pill{font-size:8px;padding:3px 6px}
  .orders-page{gap:10px}
  .orders-toolbar{padding:9px;gap:8px}
  .orders-toolbar .search-box{min-height:36px}
  .orders-toolbar .search-box input{font-size:11px}
  .filter-chips button{font-size:9px;padding:6px 8px}
  .orders-sort{font-size:9px;min-width:82px;max-width:92px;padding:6px}
  .orders-results-meta{font-size:9px}
  .orders-results-meta b{font-size:10px}
  .orders-list{gap:8px}
  .orders-list .order-card{margin:0}
  .stats-grid{gap:8px}
  .stat-card{padding:10px;gap:4px}
  .stat-icon{width:29px;height:29px;margin-bottom:3px}
  .stat-card>span{font-size:8px}
  .stat-card>b{font-size:15px}
  .stat-card>small{font-size:8px}
  .content-card{padding:12px}
  .section-heading-row h2{font-size:14px}
  .section-heading-row p{font-size:9px}
  .report-period{font-size:9px}
  .filter-presets button{font-size:9px;padding:7px 6px}
  .date-range-inputs label{font-size:8px}
  .date-range-inputs input{font-size:9px;padding:7px}
  .mobile-nav{padding-top:6px}
  .mobile-nav button{font-size:8px;gap:3px}
  .mobile-nav button svg{width:17px;height:17px}
  .menu-management-card{flex-wrap:wrap}
  .menu-info{flex-basis:calc(100% - 125px)}
  .menu-edit-button{margin-left:auto}
  .menu-toggle-button{margin-left:auto}
}
@media(max-width:430px){
  .topbar{padding:0 10px}
  .top-add{font-size:9px;padding:7px 8px}
  .page-content{padding-left:10px;padding-right:10px}
  .page-heading h1{font-size:19px}
  .calendar-card{padding:9px}
  .calendar-grid{gap:1px}
  .calendar-day{height:39px}
  .calendar-day .day-number{font-size:10px}
  .calendar-legend{gap:10px}
  .selected-day-panel{padding:11px}
  .filter-chips{gap:4px}
  .filter-chips button{padding:6px 7px}
  .orders-filter-row{gap:5px}
  .orders-sort{min-width:75px;max-width:82px}
  .stat-card>b{font-size:14px}
  .menu-management-card>strong{font-size:10px}
  .menu-edit-button{font-size:9px;padding:5px 6px}
  .menu-toggle-button{font-size:8px}
}

@media(max-width:820px){
  .day-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .day-stats div:last-child{grid-column:auto;background:transparent;padding:0}
  .day-stats b{font-size:12px;white-space:nowrap}
  .day-stats span{font-size:8px}
}
@media(max-width:430px){
  .day-stats{gap:4px}
  .day-stats b{font-size:10px}
  .day-stats small{font-size:7px}
}


/* Laporan: compact layout for mobile screens */
@media(max-width:820px){
  .report-page{gap:10px}
  .report-page .page-heading{margin-bottom:2px;gap:7px}
  .report-page .page-heading h1{font-size:18px;line-height:1.15;margin-bottom:2px}
  .report-page .page-heading p{font-size:9px;line-height:1.35}
  .report-page .eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:4px}
  .report-page .report-filter{padding:8px;border-radius:12px;gap:8px}
  .report-page .filter-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;width:100%}
  .report-page .filter-presets button{min-width:0;padding:7px 2px;border-radius:7px;font-size:8px;line-height:1.1;white-space:nowrap}
  .report-page .date-range-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
  .report-page .date-range-inputs label{min-width:0;gap:4px;font-size:8px}
  .report-page .date-range-inputs input{min-width:0;width:100%;padding:6px 7px;font-size:9px;border-radius:8px}
  .report-page .report-period{font-size:8px;line-height:1.25;margin-top:-3px}
  .report-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .report-page .stat-card{min-width:0;padding:8px;border-radius:11px;gap:3px}
  .report-page .stat-icon{width:25px;height:25px;border-radius:8px;margin-bottom:2px}
  .report-page .stat-icon svg{width:15px;height:15px}
  .report-page .stat-card>span{font-size:8px;line-height:1.2}
  .report-page .stat-card>b{font-size:14px;line-height:1.15}
  .report-page .stat-card>small{font-size:7px;line-height:1.2}
  .report-page .content-card{padding:10px;border-radius:12px}
  .report-page .section-heading-row{gap:7px}
  .report-page .section-heading-row h2{font-size:12px;margin-bottom:2px}
  .report-page .section-heading-row p{font-size:8px;line-height:1.25}
  .report-page .section-heading-row .status-pill{font-size:7px;padding:3px 6px;white-space:nowrap}
  .report-page .empty-inline{padding:11px 7px;font-size:8px;border-radius:8px}
  .report-page .report-table-wrap{margin-top:8px}
  .report-page .report-table th{font-size:8px;padding:8px}
  .report-page .report-table td{font-size:9px;padding:8px}
  .report-page .report-footnote{font-size:8px;line-height:1.35;margin-top:-2px}
}
@media(max-width:390px){
  .report-page .filter-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
  .report-page .filter-presets button{font-size:8px;padding:7px 3px}
}


/* Package editor: visible controls and quick-add menu items */
.package-menu-header{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.package-menu-header>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.package-menu-header b{font-size:12px;color:#49353d}
.package-menu-header small{font-size:9px;color:var(--muted);line-height:1.4}
.package-menu-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;max-height:290px;overflow:auto;border:1px solid #eee4e8;border-radius:11px;padding:8px;background:#fcfafb}
.package-menu-option{display:flex;flex-direction:column;gap:7px;min-width:0;padding:9px;border:1px solid #eee5e8;border-radius:9px;background:#fff}
.package-menu-option.selected{border-color:#d8b5c2;background:#fcf5f8}
.package-menu-select{display:flex;align-items:flex-start;gap:8px;cursor:pointer;min-width:0}
.package-menu-select input{width:16px;height:16px;flex:0 0 16px;margin:2px 0 0;accent-color:var(--maroon)}
.package-menu-select>span{display:flex;flex-direction:column;gap:2px;min-width:0}
.package-menu-select b{font-size:10px;color:#46363d;overflow-wrap:anywhere}
.package-menu-select small{font-size:9px;color:var(--muted);line-height:1.3}
.package-menu-select em{font-style:normal;font-size:9px;color:var(--maroon)}
.package-menu-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;padding-top:7px;border-top:1px solid #eee4e8}
.package-menu-fields label{display:flex;flex-direction:column;gap:3px;font-size:8px;color:#826e77;min-width:0}
.package-menu-fields input{width:100%;min-width:0;padding:6px 7px;font-size:10px;border-radius:7px}
.package-quick-add{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(110px,.8fr);gap:8px;padding:10px;border:1px solid #ead9e0;border-radius:10px;background:#fcf6f8}
.package-quick-add label{display:flex;flex-direction:column;gap:4px;font-size:9px;min-width:0}
.package-quick-add input{min-width:0;width:100%;padding:7px 8px;font-size:10px}
.package-quick-add .quick-add-description{grid-column:1/-1}
.package-quick-add .quick-add-submit{grid-column:1/-1;justify-self:start}
.package-no-menu{font-size:10px}
.package-selected-count{font-size:9px;color:#876f79;text-align:right}
@media(max-width:820px){
  .package-menu-checks{grid-template-columns:1fr;max-height:250px}
  .package-menu-header b{font-size:11px}
  .package-menu-header small{font-size:8px}
}

/* Compact report layout; cache-busted with the full package build. */
@media(max-width:820px){
  .report-page{gap:10px}
  .report-page .page-heading{margin-bottom:1px;gap:6px}
  .report-page .page-heading h1{font-size:19px;line-height:1.15;margin-bottom:2px}
  .report-page .page-heading p{font-size:10px;line-height:1.35}
  .report-page .eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:4px}
  .report-page .report-filter{padding:9px;border-radius:12px;gap:8px}
  .report-page .filter-presets{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:3px;width:100%}
  .report-page .filter-presets button{min-width:0;padding:7px 2px;border-radius:7px;font-size:9px;line-height:1.1;white-space:nowrap}
  .report-page .date-range-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px;width:100%}
  .report-page .date-range-inputs label{min-width:0;gap:4px;font-size:9px}
  .report-page .date-range-inputs input{min-width:0;width:100%;padding:7px;font-size:10px;border-radius:8px}
  .report-page .report-period{font-size:9px;line-height:1.25;margin-top:-2px}
  .report-page .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .report-page .stat-card{min-width:0;padding:9px;border-radius:11px;gap:4px}
  .report-page .stat-icon{width:27px;height:27px;border-radius:8px;margin-bottom:2px}
  .report-page .stat-icon svg{width:16px;height:16px}
  .report-page .stat-card>span{font-size:9px;line-height:1.2}
  .report-page .stat-card>b{font-size:15px;line-height:1.15}
  .report-page .stat-card>small{font-size:8px;line-height:1.2}
  .report-page .content-card{padding:11px;border-radius:12px}
  .report-page .section-heading-row{gap:7px}
  .report-page .section-heading-row h2{font-size:13px;margin-bottom:2px}
  .report-page .section-heading-row p{font-size:9px;line-height:1.25}
  .report-page .section-heading-row .status-pill{font-size:8px;padding:3px 6px;white-space:nowrap}
  .report-page .empty-inline{padding:12px 8px;font-size:9px;border-radius:8px}
  .report-page .report-table-wrap{margin-top:8px}
  .report-page .report-table th{font-size:9px;padding:8px}
  .report-page .report-table td{font-size:10px;padding:8px}
  .report-page .report-footnote{font-size:8px;line-height:1.35;margin-top:-2px}
}
@media(max-width:390px){
  .report-page .filter-presets{grid-template-columns:repeat(3,minmax(0,1fr))}
  .report-page .filter-presets button{font-size:8px;padding:7px 3px}
}


/* Pawon See T — compact order-entry modal for phone and tablet.
   Scoped to the add/edit order dialog so other modals keep their existing layout. */
@media (max-width: 900px) {
  .order-modal-backdrop {
    position: fixed !important;
    inset: 0 !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    padding: max(10px, env(safe-area-inset-top)) 8px max(10px, env(safe-area-inset-bottom)) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    overscroll-behavior: contain;
  }

  .order-modal-backdrop .order-modal {
    width: 100% !important;
    max-width: 760px !important;
    height: auto !important;
    max-height: calc(100dvh - max(20px, env(safe-area-inset-top) + env(safe-area-inset-bottom) + 16px)) !important;
    min-height: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    border-radius: 14px !important;
  }

  .order-modal .modal-header {
    flex: 0 0 auto !important;
    padding: 9px 12px !important;
    align-items: center !important;
    gap: 8px !important;
  }

  .order-modal .modal-header .eyebrow {
    font-size: 8px !important;
    line-height: 1.1 !important;
    margin-bottom: 2px !important;
  }

  .order-modal .modal-header h2 {
    font-size: 14px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .order-modal .modal-header .icon-button {
    width: 31px !important;
    height: 31px !important;
    flex: 0 0 31px !important;
  }

  .order-modal .modal-body.order-form {
    display: flex !important;
    flex: 1 1 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 9px 11px max(10px, env(safe-area-inset-bottom)) !important;
    gap: 9px !important;
  }

  .order-modal .order-form .form-section {
    display: flex !important;
    flex-direction: column !important;
    gap: 7px !important;
  }

  .order-modal .order-form .form-section h3 {
    font-size: 11px !important;
    line-height: 1.2 !important;
    margin: 0 !important;
  }

  .order-modal .order-form label {
    min-width: 0 !important;
    font-size: 9px !important;
    line-height: 1.2 !important;
    gap: 4px !important;
  }

  .order-modal .order-form input,
  .order-modal .order-form select,
  .order-modal .order-form textarea {
    width: 100%;
    min-width: 0 !important;
    min-height: 33px !important;
    padding: 6px 8px !important;
    border-radius: 8px !important;
    font-size: 10px !important;
    line-height: 1.2 !important;
  }

  /* Customer name gets one full row; the other three fields share two columns. */
  .order-modal .order-form > .form-section:first-child .form-grid.two {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 8px !important;
  }

  .order-modal .order-form > .form-section:first-child .form-grid.two > label:first-child {
    grid-column: 1 / -1 !important;
  }

  .order-modal .order-form .form-grid.two {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px 8px !important;
  }

  .order-modal .order-form .section-heading-row {
    align-items: center !important;
    gap: 6px !important;
  }

  .order-modal .order-form .section-heading-row h3 {
    font-size: 11px !important;
    margin: 0 0 2px !important;
  }

  .order-modal .order-form .section-heading-row p {
    font-size: 8px !important;
    line-height: 1.25 !important;
    margin: 0 !important;
  }

  .order-modal .order-form .section-heading-row .btn {
    flex: 0 0 auto !important;
    min-height: 29px !important;
    padding: 5px 7px !important;
    font-size: 8px !important;
    gap: 3px !important;
    white-space: nowrap;
  }

  .order-modal .group-editor {
    padding: 8px !important;
    gap: 7px !important;
    border-radius: 9px !important;
  }

  .order-modal .group-editor-head > b {
    font-size: 9px !important;
  }

  .order-modal .group-editor .form-grid.two {
    grid-template-columns: minmax(0, 1.4fr) minmax(88px, .8fr) !important;
    gap: 6px !important;
  }

  .order-modal .helper-note {
    padding: 6px 7px !important;
    font-size: 8px !important;
    line-height: 1.25 !important;
  }

  .order-modal .menu-picker {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
    max-height: 190px !important;
    overflow-y: auto !important;
    padding: 6px !important;
  }

  .order-modal .picker-title {
    font-size: 9px !important;
    margin-bottom: 1px !important;
  }

  .order-modal .menu-choice {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    min-width: 0 !important;
    min-height: 29px !important;
    padding: 5px !important;
  }

  .order-modal .choice-check {
    width: 13px !important;
    height: 13px !important;
    flex: 0 0 13px !important;
  }

  .order-modal .choice-name {
    min-width: 0 !important;
    font-size: 8px !important;
    line-height: 1.2 !important;
    gap: 1px !important;
  }

  .order-modal .choice-name small {
    font-size: 7px !important;
    line-height: 1.15 !important;
  }

  .order-modal .menu-choice > b {
    font-size: 7px !important;
    white-space: nowrap !important;
  }

  .order-modal .selected-menu-summary {
    padding: 7px !important;
  }

  .order-modal .selected-menu-summary > b,
  .order-modal .selected-menu-row {
    font-size: 8px !important;
  }

  .order-modal .selected-menu-row {
    gap: 5px !important;
    padding: 4px 0 !important;
  }

  .order-modal .selected-menu-row input {
    width: 38px !important;
    min-height: 26px !important;
    padding: 3px !important;
    font-size: 8px !important;
  }

  .order-modal .group-price {
    padding-top: 5px !important;
    font-size: 8px !important;
  }

  .order-modal .group-price b {
    font-size: 10px !important;
  }

  .order-modal .order-total-preview {
    padding: 8px !important;
    gap: 5px !important;
    border-radius: 9px !important;
  }

  .order-modal .order-total-preview > div {
    font-size: 8px !important;
  }

  .order-modal .order-total-preview strong {
    font-size: 14px !important;
  }

  .order-modal .order-total-preview small {
    font-size: 7px !important;
  }

  .order-modal .modal-footer {
    position: sticky !important;
    bottom: -10px !important;
    z-index: 4 !important;
    flex: 0 0 auto !important;
    margin: 2px -11px -10px !important;
    padding: 7px 11px max(8px, env(safe-area-inset-bottom)) !important;
    background: #fff !important;
    box-shadow: 0 -4px 12px #3a1a270d !important;
  }

  .order-modal .modal-footer .btn {
    min-height: 32px !important;
    padding: 6px 10px !important;
    font-size: 9px !important;
  }
}

@media (max-width: 380px) {
  .order-modal .order-form > .form-section:first-child .form-grid.two,
  .order-modal .order-form .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .order-modal .group-editor .form-grid.two {
    grid-template-columns: minmax(0, 1.25fr) minmax(76px, .75fr) !important;
  }

  .order-modal .menu-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* Approved Pawon See T printed-note reference layout */
.note-sheet {
  width: 794px !important;
  min-height: 1123px !important;
  box-sizing: border-box !important;
  padding: 18px 26px 18px !important;
  background: #fff !important;
  color: #34272c !important;
  overflow: hidden;
}
.note-header {
  display: grid !important;
  grid-template-columns: 38% 62% !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 210px !important;
}
.note-logo {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0;
}
.note-logo-image {
  display: block;
  width: 238px;
  max-width: 100%;
  height: 202px;
  object-fit: contain;
  object-position: left center;
}
.note-customer {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 17px !important;
  padding: 0 0 0 4px !important;
  color: var(--maroon) !important;
  font-size: 13px !important;
}
.note-customer > div {
  display: grid !important;
  grid-template-columns: 108px 9px minmax(0,1fr) !important;
  gap: 5px !important;
  align-items: end !important;
  min-width: 0;
}
.note-customer > div b {
  font-weight: 800;
  white-space: nowrap;
}
.note-customer > div span {
  text-align: center;
}
.note-customer u {
  display: block;
  min-width: 0;
  min-height: 21px;
  padding: 0 0 4px !important;
  border-bottom: 1px dotted #b88a9a !important;
  color: #42343a !important;
  text-decoration: none !important;
  overflow-wrap: anywhere;
}
.note-title { display: none !important; }
.note-address {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 40px;
  padding: 7px 0 9px !important;
  margin: 0 0 14px !important;
  border-bottom: 3px solid var(--maroon) !important;
  color: var(--maroon) !important;
  font-size: 10px !important;
  line-height: 1.35 !important;
  font-weight: 800 !important;
}
.note-address svg { flex: 0 0 auto; width: 17px; height: 17px; }
.note-table-wrap { position: relative !important; }
.note-watermark {
  position: absolute !important;
  z-index: 0 !important;
  left: 50% !important;
  top: 155px !important;
  transform: translateX(-50%) !important;
  width: 365px !important;
  max-width: 65% !important;
  pointer-events: none !important;
}
.note-watermark-image {
  display: block;
  width: 100%;
  height: auto;
  opacity: .14;
  object-fit: contain;
}
.note-table {
  width: 100% !important;
  border-collapse: collapse !important;
  position: relative !important;
  z-index: 1 !important;
  table-layout: fixed !important;
}
.note-table th, .note-table td {
  border: 1.5px solid var(--maroon) !important;
  padding: 7px 6px !important;
  height: 39px !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}
.note-table th {
  height: 49px !important;
  padding: 6px !important;
  background: #fbf5f7 !important;
  color: var(--maroon) !important;
  font-size: 11px !important;
  letter-spacing: .35px !important;
  text-align: center !important;
  font-weight: 800 !important;
}
.note-table th:nth-child(1) { width: 16% !important; }
.note-table th:nth-child(2) { width: 42% !important; }
.note-table th:nth-child(3) { width: 20% !important; }
.note-table th:nth-child(4) { width: 22% !important; }
.note-table td { text-align: center !important; color: #46373d !important; }
.note-table .note-menu-cell { text-align: left !important; line-height: 1.4 !important; }
.note-footer {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  grid-template-rows: auto 1fr !important;
  gap: 8px 18px !important;
  position: relative !important;
  z-index: 1 !important;
  margin-top: 14px !important;
  min-height: 145px !important;
}
.note-thanks {
  grid-column: 1 / -1 !important;
  font-family: "Playfair Display", Georgia, serif !important;
  font-style: italic !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: var(--maroon) !important;
}
.note-signatures {
  display: flex !important;
  gap: 22px !important;
  color: var(--maroon) !important;
  font-size: 11px !important;
  align-self: stretch;
}
.note-signatures div {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 83px !important;
  flex: 1 !important;
}
.note-signatures i {
  display: block !important;
  border-bottom: 1px solid #d8c1ca !important;
  width: 100% !important;
}
.note-totals {
  grid-column: 2 !important;
  grid-row: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  align-self: start;
}
.note-totals > div {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 8px !important;
  border-bottom: 1px solid var(--maroon) !important;
  padding-bottom: 3px !important;
  color: var(--maroon) !important;
  font-size: 13px !important;
}
.note-totals > div strong {
  font-weight: 900 !important;
  color: #3d2c33 !important;
  font-size: 13px !important;
}
.note-totals .note-balance {
  border-bottom: 3px double var(--maroon) !important;
  font-weight: 900 !important;
}
.note-totals .note-balance strong {
  font-size: 15px !important;
  font-weight: 900 !important;
}
.note-bottom-brand { display: none !important; }

@media (max-width: 820px) {
  .note-preview-viewport { justify-content: flex-start !important; }
  .note-sheet { transform-origin: top left !important; }
}


/* FINAL NOTE REFERENCE — fit full page in preview; keep export at A4-like full size. */
.modal-note {
  width: min(900px, calc(100vw - 24px)) !important;
  height: min(900px, calc(100dvh - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.note-preview-viewport {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
  overflow: hidden !important;
  display: block !important;
  padding: 8px !important;
  background: #f3eff1 !important;
}
.note-preview-stage {
  position: relative !important;
  width: 100% !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-start !important;
  overflow: visible !important;
}
.note-preview-scaled {
  width: 794px !important;
  height: 1123px !important;
  flex: 0 0 794px !important;
  transform-origin: top center !important;
}
.note-export-source {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 794px !important;
  min-width: 794px !important;
  z-index: -1 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: visible !important;
}
.note-export-source .note-sheet {
  transform: none !important;
  width: 794px !important;
  min-width: 794px !important;
}

/* Match the supplied printed-note reference at the full 794 x 1123 canvas size. */
.note-sheet {
  --note-maroon: #86163c;
  width: 794px !important;
  min-width: 794px !important;
  min-height: 1123px !important;
  height: 1123px !important;
  box-sizing: border-box !important;
  padding: 18px 26px 18px !important;
  background: #fff !important;
  color: #34272c !important;
  overflow: hidden !important;
}
.note-header {
  grid-template-columns: 38% 62% !important;
  gap: 8px !important;
  min-height: 220px !important;
}
.note-logo-image {
  width: 250px !important;
  max-width: 100% !important;
  height: 210px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
.note-customer {
  gap: 17px !important;
  font-size: 15px !important;
  color: var(--note-maroon) !important;
}
.note-customer > div {
  grid-template-columns: 108px 9px minmax(0,1fr) !important;
  gap: 5px !important;
}
.note-customer u {
  font-size: 15px !important;
  color: #42343a !important;
  border-bottom-color: #b88a9a !important;
}
.note-address {
  min-height: 40px !important;
  padding: 7px 0 9px !important;
  margin: 0 0 14px !important;
  border-bottom: 3px solid var(--note-maroon) !important;
  color: var(--note-maroon) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}
.note-table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}
.note-table th,
.note-table td {
  border: 1.5px solid var(--note-maroon) !important;
  padding: 7px 6px !important;
  height: 43px !important;
  font-size: 15px !important;
  line-height: 1.3 !important;
}
.note-table th {
  height: 54px !important;
  padding: 6px !important;
  background: #fff2f6 !important;
  color: var(--note-maroon) !important;
  font-size: 16px !important;
  letter-spacing: .35px !important;
  font-weight: 800 !important;
}
.note-table th:nth-child(1) { width: 16% !important; }
.note-table th:nth-child(2) { width: 42% !important; }
.note-table th:nth-child(3) { width: 20% !important; }
.note-table th:nth-child(4) { width: 22% !important; }
.note-table td { color: #46373d !important; }
.note-watermark {
  top: 155px !important;
  width: 365px !important;
  max-width: 65% !important;
}
.note-watermark-image {
  opacity: .14 !important;
}
.note-footer {
  margin-top: 14px !important;
  min-height: 145px !important;
  gap: 8px 18px !important;
}
.note-thanks {
  font-size: 22px !important;
  color: var(--note-maroon) !important;
}
.note-signatures {
  gap: 22px !important;
  color: var(--note-maroon) !important;
  font-size: 13px !important;
}
.note-signatures div {
  min-height: 83px !important;
}
.note-totals {
  gap: 7px !important;
}
.note-totals > div {
  gap: 8px !important;
  padding-bottom: 3px !important;
  color: var(--note-maroon) !important;
  border-bottom-color: var(--note-maroon) !important;
  font-size: 15px !important;
}
.note-totals > div strong {
  color: #3d2c33 !important;
  font-size: 16px !important;
}
.note-totals .note-balance {
  border-bottom-color: var(--note-maroon) !important;
}
.note-totals .note-balance strong {
  font-size: 17px !important;
}
.note-modal-footer {
  flex: 0 0 auto !important;
  padding: 10px 14px 12px !important;
  margin: 0 !important;
}
@media (max-width: 820px) {
  .modal-backdrop {
    padding: 8px !important;
    overflow: hidden !important;
  }
  .modal-note {
    width: calc(100vw - 16px) !important;
    height: calc(100dvh - 16px) !important;
    max-height: calc(100dvh - 16px) !important;
    border-radius: 14px !important;
  }
  .modal-note .modal-header {
    padding: 10px 12px !important;
    gap: 8px !important;
  }
  .modal-note .modal-header h2 {
    font-size: 15px !important;
  }
  .modal-note .modal-header p {
    font-size: 9px !important;
    margin-top: 3px !important;
  }
  .note-preview-viewport {
    padding: 6px !important;
  }
  .note-modal-footer {
    padding: 8px 10px max(8px, env(safe-area-inset-bottom)) !important;
  }
  .note-modal-footer .btn {
    min-height: 34px !important;
    font-size: 10px !important;
  }
}


/* Match the supplied printed Pawon See T note reference more closely. */
.note-sheet {
  --note-maroon: #8b123f !important;
  --maroon: #8b123f !important;
  color: #35272d !important;
  background: #ffffff !important;
}

.note-header {
  grid-template-columns: 47% 53% !important;
  gap: 5px !important;
  min-height: 220px !important;
}

.note-logo {
  justify-content: flex-start !important;
  align-items: center !important;
}

.note-logo-image {
  width: 258px !important;
  max-width: 100% !important;
  height: 210px !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.note-customer {
  gap: 18px !important;
  padding-left: 0 !important;
  color: #8b123f !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

.note-customer > div {
  grid-template-columns: 82px 9px minmax(0,1fr) !important;
  gap: 5px !important;
  align-items: end !important;
}

.note-customer > div b {
  color: #8b123f !important;
  font-size: 17px !important;
  font-weight: 800 !important;
}

.note-customer > div span {
  color: #8b123f !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

.note-customer u {
  min-height: 25px !important;
  padding-bottom: 4px !important;
  border-bottom: 1.5px dotted #9e4967 !important;
  color: #3c3035 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
}

.note-address {
  min-height: 42px !important;
  margin-bottom: 14px !important;
  padding: 7px 0 9px !important;
  border-bottom: 3px solid #8b123f !important;
  color: #8b123f !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
}

.note-address svg {
  width: 19px !important;
  height: 19px !important;
  color: #8b123f !important;
}

.note-table {
  border-color: #8b123f !important;
}

.note-table th,
.note-table td {
  border: 1.7px solid #8b123f !important;
  padding: 7px 7px !important;
  height: 43px !important;
  color: #403137 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
}

.note-table th {
  height: 54px !important;
  padding: 6px !important;
  background: #fff3f6 !important;
  color: #8b123f !important;
  font-size: 20px !important;
  font-weight: 800 !important;
  letter-spacing: .25px !important;
}

.note-table th:nth-child(1) { width: 16% !important; }
.note-table th:nth-child(2) { width: 43% !important; }
.note-table th:nth-child(3) { width: 20% !important; }
.note-table th:nth-child(4) { width: 21% !important; }

.note-table td:first-child,
.note-table td:nth-child(3),
.note-table td:nth-child(4) {
  color: #403137 !important;
  font-size: 18px !important;
  font-weight: 500 !important;
}

.note-table .note-menu-cell {
  color: #403137 !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
}

.note-watermark {
  top: 155px !important;
  width: 365px !important;
  max-width: 65% !important;
}

.note-watermark-image {
  opacity: .15 !important;
}

.note-footer {
  margin-top: 14px !important;
  min-height: 145px !important;
  grid-template-columns: 1fr 1fr !important;
  gap: 8px 18px !important;
}

.note-thanks {
  grid-column: 1 / -1 !important;
  color: #8b123f !important;
  font-family: "Dancing Script", "Segoe Print", "Bradley Hand", "Comic Sans MS", cursive !important;
  font-style: normal !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.4px !important;
}

.note-signatures {
  gap: 22px !important;
  color: #8b123f !important;
  font-size: 16px !important;
  font-weight: 600 !important;
}

.note-signatures div {
  min-height: 83px !important;
}

.note-signatures i {
  border-bottom: 1.5px solid #8b123f !important;
}

.note-totals {
  gap: 7px !important;
}

.note-totals > div {
  gap: 8px !important;
  padding-bottom: 4px !important;
  border-bottom: 1.5px solid #8b123f !important;
  color: #8b123f !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

.note-totals > div b {
  color: #8b123f !important;
  font-size: 19px !important;
  font-weight: 800 !important;
}

.note-totals > div strong,
.note-totals > div span {
  color: #3c3035 !important;
  font-size: 19px !important;
  font-weight: 700 !important;
}

.note-totals .note-balance {
  border-bottom: 3px double #8b123f !important;
  color: #8b123f !important;
}

.note-totals .note-balance b,
.note-totals .note-balance strong {
  font-size: 20px !important;
  font-weight: 900 !important;
}

.note-modal-footer {
  flex: 0 0 auto !important;
}

@media (max-width: 820px) {
  .note-preview-viewport {
    overflow: hidden !important;
  }
  .note-preview-stage {
    margin-inline: auto !important;
  }
}


/* FINAL PASS — force the note to look much closer to the provided physical reference. */
.modal-note{
  width:min(96vw,900px)!important;
  height:min(calc(100dvh - 12px),920px)!important;
  max-height:calc(100dvh - 12px)!important;
}
.modal-note .modal-header{
  padding:10px 12px 8px!important;
}
.note-preview-viewport{
  padding:4px!important;
  background:#f6f2f3!important;
}
.note-preview-stage{
  justify-content:center!important;
}
.note-preview-scaled{
  transform-origin:top center!important;
}
.note-sheet{
  --note-maroon:#8b123f!important;
  --maroon:#8b123f!important;
  width:794px!important;
  min-width:794px!important;
  height:1123px!important;
  min-height:1123px!important;
  padding:18px 20px 18px!important;
  box-shadow:none!important;
  font-family:Arial, Helvetica, sans-serif!important;
}
.note-header{
  display:grid!important;
  grid-template-columns:300px 1fr!important;
  gap:18px!important;
  align-items:start!important;
  min-height:190px!important;
}
.note-logo{
  align-items:flex-start!important;
}
.note-logo-image{
  width:285px!important;
  max-width:285px!important;
  height:205px!important;
  object-fit:contain!important;
  object-position:left top!important;
}
.note-customer{
  display:flex!important;
  flex-direction:column!important;
  justify-content:flex-start!important;
  gap:20px!important;
  margin-top:12px!important;
  padding:0!important;
}
.note-customer>div{
  display:grid!important;
  grid-template-columns:128px 14px 1fr!important;
  gap:4px!important;
  align-items:end!important;
}
.note-customer>div b,
.note-customer>div span{
  color:#8b123f!important;
  font-size:18px!important;
  font-weight:800!important;
  line-height:1.1!important;
}
.note-customer u{
  min-height:26px!important;
  padding:0 0 5px!important;
  border-bottom:2px dotted #ad6680!important;
  color:#412f35!important;
  font-size:18px!important;
  font-weight:600!important;
  line-height:1.1!important;
  text-decoration:none!important;
}
.note-address{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:37px!important;
  margin:0 0 12px!important;
  padding:2px 0 10px!important;
  border-bottom:3px solid #8b123f!important;
  color:#8b123f!important;
  font-size:13px!important;
  font-weight:800!important;
  line-height:1.25!important;
  letter-spacing:.1px!important;
}
.note-address span{
  display:block!important;
  transform:translateY(1px)!important;
}
.note-address svg{
  width:22px!important;
  height:22px!important;
  flex:0 0 22px!important;
  color:#8b123f!important;
}
.note-table-wrap{
  position:relative!important;
}
.note-watermark{
  top:170px!important;
  width:370px!important;
  max-width:64%!important;
}
.note-watermark-image{
  opacity:.17!important;
}
.note-table{
  width:100%!important;
  border-collapse:collapse!important;
  table-layout:fixed!important;
  position:relative!important;
  z-index:1!important;
}
.note-table th,
.note-table td{
  border:2px solid #8b123f!important;
  padding:7px 8px!important;
  color:#402f35!important;
  font-size:17px!important;
  line-height:1.22!important;
}
.note-table th{
  height:58px!important;
  background:#ffffff!important;
  color:#8b123f!important;
  font-size:19px!important;
  font-weight:900!important;
  letter-spacing:.2px!important;
}
.note-table td{
  height:40px!important;
  font-weight:500!important;
  text-align:center!important;
}
.note-table th:nth-child(1){width:16%!important;}
.note-table th:nth-child(2){width:43%!important;}
.note-table th:nth-child(3){width:19%!important;}
.note-table th:nth-child(4){width:22%!important;}
.note-table .note-menu-cell{
  text-align:left!important;
  padding-left:10px!important;
  font-size:17px!important;
  font-weight:500!important;
  line-height:1.26!important;
}
.note-footer{
  display:grid!important;
  grid-template-columns:1fr 1fr!important;
  gap:10px 22px!important;
  margin-top:12px!important;
  min-height:140px!important;
}
.note-thanks{
  grid-column:1/-1!important;
  color:#8b123f!important;
  font-family:"Great Vibes","Dancing Script","Segoe Print","Bradley Hand",cursive!important;
  font-size:36px!important;
  font-weight:400!important;
  line-height:1.02!important;
  letter-spacing:.1px!important;
}
.note-signatures{
  display:flex!important;
  gap:28px!important;
  color:#8b123f!important;
  font-size:16px!important;
  font-weight:600!important;
}
.note-signatures div{
  min-height:82px!important;
}
.note-signatures i{
  border-bottom:1.8px solid #8b123f!important;
}
.note-totals{
  grid-column:2!important;
  grid-row:2!important;
  display:flex!important;
  flex-direction:column!important;
  gap:6px!important;
}
.note-totals>div{
  display:flex!important;
  justify-content:space-between!important;
  align-items:baseline!important;
  gap:10px!important;
  padding-bottom:3px!important;
  border-bottom:1.8px solid #8b123f!important;
  color:#8b123f!important;
}
.note-totals>div b{
  color:#8b123f!important;
  font-size:18px!important;
  font-weight:900!important;
}
.note-totals>div strong,
.note-totals>div span{
  color:#3b2c32!important;
  font-size:18px!important;
  font-weight:700!important;
}
.note-totals .note-balance{
  border-bottom:4px double #8b123f!important;
  padding-bottom:5px!important;
}
.note-totals .note-balance b{
  font-size:20px!important;
}
.note-totals .note-balance strong{
  font-size:22px!important;
  font-weight:900!important;
}
.note-modal-footer{
  padding:8px 12px 10px!important;
  margin:0!important;
}
.note-modal-footer .btn{
  min-height:38px!important;
  font-size:13px!important;
}

@media (max-width: 820px){
  .modal-backdrop{
    padding:6px!important;
  }
  .modal-note{
    width:calc(100vw - 12px)!important;
    height:calc(100dvh - 12px)!important;
    max-height:calc(100dvh - 12px)!important;
    border-radius:16px!important;
  }
  .note-preview-viewport{
    padding:3px!important;
  }
}


/* Handwritten content fields — only the values entered for each customer/order. */
.note-sheet .note-handwritten {
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive !important;
  font-style: normal !important;
  font-weight: 600 !important;
  letter-spacing: .15px !important;
  color: #3d3035 !important;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* Customer-entered date, name and phone. Keep labels in the bold printed font. */
.note-sheet .note-customer u.note-handwritten {
  font-size: 23px !important;
  line-height: 1.05 !important;
  font-weight: 600 !important;
  padding-bottom: 2px !important;
  border-bottom: 1.7px dotted #a85b78 !important;
}

/* Filled-in table content: quantity, food list, unit price and line amount. */
.note-sheet .note-table td .note-handwritten {
  display: inline-block;
  font-size: 23px !important;
  line-height: 1.02 !important;
  font-weight: 600 !important;
  white-space: normal;
}
.note-sheet .note-table .note-menu-cell .note-handwritten {
  font-size: 22px !important;
  text-align: left !important;
}
.note-sheet .note-table td:first-child .note-handwritten,
.note-sheet .note-table td:nth-child(3) .note-handwritten,
.note-sheet .note-table td:nth-child(4) .note-handwritten {
  white-space: nowrap;
}

/* Handwritten figures in the total, down payment and remaining balance area. */
.note-sheet .note-totals .note-handwritten {
  font-size: 25px !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  color: #3d3035 !important;
}
.note-sheet .note-totals .note-balance .note-handwritten {
  font-size: 27px !important;
  font-weight: 700 !important;
}

/* Printed labels stay bold maroon; the thank-you line remains script lettering. */
.note-sheet .note-totals b,
.note-sheet .note-table th,
.note-sheet .note-customer b,
.note-sheet .note-address,
.note-sheet .note-signatures {
  font-family: Arial, Helvetica, sans-serif !important;
}
.note-sheet .note-thanks {
  font-family: "Great Vibes", "Dancing Script", cursive !important;
}


/* Pawon See T — exact blank-note artwork supplied by the owner, with handwritten data overlays. */
.note-template-sheet {
  position: relative !important;
  width: 794px !important;
  min-width: 794px !important;
  height: 1123px !important;
  min-height: 1123px !important;
  max-height: 1123px !important;
  padding: 0 !important;
  margin: 0 auto !important;
  overflow: hidden !important;
  background: #fff !important;
  box-shadow: none !important;
  border: 0 !important;
  color: #3b2c32 !important;
  font-family: Arial, Helvetica, sans-serif !important;
}
.note-template-background {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 794px !important;
  height: 1123px !important;
  object-fit: fill !important;
  max-width: none !important;
  z-index: 0 !important;
}
.note-template-values {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  pointer-events: none !important;
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive !important;
  color: #3b3035 !important;
  font-weight: 600 !important;
  font-style: normal !important;
}
.note-value,
.note-data-row > div {
  position: absolute !important;
  font-family: "Caveat", "Segoe Print", "Bradley Hand", cursive !important;
  color: #3b3035 !important;
  font-weight: 600 !important;
  font-size: 23px !important;
  line-height: 1 !important;
  letter-spacing: .1px !important;
  white-space: nowrap !important;
  font-style: normal !important;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

/* Customer values are written directly on the dotted lines in the blank template. */
.note-date {
  left: 64.15% !important;
  top: 7.18% !important;
  width: 31.3% !important;
  height: 3.1% !important;
  font-size: 23px !important;
}
.note-customer-name {
  left: 64.15% !important;
  top: 11.0% !important;
  width: 31.3% !important;
  height: 3.1% !important;
  font-size: 23px !important;
}
.note-phone {
  left: 64.15% !important;
  top: 14.75% !important;
  width: 31.3% !important;
  height: 3.1% !important;
  font-size: 23px !important;
}

/* The blank artwork already contains the full table grid; these 13 rows align to it. */
.note-table-values {
  position: absolute !important;
  left: 2.76% !important;
  top: 31.05% !important;
  width: 94.48% !important;
  height: 53.32% !important;
  display: grid !important;
  grid-template-rows: repeat(13, minmax(0, 1fr)) !important;
}
.note-data-row {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 15.9% 42.9% 20.4% 20.8% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  height: 100% !important;
  align-items: center !important;
}
.note-data-row > div {
  position: static !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 4px !important;
  overflow: hidden !important;
  text-overflow: clip !important;
  font-size: 23px !important;
  line-height: 1.02 !important;
  text-align: center !important;
}
.note-data-menu {
  text-align: left !important;
  white-space: normal !important;
  padding-left: 9px !important;
  font-size: 22px !important;
  line-height: .95 !important;
}
.note-data-price,
.note-data-amount {
  font-size: 22px !important;
}

/* Amounts align to the three pre-printed writing lines at the bottom right. */
.note-total-value {
  left: 72.25% !important;
  top: 85.85% !important;
  width: 24.7% !important;
  height: 3.25% !important;
  text-align: right !important;
  font-size: 26px !important;
  font-weight: 700 !important;
}
.note-dp-value {
  left: 72.25% !important;
  top: 89.55% !important;
  width: 24.7% !important;
  height: 3.25% !important;
  text-align: right !important;
  font-size: 25px !important;
}
.note-balance-value {
  left: 72.25% !important;
  top: 93.25% !important;
  width: 24.7% !important;
  height: 3.25% !important;
  text-align: right !important;
  font-size: 27px !important;
  font-weight: 700 !important;
}

/* The preview remains a fitted full page; exported PNG uses a 4x canvas. */
.note-export-source .note-template-sheet {
  width: 794px !important;
  height: 1123px !important;
  min-width: 794px !important;
}


/* Keep the export copy renderable by html2canvas while placing it outside the visible screen. */
.note-export-source {
  position: fixed !important;
  top: 0 !important;
  left: -9000px !important;
  width: 794px !important;
  height: 1123px !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none !important;
  z-index: -10 !important;
  overflow: visible !important;
}
.note-export-source .note-template-sheet {
  opacity: 1 !important;
  visibility: visible !important;
}


/* Final handwriting refinement requested: slightly bolder writing and clearer spacing. */
.note-template-values,
.note-template-values .note-value,
.note-template-values .note-data-row > div {
  font-weight: 700 !important;
}

/* Move customer name slightly lower so it sits comfortably on the dotted guide. */
.note-template-values .note-customer-name {
  top: 11.35% !important;
  padding-top: 2px !important;
}

/* Stronger handwritten emphasis for total and remaining balance. */
.note-template-values .note-total-value {
  font-weight: 900 !important;
  font-size: 28px !important;
  letter-spacing: .2px !important;
}
.note-template-values .note-balance-value {
  font-weight: 900 !important;
  font-size: 29px !important;
  letter-spacing: .2px !important;
}

/* Keep the DP amount handwritten and readable, but less emphasized than Total/Sisa. */
.note-template-values .note-dp-value {
  font-weight: 700 !important;
  font-size: 25px !important;
}


/* Final correction: align customer name back to its dotted writing line. */
.note-template-values .note-customer-name {
  top: 10.9% !important;
  padding-top: 0 !important;
  transform: none !important;
}

/* Make handwritten values visibly bolder without increasing their font size. */
.note-template-values .note-value,
.note-template-values .note-data-row > div {
  font-weight: 700 !important;
  -webkit-text-stroke: .42px currentColor !important;
  text-shadow:
    .22px 0 currentColor,
    -.22px 0 currentColor,
    0 .18px currentColor !important;
}

/* Keep the same size as before; make Total and Sisa distinctly heavier. */
.note-template-values .note-total-value {
  font-size: 26px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .85px currentColor !important;
  text-shadow:
    .35px 0 currentColor,
    -.35px 0 currentColor,
    0 .25px currentColor !important;
}
.note-template-values .note-balance-value {
  font-size: 27px !important;
  font-weight: 900 !important;
  -webkit-text-stroke: .9px currentColor !important;
  text-shadow:
    .38px 0 currentColor,
    -.38px 0 currentColor,
    0 .28px currentColor !important;
}

/* DP remains handwritten and bold, but below Total and Sisa in emphasis. */
.note-template-values .note-dp-value {
  font-size: 25px !important;
  font-weight: 700 !important;
  -webkit-text-stroke: .48px currentColor !important;
  text-shadow:
    .22px 0 currentColor,
    -.22px 0 currentColor !important;
}


/* Readability pass:
   - top date/name/phone entries sit slightly lower on the dotted guide
   - handwriting uses a clearer handwritten font than before
   - keep boldness, but reduce the scratchy look so it is easier to read */
.note-template-values,
.note-template-values .note-value,
.note-template-values .note-data-row > div {
  font-family: "Kalam", "Segoe Print", "Trebuchet MS", cursive !important;
  color: #33282d !important;
  font-weight: 700 !important;
  -webkit-text-stroke: .14px currentColor !important;
  text-shadow: .12px 0 currentColor !important;
  letter-spacing: 0 !important;
}

/* Lower the three top fields slightly so they sit centered on the dotted line. */
.note-template-values .note-date {
  top: 7.45% !important;
}
.note-template-values .note-customer-name {
  top: 11.22% !important;
}
.note-template-values .note-phone {
  top: 15.02% !important;
}

/* Make the top values and table values easier to read. */
.note-template-values .note-date,
.note-template-values .note-customer-name,
.note-template-values .note-phone {
  font-size: 21px !important;
  line-height: 1.05 !important;
}

.note-template-values .note-data-row > div {
  font-size: 21px !important;
  line-height: 1.05 !important;
}
.note-template-values .note-data-menu {
  font-size: 20px !important;
  line-height: 1.02 !important;
}

/* Keep totals bold and clear, but more readable than the previous stylized script. */
.note-template-values .note-total-value {
  font-family: "Kalam", "Segoe Print", "Trebuchet MS", cursive !important;
  font-size: 24px !important;
  font-weight: 700 !important;
  -webkit-text-stroke: .22px currentColor !important;
  text-shadow: .16px 0 currentColor !important;
}
.note-template-values .note-dp-value {
  font-family: "Kalam", "Segoe Print", "Trebuchet MS", cursive !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  -webkit-text-stroke: .16px currentColor !important;
  text-shadow: .12px 0 currentColor !important;
}
.note-template-values .note-balance-value {
  font-family: "Kalam", "Segoe Print", "Trebuchet MS", cursive !important;
  font-size: 25px !important;
  font-weight: 700 !important;
  -webkit-text-stroke: .24px currentColor !important;
  text-shadow: .18px 0 currentColor !important;
}


/* Final fix for clipped handwritten order values in the saved PNG.
   Slightly smaller type, more vertical breathing room, and no cell clipping. */
.note-template-values .note-data-row {
  overflow: visible !important;
  align-items: stretch !important;
}
.note-template-values .note-data-row > div {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  padding: 2px 5px !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: nowrap !important;
  font-family: "Kalam", "Segoe Print", "Trebuchet MS", cursive !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 700 !important;
  -webkit-text-stroke: .12px currentColor !important;
  text-shadow: .08px 0 currentColor !important;
}
.note-template-values .note-data-menu {
  justify-content: flex-start !important;
  text-align: left !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  padding-left: 8px !important;
  padding-right: 6px !important;
  font-size: 17px !important;
  line-height: 1.08 !important;
}
.note-template-values .note-data-price,
.note-template-values .note-data-amount {
  font-size: 17px !important;
  letter-spacing: -.15px !important;
}

/* Keep handwriting readable while making the amount fit its printed line. */
.note-template-values .note-total-value,
.note-template-values .note-dp-value,
.note-template-values .note-balance-value {
  box-sizing: border-box !important;
  overflow: visible !important;
  white-space: nowrap !important;
  line-height: 1.25 !important;
}


/* Top line alignment fix: move date, customer name, and phone slightly upward. */
.note-template-values .note-date {
  top: 7.18% !important;
}
.note-template-values .note-customer-name {
  top: 10.96% !important;
}
.note-template-values .note-phone {
  top: 14.74% !important;
}


/* =========================
   ORDER FORM REFRESH
   Calmer, cleaner, less crowded on phone
   ========================= */
@media (max-width: 900px) {
  .order-modal-backdrop {
    padding: max(8px, env(safe-area-inset-top)) 6px max(8px, env(safe-area-inset-bottom)) !important;
  }

  .order-modal-backdrop .order-modal {
    width: calc(100vw - 12px) !important;
    max-width: 760px !important;
    max-height: calc(100dvh - 12px) !important;
    border-radius: 16px !important;
    background: #fff !important;
  }

  .order-modal .modal-header {
    padding: 12px 14px !important;
    border-bottom: 1px solid #f1e8eb !important;
    background: #fff !important;
  }

  .order-modal .modal-header .eyebrow {
    font-size: 9px !important;
    letter-spacing: 1px !important;
  }

  .order-modal .modal-header h2 {
    font-size: 15px !important;
    line-height: 1.25 !important;
  }

  .order-modal .modal-body.order-form {
    padding: 12px 12px max(12px, env(safe-area-inset-bottom)) !important;
    gap: 12px !important;
    background: #faf7f8 !important;
  }

  .order-modal .order-form .form-section {
    gap: 8px !important;
    background: #fff !important;
    border: 1px solid #eee4e8 !important;
    border-radius: 13px !important;
    padding: 12px !important;
    box-shadow: 0 1px 0 rgba(0,0,0,0.02) !important;
  }

  .order-modal .order-form .form-section h3 {
    font-size: 13px !important;
    color: #4a3740 !important;
    margin: 0 !important;
  }

  .order-modal .order-form label {
    font-size: 10px !important;
    color: #735d66 !important;
    gap: 5px !important;
  }

  .order-modal .order-form input,
  .order-modal .order-form select,
  .order-modal .order-form textarea {
    min-height: 38px !important;
    padding: 8px 10px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  .order-modal .order-form textarea {
    min-height: 48px !important;
  }

  .order-modal .order-form > .form-section:first-child .form-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }

  .order-modal .order-form > .form-section:first-child .form-grid.two > label:first-child,
  .order-modal .order-form > .form-section:first-child .form-grid.two > label:last-child {
    grid-column: 1 / -1 !important;
  }

  .order-modal .order-form .form-grid.two {
    gap: 8px !important;
  }

  .order-modal .order-form .section-heading-row {
    align-items: flex-start !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
  }

  .order-modal .order-form .section-heading-row h3 {
    font-size: 13px !important;
    margin: 0 0 2px !important;
  }

  .order-modal .order-form .section-heading-row p {
    font-size: 9px !important;
    line-height: 1.35 !important;
    color: #8b757d !important;
  }

  .order-modal .order-form .section-heading-row .btn {
    min-height: 34px !important;
    padding: 7px 10px !important;
    font-size: 10px !important;
    border-radius: 10px !important;
    margin-left: auto !important;
  }

  .order-modal .group-editor {
    background: #fcfbfb !important;
    border: 1px solid #eadfe4 !important;
    border-radius: 12px !important;
    padding: 10px !important;
    gap: 9px !important;
  }

  .order-modal .group-editor-head {
    align-items: center !important;
  }

  .order-modal .group-editor-head > b {
    font-size: 10px !important;
    color: var(--maroon) !important;
  }

  .order-modal .group-editor .form-grid.two {
    grid-template-columns: 1.45fr .85fr !important;
    gap: 8px !important;
  }

  .order-modal .helper-note {
    padding: 8px 9px !important;
    font-size: 9px !important;
    line-height: 1.35 !important;
    border-radius: 10px !important;
    background: #f9f2f5 !important;
  }

  /* Biggest readability improvement:
     use one-column menu list instead of tiny crowded 2-column cards */
  .order-modal .menu-picker {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    max-height: 220px !important;
    overflow-y: auto !important;
    padding: 8px !important;
    background: #fff !important;
    border: 1px solid #eee4e8 !important;
    border-radius: 10px !important;
  }

  .order-modal .picker-title {
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    background: #fff !important;
    padding-bottom: 4px !important;
    margin-bottom: 2px !important;
    font-size: 10px !important;
    color: #6f5861 !important;
  }

  .order-modal .menu-choice {
    display: grid !important;
    grid-template-columns: 18px minmax(0,1fr) auto !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 8px 9px !important;
    border: 1px solid #efe3e8 !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  .order-modal .menu-choice.checked {
    background: #fbf4f7 !important;
    border-color: #dcbcc9 !important;
  }

  .order-modal .choice-check {
    width: 16px !important;
    height: 16px !important;
    border-radius: 4px !important;
  }

  .order-modal .choice-name {
    font-size: 10px !important;
    line-height: 1.2 !important;
    gap: 2px !important;
  }

  .order-modal .choice-name small {
    font-size: 8px !important;
    line-height: 1.2 !important;
    color: #937f87 !important;
  }

  .order-modal .menu-choice > b {
    font-size: 10px !important;
    color: #4f3941 !important;
    white-space: nowrap !important;
  }

  .order-modal .selected-menu-summary {
    padding: 9px !important;
    border-radius: 10px !important;
    background: #fff !important;
  }

  .order-modal .selected-menu-summary > b {
    font-size: 10px !important;
    color: #5a434c !important;
  }

  .order-modal .selected-menu-row {
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto !important;
    gap: 7px !important;
    align-items: center !important;
    padding: 8px 0 !important;
    font-size: 10px !important;
  }

  .order-modal .selected-menu-row > span {
    min-width: 0 !important;
  }

  .order-modal .selected-menu-row > div {
    gap: 5px !important;
    white-space: nowrap !important;
  }

  .order-modal .selected-menu-row input {
    width: 44px !important;
    min-height: 28px !important;
    padding: 4px !important;
    font-size: 10px !important;
    border-radius: 8px !important;
  }

  .order-modal .group-price {
    padding-top: 8px !important;
    font-size: 10px !important;
  }

  .order-modal .group-price b {
    font-size: 14px !important;
  }

  .order-modal .order-total-preview {
    padding: 12px !important;
    border-radius: 12px !important;
    gap: 8px !important;
    background: #f8f0f3 !important;
  }

  .order-modal .order-total-preview > div {
    font-size: 10px !important;
  }

  .order-modal .order-total-preview strong {
    font-size: 20px !important;
  }

  .order-modal .order-total-preview small {
    font-size: 8px !important;
    line-height: 1.35 !important;
  }

  .order-modal .modal-footer {
    margin: 0 -12px -12px !important;
    padding: 10px 12px max(10px, env(safe-area-inset-bottom)) !important;
    background: #fff !important;
    border-top: 1px solid #f1e6ea !important;
    box-shadow: 0 -4px 18px rgba(66, 31, 48, 0.06) !important;
  }

  .order-modal .modal-footer .btn {
    min-height: 38px !important;
    font-size: 11px !important;
    border-radius: 10px !important;
    padding: 8px 12px !important;
  }
}

@media (max-width: 430px) {
  .order-modal .order-form .form-grid.two,
  .order-modal .order-form > .form-section:first-child .form-grid.two,
  .order-modal .group-editor .form-grid.two {
    grid-template-columns: 1fr !important;
  }

  .order-modal .order-form > .form-section:first-child .form-grid.two > label:first-child,
  .order-modal .order-form > .form-section:first-child .form-grid.two > label:last-child {
    grid-column: auto !important;
  }

  .order-modal .order-form .section-heading-row .btn {
    width: 100% !important;
    margin-left: 0 !important;
    justify-content: center !important;
  }

  .order-modal .selected-menu-row {
    grid-template-columns: 1fr !important;
  }

  .order-modal .selected-menu-row > div {
    justify-content: flex-start !important;
  }
}


/* =========================
   MOBILE MENU PICKER STABILITY
   Keep the order form from jumping when a menu is selected.
   ========================= */
@media (max-width: 900px) {
  /* Let the main form handle scrolling; avoid a nested scrolling menu box. */
  .order-modal .menu-picker {
    display: flex !important;
    flex-direction: column !important;
    max-height: none !important;
    height: auto !important;
    overflow: visible !important;
    overscroll-behavior: auto !important;
    overflow-anchor: none !important;
    scroll-behavior: auto !important;
  }

  .order-modal .picker-title {
    position: static !important;
    top: auto !important;
    z-index: auto !important;
    flex: 0 0 auto !important;
    background: transparent !important;
  }

  /* Show a real checkbox in the row.
     Hidden 1px checkboxes can cause Android Chrome to scroll the form to focus. */
  .order-modal .menu-picker .menu-choice {
    position: relative !important;
    display: grid !important;
    grid-template-columns: 20px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 9px !important;
    min-height: 44px !important;
    scroll-margin: 8px 0 !important;
  }

  .order-modal .menu-picker .menu-choice input[type="checkbox"] {
    position: static !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    appearance: auto !important;
    -webkit-appearance: checkbox !important;
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 4px !important;
    accent-color: var(--maroon) !important;
    flex: 0 0 18px !important;
    transform: none !important;
  }

  .order-modal .menu-picker .menu-choice .choice-check {
    display: none !important;
  }

  .order-modal .menu-picker .menu-choice .choice-name {
    min-width: 0 !important;
  }

  /* Avoid browser scroll anchoring when the selected-menu summary appears. */
  .order-modal .order-form,
  .order-modal .group-editor,
  .order-modal .menu-picker {
    overflow-anchor: none !important;
  }
}


/* =========================
   SEARCH-FIRST MENU PICKER
   Show selected items + 8 starter choices, then search the rest.
   ========================= */
.order-modal .picker-title-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.order-modal .picker-title-row .picker-title {
  margin: 0 !important;
}
.order-modal .picker-selected-count {
  color: var(--maroon) !important;
  background: #f8edf1 !important;
  border-radius: 999px !important;
  padding: 4px 8px !important;
  font-size: 9px !important;
  font-weight: 700 !important;
  white-space: nowrap !important;
}
.order-modal .menu-search-box {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 0 11px !important;
  border: 1px solid #eadde3 !important;
  border-radius: 10px !important;
  background: #fff !important;
  color: #987e89 !important;
}
.order-modal .menu-search-box:focus-within {
  border-color: #b97891 !important;
  box-shadow: 0 0 0 3px rgba(139,35,72,.08) !important;
}
.order-modal .menu-search-box input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
  min-height: 38px !important;
  padding: 6px 0 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-size: 12px !important;
}
.order-modal .menu-search-box button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: #f7eef2 !important;
  color: #805064 !important;
}
.order-modal .menu-search-hint {
  color: #927d86 !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
  margin: 1px 1px 3px !important;
}
.order-modal .menu-empty-result {
  padding: 12px !important;
  margin: 0 !important;
  border: 1px dashed #e7d9df !important;
  border-radius: 9px !important;
  text-align: center !important;
  font-size: 10px !important;
}
@media (max-width: 900px) {
  .order-modal .menu-search-box {
    min-height: 40px !important;
  }
  .order-modal .menu-search-box input {
    font-size: 11px !important;
  }
}


/* Required markers stay inline beside their field captions, never on a new line. */
.order-modal .order-form label .required-label {
  display: inline-flex !important;
  flex-direction: row !important;
  align-items: baseline !important;
  justify-content: flex-start !important;
  gap: 3px !important;
  width: fit-content !important;
  max-width: 100% !important;
  line-height: 1.2 !important;
}
.order-modal .order-form label .required-label em {
  display: inline !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #c43b59 !important;
  font-style: normal !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}


/* Compact "Tambah kelompok" action beside the section title on phones. */
@media (max-width: 900px) {
  .order-modal .order-form .section-heading-row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .order-modal .order-form .section-heading-row > div {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }

  .order-modal .order-form .section-heading-row h3 {
    white-space: nowrap !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .order-modal .order-form .section-heading-row p {
    max-width: 225px !important;
    font-size: 8px !important;
    line-height: 1.3 !important;
  }

  .order-modal .order-form .section-heading-row .btn {
    display: inline-flex !important;
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 0 !important;
    min-height: 31px !important;
    align-self: center !important;
    margin: 0 !important;
    padding: 6px 9px !important;
    gap: 4px !important;
    border: 1px solid #e7d4dc !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--maroon) !important;
    box-shadow: none !important;
    font-size: 9px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .order-modal .order-form .section-heading-row .btn svg {
    width: 13px !important;
    height: 13px !important;
  }
}

@media (max-width: 360px) {
  .order-modal .order-form .section-heading-row {
    gap: 5px !important;
  }

  .order-modal .order-form .section-heading-row .btn {
    padding: 6px 7px !important;
    font-size: 8px !important;
  }

  .order-modal .order-form .section-heading-row p {
    max-width: 175px !important;
  }
}


/* NOTE TABLE: print each selected menu item on its own row,
   keeping every item inside the MENU column boundaries. */
.note-template-values .note-data-menu {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: auto !important;
  align-self: center !important;
  justify-self: stretch !important;
  padding: 2px 6px 2px 8px !important;
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
  word-break: normal !important;
  text-overflow: clip !important;
  text-align: left !important;
  font-size: 16px !important;
  line-height: 1.08 !important;
}
.note-template-values .note-data-row {
  overflow: hidden !important;
}


/* NOTE MENU WRAP TWEAK:
   one row can contain several menu names, then continue on the next row only if it exceeds the width. */
.note-template-values .note-data-menu {
  font-size: 15px !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}


/* Auto-fit note menu lines: keep text within the printed MENU cell. */
.note-template-values .note-data-menu {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  font-family: "Kalam", "Segoe Print", "Trebuchet MS", cursive !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.08 !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
  overflow: hidden !important;
}


/* Keep menu text strictly inside the printed MENU column width. */
.note-template-values .note-data-menu {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  padding-left: 8px !important;
  padding-right: 6px !important;
  overflow: hidden !important;
  white-space: normal !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}


/* FINAL BOUNDARY FIX:
   The note-menu text must stay inside the exact grid cell between
   the BANYAKNYA and HARGA / BOX vertical borders. The higher-specificity
   selector overrides the earlier generic table-cell overflow:visible rule. */
.note-template-values .note-data-row > .note-data-menu {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  height: 100% !important;
  padding: 2px 8px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: clip !important;
  overflow-wrap: normal !important;
  word-break: normal !important;
  font-family: "Kalam", "Segoe Print", "Trebuchet MS", cursive !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
}


/* Quantity unit selector for each order group. */
.group-editor .form-grid.two > label {
  min-width: 0;
}
.group-editor .form-grid.two select {
  width: 100%;
}
.order-total-preview b {
  overflow-wrap: anywhere;
}


/* Automatic box packaging charge note. */
.group-price .auto-box-charge {
  display: block;
  margin-top: 3px;
  color: var(--muted, #777);
  font-size: 11px;
  font-weight: 400;
}


/* APPROVED NOTE ARTWORK IS UNCHANGED.
   Enlarge only the live handwritten values placed over the existing artwork.
   Keep every field in its existing position and preserve the MENU column boundary. */
.note-template-values .note-date,
.note-template-values .note-customer-name,
.note-template-values .note-phone {
  font-size: 23px !important;
  line-height: 1.08 !important;
}

.note-template-values .note-data-row > div {
  font-size: 20px !important;
  line-height: 1.12 !important;
}

.note-template-values .note-data-row > .note-data-menu {
  font-size: 20px !important;
  line-height: 1.12 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

.note-template-values .note-data-price,
.note-template-values .note-data-amount {
  font-size: 19px !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
}

.note-template-values .note-total-value {
  font-size: 26px !important;
  line-height: 1.18 !important;
}

.note-template-values .note-dp-value {
  font-size: 24px !important;
  line-height: 1.18 !important;
}

.note-template-values .note-balance-value {
  font-size: 27px !important;
  line-height: 1.18 !important;
}


/* Fine-tune the top handwritten fields so they sit slightly higher
   and align better with the printed Tanggal / Nama Pemesan / Hp labels. */
.note-template-values .note-date {
  top: 7.10% !important;
}
.note-template-values .note-customer-name {
  top: 10.87% !important;
}
.note-template-values .note-phone {
  top: 14.67% !important;
}


/* Raise the three handwritten header values a little more. */
.note-template-values .note-date {
  top: 6.72% !important;
}
.note-template-values .note-customer-name {
  top: 10.49% !important;
}
.note-template-values .note-phone {
  top: 14.29% !important;
}


/* Optional ongkir row and paid stamp for the approved note artwork. */
.note-data-row-shipping .note-data-menu {
  letter-spacing: .2px !important;
}
.note-data-row-shipping .note-data-price,
.note-data-row-shipping .note-data-amount {
  font-weight: 700 !important;
}

.note-lunas-stamp {
  position: absolute !important;
  left: 58.2% !important;
  top: 71.8% !important;
  z-index: 3 !important;
  padding: 8px 18px 6px !important;
  border: 4px solid rgba(193, 53, 75, 0.88) !important;
  color: rgba(193, 53, 75, 0.92) !important;
  background: rgba(255,255,255,0.18) !important;
  border-radius: 14px !important;
  font-family: "Arial Black", Impact, system-ui, sans-serif !important;
  font-size: 44px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  letter-spacing: 2px !important;
  transform: rotate(-12deg) !important;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.12) inset !important;
  pointer-events: none !important;
}


/* =========================================================
   PAWON SEE T — CLEAN VISUAL REFRESH
   Cleaner page hierarchy, fewer repeated cards, same maroon identity.
   Note artwork / note overlay styles are intentionally untouched.
   ========================================================= */

:root {
  --maroon: #7b243f;
  --maroon-dark: #5f1930;
  --maroon-soft: #f4e9ed;
  --maroon-pale: #fbf5f7;
  --ink: #30262a;
  --muted: #8c7d82;
  --line: #eadfe3;
  --white: #ffffff;
}

body {
  background: #faf8f8;
  color: var(--ink);
}

.app-shell {
  background: #faf8f8;
}

.sidebar {
  background: #fff;
  border-right: 1px solid #f0e7ea;
  padding: 22px 15px 17px;
}

.sidebar-brand {
  padding-bottom: 20px;
  border-bottom-color: #f4ecef;
}

.sidebar-caption {
  padding-top: 20px;
  color: #ad929c;
  letter-spacing: 1.25px;
}

.sidebar-nav {
  gap: 4px;
}

.sidebar-nav button,
.sidebar-bottom > button {
  min-height: 44px;
  border-radius: 11px;
  color: #786970;
  transition: background .16s ease, color .16s ease;
}

.sidebar-nav button.active,
.sidebar-bottom > button.active {
  background: #f6eaf0;
  color: var(--maroon);
}

.sidebar-nav button.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  bottom: 11px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--maroon);
}

.main-area {
  background: #faf8f8;
}

.topbar {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid #f0e7ea;
  box-shadow: 0 2px 10px rgba(64,28,43,.025);
  backdrop-filter: blur(12px);
}

.topbar-date .today-label {
  color: #a27a89;
}

.topbar-date b {
  color: #4c3941;
  font-size: 13px;
}

.mobile-brand {
  color: var(--maroon);
  letter-spacing: -.35px;
}

.page-content {
  max-width: 1420px;
  padding: 28px 32px 54px;
}

.page-stack {
  gap: 22px;
}

.page-heading {
  margin-bottom: 4px;
  align-items: center;
  gap: 16px;
}

.page-heading h1 {
  color: #34272d;
  font-size: 26px;
  letter-spacing: -.65px;
  line-height: 1.16;
  margin-bottom: 6px;
}

.page-heading p {
  color: #8d7e84;
  font-size: 12px;
  line-height: 1.5;
}

.eyebrow {
  color: #a47787;
  font-size: 9px;
  letter-spacing: 1.35px;
  margin-bottom: 7px;
}

.btn {
  border-radius: 11px;
  min-height: 39px;
  padding: 9px 14px;
  font-size: 12px;
  box-shadow: none;
}

.btn-primary {
  background: var(--maroon);
  box-shadow: 0 3px 9px rgba(123,36,63,.12);
}

.btn-primary:hover {
  background: var(--maroon-dark);
  box-shadow: 0 4px 12px rgba(123,36,63,.16);
}

.btn-outline {
  border-color: #e6d5dc;
  background: #fff;
}

.icon-button {
  border-radius: 11px;
  background: #fff;
  border-color: #eee3e7;
}

/* Calendar: one clear calendar surface, then an open selected-day area. */
.calendar-layout {
  grid-template-columns: minmax(0, 1.42fr) minmax(320px, .9fr);
  gap: 26px;
}

.calendar-card {
  background: #fff;
  border: 1px solid #f0e7ea;
  border-radius: 20px;
  box-shadow: 0 5px 22px rgba(65,30,44,.035);
  padding: 22px;
}

.calendar-toolbar {
  margin-bottom: 17px;
}

.calendar-toolbar h2 {
  color: #3e2e35;
  font-size: 18px;
  letter-spacing: -.25px;
}

.calendar-toolbar p {
  color: #9a8b91;
  font-size: 10px;
}

.calendar-grid {
  gap: 5px;
}

.weekday {
  color: #a38e97;
  font-size: 10px;
  font-weight: 700;
  padding: 8px 0;
}

.calendar-day {
  height: 58px;
  border-radius: 13px;
  color: #5d4b53;
}

.calendar-day .day-number {
  font-size: 13px;
  font-weight: 600;
}

.calendar-day.selected {
  background: var(--maroon);
  box-shadow: 0 5px 13px rgba(123,36,63,.18);
}

.calendar-day.is-today:not(.selected) {
  border: 1px solid #c997a8;
  background: #fff9fb;
}

.day-dot {
  bottom: 7px;
  width: 5px;
  height: 5px;
}

.calendar-legend {
  border-top-color: #f2eaed;
  color: #95858c;
  font-size: 10px;
}

.selected-day-panel {
  position: static;
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 7px 0;
}

.selected-day-head {
  padding: 4px 0 14px;
  border-bottom: 1px solid #eadfe3;
}

.selected-day-head h2 {
  color: #3b2b32;
  font-size: 17px;
}

.add-circle {
  width: 38px;
  height: 38px;
  box-shadow: 0 4px 10px rgba(123,36,63,.15);
}

.day-stats {
  gap: 14px;
  padding: 15px 0;
  border-bottom: 1px solid #eadfe3;
}

.day-stats div {
  gap: 5px;
}

.day-stats div:last-child {
  grid-column: auto;
  background: transparent;
  border-left: 1px solid #eadfe3;
  border-radius: 0;
  padding: 0 0 0 14px;
}

.day-stats span {
  color: #95858c;
  font-size: 10px;
}

.day-stats b {
  color: #3b2b32;
  font-size: 17px;
}

.day-stats small {
  color: #95858c;
  font-size: 10px;
}

.selected-order-list {
  padding-top: 16px;
}

.list-title {
  margin-bottom: 9px;
}

.list-title b {
  color: #493740;
  font-size: 13px;
}

.list-title span {
  color: #9a8991;
  font-size: 10px;
}

/* Order cards become clean rows instead of a stack of identical boxes. */
.selected-order-list .order-card,
.reminder-panel .order-card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid #f0e7ea;
  border-radius: 0;
  box-shadow: none;
  padding: 12px 2px;
  margin: 0;
}

.selected-order-list .order-card:last-child,
.reminder-panel .order-card:last-child {
  border-bottom: 0;
}

.selected-order-list .order-card:hover,
.reminder-panel .order-card:hover {
  background: #fff;
  border-color: #f0e7ea;
  box-shadow: none;
  transform: none;
}

.selected-order-list .order-card-summary,
.reminder-panel .order-card-summary {
  background: transparent;
  border-radius: 0;
  border-top: 1px solid #f4edef;
  padding: 8px 0 0;
  margin-top: 8px;
}

.selected-order-list .order-card-menu,
.reminder-panel .order-card-menu {
  color: #8b7b82;
}

/* Orders: a single list with separators, not many floating cards. */
.orders-page {
  gap: 16px;
}

.orders-toolbar {
  background: transparent;
  border: 0;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
  gap: 11px;
}

.orders-toolbar .search-box {
  min-height: 46px;
  padding: 0 14px;
  background: #fff;
  border: 1px solid #eee3e7;
  border-radius: 13px;
  box-shadow: 0 2px 9px rgba(64,28,43,.025);
}

.orders-toolbar .search-box input {
  font-size: 13px;
}

.orders-filter-row {
  gap: 10px;
}

.filter-chips {
  gap: 6px;
}

.filter-chips button {
  border: 1px solid transparent;
  background: #f1ebee;
  color: #806d75;
  border-radius: 9px;
  padding: 8px 11px;
  font-size: 10px;
}

.filter-chips button.active {
  background: var(--maroon);
  border-color: var(--maroon);
  color: #fff;
}

.orders-sort {
  border-radius: 10px;
  border-color: #eadfe3;
  background: #fff;
  font-size: 11px;
}

.orders-results-meta {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: #9a8991;
  font-size: 10px;
  padding: 0 2px;
}

.orders-results-meta b {
  color: #4a3740;
  font-size: 13px;
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(64,28,43,.025);
}

.orders-list .order-card {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f1e9ec;
  border-radius: 0;
  box-shadow: none;
  padding: 15px 17px;
  margin: 0;
}

.orders-list .order-card:last-child {
  border-bottom: 0;
}

.orders-list .order-card:hover {
  background: #fffafd;
  border-color: #f1e9ec;
  box-shadow: none;
  transform: none;
}

.orders-list .order-card-summary {
  background: #faf6f8;
  border-radius: 9px;
  padding: 9px 11px;
  margin-top: 9px;
}

.order-card-customer > b {
  font-size: 13px;
  color: #403039;
}

.order-card-customer > span {
  font-size: 10px;
}

.order-card-menu {
  color: #8a7a81;
  font-size: 10px;
  margin: 8px 0;
}

.order-card-bottom {
  color: #98878e;
  font-size: 10px;
}

/* Menu: simple list rows, with the price and actions easy to scan. */
.section-heading-row {
  align-items: center;
  gap: 12px;
}

.section-heading-row h2 {
  color: #493740;
  font-size: 16px;
}

.section-heading-row p {
  color: #98878e;
  font-size: 11px;
  line-height: 1.4;
}

.menu-management-list {
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 18px;
  overflow: hidden;
  gap: 0;
  box-shadow: 0 4px 16px rgba(64,28,43,.025);
}

.menu-management-card {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #f1e9ec;
  border-radius: 0;
  padding: 13px 15px;
  gap: 12px;
}

.menu-management-card:last-child {
  border-bottom: 0;
}

.menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f8eff2;
}

.menu-info b {
  color: #47353e;
  font-size: 12px;
}

.menu-info small {
  color: #9b8a91;
  font-size: 10px;
}

.menu-management-card > strong {
  color: var(--maroon);
  font-size: 12px;
}

.menu-edit-button {
  border-radius: 9px;
}

/* Reminders: two clearly differentiated sections, with flat order rows. */
.reminder-grid {
  gap: 18px;
}

.reminder-panel {
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(64,28,43,.025);
}

.reminder-tomorrow {
  border-top: 3px solid var(--maroon);
}

.reminder-pending {
  border-top: 3px solid #c28b38;
}

.reminder-panel-head {
  gap: 12px;
  margin-bottom: 13px;
}

.reminder-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.reminder-panel-head h2 {
  color: #44323a;
  font-size: 15px;
}

.reminder-panel-head p {
  color: #98878e;
  font-size: 10px;
}

.reminder-numbers {
  gap: 34px;
  padding: 12px 0;
  margin-bottom: 4px;
  border-top: 1px solid #f1e9ec;
  border-bottom: 1px solid #f1e9ec;
}

.reminder-numbers b {
  color: #45323b;
  font-size: 21px;
}

/* Reports: four figures grouped as one dashboard strip, not four similar cards. */
.report-filter {
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 17px;
  box-shadow: none;
  padding: 13px 15px;
}

.filter-presets {
  gap: 5px;
}

.filter-presets button {
  border-radius: 9px;
  padding: 9px 11px;
  font-size: 10px;
}

.filter-presets button.active {
  background: var(--maroon);
  color: #fff;
}

.date-range-inputs input {
  border-color: #eee3e7;
  border-radius: 9px;
  background: #fff;
}

.report-period {
  color: #9a8991;
  font-size: 10px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 17px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(64,28,43,.025);
}

.stat-card {
  min-width: 0;
  background: transparent;
  border: 0;
  border-right: 1px solid #f0e7ea;
  border-radius: 0;
  padding: 15px 16px;
  gap: 5px;
  box-shadow: none;
}

.stat-card:last-child {
  border-right: 0;
}

.stat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f8eff2;
  margin-bottom: 3px;
}

.stat-card > span {
  color: #93838a;
  font-size: 10px;
}

.stat-card > b {
  color: #413039;
  font-size: 18px;
  line-height: 1.2;
}

.stat-card > small {
  color: #a19399;
  font-size: 9px;
  line-height: 1.35;
}

.stat-accent {
  background: #fcf7f9;
}

.stat-accent > b {
  color: var(--maroon);
}

.content-card {
  background: #fff;
  border: 1px solid #eee5e8;
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 4px 16px rgba(64,28,43,.025);
}

.report-page .content-card {
  margin-top: 1px;
}

.report-table th {
  background: #faf5f7;
  color: #8f737f;
}

.report-table td {
  color: #59464f;
}

.report-footnote {
  color: #9b8b91;
}

/* Settings: clearer section headings and calmer fields. */
.settings-card {
  gap: 16px;
}

.card-title-row h2 {
  color: #43323a;
  font-size: 16px;
}

.card-title-row p {
  color: #96868d;
  font-size: 10px;
  line-height: 1.45;
}

.settings-toggle {
  border-bottom-color: #f0e7ea;
}

.settings-toggle b,
.push-setup b {
  color: #493740;
  font-size: 12px;
}

.settings-toggle small,
.push-setup small {
  color: #97878e;
  font-size: 10px;
  line-height: 1.4;
}

.empty-state {
  background: #fff;
  border: 1px dashed #e7d9df;
  border-radius: 16px;
  color: #94848b;
}

.empty-state b {
  color: #4c3942;
}

.empty-state.compact {
  background: transparent;
  border: 1px dashed #e8dce1;
}

/* Mobile: more breathing room, calmer surfaces, and a clearer bottom bar. */
@media (max-width: 820px) {
  .main-area {
    padding-bottom: 78px;
  }

  .topbar {
    height: 62px;
    padding: 0 14px;
  }

  .mobile-brand {
    font-size: 18px;
  }

  .topbar-actions {
    gap: 8px;
  }

  .top-add {
    min-height: 36px;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 10px;
  }

  .page-content {
    padding: 18px 14px 30px;
  }

  .page-stack {
    gap: 17px;
  }

  .page-heading {
    align-items: flex-start;
    margin-bottom: 1px;
    gap: 10px;
  }

  .page-heading h1 {
    font-size: 22px;
    margin-bottom: 4px;
  }

  .page-heading p {
    font-size: 11px;
    max-width: 330px;
  }

  .calendar-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .calendar-card {
    padding: 16px 14px;
    border-radius: 18px;
  }

  .calendar-toolbar {
    margin-bottom: 13px;
  }

  .calendar-toolbar h2 {
    font-size: 17px;
  }

  .calendar-toolbar p {
    font-size: 10px;
  }

  .calendar-grid {
    gap: 3px;
  }

  .weekday {
    font-size: 9px;
    padding: 6px 0;
  }

  .calendar-day {
    height: 46px;
    border-radius: 10px;
  }

  .calendar-day .day-number {
    font-size: 12px;
  }

  .selected-day-panel {
    padding: 5px 2px 0;
  }

  .selected-day-head {
    padding: 4px 0 12px;
  }

  .selected-day-head h2 {
    font-size: 16px;
  }

  .day-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding: 13px 0;
  }

  .day-stats div:last-child {
    grid-column: auto;
    background: transparent;
    border-left: 1px solid #eadfe3;
    padding: 0 0 0 9px;
  }

  .day-stats span {
    font-size: 9px;
  }

  .day-stats b {
    font-size: 15px;
    white-space: normal;
  }

  .day-stats small {
    font-size: 9px;
  }

  .selected-order-list {
    padding-top: 13px;
  }

  .list-title b {
    font-size: 12px;
  }

  .list-title span {
    font-size: 9px;
  }

  .selected-order-list .order-card {
    padding: 12px 2px;
  }

  .orders-page {
    gap: 13px;
  }

  .orders-toolbar {
    gap: 9px;
  }

  .orders-toolbar .search-box {
    min-height: 43px;
  }

  .orders-toolbar .search-box input {
    font-size: 12px;
  }

  .orders-filter-row {
    align-items: center;
  }

  .filter-chips {
    gap: 5px;
  }

  .filter-chips button {
    padding: 7px 9px;
    font-size: 9px;
  }

  .orders-sort {
    min-width: 88px;
    max-width: 100px;
    font-size: 10px;
  }

  .orders-results-meta {
    font-size: 10px;
  }

  .orders-results-meta b {
    font-size: 12px;
  }

  .orders-list {
    border-radius: 15px;
  }

  .orders-list .order-card {
    padding: 13px 13px;
  }

  .order-card-customer > b {
    font-size: 12px;
  }

  .order-card-customer > span {
    font-size: 9px;
  }

  .order-card-summary {
    padding: 8px 9px;
  }

  .order-card-summary small {
    font-size: 9px;
  }

  .order-card-summary b {
    font-size: 10px;
  }

  .order-card-menu,
  .order-card-bottom {
    font-size: 9px;
  }

  .menu-management-list {
    border-radius: 15px;
  }

  .menu-management-card {
    padding: 12px;
    flex-wrap: nowrap;
  }

  .menu-info {
    flex: 1 1 auto;
    flex-basis: auto;
  }

  .menu-info b {
    font-size: 12px;
  }

  .menu-management-card > strong {
    font-size: 11px;
  }

  .menu-edit-button {
    padding: 6px 8px;
    font-size: 9px;
  }

  .menu-toggle-button {
    font-size: 9px;
    margin-left: 0;
  }

  .reminder-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .reminder-panel {
    padding: 15px;
    border-radius: 16px;
  }

  .reminder-panel-head h2 {
    font-size: 14px;
  }

  .reminder-numbers b {
    font-size: 19px;
  }

  .report-filter {
    padding: 11px;
    border-radius: 15px;
    gap: 10px;
  }

  .filter-presets {
    display: flex;
    gap: 4px;
  }

  .filter-presets button {
    padding: 8px 9px;
    font-size: 9px;
  }

  .date-range-inputs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .date-range-inputs label {
    font-size: 9px;
    gap: 5px;
  }

  .date-range-inputs input {
    min-width: 0;
    width: 100%;
    padding: 8px;
    font-size: 10px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 15px;
  }

  .stat-card {
    padding: 12px;
    border-right: 1px solid #f0e7ea;
    border-bottom: 1px solid #f0e7ea;
  }

  .stat-card:nth-child(2) {
    border-right: 0;
  }

  .stat-card:nth-child(3),
  .stat-card:nth-child(4) {
    border-bottom: 0;
  }

  .stat-card > b {
    font-size: 16px;
  }

  .stat-card > small {
    font-size: 8px;
  }

  .content-card {
    padding: 14px;
    border-radius: 16px;
  }

  .section-heading-row h2 {
    font-size: 14px;
  }

  .section-heading-row p {
    font-size: 10px;
  }

  .mobile-nav {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 8px 5px max(8px, env(safe-area-inset-bottom));
    background: rgba(255,255,255,.97);
    border-top: 1px solid #eee4e8;
    box-shadow: 0 -5px 18px rgba(64,28,43,.07);
    backdrop-filter: blur(14px);
  }

  .mobile-nav button {
    min-height: 46px;
    gap: 4px;
    border-radius: 11px;
    font-size: 9px;
    color: #9a8990;
  }

  .mobile-nav button.active {
    color: var(--maroon);
    background: #f8eef2;
  }

  .mobile-nav button.active svg {
    stroke-width: 2.3;
  }

  .empty-state {
    padding: 26px 16px;
  }

  .empty-state b {
    font-size: 13px;
  }

  .empty-state p {
    font-size: 10px;
  }
}

@media (max-width: 430px) {
  .page-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .topbar {
    padding-left: 12px;
    padding-right: 12px;
  }

  .page-heading h1 {
    font-size: 21px;
  }

  .calendar-card {
    padding: 14px 11px;
  }

  .calendar-day {
    height: 42px;
  }

  .calendar-day .day-number {
    font-size: 11px;
  }

  .calendar-toolbar h2 {
    font-size: 16px;
  }

  .month-controls .icon-button {
    width: 31px;
    height: 31px;
  }

  .today-button {
    padding: 7px 8px;
    font-size: 9px;
  }

  .day-stats {
    gap: 6px;
  }

  .day-stats span {
    font-size: 8px;
  }

  .day-stats b {
    font-size: 13px;
  }

  .day-stats div:last-child {
    padding-left: 7px;
  }

  .filter-chips button {
    padding: 7px 8px;
    font-size: 8px;
  }

  .orders-sort {
    min-width: 80px;
    max-width: 88px;
    padding: 7px 6px;
    font-size: 9px;
  }

  .orders-list .order-card {
    padding: 12px 11px;
  }

  .order-card-summary {
    gap: 7px;
  }

  .order-card-summary b {
    font-size: 9px;
  }

  .menu-management-card {
    gap: 8px;
    padding: 11px 10px;
  }

  .menu-icon {
    width: 31px;
    height: 31px;
  }

  .menu-info b {
    font-size: 11px;
  }

  .menu-management-card > strong {
    font-size: 10px;
  }

  .menu-edit-button {
    font-size: 8px;
    padding: 6px;
  }

  .menu-toggle-button {
    font-size: 8px;
  }

  .report-filter {
    padding: 9px;
  }

  .filter-presets button {
    padding: 7px 6px;
    font-size: 8px;
  }

  .stat-card {
    padding: 10px;
  }

  .stat-icon {
    width: 27px;
    height: 27px;
  }

  .stat-card > span {
    font-size: 8px;
  }

  .stat-card > b {
    font-size: 14px;
  }

  .stat-card > small {
    font-size: 7px;
  }

  .content-card {
    padding: 12px;
  }

  .mobile-nav button {
    font-size: 8px;
  }
}

/* The order editor and note modal retain their existing working layout. */

/* =========================================================
   PAWON SEE T — SIMPLER HOME AND ORDER WORKFLOW
   ========================================================= */
.dashboard-page {
  gap: 18px;
}

.dashboard-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 26px;
  border: 1px solid #eee2e7;
  border-radius: 20px;
  background: linear-gradient(110deg, #fff 0%, #fff 68%, #fbf2f5 100%);
  box-shadow: 0 5px 20px rgba(65, 30, 44, .035);
}

.dashboard-welcome-copy h1 {
  color: #34272d;
  font-size: 27px;
  letter-spacing: -.7px;
  margin: 0 0 6px;
}

.dashboard-welcome-copy p {
  color: #8d7e84;
  font-size: 12px;
  margin: 0 0 12px;
}

.dashboard-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7b243f;
  font-size: 11px;
  font-weight: 700;
}

.dashboard-welcome-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

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

.dashboard-stat {
  min-width: 0;
  padding: 16px;
  border: 1px solid #eee5e8;
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
  box-shadow: 0 3px 13px rgba(64, 28, 43, .025);
}

.dashboard-stat-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #f8eff2;
  color: #7b243f;
  margin-bottom: 4px;
}

.dashboard-stat > span {
  color: #8f8087;
  font-size: 10px;
  font-weight: 600;
}

.dashboard-stat > b {
  max-width: 100%;
  color: #3d2b32;
  font-size: 20px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-stat > small {
  color: #a09298;
  font-size: 9px;
  line-height: 1.35;
}

.dashboard-stat-balance > b {
  color: #7b243f;
  font-size: 17px;
}

.dashboard-reminder-strip {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid #eee2e7;
  border-radius: 14px;
  background: #fff;
}

.dashboard-reminder-item {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.dashboard-reminder-item + .dashboard-reminder-item {
  border-left: 1px solid #f0e7ea;
  padding-left: 16px;
}

.dashboard-reminder-item > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9a7b87;
  font-size: 10px;
  font-weight: 700;
}

.dashboard-reminder-item > b {
  color: #493740;
  font-size: 12px;
}

.dashboard-reminder-strip > .text-button {
  white-space: nowrap;
}

.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
  gap: 16px;
  align-items: start;
}

.dashboard-panel {
  min-width: 0;
  padding: 18px;
  border: 1px solid #eee5e8;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 4px 16px rgba(64, 28, 43, .025);
}

.dashboard-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.dashboard-panel-heading .eyebrow {
  margin-bottom: 5px;
}

.dashboard-panel-heading h2 {
  margin: 0 0 4px;
  color: #413039;
  font-size: 16px;
}

.dashboard-panel-heading p {
  margin: 0;
  color: #97878e;
  font-size: 10px;
  line-height: 1.45;
}

.dashboard-panel-heading > .text-button {
  flex-shrink: 0;
  margin-top: 9px;
}

.dashboard-count {
  min-width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #f7eaf0;
  color: #7b243f;
  font-size: 11px;
  font-weight: 800;
}

.dashboard-order-list .order-card {
  margin: 0;
  padding: 13px 2px;
  border: 0;
  border-bottom: 1px solid #f0e7ea;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.dashboard-order-list .order-card:last-child {
  border-bottom: 0;
}

.dashboard-order-list .order-card:hover {
  transform: none;
  background: #fffafb;
  border-color: #f0e7ea;
  box-shadow: none;
}

.dashboard-order-list .order-card-summary {
  background: transparent;
  border-top: 1px solid #f5eef1;
  border-radius: 0;
  padding: 8px 0 0;
  margin-top: 8px;
}

.dashboard-order-list .order-card-menu {
  color: #8b7b82;
}

.dashboard-all-paid {
  min-height: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #32805a;
  text-align: center;
}

.dashboard-all-paid b {
  color: #4b3b42;
  font-size: 12px;
}

.dashboard-all-paid span {
  color: #988991;
  font-size: 10px;
}

.dashboard-panel-footer {
  display: flex;
  justify-content: flex-end;
  border-top: 1px solid #f1e9ec;
  padding-top: 9px;
}

.optional-order-details {
  border: 1px solid #eee4e8;
  border-radius: 12px;
  padding: 0 12px;
  background: #fffdfd;
}

.optional-order-details summary {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  list-style: none;
  color: #7b243f;
}

.optional-order-details summary::-webkit-details-marker {
  display: none;
}

.optional-order-details summary > span {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.optional-order-details summary b {
  color: #59434d;
  font-size: 12px;
}

.optional-order-details summary small {
  color: #9a8b91;
  font-size: 10px;
  font-weight: 400;
}

.optional-order-details[open] summary > svg {
  transform: rotate(90deg);
}

.optional-order-details > .form-grid,
.optional-order-details > label {
  margin: 0 0 12px;
}

.whatsapp-button {
  color: #23784d;
  border-color: #cde4d6;
}

.whatsapp-button:hover {
  background: #f1faf4;
  border-color: #a8d3b8;
}

@media (max-width: 1100px) {
  .dashboard-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .dashboard-page {
    gap: 14px;
  }

  .dashboard-welcome {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 18px;
    border-radius: 17px;
  }

  .dashboard-welcome-copy h1 {
    font-size: 22px;
  }

  .dashboard-welcome-copy p {
    font-size: 11px;
  }

  .dashboard-welcome-actions {
    width: 100%;
  }

  .dashboard-welcome-actions .btn {
    flex: 1;
    padding: 9px 10px;
    font-size: 10px;
  }

  .dashboard-stats {
    gap: 8px;
  }

  .dashboard-stat {
    padding: 12px;
    border-radius: 13px;
  }

  .dashboard-stat > b {
    font-size: 17px;
  }

  .dashboard-stat-balance > b {
    font-size: 15px;
  }

  .dashboard-reminder-strip {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px;
  }

  .dashboard-reminder-item + .dashboard-reminder-item {
    padding-left: 10px;
  }

  .dashboard-reminder-strip > .text-button {
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-top: 1px solid #f0e7ea;
    padding: 9px 0 0;
  }

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

  .dashboard-panel {
    padding: 14px;
    border-radius: 15px;
  }

  .dashboard-panel-heading h2 {
    font-size: 15px;
  }
}

@media (max-width: 430px) {
  .dashboard-welcome-actions {
    flex-direction: column;
  }

  .dashboard-welcome-actions .btn {
    width: 100%;
  }

  .dashboard-stat > span {
    font-size: 9px;
  }

  .dashboard-stat > b {
    font-size: 15px;
  }

  .dashboard-stat-balance > b {
    font-size: 13px;
  }

  .dashboard-reminder-item > b {
    font-size: 10px;
  }

  .dashboard-panel-heading {
    gap: 6px;
  }

  .dashboard-panel-heading > .text-button {
    font-size: 10px;
    padding: 5px 2px;
  }

  .detail-actions .btn {
    min-width: calc(50% - 5px);
  }
}

.order-form-intro {
  margin: -4px 0 -5px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #fbf5f7;
  color: #846d77;
  font-size: 11px;
}

.mobile-signout-button {
  display: none;
}

@media (max-width: 820px) {
  .mobile-signout-button {
    display: inline-flex;
    align-self: flex-start;
    color: #9b455d;
    background: #fbf3f6;
  }
}

/* =========================================================
   PAWON SEE T — POS WORKSPACE (v32)
   Fokus pada transaksi, pesanan, dan alur input bertahap.
   ========================================================= */
:root {
  --pos-bg: #f5f3f2;
  --pos-card: #ffffff;
  --pos-ink: #30272b;
  --pos-muted: #8d8185;
  --pos-line: #eee7e8;
  --pos-accent: #7b243f;
  --pos-accent-soft: #f8edf1;
}

body,
.app-shell,
.main-area {
  background: var(--pos-bg);
}

.sidebar {
  background: #fff;
  border-right-color: #eee7e8;
}

.sidebar-nav button.active,
.sidebar-bottom > button.active {
  background: #f8edf1;
  color: var(--pos-accent);
}

.topbar {
  height: 68px;
  padding: 0 28px;
  background: rgba(255,255,255,.97);
  border-bottom-color: var(--pos-line);
  box-shadow: 0 2px 10px rgba(45, 29, 35, .025);
}

.page-content {
  max-width: 1180px;
  padding: 25px 28px 50px;
}

.page-stack {
  gap: 18px;
}

/* Kasir home */
.pos-home {
  max-width: 920px;
  gap: 15px;
}

.pos-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 2px 1px 3px;
}

.pos-eyebrow {
  display: block;
  margin-bottom: 4px;
  color: #a27b88;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.pos-heading h1 {
  margin: 0 0 3px;
  color: var(--pos-ink);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.5px;
}

.pos-heading p {
  margin: 0;
  color: var(--pos-muted);
  font-size: 11px;
}

.pos-schedule-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid #eadde1;
  border-radius: 11px;
  background: #fff;
  color: var(--pos-accent);
  font-size: 11px;
  font-weight: 700;
}

.pos-schedule-link:hover {
  background: var(--pos-accent-soft);
}

.pos-primary-action {
  width: 100%;
  min-height: 76px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 14px 17px;
  border: 0;
  border-radius: 16px;
  background: var(--pos-accent);
  color: #fff;
  text-align: left;
  box-shadow: 0 7px 18px rgba(123, 36, 63, .13);
  transition: transform .15s ease, background .15s ease;
}

.pos-primary-action:hover {
  background: #681d35;
  transform: translateY(-1px);
}

.pos-primary-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 13px;
  background: rgba(255,255,255,.12);
}

.pos-primary-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.pos-primary-copy b {
  font-size: 14px;
  letter-spacing: -.1px;
}

.pos-primary-copy small {
  color: rgba(255,255,255,.76);
  font-size: 10px;
}

.pos-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--pos-line);
  border-radius: 15px;
  background: #fff;
}

.pos-summary-strip > div,
.pos-summary-strip > button {
  min-width: 0;
  min-height: 67px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 5px;
  padding: 11px 15px;
  border: 0;
  background: #fff;
  text-align: left;
}

.pos-summary-strip > * + * {
  border-left: 1px solid var(--pos-line);
}

.pos-summary-strip span {
  color: var(--pos-muted);
  font-size: 10px;
  font-weight: 600;
}

.pos-summary-strip b {
  display: flex;
  align-items: center;
  gap: 3px;
  color: var(--pos-ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.15;
}

.pos-summary-strip > button b {
  color: var(--pos-accent);
}

.pos-order-section {
  overflow: hidden;
  border: 1px solid var(--pos-line);
  border-radius: 16px;
  background: #fff;
}

.pos-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 17px 11px;
}

.pos-section-heading h2 {
  margin: 0 0 4px;
  color: var(--pos-ink);
  font-size: 15px;
  letter-spacing: -.2px;
}

.pos-section-heading p {
  margin: 0;
  color: var(--pos-muted);
  font-size: 10px;
}

.pos-section-heading > button {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  flex: 0 0 auto;
  padding: 6px 0 6px 6px;
  border: 0;
  background: transparent;
  color: var(--pos-accent);
  font-size: 10px;
  font-weight: 800;
}

.pos-filter-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding: 0 17px 12px;
  scrollbar-width: none;
}

.pos-filter-tabs::-webkit-scrollbar {
  display: none;
}

.pos-filter-tabs button {
  min-height: 31px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid #eee7e8;
  border-radius: 100px;
  background: #fff;
  color: #75696d;
  font-size: 10px;
  font-weight: 700;
}

.pos-filter-tabs button.active {
  border-color: var(--pos-accent);
  background: var(--pos-accent);
  color: #fff;
}

.pos-filter-tabs button span {
  font-size: 9px;
  opacity: .8;
}

.pos-order-list {
  border-top: 1px solid var(--pos-line);
}

.pos-order-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 0;
  border-bottom: 1px solid #f1ebec;
  border-radius: 0;
  background: #fff;
  color: var(--pos-ink);
  text-align: left;
  transition: background .12s ease;
}

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

.pos-order-row:hover {
  background: #fffafb;
}

.pos-order-avatar {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #f8edf1;
  color: var(--pos-accent);
  font-size: 14px;
  font-weight: 800;
}

.pos-order-content {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 5px;
}

.pos-order-title,
.pos-order-bottom {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pos-order-title > b {
  overflow: hidden;
  color: #382d31;
  font-size: 12px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-order-title .status-pill {
  flex: 0 0 auto;
  padding: 4px 7px;
  font-size: 8px;
}

.pos-order-meta {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  color: #93878b;
  font-size: 9px;
}

.pos-order-meta svg {
  flex: 0 0 auto;
  color: #a17b88;
}

.pos-order-meta i {
  font-style: normal;
  color: #c3b6bb;
}

.pos-order-bottom > span {
  min-width: 0;
  overflow: hidden;
  color: #9b9094;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-order-bottom > b {
  flex: 0 0 auto;
  color: #4b3b41;
  font-size: 10px;
  font-weight: 800;
}

.pos-order-chevron {
  flex: 0 0 auto;
  color: #b8aab0;
}

.pos-empty-state {
  min-height: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 24px 16px;
  text-align: center;
}

.pos-empty-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  margin-bottom: 2px;
  border-radius: 14px;
  background: #f8edf1;
  color: var(--pos-accent);
}

.pos-empty-state b {
  color: #514349;
  font-size: 12px;
}

.pos-empty-state p {
  margin: 0;
  color: #9a8f93;
  font-size: 10px;
}

.pos-empty-state > button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 4px;
  padding: 8px 11px;
  border: 1px solid #eadde1;
  border-radius: 9px;
  background: #fff;
  color: var(--pos-accent);
  font-size: 10px;
  font-weight: 800;
}

.pos-payment-reminder {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #f0e2d7;
  border-radius: 14px;
  background: #fffaf5;
  color: #8b5e30;
  text-align: left;
}

.pos-payment-icon {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 11px;
  background: #f8eee3;
}

.pos-payment-reminder > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.pos-payment-reminder b {
  color: #6b4a30;
  font-size: 10px;
}

.pos-payment-reminder small {
  color: #a18a76;
  font-size: 9px;
}

/* POS-style orders page */
.orders-page {
  gap: 13px;
}

.orders-page .page-heading {
  margin-bottom: 0;
}

.orders-page .orders-toolbar {
  padding: 12px;
  border: 1px solid var(--pos-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: none;
}

.orders-page .orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--pos-line);
  border-radius: 15px;
  background: #fff;
}

.orders-page .orders-list .pos-order-row {
  border-bottom: 1px solid #f1ebec;
}

.orders-page .orders-list .pos-order-row:last-child {
  border-bottom: 0;
}

.orders-page .orders-list .empty-state {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Other menu */
.more-page {
  max-width: 760px;
}

.more-page .page-heading {
  margin-bottom: 0;
}

.more-menu-list {
  overflow: hidden;
  border: 1px solid var(--pos-line);
  border-radius: 15px;
  background: #fff;
}

.more-menu-item {
  width: 100%;
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 15px;
  border: 0;
  border-bottom: 1px solid #f1ebec;
  background: #fff;
  color: var(--pos-ink);
  text-align: left;
}

.more-menu-item:last-child {
  border-bottom: 0;
}

.more-menu-item:hover {
  background: #fffafb;
}

.more-menu-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #f8edf1;
  color: var(--pos-accent);
}

.more-menu-item > span:nth-child(2) {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.more-menu-item b {
  color: #493a40;
  font-size: 12px;
}

.more-menu-item small {
  color: #9b9094;
  font-size: 10px;
}

.more-menu-item > svg {
  color: #b5a7ad;
}

.more-signout {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  align-self: flex-start;
  padding: 0 14px;
  border: 1px solid #f0dfe3;
  border-radius: 11px;
  background: #fff;
  color: #a0445c;
  font-size: 11px;
  font-weight: 700;
}

/* Clear, short order-entry wizard */
.order-modal {
  width: min(100%, 720px);
}

.order-form {
  gap: 14px;
}

.pos-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 2px 0 3px;
}

.pos-step {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  color: #a99da1;
}

.pos-step > span {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #e9dfe2;
  border-radius: 50%;
  background: #fff;
  color: #9b8b91;
  font-size: 10px;
  font-weight: 800;
}

.pos-step > b {
  overflow: hidden;
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pos-step.current {
  color: var(--pos-accent);
}

.pos-step.current > span,
.pos-step.done > span {
  border-color: var(--pos-accent);
  background: var(--pos-accent);
  color: #fff;
}

.pos-step.done > b {
  color: #6f8b78;
}

.order-form-intro {
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8f4f5;
  color: #806e75;
  font-size: 10px;
  line-height: 1.45;
}

.order-form .form-section {
  gap: 14px;
}

.order-form .form-section > h3 {
  margin: 0;
  color: #43343a;
  font-size: 14px;
}

.order-form .section-heading-row h3 {
  margin-bottom: 4px;
}

.order-form .section-heading-row p {
  margin: 0;
  color: #95878c;
  font-size: 10px;
}

.order-form .group-editor {
  padding: 13px;
  border: 1px solid #eee5e8;
  border-radius: 13px;
  background: #fff;
}

.order-form .menu-choice {
  border-radius: 10px;
}

.order-form .pos-form-footer {
  position: sticky;
  bottom: -16px;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 2px -16px -16px;
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  border-top: 1px solid #eee7e8;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
}

.pos-form-footer .btn {
  min-width: 112px;
  min-height: 42px;
}

.pos-form-footer .btn-primary {
  margin-left: auto;
}

.order-total-preview {
  border: 1px solid #eadde1;
  border-radius: 13px;
  background: #fcf8f9;
}

/* Mobile first refinements */
@media (max-width: 820px) {
  .main-area {
    padding-bottom: 74px;
  }

  .topbar {
    height: 58px;
    padding: 0 14px;
  }

  .mobile-brand {
    display: block;
    color: var(--pos-accent);
    font-size: 18px;
  }

  .topbar-actions {
    gap: 7px;
  }

  .topbar-actions .icon-button {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .top-add {
    min-height: 34px;
    padding: 7px 9px;
    font-size: 10px;
  }

  .page-content {
    padding: 17px 14px 28px;
  }

  .mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 4px max(7px, env(safe-area-inset-bottom));
    border-top-color: #eee7e8;
    box-shadow: 0 -5px 18px rgba(48, 30, 37, .06);
  }

  .mobile-nav button {
    min-height: 48px;
    gap: 3px;
    font-size: 9px;
  }

  .mobile-nav button.active {
    color: var(--pos-accent);
  }

  .mobile-nav button.active svg {
    stroke-width: 2.5;
  }

  .pos-home {
    gap: 12px;
  }

  .pos-heading h1 {
    font-size: 23px;
  }

  .pos-primary-action {
    min-height: 70px;
    border-radius: 14px;
    padding: 12px 14px;
  }

  .pos-primary-icon {
    width: 39px;
    height: 39px;
  }

  .pos-summary-strip > div,
  .pos-summary-strip > button {
    min-height: 64px;
    padding: 10px 11px;
  }

  .pos-summary-strip span {
    font-size: 9px;
  }

  .pos-summary-strip b {
    font-size: 14px;
  }

  .pos-section-heading {
    padding: 15px 13px 10px;
  }

  .pos-filter-tabs {
    padding: 0 13px 10px;
  }

  .pos-order-row {
    gap: 9px;
    padding: 12px 12px;
  }

  .pos-order-avatar {
    width: 35px;
    height: 35px;
    border-radius: 11px;
  }

  .pos-order-title > b {
    font-size: 11px;
  }

  .pos-order-meta {
    font-size: 8.5px;
  }

  .pos-order-bottom > span {
    max-width: 60%;
    font-size: 8.5px;
  }

  .pos-order-bottom > b {
    font-size: 9px;
  }

  .orders-page .page-heading h1,
  .more-page .page-heading h1 {
    font-size: 22px;
  }

  .orders-page .orders-toolbar {
    padding: 10px;
  }

  .orders-page .orders-filter-row {
    gap: 6px;
  }

  .orders-page .filter-chips {
    gap: 4px;
  }

  .orders-page .filter-chips button {
    padding: 7px 8px;
    font-size: 9px;
  }

  .orders-page .orders-sort {
    min-width: 82px;
    max-width: 95px;
  }

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

  .order-modal {
    width: 100%;
    max-height: calc(100dvh - 8px);
    border-radius: 18px 18px 0 0;
  }

  .order-modal .modal-header {
    padding: 14px 16px;
  }

  .order-modal .modal-body.order-form {
    max-height: calc(100dvh - 70px);
    padding: 14px 16px 16px;
    gap: 13px;
  }

  .pos-stepper {
    gap: 5px;
  }

  .pos-step {
    gap: 5px;
  }

  .pos-step > span {
    width: 23px;
    height: 23px;
    font-size: 9px;
  }

  .pos-step > b {
    font-size: 9px;
  }

  .pos-form-footer {
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

@media (max-width: 430px) {
  .page-content {
    padding-left: 11px;
    padding-right: 11px;
  }

  .pos-heading h1 {
    font-size: 22px;
  }

  .pos-summary-strip > div,
  .pos-summary-strip > button {
    padding-left: 8px;
    padding-right: 8px;
  }

  .pos-summary-strip span {
    font-size: 8px;
  }

  .pos-summary-strip b {
    font-size: 12px;
  }

  .pos-order-row {
    padding: 11px 10px;
  }

  .pos-order-title .status-pill {
    padding: 3px 6px;
    font-size: 7px;
  }

  .pos-order-bottom > span {
    max-width: 55%;
  }

  .more-menu-item {
    min-height: 66px;
    padding: 10px 12px;
  }
}


/* Final review step: explicit confirmation before writing to Supabase. */
.order-review-section {
  gap: 10px;
}

.order-review-heading h3 {
  margin: 0 0 4px;
  color: #43343a;
  font-size: 14px;
}

.order-review-heading p {
  margin: 0;
  color: #8b7b82;
  font-size: 10px;
  line-height: 1.5;
}

.order-review-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 12px;
  border: 1px solid #eee3e7;
  border-radius: 12px;
  background: #fff;
}

.order-review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid #f1e9ec;
  color: #493840;
  font-size: 11px;
}

.order-review-card-head .text-button {
  color: var(--pos-accent);
  font-size: 10px;
  font-weight: 800;
}

.order-review-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  color: #8a7b81;
  font-size: 10px;
  line-height: 1.45;
}

.order-review-line > b,
.order-review-line > strong {
  max-width: 68%;
  color: #493840;
  text-align: right;
  overflow-wrap: anywhere;
}

.order-review-group + .order-review-group {
  padding-top: 9px;
  border-top: 1px dashed #eee4e8;
}

.order-review-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.order-review-menu span {
  padding: 5px 7px;
  border-radius: 7px;
  background: #faf5f7;
  color: #725c66;
  font-size: 9px;
  line-height: 1.35;
}

.order-review-quantity {
  padding-top: 8px;
  border-top: 1px solid #f1e9ec;
}

.order-review-note {
  padding-top: 7px;
  border-top: 1px solid #f1e9ec;
  color: #8a7b81;
  font-size: 10px;
}

.order-review-note p {
  margin: 4px 0 0;
  color: #493840;
  line-height: 1.45;
  white-space: pre-wrap;
}

.order-review-total {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px;
  border: 1px solid #eadde1;
  border-radius: 12px;
  background: #fcf7f9;
}

.order-review-total > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #806d75;
  font-size: 10px;
}

.order-review-total > div b {
  color: #493840;
}

.order-review-total .order-review-grand-total {
  padding-top: 9px;
  border-top: 1px solid #eadde1;
  color: #493840;
  font-weight: 800;
}

.order-review-grand-total strong {
  color: var(--pos-accent);
  font-size: 20px;
}

.order-review-total small {
  color: #8b7b82;
  font-size: 9px;
  line-height: 1.45;
}

@media (max-width: 430px) {
  .pos-stepper { gap: 3px; }
  .pos-step { gap: 4px; }
  .pos-step > b { font-size: 8px; }
  .order-review-card { padding: 10px; }
  .order-review-grand-total strong { font-size: 18px; }
}


/* v35: keep the order-detail modal inside the visible Android browser viewport.
   100vh can include the area behind the expanded browser toolbar; 100dvh follows
   the currently visible viewport so the customer name/header is not clipped. */
@media (max-width: 820px) {
  .detail-modal-backdrop {
    padding: 8px 8px max(8px, env(safe-area-inset-bottom)) !important;
    align-items: flex-end !important;
    overflow: hidden !important;
  }

  .detail-modal {
    max-height: calc(100dvh - 16px) !important;
    min-height: 0 !important;
  }

  .detail-modal > .modal-header {
    flex: 0 0 auto !important;
  }

  .detail-modal > .detail-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
}

/* =========================================================
   PAWON SEE T v36 - ONE CONSISTENT POS DESIGN SYSTEM
   The order-entry wizard is intentionally left untouched.
   ========================================================= */
:root {
  --pos-bg: #f7f4f5;
  --pos-card: #ffffff;
  --pos-ink: #392d33;
  --pos-muted: #8f8187;
  --pos-line: #eee4e8;
  --pos-accent: #7b243f;
  --pos-accent-dark: #641b34;
  --pos-accent-soft: #f8edf1;
  --pos-radius: 16px;
}

body,
.app-shell,
.main-area {
  background: var(--pos-bg);
  color: var(--pos-ink);
}

.sidebar {
  background: #fff;
  border-right: 1px solid var(--pos-line);
}

.sidebar-brand {
  border-bottom-color: var(--pos-line);
}

.sidebar-nav button {
  min-height: 44px;
  border-radius: 11px;
  color: #766970;
}

.sidebar-nav button.active,
.sidebar-bottom > button.active {
  background: var(--pos-accent-soft);
  color: var(--pos-accent);
}

.sidebar-nav button.active::before {
  background: var(--pos-accent);
}

.topbar {
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--pos-line);
  box-shadow: 0 2px 10px rgba(48, 30, 37, .035);
}

.topbar-date b {
  color: var(--pos-ink);
}

.mobile-brand {
  color: var(--pos-accent);
}

.page-content {
  max-width: 1220px;
  padding: 24px 26px 48px;
}

.page-stack {
  gap: 16px;
}

.page-heading {
  align-items: center;
  gap: 14px;
  margin: 0 0 2px;
}

.page-heading > div {
  min-width: 0;
}

.page-heading .eyebrow,
.pos-heading .pos-eyebrow {
  color: #a47787;
  font-size: 9px;
  letter-spacing: 1.35px;
  margin-bottom: 6px;
}

.page-heading h1,
.pos-heading h1 {
  color: var(--pos-ink);
  font-size: 24px;
  line-height: 1.18;
  letter-spacing: -.55px;
  margin: 0 0 5px;
}

.page-heading p,
.pos-heading p {
  color: var(--pos-muted);
  font-size: 11px;
  line-height: 1.45;
  margin: 0;
}

.page-content .btn {
  min-height: 39px;
  border-radius: 11px;
  font-size: 11px;
  font-weight: 750;
}

.page-content .btn-primary,
.topbar .btn-primary {
  background: var(--pos-accent);
  color: #fff;
  box-shadow: 0 4px 11px rgba(123, 36, 63, .12);
}

.page-content .btn-primary:hover,
.topbar .btn-primary:hover {
  background: var(--pos-accent-dark);
}

.page-content .btn-outline {
  border-color: #e7d8de;
  background: #fff;
  color: var(--pos-accent);
}

.page-content .icon-button,
.topbar .icon-button {
  border-color: var(--pos-line);
  border-radius: 11px;
  background: #fff;
  color: var(--pos-accent);
}

.section-heading-row h2 {
  color: #473740;
  font-size: 14px;
  letter-spacing: -.15px;
}

.section-heading-row p {
  color: var(--pos-muted);
  font-size: 10px;
  line-height: 1.45;
}

/* Shared page surfaces: calendar, lists, reports, settings and reminders. */
.calendar-card,
.selected-day-panel,
.orders-toolbar,
.orders-list,
.menu-management-list,
.reminder-panel,
.report-filter,
.content-card,
.more-menu-list {
  border: 1px solid var(--pos-line);
  border-radius: var(--pos-radius);
  background: var(--pos-card);
  box-shadow: 0 4px 16px rgba(55, 30, 40, .035);
}

.calendar-layout {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr);
  gap: 16px;
}

.calendar-card {
  padding: 18px;
}

.calendar-toolbar h2 {
  color: #43343a;
  font-size: 17px;
}

.calendar-toolbar p {
  color: var(--pos-muted);
}

.calendar-day {
  border-radius: 11px;
  color: #5c4b52;
}

.calendar-day.selected {
  background: var(--pos-accent);
  box-shadow: 0 4px 12px rgba(123, 36, 63, .16);
}

.calendar-day.is-today:not(.selected) {
  border-color: #c997a8;
  background: #fff9fb;
}

.selected-day-panel {
  position: static;
  padding: 16px;
}

.selected-day-head {
  padding: 0 0 13px;
  border-bottom: 1px solid var(--pos-line);
}

.selected-day-head h2 {
  color: #43343a;
  font-size: 15px;
}

.add-circle {
  width: 36px;
  height: 36px;
  background: var(--pos-accent);
}

.day-stats {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  padding: 13px 0 9px;
  border: 0;
}

.day-stats div,
.day-stats div:last-child {
  min-width: 0;
  grid-column: auto;
  padding: 9px 8px;
  border: 0;
  border-radius: 10px;
  background: #faf6f8;
}

.day-stats span {
  color: #93848a;
  font-size: 9px;
}

.day-stats b {
  color: #43343a;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.day-stats small {
  font-size: 9px;
}

.selected-order-list {
  padding-top: 7px;
}

.selected-order-list .list-title b {
  color: #493740;
  font-size: 12px;
}

.selected-order-list .order-card {
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid #f0e8eb;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.selected-order-list .order-card:last-child {
  border-bottom: 0;
}

.selected-order-list .order-card:hover {
  transform: none;
  box-shadow: none;
  background: #fffafd;
}

/* Orders page follows the same row, status and search treatment as Kasir. */
.orders-page {
  gap: 14px;
}

.orders-page .page-heading {
  margin-bottom: 0;
}

.orders-page .orders-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.orders-page .search-box {
  min-height: 43px;
  padding: 0 12px;
  border: 1px solid var(--pos-line);
  border-radius: 11px;
  background: #fff;
}

.orders-page .search-box input {
  min-width: 0;
  font-size: 11px;
}

.orders-page .orders-filter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.orders-page .filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.orders-page .filter-chips button {
  min-height: 30px;
  padding: 6px 10px;
  border: 1px solid #eee5e8;
  border-radius: 9px;
  background: #faf7f8;
  color: #817279;
  font-size: 9px;
  font-weight: 700;
}

.orders-page .filter-chips button.active {
  border-color: var(--pos-accent);
  background: var(--pos-accent);
  color: #fff;
}

.orders-page .orders-sort {
  min-height: 32px;
  width: auto;
  min-width: 100px;
  padding: 6px 9px;
  border-color: var(--pos-line);
  border-radius: 9px;
  color: #6d5b63;
  font-size: 10px;
}

.orders-results-meta {
  color: var(--pos-muted);
  font-size: 10px;
}

.orders-results-meta b {
  color: #493740;
  font-size: 12px;
}

.orders-page .orders-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.orders-page .orders-list .pos-order-row {
  padding: 13px 14px;
  border-bottom: 1px solid #f0e8eb;
}

.orders-page .orders-list .pos-order-row:last-child {
  border-bottom: 0;
}

.orders-page .orders-list .empty-state {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

/* Menu rows use the same white surface and soft maroon action language. */
.menu-page {
  gap: 14px;
}

.menu-page > .section-heading-row {
  padding: 13px 14px;
  border: 1px solid var(--pos-line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(55, 30, 40, .025);
}

.menu-management-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
}

.menu-management-card {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid #f0e8eb;
  border-radius: 0;
  background: #fff;
}

.menu-management-card:last-child {
  border-bottom: 0;
}

.menu-management-card.inactive {
  background: #fcfafb;
}

.menu-icon {
  width: 35px;
  height: 35px;
  border-radius: 10px;
  background: var(--pos-accent-soft);
  color: var(--pos-accent);
}

.menu-info {
  min-width: 0;
  gap: 3px;
}

.menu-info b {
  color: #473740;
  font-size: 11px;
}

.menu-info small {
  color: #9a8b91;
  font-size: 9px;
}

.menu-management-card > strong {
  color: var(--pos-accent);
  font-size: 11px;
}

.menu-edit-button {
  min-height: 31px !important;
  padding: 6px 9px !important;
  border-radius: 9px !important;
}

.menu-toggle-button {
  padding: 6px 4px;
  color: #9a6578;
  font-size: 9px;
  white-space: nowrap;
}

/* Reminder panels share the same card rhythm; color only signals the type. */
.reminders-page {
  gap: 14px;
}

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

.reminder-panel {
  min-width: 0;
  padding: 15px;
}

.reminder-tomorrow,
.reminder-pending {
  border-top: 1px solid var(--pos-line);
}

.reminder-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pos-accent-soft);
  color: var(--pos-accent);
}

.reminder-pending .reminder-icon {
  background: #fbf3e7;
  color: #9a6a2e;
}

.reminder-panel-head h2 {
  color: #44343a;
  font-size: 14px;
}

.reminder-panel-head p {
  color: var(--pos-muted);
  font-size: 10px;
}

.reminder-numbers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0;
  margin: 0 0 4px;
  border: 0;
}

.reminder-numbers > div {
  padding: 10px;
  border-radius: 10px;
  background: #faf6f8;
}

.reminder-numbers b {
  color: #493740;
  font-size: 19px;
}

.reminder-numbers span {
  color: var(--pos-muted);
  font-size: 9px;
}

.reminder-panel .order-card {
  padding: 11px 2px;
}

.info-banner {
  border: 1px solid #eadde2;
  border-radius: 12px;
  background: #f9f1f4;
  color: var(--pos-accent);
}

.info-banner p {
  color: #765e68;
  font-size: 10px;
}

/* Reports: readable filters and separate summary tiles, not compressed blocks. */
.report-page {
  gap: 14px;
}

.report-page .report-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px;
}

.report-page .filter-presets {
  gap: 5px;
}

.report-page .filter-presets button {
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #faf6f8;
  color: #7e6d74;
  font-size: 9px;
}

.report-page .filter-presets button.active {
  border-color: var(--pos-accent);
  background: var(--pos-accent);
  color: #fff;
}

.report-page .date-range-inputs {
  gap: 8px;
  margin-left: auto;
}

.report-page .date-range-inputs label {
  gap: 4px;
  color: #8a7a81;
  font-size: 9px;
}

.report-page .date-range-inputs input {
  min-width: 125px;
  padding: 7px 8px;
  border-color: var(--pos-line);
  border-radius: 9px;
  font-size: 10px;
}

.report-page .report-period {
  color: var(--pos-muted);
  font-size: 10px;
}

.report-page .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.report-page .stat-card {
  min-width: 0;
  padding: 13px;
  gap: 5px;
  border: 1px solid var(--pos-line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(55, 30, 40, .025);
}

.report-page .stat-card:last-child {
  border-right: 1px solid var(--pos-line);
}

.report-page .stat-icon {
  width: 31px;
  height: 31px;
  margin-bottom: 2px;
  border-radius: 9px;
  background: var(--pos-accent-soft);
  color: var(--pos-accent);
}

.report-page .stat-card > span {
  color: var(--pos-muted);
  font-size: 9px;
}

.report-page .stat-card > b {
  color: #43343a;
  font-size: 16px;
  line-height: 1.25;
}

.report-page .stat-card > small {
  color: #9b8d92;
  font-size: 8px;
  line-height: 1.35;
}

.report-page .stat-accent {
  background: #fff;
}

.report-page .stat-accent > b {
  color: var(--pos-accent);
}

.report-page .content-card {
  padding: 15px;
}

.report-page .report-table-wrap {
  overflow-x: auto;
  border: 1px solid #f0e8eb;
  border-radius: 11px;
}

.report-page .report-table {
  margin: 0;
}

.report-page .report-table th {
  background: #faf5f7;
  color: #8c737d;
}

.report-page .report-table td {
  color: #55434b;
}

.report-page .report-footnote {
  color: #978990;
  font-size: 9px;
  line-height: 1.45;
}

/* Settings fields echo the form controls used in the order wizard. */
.settings-page {
  gap: 14px;
}

.settings-layout {
  gap: 12px;
}

.settings-card {
  min-width: 0;
  padding: 16px;
  gap: 14px;
  border: 1px solid var(--pos-line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(55, 30, 40, .025);
}

.settings-card .card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 11px;
  border-bottom: 1px solid #f1e9ec;
}

.settings-card .card-title-row > svg {
  flex: 0 0 auto;
  color: var(--pos-accent);
}

.settings-card .card-title-row h2 {
  color: #43343a;
  font-size: 14px;
}

.settings-card .card-title-row p {
  color: var(--pos-muted);
  font-size: 9px;
  line-height: 1.4;
}

.settings-card .form-stack {
  gap: 11px;
}

.settings-card label {
  gap: 5px;
  color: #65545b;
  font-size: 10px;
}

.settings-card input,
.settings-card select,
.settings-card textarea {
  min-height: 39px;
  padding: 9px 10px;
  border-color: #e9dfe3;
  border-radius: 10px;
  background: #fff;
  color: #43343a;
  font-size: 11px;
}

.settings-toggle {
  align-items: center;
  padding: 10px 11px;
  border: 1px solid #f0e7ea;
  border-radius: 10px;
  background: #fcf9fa;
}

.settings-toggle b,
.push-setup b {
  color: #493740;
  font-size: 10px;
}

.settings-toggle small,
.push-setup small {
  color: var(--pos-muted);
  font-size: 9px;
  line-height: 1.4;
}

.settings-toggle input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  accent-color: var(--pos-accent);
}

.push-setup {
  padding: 11px;
  border: 1px solid #eadde2;
  border-radius: 11px;
  background: #faf5f7;
}

.push-setup .btn {
  flex: 0 0 auto;
  min-height: 34px;
  font-size: 9px;
}

.settings-save {
  justify-content: flex-start;
}

.settings-save .btn {
  min-width: 170px;
}

.mobile-signout-button {
  align-self: flex-start;
  border-radius: 10px;
}

/* More page uses the same list treatment as Pesanan and Menu. */
.more-page {
  gap: 14px;
}

.more-menu-list {
  overflow: hidden;
}

.more-menu-item {
  min-height: 68px;
  padding: 12px 14px;
  border-bottom-color: #f0e8eb;
  background: #fff;
}

.more-menu-item:hover {
  background: #fffafd;
}

.more-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--pos-accent-soft);
  color: var(--pos-accent);
}

.more-menu-item b {
  color: #493740;
  font-size: 11px;
}

.more-menu-item small {
  color: var(--pos-muted);
  font-size: 9px;
}

.more-signout {
  min-height: 39px;
  border-color: #ecdde2;
  border-radius: 10px;
  background: #fff;
  color: #9b536a;
}

/* Bottom navigation matches the same maroon accent used in the order wizard. */
.mobile-nav {
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--pos-line);
  box-shadow: 0 -5px 18px rgba(48, 30, 37, .055);
  backdrop-filter: blur(14px);
}

.mobile-nav button {
  color: #95868c;
  border-radius: 11px;
  font-weight: 700;
}

.mobile-nav button.active {
  background: var(--pos-accent-soft);
  color: var(--pos-accent);
}

.mobile-nav button.active svg {
  stroke-width: 2.4;
}

.global-error {
  margin-left: auto;
  margin-right: auto;
  max-width: 1168px;
}

.toast {
  border-radius: 12px;
  background: #3e5146;
}

@media (max-width: 820px) {
  .page-content {
    padding: 16px 14px 28px;
  }

  .page-stack {
    gap: 13px;
  }

  .page-heading {
    align-items: center;
    gap: 9px;
  }

  .page-heading h1,
  .pos-heading h1 {
    font-size: 21px;
  }

  .page-heading p,
  .pos-heading p {
    font-size: 10px;
  }

  .page-content .btn {
    min-height: 36px;
    padding: 8px 10px;
    font-size: 9px;
  }

  .calendar-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  .calendar-card {
    padding: 14px;
  }

  .calendar-day {
    height: 45px;
    border-radius: 9px;
  }

  .selected-day-panel {
    padding: 13px;
  }

  .day-stats {
    gap: 6px;
  }

  .day-stats div,
  .day-stats div:last-child {
    padding: 8px 7px;
  }

  .day-stats span {
    font-size: 8px;
  }

  .day-stats b {
    font-size: 12px;
  }

  .orders-page .orders-toolbar {
    padding: 10px;
  }

  .orders-page .orders-filter-row {
    align-items: flex-start;
  }

  .orders-page .filter-chips {
    flex: 1 1 auto;
    min-width: 0;
  }

  .orders-page .filter-chips button {
    min-height: 29px;
    padding: 6px 8px;
    font-size: 8px;
  }

  .orders-page .orders-sort {
    min-width: 88px;
    max-width: 100px;
  }

  .menu-page > .section-heading-row {
    align-items: center;
    padding: 11px;
  }

  .menu-management-card {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    grid-template-rows: auto auto;
    gap: 5px 9px;
    padding: 11px;
  }

  .menu-icon {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .menu-info {
    grid-column: 2;
    grid-row: 1;
  }

  .menu-management-card > strong {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
  }

  .menu-edit-button {
    grid-column: 2;
    grid-row: 2;
    justify-self: start;
  }

  .menu-toggle-button {
    grid-column: 3;
    grid-row: 2;
    justify-self: end;
  }

  .reminder-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 11px;
  }

  .reminder-panel {
    padding: 13px;
  }

  .report-page .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .report-page .stat-card {
    padding: 11px;
    border-radius: 12px;
  }

  .report-page .stat-card > b {
    font-size: 15px;
  }

  .report-page .report-filter {
    gap: 9px;
    padding: 10px;
  }

  .report-page .filter-presets {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .report-page .filter-presets::-webkit-scrollbar {
    display: none;
  }

  .report-page .filter-presets button {
    flex: 0 0 auto;
    min-height: 30px;
    padding: 7px 9px;
    font-size: 8px;
  }

  .report-page .date-range-inputs {
    width: 100%;
    margin-left: 0;
  }

  .report-page .date-range-inputs label,
  .report-page .date-range-inputs input {
    min-width: 0;
    width: 100%;
  }

  .report-page .content-card {
    padding: 12px;
  }

  .settings-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .settings-card {
    padding: 13px;
  }

  .settings-save .btn {
    width: 100%;
  }

  .push-setup {
    align-items: flex-start;
    flex-direction: column;
  }

  .push-setup .btn {
    width: 100%;
  }

  .mobile-nav {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding: 6px 4px max(7px, env(safe-area-inset-bottom));
  }

  .mobile-nav button {
    min-height: 47px;
    gap: 3px;
    font-size: 8px;
  }
}

@media (max-width: 430px) {
  .page-content {
    padding-left: 11px;
    padding-right: 11px;
  }

  .page-heading h1,
  .pos-heading h1 {
    font-size: 20px;
  }

  .page-heading p,
  .pos-heading p {
    font-size: 9px;
  }

  .calendar-card {
    padding: 11px 9px;
  }

  .calendar-day {
    height: 41px;
  }

  .calendar-day .day-number {
    font-size: 11px;
  }

  .menu-page > .section-heading-row {
    gap: 8px;
  }

  .menu-page > .section-heading-row .btn {
    padding: 8px 9px;
    font-size: 8px;
  }

  .menu-management-card {
    padding: 10px;
  }

  .report-page .stat-card > b {
    font-size: 14px;
  }

  .mobile-nav button {
    font-size: 8px;
  }
}

/* Small consistency fixes for the global add action and compact settings fields. */
.calendar-main .page-heading .desktop-add,
.orders-page .page-heading > .btn {
  display: none;
}

.settings-card .form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 430px) {
  .settings-card .form-grid.two {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* v37: Daily event recap is the primary workspace for Pawon See T. */
.daily-recap-page {
  width: 100%;
  max-width: 940px;
  gap: 13px;
}
.daily-recap-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 1px 3px;
}
.daily-recap-heading h1 {
  margin: 0 0 4px;
  color: var(--pos-ink);
  font-size: 25px;
  line-height: 1.15;
  letter-spacing: -.45px;
}
.daily-recap-heading p {
  margin: 0;
  color: var(--pos-muted);
  font-size: 11px;
}
.daily-calendar-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  border: 1px solid #eadde1;
  border-radius: 11px;
  background: #fff;
  color: var(--pos-accent);
  font-size: 11px;
  font-weight: 750;
  white-space: nowrap;
}
.daily-date-control {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid var(--pos-line);
  border-radius: 14px;
  background: #fff;
}
.daily-date-arrow {
  width: 36px;
  height: 38px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid #eee4e8;
  border-radius: 10px;
  background: #fff;
  color: var(--pos-accent);
}
.daily-date-input {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 5px;
  color: var(--pos-accent);
}
.daily-date-input > span {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.daily-date-input small {
  color: #9b8790;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
}
.daily-date-input input {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--pos-ink);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}
.daily-today-button {
  min-height: 36px;
  flex: 0 0 auto;
  padding: 0 11px;
  border: 1px solid #eadde1;
  border-radius: 9px;
  background: #fff;
  color: var(--pos-accent);
  font-size: 10px;
  font-weight: 750;
}
.daily-today-button.active {
  border-color: #eadde1;
  background: #faf3f5;
}
.daily-add-order {
  width: 100%;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border: 0;
  border-radius: 14px;
  background: var(--pos-accent);
  color: #fff;
  text-align: left;
  box-shadow: 0 6px 16px rgba(123, 36, 63, .12);
}
.daily-add-order > span:nth-child(2) {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.daily-add-order b {
  font-size: 13px;
}
.daily-add-order small {
  color: rgba(255,255,255,.76);
  font-size: 9px;
}
.daily-add-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.24);
  border-radius: 11px;
  background: rgba(255,255,255,.12);
}
.daily-recap-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--pos-line);
  border-radius: 14px;
  background: #fff;
}
.daily-recap-stat {
  min-width: 0;
  min-height: 91px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 12px 13px;
}
.daily-recap-stat + .daily-recap-stat {
  border-left: 1px solid var(--pos-line);
}
.daily-recap-stat > span,
.daily-payment-strip span {
  color: var(--pos-muted);
  font-size: 9px;
  font-weight: 650;
}
.daily-recap-stat > b {
  color: var(--pos-ink);
  font-size: 18px;
  line-height: 1.15;
  overflow-wrap: anywhere;
}
.daily-recap-stat:nth-child(2) > b {
  font-size: 15px;
}
.daily-recap-stat > small {
  color: #a18e96;
  font-size: 8px;
  line-height: 1.25;
}
.daily-recap-stat-balance > b {
  color: var(--pos-accent);
  font-size: 16px;
}
.daily-payment-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--pos-line);
  border-radius: 12px;
  background: #fff;
}
.daily-payment-strip > div {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 11px 14px;
}
.daily-payment-strip > div + div {
  border-left: 1px solid var(--pos-line);
}
.daily-payment-strip b {
  color: var(--pos-ink);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.daily-recap-list {
  overflow: hidden;
  border: 1px solid var(--pos-line);
  border-radius: 15px;
  background: #fff;
}
.daily-recap-list-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 15px 12px;
}
.daily-recap-list-heading h2 {
  margin: 0 0 4px;
  color: var(--pos-ink);
  font-size: 15px;
}
.daily-recap-list-heading p {
  margin: 0;
  color: var(--pos-muted);
  font-size: 9px;
}
.daily-recap-count {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 20px;
  background: #faf3f5;
  color: var(--pos-accent);
  font-size: 9px;
  font-weight: 800;
}
.daily-recap-orders {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 13px 13px;
}
.daily-recap-order {
  min-width: 0;
  display: grid;
  grid-template-columns: 23px minmax(0, 1fr);
  align-items: start;
  gap: 7px;
}
.daily-recap-order-number {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  margin-top: 12px;
  border-radius: 50%;
  background: #f7edf0;
  color: var(--pos-accent);
  font-size: 9px;
  font-weight: 800;
}
.daily-recap-order-card {
  min-width: 0;
}
.daily-recap-order-card .order-card {
  margin: 0;
}
.daily-recap-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 28px 20px 25px;
  text-align: center;
}
.daily-recap-empty > span {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #faf3f5;
  color: var(--pos-accent);
}
.daily-recap-empty > b {
  color: var(--pos-ink);
  font-size: 12px;
}
.daily-recap-empty p {
  max-width: 420px;
  margin: 0 0 4px;
  color: var(--pos-muted);
  font-size: 10px;
  line-height: 1.5;
}
.daily-recap-note {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  color: #89757e;
  font-size: 9px;
  line-height: 1.45;
}
.daily-recap-note svg {
  flex: 0 0 auto;
  color: #648b72;
}
@media (max-width: 680px) {
  .daily-recap-page { gap: 11px; }
  .daily-recap-heading h1 { font-size: 22px; }
  .daily-recap-heading p { max-width: 235px; font-size: 9px; line-height: 1.4; }
  .daily-calendar-link { min-height: 35px; padding: 0 9px; font-size: 10px; }
  .daily-date-control { gap: 5px; padding: 7px; }
  .daily-date-arrow { width: 31px; height: 35px; }
  .daily-date-input { gap: 6px; padding: 0 2px; }
  .daily-date-input > svg { width: 15px; }
  .daily-date-input small { font-size: 7px; }
  .daily-date-input input { font-size: 11px; }
  .daily-today-button { min-height: 33px; padding: 0 8px; font-size: 9px; }
  .daily-add-order { min-height: 61px; padding: 10px 12px; }
  .daily-add-icon { width: 36px; height: 36px; }
  .daily-recap-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-recap-stat { min-height: 75px; padding: 10px 11px; gap: 4px; }
  .daily-recap-stat:nth-child(2) { border-left: 1px solid var(--pos-line); }
  .daily-recap-stat:nth-child(3) { border-left: 0; border-top: 1px solid var(--pos-line); }
  .daily-recap-stat:nth-child(4) { border-top: 1px solid var(--pos-line); }
  .daily-recap-stat > span { font-size: 8px; }
  .daily-recap-stat > b { font-size: 16px; }
  .daily-recap-stat:nth-child(2) > b { font-size: 14px; }
  .daily-recap-stat-balance > b { font-size: 14px; }
  .daily-recap-stat > small { font-size: 7px; }
  .daily-payment-strip > div { padding: 9px 11px; }
  .daily-payment-strip span { font-size: 8px; }
  .daily-payment-strip b { font-size: 11px; }
  .daily-recap-list-heading { padding: 13px 12px 10px; }
  .daily-recap-list-heading h2 { font-size: 13px; }
  .daily-recap-list-heading p { max-width: 220px; font-size: 8px; line-height: 1.35; }
  .daily-recap-orders { padding: 0 9px 10px; gap: 7px; }
  .daily-recap-order { grid-template-columns: 19px minmax(0, 1fr); gap: 5px; }
  .daily-recap-order-number { width: 19px; height: 19px; margin-top: 10px; font-size: 8px; }
  .daily-recap-empty { padding: 23px 15px; }
  .daily-recap-note { font-size: 8px; }
}


/* v38: Calendar is integrated into the daily recap, leaving four mobile destinations. */
@media (max-width: 820px) {
  .mobile-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Integrated event calendar inside the daily recap. */
.recap-calendar-card {
  padding: 15px 16px 12px;
  border: 1px solid var(--pos-line);
  border-radius: 15px;
  background: #fff;
}
.recap-calendar-header {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 10px;
}
.recap-calendar-header .pos-eyebrow { margin: 0 0 3px; font-size: 8px; letter-spacing: 1.1px; }
.recap-calendar-header h2 { margin: 0; color: var(--pos-ink); font-size: 16px; line-height: 1.2; }
.recap-calendar-actions { display: flex; align-items: center; gap: 5px; flex: 0 0 auto; }
.recap-calendar-arrow { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid var(--pos-line); border-radius: 9px; background: #fff; color: var(--pos-accent); }
.recap-calendar-today { min-height: 31px; padding: 0 9px; border: 1px solid var(--pos-line); border-radius: 9px; background: #fff; color: var(--pos-accent); font-size: 9px; font-weight: 800; }
.recap-calendar-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.recap-calendar-weekday { padding: 5px 0; color: #a18d95; text-align: center; font-size: 8px; font-weight: 800; }
.recap-calendar-day { position: relative; min-width: 0; height: 42px; display: flex; align-items: flex-start; justify-content: center; padding: 7px 2px 15px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: var(--pos-ink); }
.recap-calendar-day:hover { border-color: #ead8df; background: #fcf7f9; }
.recap-calendar-day .recap-day-number { font-size: 11px; line-height: 1; font-weight: 700; }
.recap-calendar-day.is-today:not(.selected) { border-color: #c997a8; background: #fff9fb; color: var(--pos-accent); }
.recap-calendar-day.selected { border-color: var(--pos-accent); background: var(--pos-accent); color: #fff; box-shadow: 0 3px 9px rgba(123,36,63,.14); }
.recap-calendar-day.empty { pointer-events: none; }
.recap-day-count { position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); min-width: 13px; height: 12px; padding: 0 3px; display: inline-flex; align-items: center; justify-content: center; border-radius: 99px; background: #f5e9ee; color: var(--pos-accent); font-size: 7px; line-height: 1; font-weight: 800; }
.recap-calendar-day.selected .recap-day-count { background: rgba(255,255,255,.2); color: #fff; }
.recap-calendar-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px; padding-top: 9px; border-top: 1px solid #f2eaed; color: var(--pos-muted); font-size: 8px; }
.recap-calendar-footer > span { display: inline-flex; align-items: center; gap: 5px; }
.recap-calendar-footer small { margin-left: auto; color: #a18e96; font-size: 8px; }
.recap-calendar-order-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--pos-accent); }
.recap-calendar-today-mark { width: 9px; height: 9px; border: 1px solid #c997a8; border-radius: 3px; }
.daily-selected-date { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 1px 2px; }
.daily-selected-date > div { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.daily-selected-date small { color: #a18d95; font-size: 7px; font-weight: 800; letter-spacing: .9px; }
.daily-selected-date b { color: var(--pos-ink); font-size: 11px; }
.daily-selected-date > span { flex: 0 0 auto; color: var(--pos-accent); font-size: 9px; font-weight: 800; }
@media (max-width: 680px) {
  .recap-calendar-card { padding: 12px 10px 10px; }
  .recap-calendar-header h2 { font-size: 14px; }
  .recap-calendar-arrow { width: 29px; height: 29px; }
  .recap-calendar-today { min-height: 29px; padding: 0 8px; font-size: 8px; }
  .recap-calendar-grid { gap: 2px; }
  .recap-calendar-weekday { padding: 4px 0; font-size: 7px; }
  .recap-calendar-day { height: 37px; padding-top: 6px; padding-bottom: 13px; border-radius: 7px; }
  .recap-calendar-day .recap-day-number { font-size: 10px; }
  .recap-day-count { bottom: 2px; min-width: 12px; height: 10px; font-size: 6px; }
  .recap-calendar-footer { gap: 8px; font-size: 7px; }
  .recap-calendar-footer small { width: 100%; margin-left: 0; font-size: 7px; }
  .daily-selected-date b { font-size: 10px; }
}

/* Pawon See T v39 — share-ready monthly and annual report */
.report-page .page-heading {
  align-items: center;
  gap: 14px;
}
.report-download-btn {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 9px 13px;
  gap: 7px;
  white-space: nowrap;
  font-size: 10px;
}
.report-share-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 25px;
  border: 1px solid #eadde2;
  border-radius: 21px;
  background: linear-gradient(145deg, #fff 0%, #fffafb 58%, #fbf2f5 100%);
  box-shadow: 0 9px 28px rgba(61, 28, 42, .055);
  color: #46343c;
}
.report-share-card::before,
.report-share-card::after {
  position: absolute;
  z-index: -1;
  content: "";
  pointer-events: none;
  border-radius: 50%;
}
.report-share-card::before {
  width: 220px;
  height: 220px;
  top: -145px;
  right: -65px;
  border: 1px solid rgba(123, 36, 63, .10);
  box-shadow: 0 0 0 18px rgba(123, 36, 63, .025), 0 0 0 38px rgba(123, 36, 63, .018);
}
.report-share-card::after {
  width: 100px;
  height: 100px;
  bottom: 100px;
  left: -75px;
  background: rgba(123, 36, 63, .035);
}
.report-share-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 17px;
  border-bottom: 1px solid #eee2e7;
}
.report-brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.report-brand-symbol {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #7b243f;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  box-shadow: 0 4px 10px rgba(123, 36, 63, .16);
}
.report-brand-lockup > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.report-brand-lockup b {
  color: #6f2039;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
  letter-spacing: .25px;
}
.report-brand-lockup small {
  color: #a18a93;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.05px;
}
.report-document-label {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 1px solid #ead7df;
  border-radius: 99px;
  background: rgba(255,255,255,.72);
  color: #8a5266;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1px;
}
.report-share-title {
  padding: 22px 0 18px;
  text-align: center;
}
.report-overline {
  color: #a17b89;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 2px;
}
.report-share-title h2 {
  margin: 7px 0 4px;
  color: #6f2039;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.15;
}
.report-share-title p {
  margin: 0;
  color: #927c85;
  font-size: 11px;
  font-weight: 600;
}
.report-main-totals {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.report-total-tile {
  min-width: 0;
  padding: 16px 17px 15px;
  border: 1px solid #ead8e0;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 3px 12px rgba(66, 29, 44, .025);
}
.report-total-tile > div {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #8d5368;
  font-size: 9px;
  font-weight: 800;
}
.report-total-tile > strong {
  display: block;
  margin-top: 10px;
  color: #6f2039;
  font-size: clamp(25px, 4vw, 34px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.7px;
  overflow-wrap: anywhere;
}
.report-total-tile > small {
  display: block;
  margin-top: 7px;
  color: #a18e96;
  font-size: 8px;
  line-height: 1.35;
}
.report-total-tile-box {
  border-color: #e7e3d8;
  background: #fffefa;
}
.report-total-tile-box > div { color: #8b7850; }
.report-total-tile-box > strong { color: #76613a; }
.report-breakdown {
  margin-top: 22px;
}
.report-breakdown-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.report-breakdown-heading h3 {
  margin: 0 0 4px;
  color: #503c44;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 16px;
}
.report-breakdown-heading p {
  margin: 0;
  color: #9a8790;
  font-size: 9px;
  line-height: 1.4;
}
.report-breakdown-heading > span {
  flex: 0 0 auto;
  color: #936579;
  font-size: 8px;
  font-weight: 800;
}
.report-share-table-wrap {
  overflow: hidden;
  border: 1px solid #eee3e8;
  border-radius: 12px;
  background: rgba(255,255,255,.88);
}
.report-share-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  margin: 0;
}
.report-share-table th {
  padding: 10px 11px;
  background: #f8f0f3;
  color: #8e6d7a;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .4px;
  text-align: left;
}
.report-share-table th:not(:first-child),
.report-share-table td:not(:first-child) { text-align: right; }
.report-share-table td {
  padding: 9px 11px;
  border-bottom: 1px solid #f1e9ed;
  color: #59464e;
  font-size: 9px;
}
.report-share-table tbody tr:last-child td { border-bottom: 0; }
.report-share-table tfoot td {
  padding: 11px;
  border-top: 1px solid #e9d9e0;
  border-bottom: 0;
  background: #fcf7f9;
  color: #6f2039;
  font-size: 9px;
  font-weight: 800;
}
.report-empty {
  padding: 20px 12px;
  border: 1px dashed #e7d8df;
  border-radius: 12px;
  background: rgba(255,255,255,.65);
  color: #947e87;
  text-align: center;
}
.report-income-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 24px;
  padding: 17px 19px;
  border: 1px solid #e7d5dd;
  border-radius: 15px;
  background: linear-gradient(110deg, #f8eef2, #fff 100%);
}
.report-income-copy > span {
  color: #9b7181;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 1.4px;
}
.report-income-copy h3 {
  margin: 5px 0 3px;
  color: #583744;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}
.report-income-copy p {
  margin: 0;
  color: #9b8991;
  font-size: 8px;
  line-height: 1.35;
}
.report-income-section > strong {
  flex: 0 0 auto;
  color: #7b243f;
  font-size: clamp(16px, 2.7vw, 22px);
  font-weight: 800;
  text-align: right;
  overflow-wrap: anywhere;
}
.report-share-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  padding-top: 11px;
  border-top: 1px solid #eee2e7;
  color: #a28e96;
  font-size: 7px;
}
@media (max-width: 820px) {
  .report-page .page-heading { align-items: flex-start; }
  .report-download-btn { min-height: 34px; padding: 8px 10px; font-size: 9px; }
  .report-share-card { padding: 17px 14px; border-radius: 16px; }
  .report-share-header { padding-bottom: 12px; }
  .report-brand-symbol { width: 32px; height: 32px; border-radius: 10px; font-size: 19px; }
  .report-brand-lockup b { font-size: 12px; }
  .report-brand-lockup small { font-size: 6px; letter-spacing: .7px; }
  .report-document-label { padding: 5px 7px; font-size: 6px; }
  .report-share-title { padding: 18px 0 14px; }
  .report-share-title h2 { font-size: 25px; }
  .report-share-title p { font-size: 10px; }
  .report-main-totals { gap: 8px; }
  .report-total-tile { padding: 12px 11px; border-radius: 12px; }
  .report-total-tile > div { gap: 5px; font-size: 8px; }
  .report-total-tile > div svg { width: 15px; height: 15px; }
  .report-total-tile > strong { margin-top: 8px; font-size: 25px; }
  .report-total-tile > small { margin-top: 6px; font-size: 7px; }
  .report-breakdown { margin-top: 18px; }
  .report-breakdown-heading h3 { font-size: 14px; }
  .report-breakdown-heading p { font-size: 8px; }
  .report-share-table th { padding: 8px 7px; font-size: 7px; }
  .report-share-table td { padding: 8px 7px; font-size: 8px; }
  .report-share-table tfoot td { padding: 9px 7px; }
  .report-income-section { align-items: flex-start; flex-direction: column; gap: 9px; margin-top: 19px; padding: 13px; }
  .report-income-copy h3 { font-size: 13px; }
  .report-income-section > strong { font-size: 20px; text-align: left; }
  .report-share-footer { margin-top: 14px; font-size: 6px; }
}
@media (max-width: 390px) {
  .report-page .page-heading { flex-direction: column; align-items: stretch; }
  .report-download-btn { align-self: flex-start; }
  .report-share-card { padding: 14px 11px; }
  .report-document-label { font-size: 5px; letter-spacing: .6px; }
  .report-total-tile > strong { font-size: 22px; }
  .report-share-table th,
  .report-share-table td { padding-left: 5px; padding-right: 5px; font-size: 7px; }
}

/* Menu variants: one parent menu can hold several selectable preparations. */
.menu-choice-group {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 10px;
  overflow: hidden;
}

.menu-choice-group.has-selection {
  border-color: #ead4dd;
  background: #fffafb;
}

.menu-choice-variant-toggle {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font: inherit;
}

.menu-choice-variant-toggle.checked {
  border-radius: 0;
  background: #fbf3f6;
}

.menu-choice-variant-toggle .variant-chevron {
  flex: 0 0 auto;
  color: #987383;
  transition: transform .18s ease;
}

.menu-choice-variant-toggle .variant-chevron.expanded {
  transform: rotate(90deg);
}

.menu-variant-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 7px 8px 8px 32px;
  background: #fffafb;
}

.menu-variant-option {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
  padding: 8px 9px;
  border: 1px solid #eee4e8;
  border-radius: 8px;
  background: #fff;
  color: #5d4650;
  text-align: left;
  font: inherit;
  font-size: 10px;
}

.menu-variant-option > span {
  flex: 1;
  min-width: 0;
  font-weight: 700;
}

.menu-variant-option > b {
  color: #8b6877;
  font-size: 9px;
  white-space: nowrap;
}

.menu-variant-option > svg {
  flex: 0 0 auto;
  color: #a17d8c;
}

.menu-variant-option.selected {
  border-color: #d9b8c5;
  background: #f8edf1;
  color: var(--maroon);
}

.menu-variant-option.selected > svg {
  color: var(--maroon);
}

.selected-menu-remove {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  padding: 0;
  border: 1px solid #eadde2;
  border-radius: 50%;
  background: #fff;
  color: #9a6578;
}

.menu-variant-editor {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 11px;
  border: 1px solid #eee3e8;
  border-radius: 11px;
  background: #fdf9fb;
}

.menu-variant-editor-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.menu-variant-editor-heading b {
  color: #624651;
  font-size: 12px;
}

.menu-variant-editor-heading small {
  color: #96848b;
  font-size: 10px;
  line-height: 1.45;
}

.menu-variant-edit-row,
.menu-variant-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 30px;
  align-items: center;
  gap: 6px;
}

.menu-variant-edit-row input,
.menu-variant-add-row input {
  width: 100%;
  min-width: 0;
}

.menu-variant-add-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.menu-variant-add-row .btn {
  min-height: 38px;
  white-space: nowrap;
}

.menu-variant-editor .field-hint {
  display: block;
  margin-top: 4px;
}

@media (max-width: 520px) {
  .menu-picker {
    grid-template-columns: minmax(0, 1fr);
  }

  .menu-variant-list {
    padding-left: 27px;
  }

  .menu-variant-edit-row {
    grid-template-columns: minmax(0, 1fr) minmax(0, .85fr) 28px;
    gap: 5px;
  }
}

/* Keep the variant selector readable inside the compact mobile order picker. */
.order-modal .menu-picker .menu-choice-variant-toggle {
  display: grid !important;
  grid-template-columns: 18px minmax(0, 1fr) auto 16px !important;
  align-items: center !important;
  width: 100% !important;
  min-height: 44px !important;
  padding: 8px 9px !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  text-align: left !important;
}

.order-modal .menu-picker .menu-choice-variant-toggle.checked {
  background: #fbf4f7 !important;
}

.order-modal .menu-picker .menu-choice-variant-toggle .choice-check {
  display: grid !important;
  width: 16px !important;
  height: 16px !important;
  border: 1px solid #d6c4cb !important;
  border-radius: 4px !important;
  background: #fff !important;
}

.order-modal .menu-picker .menu-choice-variant-toggle.checked .choice-check {
  border-color: var(--maroon) !important;
  background: var(--maroon) !important;
  color: #fff !important;
}

.order-modal .menu-picker .menu-choice-variant-toggle .variant-chevron {
  display: block !important;
  color: #987383 !important;
}

.order-modal .menu-variant-list {
  padding: 6px 7px 8px 29px;
}


/* Menu dibuat lebih menonjol khusus pada daftar pelanggan di rekap harian. */
.daily-recap-orders .order-card-menu-featured {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 11px 0 10px;
  padding: 11px 12px;
  border: 1px solid #ead5de;
  border-radius: 11px;
  background: #fbf4f7;
}

.daily-recap-orders .order-card-menu-featured-label {
  color: #8a425c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}

.daily-recap-orders .order-card-menu-featured-items {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 6px;
}

.daily-recap-orders .order-card-menu-chip {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid #e8d1da;
  border-radius: 7px;
  background: #fff;
  color: #563040;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.daily-recap-orders .order-card-menu-empty {
  color: #8a7a81;
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 560px) {
  .daily-recap-orders .order-card-menu-featured {
    margin: 10px 0 9px;
    padding: 10px;
    gap: 7px;
  }

  .daily-recap-orders .order-card-menu-chip {
    padding: 6px 8px;
    font-size: 11px;
  }
}
