:root{--blue:#b65e3d;--blue2:#c9764e;--ink:#252c32;--muted:#7e827f;--bg:#f2f0eb;--line:#e4e0d8;--white:#fff;--shadow:0 8px 22px #2628200a}
body{background:var(--bg);color:var(--ink);font-family:"Segoe UI",Arial,sans-serif}
.topbar{height:66px;background:#202831;color:#f6f4ef;padding:0 28px;gap:17px;box-shadow:0 3px 14px #11182030}
.brand{display:flex;align-items:center;gap:11px;color:#f6f4ef;font-size:19px;letter-spacing:1.5px;line-height:1.1}
.brand small{font-size:8px;color:#aab0b2;letter-spacing:1.8px;text-align:left;margin-top:5px}
.brand-mark{width:38px;height:38px;display:block;flex:0 0 38px;border-radius:50%;overflow:hidden;background:transparent}.brand-mark img{width:100%;height:100%;display:block;object-fit:cover}
#topnav{display:none!important}.right{gap:17px}.right select{border-color:#677078;color:#f5f3ee;background:#2b343e;padding:8px 10px}.right select option{background:#fff;color:#202831}.icon{color:#d9dfde}.badge{background:#d17a4f}.user-badge{background:#d0895d;color:#202831}
#sidebar{display:block!important;width:254px;background:#26313a;border-right:1px solid #3a444a;padding:21px 14px;color:#e5e6e2}
.side-heading{color:#9caaa9;font-size:9px;letter-spacing:.14em;padding:15px 12px 8px}
.side-link{color:#c4cbca;padding:10px 12px;border-radius:5px;margin:2px 0;transition:background .15s,color .15s}
.side-link:hover{background:#33414a;color:#fff}.side-link.active{background:#3a454a;color:#f3bd94;box-shadow:inset 3px 0 #d18a5c}
.side-count{color:#c79674}.shell{min-height:calc(100vh - 108px)}main{padding:27px 32px 80px;max-width:1660px}
.profile,.card,.panel,.stat,.tablebox,.notice{border:1px solid #e9e5de;box-shadow:var(--shadow)}
.profile{border-radius:8px;padding:20px 25px;border-left:4px solid #c4774e;background:linear-gradient(100deg,#fff 0%,#fff 68%,#f8f2ec 100%)}
.profile-avatar{background:#eee5dc;color:#9c5838;font-weight:700}.profile h1{letter-spacing:-.02em}.card,.stat{border-radius:8px}.circle{background:#f4e8df;color:#a85a38}.updates{background:#e8e0d4}
.promo{border-radius:8px;background:linear-gradient(125deg,#29333b 0%,#303c43 65%,#73513f 100%);position:relative;overflow:hidden}.promo:after{content:"";position:absolute;right:10%;bottom:-90px;width:230px;height:230px;border:1px solid #dd9a6b55;border-radius:50%;box-shadow:0 0 0 25px #dd9a6b0c,0 0 0 50px #dd9a6b0a}.promo>*{position:relative;z-index:1}.promo strong{color:#e3a178}.promo button{background:#bb6844;border-radius:4px}
.pagehead{margin-bottom:21px;border-bottom:1px solid #ddd8cf;padding-bottom:14px}.pagehead h1{font-size:27px;letter-spacing:-.025em}.pagehead h1:before{content:"";display:inline-block;width:5px;height:23px;background:#c5774c;margin-right:12px;vertical-align:-3px;border-radius:2px}
.btn{border-color:#dcd7ce;border-radius:5px;color:#424b4c;background:#fff}.btn:hover{border-color:#b96b48;color:#a75334;background:#fdf9f6}.btn.primary{background:#b65e3d;border-color:#b65e3d;color:#fff}.btn.primary:hover{background:#a94f31}.btn.danger{color:#b54542}
.toolbar select,.search input{border-color:#dfdbd3;border-radius:5px;background:#fff}.toolbar select:focus,.search input:focus{outline-color:#d39c7a;border-color:#b65e3d}
.tablebox{border-radius:7px}th{background:#eeece7;color:#727a78;border-color:#e2ded6}td{border-color:#eeeae3}tbody tr:hover{background:#fbf6f1}.id{color:#a95736}
.status{border-radius:4px}.status.blue{background:#f5e9e0;color:#9a583a}.status.orange{background:#fff2df;color:#a76a2a}.status.green{background:#e8f3ed;color:#39745b}.status.red{background:#f8e9e7;color:#ad4b40}
.modal-bg{backdrop-filter:blur(3px)}.modal{border-radius:8px}.modal-head{background:#faf8f4}.field input,.field select,.field textarea{border-radius:5px;border-color:#ddd8cf}.modal-foot{background:#f7f5f0}.detail{border-radius:7px;box-shadow:none;border:1px solid var(--line)}
.notice{border-radius:7px}.toast{border-radius:5px;background:#27343c;border-left:4px solid #ce8457}
footer{height:42px;background:#202831;color:#b7c0be;border:0}footer span:first-child{color:#e9a176;font-weight:700;letter-spacing:.08em}
@media(max-width:700px){#sidebar{display:none!important;position:fixed;top:60px;bottom:0;z-index:7;width:min(290px,85vw);box-shadow:10px 0 30px #11182033}#sidebar.open{display:block!important}.topbar{height:60px;padding:0 12px}.brand{font-size:17px}main{padding:17px 12px 75px}.pagehead h1{font-size:22px}footer{height:40px}}

/* Dense document lists; other modules retain their existing layout. */
.document-list{min-width:0}
.document-list .pagehead{border:0;margin:0 0 14px;padding:0;align-items:center;flex-wrap:wrap}
.document-title{display:flex;gap:10px;align-items:center;min-width:0}
.document-list .pagehead h1{font-size:24px;line-height:1.25}
.document-list .pagehead h1:before{display:none}
.document-count{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:25px;padding:0 8px;border-radius:7px;background:#e8e4dd;color:#665e54;font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.document-list .buttons{gap:6px;align-items:center}
.document-list .btn{min-height:32px;padding:5px 10px;font-size:12px;border-radius:7px;line-height:1.45}
.document-list .btn:disabled{opacity:.45;cursor:default}
.document-list .toolbar{display:flex;align-items:center;gap:8px;padding:10px;margin:0 0 10px;background:#fff;border:1px solid #e5e1da;border-radius:10px;box-shadow:0 2px 6px #26282003}
.document-list .search{flex:1 1 220px;min-width:160px}
.document-list .search input{font-size:13px;min-height:34px;padding:7px 10px;background:#f8f9fa;border-color:#e4e5e5;border-radius:7px}
.document-list .toolbar select{width:auto;max-width:100%;font-size:12px;min-height:34px;padding:6px 8px;border-radius:7px;border-color:#e4e5e5}
.document-sort{display:flex;align-items:center;gap:6px;font-size:11px;color:#7a7c7c;white-space:nowrap}
.document-list .tablebox{border:1px solid #e3e3e1;border-radius:10px;box-shadow:0 3px 14px #26313a05;max-height:calc(100vh - 270px);min-height:120px;scrollbar-gutter:stable;overscroll-behavior:contain}
.document-list table{min-width:0;width:100%;font-size:12px}
.document-list th{position:sticky;top:0;z-index:1;background:#f6f7f8;padding:9px 10px;text-transform:none;letter-spacing:0;font-size:11px;font-weight:600;color:#788087;border-bottom:1px solid #e5e7e9}
.document-list td{padding:8px 10px;line-height:1.4;border-bottom:1px solid #f0f1f2;vertical-align:middle;color:#35414a}
.document-list tr:last-child td{border-bottom:0}
.document-list tbody tr:hover{background:#faf7f3}
.document-list .id{font-size:11px;font-weight:500;white-space:nowrap}
.document-list .document-money{font-variant-numeric:tabular-nums;white-space:nowrap;text-align:right}
.document-list .status{padding:3px 7px;border-radius:6px;font-size:10px}
.document-list .document-name{min-width:100px;max-width:280px}
.document-record-link{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:280px;width:100%;border:0;padding:0;background:none;text-align:left;font:inherit;font-weight:600;color:#35414a;line-height:1.45;cursor:pointer}
.document-record-link:hover{color:#a95736;text-decoration:underline}
.document-supplier{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:220px;min-width:115px;line-height:1.4}
.document-cell-text{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:280px;line-height:1.4}
.document-list .toolbar>label:not(.document-sort){display:flex;align-items:center;gap:7px;font-size:12px;white-space:nowrap}
.document-list .toolbar>label select{max-width:220px}
.document-list .toolbar .small{font-size:11px;align-self:center}
.document-list>p{font-size:11px;line-height:1.4;margin:6px 0}
.document-list>.toolbar+.toolbar{margin-top:-5px}
.document-list .toolbar .document-sort select{max-width:205px}
.document-list .card{padding:16px;border-radius:10px}
.document-list .notice{padding:12px 14px;margin-bottom:8px;border-radius:10px;gap:12px}
.document-list .notice h3{font-size:14px;margin:0 0 3px}
.document-list .notice p{font-size:12px;margin:0}
.document-list .notice .circle{width:32px;height:32px;font-size:16px;flex-shrink:0}
.document-list .tender-table{min-width:900px;font-size:12px}
.document-list .tender-table-wrap{max-height:65vh;overflow:auto;border:1px solid #e3e3e1;border-radius:10px}
.document-list .tender-table td strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.45}
.document-list .tender-table .tender-actions-cell{padding:8px 10px;min-width:145px}
.document-list .tender-row-actions{gap:5px;min-width:120px}
.document-list .tender-row-actions .btn{padding:4px 8px;min-height:28px}
.document-list td .btn{min-height:26px;padding:3px 7px;font-size:11px;white-space:nowrap;color:#8d5b3f;background:#fdfaf7;border-color:#e8dfd6}
.document-list td select{width:160px;max-width:200px;padding:4px 6px;border:1px solid #e5e7e9;border-radius:6px;background:#fff;color:#35414a;font-size:11px}
.document-list .document-list-footer{padding:9px 2px 0;color:#8b8f91;font-size:11px}
.document-list>p:empty{display:none}
.document-note{margin-top:9px;font-size:11px;color:#858b8f}
.document-note summary{cursor:pointer;width:fit-content}
.document-note p{margin:6px 0 0;max-width:920px}
.document-list :is(button,input,select,summary):focus-visible{outline:2px solid #bb744f;outline-offset:2px}
@media(max-width:1050px){.document-list .toolbar .search{flex-basis:100%}.document-list .pagehead .buttons{flex-wrap:wrap}.document-list .tablebox{max-height:calc(100vh - 330px)}}
@media(max-width:700px){.document-list .pagehead{gap:10px}.document-list .pagehead h1{font-size:21px}.document-list .toolbar{padding:8px;gap:6px}.document-list .toolbar select{max-width:180px}.document-list .document-sort{font-size:0}.document-list .tablebox{max-height:65vh}.document-list th,.document-list td{padding:7px 8px}.document-list .document-record-link{min-width:130px}.document-list .btn{min-height:34px}.document-list td .btn{min-height:30px}}
