:root{--green:#871825;--green-dark:#69111c;--muted:#796e70;--border:#e9e0df;--light:#fcf5f3;--gold:#d79f45;background:#f7f6f5;color:#32262a;--side-width:222px;--ruby:#871825;--line:#e8dede}body{background:#f7f6f5}button,input,select,textarea{color:#352a2c}.bg-symbols{position:absolute;width:0;height:0;overflow:hidden}.skip{position:fixed;left:24px;top:-100px;z-index:30;padding:12px;background:white}.skip:focus{top:12px}.bg-side svg,.bg-top svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.55;stroke-linecap:round;stroke-linejoin:round}.bg-side{position:fixed;inset:0 auto 0 0;width:var(--side-width);z-index:15;display:flex;flex-direction:column;overflow:auto;background:linear-gradient(164deg,#681520 0,#4f121b 55%,#401019 100%);color:#f7e8e2;padding:29px 17px 18px;border-right:1px solid #701d26}.bg-brand{display:flex;align-items:center;gap:10px;padding:0 5px 26px;border-bottom:1px solid #ffffff1e}.bg-brand>img{width:39px;height:46px;object-fit:contain}.bg-brand>span{display:flex;align-items:flex-start;flex-direction:column;gap:9px}.bg-brand>span>img{width:126px;height:auto}.bg-brand small{font-size:9px;letter-spacing:1.8px;color:#eed9c2}.nav-label{color:#dab2a8;font-size:11px;font-weight:600;letter-spacing:1.7px;padding:31px 14px 12px}#navigation{display:flex;flex-direction:column;gap:4px;width:100%}#navigation button,.history-link,.back-root{border:0;background:transparent;border-radius:7px;display:flex;align-items:center;gap:11px;padding:13px 14px;width:100%;color:#f7e6df;text-align:left;font-size:15px;min-height:46px;line-height:1.35}#navigation button:hover,.history-link:hover,.back-root:hover{background:#ffffff10}#navigation button.active{background:#953241;color:#fff5e3;box-shadow:inset 3px 0 #e4b961;font-weight:600}#navigation button.active svg{color:#f0ce84}.history-link{margin-top:4px}.side-bottom{margin-top:auto;padding-top:32px}.demo-card{border:1px solid #ffffff24;background:#ffffff08;border-radius:8px;padding:14px}.demo-label{color:#f0d295;font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}.demo-label svg{width:16px}.demo-card label{display:block;margin:14px 0 6px;color:#f1dedd;font-size:13px}.demo-card select{width:100%;border:1px solid #ecd5c5;background-color:#fff8ef;color:#55232d;border-radius:5px;padding:8px;min-height:38px;font-size:14px}.back-root{margin-top:11px;color:#e8cfc8;font-size:13px}.back-root svg{width:17px}.bg-shell{margin-left:var(--side-width)}.bg-top{min-height:66px;padding:10px clamp(20px,3vw,54px);display:flex;align-items:center;gap:16px;border-bottom:1px solid #e5dddd;background:#fff}.crumb{display:flex;align-items:center;gap:12px;color:#74696b;font-size:14px}.crumb svg{color:#8b6971;width:17px}.crumb i{font-style:normal;color:#beaeb1}.crumb b{font-size:12px;color:#6c4149;letter-spacing:1px}.profile-avatar{background:#f6e9e6;color:#8a3741;border:1px solid #ead1ce}.profile small{color:#786b6e}.bg-shell main{padding:24px clamp(18px,3vw,54px) 22px;max-width:1600px}.bg-hero{overflow:hidden;isolation:isolate;position:relative;border-radius:11px;padding:26px 32px;background:linear-gradient(106deg,#65101e 2%,#8b1c2a 62%,#9a2632 100%);color:#fff8ef;border:1px solid #821823;display:flex;align-items:center;min-height:145px}.hero-text{position:relative;z-index:1;max-width:76%}.bg-edition{display:flex;align-items:center;gap:10px;font-size:11px;letter-spacing:1.3px;font-weight:bold;color:#ecd09c}.bg-edition>span:first-child{height:1px;width:24px;background:#e4bb76}.bg-edition i{font-style:normal;color:#d7917d}.bg-hero h1{font-family:Georgia,'Times New Roman',serif;font-weight:500;font-size:clamp(32px,3.1vw,49px);letter-spacing:-1.1px;line-height:1.15;margin:10px 0 7px}.bg-hero p{color:#f1dcdc;font-size:15px;margin:0;line-height:1.55}.hero-art{position:absolute;inset:0 0 0 auto;width:32%;display:grid;place-items:center;z-index:0;background:repeating-linear-gradient(127deg,transparent 0 15px,#eed3a00c 15px 16px,transparent 16px 31px);mask-image:linear-gradient(90deg,transparent,#000 32%)}.hero-art img{height:114px;max-width:76%;width:auto;position:relative;filter:drop-shadow(0 3px 5px #56101b35)}.frame{position:absolute;inset:auto;width:152px;height:152px;border:1px solid #e9b96554;transform:rotate(-40deg);border-radius:9px}.frame-b{width:172px;height:172px;border-color:#e9b96530}.frame-c{width:194px;height:194px;border-color:#e9b96525}.context-line{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;padding:13px 3px 15px}.today{display:flex;align-items:center;gap:7px}.today>span{width:auto;height:auto;background:none;border:0;color:#84414b}.today svg{width:16px;height:16px}.today>div{flex-direction:row;align-items:center;gap:7px}.today small{font-size:13px;letter-spacing:0;color:#76696a}.today strong{font-size:14px;color:#672731}.scope-note{color:#75656a;font-size:13px}.scope-note svg{width:14px}.sheet{border-radius:9px;box-shadow:none;border-color:var(--line);margin-bottom:18px}.sheet-heading{padding:17px 20px}.sheet-heading h2{font-size:19px}.section-icon{background:#f7eae8;color:#871825;width:34px;height:34px}.sheet-heading p,.draft-total,.keyboard-tip,.filter-controls label{color:#756a6c}.entry-status{color:#785818;background:#fff7e4;border-color:#f0dfb4}.entry-status.saved{color:#791725;border-color:#e0c4c6;background:#faf1f1}thead{background:#f8f4f3;color:#694f54}th{font-size:14px}.entry-table{min-width:770px}.entry-table th.date-col{width:148px}.entry-table th.amount-col{width:144px}.entry-table th.category-col{width:132px}.entry-table th,.entry-table td{border-color:#e9e0de}.entry-table td.num,.history-table td.num,th.num{background:#fcf9f8;color:#8b787b;border-color:#e9e0df}.entry-table input,.entry-table select{color:#47383b}.entry-table input.date-input{color:#7b1929;background:#fcf5f3}.entry-table input:focus,.entry-table select:focus{outline-color:#9e3849;background:#fff9f7}.entry-footer{background:#fffcfb;padding:11px 17px}.draft-total b{color:#5c343b}.button.primary{background:#871825;border-color:#871825}.button.primary:hover{background:#721322}.button.secondary{border-color:#dfd3d4;color:#644750}.button.secondary:hover,.icon-button:hover{background:#fbefef;color:#791b2d}.icon-button{color:#856e75}.button:focus-visible,a:focus-visible,input:focus,select:focus,textarea:focus{outline-color:#a64353}.button.text-button{color:#8a2737}.filter-bar{padding:0 20px 15px}.filter-controls select,.search input,.dialog-grid input,.dialog-grid select,.dialog-grid textarea{border-color:#e4d7d7}.history-table{min-width:750px}.history-table th,.history-table td{border-color:#eee6e4}.history-table .date{color:#77313c}.history-table td.money{font-size:16px;color:#542630}.history-table tbody tr:hover{background:#fcf7f5}.history-table tbody tr.new-record{animation:bg-highlight 3s ease-out}.note-cell,.ledger-footer,.bottom-note{color:#796c6f}.ledger-footer .footer-total,.ledger-footer strong{color:#77313c}.ledger-footer{padding:14px 20px}.stats{gap:12px;margin-bottom:16px}.stat{padding:15px 18px}.stat.featured{background:#fcf0ed;border-color:#e9cfc8}.stat label,.stat small,.stat svg{color:#805c63}.progress-track{background:#f0e5e1}.progress-track span{background:#bd7b7a}.dialog-actions{background:#faf6f5}.dialog-heading .eyebrow{color:#944947}#toast{background:#5c202b;border-color:#803542}#toast button{color:#ffe6ae}.group-switch{background:#fbf4f2}.bg-top #bg-menu,#bg-shade{display:none}.bottom-note{font-size:13px}.summary-table{min-width:630px}#bg-history:focus,#bg-content:focus{outline:none}
@keyframes bg-highlight{from{background:#f8e4db}to{background:transparent}}
@media(min-width:1500px){.bg-shell main{padding-top:30px}.bg-hero{min-height:166px}.hero-art img{height:130px}}
@media(max-width:1120px) and (min-width:901px){:root{--side-width:196px}.bg-brand>span>img{width:109px}.bg-brand>img{width:32px}.bg-side{padding-left:13px;padding-right:13px}.bg-shell main{padding-left:20px;padding-right:20px}}
@media(max-width:900px){.bg-shell{margin-left:0}.bg-side{width:min(286px,82vw);transform:translateX(-101%);transition:transform .18s ease;visibility:hidden}.bg-open .bg-side{transform:translateX(0);visibility:visible}.bg-open{overflow:hidden}#bg-shade:not([hidden]){display:block;position:fixed;inset:0;z-index:12;background:#37131c52;border:0}.bg-top #bg-menu{display:grid;place-items:center;background:#fff7f5;border:1px solid #e5d5d4;color:#742632;border-radius:6px;min-width:40px;min-height:40px}.bg-top{padding:8px 18px;gap:12px}.bg-side .side-bottom{margin-top:auto}.bg-shell main{padding:18px 18px}.hero-art img{height:107px}}
@media(max-width:700px){.crumb{gap:6px}.crumb>svg,.crumb>span,.crumb>i{display:none}.crumb b{font-size:13px}.bg-shell main{padding:14px 12px 20px}.bg-top{padding:8px 12px;min-height:62px}.bg-hero{border-radius:9px;padding:20px 16px;min-height:136px}.bg-edition{font-size:9px;letter-spacing:.9px;gap:6px}.bg-edition>span:first-child{width:12px}.bg-hero h1{font-size:31px;margin:10px 0 6px}.bg-hero p{font-size:13px}.hero-text{max-width:73%}.hero-art{width:27%}.hero-art img{height:78px;max-width:66px}.frame-a{height:94px;width:94px}.frame-b{height:110px;width:110px}.frame-c{height:126px;width:126px}.context-line{padding:12px 2px;gap:8px}.context-line .today{display:flex}.context-line .scope-note{display:flex;font-size:12px;max-width:48%;line-height:1.3}.context-line .today small{display:none}.today strong{font-size:14px}.sheet-heading{padding:15px 14px;gap:5px}.sheet-heading h2{font-size:18px}.sheet-heading p{font-size:13px}.entry-table{min-width:0}.entry-table tr{gap:10px 12px;padding:13px 14px}.entry-table td.date-field{grid-column:1/-1}.entry-table td.product-field{grid-row:2}.entry-table input,.entry-table select{border-color:#e4d9d7}.entry-table td:before{color:#6b575c}.entry-footer{padding:8px 12px 13px}.entry-footer-left{width:auto}.entry-footer-right{flex:1}.entry-footer .draft-total{display:none}.entry-footer-right{justify-content:flex-end}.filter-bar{padding:0 14px 15px}.history-table{min-width:0}.history-table td[data-label="Hạng mục"]{grid-column:1/-1}.history-table td[data-label="Người nhập"]{grid-column:1/-1;color:#7a636a}.history-table td.money{color:#702435}.history-table td[data-label="Sản phẩm"]{padding-right:0}.history-table td.note-cell{padding-right:76px}.ledger-footer{padding:12px 14px}.summary-table{min-width:530px}.bottom-note{font-size:12px}.demo-card select{font-size:16px}}
@media(prefers-reduced-motion:reduce){.bg-side{transition:none}}

@media (min-width:701px) {
  .entry-table.has-commission {min-width:910px;}
  .entry-table.has-commission th.date-col {width:138px;}
  .entry-table.has-commission th.employee-col {width:123px;}
  .entry-table.has-commission th.category-col {width:100px;}
  .entry-table.has-commission th.amount-col {width:123px;}
  .entry-table.has-commission th.rate-col {width:110px;}
  .entry-table.has-commission th,
  .entry-table.has-commission input,
  .entry-table.has-commission select {padding-left:9px;padding-right:9px;}
  .entry-table.has-commission input[type="date"] {min-width:0;}
  .history-table.has-commission {min-width:885px;}
}
@media (max-width:700px) {
  .entry-table.has-commission td.date-field {grid-area:1/1/2/-1;}
  .history-table.has-commission td[data-label="Hạng mục"] {grid-area:3/1/4/-1;}
  .history-table.has-commission td.note-cell {padding-right:0;}
}
