@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');
:root{--cp-ink:#25251f;--cp-muted:#77796f;--cp-cream:#f7f5ef;--cp-paper:#fff;--cp-line:#e9e6dc;--cp-coffee:#6e452c;--cp-coffee-dark:#3d2a20;--cp-gold:#d9a85e;--cp-green:#267a55;--cp-red:#b8493e;--cp-shadow:0 14px 40px rgba(49,38,25,.08)}
.cafe-pos-shell,.cp-login-wrap,.cp-admin-wrap{font-family:'DM Sans',sans-serif;color:var(--cp-ink)}.cafe-pos-shell *,.cp-login-wrap *,.cp-admin-wrap *{box-sizing:border-box}
.cafe-pos-shell{background:var(--cp-cream);border-radius:18px;overflow:hidden;min-height:80vh;font-size:14px}.cp-topbar{height:76px;background:#fff;border-bottom:1px solid var(--cp-line);display:flex;align-items:center;justify-content:space-between;padding:0 28px}.cp-brand{display:flex;align-items:center;gap:12px}.cp-brand-icon{width:42px;height:42px;border-radius:13px;background:linear-gradient(145deg,#8c5d3c,#4a2d1d);display:grid;place-items:center;color:#fff;font-size:22px}.cp-brand strong{display:block;font-family:'Playfair Display',serif;font-size:19px}.cp-brand small{display:block;color:var(--cp-muted);font-size:11px;margin-top:3px}.cp-user{display:flex;align-items:center;gap:14px;font-weight:600}.cp-main{display:flex;min-height:calc(80vh - 76px)}.cp-sidebar{width:205px;flex-shrink:0;padding:24px 14px;background:#fbfaf6;border-right:1px solid var(--cp-line)}.cp-sidebar a{display:flex;align-items:center;gap:12px;padding:13px 14px;margin-bottom:6px;border-radius:10px;color:#77766e;text-decoration:none;font-weight:600}.cp-sidebar a.active,.cp-sidebar a:hover{background:#efe7dc;color:var(--cp-coffee-dark)}.cp-content{min-width:0;flex:1;padding:28px}.cp-page-head,.cp-section-title{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}.cp-page-head h1,.cp-section-title h2{font-family:'Playfair Display',serif;font-size:27px;margin:0 0 6px;color:var(--cp-ink)}.cp-page-head p,.cp-section-title p{margin:0;color:var(--cp-muted)}.cp-date{background:#fff;border:1px solid var(--cp-line);border-radius:10px;padding:10px 14px;color:var(--cp-muted);font-weight:600}.cp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:24px}.cp-stat-card{background:#fff;border:1px solid var(--cp-line);border-radius:14px;padding:17px 18px;display:flex;align-items:center;gap:13px}.cp-stat-icon{width:42px;height:42px;border-radius:12px;background:#f4e9dc;color:var(--cp-coffee);display:grid;place-items:center;font-size:20px}.cp-stat-card small{display:block;color:var(--cp-muted);font-size:11px;margin-bottom:5px}.cp-stat-card strong{font-size:20px;letter-spacing:-.5px}.cp-pos-layout{display:grid;grid-template-columns:minmax(0,1fr) 340px;gap:20px;align-items:start}.cp-menu-area{min-width:0}.cp-search-row{display:flex;gap:10px;margin-bottom:13px}.cp-search-row input,.cp-search-row select,.cp-field input,.cp-field select,.cp-field textarea,.cp-modal input,.cp-modal select{width:100%;border:1px solid #dedbd1;border-radius:9px;background:#fff;padding:12px 13px;color:var(--cp-ink);font:inherit;min-height:43px}.cp-search-row input{flex:1}.cp-search-row select{max-width:190px}.cp-category-chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:17px}.cp-chip{border:1px solid #e3ded3;background:#fff;color:#6f6b61;border-radius:999px;padding:8px 13px;font:600 12px 'DM Sans',sans-serif;cursor:pointer}.cp-chip.active,.cp-chip:hover{background:var(--cp-coffee);border-color:var(--cp-coffee);color:#fff}.cp-product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}.cp-product-card{background:#fff;border:1px solid var(--cp-line);border-radius:14px;overflow:hidden;cursor:pointer;transition:transform .18s,box-shadow .18s;min-width:0}.cp-product-card:hover{transform:translateY(-3px);box-shadow:var(--cp-shadow)}.cp-product-image{height:128px;background:linear-gradient(145deg,#eee4d7,#faf8f3);display:grid;place-items:center;overflow:hidden;color:#9b7a5d;font-size:32px}.cp-product-image img{width:100%;height:100%;object-fit:cover}.cp-product-info{padding:12px}.cp-product-info small{color:var(--cp-muted);font-size:10px}.cp-product-info h3{font-size:13px;margin:5px 0 10px;line-height:1.35;min-height:34px}.cp-product-bottom{display:flex;align-items:center;justify-content:space-between;gap:6px}.cp-product-price{font-weight:700;font-size:13px}.cp-add-icon{border:0;background:#f2e7db;color:var(--cp-coffee);border-radius:8px;width:29px;height:29px;font-size:20px;cursor:pointer}.cp-cart-panel{background:#fff;border:1px solid var(--cp-line);border-radius:15px;overflow:hidden;position:sticky;top:15px}.cp-cart-head{display:flex;align-items:center;justify-content:space-between;padding:18px;border-bottom:1px solid var(--cp-line)}.cp-cart-head h2{font-family:'Playfair Display',serif;font-size:19px;margin:0 0 4px}.cp-cart-head small{color:var(--cp-muted)}.cp-text-btn{border:0;background:none;color:var(--cp-red);font:600 11px 'DM Sans',sans-serif;cursor:pointer}.cp-cart-items{padding:8px 17px;max-height:350px;overflow:auto}.cp-cart-item{padding:13px 0;border-bottom:1px solid #f0eee8}.cp-cart-item:last-child{border-bottom:0}.cp-cart-item-top{display:flex;justify-content:space-between;gap:10px}.cp-cart-item-name{font-weight:700;font-size:12px}.cp-cart-item-price{font-size:12px;font-weight:700;white-space:nowrap}.cp-cart-item-controls{display:flex;align-items:center;justify-content:space-between;margin-top:9px}.cp-qty{display:flex;align-items:center;gap:9px}.cp-qty button{width:25px;height:25px;border:1px solid var(--cp-line);background:#fff;border-radius:7px;cursor:pointer}.cp-qty span{font-size:12px;font-weight:700}.cp-line-discount{display:flex;gap:6px;margin-top:8px}.cp-line-discount select,.cp-line-discount input{border:1px solid var(--cp-line);border-radius:7px;padding:6px;font:11px 'DM Sans',sans-serif;min-width:0}.cp-line-discount select{width:95px}.cp-line-discount input{width:80px}.cp-cart-summary{padding:15px 18px;background:#fbfaf6;border-top:1px solid var(--cp-line)}.cp-summary-row{display:flex;justify-content:space-between;gap:10px;margin:7px 0;color:var(--cp-muted);font-size:12px}.cp-summary-row.total{border-top:1px dashed #d7d0c4;padding-top:12px;margin-top:12px;color:var(--cp-ink);font-weight:700;font-size:16px}.cp-btn{border:0;border-radius:9px;padding:11px 15px;font:700 12px 'DM Sans',sans-serif;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:10px;text-decoration:none;transition:filter .15s}.cp-btn:hover{filter:brightness(.97)}.cp-btn:disabled{opacity:.45;cursor:not-allowed}.cp-btn-primary{background:linear-gradient(120deg,#785036,#4b2e20);color:#fff;box-shadow:0 5px 13px rgba(76,47,31,.15)}.cp-btn-light{background:#fff;border:1px solid var(--cp-line);color:var(--cp-ink)}.cp-checkout{width:calc(100% - 34px);margin:0 17px 17px;padding:14px}.cp-checkout span{margin-left:auto;font-size:18px}.cp-empty{min-height:150px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:7px;color:#b4a99a;text-align:center}.cp-empty strong{font-size:12px;color:#77766e}.cp-empty span{font-size:11px}.cp-history{margin-top:28px}.cp-section-title h2{font-size:22px}.cp-table-wrap{overflow:auto;border:1px solid var(--cp-line);border-radius:12px;background:#fff}.cp-table{border-collapse:collapse;width:100%;font-size:12px;min-width:560px}.cp-table th,.cp-table td{padding:12px 14px;text-align:left;border-bottom:1px solid #efede7;white-space:nowrap}.cp-table th{color:var(--cp-muted);font-size:10px;text-transform:uppercase;letter-spacing:.5px;background:#fbfaf6}.cp-status{display:inline-block;border-radius:999px;padding:5px 8px;font-size:10px;font-weight:700}.cp-status-paid,.cp-status.is-active{background:#e5f4eb;color:#267a55}.cp-status-unpaid{background:#fff0d9;color:#94621b}.cp-status-cancelled,.cp-status.is-off{background:#fce8e5;color:#a34237}.cp-loading{padding:30px;text-align:center;color:var(--cp-muted);grid-column:1/-1}.cp-modal-backdrop{position:fixed;inset:0;background:rgba(25,22,18,.55);z-index:999999;display:none;align-items:center;justify-content:center;padding:16px}.cp-modal-backdrop.is-open{display:flex}.cp-modal{background:#fff;border-radius:17px;padding:26px;width:min(100%,480px);max-height:92vh;overflow:auto;position:relative;box-shadow:0 24px 80px #0003}.cp-modal h2{font:700 24px 'Playfair Display',serif;margin:0 0 6px}.cp-modal-subtitle{color:var(--cp-muted);font-size:12px;margin:0 0 18px}.cp-modal-close{position:absolute;right:16px;top:12px;background:none;border:0;font-size:26px;cursor:pointer;color:#777}.cp-modal form label,.cp-login-card label{display:block;font-size:12px;font-weight:700;margin:12px 0;color:#4f4b43}.cp-modal form input,.cp-modal form select,.cp-login-card input{display:block;margin-top:6px}.cp-payment-total{display:flex;justify-content:space-between;padding:12px 0;font-size:13px}.cp-payment-total strong{font-size:17px}.cp-change{color:var(--cp-green)}.cp-btn-block{width:100%;margin-top:12px;padding:14px}.cp-toast{position:fixed;bottom:22px;right:22px;z-index:1000000;background:#292720;color:#fff;padding:13px 18px;border-radius:10px;box-shadow:var(--cp-shadow);display:none;max-width:90vw}.cp-toast.show{display:block}.cp-login-wrap{min-height:70vh;padding:35px 15px;display:grid;place-items:center;background:radial-gradient(circle at 20% 20%,#f4e6d5,transparent 35%),linear-gradient(135deg,#faf8f2,#eee5d9);border-radius:18px}.cp-login-card{width:min(100%,420px);background:#fff;border:1px solid #eee7dd;border-radius:20px;padding:35px;box-shadow:0 22px 70px #4a2d1d15}.cp-login-logo{width:58px;height:58px;display:grid;place-items:center;border-radius:17px;background:linear-gradient(145deg,#8c5d3c,#4a2d1d);color:#fff;font-size:28px;margin-bottom:20px}.cp-eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:#9a7656}.cp-login-card h1{font:700 29px 'Playfair Display',serif;margin:8px 0}.cp-login-desc{font-size:13px;line-height:1.6;color:var(--cp-muted);margin-bottom:24px}.cp-login-card input{width:100%;padding:13px;border:1px solid #e4ded3;border-radius:9px;font:13px 'DM Sans',sans-serif}.cp-login-foot{display:block;text-align:center;color:#9b968b;margin-top:20px;font-size:10px}.cp-login-message{font-size:12px;color:var(--cp-red);margin-top:10px}.cp-receipt-print{display:none}
.cp-admin-wrap{max-width:1300px}.cp-admin-heading{display:flex;align-items:center;justify-content:space-between;margin:24px 0}.cp-admin-heading h1{font:700 28px 'Playfair Display',serif;margin:0 0 5px}.cp-admin-heading p{color:#777;margin:0}.cp-admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin:20px 0}.cp-admin-stat,.cp-admin-panel{background:#fff;border:1px solid #e8e3d9;border-radius:14px;padding:20px;box-shadow:0 8px 25px #33200b08}.cp-admin-stat .dashicons{color:#80583d;font-size:23px;width:30px;height:30px}.cp-admin-stat small{display:block;color:#777;font-size:12px;margin:8px 0}.cp-admin-stat strong{display:block;font-size:22px}.cp-admin-panel{margin:18px 0}.cp-admin-panel h2{font:700 19px 'Playfair Display',serif;margin-top:0}.cp-admin-toolbar{display:flex;justify-content:flex-end;margin:16px 0}.cp-admin-product-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cp-admin-product{display:flex;align-items:center;gap:14px;padding:12px;border:1px solid #eee9e0;border-radius:12px;min-width:0}.cp-admin-product-image{width:70px;height:70px;border-radius:10px;overflow:hidden;background:#f5ede3;display:grid;place-items:center;flex-shrink:0;font-size:24px}.cp-admin-product-image img{width:100%;height:100%;object-fit:cover}.cp-admin-product-info{min-width:0;flex:1}.cp-admin-product-info>*{display:block;margin-bottom:4px}.cp-admin-product-info small{color:#777}.cp-admin-product-actions{display:flex;flex-direction:column;gap:6px}.cp-form-panel{max-width:900px}.cp-admin-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.cp-field label,.cp-user-form label,.cp-report-filter label{display:block;font-size:12px;font-weight:700;margin-bottom:7px}.cp-field input,.cp-field select,.cp-field textarea{margin-top:7px}.cp-field-full{grid-column:1/-1}.cp-media-picker{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:8px}.cp-media-picker img{width:100px;height:90px;object-fit:contain;border:1px solid #eee;border-radius:8px}.cp-admin-table-wrap{overflow:auto}.cp-admin-table{min-width:780px}.cp-admin-table td,.cp-admin-table th{vertical-align:middle}.cp-report-filter{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin-bottom:20px}.cp-report-filter label{min-width:140px}.cp-report-filter input,.cp-report-filter select{display:block;margin-top:6px}.cp-report-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:20px 0}.cp-report-summary>div{background:#f8f5ef;border-radius:10px;padding:16px}.cp-report-summary small,.cp-report-summary strong{display:block}.cp-report-summary small{color:#777;margin-bottom:7px}.cp-report-summary strong{font-size:21px}.cp-user-form{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:end}.cp-user-form input,.cp-user-form select{display:block;width:100%;margin-top:6px;padding:8px;border:1px solid #ddd;border-radius:6px}
@media(max-width:1100px){.cp-pos-layout{grid-template-columns:minmax(0,1fr) 310px}.cp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-sidebar{width:170px}.cp-content{padding:20px}}
@media(max-width:760px){.cafe-pos-shell{border-radius:0;margin:0 -10px}.cp-topbar{padding:0 14px;height:65px}.cp-brand strong{font-size:16px}.cp-brand-icon{width:37px;height:37px}.cp-user{gap:7px;font-size:11px}.cp-user .cp-btn{padding:8px}.cp-main{display:block}.cp-sidebar{width:100%;display:flex;gap:6px;padding:8px;border-right:0;border-bottom:1px solid var(--cp-line);overflow:auto}.cp-sidebar a{margin:0;white-space:nowrap;padding:10px 12px;font-size:12px}.cp-content{padding:16px 12px}.cp-page-head h1{font-size:23px}.cp-page-head p{font-size:11px}.cp-date{display:none}.cp-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}.cp-stat-card{padding:10px 8px;display:block}.cp-stat-icon{width:30px;height:30px;font-size:15px;margin-bottom:8px}.cp-stat-card small{font-size:9px;min-height:22px}.cp-stat-card strong{font-size:13px;overflow-wrap:anywhere}.cp-pos-layout{display:flex;flex-direction:column;gap:18px}.cp-menu-area{width:100%}.cp-search-row{gap:7px}.cp-search-row input{min-width:0}.cp-search-row select{max-width:125px;font-size:11px;padding:9px}.cp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.cp-product-image{height:112px}.cp-product-info{padding:10px}.cp-product-info h3{font-size:12px;min-height:32px}.cp-product-price{font-size:12px}.cp-cart-panel{width:100%;position:static}.cp-cart-items{max-height:300px}.cp-history{margin-top:22px}.cp-section-title h2{font-size:19px}.cp-section-title p{font-size:11px}.cp-section-title{align-items:flex-start}.cp-login-card{padding:26px 22px}.cp-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.cp-admin-stat{padding:13px}.cp-admin-stat strong{font-size:18px}.cp-admin-product-list{grid-template-columns:1fr}.cp-admin-form-grid{grid-template-columns:1fr}.cp-field-full{grid-column:auto}.cp-report-summary{grid-template-columns:1fr}.cp-user-form{grid-template-columns:1fr}.cp-admin-heading h1{font-size:23px}.cp-admin-panel{padding:14px}.cp-report-filter{display:grid;grid-template-columns:1fr 1fr}.cp-report-filter label{min-width:0}.cp-report-filter label:first-child{grid-column:1/-1}}
@media print{body *{visibility:hidden!important}.cp-admin-wrap,.cp-admin-wrap *{visibility:visible!important}.cp-admin-wrap{position:absolute;left:0;top:0;width:100%;max-width:none}.cp-admin-heading,.cp-report-filter,.cp-admin-toolbar,.button,.cp-admin-product-actions{display:none!important}.cp-admin-panel{box-shadow:none;border:0;padding:0}.cp-admin-table{min-width:0!important;font-size:10px}.cp-admin-table th,.cp-admin-table td{padding:5px}.cp-report-summary{grid-template-columns:repeat(3,1fr)}}

/* POS layout correction: keep the product catalog fully visible beside the cart. */
.entry-content:has(.cafe-pos-shell), .wp-block-post-content:has(.cafe-pos-shell) { width: calc(100vw - 40px); max-width: 1600px; margin-left: calc(50% - 50vw + 20px); margin-right: auto; }
.cafe-pos-shell { width: 100%; max-width: 1600px; margin-left: auto; margin-right: auto; overflow: visible; }
.cafe-pos-shell .cp-main { min-width: 0; }
.cafe-pos-shell .cp-content { min-width: 0; }
.cafe-pos-shell .cp-pos-layout { grid-template-columns: minmax(0, 1fr) minmax(290px, 330px); gap: 22px; }
.cafe-pos-shell .cp-menu-area { min-width: 0; }
.cafe-pos-shell .cp-product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cafe-pos-shell .cp-cart-panel { position: sticky; top: 14px; min-width: 0; }
.cafe-pos-shell .cp-product-card { min-width: 0; }
.cafe-pos-shell .cp-product-image { height: clamp(110px, 12vw, 175px); }
@media (max-width: 1100px) {
  .entry-content:has(.cafe-pos-shell), .wp-block-post-content:has(.cafe-pos-shell) { width: calc(100vw - 24px); margin-left: calc(50% - 50vw + 12px); }
  .cafe-pos-shell .cp-pos-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; }
  .cafe-pos-shell .cp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .entry-content:has(.cafe-pos-shell), .wp-block-post-content:has(.cafe-pos-shell) { width: calc(100vw - 12px); margin-left: calc(50% - 50vw + 6px); }
  .cafe-pos-shell .cp-pos-layout { display: flex; flex-direction: column; }
  .cafe-pos-shell .cp-menu-area { width: 100%; }
  .cafe-pos-shell .cp-product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cafe-pos-shell .cp-cart-panel { position: static; width: 100%; }
}

/* v1.0.2 visual refresh: denser menu catalog, full product images, polished dashboard. */
.cafe-pos-shell{--cp-ink:#25231f;--cp-muted:#77736b;--cp-cream:#f5f2eb;--cp-coffee:#70452d;--cp-gold:#d8a65d;background:linear-gradient(145deg,#f7f4ee 0%,#f1ece3 100%);box-shadow:0 18px 55px rgba(50,36,23,.07)}
.cafe-pos-shell .cp-topbar{background:linear-gradient(105deg,#fffdf9,#f8f2e9);border-bottom-color:#e8dfd2}
.cafe-pos-shell .cp-brand-icon{background:linear-gradient(145deg,#b08055,#4b2c1b);box-shadow:0 5px 12px #5a372522}
.cafe-pos-shell .cp-sidebar{background:#fbf9f4}
.cafe-pos-shell .cp-sidebar a.active,.cafe-pos-shell .cp-sidebar a:hover{background:linear-gradient(110deg,#eee2d2,#f6eee3);box-shadow:inset 3px 0 #9b6a43;color:#513522}
.cafe-pos-shell .cp-stat-card{border-color:#e8dfd3;box-shadow:0 5px 18px rgba(61,42,25,.035);background:linear-gradient(145deg,#fff,#fdfbf7)}
.cafe-pos-shell .cp-stat-icon{background:linear-gradient(145deg,#f4e6d4,#ead4bd);color:#754a2d}
.cafe-pos-shell .cp-pos-layout{grid-template-columns:minmax(0,1fr) minmax(275px,305px);gap:16px}
.cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:11px;align-items:stretch}
.cafe-pos-shell .cp-product-card{border-color:#e8e0d5;border-radius:12px;box-shadow:0 4px 14px rgba(57,40,24,.035)}
.cafe-pos-shell .cp-product-card:hover{box-shadow:0 12px 25px rgba(57,40,24,.11);border-color:#d7b995}
.cafe-pos-shell .cp-product-image{height:105px;background:#fff;display:flex;align-items:center;justify-content:center;padding:8px}
.cafe-pos-shell .cp-product-image img{width:100%;height:100%;object-fit:contain;object-position:center}
.cafe-pos-shell .cp-product-info{padding:10px 11px 11px}
.cafe-pos-shell .cp-product-info h3{font-size:12px;min-height:30px;margin:5px 0 8px}
.cafe-pos-shell .cp-product-price{font-size:12px;color:#50321f}
.cafe-pos-shell .cp-add-icon{background:#f1e4d5;border:1px solid #ead8c5;font-weight:700}
.cafe-pos-shell .cp-cart-panel{border-color:#e6dccf;box-shadow:0 9px 28px rgba(52,37,24,.055);border-radius:14px}
.cafe-pos-shell .cp-cart-head{background:linear-gradient(110deg,#fff,#faf5ed)}
.cafe-pos-shell .cp-checkout{background:linear-gradient(110deg,#815739,#4c2e1e)}
.cafe-pos-shell .cp-chip.active,.cafe-pos-shell .cp-chip:hover{background:linear-gradient(110deg,#805638,#4c2e1e);border-color:#805638}
.cp-admin-wrap{color:#28251f}
.cp-admin-wrap .cp-admin-heading h1{color:#3f2b1e}
.cp-admin-wrap .cp-admin-stat,.cp-admin-wrap .cp-admin-panel{border-color:#e9e0d4;box-shadow:0 8px 26px rgba(52,37,24,.045);border-radius:14px}
.cp-admin-wrap .cp-admin-stat{background:linear-gradient(145deg,#fff,#faf6ef)}
.cp-admin-wrap .cp-admin-stat .dashicons{color:#94633f;background:#f4e7d8;border-radius:10px;padding:5px;width:34px;height:34px}
.cp-admin-wrap .cp-admin-table thead th{background:#f7f1e8;color:#6c5948}
.cp-admin-wrap .cp-admin-table tbody tr:hover td{background:#fcf8f1}
.cp-admin-wrap .button-primary{background:#70452d;border-color:#70452d}
.cp-admin-wrap .button-primary:hover{background:#52331f;border-color:#52331f}
@media(min-width:1400px){.cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(5,minmax(0,1fr))}.cafe-pos-shell .cp-product-image{height:100px}}
@media(max-width:1200px) and (min-width:761px){.cafe-pos-shell .cp-pos-layout{grid-template-columns:minmax(0,1fr) 275px;gap:12px}.cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.cafe-pos-shell .cp-product-image{height:94px}}
@media(max-width:950px) and (min-width:761px){.cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.cafe-pos-shell .cp-pos-layout{grid-template-columns:minmax(0,1fr) 255px}.cafe-pos-shell .cp-content{padding:18px}}
@media(max-width:760px){.cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.cafe-pos-shell .cp-product-image{height:82px;padding:5px}.cafe-pos-shell .cp-product-info{padding:8px}.cafe-pos-shell .cp-product-info h3{font-size:11px;min-height:29px}.cafe-pos-shell .cp-product-price{font-size:10px}.cafe-pos-shell .cp-add-icon{width:25px;height:25px}.cafe-pos-shell .cp-pos-layout{gap:14px}}
@media(max-width:480px){.cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cafe-pos-shell .cp-product-image{height:105px}.cafe-pos-shell .cp-product-info h3{font-size:12px;min-height:30px}.cafe-pos-shell .cp-product-price{font-size:12px}}

/* Per-item order note */
.cp-item-note{display:block;width:100%;margin-top:8px;padding:8px 9px;border:1px solid var(--cp-line);border-radius:7px;background:#fff;color:var(--cp-ink);font:11px 'DM Sans',sans-serif;resize:vertical;min-height:48px}.cp-item-note:focus{outline:2px solid #d9a85e;outline-offset:1px}

/* Drink variant selectors */
.cp-drink-choice{margin:4px 0 9px}.cp-drink-choice label{display:block;font-size:10px;color:var(--cp-muted);font-weight:600}.cp-drink-choice select{display:block;width:100%;margin-top:4px;padding:7px 8px;border:1px solid var(--cp-line);border-radius:7px;background:#fff;color:var(--cp-ink);font:11px 'DM Sans',sans-serif}.cp-variant-price-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;align-items:center;padding:14px;background:#faf8f3;border:1px solid #e8e1d5;border-radius:10px}.cp-variant-price-grid label{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.cp-variant-price-grid input[type=number]{width:100%;margin-top:5px}.cp-cart-item-name{line-height:1.5}

.cp-cart-variant{display:inline-block;margin-left:4px;padding:2px 6px;border-radius:5px;background:#f4eadc;color:#704728;font-size:10px;font-weight:700}

.cp-cart-variant{display:inline-block;margin-left:6px;padding:2px 6px;border-radius:5px;background:#f4eadc;color:#704728;font-size:10px;font-weight:700}.cp-cart-item-name{display:inline-block}

/* Dashboard premium cards and charts */
.cp-admin-stats{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.cp-admin-stat{position:relative;overflow:hidden;border:1px solid #eadfce!important;border-radius:16px!important;padding:20px 18px!important;box-shadow:0 8px 22px rgba(69,45,26,.06);background:linear-gradient(135deg,#fffaf2 0%,#f2e5d3 100%)!important}
.cp-admin-stat:nth-child(2){background:linear-gradient(135deg,#f0faf5,#d6eee2)!important;border-color:#d2e8dc!important}
.cp-admin-stat:nth-child(3){background:linear-gradient(135deg,#fff8e9,#f6e2b6)!important;border-color:#f0dfb7!important}
.cp-admin-stat:nth-child(4){background:linear-gradient(135deg,#f3f2ff,#e0def8)!important;border-color:#dedcf4!important}
.cp-admin-stat .dashicons{width:38px;height:38px;line-height:38px;text-align:center;border-radius:12px;background:rgba(255,255,255,.75);font-size:20px;color:#80502f}
.cp-admin-stat small{display:block;margin-top:12px;color:#766553;font-size:12px}
.cp-admin-stat strong{display:block;font-size:25px!important;line-height:1.25;margin-top:5px;color:#30251d}
.cp-dashboard-charts{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;margin:18px 0}
.cp-chart-panel{border-radius:16px!important;border:1px solid #e8dfd2!important;box-shadow:0 8px 24px rgba(45,32,20,.05)}
.cp-chart-panel h2{font-size:17px!important;margin-bottom:5px!important}
.cp-chart-canvas{position:relative;height:320px;width:100%;margin-top:12px}
.cp-line-chart{height:300px}
@media(min-width:1200px){.cp-dashboard-charts{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media(max-width:900px){.cp-admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.cp-chart-canvas{height:270px}}
@media(max-width:520px){.cp-admin-stats{grid-template-columns:1fr 1fr;gap:8px}.cp-admin-stat{padding:13px!important}.cp-admin-stat strong{font-size:19px!important}.cp-chart-canvas{height:240px}}
@media print{.cp-dashboard-charts{break-inside:avoid}}


/* Cafe POS 1.0.8: bright, high-energy cashier and login refresh */
.cafe-pos-shell{background:#f3f5ff;border:1px solid #e1e6ff;box-shadow:0 18px 55px rgba(49,58,126,.10)}
.cafe-pos-shell .cp-topbar{background:linear-gradient(105deg,#fff 0%,#f5f2ff 58%,#fff2e9 100%);border-bottom:1px solid #e1ddff}
.cafe-pos-shell .cp-brand-icon{background:linear-gradient(145deg,#ff7a18,#ff3d77 55%,#784bff);box-shadow:0 7px 18px rgba(255,85,99,.28)}
.cafe-pos-shell .cp-sidebar{background:linear-gradient(180deg,#f6f3ff 0%,#fff8f1 100%);border-right:1px solid #e5e0ff}
.cafe-pos-shell .cp-sidebar a{transition:all .18s ease}
.cafe-pos-shell .cp-sidebar a.active,.cafe-pos-shell .cp-sidebar a:hover{background:linear-gradient(100deg,#6d4aff,#a34dff);color:#fff;box-shadow:0 7px 17px rgba(109,74,255,.22);transform:translateX(2px)}
.cafe-pos-shell .cp-content{background:linear-gradient(145deg,#f8f8ff 0%,#fffaf5 100%)}
.cafe-pos-shell .cp-page-head h1,.cafe-pos-shell .cp-section-title h2{color:#32235f}
.cafe-pos-shell .cp-date{border-color:#e4ddff;background:#fff;color:#6547bd;box-shadow:0 4px 12px rgba(94,67,175,.06)}
.cafe-pos-shell .cp-stat-card{border:1px solid #e6e0ff;background:linear-gradient(135deg,#fff 0%,#f2efff 100%);box-shadow:0 8px 20px rgba(85,63,155,.06)}
.cafe-pos-shell .cp-stat-card:nth-child(2){background:linear-gradient(135deg,#fff 0%,#e8fff5 100%);border-color:#ccefe0}
.cafe-pos-shell .cp-stat-card:nth-child(3){background:linear-gradient(135deg,#fff 0%,#fff0e5 100%);border-color:#ffdfc7}
.cafe-pos-shell .cp-stat-icon{background:linear-gradient(145deg,#ffb547,#ff7b54);color:#fff;box-shadow:0 5px 12px rgba(255,123,84,.18)}
.cafe-pos-shell .cp-stat-card:nth-child(2) .cp-stat-icon{background:linear-gradient(145deg,#26c485,#12a875)}
.cafe-pos-shell .cp-stat-card:nth-child(3) .cp-stat-icon{background:linear-gradient(145deg,#ffc247,#f28a24)}
.cafe-pos-shell .cp-chip.active,.cafe-pos-shell .cp-chip:hover{background:linear-gradient(100deg,#7048ff,#ad48f4);border-color:#8b4bff;box-shadow:0 5px 14px rgba(128,72,255,.2)}
.cafe-pos-shell .cp-product-card{border-color:#e7e1ff;box-shadow:0 5px 18px rgba(54,40,111,.04)}
.cafe-pos-shell .cp-product-card:hover{border-color:#b9a7ff;box-shadow:0 12px 28px rgba(95,66,190,.15)}
.cafe-pos-shell .cp-product-image{background:linear-gradient(145deg,#eee9ff,#fff0e4)}
.cafe-pos-shell .cp-add-icon{background:linear-gradient(145deg,#ff8b45,#ff4e76);color:#fff;box-shadow:0 4px 10px rgba(255,78,118,.18)}
.cafe-pos-shell .cp-cart-panel{border-color:#e4ddff;box-shadow:0 10px 28px rgba(59,43,132,.08)}
.cafe-pos-shell .cp-cart-head{background:linear-gradient(105deg,#f5f1ff,#fff6ec);border-bottom-color:#e6dfff}
.cafe-pos-shell .cp-cart-summary{background:linear-gradient(135deg,#f5f1ff,#fff7ee);border-top-color:#e7ddff}
.cafe-pos-shell .cp-btn-primary{background:linear-gradient(100deg,#7048ff,#a846f4 58%,#ff5f8f);color:#fff;box-shadow:0 7px 18px rgba(122,67,236,.25)}
.cafe-pos-shell .cp-btn-primary:hover{filter:brightness(1.06);transform:translateY(-1px)}
.cafe-pos-shell .cp-btn-light{background:#fff;border:1px solid #e4ddff;color:#6547bd}
.cafe-pos-shell .cp-modal-card{border:1px solid #e3dcff;box-shadow:0 24px 80px rgba(38,25,94,.22)}
.cp-login-wrap{position:relative;isolation:isolate;min-height:76vh;display:grid;place-items:center;padding:36px 18px;border-radius:22px;overflow:hidden;background:radial-gradient(circle at 12% 15%,rgba(255,255,255,.9) 0 5%,transparent 22%),radial-gradient(circle at 90% 85%,rgba(255,218,154,.85),transparent 28%),linear-gradient(135deg,#5637dc 0%,#8b43ee 38%,#f04f9a 72%,#ff984f 100%)}
.cp-login-wrap:before,.cp-login-wrap:after{content:"";position:absolute;z-index:-1;border-radius:50%;filter:blur(1px);pointer-events:none}
.cp-login-wrap:before{width:300px;height:300px;top:-100px;right:-45px;background:rgba(255,255,255,.15)}
.cp-login-wrap:after{width:230px;height:230px;bottom:-90px;left:-40px;background:rgba(255,213,115,.22)}
.cp-login-card{width:min(100%,440px);padding:34px 32px 28px;border:1px solid rgba(255,255,255,.8)!important;border-radius:24px!important;background:rgba(255,255,255,.96)!important;box-shadow:0 28px 75px rgba(38,20,92,.3)!important;backdrop-filter:blur(12px)}
.cp-login-logo{width:70px!important;height:70px!important;margin:0 auto 16px;border-radius:22px!important;display:grid;place-items:center;background:linear-gradient(145deg,#ff8a35,#ff4f83 58%,#8c4bff)!important;color:#fff!important;font-size:34px!important;box-shadow:0 12px 25px rgba(255,89,112,.3)}
.cp-login-card .cp-eyebrow{color:#8751e8!important;font-weight:800;letter-spacing:2px;font-size:10px;text-align:center}
.cp-login-card h1{text-align:center!important;color:#30215f!important;font-size:31px!important;margin:8px 0!important}
.cp-login-desc{text-align:center;color:#77708f!important;line-height:1.6;margin:0 0 24px!important}
.cp-login-card form label{display:block;color:#4d426f;font-weight:700;font-size:12px;margin:0 0 14px}
.cp-login-card input{display:block;width:100%;margin-top:7px;padding:13px 14px;min-height:47px;border:1px solid #e3ddf5;border-radius:11px;background:#fbfaff;color:#30215f;font:inherit;outline:none;transition:border-color .18s,box-shadow .18s}
.cp-login-card input:focus{border-color:#9562f5;box-shadow:0 0 0 4px rgba(149,98,245,.13)}
.cp-login-card .cp-btn-primary{background:linear-gradient(100deg,#6c45ef,#a244ed 55%,#ff548c)!important;color:#fff!important;border:0!important;border-radius:12px!important;min-height:48px;box-shadow:0 9px 22px rgba(127,67,231,.28);transition:transform .18s,filter .18s}
.cp-login-card .cp-btn-primary:hover{filter:brightness(1.06);transform:translateY(-2px)}
.cp-login-foot{display:block;text-align:center;margin-top:19px;color:#948aa9!important}
@media(max-width:700px){.cafe-pos-shell{border-radius:12px}.cafe-pos-shell .cp-topbar{padding:0 14px}.cafe-pos-shell .cp-content{padding:16px}.cafe-pos-shell .cp-sidebar{width:145px;padding:15px 8px}.cafe-pos-shell .cp-sidebar a{padding:11px 9px;font-size:12px}.cp-login-wrap{min-height:70vh;padding:22px 12px}.cp-login-card{padding:27px 21px 23px;border-radius:19px!important}}
@media(max-width:420px){.cafe-pos-shell .cp-main{display:block}.cafe-pos-shell .cp-sidebar{width:100%;display:flex;gap:5px;padding:8px;overflow-x:auto;border-right:0;border-bottom:1px solid #e5e0ff}.cafe-pos-shell .cp-sidebar a{white-space:nowrap;margin:0;flex-shrink:0}.cafe-pos-shell .cp-sidebar a.active,.cafe-pos-shell .cp-sidebar a:hover{transform:none}}


/* v1.1.5: precise cashier layout and visible quantity controls */
.cafe-pos-shell .cp-pos-layout{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) minmax(270px,300px)!important;
  align-items:start;
  gap:16px!important;
  width:100%;
}
.cafe-pos-shell .cp-menu-area{width:auto!important;min-width:0!important;max-width:none!important}
.cafe-pos-shell .cp-product-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(145px,1fr))!important;
  gap:12px!important;
  width:100%!important;
  align-items:stretch;
}
.cafe-pos-shell .cp-product-card{width:100%!important;max-width:none!important;min-width:0!important}
.cafe-pos-shell .cp-product-image{height:clamp(100px,10vw,145px)!important}
.cafe-pos-shell .cp-product-info{min-width:0}
.cafe-pos-shell .cp-product-info h3{overflow-wrap:anywhere}
.cafe-pos-shell .cp-product-price{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;flex-wrap:wrap}
.cafe-pos-shell .cp-add-icon{flex:0 0 28px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;color:#fff!important;background:linear-gradient(145deg,#ff8b45,#ff4e76)!important;line-height:1!important}
.cafe-pos-shell .cp-cart-panel{width:100%;min-width:0!important}
.cafe-pos-shell .cp-qty{display:inline-flex!important;align-items:center!important;gap:8px!important}
.cafe-pos-shell .cp-qty button,
.cafe-pos-shell .cp-qty button:hover,
.cafe-pos-shell .cp-qty button:focus{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:32px!important;height:32px!important;min-width:32px!important;
  padding:0!important;
  border:1px solid #d8c5b7!important;
  border-radius:8px!important;
  background:#fff!important;
  color:#633b25!important;
  font-size:20px!important;font-weight:800!important;
  line-height:1!important;
  text-indent:0!important;
  opacity:1!important;
  box-shadow:0 1px 3px rgba(50,30,15,.08)!important;
  cursor:pointer;
}
.cafe-pos-shell .cp-qty button:hover{background:#fff3e8!important;border-color:#b98969!important}
.cafe-pos-shell .cp-qty span{min-width:18px;text-align:center;color:#30251d!important;font-weight:800!important}
@media(max-width:1050px) and (min-width:761px){
  .cafe-pos-shell .cp-pos-layout{grid-template-columns:minmax(0,1fr) 270px!important;gap:12px!important}
  .cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(auto-fit,minmax(135px,1fr))!important;gap:10px!important}
}
@media(max-width:760px){
  .cafe-pos-shell .cp-pos-layout{display:flex!important;flex-direction:column!important;gap:18px!important}
  .cafe-pos-shell .cp-menu-area,.cafe-pos-shell .cp-cart-panel{width:100%!important}
  .cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .cafe-pos-shell .cp-product-image{height:clamp(105px,28vw,150px)!important}
}
@media(max-width:390px){
  .cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  .cafe-pos-shell .cp-product-info{padding:8px!important}
  .cafe-pos-shell .cp-product-price{font-size:11px!important}
}


/* v1.1.7: use more of the page width and show four menu cards per row */
.cafe-pos-shell{
  width:calc(100% - 24px)!important;
  max-width:1480px!important;
  margin:18px auto!important;
}
.cafe-pos-shell .cp-main{width:100%!important;min-width:0!important}
.cafe-pos-shell .cp-content{min-width:0!important;padding:24px!important}
.cafe-pos-shell .cp-pos-layout{
  grid-template-columns:minmax(0,1fr) 280px!important;
  gap:16px!important;
  width:100%!important;
}
.cafe-pos-shell .cp-menu-area{min-width:0!important;width:100%!important}
.cafe-pos-shell .cp-product-grid{
  grid-template-columns:repeat(4,minmax(0,1fr))!important;
  gap:12px!important;
}
.cafe-pos-shell .cp-product-card{min-width:0!important;width:100%!important}
.cafe-pos-shell .cp-product-image{height:clamp(92px,8vw,125px)!important}
.cafe-pos-shell .cp-product-info{padding:10px!important}
.cafe-pos-shell .cp-product-info h3{font-size:13px!important;line-height:1.35!important;min-height:34px}
.cafe-pos-shell .cp-product-price{font-size:12px!important;gap:5px!important}
@media(min-width:1200px){
  .cafe-pos-shell{width:calc(100% - 32px)!important;max-width:1600px!important}
  .cafe-pos-shell .cp-content{padding:28px!important}
  .cafe-pos-shell .cp-pos-layout{grid-template-columns:minmax(0,1fr) 300px!important;gap:20px!important}
  .cafe-pos-shell .cp-product-grid{gap:14px!important}
}
@media(max-width:1000px) and (min-width:761px){
  .cafe-pos-shell{width:calc(100% - 16px)!important;margin:8px auto!important}
  .cafe-pos-shell .cp-content{padding:16px!important}
  .cafe-pos-shell .cp-pos-layout{grid-template-columns:minmax(0,1fr) 255px!important;gap:12px!important}
  .cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:8px!important}
  .cafe-pos-shell .cp-product-info{padding:7px!important}
  .cafe-pos-shell .cp-product-image{height:85px!important}
}
@media(max-width:760px){
  .cafe-pos-shell{width:100%!important;max-width:none!important;margin:0!important;border-radius:0!important}
  .cafe-pos-shell .cp-content{padding:14px!important}
  .cafe-pos-shell .cp-pos-layout{display:flex!important;flex-direction:column!important;gap:16px!important}
  .cafe-pos-shell .cp-product-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .cafe-pos-shell .cp-product-image{height:clamp(100px,28vw,145px)!important}
}


/* v1.1.8: nama pemesan dan manajemen bill gantung */
.cafe-pos-shell .cp-cart-customer{padding:12px 16px;border-bottom:1px solid var(--cp-line);background:#fff}
.cafe-pos-shell .cp-cart-customer label{display:block;font-size:11px;font-weight:700;color:#65584d;margin:0 0 5px}
.cafe-pos-shell .cp-cart-customer input{display:block;width:100%;min-width:0;margin:0 0 10px;padding:10px 11px;border:1px solid #e1d9ce;border-radius:8px;background:#fff;color:#302820;font:12px 'DM Sans',sans-serif;box-sizing:border-box}
.cafe-pos-shell .cp-cart-customer input:last-child{margin-bottom:0}
.cafe-pos-shell .cp-cart-actions{padding:0 14px 14px}
.cafe-pos-shell .cp-cart-actions .cp-btn-block{margin:8px 0 0;width:100%}
.cafe-pos-shell .cp-new-order{display:block;width:100%;padding:10px;margin-top:5px;text-align:center;color:#6f42c1}
.cafe-pos-shell .cp-pending-bills{border-top:1px solid var(--cp-line);padding:14px;background:#fbfaf7}
.cafe-pos-shell .cp-pending-title{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:13px;color:#392b22}
.cafe-pos-shell .cp-muted{font-size:11px;color:#898176;margin:8px 0}
.cafe-pos-shell .cp-pending-bill{padding:10px;margin:8px 0;border:1px solid #eee3d7;border-radius:10px;background:#fff;display:flex;flex-direction:column;gap:9px}
.cafe-pos-shell .cp-pending-bill-info{display:flex;flex-direction:column;gap:4px;min-width:0}
.cafe-pos-shell .cp-pending-bill-info strong{font-size:12px;color:#30251d;overflow-wrap:anywhere}
.cafe-pos-shell .cp-pending-bill-info small{font-size:10px;color:#81786f;overflow-wrap:anywhere}
.cafe-pos-shell .cp-pending-bill-info b{font-size:13px;color:#6b3f25}
.cafe-pos-shell .cp-pending-bill-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.cafe-pos-shell .cp-pending-bill-actions .cp-btn{font-size:10px;padding:9px 6px;min-width:0}
@media(max-width:760px){.cafe-pos-shell .cp-pending-bill-actions .cp-btn{font-size:11px}.cafe-pos-shell .cp-pending-bills{padding:12px}}
