:root{--green:#173f35;--green-2:#215a4b;--mint:#dceee5;--cream:#f6f5ef;--paper:#fff;--ink:#1e2c28;--muted:#71807a;--line:#e4e9e4;--orange:#e8a85b;--red:#b94c41;--shadow:0 12px 30px rgba(28,54,44,.06)}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font:14px 'DM Sans',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer}h1,h2,h3,h4,strong{font-family:Manrope,'DM Sans',sans-serif}h1,h2,h3,p{margin-top:0}h1{font-size:27px;margin-bottom:0;letter-spacing:-.6px}h2{font-size:22px}h3{font-size:16px}.hidden{display:none!important}.muted{color:var(--muted)}.small{font-size:12px}.eyebrow{font-size:10px;font-weight:700;letter-spacing:1.5px;color:#91b4a6;margin:0 0 8px}.login-wrap{min-height:100vh;display:grid;grid-template-columns:minmax(320px,1fr) minmax(350px,470px);gap:8%;align-items:center;padding:7vw 11vw;background:radial-gradient(circle at 15% 10%,#285c4d,transparent 34%),var(--green)}.login-art{color:#fff;max-width:490px}.brand-mark{width:58px;height:58px;border:1px solid rgba(255,255,255,.35);border-radius:17px;display:grid;place-items:center;font:800 20px Manrope;color:var(--green);background:#eff8f0;box-shadow:0 12px 25px #0c241c35}.brand-mark.sm{width:40px;height:40px;border-radius:12px;font-size:14px}.login-art .brand-mark{margin-bottom:44px}.login-art h1{font-size:58px;margin-bottom:14px;color:#fff}.hero-copy{font-size:17px;line-height:1.75;color:#d5e8df;max-width:420px}.book-stack{display:flex;gap:7px;margin:38px 0 32px;align-items:end;height:68px}.book-stack span{display:block;width:34px;border-radius:4px 7px 7px 4px;background:#dfeee4;height:55px;box-shadow:inset 5px 0 #b4d2c2}.book-stack span:nth-child(2){height:68px;background:#e5bb7b;box-shadow:inset 5px 0 #c99855}.book-stack span:nth-child(3){height:47px;background:#d4e6ed;box-shadow:inset 5px 0 #abcad3}.book-stack span:nth-child(4){height:60px;background:#e3b5a8;box-shadow:inset 5px 0 #c58978}.login-small{color:#9ebfb1;font-size:12px}.login-card{background:#fff;padding:36px;border-radius:22px;box-shadow:0 25px 80px #061c1738}.login-card h2{margin-bottom:7px}.login-card>p{margin-bottom:26px}.login-card label,.field{display:flex;flex-direction:column;gap:8px;font-weight:600;font-size:12px;margin-bottom:16px}.login-card input,.field input,.field select,.field textarea,.input{border:1px solid var(--line);background:#fbfcf9;border-radius:10px;padding:12px 13px;outline:none;color:var(--ink);width:100%;min-width:0}.login-card input:focus,.field input:focus,.input:focus{border-color:#60917d;box-shadow:0 0 0 3px #dceee5}.btn{border:0;border-radius:10px;padding:11px 15px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:10px;transition:.16s}.btn:hover{transform:translateY(-1px)}.btn.primary{background:var(--green);color:#fff}.btn.primary:hover{background:var(--green-2)}.btn.light{background:#fff;border:1px solid var(--line);color:var(--ink)}.btn.outline{background:#fff;border:1px solid #c7d7ce;color:var(--green)}.btn.danger{background:#fff0ee;color:var(--red)}.btn.full{width:100%;margin:5px 0 12px;padding:13px}.btn.small-btn{padding:7px 10px;border-radius:8px;font-size:12px}.app-shell{min-height:100vh;display:flex}.sidebar{width:244px;background:#fff;border-right:1px solid var(--line);padding:22px 14px 15px;display:flex;flex-direction:column;position:fixed;inset:0 auto 0 0;z-index:5}.side-brand{display:flex;gap:11px;align-items:center;padding:2px 10px 25px}.side-brand strong{font-size:16px;display:block}.side-brand small{display:block;font-size:9px;letter-spacing:1px;color:var(--muted);margin-top:3px}.store-chip{display:flex;gap:10px;align-items:center;padding:12px;background:#f4f7f2;border:1px solid #eaf0e8;border-radius:12px;margin:0 4px 22px}.store-chip small{display:block;font-size:9px;color:var(--muted);letter-spacing:1px}.store-chip strong{display:block;margin-top:3px;font-size:13px}.status-dot{width:8px;height:8px;border-radius:50%;background:#47a779;display:inline-block;flex-shrink:0}.sidebar nav{display:grid;gap:5px}.nav-item{border:0;background:transparent;color:#75817b;padding:12px 13px;display:flex;align-items:center;gap:12px;border-radius:9px;text-align:left;font-weight:600;font-size:13px}.nav-item span{font-size:18px;width:20px;text-align:center}.nav-item:hover{background:#f6f8f4;color:var(--green)}.nav-item.active{background:var(--green);color:#fff;box-shadow:0 5px 15px #173f3520}.side-footer{display:flex;gap:9px;align-items:center;margin-top:auto;padding:15px 7px 3px;border-top:1px solid var(--line)}.user-avatar,.top-avatar{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:var(--mint);color:var(--green);font-weight:800}.user-meta{min-width:0;flex:1}.user-meta strong{font-size:11px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.user-meta small{font-size:10px;color:var(--muted)}.icon-btn{background:#fff;border:1px solid var(--line);width:30px;height:30px;border-radius:8px}.main-area{margin-left:244px;width:calc(100% - 244px);min-width:0}.topbar{height:94px;background:#fbfbf7;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:20px 34px;position:sticky;top:0;z-index:4}.topbar .eyebrow{color:#87978e}.top-actions{display:flex;align-items:center;gap:10px}.network-pill{display:flex;align-items:center;gap:8px;background:#fff;border:1px solid var(--line);border-radius:20px;padding:8px 11px;font-size:11px;font-weight:700;color:#4f665b}.network-pill.offline .status-dot{background:#d98b41}.network-pill.offline{color:#996320}.page-content{padding:28px 34px 42px;max-width:1600px;margin:0 auto;min-height:calc(100vh - 140px)}.app-footer{border-top:1px solid var(--line);padding:13px 34px;display:flex;justify-content:space-between;color:#93a099;font-size:10px}.welcome-row{display:flex;justify-content:space-between;align-items:end;gap:20px;margin-bottom:24px}.welcome-row p{color:var(--muted);margin:7px 0 0}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px;margin-bottom:20px}.kpi{background:#fff;border:1px solid var(--line);border-radius:15px;padding:18px;box-shadow:var(--shadow)}.kpi-head{display:flex;justify-content:space-between;align-items:center;color:var(--muted);font-size:11px;font-weight:700}.kpi-icon{width:34px;height:34px;background:#edf5ef;color:var(--green);border-radius:10px;display:grid;place-items:center;font-size:18px}.kpi-value{font:800 25px Manrope;letter-spacing:-.6px;margin:18px 0 5px}.kpi-foot{font-size:11px;color:var(--muted)}.grid-two{display:grid;grid-template-columns:1.1fr .9fr;gap:16px}.panel{background:#fff;border:1px solid var(--line);border-radius:15px;padding:20px;box-shadow:var(--shadow);min-width:0}.panel-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}.panel-head h3{margin:0}.panel-head p{margin:4px 0 0;color:var(--muted);font-size:11px}.table-wrap{overflow:auto;width:100%}table{width:100%;border-collapse:collapse;font-size:12px;white-space:nowrap}th{text-align:left;color:#829087;font-size:10px;text-transform:uppercase;letter-spacing:.7px;font-weight:700;padding:11px 12px;border-bottom:1px solid var(--line)}td{padding:13px 12px;border-bottom:1px solid #f0f2ef}tbody tr:last-child td{border-bottom:0}tbody tr:hover{background:#fafbf8}.money{font-weight:700;font-variant-numeric:tabular-nums}.status{display:inline-flex;align-items:center;border-radius:30px;padding:5px 8px;font-size:10px;font-weight:700;background:#eef4ef;color:#49745a}.status.warn{background:#fff3df;color:#9b6a18}.status.bad{background:#fdecea;color:#a9473e}.status.neutral{background:#edf0ef;color:#64716a}.searchbar{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:16px}.searchbox{position:relative;flex:1;min-width:200px}.searchbox input{width:100%;border:1px solid var(--line);border-radius:10px;padding:11px 13px 11px 37px;background:#fff}.searchbox:before{content:'⌕';position:absolute;left:13px;top:7px;font-size:20px;color:#83928a}.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.form-grid .field{margin:0}.form-grid .span-2{grid-column:span 2}.form-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:14px}.section-stack{display:grid;gap:16px}.pos-layout{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(320px,.8fr);gap:16px;align-items:start}.pos-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;margin-top:13px}.product-tile{border:1px solid var(--line);border-radius:12px;background:#fff;padding:13px;text-align:left;display:flex;gap:11px;align-items:center;min-width:0}.product-tile:hover{border-color:#90b9a3;background:#fbfefb}.book-thumb{width:42px;height:52px;border-radius:5px;background:#dceee5;display:grid;place-items:center;color:var(--green);font:800 12px Manrope;flex-shrink:0}.product-tile:nth-child(3n) .book-thumb{background:#f6e7d1}.product-tile:nth-child(3n + 1) .book-thumb{background:#e1eaf1}.tile-info{min-width:0;flex:1}.tile-info strong{display:block;font-size:12px;line-height:1.4;white-space:normal}.tile-info small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.tile-price{font-weight:800;color:var(--green);font-size:12px;white-space:nowrap}.cart-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:10px;align-items:center;padding:13px 0;border-bottom:1px solid var(--line)}.cart-row strong{display:block;font-size:12px}.cart-row small{display:block;color:var(--muted);margin-top:4px;font-size:10px}.qty-control{display:flex;align-items:center;border:1px solid var(--line);border-radius:8px;overflow:hidden}.qty-control button{border:0;background:#f4f6f2;width:26px;height:28px}.qty-control span{min-width:25px;text-align:center;font-size:12px}.cart-delete{border:0;color:#ab6860;background:transparent;font-size:16px}.total-line{display:flex;justify-content:space-between;align-items:center;padding:10px 0;color:var(--muted);font-size:12px}.total-line.grand{border-top:1px solid var(--line);margin-top:7px;padding-top:16px;color:var(--ink);font-weight:700}.total-line.grand strong{font:800 24px Manrope;color:var(--green)}.empty{padding:30px 15px;text-align:center;color:var(--muted);font-size:12px}.empty-icon{width:45px;height:45px;display:grid;place-items:center;border-radius:13px;background:#f1f5f0;margin:0 auto 10px;font-size:20px;color:#71887a}.notice{background:#f0f7f1;border:1px solid #dcebe0;border-radius:11px;padding:12px 14px;font-size:12px;color:#476454;line-height:1.6}.notice.warn{background:#fff7e9;border-color:#f2e1be;color:#8e6929}.inline-form{display:flex;gap:9px;align-items:end;flex-wrap:wrap}.inline-form .field{flex:1;min-width:140px;margin:0}.file-picker{border:1px dashed #bdcfc3;background:#fafcf9;border-radius:12px;padding:15px}.file-picker input{max-width:100%}.mini-list{display:grid;gap:10px}.mini-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid #f0f2ef;font-size:12px}.mini-row:last-child{border-bottom:0}.progress{height:7px;background:#ecf0eb;border-radius:20px;overflow:hidden}.progress span{display:block;height:100%;background:#3d8263;border-radius:20px}.toast{position:fixed;right:22px;top:20px;max-width:440px;padding:13px 17px;border-radius:12px;background:#173f35;color:#fff;box-shadow:0 14px 35px #0e2b2240;z-index:100;font-size:13px}.toast.error{background:#9e3834}.two-col-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.pagination-note{font-size:11px;color:var(--muted);margin-top:12px}
@media(max-width:1150px){.sidebar{width:210px}.main-area{margin-left:210px;width:calc(100% - 210px)}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.page-content{padding:24px}.topbar{padding:18px 24px}.grid-two{grid-template-columns:1fr}.pos-layout{grid-template-columns:1fr}}
@media(max-width:750px){.login-wrap{grid-template-columns:1fr;padding:28px;gap:26px}.login-art{display:none}.login-card{padding:26px}.sidebar{width:66px;padding:14px 7px}.side-brand{padding:0 5px 20px}.side-brand>div:last-child,.store-chip>div,.nav-item:not(.active){font-size:0}.side-brand .brand-mark{width:43px;height:43px}.store-chip{padding:10px;justify-content:center;margin:0 0 14px}.store-chip small,.store-chip strong{display:none}.sidebar nav{gap:4px}.nav-item{padding:12px 0;justify-content:center;font-size:0;gap:0}.nav-item span{font-size:18px}.side-footer{flex-wrap:wrap;justify-content:center;padding:12px 0 0}.side-footer .user-meta,.side-footer .icon-btn{display:none}.main-area{margin-left:66px;width:calc(100% - 66px)}.topbar{height:auto;min-height:83px;padding:15px;gap:12px}.topbar h1{font-size:22px}.top-actions{gap:6px}.network-pill{font-size:0;padding:9px}.network-pill .status-dot{margin:0}.top-actions .btn{font-size:0;padding:10px}.top-actions .btn:before{content:'↻';font-size:16px}.top-avatar{display:none}.page-content{padding:16px 12px 28px}.kpi-grid{gap:9px}.kpi{padding:13px}.kpi-value{font-size:20px}.kpi-head{font-size:10px}.panel{padding:14px}.pos-results{grid-template-columns:1fr}.form-grid{grid-template-columns:1fr}.form-grid .span-2{grid-column:auto}.two-col-form{grid-template-columns:1fr}.welcome-row{align-items:start;flex-direction:column}.app-footer{padding:12px;font-size:9px}.tile-price{font-size:11px}}
.action-stack{display:flex;gap:5px;flex-wrap:wrap;max-width:200px}.action-stack .btn{white-space:nowrap}.check-row{display:flex;gap:8px;align-items:flex-start;color:var(--muted);font-size:11px;line-height:1.5;margin-bottom:12px}.check-row input{margin-top:2px}.error-list{white-space:pre-wrap;background:#fff2ef;color:#8c3028;border-radius:8px;padding:9px;max-height:220px;overflow:auto}.code{font-family:monospace}
.shop-body{background:#faf9f4}.shop-header{height:78px;background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,24px)}.shop-logo{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none}.shop-logo strong{display:block;font:800 16px Manrope}.shop-logo small{display:block;color:var(--muted);font-size:9px;letter-spacing:1px;margin-top:3px}.shop-header-right{display:flex;align-items:center;gap:15px}.shop-open-pill{display:flex;align-items:center;gap:7px;color:#5c7669;font-size:11px}.shop-main{max-width:1250px;margin:auto;padding:0 28px}.shop-hero{margin:26px 0 45px;background:#173f35;border-radius:22px;padding:52px 6%;display:grid;grid-template-columns:1.2fr .8fr;align-items:center;min-height:300px;overflow:hidden;position:relative;color:#fff}.shop-hero .eyebrow{color:#9fc6b5}.shop-hero h1{font-size:42px;line-height:1.2;margin:0 0 15px;color:#fff}.shop-hero h1 em{font-style:normal;color:#e8bb7b}.shop-hero p:not(.eyebrow){color:#d0e0d7;line-height:1.7}.shop-search{display:flex;gap:8px;align-items:center;max-width:480px;background:#fff;padding:6px;border-radius:12px;margin-top:23px;color:#728078}.shop-search>span{font-size:22px;padding-left:8px}.shop-search input{border:0;outline:0;min-width:0;flex:1;padding:9px;color:var(--ink)}.hero-illustration{height:220px;position:relative;display:flex;align-items:center;justify-content:center}.hero-circle{position:absolute;width:250px;height:250px;border-radius:50%;background:#2b5d4e;right:0;top:-10px}.hero-book{position:absolute;z-index:1;height:155px;width:96px;border-radius:5px 12px 12px 5px;box-shadow:10px 12px 20px #0d2c2260;display:flex;justify-content:center;align-items:center;text-align:center;line-height:1.4;font:800 12px Manrope;letter-spacing:1px;padding:10px}.hero-book.b1{background:#eabf7f;color:#664725;transform:rotate(-12deg);left:35px;top:43px}.hero-book.b2{background:#e4efe6;color:#235443;transform:rotate(7deg);left:130px;top:32px}.hero-book.b3{background:#d8a69b;color:#6f3d34;transform:rotate(18deg);left:220px;top:53px}.shop-section{margin-bottom:48px}.shop-section-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:20px}.shop-section-head h2{font:800 26px Manrope;margin:0}.shop-filter label{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--muted)}.shop-filter select{max-width:240px;border:1px solid var(--line);background:#fff;border-radius:9px;padding:9px}.shop-products{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.shop-product{border:1px solid var(--line);background:#fff;border-radius:15px;overflow:hidden;transition:.15s}.shop-product:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.shop-cover{height:165px;background:#e5efe7;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#245643;position:relative}.shop-product:nth-child(3n + 2) .shop-cover{background:#f3e6d2;color:#936b37}.shop-product:nth-child(3n) .shop-cover{background:#e5eaf2;color:#536c8e}.shop-cover span{font:800 32px Manrope;letter-spacing:3px}.shop-cover small{font-size:9px;letter-spacing:1.3px;margin-top:10px}.shop-product-body{padding:15px}.shop-product-author{font-size:9px;color:#819087;letter-spacing:.8px;margin-bottom:7px}.shop-product h3{font-size:13px;line-height:1.5;margin:0 0 18px;min-height:39px}.shop-product-bottom{display:flex;justify-content:space-between;align-items:center;gap:8px}.shop-product-bottom strong{font:800 14px Manrope;color:var(--green)}.add-shop{border:1px solid #bdd4c7;background:#f3f8f3;color:var(--green);font-size:10px;font-weight:700;border-radius:8px;padding:8px 9px;white-space:nowrap}.add-shop:disabled{background:#f3f3ef;color:#9ba39d;border-color:#ebece7}.shop-stock{display:block;color:#8a968f;font-size:10px;margin-top:10px}.checkout-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:50px}.shop-panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:22px;min-width:0}.shop-cart-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:13px 0;border-bottom:1px solid var(--line)}.shop-cart-row strong{font-size:12px;display:block}.shop-cart-row small{display:block;color:var(--muted);font-size:10px;margin-top:4px}.shop-footer{display:flex;justify-content:space-between;gap:15px;align-items:center;padding:22px 5vw;background:#173f35;color:#b9d0c5;font-size:11px}.shop-footer a{color:#fff}@media(max-width:1000px){.shop-products{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-hero h1{font-size:34px}}@media(max-width:700px){.shop-header{padding:0 15px}.shop-open-pill{display:none}.shop-main{padding:0 14px}.shop-hero{grid-template-columns:1fr;padding:32px 22px;margin:14px 0 30px}.shop-hero h1{font-size:31px}.hero-illustration{height:170px;margin-top:10px}.hero-book.b1{left:10%;top:25px}.hero-book.b2{left:35%;top:19px}.hero-book.b3{left:58%;top:35px}.hero-circle{right:4%;width:190px;height:190px}.shop-section-head{align-items:start;flex-direction:column}.shop-section-head h2{font-size:22px}.shop-products{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.shop-cover{height:125px}.shop-product-body{padding:11px}.shop-product h3{font-size:12px}.shop-product-bottom{align-items:start;flex-direction:column}.add-shop{width:100%}.checkout-grid{grid-template-columns:1fr}.shop-footer{align-items:start;flex-direction:column}}
.sale-action-buttons{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sale-action-buttons .btn{font-size:12px;padding:11px 8px}@media(max-width:500px){.sale-action-buttons{grid-template-columns:1fr}}

/* Mọt Sách V1.2: tăng cỡ chữ để dễ đọc trên màn hình quầy */
body{font-size:16px}
.small{font-size:14px}
.eyebrow{font-size:12px;letter-spacing:1.1px}
h1{font-size:30px}
h2{font-size:24px}
h3{font-size:18px}
.login-card label,.login-card .field{font-size:14px;gap:9px}
.login-card input,.field input,.field select,.field textarea,.input{font-size:16px;padding:14px 15px}
.btn{font-size:14px;padding:12px 16px}
.btn.full{padding:15px}
.btn.small-btn{font-size:13px;padding:9px 12px}
.sidebar{width:260px;overflow-y:auto}
.main-area{margin-left:260px;width:calc(100% - 260px)}
.side-brand strong{font-size:18px}
.side-brand small{font-size:11px;letter-spacing:.7px}
.store-chip small{font-size:11px;letter-spacing:.6px}
.store-chip strong{font-size:15px}
.nav-item{font-size:15px;padding:13px 14px;gap:13px}
.nav-item span{font-size:20px}
.user-meta strong{font-size:13px}
.user-meta small{font-size:12px}
.topbar{padding-left:30px;padding-right:30px}
.network-pill{font-size:13px;padding:9px 12px}
.page-content{padding-left:30px;padding-right:30px}
.app-footer{font-size:12px}
.kpi-head{font-size:13px}
.kpi-value{font-size:28px}
.kpi-foot{font-size:13px}
.panel-head p{font-size:13px}
table{font-size:14px}
th{font-size:12px;padding:12px 13px;letter-spacing:.5px}
td{padding:14px 13px}
.status{font-size:12px;padding:6px 9px}
.searchbox input{font-size:16px;padding:13px 14px 13px 39px}
.field,.login-card label{line-height:1.45}
.product-tile{padding:15px;gap:12px}
.tile-info strong,.cart-row strong{font-size:14px}
.tile-info small,.cart-row small{font-size:12px}
.tile-price{font-size:14px}
.book-thumb{font-size:14px}
.cart-row{padding:15px 0}
.qty-control button{width:32px;height:34px;font-size:16px}
.qty-control span{font-size:14px;min-width:30px}
.total-line{font-size:14px}
.sale-action-buttons .btn{font-size:14px;padding:13px 10px}
.check-row{font-size:13px}
.shop-header{height:82px}
.shop-logo strong{font-size:18px}
.shop-logo small{font-size:11px;letter-spacing:.7px}
.shop-open-pill{font-size:13px}
.shop-search input{font-size:16px;padding:11px}
.shop-filter label{font-size:13px}
.shop-filter select{font-size:14px;padding:11px}
.shop-product-author{font-size:12px;letter-spacing:.4px}
.shop-product h3{font-size:15px}
.shop-product-bottom strong{font-size:16px}
.add-shop{font-size:13px;padding:10px 11px}
.shop-stock{font-size:12px}
.shop-panel{padding:24px}
.shop-cart-row strong{font-size:14px}
.shop-cart-row small{font-size:12px}
.shop-footer{font-size:13px}
@media(max-width:1000px){
  .sidebar{width:230px}
  .main-area{margin-left:230px;width:calc(100% - 230px)}
}
@media(max-width:700px){
  .sidebar{width:min(86vw,300px)}
  .main-area{margin-left:0;width:100%}
  .topbar{padding:16px 18px}
  .page-content{padding:20px 16px 30px}
  .app-footer{padding:12px 16px}
}

/* Mọt Sách V1.3 — tăng cỡ chữ đồng bộ toàn giao diện */
/* Các mức chữ nhỏ như nhãn, chú thích, đầu bảng và trạng thái cũng được tăng. */
#login-screen .eyebrow{font-size:14px;letter-spacing:.8px}
#login-screen .login-small,
#login-screen .small,
#login-screen .muted{font-size:15px}
#login-screen .login-card label,
#login-screen .login-card .field{font-size:15px}

#app-shell{font-size:16px}
#app-shell .eyebrow{font-size:14px;letter-spacing:.8px}
#app-shell .side-brand strong{font-size:20px}
#app-shell .side-brand small,
#app-shell .store-chip small,
#app-shell .user-meta small{font-size:14px;letter-spacing:.3px}
#app-shell .store-chip strong{font-size:16px}
#app-shell .nav-item{font-size:16px;line-height:1.45;padding-top:14px;padding-bottom:14px}
#app-shell .nav-item span{font-size:21px}
#app-shell .user-meta strong{font-size:15px}
#app-shell .topbar h1{font-size:30px;line-height:1.25}
#app-shell .network-pill{font-size:14px;padding:10px 13px}
#app-shell .app-footer{font-size:13px}

#app-shell h2{font-size:26px;line-height:1.3}
#app-shell h3,
#app-shell .panel-head h3{font-size:20px;line-height:1.35}
#app-shell .welcome-row p{font-size:16px}
#app-shell .kpi-head{font-size:14px;line-height:1.4;gap:8px}
#app-shell .kpi-value{font-size:30px;line-height:1.25}
#app-shell .kpi-foot,
#app-shell .panel-head p{font-size:14px;line-height:1.5}
#app-shell .panel{padding:22px}

#app-shell table{font-size:16px}
#app-shell th{font-size:14px;line-height:1.4;letter-spacing:.35px;padding:13px 14px}
#app-shell td{font-size:16px;line-height:1.45;padding:15px 14px}
#app-shell td .small,
#app-shell td small{font-size:14px!important}
#app-shell .status{font-size:14px;padding:7px 10px;line-height:1.35}
#app-shell .small,
#app-shell small,
#app-shell .muted.small,
#app-shell .notice,
#app-shell .empty,
#app-shell .mini-row,
#app-shell .pagination-note,
#app-shell .check-row{font-size:14px!important;line-height:1.5}
#app-shell .notice{font-size:15px!important;padding:14px 16px}
#app-shell .mini-row strong{font-size:16px}
#app-shell .empty-icon{font-size:24px}

#app-shell .field,
#app-shell .field label,
#app-shell .form-grid label.field{font-size:15px;line-height:1.5;gap:9px}
#app-shell input:not([type=checkbox]):not([type=radio]),
#app-shell select,
#app-shell textarea,
#app-shell .input,
#app-shell .searchbox input{font-size:16px;line-height:1.45;min-height:44px}
#app-shell .searchbox input{padding:14px 15px 14px 40px}
#app-shell .btn{font-size:15px;line-height:1.35;padding:13px 17px}
#app-shell .btn.small-btn{font-size:14px;padding:10px 12px}
#app-shell .btn.full{padding:15px 17px}
#app-shell .form-actions{gap:10px}
#app-shell .check-row{align-items:flex-start;gap:10px}
#app-shell .check-row input{width:18px;height:18px;flex-shrink:0}

#app-shell .product-tile{padding:16px;gap:13px}
#app-shell .tile-info strong,
#app-shell .cart-row strong{font-size:16px;line-height:1.4}
#app-shell .tile-info small,
#app-shell .cart-row small{font-size:14px!important;line-height:1.45}
#app-shell .tile-price{font-size:16px}
#app-shell .book-thumb{font-size:16px}
#app-shell .cart-row{padding:16px 0}
#app-shell .qty-control button{width:34px;height:36px;font-size:18px}
#app-shell .qty-control span{font-size:15px;min-width:32px}
#app-shell .cart-delete{font-size:20px}
#app-shell .total-line{font-size:15px;line-height:1.5}
#app-shell .total-line.grand strong{font-size:27px}
#app-shell .sale-action-buttons .btn{font-size:15px;padding:14px 11px}
#app-shell .action-stack .btn{font-size:14px}
#app-shell .code{font-size:14px}

/* Website bán hàng cũng dùng cỡ chữ dễ đọc hơn. */
.shop-body{font-size:16px}
.shop-logo strong{font-size:20px}
.shop-logo small,
.shop-cover small{font-size:14px;letter-spacing:.3px}
.shop-open-pill{font-size:14px}
.shop-filter label{font-size:14px}
.shop-filter select{font-size:16px;min-height:42px}
.shop-product-author,
.shop-stock{font-size:14px;letter-spacing:.2px}
.shop-product h3{font-size:16px;line-height:1.5}
.shop-product-bottom strong{font-size:17px}
.add-shop{font-size:15px;padding:11px 12px}
.shop-cart-row strong{font-size:16px}
.shop-cart-row small{font-size:14px}
.shop-footer{font-size:14px;line-height:1.5}
.shop-panel .panel-head p{font-size:15px}
.shop-panel .field{font-size:15px}
.shop-panel input,.shop-panel select,.shop-panel textarea{font-size:16px;min-height:44px}
.shop-panel .small,.shop-panel .muted{font-size:14px!important}

/* Giữ kiểu thanh điều hướng thu gọn ở màn hình hẹp. */
@media(max-width:750px){
  #app-shell .nav-item{font-size:0!important;padding:12px 0;gap:0}
  #app-shell .nav-item span{font-size:21px!important}
  #app-shell .network-pill{font-size:0!important;padding:9px}
  #app-shell .top-actions .btn{font-size:0!important;padding:10px}
  #app-shell .top-actions .btn:before{font-size:18px!important}
  #app-shell .topbar h1{font-size:25px}
  #app-shell .page-content{padding:18px 14px 28px}
  #app-shell .panel{padding:16px}
  #app-shell th{font-size:13px}
  #app-shell td{font-size:15px}
  .shop-product h3{font-size:15px}
}


/* Mọt Sách V1.4 — đồng bộ cỡ chữ toàn giao diện, kèm quy tắc chặn chữ quá nhỏ */
/* Lớp cuối cùng ưu tiên khả năng đọc; tiêu đề và chỉ số chính được giữ lớn hơn. */
#app-shell { font-size: 17px !important; }
#app-shell :is(.eyebrow,.small,small,.muted,.network-pill,.app-footer,.store-chip small,.side-brand small,.user-meta small,.kpi-head,.kpi-foot,.panel-head p,.status,.notice,.empty,.mini-row,.pagination-note,.check-row,.code,th,td,label,.field,.nav-item,.btn,.searchbox input,.total-line,.tile-info small,.cart-row small,.shop-footer) {
  font-size: 16px !important;
  line-height: 1.5 !important;
}
#app-shell .eyebrow { font-size: 16px !important; letter-spacing: .5px !important; }
#app-shell .side-brand strong { font-size: 21px !important; }
#app-shell .side-brand small,
#app-shell .store-chip small,
#app-shell .user-meta small { font-size: 16px !important; letter-spacing: .2px !important; }
#app-shell .store-chip strong { font-size: 17px !important; }
#app-shell .nav-item { font-size: 17px !important; line-height: 1.45 !important; padding-top: 15px !important; padding-bottom: 15px !important; }
#app-shell .nav-item span { font-size: 22px !important; line-height: 1 !important; }
#app-shell .user-meta strong { font-size: 16px !important; }
#app-shell .topbar h1 { font-size: 32px !important; line-height: 1.25 !important; }
#app-shell h2 { font-size: 28px !important; line-height: 1.3 !important; }
#app-shell h3, #app-shell .panel-head h3 { font-size: 22px !important; line-height: 1.35 !important; }
#app-shell .welcome-row p { font-size: 17px !important; line-height: 1.5 !important; }
#app-shell .network-pill { font-size: 16px !important; padding: 10px 14px !important; }
#app-shell .kpi-head { font-size: 16px !important; line-height: 1.4 !important; }
#app-shell .kpi-value { font-size: 32px !important; line-height: 1.25 !important; }
#app-shell .kpi-foot, #app-shell .panel-head p { font-size: 16px !important; line-height: 1.5 !important; }
#app-shell table { font-size: 16px !important; }
#app-shell th { font-size: 15px !important; line-height: 1.45 !important; letter-spacing: .25px !important; padding: 14px 14px !important; }
#app-shell td { font-size: 16px !important; line-height: 1.5 !important; padding: 15px 14px !important; }
#app-shell td small, #app-shell td .small { font-size: 16px !important; }
#app-shell .status { font-size: 16px !important; padding: 7px 10px !important; }
#app-shell .field, #app-shell .field label, #app-shell .form-grid label.field { font-size: 16px !important; line-height: 1.5 !important; }
#app-shell input:not([type=checkbox]):not([type=radio]), #app-shell select, #app-shell textarea, #app-shell .input, #app-shell .searchbox input { font-size: 17px !important; line-height: 1.45 !important; min-height: 46px !important; }
#app-shell .btn { font-size: 16px !important; line-height: 1.4 !important; padding: 13px 17px !important; }
#app-shell .btn.small-btn { font-size: 15px !important; padding: 10px 12px !important; }
#app-shell .tile-info strong, #app-shell .cart-row strong { font-size: 17px !important; line-height: 1.45 !important; }
#app-shell .tile-info small, #app-shell .cart-row small { font-size: 16px !important; line-height: 1.5 !important; }
#app-shell .tile-price { font-size: 17px !important; }
#app-shell .qty-control span { font-size: 16px !important; }
#app-shell .total-line { font-size: 16px !important; }
#app-shell .total-line.grand strong { font-size: 29px !important; }
#app-shell .app-footer { font-size: 16px !important; line-height: 1.5 !important; }
#app-shell .icon-btn { font-size: 20px !important; }
#app-shell .top-avatar, #app-shell .user-avatar { font-size: 17px !important; }

/* Cũng tăng chữ cho website bán hàng trực tuyến. */
.shop-body { font-size: 17px !important; }
.shop-logo strong { font-size: 21px !important; }
.shop-logo small, .shop-cover small, .shop-product-author, .shop-stock, .shop-footer { font-size: 16px !important; line-height: 1.5 !important; }
.shop-open-pill, .shop-filter label, .shop-panel .field { font-size: 16px !important; }
.shop-filter select, .shop-panel input, .shop-panel select, .shop-panel textarea { font-size: 17px !important; min-height: 46px !important; }
.shop-product h3 { font-size: 18px !important; line-height: 1.5 !important; }
.shop-product-bottom strong { font-size: 18px !important; }
.add-shop { font-size: 16px !important; padding: 12px 14px !important; }
.shop-cart-row strong { font-size: 17px !important; }
.shop-cart-row small, .shop-panel .small, .shop-panel .muted { font-size: 16px !important; }

@media(max-width:750px){
  #app-shell .nav-item { font-size: 17px !important; }
  #app-shell .network-pill { font-size: 16px !important; }
  #app-shell .top-actions .btn { font-size: 16px !important; }
  #app-shell .topbar h1 { font-size: 27px !important; }
  #app-shell th { font-size: 16px !important; }
  #app-shell td { font-size: 16px !important; }
}

/* Dang nhap va cac khu vuc cong khai: cung dam bao chu de doc. */
#login-screen { font-size: 17px !important; }
#login-screen .eyebrow, #login-screen .login-small, #login-screen .small, #login-screen .muted, #login-screen label { font-size: 16px !important; line-height: 1.5 !important; }
#login-screen .hero-copy { font-size: 18px !important; line-height: 1.7 !important; }
#login-screen .login-card input { font-size: 17px !important; min-height: 48px !important; }
#login-screen .login-card h2 { font-size: 29px !important; }
#login-screen .login-card .btn { font-size: 17px !important; min-height: 48px !important; }


/* Mot Sach V1.6 — giam them hai tieu de theo phan hoi nguoi dung. */
#app-shell .side-brand small {
  font-size: 12.5px !important;
  line-height: 1.25 !important;
  letter-spacing: .25px !important;
}
#app-shell .topbar #page-title {
  font-size: 22px !important;
  line-height: 1.3 !important;
}
#app-shell .welcome-row h2 {
  font-size: 18px !important;
  line-height: 1.4 !important;
}
#app-shell .grid-two > .panel > .panel-head h3 {
  font-size: 19px !important;
  line-height: 1.35 !important;
}

/* V2.4: visual product picker for receiving stock */
.purchase-builder{margin-top:20px;padding:18px;border:1px solid var(--line);border-radius:14px;background:#fbfcfa}
.purchase-builder-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:14px}
.purchase-builder-head h3{margin:0 0 5px;font-size:16px}
.purchase-builder-head p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.purchase-items-heading{margin-top:22px;padding-top:18px;border-top:1px solid var(--line)}
.purchase-selected-meta{font-size:13px;color:var(--muted);padding:9px 11px;border-radius:9px;background:#f1f5f1}
.purchase-add-actions{justify-content:flex-start;margin-top:0}
.purchase-edit-input{width:115px;max-width:100%;padding:9px 10px;border:1px solid var(--line);border-radius:8px;font:inherit}
.purchase-total-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:14px 0;padding:14px 2px;border-top:1px solid var(--line);font-size:14px}
.purchase-total-row strong{font-size:21px;color:var(--green);font-variant-numeric:tabular-nums}
.purchase-submit-actions{align-items:center;justify-content:space-between;flex-wrap:wrap}
.purchase-debt-preview{font-size:13px;color:var(--muted)}
.purchase-remove-btn{color:#9a5148}
@media(max-width:750px){.purchase-builder{padding:13px}.purchase-builder-head{flex-direction:column}.purchase-edit-input{width:88px}.purchase-submit-actions{align-items:stretch}.purchase-submit-actions .btn{width:100%}.purchase-debt-preview{width:100%}}
