
*{margin:0;padding:0;box-sizing:border-box}
body{font-family:'Inter',sans-serif;background:#ffffff;color:#111;overflow:hidden}
::-webkit-scrollbar{width:6px;height:6px}
::-webkit-scrollbar-thumb{background:#ccc}
.header{height:56px;background:#ffffff;border-bottom:1px solid #e5e5e5;display:flex;align-items:center;justify-content:space-between;padding:0 16px;flex-shrink:0;z-index:30}
.header-left{display:flex;align-items:center;gap:12px}
.menu-btn{width:38px;height:38px;background:#111;color:#fff;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;font-size:18px}
.menu-btn:hover{background:#CC0000}
.logo-img{height:32px;max-width:150px;object-fit:contain;display:none}
.logo-img.show{display:block}
.logo-text{font-weight:800;font-size:18px;display:none}
.logo-text.show{display:block}
.overlay{position:fixed;inset:0;background:rgba(0,0,0,.4);z-index:40;opacity:0;pointer-events:none;transition:opacity .25s}
.overlay.show{opacity:1;pointer-events:auto}
.sidebar{position:fixed;top:0;left:0;height:100vh;width:280px;background:#1c0000;z-index:50;transform:translateX(-100%);transition:transform .32s cubic-bezier(0.68, -0.55, 0.265, 1.35);display:flex;flex-direction:column;overflow:hidden;border-right:5px solid #f5f5f5}
.sidebar.open{transform:translateX(0)}
.sidebar-nav{flex:1;overflow-y:auto;display:flex;flex-direction:column;padding:0}
.nav-item{padding:8px 20px;color:#ffffff;font-size:13px;cursor:pointer;width:100%;display:flex;align-items:center;gap:10px;border:none;background:transparent;text-align:left;line-height:1.2}
.nav-item:hover{background:#2e1414;color:#ffffff}
.nav-item.active{background:#2e1414;color:#ffffff}
.nav-item.settings{margin-top:auto;background:rgba(0,0,0,.25);border-top:1px solid rgba(255,255,255,.15)}
.main{flex:1;display:flex;flex-direction:column;overflow:hidden;height:100vh}
.content{flex:1;overflow:auto;padding:20px;background:#f9f9f9}
.card{background:#fff;border:1px solid #e5e5e5;padding:16px}
.btn{background:#CC0000;color:#fff;border:none;padding:10px 18px;font-weight:600;cursor:pointer;font-size:13px}
.btn:hover{background:#990000}
.btn-black{background:#111;color:#fff}
.btn-ghost{background:#f1f1f1;color:#111;border:1px solid #e5e5e5}
.input,select{width:100%;padding:10px 12px;border:1px solid #d1d5db;font-size:13px;outline:none;background:#fff}
.input:focus{border-color:#CC0000}
.table{width:100%;border-collapse:collapse}
.table th{font-size:11px;color:#666;text-align:left;padding:10px 12px;border-bottom:2px solid #e5e5e5;font-weight:600;text-transform:uppercase;background:#fafafa}
.table td{padding:11px 12px;font-size:13px;border-bottom:1px solid #f0f0f0}
.modal{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:60;padding:20px}
.modal.open{display:flex}
.modal-box{background:#fff;width:100%;max-width:480px;padding:24px;max-height:90vh;overflow:auto;border:1px solid #e5e5e5}
.app-popup{position:fixed;inset:0;background:rgba(0,0,0,.5);display:none;align-items:center;justify-content:center;z-index:70;padding:20px}
.app-popup.show{display:flex}
.app-popup-box{background:#fff;width:100%;max-width:420px;padding:0;border:1px solid #e5e5e5;box-shadow:0 10px 30px rgba(0,0,0,.2)}
.app-popup-header{background:#1c0000;color:#fff;padding:14px 18px;font-weight:700;font-size:14px;display:flex;justify-content:space-between;align-items:center}
.app-popup-body{padding:18px;font-size:13px;line-height:1.6;color:#333}
.app-popup-footer{padding:12px 18px;display:flex;justify-content:flex-end;gap:8px;border-top:1px solid #eee;background:#fafafa}
.pos-layout{display:grid;grid-template-columns:1fr 360px;gap:16px;height:calc(100vh - 120px)}
.pos-products{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:8px;align-content:start;overflow:auto;padding:2px}
.p-card{background:#fff;border:1px solid #e5e5e5;padding:12px;cursor:pointer}
.p-card:hover{border-color:#CC0000;background:#ffe6e6}
.cart{background:#fff;border:1px solid #e5e5e5;display:flex;flex-direction:column;overflow:hidden}
.logo-upload{border:1px dashed #d1d5db;padding:16px;text-align:center;background:#fafafa;cursor:pointer}
.logo-upload:hover{border-color:#CC0000;background:#fff5f5}
.logo-preview{max-width:150px;max-height:60px;object-fit:contain;margin:10px auto;display:block}
