
:root{--bg:#f6f6f7;--card:#fff;--ink:#202223;--muted:#6d7175;--line:#e1e3e5;--green:#008060;--green2:#006e52;--blue:#2c6ecb;--red:#d72c0d;--orange:#b7791f;--shadow:0 1px 0 rgba(0,0,0,.05),0 8px 24px rgba(0,0,0,.08)}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;background:var(--bg);color:var(--ink)}button,input,select,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}.hidden{display:none!important}
.login-screen{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:18px;background:radial-gradient(circle at top left,rgba(0,128,96,.16),transparent 30%),linear-gradient(180deg,#f6f6f7,#eef4f1)}
.login-card{width:100%;max-width:430px;background:#fff;border:1px solid var(--line);border-radius:22px;padding:24px;box-shadow:var(--shadow)}.brand{display:flex;align-items:center;gap:12px;margin-bottom:18px}.logo{width:46px;height:46px;border-radius:14px;background:linear-gradient(135deg,#0f172a,#008060);color:#fff;display:flex;align-items:center;justify-content:center;font-weight:900;font-size:20px}.brand h1{margin:0;font-size:25px;letter-spacing:-.7px}.brand p{margin:2px 0 0;color:var(--muted);font-size:13px;font-weight:650}
.form-group{margin:13px 0}.form-group label{display:block;margin-bottom:6px;font-size:13px;font-weight:750;color:#3f4145}.form-group input,.form-group textarea,.form-group select,.field{width:100%;border:1px solid #c9cccf;border-radius:12px;padding:12px 13px;background:#fff;outline:none}.form-group input,.field{height:46px}.form-group textarea{min-height:86px;resize:vertical}.form-group input:focus,.form-group textarea:focus,.form-group select:focus,.field:focus{border-color:var(--green);box-shadow:0 0 0 3px rgba(0,128,96,.12)}
.primary{width:100%;height:50px;border:0;border-radius:12px;background:var(--green);color:#fff;font-weight:850;box-shadow:0 8px 20px rgba(0,128,96,.20)}.google-btn,.reset-btn{width:100%;height:48px;margin-top:10px;border:1px solid #c9cccf;border-radius:12px;background:#fff;color:#202223;font-weight:850}.reset-btn{background:#f1f8f5;color:#006e52;border-color:#cde8dd}.login-note{margin:14px 0 0;padding:12px;border-radius:12px;background:#f1f8f5;border:1px solid #cde8dd;color:#356554;font-size:12.5px;line-height:1.35;font-weight:650}.error{margin-top:12px;color:var(--red);font-size:13px;font-weight:750;min-height:18px}
.app{min-height:100vh;display:grid;grid-template-columns:272px 1fr}.sidebar{background:#101213;color:#fff;padding:18px 14px;position:sticky;top:0;height:100vh;border-right:1px solid rgba(255,255,255,.08);overflow:auto}.side-brand{display:flex;align-items:center;gap:11px;margin-bottom:20px;padding:4px 6px}.side-logo{width:38px;height:38px;border-radius:12px;background:#008060;display:flex;align-items:center;justify-content:center;font-weight:900}.side-brand b{font-size:18px}.side-brand span{display:block;color:#b5b8bc;font-size:12px;margin-top:2px}
.nav-btn{width:100%;border:0;background:transparent;color:#d2d5d8;text-align:left;border-radius:12px;padding:12px;margin:4px 0;font-weight:750;display:flex;align-items:center;gap:10px}.nav-btn.active,.nav-btn:hover{background:#242729;color:#fff}.logout{margin-top:16px;background:#2c1815;color:#ffb6a7}
.main{min-width:0}.topbar{height:68px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 24px;position:sticky;top:0;z-index:5}.topbar h2{margin:0;font-size:22px;letter-spacing:-.5px}.admin-pill{background:#eef4f1;color:#006e52;border:1px solid #cde8dd;border-radius:999px;padding:8px 12px;font-size:12px;font-weight:850}.content{padding:24px;max-width:1260px;margin:auto}
.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}.stat{background:#fff;border:1px solid var(--line);border-radius:18px;padding:17px;box-shadow:0 1px 0 rgba(0,0,0,.04)}.stat span{display:block;color:var(--muted);font-size:13px;font-weight:750}.stat b{display:block;margin-top:7px;font-size:26px;letter-spacing:-.8px}.stat small{display:block;margin-top:4px;color:#008060;font-weight:750}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;box-shadow:0 1px 0 rgba(0,0,0,.04);overflow:hidden;margin-bottom:18px}.card.pad{padding:18px}.card-head{padding:17px 18px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.card-head h3{margin:0;font-size:18px;letter-spacing:-.3px}.card-head small{color:var(--muted);font-weight:700}.tools{display:flex;gap:10px;flex-wrap:wrap}.search,.filter{height:40px;border:1px solid #c9cccf;border-radius:11px;padding:0 12px;background:#fff;outline:none}.search{min-width:240px}.table-wrap{overflow:auto}
table{width:100%;border-collapse:collapse;min-width:860px}th,td{padding:14px 16px;border-bottom:1px solid #edf0f2;text-align:left;vertical-align:top;font-size:14px}th{background:#fafbfb;color:#5c5f62;font-size:12px;text-transform:uppercase;letter-spacing:.04em}tr:hover td{background:#fbfcfc}.thumb{width:54px;height:54px;object-fit:cover;border-radius:12px;border:1px solid var(--line);background:#f7f7f7}.muted{color:var(--muted);font-weight:650}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;font-size:12px;font-weight:850}.pending{background:#fff4e5;color:#8a4b00}.accepted{background:#eaf4ff;color:#1f5a99}.packed{background:#f3ecff;color:#5b31a6}.shipped{background:#e8f5ff;color:#0969a2}.delivered{background:#e9f7ef;color:#0b6b3a}.cancelled{background:#feeceb;color:#b42318}.cod{background:#f1f8f5;color:#006e52}.online{background:#eaf4ff;color:#1f5a99}.sale{background:#fff0f0;color:#b42318}.live{background:#e9f7ef;color:#0b6b3a}
.row-actions{display:flex;gap:8px;flex-wrap:wrap}.small-btn{border:1px solid #c9cccf;background:#fff;border-radius:10px;padding:8px 10px;font-size:12px;font-weight:850;color:#202223}.small-btn.green{background:#008060;border-color:#008060;color:#fff}.small-btn.blue{background:#2c6ecb;border-color:#2c6ecb;color:#fff}.small-btn.red{background:#fff1f0;border-color:#ffd3cc;color:#b42318}.small-btn.gold{background:#fff7dd;border-color:#f2d27a;color:#7a4a00}.status-select{height:36px;border:1px solid #c9cccf;border-radius:10px;background:#fff;padding:0 8px;font-weight:750;font-size:12px}.empty,.loading{padding:30px 18px;text-align:center;color:var(--muted);font-weight:750}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.grid3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.switch-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.switch-row label{display:flex;align-items:center;gap:8px;font-weight:800;color:#3f4145}.switch-row input{width:18px;height:18px}.form-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}.form-actions .primary,.form-actions .small-btn{width:auto;min-width:140px;height:44px}.section-note{background:#f1f8f5;border:1px solid #cde8dd;color:#356554;border-radius:14px;padding:12px;margin-bottom:14px;font-weight:700;line-height:1.35}
.label-page{background:#fff;border:1px solid var(--line);border-radius:18px;padding:18px;box-shadow:var(--shadow)}.label-preview{width:390px;max-width:100%;margin:14px auto 0;background:#fff;border:2px dashed #111;padding:16px;color:#111;font-family:Arial,sans-serif}.ship-label{border:2px solid #111;padding:12px}.label-top{display:flex;justify-content:space-between;gap:10px;border-bottom:2px solid #111;padding-bottom:8px;margin-bottom:10px}.ship-label h2{margin:0;font-size:22px;letter-spacing:1px}.mini{font-size:11px;font-weight:800}.block{border-bottom:1px solid #111;padding:8px 0}.big{font-size:16px;font-weight:900}.barcode{margin-top:10px;height:44px;background:repeating-linear-gradient(90deg,#111 0 2px,#fff 2px 5px,#111 5px 6px,#fff 6px 10px)}
.toast{position:fixed;right:18px;bottom:18px;background:#202223;color:#fff;border-radius:14px;padding:13px 16px;font-weight:750;box-shadow:var(--shadow);z-index:50;opacity:0;transform:translateY(8px);transition:.2s}.toast.show{opacity:1;transform:translateY(0)}
@media(max-width:900px){.app{display:block}.sidebar{height:auto;position:relative;display:flex;overflow:auto;gap:6px;padding:10px}.side-brand{min-width:150px;margin:0}.nav-btn{white-space:nowrap;width:auto;margin:0}.logout{margin-top:0;margin-left:auto}.topbar{height:auto;padding:14px 16px;align-items:flex-start;gap:10px}.content{padding:14px}.stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.search{min-width:180px;width:100%}.tools{width:100%}.grid2,.grid3{grid-template-columns:1fr}.form-actions .primary,.form-actions .small-btn{width:100%}}
@media print{body *{visibility:hidden!important}.print-area,.print-area *{visibility:visible!important}.print-area{position:absolute!important;left:0!important;top:0!important;width:100%!important;background:#fff!important}.no-print{display:none!important}}

.upload-box{margin:10px 0 14px;padding:12px;border:1px dashed #9ecfc0;border-radius:14px;background:#f1f8f5}
.upload-box label{display:block;margin-bottom:7px;font-weight:850;color:#145b46}
.upload-box input[type=file]{width:100%;padding:12px;border:1px solid #c9cccf;border-radius:12px;background:#fff}
.upload-box small{display:block;margin-top:7px;color:#4b635b;font-weight:700;line-height:1.3}
#imageUploadStatus{margin-top:8px;font-size:13px;font-weight:850;color:#008060}
.admin-warn{padding:12px 14px;margin:10px 0;border-radius:14px;background:#fff4e5;border:1px solid #ffd79a;color:#8a4b00;font-weight:800}

/* LIORIS Product Pro Form Fix */
.product-pro-wrap{display:grid;gap:16px}
.pro-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.pro-field{display:flex;flex-direction:column;gap:7px}
.pro-field label{font-weight:900;color:#303236;font-size:14px}
.pro-field input,.pro-field textarea,.pro-field select{width:100%;min-height:48px;border:1px solid #c9cccf;border-radius:13px;padding:0 13px;background:#fff;color:#202223;outline:none}
.pro-field textarea{min-height:105px;padding:13px;resize:vertical}
.pro-field input:focus,.pro-field textarea:focus,.pro-field select:focus{border-color:#008060;box-shadow:0 0 0 3px rgba(0,128,96,.11)}
.pro-note{padding:12px 13px;border:1px solid #cde8dd;background:#f1f8f5;color:#356554;border-radius:14px;font-weight:800;line-height:1.35}
.pro-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.pro-check{display:flex;align-items:center;gap:9px;padding:12px;border:1px solid #dfe3e8;border-radius:14px;background:#fff;font-weight:900}
.pro-check input{width:22px;height:22px}
.pro-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:4px}
.pro-save{height:52px;border:0;border-radius:14px;background:#008060;color:#fff;font-weight:950;font-size:15px;box-shadow:0 10px 22px rgba(0,128,96,.18)}
.pro-clear{height:52px;border:1px solid #c9cccf;border-radius:14px;background:#fff;color:#202223;font-weight:950}
.pro-upload{padding:13px;border:1px dashed #93cbb9;background:#f1f8f5;border-radius:14px}
.pro-upload input[type=file]{width:100%;padding:11px;border:1px solid #c9cccf;border-radius:12px;background:#fff}
.pro-upload small{display:block;margin-top:7px;color:#4b635b;font-weight:800;line-height:1.35}
.pro-preview-row{display:flex;gap:10px;overflow:auto;padding:8px 0 2px}
.pro-preview{width:78px;height:78px;border-radius:13px;object-fit:cover;border:1px solid #dfe3e8;background:#f6f6f7}
.pro-status{font-size:13px;font-weight:900;color:#008060;margin-top:8px}
@media(max-width:700px){.pro-grid{grid-template-columns:1fr}.pro-checks{grid-template-columns:1fr 1fr}.pro-actions{grid-template-columns:1fr}}

.admin-login-stable-note{font-size:12px;color:#008060;font-weight:850}

/* LIORIS Edit Delete Product Fix */
.pro-action-row{display:flex;gap:8px;flex-wrap:wrap}
.pro-edit-btn,.pro-delete-btn{border:0;border-radius:10px;padding:9px 12px;font-weight:950;font-size:12px}
.pro-edit-btn{background:#2c6ecb;color:#fff}
.pro-delete-btn{background:#fff1f0;color:#b42318;border:1px solid #ffd3cc}
.pro-update-pill{display:inline-flex;margin-left:8px;padding:5px 9px;border-radius:999px;background:#eaf4ff;color:#1f5a99;font-size:12px;font-weight:900}
