/* Keep the supplied visual theme while isolating its login-only global rules. */
body.app-page{background:#fff;color:#161616;font:12px Arial,Helvetica,sans-serif}
.app-page::before,.app-page::after{display:none}
.app-page .brand{display:flex;align-items:center;text-align:left;gap:5px;background:var(--soft);color:var(--pink);border-radius:7px;height:49px;padding:4px;margin-bottom:28px;font-size:10px;white-space:nowrap}
.app-page .sidebar{min-height:100vh}
.app-page .logout{border:0;background:none;width:100%;cursor:pointer}
.app-page h2,.app-page h3,.app-page p{line-height:1.5}
.app-page .section-title{margin:4px 0 20px}
.app-page .toolbar .section-title{margin:0}
.app-page .welcome h2{margin:4px 0}
.app-page td{line-height:1.45}
.app-page .form-fields textarea{padding:12px}
.app-page .metric:nth-child(2) .metric-icon{background:#fff0f6}
.app-page .metric:nth-child(3) .metric-icon{background:#e7f3ff;color:#68a7e8}
.app-page .metric:nth-child(4) .metric-icon{background:#e4ffea;color:#4ec568}
.app-page .side-end{padding-top:35px}
.notice{padding:12px 14px;border:1px solid #f3b9d4;background:#fff0f7;color:#9a2360;border-radius:7px;margin:0 0 16px;line-height:1.5;overflow-wrap:anywhere}
.notice.success{background:#effff1;border-color:#b5ebbf;color:#216338}
.notice.error{background:#fff0f2;border-color:#efb0b8;color:#a32235}
.notice ul{padding-left:17px;margin-top:4px}
.auth-page .notice{font-size:11px;margin-top:15px}
.auth-page .brand{display:block;width:100%;height:auto;padding:0;background:none;margin-bottom:0;white-space:normal;text-align:center}
.auth-page .logo-container{margin-left:auto;margin-right:auto}
.auth-page .login-card{padding-top:19px;padding-bottom:15px}
.auth-page .registration-card{max-width:390px}
.auth-heading{font-size:15px;text-align:center;margin:17px 0 8px}
.auth-description{font-size:11px;line-height:1.5;text-align:center;margin-bottom:15px}
.auth-link{text-align:center;margin-top:13px;font-size:10px;line-height:1.6}
.auth-link a{color:#eb328c;text-decoration:underline;text-underline-offset:2px}
.plain-form{display:flex;flex-direction:column;gap:9px}
.plain-form>label,.plain-form div>label,.field-label{display:block;font-size:10px;font-weight:bold;color:#6f626a;margin:0 0 5px}
.plain-form input:not([type=hidden]),.plain-form select,.plain-form textarea{width:100%;border:1px solid #e0cfd7;border-radius:5px;padding:10px;background:#fff;color:#343039;font:12px Arial,Helvetica,sans-serif;min-height:36px}
.plain-form textarea{resize:vertical}
.plain-form .button-row{margin-top:12px}
.auth-page .plain-form{margin-top:13px;gap:8px}
.auth-page .plain-form .login-button{margin-top:10px}
.field-label{margin-top:4px}
.file-input{width:100%;font-size:9px;margin:9px 0}
.file-input::file-selector-button{background:#fff;border:1px solid #ffc3dc;border-radius:4px;color:#cf397b;padding:5px;font-size:9px;cursor:pointer}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.pager a,.pager>span{background:#fff;border:1px solid #ccc;border-radius:4px;min-width:27px;padding:5px;text-align:center;display:inline-block}
.pager a.selected{background:var(--pink);color:white;border-color:var(--pink)}
.pager .disabled{opacity:.4}
.record-count{text-align:center;color:#999;font-size:9px;margin:8px 0 14px}
.empty-state{text-align:center;padding:32px 15px;color:#8f7683}
.tag.ACTIVE{background:#a8ffb2;color:#11843a}
.tag.INACTIVE{background:#ffc5c8;color:#c52f37}
.tag.PENDING{background:#ffc5c8;color:#c52f37}
.tag.READY{background:#a8ffb2;color:#11843a}
.order-line-name{display:block;margin:3px 0}
.order-form,.customer-form{max-width:760px}
.order-form .panel{margin:8px 0}
.small-heading{font-size:12px;margin:0 0 14px}
.order-item{display:grid;grid-template-columns:minmax(0,1fr) 90px 32px;gap:10px;align-items:end;margin-bottom:12px}
.order-item .remove-item{padding:8px;min-height:36px}
.item-note{font-size:10px;margin-top:12px}
.two-fields{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.two-fields label{display:block;margin-bottom:5px}
.status-line{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:13px;font-size:10px}
.delivery-notes{margin:12px 0;white-space:pre-wrap}
.customer-facts{font-size:11px;line-height:1.6;overflow-wrap:anywhere}
.customer-facts dt{font-weight:bold;color:#a17188;margin-top:12px}
.customer-facts dd{margin:3px 0}
.report-explanation{font-size:10px;margin:6px 0 14px}
.chart{overflow-x:auto;min-height:195px;align-items:flex-end}
.chart .barcol{min-width:28px}
.chart-count{display:block;font-size:9px;color:#ab3f72;margin-bottom:4px}
.chart .barcol small{display:block}
.catalog-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:18px;margin:20px 0}
.catalog-card>img{display:block;width:100%;height:195px;object-fit:cover;background:#fff1f7}
.catalog-card h2{font-size:14px;margin:10px 0}
.catalog-card p{font-size:11px;color:#88757e;min-height:32px}
.catalog-price{display:flex;justify-content:space-between;align-items:center;margin:17px 0}
.catalog-price b{font-size:16px}
.catalog-price small{color:#888}
[hidden]{display:none!important}
button:disabled{opacity:.55;cursor:not-allowed}
@media(min-width:1000px){.content{padding:25px 28px 35px}.sidebar{width:170px;padding:16px 10px 12px}.nav-link{font-size:10px}}
@media(max-width:650px){.app-page .sidebar{min-height:auto}.app-page .brand{margin-bottom:10px}.app-page .side-end{padding-top:8px}.two-fields{grid-template-columns:1fr}.order-item{grid-template-columns:minmax(0,1fr) 65px 28px;gap:6px}.order-item select{font-size:10px}.app-page .toolbar .section-title{margin-bottom:8px}.catalog-grid{grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:10px}.catalog-card>img{height:160px}.catalog-card h2{font-size:12px}.catalog-card .pad{padding:11px}}
@media print{body.app-page{background:white}.notice,.toolbar,.detail-actions{display:none!important}.report-charts{grid-template-columns:1fr 1fr}.content{max-width:none!important}.table-scroll{overflow:visible}.panel{break-inside:auto}tr{break-inside:avoid}.report-explanation{color:#333}.pager{display:none!important}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* Reference-matched SVG icons: size and colour are independent of installed fonts. */
.ab-icon{display:block;width:24px;height:24px;flex-shrink:0}
.app-page .nav-ico{display:grid;place-items:center;width:25px;color:#222;flex-shrink:0}
.app-page .nav-ico .ab-icon{width:25px;height:25px}
.app-page .nav-link.active,.app-page .nav-link:hover{color:#ed3485;background:#fce6ef}
.app-page .nav-link.active .nav-ico,.app-page .nav-link:hover .nav-ico{color:#ed3485}
.app-page .notification-icon{display:grid;place-items:center;color:#080808;width:28px;height:32px;margin-right:13px}
.app-page .notification-icon .ab-icon{width:25px;height:25px}
.app-page .admin-dot{width:43px;height:43px;font:300 25px Arial,Helvetica,sans-serif;margin-left:0;background:#ed3485}
.app-page .detail-link{display:inline-flex;align-items:center;justify-content:center;color:#ff318a;padding:3px}
.app-page .detail-link .ab-icon{width:25px;height:34px}
.app-page .dashboard-metrics .metric{min-height:130px;gap:15px;padding:20px 16px;--metric-color:#ff2980}
.app-page .dashboard-metrics .metric-icon{width:56px;height:56px;background:#ffc4dd;color:#ed3485}
.app-page .dashboard-metrics .metric-icon .ab-icon{width:32px;height:32px}
.app-page .dashboard-metrics .metric-delivery{--metric-color:#0061ec}
.app-page .dashboard-metrics .metric-delivery .metric-icon{background:#edf4ff;color:#0061ec}
.app-page .dashboard-metrics .metric-completed{--metric-color:#00c42c}
.app-page .dashboard-metrics .metric-completed .metric-icon{background:#a5ffa6;color:#00c42c}
.app-page .dashboard-metrics .metric-completed .ab-icon{width:40px;height:40px}
.app-page .dashboard-metrics .metric-copy b{font-size:28px;font-weight:400;line-height:1.1;margin:0 0 3px;color:var(--metric-color)}
.app-page .dashboard-metrics .metric-copy small{font-size:13px;font-weight:400;color:var(--metric-color)}
@media(max-width:650px){.app-page .dashboard-metrics .metric{padding:12px;gap:10px;min-height:105px}.app-page .dashboard-metrics .metric-icon{width:44px;height:44px}.app-page .dashboard-metrics .metric-copy small{font-size:11px}.app-page .dashboard-metrics .metric-completed .ab-icon{width:32px;height:32px}}
.app-page .dashboard-metrics .metric-remaining .metric-icon{background:#ffc4dd;color:#ed3485}
.app-page .notification-menu{position:relative}
.app-page .notification-menu>summary{list-style:none;cursor:pointer;position:relative}
.app-page .notification-menu>summary::-webkit-details-marker{display:none}
.app-page .notification-count{position:absolute;top:-3px;right:-5px;min-width:18px;height:18px;padding:0 4px;border:2px solid #fff;border-radius:12px;background:#e52545;color:#fff;font:700 10px/14px Arial,sans-serif;text-align:center}
.app-page .notification-panel{position:absolute;z-index:30;right:0;top:calc(100% + 10px);width:min(360px,calc(100vw - 30px));max-height:420px;overflow:auto;background:#fff;border:1px solid #f0dce5;border-radius:10px;box-shadow:0 12px 32px #55253a24;color:#302830}
.app-page .notification-panel>strong{display:block;padding:14px 16px;border-bottom:1px solid #f3e8ed;font-size:14px}
.app-page .notification-panel>strong small{display:block;margin-top:4px;color:#8c7b83;font-size:11px;font-weight:400}
.app-page .notification-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 14px;border-bottom:1px solid #f6edf1;color:inherit;text-decoration:none}
.app-page .notification-item:hover{background:#fff5f9}
.app-page .notification-item b{display:block;color:#d92d78;font-size:12px}
.app-page .notification-item small{display:block;margin-top:4px;color:#83747b;font-size:10px}
.app-page .notification-item em{color:#a74c77;font-size:9px;font-style:normal;text-align:right}
.app-page .notification-empty{padding:18px 14px;color:#83747b;font-size:12px}
.app-page .notification-all{display:block;padding:12px;text-align:center;color:#d92d78;font-size:11px;font-weight:700;text-decoration:none}
.app-page .tag.NEW-ORDER{background:#ffc3c5;color:#e12c31}
.app-page .tag.Pending{background:#ffc5c8;color:#ee2121}
.app-page .tag.PREPARING{background:#fffcb3;color:#c69c00}
.app-page .tag.Ready{background:#a8ffb2;color:#00a43c}
.app-page .tag.DELIVERING{background:#ffacd0;color:#db247a}
.app-page .tag.DELIVERED{background:#a4ddff;color:#146cdb}
.app-page .tag.PICKED-UP{background:#a4ddff;color:#146cdb}
.app-page .tag.COMPLETED{background:#a8ffb2;color:#00a43c}
.app-page .tag.CANCELED{background:#e8d7f5;color:#8438a8}
.app-page .status-select{border:1px solid #777!important;border-radius:9px!important;padding:10px 14px!important;font-weight:700;background:#fff!important;color:#151515!important}
.app-page .status-select option{background:#fff;color:#151515}
.app-page .status-select.status-NEW-ORDER{background:#ffc3c5!important;color:#e12c31!important}
.app-page .status-select.status-PENDING{background:#ffc5c8!important;color:#ee2121!important}
.app-page .status-select.status-PREPARING{background:#fffcb3!important;color:#c69c00!important}
.app-page .status-select.status-READY{background:#a8ffb2!important;color:#00a43c!important}
.app-page .status-select.status-DELIVERING{background:#ffacd0!important;color:#db247a!important}
.app-page .status-select.status-DELIVERED,.app-page .status-select.status-PICKED-UP{background:#a4ddff!important;color:#146cdb!important}
.app-page .status-select.status-COMPLETED{background:#a8ffb2!important;color:#00a43c!important}
.app-page .status-select.status-CANCELED{background:#e8d7f5!important;color:#8438a8!important}
/* Order contact fields follow the pink outline icons in the supplied reference. */
.app-page .detail-field{padding-left:0;overflow:hidden}
.app-page .detail-field .field-icon{align-self:stretch;display:grid;place-items:center;width:54px;min-height:42px;flex-shrink:0;background:#fce6ef;border-right:1px solid #ffc5df;color:#ed3485;margin-right:10px}
.app-page .field-icon .ab-icon{width:29px;height:29px;stroke-width:2}
.app-page .receipt-link{margin-left:auto;padding:8px;color:#ed3485;font-size:11px}
.app-page .receipt-missing{margin-left:auto;padding:8px;color:#999;font-size:10px}
.app-page .receipt-upload{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:8px 0 18px;font-size:10px}
.app-page .receipt-upload input{max-width:230px;font-size:10px}
.app-page .receipt-upload small{width:100%;color:#87757e}
.app-page .detail-address{position:relative;height:auto;min-height:110px;padding-bottom:42px;white-space:pre-wrap;overflow-wrap:anywhere}
.app-page .address-map{position:absolute;right:10px;bottom:8px;color:#ed3485;display:block}
.app-page .address-map .ab-icon{width:24px;height:24px}

/* The sidebar and top bar use the dashboard dimensions throughout the admin layout. */
.app-page .topbar{height:71px;padding:0 24px 0 20px;font-size:13px}
.app-page .top-right{gap:6px}
.app-page .admin-text{font-size:10px;font-weight:600}
.app-page .admin-text small{font-size:8px;font-weight:400;margin-top:3px}
@media(min-width:651px){
 .app-page .sidebar{width:154px;padding:17px 8px 12px;position:sticky;top:0;align-self:flex-start;height:100vh;height:100dvh;overflow-y:auto}
 .app-page .sidebar > *{flex-shrink:0}
 .app-page .brand{gap:6px;margin-bottom:29px}
 .app-page .nav{gap:5px}
 .app-page .nav-link{min-height:40px;padding:0 7px;gap:12px;font-size:9px;border-radius:7px}
 .app-page .nav-ico,.app-page .nav-ico .ab-icon{width:20px;height:20px}
 .app-page .hearts{position:relative;height:14px;font-size:0;margin:0 3px 19px}
 .app-page .hearts::before{content:'';position:absolute;left:0;right:0;top:50%;height:1px;background:#ff72ae}
 .app-page .hearts::after{content:'♥';position:absolute;left:50%;transform:translateX(-50%);width:18px;background:#fff;font-size:12px;text-align:center}
 .app-page .incoming small{line-height:1.5}
 .app-page .logout{margin-top:50px}
}
@media(max-width:650px){
 .app-page .topbar{padding:0 14px;position:relative}
 .app-page .notification-menu{position:static}
 .app-page .notification-icon{margin-right:4px}
 .app-page .notification-panel{right:14px;top:calc(100% + 4px)}
 .app-page .admin-dot{width:35px;height:35px;font-size:23px}
 .app-page .admin-text{max-width:95px;overflow-wrap:anywhere}
}

/* Compact dashboard content dimensions taken from the supplied dashboard.html. */
.initials-avatar{display:inline-grid;place-items:center;flex-shrink:0;font-family:Arial,Helvetica,sans-serif;font-weight:400}
.dashboard-page .content{max-width:none;padding:18px 13px 28px 32px}
.dashboard-page .welcome{gap:5px;margin:0 0 21px}
.dashboard-page .welcome-icon{width:66px;height:66px;border-radius:17px;background:#ffcbe2;color:#f32e87;font-size:28px;letter-spacing:-2px}
.dashboard-page .welcome small{font-size:8px;color:#969696}
.dashboard-page .welcome h2{font-size:22px;line-height:1.2;margin:3px 0 0;font-weight:400;overflow-wrap:anywhere}
.dashboard-page .dashboard-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0 0 15px}
.dashboard-page .dashboard-metrics .metric{height:auto;min-height:84px;padding:14px 10px;gap:9px;border-radius:7px;align-items:flex-start}
.dashboard-page .dashboard-metrics .metric-icon{width:36px;height:36px;margin-top:0}
.dashboard-page .dashboard-metrics .metric-icon .ab-icon{width:23px;height:23px}
.dashboard-page .dashboard-metrics .metric-completed .ab-icon{width:27px;height:27px}
.dashboard-page .dashboard-metrics .metric-copy{min-width:0}
.dashboard-page .dashboard-metrics .metric-copy b{font-size:17px;line-height:1.1;margin:0 0 2px}
.dashboard-page .dashboard-metrics .metric-copy small{font-size:9px;line-height:1.3;overflow-wrap:anywhere}
.dashboard-page .metric-note{display:block;margin-top:6px;color:#999;font-size:8px;line-height:1.3}
.dashboard-page .metric-note-new{color:#ff2980}
.dashboard-page .dashboard-orders{border-radius:23px;border-color:#ddd}
.dashboard-page .dashboard-orders-heading{padding:8px 27px;margin:0;font-size:9px;font-weight:500;line-height:1.4}
.dashboard-page .dashboard-table{min-width:620px;table-layout:fixed}
.dashboard-page .dashboard-table th{padding:8px 10px;font-size:8px;font-weight:700;color:#5c5c5c;background:#efefef}
.dashboard-page .dashboard-table th:first-child{width:39%;padding-left:27px}
.dashboard-page .dashboard-table th:nth-child(2){width:11.5%}
.dashboard-page .dashboard-table th:nth-child(3){width:15.5%}
.dashboard-page .dashboard-table th:nth-child(4){width:17.5%}
.dashboard-page .dashboard-table th:last-child{width:16.5%}
.dashboard-page .dashboard-table td{border-top:0;padding:7px 10px;font-size:9px;height:47px;vertical-align:middle;background:#fff}
.dashboard-page .dashboard-table td:first-child{padding-left:27px}
.dashboard-page .dashboard-table tr:hover td{background:#fff9fc}
.dashboard-page .dashboard-table tbody tr:last-child td{padding-bottom:8px}
.dashboard-page .dashboard-customer{display:flex;align-items:center;gap:12px;min-width:0}
.dashboard-page .dashboard-customer>span{min-width:0;overflow-wrap:anywhere}
.dashboard-page .dashboard-customer b{font-size:9px}
.dashboard-page .customer-avatar{width:33px;height:33px;border-radius:50%;background:#4ab8f6;color:#fff;font-size:16px;letter-spacing:-.5px}
.dashboard-page .avatar-color-0{background:#4ab8f6}
.dashboard-page .avatar-color-1{background:#ffdc45}
.dashboard-page .avatar-color-2{background:#61f943}
.dashboard-page .avatar-color-3{background:#bc43ff}
.dashboard-page .customer-email{display:block;color:#888;font-size:8px;text-decoration:underline;margin-top:3px;overflow-wrap:anywhere}
.dashboard-page .dashboard-order-number{font-weight:700;color:#111}
.dashboard-page .dashboard-order-number:hover{text-decoration:underline;color:#ed3485}
.dashboard-page .dashboard-cell-note{display:block;color:#888;font-size:7px;margin-top:4px}
.dashboard-page .dashboard-delivery-date{display:inline-block;background:#fff6b0;color:#ff8700;padding:4px 7px;border-radius:12px;font-size:8px;white-space:nowrap}
.dashboard-page .dashboard-table .tag{font-size:8px;padding:4px 9px;font-weight:400;line-height:1.3}
.dashboard-page .dashboard-table .dashboard-status-delivery{background:#d6e6ff;color:#0061ec}
@media(max-width:900px){
 .dashboard-page .content{padding:18px}
 .dashboard-page .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:650px){
 .dashboard-page .content{padding:18px 14px}
 .dashboard-page .welcome{gap:10px;margin-bottom:18px}
 .dashboard-page .welcome small{font-size:10px}
 .dashboard-page .dashboard-metrics .metric{min-height:90px}
 .dashboard-page .dashboard-metrics .metric-copy small{font-size:11px}
 .dashboard-page .metric-note{font-size:10px}
}

/* Add Category opens a card in the existing Products toolbar. */
.category-add{position:relative}
.category-add>summary{cursor:pointer;list-style:none;white-space:nowrap}
.category-add>summary::-webkit-details-marker{display:none}
.category-add[open]>summary{background:#fff0f6;border-color:var(--pink);color:var(--pink)}
.app-page .category-add-card{position:absolute;z-index:20;right:0;top:calc(100% + 8px);width:min(255px,calc(100vw - 32px));background:#fff;box-shadow:0 8px 20px #41203220}
.category-add-card label{margin:0}
.category-error{color:#b1284e;font-size:11px}
.product-delete{display:inline-grid;place-items:center}
.product-delete svg{width:14px;height:14px;display:block}
@media(max-width:650px){.app-page .category-add-card{position:static;margin-top:8px}}

/* Readable metadata, keyboard focus, and new settings screens. */
.app-page .subtext,.app-page .record-count,.app-page .delivery-notes,.app-page .report-explanation{font-size:11px}
.app-page .dashboard-cell-note,.app-page .customer-email{font-size:10px}
.app-page a:focus-visible,.app-page button:focus-visible,.app-page summary:focus-visible{outline:2px solid #b71960;outline-offset:3px}
.area-editor-map{height:360px;min-height:240px;isolation:isolate;border:1px solid #e0cfd7;border-radius:8px}
.payment-record{margin-top:20px}
.app-page .plain-form input[type=checkbox]{width:18px;min-height:18px;vertical-align:middle}
@media(max-width:650px){.area-editor-map{height:280px}}
