/* Layout kasir; aturan cetak tetap memakai stylesheet utama. */
@media screen {
 .pos-shell .catalog,.pos-shell .product-grid,.pos-shell .catalog-head{min-width:0}
 .pos-shell .search{margin:0;max-width:none;width:100%}
 .pos-shell .search input{min-width:0;margin:0;min-height:44px}
 .pos-shell .product-card{min-width:0;display:flex;flex-direction:column;align-self:start}
 .pos-shell .product-art{width:100%;height:auto;aspect-ratio:4/3}
 .pos-shell .product-photo{object-fit:contain;background:#faf8f4}
 .pos-shell .product-tag{max-width:calc(100% - 18px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .pos-shell .product-info{width:100%;padding:11px 7px 8px}
 .pos-shell .product-info>strong{overflow-wrap:anywhere;font-size:14px;margin-bottom:5px}
 .pos-shell .product-info>small{margin-bottom:10px}
 .pos-shell .product-info>div{gap:8px;align-items:flex-end}
 .product-price-lines{display:grid;gap:4px;flex:1;min-width:0}
 .product-price-lines>span{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:8px}
 .product-price-lines em{font-size:10px;font-style:normal;color:var(--muted)}
 .pos-shell .product-price-lines b{font-size:12px;line-height:1.35;white-space:nowrap;text-align:right}
 .pos-shell .add-dot{width:30px;height:30px}
 .pos-shell .product-art>.add-dot{position:absolute;right:8px;bottom:8px;z-index:1;background:var(--orange);color:white;box-shadow:0 2px 8px #21130e20}
 .pos-shell .cart{display:flex;flex-direction:column;max-height:calc(100dvh - 40px)}
 .pos-shell .cart-items{min-height:96px;max-height:calc(100dvh - 370px);overscroll-behavior:contain}
 .pos-shell .cart-head,.pos-shell .cart-total{flex-shrink:0}
 .pos-shell .cart-total>.cart-actions{display:grid;grid-template-columns:1fr;gap:8px}
 .pos-shell .cart-actions>.save-bill-button{margin:0}
 .pos-shell .cart-actions>button{min-width:0;min-height:44px}
 .pos-shell .item-top strong{overflow-wrap:anywhere;min-width:0}
 .pos-shell .qty button,.pos-shell .item-top>button{width:36px;height:36px;flex-shrink:0}
 .cart-close,.cart-backdrop{display:none}
 .mobile-cart-total{display:grid;gap:3px;text-align:left;min-width:0}
 .mobile-cart-total b{font-size:16px;color:#fff;letter-spacing:-.3px;white-space:nowrap}
 .mobile-cart-total small{font-size:11px;color:#c7b4a6}
 .cart-sheet-open{overflow:hidden}
}
@media screen and (max-width:1180px) {
 .pos-shell{display:grid;grid-template-columns:minmax(0,1fr);min-height:100dvh}
 .pos-shell .sidebar{position:relative;height:auto;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;gap:8px 16px;padding:12px 20px 8px}
 .pos-shell .brand{grid-column:1;grid-row:1;margin:0;min-width:0;gap:10px;font-size:13px}
 .pos-shell .brand img{width:36px;height:36px}
 .pos-shell .brand small{font-size:8px;letter-spacing:1.4px}
 .pos-shell .nav-label,.pos-shell .live-dot{display:none}
 .pos-shell .sidebar-bottom{position:static;grid-column:2;grid-row:1;padding:0;margin:0;min-width:0}
 .pos-shell .profile{padding:0;border:0;gap:9px}
 .pos-shell .profile .avatar{display:none}
 .pos-shell .profile strong{max-width:140px;font-size:11px;white-space:nowrap}
 .pos-shell .profile small{display:none}
 .pos-shell .profile .profile-edit{margin:0;font-size:10px;min-height:24px;padding:4px 0}
 .pos-shell .profile>button{width:40px;height:44px;padding:8px;margin:0}
 .pos-shell .sidebar nav{grid-column:1/-1;grid-row:2;display:flex;min-width:0;gap:6px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#72513a transparent;padding-bottom:3px}
 .pos-shell .sidebar nav button{flex-shrink:0;gap:8px;min-height:44px;padding:10px 13px;font-size:12px}
 .pos-shell .sidebar nav button span{width:auto;font-size:16px}
 .pos-shell .workspace{padding:20px;min-width:0}
 .pos-shell .topbar{margin-bottom:20px}
 .pos-shell .topbar h1{font-size:25px}
 .pos-shell .catalog-head{gap:12px}
 .pos-shell .catalog-head h2{font-size:18px}
 .pos-shell .categories{margin:14px 0 16px;gap:8px;scrollbar-width:thin;overscroll-behavior-x:contain}
 .pos-shell .categories button{min-height:40px;padding:9px 14px;font-size:11px}
 .pos-shell .pos-layout{grid-template-columns:minmax(0,1fr) minmax(280px,32%);gap:18px}
 .pos-shell .product-grid{grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px}
 .pos-shell .cart{padding:18px}
}
/* HP portrait dan tablet portrait: keranjang sebagai panel bawah. */
@media screen and (max-width:679px), screen and (max-width:900px) and (orientation:portrait) {
 .pos-shell .sidebar{padding:10px 14px 6px;gap:6px 12px}
 .pos-shell .brand{font-size:12px;gap:8px}
 .pos-shell .profile strong{max-width:115px}
 .pos-shell .workspace{padding:18px 14px calc(28px + env(safe-area-inset-bottom,0px))}
 .pos-shell.has-cart .workspace{padding-bottom:calc(100px + env(safe-area-inset-bottom,0px))}
 .pos-shell .topbar{margin-bottom:20px;align-items:flex-start}
 .pos-shell .topbar h1{font-size:23px}
 .pos-shell .topbar .eyebrow{font-size:8px;letter-spacing:1px;margin-bottom:7px}
 .pos-shell .date-pill{font-size:10px;padding:8px 10px}
 .pos-shell .pos-layout{display:block}
 .pos-shell .product-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .pos-shell .product-info{padding:10px 5px 6px}
 .pos-shell .product-info>strong{font-size:13px}
 .pos-shell .product-price-lines b{font-size:11px}
 .pos-shell .cart{display:none}
 .pos-shell .mobile-cart{display:flex;align-items:center;justify-content:space-between;gap:12px;position:fixed;left:14px;right:14px;bottom:calc(12px + env(safe-area-inset-bottom,0px));padding:12px 17px;min-height:60px;border-radius:14px;z-index:5}
 .pos-shell .mobile-cart>span:last-child{color:#ffb677;font-size:12px;font-weight:600}
 .pos-shell.cart-open .mobile-cart{display:none}
 .pos-shell.cart-open .cart-backdrop{display:block;position:fixed;inset:0;z-index:10;background:#21130e80;cursor:pointer}
 .pos-shell.cart-open .cart{display:flex;position:fixed;inset:auto 0 0;z-index:11;width:100%;height:82dvh;max-height:calc(100dvh - 20px);margin:0;border-radius:22px 22px 0 0;padding:18px 20px calc(18px + env(safe-area-inset-bottom,0px));box-shadow:0 -8px 40px #21130e20}
 .pos-shell .cart-head{padding-bottom:14px;gap:8px}
 .pos-shell .cart-head>div{flex:1;min-width:0}
 .pos-shell .cart-close{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border-radius:50%;background:var(--cream);color:var(--ink);font-size:24px}
 .pos-shell .cart-items{flex:1;min-height:0;max-height:none;overflow-y:auto}
 .pos-shell .cart-total{padding-top:14px}
 .pos-shell .cart-total small{margin:8px 0 14px}
 .pos-shell .cart-hint{margin-top:9px}
 .pos-shell .workspace-foot{margin-top:25px}
}
@media screen and (min-width:480px) and (max-width:900px) and (orientation:portrait) {
 .pos-shell .product-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
 .pos-shell .workspace{padding-left:20px;padding-right:20px}
 .pos-shell.cart-open .cart{max-width:560px;left:auto;right:0;border-radius:22px 0 0 0}
}
/* Landscape: gunakan tinggi layar untuk dua area gulir yang terpisah. */
@media screen and (min-width:680px) and (max-width:1180px) and (orientation:landscape) {
 .pos-shell{height:100dvh;min-height:0;grid-template-rows:auto minmax(0,1fr);overflow:hidden}
 .pos-shell .workspace{display:flex;flex-direction:column;min-height:0;padding:18px 20px}
 .pos-shell .topbar{flex-shrink:0;margin-bottom:16px}
 .pos-shell #content{flex:1;min-height:0}
 .pos-shell .pos-layout{height:100%;align-items:stretch}
 .pos-shell .catalog{display:flex;flex-direction:column;min-height:0}
 .pos-shell .catalog-head,.pos-shell .categories{flex-shrink:0}
 .pos-shell .product-grid{flex:1;min-height:0;align-content:start;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:2px 4px 12px 0}
 .pos-shell .cart{position:static;height:100%;max-height:none;min-height:0}
 .pos-shell .cart-head{padding-bottom:14px}
 .pos-shell .cart-items{flex:1;min-height:0;max-height:none;overflow-y:auto}
 .pos-shell .cart-total{padding-top:14px}
 .pos-shell .cart-total small{margin:8px 0 14px}
 .pos-shell .workspace-foot,.pos-shell .mobile-cart,.pos-shell .cart-backdrop,.pos-shell .cart-close{display:none}
}
@media screen and (min-width:680px) and (max-width:1180px) and (orientation:landscape) and (max-height:600px) {
 .pos-shell .sidebar{padding:8px 14px 4px;gap:8px 14px;grid-template-columns:auto minmax(0,1fr) auto;grid-template-rows:auto;align-items:center}
 .pos-shell .sidebar-bottom{grid-column:3}
 .pos-shell .sidebar nav{grid-column:2;grid-row:1}
 .pos-shell .brand img{width:30px;height:30px}
 .pos-shell .sidebar nav button{min-height:40px;padding:8px 12px;font-size:11px}
 .pos-shell .workspace{padding:10px 14px}
 .pos-shell .topbar{display:none}
 .pos-shell .pos-layout{grid-template-columns:minmax(0,1fr) 275px;gap:14px}
 .pos-shell .catalog-head{flex-direction:row;align-items:center;gap:12px}
 .pos-shell .catalog-head h2{flex-shrink:0;font-size:14px}
 .pos-shell .search{flex:1;min-width:0;padding:0 10px}
 .pos-shell .search input{font-size:12px;min-height:40px;padding:10px 0}
 .pos-shell .categories{margin:8px 0;gap:6px}
 .pos-shell .categories button{min-height:34px;padding:7px 12px;font-size:10px}
 .pos-shell .product-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));gap:10px}
 .pos-shell .product-art{height:90px;aspect-ratio:auto}
 .pos-shell .product-info{padding:8px 4px 4px}
 .pos-shell .product-info>strong{font-size:12px;margin-bottom:3px}
 .pos-shell .product-info>small{font-size:9px;margin-bottom:6px}
 .pos-shell .product-price-lines{gap:2px}
 .pos-shell .product-price-lines b{font-size:10px}
 .pos-shell .cart{padding:12px 14px}
 .pos-shell .cart-head{padding-bottom:9px}
 .pos-shell .cart-head .eyebrow{display:none}
 .pos-shell .cart-head h2{font-size:17px}
 .pos-shell .cart-item{padding:10px 0}
 .pos-shell .item-top strong{font-size:12px}
 .pos-shell .item-note{padding:7px;font-size:11px}
 .pos-shell .cart-total{padding-top:9px}
 .pos-shell .cart-total strong{font-size:19px}
 .pos-shell .cart-total>small,.pos-shell .cart-hint{display:none}
 .pos-shell .cart-total>.cart-actions{grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}
 .pos-shell .cart-actions>button{font-size:10px;padding:9px 8px;line-height:1.4}
 .pos-shell .cart-actions .primary span{display:none}
}
@media screen and (max-width:679px) and (orientation:landscape) and (max-height:430px) {
 .pos-shell .sidebar{grid-template-columns:minmax(0,1fr) auto auto;grid-template-rows:auto;align-items:center;padding:6px 12px;gap:8px}
 .pos-shell .sidebar-bottom{grid-column:3}
 .pos-shell .sidebar nav{grid-column:2;grid-row:1;gap:4px;padding:0}
 .pos-shell .sidebar nav button{font-size:0;min-width:36px;min-height:40px;padding:9px;justify-content:center}
 .pos-shell .sidebar nav button span{font-size:17px}
 .pos-shell .brand img{width:28px;height:28px}
 .pos-shell .brand{font-size:10px}
 .pos-shell .brand small{display:none}
 .pos-shell .profile strong{max-width:95px;font-size:10px}
 .pos-shell .topbar{display:none}
 .pos-shell .workspace{padding-top:12px}
 .pos-shell .catalog-head{flex-direction:row;align-items:center;gap:12px}
 .pos-shell .catalog-head h2{font-size:14px;flex-shrink:0}
 .pos-shell .search{flex:1;min-width:0}
 .pos-shell .search input{font-size:12px}
 .pos-shell .categories{margin:8px 0 12px}
 .pos-shell .product-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
 .pos-shell .product-art{height:85px;aspect-ratio:auto}
 .pos-shell.cart-open .cart{height:96dvh;max-height:calc(100dvh - 8px);padding:12px 16px}
 .pos-shell .cart-head .eyebrow,.pos-shell .cart-total>small,.pos-shell .cart-hint{display:none}
 .pos-shell .cart-head{padding-bottom:8px}
 .pos-shell .cart-total>.cart-actions{grid-template-columns:1fr 1fr;margin-top:10px}
 .pos-shell .cart-actions>button{font-size:11px;padding:9px}
 .pos-shell .cart-actions .primary span{display:none}
}
@media screen and (max-width:359px) {
 .pos-shell .sidebar{padding-left:10px;padding-right:10px;gap:5px 8px}
 .pos-shell .brand{font-size:10px;gap:6px}
 .pos-shell .brand small{font-size:6px}
 .pos-shell .brand img{width:30px;height:30px}
 .pos-shell .profile strong{max-width:95px;font-size:10px}
 .pos-shell .workspace{padding-left:10px;padding-right:10px}
 .pos-shell .product-grid{gap:9px}
 .pos-shell .date-pill{display:none}
 .pos-shell .product-price-lines b{font-size:10px}
}
