/* Seller dashboard — iphones.vn */
.seller{display:flex;min-height:100vh;background:#f5f5f7}
.sb{width:240px;background:#0d0d10;color:#e9e9ee;display:flex;flex-direction:column;padding:22px 16px;position:sticky;top:0;height:100vh}
.sb__brand{font-weight:800;font-size:18px;color:#fff;margin-bottom:26px;display:block}
.sb__brand span{color:#3b9bff}
.sb__nav{display:flex;flex-direction:column;gap:4px;flex:1}
.sb__nav a{color:#b9b9c3;padding:10px 12px;border-radius:10px;font-size:14px;font-weight:500}
.sb__nav a:hover{background:#1b1b21;color:#fff}
.sb__nav a.on{background:#0071e3;color:#fff}
.sb__foot{display:flex;flex-direction:column;gap:6px;font-size:13px;border-top:1px solid #26262e;padding-top:16px}
.sb__foot span{color:#fff;font-weight:600}
.sb__foot a{color:#9a9aa5}
.sb__foot a:hover{color:#fff}

.sc{flex:1;padding:34px 40px;max-width:1100px}
.sc h1{font-size:26px;font-weight:800;letter-spacing:-.02em;margin-bottom:22px}
.sc h2{font-size:17px;font-weight:700;margin-bottom:14px}
.page-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.page-head h1{margin:0}

.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:30px}
.stat{background:#fff;border:1px solid #e5e5ea;border-radius:14px;padding:18px}
.stat span{color:#6e6e73;font-size:13px}
.stat b{display:block;font-size:24px;margin-top:6px;letter-spacing:-.01em}

.panel{background:#fff;border:1px solid #e5e5ea;border-radius:16px;padding:22px;margin-bottom:22px}
.panel__head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.cols{display:grid;grid-template-columns:1.4fr 1fr;gap:22px}

.tbl{width:100%;border-collapse:collapse}
.tbl th,.tbl td{text-align:left;padding:11px 12px;border-bottom:1px solid #eee;font-size:14px}
.tbl thead th{color:#6e6e73;font-weight:600;font-size:12px;text-transform:uppercase;letter-spacing:.03em}
.tbl tbody tr:hover{background:#fafafa}
.row-actions{display:flex;gap:12px;align-items:center}
.row-actions form{display:inline}

.pill{display:inline-block;padding:3px 10px;border-radius:980px;font-size:12px;font-weight:600;background:#eef;color:#3355cc;text-transform:capitalize}
.pill--new,.pill--pending,.pill--unpaid{background:#fff3e0;color:#b45309}
.pill--contacted,.pill--confirmed,.pill--partial{background:#e6f0ff;color:#0071e3}
.pill--won,.pill--delivered,.pill--paid,.pill--active{background:#e6f7ec;color:#1a7f37}
.pill--lost,.pill--cancelled,.pill--hidden{background:#f1f1f3;color:#6e6e73}

.link{color:#0071e3;font-weight:600;cursor:pointer;background:none;border:0;font:inherit;padding:0}
.link--danger{color:#c4314b}

/* forms */
.form{background:#fff;border:1px solid #e5e5ea;border-radius:16px;padding:24px;max-width:840px}
.form__grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form label{display:flex;flex-direction:column;gap:6px;font-size:13px;font-weight:600;color:#333}
.form input,.form select,.form textarea{border:1px solid #d6d6db;border-radius:10px;padding:10px 12px;font:inherit;font-size:14px;font-weight:400}
.form input:focus,.form select:focus,.form textarea:focus{outline:none;border-color:#0071e3}
.form__full{grid-column:1/-1;margin-top:16px}
.form .check{flex-direction:row;align-items:center;gap:10px}
.form .check input{width:auto}
.form button{margin-top:20px}
.img-strip{display:flex;gap:10px;margin-top:12px;flex-wrap:wrap}
.img-strip img{width:80px;height:80px;object-fit:cover;border-radius:10px;border:1px solid #e5e5ea}
.total{margin-top:14px;font-size:16px}

.flash{padding:12px 16px;border-radius:12px;margin-bottom:18px;font-size:14px}
.flash--ok{background:#e6f7ec;color:#1a7f37}
.flash--err{background:#fdecee;color:#c4314b}

/* login */
.seller-login{display:grid;place-items:center;min-height:100vh;background:#f5f5f7;font-family:Inter,sans-serif}
.login-card{background:#fff;border:1px solid #e5e5ea;border-radius:20px;padding:36px;width:100%;max-width:380px;text-align:center}
.login-card .brand{font-weight:800;font-size:22px;display:block;margin-bottom:6px}
.login-card .brand span{color:#0071e3}
.login-card h1{font-size:20px;margin-bottom:20px}
.login-card form{display:flex;flex-direction:column;gap:12px}
.login-card input{border:1px solid #d6d6db;border-radius:10px;padding:12px 14px;font:inherit}
.login-card input:focus{outline:none;border-color:#0071e3}
.login-card .demo{margin-top:16px;font-size:12px}

.sb__admin{margin-top:8px;color:#ffd479 !important}
.sb__admin:hover{background:#1b1b21}
.sb__label{font-size:10px;text-transform:uppercase;letter-spacing:.06em;color:#6b6b76;margin:14px 12px 4px}

.stat--warn b{color:#b45309}
.inline-form{display:inline-flex;gap:8px;align-items:center}
.inline-form input{border:1px solid #d6d6db;border-radius:8px;padding:7px 10px;font:inherit;font-size:13px}

/* P&L statement */
.pnl{background:#fff;border:1px solid #e5e5ea;border-radius:16px;padding:10px 22px;max-width:560px;margin-bottom:26px}
.pnl__row{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #f0f0f2;font-size:15px}
.pnl__row span{color:#4b4b52}
.pnl__row--sub{font-weight:700}
.pnl__row--sub b{color:#0071e3}
.pnl__row--net{border-bottom:0;font-weight:800;font-size:17px;border-top:2px solid #eee;margin-top:2px}
.pnl__row--net b{color:#1a7f37}
.pnl__row--net.is-neg b{color:#c4314b}

/* POS */
.pos{display:grid;grid-template-columns:1fr 340px;gap:22px;align-items:start}
.pos__catalog{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.pos__item{background:#fff;border:1px solid #e5e5ea;border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:6px;cursor:pointer;text-align:left;transition:.15s}
.pos__item:hover{border-color:#0071e3;transform:translateY(-2px)}
.pos__item b{font-size:14px}
.pos__phone{width:34px;height:60px;border-radius:8px;background:var(--c,#333);align-self:center}
.pos__cart{background:#fff;border:1px solid #e5e5ea;border-radius:16px;padding:18px;position:sticky;top:20px}
.pos__cart input{width:100%;border:1px solid #d6d6db;border-radius:10px;padding:10px 12px;font:inherit;margin-top:8px}
.pos__cart .btn{width:100%;margin-top:12px}
.cart-line{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 0;border-bottom:1px solid #f0f0f2;font-size:13px}
.cart-qty{display:flex;align-items:center;gap:8px}
.cart-qty button{width:22px;height:22px;border:1px solid #d6d6db;background:#fff;border-radius:6px;cursor:pointer}
.pos__total{display:flex;justify-content:space-between;font-size:16px;margin:12px 0;padding-top:10px;border-top:2px solid #eee}
.pos__total strong{color:#0071e3}

@media(max-width:820px){
  .seller{flex-direction:column}
  .sb{width:auto;height:auto;position:static;flex-direction:row;flex-wrap:wrap;gap:10px}
  .sb__nav{flex-direction:row;flex-wrap:wrap}
  .stats,.form__grid,.cols{grid-template-columns:1fr 1fr}
  .sc{padding:24px 18px}
  .pos{grid-template-columns:1fr}
}
