@charset "UTF-8";

/* Shop-based Excel exchange, with a readable preview before saving. */
.excel-section{min-width:0}.excel-section+.excel-section{border-top:1px solid var(--line);margin-top:26px;padding-top:24px}
.excel-section-heading{display:flex;align-items:flex-start;gap:12px;margin-bottom:20px}.excel-step{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border-radius:9px;background:#eeedff;color:#5746c7;font-weight:600}.excel-section-heading h3{font-size:17px;margin:0 0 6px}.excel-section-heading p{margin:0;font-size:14px;color:#64748b;line-height:1.7}
.excel-fields{display:grid;grid-template-columns:1fr 2fr;gap:16px}.excel-file-row{display:flex;gap:20px;align-items:center;margin-top:18px}.excel-file-row>button{flex-shrink:0}.excel-file{flex:1;min-width:0;margin-bottom:0}.excel-file input{font-size:14px;max-width:100%;padding:10px}.excel-file small,.excel-hint{color:#64748b;font-size:13px;line-height:1.7}.excel-export-row{display:flex;align-items:flex-end;gap:16px}.excel-export-row .field{flex:1;margin-bottom:0}.excel-export-row>button{flex-shrink:0;min-height:44px}.excel-hint{margin:12px 0 0}
.excel-preview:empty{display:none}.excel-preview{border:1px solid #ddd7f5;border-radius:12px;background:#fdfcff;margin-top:22px;padding:18px;min-width:0}.excel-result-heading{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#453687}.excel-result-heading span{font-size:14px;color:#64748b}.excel-counts{display:flex;gap:22px;flex-wrap:wrap;padding:16px 0;font-size:14px;color:#64748b}.excel-counts b{font-size:20px;color:#334155;margin-right:5px}.excel-error-count,.excel-error-count b{color:#b42318}
.excel-preview-list{max-height:290px;overflow-y:auto;border:1px solid #e7e2f4;border-radius:8px;background:white}.excel-preview-list table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:14px}.excel-preview-list th{padding:11px 12px;background:#f4f1fc;text-align:left;position:sticky;top:0;z-index:1}.excel-preview-list th:first-child{width:29%}.excel-preview-list td{vertical-align:top;padding:13px 12px;border-bottom:1px solid #eeeaf5;overflow-wrap:anywhere}.excel-preview-list td>strong{display:block;margin-top:5px;color:#5746c7}.excel-preview-list td>span:not(.badge),.excel-preview-list small{font-size:13px;color:#64748b}.excel-preview-list td>.badge{margin-right:10px}.excel-preview-list p{white-space:pre-wrap;margin:8px 0 0;line-height:1.6}.excel-preview-list small{display:inline-block;margin-top:5px}
.excel-issues{background:#fff4f2;border-radius:8px;padding:12px 14px;margin-bottom:16px;color:#a3291e;font-size:14px}.excel-issues p{margin:0 0 8px}.excel-issues ul,.excel-skipped ul{margin:0;padding:0;list-style:none;max-height:180px;overflow-y:auto}.excel-issues li,.excel-skipped li{padding:8px 0;display:grid;gap:3px;border-bottom:1px solid #e8dcd744;line-height:1.6}.excel-issues strong,.excel-skipped strong{font-size:13px}.excel-skipped{margin-top:16px;color:#806129;font-size:13px}.excel-skipped summary{cursor:pointer;padding:5px 0}.excel-preview .form-note{margin-top:16px}
@media(max-width:620px){.excel-fields{grid-template-columns:1fr;gap:0}.excel-file-row,.excel-export-row{flex-direction:column;align-items:stretch;gap:14px}.excel-preview{padding:12px}.excel-counts{gap:13px}.excel-preview-list th:first-child{width:34%}.heading-actions{flex-wrap:wrap}}
 
:root{--bg:#f6f7fb;
 --white:#fff;
 --ink:#1e293b;
 --muted:#64748b;
 --line:#e2e8f0;
 --brand:#5750dd;
 --brand-light:#eeedff;
 --green:#08765d;
 --green-light:#e8f7f1;
 --amber:#956316;
 --amber-light:#fff6e5;
 --red:#d24f5b;
 --radius:12px;
 --shadow:0 3px 18px #20253705;
 font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;
 font-size:16px;
 line-height:1.6;
 color:var(--ink);
 background:var(--bg)}

*{box-sizing:border-box}
body{margin:0}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
button:disabled{cursor:not-allowed;
 opacity:.5}
a{color:var(--brand);
 text-decoration:none}
a:hover{text-decoration:underline}
button:focus-visible,a:focus-visible{outline:3px solid #b9b5fa;
 outline-offset:3px}
svg{width:19px;
 height:19px;
 flex-shrink:0;
 vertical-align:middle;
 fill:none;
 stroke:currentColor;
 stroke-width:1.7;
 stroke-linecap:round;
 stroke-linejoin:round}
button{display:inline-flex;
 align-items:center;
 justify-content:center;
 gap:7px;
 border:1px solid var(--line);
 border-radius:8px;
 background:#fff;
 color:#535b70;
 padding:9px 13px;
 transition:background .15s,border-color .15s}
button:hover{background:#f8f9fc;
 border-color:#d8dce7}
.primary{background:var(--brand);
 border-color:var(--brand);
 color:#fff;
 box-shadow:0 3px 7px #5750dd1b}
.primary:hover{background:#4941cb;
 border-color:#4941cb}
.danger{color:var(--red);
 border-color:#f1d8dc}
.ghost{border-color:transparent;
 background:transparent}
.small{font-size:15px;
 padding:6px 9px}
.icon-btn{padding:8px;
 min-width:34px}
.link-btn{border:0;
 background:none;
 padding:4px 6px;
 color:var(--brand);
 font-size:16px}
.link-btn:hover{background:var(--brand-light)}
.subtle{color:var(--muted)}
.mono{font-family:Consolas,"SFMono-Regular",monospace}
.badge{display:inline-flex;
 align-items:center;
 gap:5px;
 border-radius:5px;
 font-size:15px;
 font-weight:500;
 white-space:nowrap;
 padding:4px 7px;
 background:#f1f3f8;
 color:#7b8294}
.badge.purple{color:var(--brand);
 background:var(--brand-light)}
.badge.green{color:var(--green);
 background:var(--green-light)}
.badge.amber{color:var(--amber);
 background:var(--amber-light)}
.badge.red{color:var(--red);
 background:#fceef0}
.badge svg{width:12px;
 height:12px}
.dot{width:5px;
 height:5px;
 display:inline-block;
 border-radius:50%;
 background:currentColor}
.boot{display:grid;
 place-items:center;
 min-height:100vh;
 color:var(--muted)}

.shell{min-height:100vh;
 display:grid;
 grid-template-columns:218px minmax(0,1fr)}
.sidebar{background:#fff;
 border-right:1px solid var(--line);
 display:flex;
 flex-direction:column;
 position:fixed;
 inset:0 auto 0 0;
 width:218px;
 z-index:20;
 padding:27px 16px 18px}
.brand{display:flex;
 gap:11px;
 align-items:center;
 padding:0 10px 30px}
.brand img{width:36px;
 height:36px}
.brand strong{font-size:24px;
 letter-spacing:2px;
 line-height:1.4}
.brand span{display:block;
 font-size:14px;
 color:#64748b;
 letter-spacing:1px}
.nav-label{padding:0 15px;
 font-size:14px;
 letter-spacing:1.4px;
 color:#64748b;
 margin:12px 0 10px}
.nav{display:flex;
 flex-direction:column;
 gap:5px}
.nav a{display:flex;
 align-items:center;
 gap:12px;
 padding:12px 14px;
 color:#64748b;
 font-size:16px;
 font-weight:500;
 border-radius:8px;
 text-decoration:none}
.nav a:hover{background:#f7f7fc}
.nav a.active{color:var(--brand);
 background:var(--brand-light)}
.nav a.active:after{content:"";
 width:5px;
 height:5px;
 border-radius:50%;
 background:var(--brand);
 margin-left:auto}
.sidebar-bottom{margin-top:auto}
.workspace-note{border:1px solid #efeff8;
 border-radius:10px;
 margin:24px 3px 18px;
 padding:13px 12px;
 background:#fafaff;
 font-size:15px;
 line-height:1.8;
 color:#64748b}
.workspace-note strong{display:flex;
 gap:7px;
 align-items:center;
 font-size:15px;
 color:#7771bc;
 margin-bottom:5px}
.workspace-note svg{width:15px;
 height:15px}
.account{padding:15px 5px 0;
 border-top:1px solid var(--line);
 display:flex;
 gap:9px;
 align-items:center}
.avatar{display:grid;
 place-items:center;
 border-radius:9px;
 width:35px;
 height:35px;
 background:#ecebfc;
 color:#6f67d6;
 font-size:16px;
 font-weight:600;
 flex-shrink:0}
.account-info{min-width:0;
 flex:1}
.account-info strong{display:block;
 font-size:15px;
 overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap}
.account-info small{font-size:14px;
 color:var(--muted)}
.account-actions{display:flex;
 margin-top:10px;
 gap:3px}
.account-actions button{font-size:15px;
 flex:1;
 color:#64748b;
 padding:7px 3px}
.account-actions svg{width:13px;
 height:13px}
.main{grid-column:2;
 min-width:0}
.topbar{height:74px;
 border-bottom:1px solid var(--line);
 background:#ffffffd9;
 display:flex;
 align-items:center;
 justify-content:space-between;
 padding:0 34px;
 gap:15px}
.breadcrumb{display:flex;
 align-items:center;
 gap:12px;
 font-size:15px;
 color:#64748b}
.breadcrumb span:last-child{color:#525a70}
.topbar-right{display:flex;
 align-items:center;
 gap:18px;
 font-size:15px;
 color:#64748b}
.topbar-right .badge{font-size:14px}
.content{padding:30px 34px 24px;
 max-width:none;
 margin:auto}
.page-heading{display:flex;
 align-items:center;
 justify-content:space-between;
 gap:15px;
 margin-bottom:25px}
.eyebrow{font-size:14px;
 letter-spacing:1.8px;
 color:#64748b;
 font-weight:600;
 margin-bottom:8px}
.page-heading h1{font-size:30px;
 font-weight:650;
 letter-spacing:.5px;
 margin:0 0 8px}
.page-heading p{margin:0;
 color:#64748b;
 font-size:15px}
.heading-actions{display:flex;
 gap:9px}
.heading-actions button{font-size:15px;
 padding:10px 14px}
.stats{display:grid;
 grid-template-columns:repeat(4,minmax(0,1fr));
 gap:16px;
 margin-bottom:24px}
.stat{border:1px solid var(--line);
 border-radius:11px;
 padding:19px 20px;
 background:#fff;
 display:flex;
 justify-content:space-between;
 align-items:flex-start;
 box-shadow:var(--shadow)}
.stat-label{color:#64748b;
 font-size:15px;
 margin-bottom:11px}
.stat-value{font-size:34px;
 font-weight:650;
 letter-spacing:-.5px}
.stat-foot{font-size:14px;
 color:#64748b;
 margin-top:7px}
.stat-icon{border-radius:10px;
 padding:10px;
 display:flex;
 background:#f1efff;
 color:#7a71dc}
.stat-icon.amber{background:#fff6e8;
 color:#d3a14c}
.stat-icon.green{background:#e9f7f2;
 color:#4ba78c}
.stat-icon.gray{background:#eef1f6;
 color:#8590a6}
.workspace{display:grid;
 grid-template-columns:200px minmax(0,1fr);
 gap:20px;
 align-items:start}
.folders{background:#fff;
 border:1px solid var(--line);
 border-radius:11px;
 padding:16px 10px;
 min-height:420px;
 box-shadow:var(--shadow)}
.panel-heading{display:flex;
 align-items:center;
 justify-content:space-between;
 padding:0 7px 15px}
.panel-heading strong{font-size:15px}
.panel-heading .icon-btn{padding:3px;
 min-width:25px;
 border:0;
 color:#8f95a7}
.panel-heading svg{width:16px;
 height:16px}
.folder-owner{padding:0 5px 10px}
.folder-owner select{font-size:15px;
 min-height:34px;
 background:#fafbfe}
.folder-list{max-height:510px;
 overflow:auto}
.folder-item{display:flex;
 width:100%;
 justify-content:flex-start;
 border:0;
 border-radius:7px;
 padding:11px 10px;
 gap:8px;
 font-size:15px;
 margin:2px 0;
 color:#64748b;
 text-align:left}
.folder-item svg{width:16px;
 height:16px}
.folder-item.active{background:#f0efff;
 color:var(--brand)}
.folder-item .folder-name{overflow:hidden;
 text-overflow:ellipsis;
 white-space:nowrap;
 flex:1}
.folder-item small{display:block;
 font-size:13px;
 opacity:1;
 margin-top:3px}
.folder-count{font-size:14px;
 color:#64748b}
.folder-item.active .folder-count{color:var(--brand)}
.folder-manage{display:flex;
 justify-content:center;
 border-top:1px solid var(--line);
 margin:15px 5px 0;
 padding-top:10px;
 gap:8px}
.folder-manage button{font-size:14px;
 padding:6px 9px}
.folder-empty{font-size:15px;
 text-align:center;
 color:#64748b;
 padding:25px 5px;
 line-height:1.9}
.data-panel{background:#fff;
 border:1px solid var(--line);
 border-radius:11px;
 min-width:0;
 overflow:hidden;
 box-shadow:var(--shadow)}
.table-heading{padding:19px 20px 0;
 display:flex;
 align-items:center;
 justify-content:space-between}
.table-heading strong{font-size:16px}
.table-heading small{font-size:14px;
 color:#64748b;
 margin-left:9px}
.filters{display:flex;
 gap:9px;
 align-items:center;
 flex-wrap:wrap;
 padding:16px 20px}
.search{display:flex;
 align-items:center;
 position:relative;
 flex:1;
 min-width:165px;
 max-width:360px}
.search svg{position:absolute;
 left:11px;
 color:#64748b;
 width:15px;
 height:15px}
.search input{padding-left:34px;
 font-size:15px;
 min-height:36px}
.filters select{width:auto;
 max-width:180px;
 min-height:36px;
 font-size:15px;
 padding-right:24px}
.filters button{min-height:36px;
 font-size:15px}
.date-filters{display:flex;
 gap:12px;
 flex-wrap:wrap;
 padding:0 20px 15px;
 align-items:center}
.date-filters label{display:flex;
 align-items:center;
 gap:8px;
 font-size:15px;
 color:var(--muted)}
.date-filters input{font-size:15px;
 min-height:32px;
 width:145px}
.filter-summary{padding:0 20px 10px;
 font-size:15px;
 color:#8983d1}
.table-scroll{overflow-x:auto;
 min-height:310px}
table{width:100%;
 border-collapse:collapse;
 white-space:nowrap;
 text-align:left}
th{background:#fafbfe;
 border-top:1px solid var(--line);
 border-bottom:1px solid var(--line);
 padding:12px 13px;
 font-size:14px;
 font-weight:500;
 color:#64748b}
td{border-bottom:1px solid #f0f2f7;
 padding:16px 13px;
 font-size:15px;
 height:96px}
th:first-child,td:first-child{padding-left:20px}
th:last-child,td:last-child{padding-right:20px}
tr:last-child td{border-bottom:0}
tbody tr:hover{background:#fcfcff}
.id-cell{color:#475569;
 font-size:15px}
.product-link{display:flex;
 gap:8px;
 align-items:center;
 max-width:185px;
 min-width:100px}
.product-link .link-mark{width:27px;
 height:29px;
 border:1px solid #ededf5;
 border-radius:7px;
 background:#fcfcff;
 display:grid;
 place-items:center;
 color:#9d97cb;
 flex-shrink:0}
.link-mark svg{width:14px;
 height:14px}
.product-link a{color:#334155;
 display:block;
 max-width:150px;
 overflow:hidden;
 text-overflow:ellipsis;
 font-size:15px;
 font-weight:500}
.product-link small{display:block;
 color:#64748b;
 overflow:hidden;
 text-overflow:ellipsis;
 max-width:150px;
 margin-top:5px;
 font-size:13px}
.purchase-link{color:#5146b8;
 font-size:14px;
 display:inline-flex;
 align-items:center;
 gap:4px;
 max-width:125px}
.purchase-link span{overflow:hidden;
 text-overflow:ellipsis;
 max-width:100px}
.purchase-link svg{width:11px;
 height:11px}
.pending-text{color:#64748b;
 font-size:14px}
.quantity{font-size:15px;
 font-weight:600}
.quantity small{font-weight:400;
 font-size:13px;
 color:#64748b;
 margin-left:3px}
.notes-cell{max-width:120px;
 overflow:hidden;
 text-overflow:ellipsis;
 color:#64748b}
.owner-cell strong{display:block;
 font-size:15px;
 font-weight:500}
.owner-cell small{display:block;
 color:#64748b;
 font-size:13px;
 margin-top:5px}
.status-cell .badge{font-size:13px;
 padding:4px 6px}
.status-cell small{display:flex;
 align-items:center;
 gap:3px;
 font-size:13px;
 color:#64748b;
 margin-top:5px}
.status-cell small svg{width:10px;
 height:10px}
.row-actions{display:flex;
 gap:3px}
.row-actions button{font-size:14px;
 padding:6px 7px;
 white-space:nowrap}
.row-actions .icon-btn{padding:5px;
 min-width:25px}
.row-actions svg{width:13px;
 height:13px}
.pagination{display:flex;
 align-items:center;
 justify-content:space-between;
 padding:15px 20px;
 border-top:1px solid var(--line);
 font-size:14px;
 color:#64748b;
 gap:10px}
.page-buttons{display:flex;
 gap:5px;
 align-items:center}
.page-buttons button{padding:4px 7px;
 min-width:27px;
 height:27px;
 font-size:14px}
.page-buttons svg{width:13px;
 height:13px}
.page-buttons span{padding:0 5px;
 color:#757d93;
 font-size:15px}
.empty{padding:65px 20px;
 text-align:center;
 color:#64748b;
 white-space:normal}
.empty-icon{width:54px;
 height:54px;
 border-radius:16px;
 background:#f1f0fc;
 display:grid;
 place-items:center;
 margin:0 auto 17px;
 color:#a39bdf}
.empty-icon svg{width:25px;
 height:25px}
.empty strong{display:block;
 color:#70788f;
 font-size:16px;
 font-weight:500;
 margin-bottom:7px}
.empty p{font-size:15px;
 line-height:1.8;
 margin:0 0 16px}
.empty button{font-size:15px}
.footer{display:flex;
 justify-content:space-between;
 gap:12px;
 color:#64748b;
 font-size:13px;
 padding-top:22px}
.footer span:first-child{display:flex;
 align-items:center;
 gap:5px}
.footer svg{width:12px;
 height:12px}
.loading-row{padding:65px;
 text-align:center;
 color:#64748b}
.error-panel{margin:15px 20px;
 padding:15px;
 border-radius:8px;
 background:#fff1f2;
 color:#b9515e;
 font-size:15px}
.users-table td{height:76px;
 font-size:15px}
.user-name{display:flex;
 gap:10px;
 align-items:center}
.user-name .avatar{width:32px;
 height:32px;
 font-size:15px}
.user-name strong{font-size:15px;
 font-weight:500;
 display:block}
.user-name small{display:block;
 margin-top:4px;
 font-size:14px;
 color:#64748b}
.log-desc{color:#727a90;
 max-width:200px;
 overflow:hidden;
 text-overflow:ellipsis}

input,select,textarea{width:100%;
 border:1px solid #e3e6ef;
 border-radius:7px;
 padding:10px 12px;
 background:#fff;
 color:#535d74;
 min-height:40px;
 outline:none;
 transition:border-color .15s}
input:focus,select:focus,textarea:focus{border-color:#9690ed;
 box-shadow:0 0 0 3px #5750dd0a}
input::placeholder,textarea::placeholder{color:#718096}
textarea{resize:vertical;
 min-height:95px;
 line-height:1.7}
label.field{display:block;
 font-size:15px;
 font-weight:500;
 color:#626a80;
 margin-bottom:18px}
.field input,.field select,.field textarea{margin-top:8px;
 font-size:15px}
.field small{display:block;
 font-size:14px;
 font-weight:400;
 color:#64748b;
 margin-top:7px;
 line-height:1.6}
.field .required{color:#cd6879;
 margin-left:3px}
.form-grid{display:grid;
 grid-template-columns:1fr 1fr;
 gap:0 16px}
.form-grid .wide{grid-column:1/-1}
.form-error{padding:11px 13px;
 font-size:15px;
 background:#fff0f2;
 color:#bd4d5e;
 border-radius:7px;
 margin-bottom:16px;
 line-height:1.7}
.form-error:empty{display:none}
.conflict-panel{padding:18px;border:1px solid #edc67b;border-radius:12px;background:#fffcf4;margin-bottom:22px;color:#60471f;outline:none}
.conflict-panel[hidden]{display:none}
.conflict-panel.resolved{background:#f0fbf6;border-color:#9fd8bb;color:#236343}
.conflict-heading{display:flex;gap:10px;align-items:flex-start}
.conflict-heading>svg{width:23px;height:23px;flex-shrink:0;margin-top:2px}
.conflict-panel strong{font-size:16px;line-height:1.6}
.conflict-panel p{margin:7px 0 12px;font-size:15px;line-height:1.8}
.conflict-updated{font-size:13px;color:#78684c;margin:8px 0 12px}
.conflict-item{border:1px solid #e1e5ee;border-radius:9px;background:white;margin:12px 0;overflow:hidden}
.conflict-item.needs-choice{border-color:#d9af62}
.conflict-item-heading{display:flex;flex-wrap:wrap;gap:5px 12px;justify-content:space-between;background:#f6f7fb;padding:10px 12px}
.conflict-item-heading>span{font-size:13px;color:#65718a}
.conflict-item.needs-choice .conflict-item-heading{background:#fff1d8}
.conflict-columns{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.conflict-side{display:block;padding:12px;min-width:0;color:#334155}
.conflict-side+.conflict-side{border-left:1px solid #e4e8f0;background:#f8fafc}
.conflict-side>strong{display:flex;gap:7px;align-items:center;margin-bottom:8px;font-size:14px}
.conflict-side input[type=radio]{width:18px;height:18px;min-height:18px;margin:0;accent-color:#5748d9;flex-shrink:0;padding:0}
.conflict-side:has(input:checked){background:#f0edff;box-shadow:inset 0 0 0 2px #9c91e9}
.conflict-side:has(input:disabled){opacity:.7}
.conflict-side>small{display:block;font-size:13px;color:#916727;margin-top:8px;line-height:1.7}
.conflict-value{white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font-size:15px;line-height:1.7;margin:6px 0}
.conflict-purchase-value{padding:7px 0;border-bottom:1px dashed #e2e8f0}
.conflict-purchase-value:last-child{border-bottom:0}
.conflict-purchase-value .purchase-gallery{margin:8px 0}
.conflict-purchase-value figure{margin:0;max-width:110px}
.conflict-purchase-value figcaption{font-size:12px;overflow-wrap:anywhere}
.conflict-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:16px}
.conflict-choice-error{font-size:14px;color:#b44c35;line-height:1.7;margin-top:9px}
.conflict-product-context{font-size:14px;margin:12px 0;color:#4c5870}
.conflict-product-context summary{cursor:pointer}
.conflict-product-context .readonly-card{margin-top:10px}
.dialog-fields[inert]{opacity:.72}
@media(max-width:620px){.conflict-panel{padding:12px}.conflict-columns{grid-template-columns:1fr}.conflict-side+.conflict-side{border-left:0;border-top:1px solid #e4e8f0}.conflict-actions>button{flex:1;white-space:normal}}
.form-note{display:flex;
 align-items:flex-start;
 gap:8px;
 padding:12px 13px;
 border-radius:8px;
 background:#f6f5ff;
 color:#645c89;
 font-size:15px;
 line-height:1.9;
 margin-bottom:20px}
.form-note svg{width:15px;
 height:15px;
 margin-top:3px}
.form-note.amber{background:#fff8e9;
 color:#8c641f}
dialog{border:0;
 padding:0;
 border-radius:15px;
 box-shadow:0 25px 100px #1f254040;
 width:680px;
 max-width:calc(100vw - 30px);
 color:var(--ink);
 max-height:90vh}
dialog::backdrop{background:#1c213b63;
 backdrop-filter:blur(3px)}
.modal-header{padding:23px 25px 18px;
 display:flex;
 align-items:center;
 justify-content:space-between;
 border-bottom:1px solid var(--line)}
.modal-header h2{font-size:20px;
 font-weight:600;
 margin:0}
.modal-header small{font-size:14px;
 color:var(--muted);
 display:block;
 margin-top:7px}
.modal-header button{border:0;
 padding:3px;
 color:#9ca2b2}
.modal-body{padding:23px 25px 6px;
 max-height:65vh;
 overflow:auto}
.modal-footer{display:flex;
 justify-content:flex-end;
 gap:9px;
 padding:17px 25px;
 border-top:1px solid var(--line);
 background:#fdfdff}
.modal-footer button{font-size:15px;
 padding:9px 18px}
.detail-row{display:grid;
 grid-template-columns:100px minmax(0,1fr);
 gap:15px;
 font-size:15px;
 padding:12px 0;
 border-bottom:1px solid #f1f2f7;
 line-height:1.8}
.detail-row:last-child{border:0}
.detail-row dt{color:#64748b}
.detail-row dd{margin:0;
 overflow-wrap:anywhere;
 white-space:pre-wrap}
.detail-row a{word-break:break-all}
.detail-list{margin:0 0 18px}
.detail-list .badge{vertical-align:middle}
.readonly-card{background:#fafbfe;
 border:1px solid var(--line);
 border-radius:9px;
 padding:0 15px;
 margin-bottom:22px}
.readonly-card .detail-row{font-size:15px;
 grid-template-columns:80px minmax(0,1fr)}
.history-diff{white-space:pre-wrap;
 overflow-wrap:anywhere;
 padding:10px;
 background:#fafbfe;
 font-size:15px;
 line-height:1.8;
 border:1px solid var(--line);
 border-radius:7px;
 margin-bottom:15px}
.toast{position:fixed;
 bottom:28px;
 left:50%;
 transform:translate(-50%,20px);
 padding:13px 22px;
 border-radius:9px;
 background:#2e354d;
 color:#fff;
 font-size:15px;
 box-shadow:0 6px 30px #1c254030;
 opacity:0;
 pointer-events:none;
 transition:opacity .2s,transform .2s;
 z-index:100;
 max-width:90vw;
 line-height:1.7}
.toast.show{opacity:1;
 transform:translate(-50%,0)}
.toast.error{background:#a64c5b}
.login{min-height:100vh;
 display:grid;
 grid-template-columns:1.08fr 1fr;
 background:#fff}
.login-visual{background:#f0effa;
 position:relative;
 overflow:hidden;
 display:flex;
 flex-direction:column;
 justify-content:center;
 padding:65px max(7vw,40px);
 min-height:100vh}
.login-visual:before,.login-visual:after{content:"";
 position:absolute;
 border:1px solid #dcd8f4;
 border-radius:50%;
 width:700px;
 height:700px;
 left:-280px;
 bottom:-450px;
 pointer-events:none}
.login-visual:after{width:900px;
 height:900px;
 left:-370px;
 bottom:-540px}
.login-visual .brand{position:absolute;
 top:44px;
 left:42px;
 padding:0}
.login-visual h1{font-size:40px;
 line-height:1.6;
 letter-spacing:2px;
 font-weight:650;
 margin:0 0 20px}
.login-visual h1 span{color:var(--brand)}
.login-visual p{color:#8c87a2;
 font-size:16px;
 line-height:2}
.login-flow{display:flex;
 align-items:center;
 gap:12px;
 margin-top:38px}
.flow-card{background:#ffffffb3;
 border:1px solid #e3e0f5;
 border-radius:12px;
 padding:20px 18px;
 width:125px;
 box-shadow:0 6px 25px #5750dd05}
.flow-card svg{color:#8a80d4;
 width:23px;
 height:23px;
 margin-bottom:10px}
.flow-card strong{display:block;
 font-size:15px;
 font-weight:500}
.flow-card small{font-size:13px;
 color:#a39db9;
 display:block;
 margin-top:7px}
.login-flow>svg{color:#b9b0de;
 width:16px}
.login-form-wrap{display:flex;
 align-items:center;
 justify-content:center;
 padding:50px 30px}
.login-form{width:340px;
 max-width:100%}
.login-form h2{font-size:30px;
 font-weight:600;
 margin:0 0 12px}
.login-form>p{font-size:15px;
 line-height:1.8;
 color:#64748b;
 margin:0 0 35px}
.login-form .field{margin-bottom:23px}
.login-form input{min-height:45px}
.login-form .primary{width:100%;
 margin-top:6px;
 min-height:44px}
.login-footer{font-size:14px;
 color:#64748b;
 text-align:center;
 margin-top:28px;
 line-height:1.9}
.password-wrap{position:relative}
.password-wrap input{padding-right:45px}
.password-wrap button{position:absolute;
 right:5px;
 top:12px;
 border:0;
 padding:7px;
 color:#a2a8b9}
.force-password{min-height:100vh;
 display:grid;
 place-items:center;
 background:var(--bg);
 padding:25px}
.force-card{width:420px;
 max-width:100%;
 padding:35px;
 background:#fff;
 border:1px solid var(--line);
 border-radius:15px}
.force-card h1{font-size:24px;
 margin:22px 0 12px}
.force-card>p{font-size:15px;
 color:var(--muted);
 line-height:1.9;
 margin-bottom:24px}
.force-actions{display:flex;
 justify-content:space-between;
 margin-top:22px}
.force-card img{width:43px;
 height:43px}
.mobile-toggle{display:none}
.mobile-shade{display:none}

.filters .log-id-input{max-width:115px;
 min-height:36px;
 font-size:15px}
.modal-body>p.subtle{font-size:14px;
 margin-top:-10px;
 margin-bottom:22px}

.purchase-modal{width:760px}
.purchase-section-heading{display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
 margin:5px 0 15px}
.purchase-section-heading strong{font-size:16px}
.purchase-section-heading small{font-size:14px;
 color:var(--muted)}
.purchase-entry{border:1px solid #e6e8f1;
 border-radius:10px;
 background:#fcfcff;
 padding:15px;
 margin-bottom:13px}
.purchase-entry-heading{display:flex;
 justify-content:space-between;
 align-items:center;
 gap:12px;
 margin-bottom:12px}
.purchase-entry-heading strong{font-size:15px;
 color:#60677f}
.purchase-entry-heading>span{font-size:14px;
 color:var(--muted)}
.purchase-entry-heading button{padding:4px 7px;
 font-size:14px;
 color:#a0a6b8}
.purchase-entry-heading button svg{width:13px;
 height:13px}
.purchase-url-field{margin-bottom:11px!important}
.purchase-url-field input{margin:0!important}
.purchase-gallery{display:flex;
 gap:9px;
 flex-wrap:wrap;
 margin-top:12px}
.purchase-gallery>a,.purchase-photo{width:88px;
 height:88px;
 position:relative;
 display:block;
 border-radius:8px;
 border:1px solid #e6e8f1;
 background:#fff;
 flex-shrink:0}
.purchase-gallery img{display:block;
 width:100%;
 height:100%;
 object-fit:cover;
 border-radius:7px}
.purchase-gallery a:hover{outline:2px solid #d5d1fa}
.purchase-gallery.compact{gap:5px;
 margin:6px 0 0}
.purchase-gallery.compact>a{width:36px;
 height:36px;
 border-radius:5px}
.purchase-gallery.compact img{border-radius:4px}
.purchase-photo>a{display:block;
 width:100%;
 height:100%}
.purchase-photo .remove-photo{position:absolute;
 right:-6px;
 top:-6px;
 background:#fff;
 border:1px solid #e2e5ee;
 border-radius:50%;
 padding:3px;
 color:#969daf;
 box-shadow:0 2px 6px #1c213b14}
.remove-photo svg{width:12px;
 height:12px}
.purchase-photo.pending small{position:absolute;
 bottom:0;
 left:0;
 right:0;
 text-align:center;
 border-radius:0 0 7px 7px;
 font-size:13px;
 background:#5750ddc9;
 color:#fff;
 padding:3px}
.purchase-upload{display:inline-flex;
 gap:6px;
 align-items:center;
 position:relative;
 margin-top:12px;
 padding:8px 11px;
 font-size:15px;
 color:var(--brand);
 border:1px dashed #ccc8ef;
 border-radius:7px;
 background:#f5f4ff;
 cursor:pointer;
 overflow:hidden}
.purchase-upload svg{width:15px;
 height:15px}
.purchase-upload input{position:absolute;
 inset:0;
 opacity:0;
 cursor:pointer;
 margin:0;
 padding:0}
.purchase-upload:focus-within{outline:3px solid #c8c3fb;
 outline-offset:2px}
.purchase-upload-hint{display:block;
 font-size:13px;
 color:#64748b;
 margin-top:8px;
 line-height:1.7}
.purchase-editor{display:block;
 font-size:14px;
 color:#64748b;
 margin-top:12px;
 line-height:1.7}
.add-purchase-row{width:100%;
 border:1px dashed #d6d2ef;
 background:#f8f7ff;
 color:var(--brand);
 font-size:15px;
 padding:11px;
 margin:0 0 20px}
.purchase-full-url{font-size:15px;
 overflow-wrap:anywhere;
 white-space:normal;
 line-height:1.8}
.purchase-summary{min-width:150px;
 max-width:200px}
.purchase-summary>.purchase-link{display:flex;
 max-width:175px;
 margin:3px 0}
.purchase-summary>.purchase-link span{max-width:150px}
.purchase-count{font-size:13px;
 border:0;
 padding:0;
 margin-top:6px;
 color:#64748b;
 background:none;
 justify-content:flex-start}
.purchase-count:hover{background:none;
 color:var(--brand)}
.purchase-empty{font-size:15px;
 line-height:1.9;
 margin:10px 0 25px}
.visually-hidden{position:absolute;
 width:1px;
 height:1px;
 padding:0;
 margin:-1px;
 overflow:hidden;
 clip:rect(0,0,0,0);
 white-space:nowrap;
 border:0}
.purchase-entry.readonly .purchase-gallery{margin-bottom:8px}
form[aria-busy=true]{opacity:.7}

.table-scroll th:last-child,.table-scroll td:last-child{position:sticky;
 right:0;
 box-shadow:-7px 0 12px #30375e05}
.table-scroll th:last-child{background:#fafbfe}
.table-scroll td:last-child{background:#fff}
.table-scroll tbody tr:hover td:last-child{background:#fcfcff}

.copy-row td{background:#fafaff;
 border-top:1px dashed #e8e5f4}
.table-scroll .copy-row td:last-child{background:#fafaff}
.copy-row .id-cell{color:#725b9b;
 white-space:nowrap}
.copy-branch{color:#c4bbdf;
 margin-right:8px}
.copy-total{display:block;
 font-family:inherit;
 font-size:13px;
 font-weight:400;
 color:#64748b;
 margin-top:6px}
.row-actions .create-copy{color:#725b9b}
.copy-row .link-mark{background:#f1eef9;
 color:#ad9bc5}
.copy-row .product-link small{color:#64748b}

@media(min-width:1600px){.workspace{grid-template-columns:215px minmax(0,1fr)}
.product-link{max-width:240px}
.product-link a,.product-link small{max-width:210px}
td{padding:18px 17px}
}

@media(max-width:1200px){.shell{grid-template-columns:185px minmax(0,1fr)}
.sidebar{width:185px;
 padding-left:10px;
 padding-right:10px}
.content{padding:25px 22px}
.topbar{padding:0 22px}
.workspace{grid-template-columns:170px minmax(0,1fr);
 gap:14px}
.stats{gap:10px}
.stat{padding:16px 13px}
.stat-icon{padding:7px}
.stat-value{font-size:30px}
.topbar-right>span{display:none}
.brand{padding-left:8px}
.brand strong{font-size:22px}
.brand img{width:32px;
 height:32px}
}

@media(max-width:850px){.workspace{grid-template-columns:minmax(0,1fr)}
.folders{min-height:0;
 padding:12px;
 display:block}
.folder-list{display:flex;
 gap:4px;
 overflow:auto;
 max-height:none}
.folder-item{width:auto;
 flex-shrink:0;
 min-width:100px;
 padding:9px 12px}
.folder-item small{display:none}
.panel-heading{padding:0 3px 9px}
.folder-owner{padding-bottom:8px}
.folder-owner select{width:auto;
 max-width:100%}
.folder-manage{margin:7px 0 0;
 padding-top:8px;
 justify-content:flex-start}
.folder-empty{padding:8px}
.folder-empty br{display:none}
.table-scroll{min-height:260px}
.stats{grid-template-columns:repeat(2,minmax(0,1fr));
 gap:12px}
.stat{padding:15px 18px}
.stat-value{font-size:28px}
.stat-foot{display:none}
.page-heading h1{font-size:26px}
.heading-actions .ghost-label{display:none}
.login-visual{padding:40px}
.login-visual h1{font-size:32px}
.login-flow{gap:7px}
.flow-card{width:90px;
 padding:14px 10px}
.flow-card small{font-size:12px}
.login-visual .brand{left:30px;
 top:30px}
}

@media(max-width:620px){.shell{display:block}
.sidebar{transform:translateX(-100%);
 transition:transform .2s;
 width:218px}
.sidebar.open{transform:translateX(0)}
.mobile-shade.open{display:block;
 position:fixed;
 inset:0;
 background:#1c213b50;
 z-index:19}
.mobile-toggle{display:inline-flex;
 padding:4px;
 border:0}
.topbar{height:59px;
 padding:0 16px}
.topbar-right{gap:7px}
.breadcrumb{gap:8px;
 font-size:15px}
.content{padding:22px 16px}
.page-heading{align-items:flex-start;
 margin-bottom:20px}
.page-heading h1{font-size:24px}
.page-heading p{font-size:14px;
 line-height:1.8;
 max-width:195px}
.eyebrow{font-size:13px;
 margin-bottom:5px}
.heading-actions{gap:5px}
.heading-actions button{padding:8px 9px;
 font-size:14px}
.heading-actions button svg{width:15px;
 height:15px}
.stats{gap:9px;
 margin-bottom:18px}
.stat{padding:14px 12px}
.stat-label{font-size:14px;
 margin-bottom:8px}
.stat-value{font-size:28px}
.stat-icon{padding:6px;
 border-radius:8px}
.stat-icon svg{width:17px;
 height:17px}
.workspace{gap:14px}
.filters{padding:13px 14px;
 gap:7px}
.search{max-width:none;
 min-width:100%;
 flex-basis:100%}
.filters select{flex:1;
 max-width:none;
 font-size:14px}
.table-heading{padding:16px 14px 0}
.table-heading small{font-size:13px}
.pagination{padding:13px 14px}
.footer{font-size:12px;
 line-height:1.8}
.footer span:last-child{display:none}
.login{display:block}
.login-visual{display:none}
.login-form-wrap{min-height:100vh;
 padding:35px}
.login-form:before{content:"";
 display:block;
 width:46px;
 height:46px;
 background:url('/static/favicon.svg') center/contain no-repeat;
 margin-bottom:30px}
.modal-body{padding:20px 20px 5px}
.modal-header{padding:20px}
.modal-footer{padding:15px 20px}
.form-grid{display:block}
.date-filters{padding:0 14px 13px}
.date-filters input{width:125px}
.date-filters label{font-size:14px}
}


/* Comfortable daily-use controls and readable data tables. */
button{min-height:42px;line-height:1.5}
button.icon-btn{min-width:40px;min-height:40px}
input,select,textarea{min-height:46px;border-color:#d4dbe6;color:#334155}
input:focus,select:focus,textarea:focus{border-color:#776de0;box-shadow:0 0 0 3px #5750dd18}
input::placeholder,textarea::placeholder{color:#718096}
.nav a{min-height:48px}.account-info strong{font-size:15px}.account-actions button{min-height:40px}
.page-heading p{line-height:1.8}.stat-label{font-weight:500}.stat-foot{line-height:1.6}
.panel-heading strong,.table-heading strong{font-size:16px}.folder-owner select{min-height:44px}.folder-item{min-height:48px}.folder-count{font-variant-numeric:tabular-nums}
.filters{gap:12px;padding:20px}.filters input,.filters select,.filters button{min-height:44px}.search{max-width:420px;min-width:220px}.filters select{max-width:220px}.search svg{width:18px;height:18px}
.table-scroll{min-height:360px;scrollbar-width:auto;scrollbar-color:#adb8cc #f1f4f9}.table-scroll table{min-width:1100px}.table-scroll .users-table{min-width:950px}
th{font-weight:600;color:#475569;padding-top:16px;padding-bottom:16px;background:#f5f7fb}td{padding-top:20px;padding-bottom:20px;line-height:1.65;border-bottom-color:#e8edf4;color:#334155}
.id-cell{font-weight:600;font-variant-numeric:tabular-nums}.product-link{max-width:220px;gap:10px}.product-link a{font-weight:600;max-width:180px}.product-link small{max-width:180px;line-height:1.5}.product-link .link-mark{width:34px;height:36px}.link-mark svg{width:18px;height:18px}
.quantity{font-size:16px}.notes-cell{color:#475569;max-width:180px}.owner-cell strong{color:#334155;font-weight:600}.status-cell small{line-height:1.6}.status-cell small svg{width:13px;height:13px}
.row-actions{gap:5px;align-items:center}.row-actions button{min-height:40px;padding:8px 10px}.row-actions .icon-btn{min-width:36px;min-height:40px;padding:8px}.row-actions svg{width:17px;height:17px}.copy-row td:first-child{border-left:3px solid #d9d1f0}.copy-total{line-height:1.5}.copy-row .product-link small{color:#73678a}
.purchase-link{line-height:1.6}.purchase-link svg{width:14px;height:14px}.purchase-summary{min-width:170px;max-width:230px}.purchase-count{min-height:30px;line-height:1.5}.purchase-gallery.compact>a{width:46px;height:46px}.purchase-gallery>a,.purchase-photo{width:104px;height:104px}.purchase-gallery.compact>a{width:46px;height:46px}
.pagination{padding-top:18px;padding-bottom:18px}.page-buttons button{min-width:38px;height:38px}.page-buttons svg{width:17px;height:17px}.pagination span{line-height:1.6}.empty{line-height:1.7}
.modal-header h2{line-height:1.5}.modal-header small{line-height:1.6}.modal-header button{min-width:40px;min-height:40px}.modal-body{padding:26px 28px 12px;max-height:calc(90vh - 165px)}.modal-footer{padding:18px 28px}.modal-footer button{min-height:44px;min-width:92px}.detail-row{grid-template-columns:110px minmax(0,1fr);padding:14px 0}.detail-row dt{color:#64748b}.readonly-card .detail-row{grid-template-columns:90px minmax(0,1fr);font-size:15px}.form-note{line-height:1.8;padding:14px 16px}.field small{line-height:1.7}.purchase-entry{padding:18px}.purchase-entry-heading strong,.purchase-section-heading strong{font-size:16px}.purchase-full-url{font-size:15px;line-height:1.8}.purchase-upload{min-height:44px;padding:10px 14px}.purchase-upload svg{width:18px;height:18px}.purchase-upload-hint,.purchase-editor{line-height:1.7}.purchase-photo .remove-photo{min-width:28px;min-height:28px}.add-purchase-row{min-height:46px}.toast{font-size:15px}
.login-form{width:380px}.login-form input{min-height:48px}.login-form .primary{min-height:48px}.password-wrap button{min-height:36px}.login-visual p{color:#706b83}
@media(min-width:1600px){.content{padding:32px 32px 26px}.workspace{grid-template-columns:230px minmax(0,1fr);gap:24px}.product-link{max-width:240px}.product-link a,.product-link small{max-width:200px}td{padding-left:16px;padding-right:16px}}
@media(max-width:1280px) and (min-width:851px){.workspace{grid-template-columns:minmax(0,1fr)}.folders{min-height:0;padding:14px}.folder-list{display:flex;gap:6px;max-height:none;overflow:auto}.folder-item{width:auto;min-width:155px;flex-shrink:0}.folder-owner{max-width:250px}.folder-manage{justify-content:flex-start}.panel-heading{padding-bottom:10px}}
@media(max-width:850px){.filters{padding:16px}.stat{padding:18px 16px}.table-heading small{display:block;margin:5px 0 0}.folder-item{font-size:15px}.table-scroll{min-height:300px}}
@media(max-width:620px){.content{padding:22px 14px}.filters{gap:9px;padding:14px}.search{min-width:100%}.filters select{max-width:none;min-height:44px;font-size:14px}.filters button{min-height:42px}.table-heading{padding:18px 14px 0}.page-heading p{font-size:14px}.heading-actions button{font-size:14px;min-height:42px}.pagination{align-items:flex-start;flex-wrap:wrap;font-size:13px}.modal-body{padding:20px 18px 8px}.modal-footer{padding:16px 18px}.detail-row{grid-template-columns:84px minmax(0,1fr);gap:10px;font-size:15px}.readonly-card .detail-row{grid-template-columns:76px minmax(0,1fr)}.purchase-entry{padding:14px}.purchase-section-heading{align-items:flex-start}.login-form-wrap{padding:28px}.breadcrumb{font-size:14px}.footer{font-size:12px}}

.brand span{font-size:12px;letter-spacing:.7px;white-space:nowrap}.workspace-note strong{font-size:14px;gap:6px}.purchase-gallery.compact>a{width:46px;height:46px}

/* Keep a single scroll area and visible actions in tall dialogs. */
dialog[open]{display:flex;flex-direction:column;overflow:hidden}
dialog>form{display:flex;flex-direction:column;min-height:0;flex:1;overflow:hidden}
.modal-header,.modal-footer{flex-shrink:0}
.modal-body{flex:1;min-height:0;max-height:none;overflow-y:auto}
.purchase-entry-heading button,.modal-header button{color:#64748b}

/* Fit every product column to the workspace without reducing readable type. */
.table-scroll .products-table{width:100%;min-width:0;table-layout:fixed;white-space:normal}
.products-table .col-number{width:8%}.products-table .col-source{width:17%}.products-table .col-quantity{width:6%}.products-table .col-sourcing{width:16%}.products-table .col-notes{width:14%}.products-table .col-procurement-notes{width:15%}.products-table .col-status{width:11%}.products-table .col-actions{width:13%}
.products-table.has-owner .col-number{width:8%}.products-table.has-owner .col-source{width:15%}.products-table.has-owner .col-quantity{width:5%}.products-table.has-owner .col-sourcing{width:15%}.products-table.has-owner .col-notes{width:12%}.products-table.has-owner .col-procurement-notes{width:14%}.products-table.has-owner .col-owner{width:8%}.products-table.has-owner .col-status{width:10%}.products-table.has-owner .col-actions{width:13%}
.products-table th,.products-table td{padding:14px 8px;overflow-wrap:anywhere;white-space:normal;vertical-align:middle}
.products-table th:last-child,.products-table td:last-child{position:static;box-shadow:none}
.products-table .id-cell{white-space:normal}.products-table .copy-branch{margin-right:3px}.products-table .copy-total{overflow-wrap:normal}
.products-table .product-link{width:100%;min-width:0;max-width:none;gap:7px}.products-table .product-link>div{min-width:0;flex:1}.products-table .product-link .link-mark{width:26px;height:30px}.products-table .link-mark svg{width:16px;height:16px}
.products-table .product-link a,.products-table .product-link small{max-width:100%;white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.products-table .quantity{overflow-wrap:anywhere}.products-table .quantity small{margin-left:2px}
.products-table .purchase-summary{min-width:0;max-width:none;width:100%}.products-table .purchase-summary>.purchase-link{max-width:100%;min-width:0}.products-table .purchase-summary>.purchase-link span{max-width:none;min-width:0}.products-table .purchase-link svg{flex-shrink:0}.products-table .purchase-count{max-width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;justify-content:flex-start}
.products-table .purchase-gallery.compact{flex-wrap:wrap;gap:4px}.products-table .purchase-gallery.compact>a{width:38px;height:38px}
.products-table .notes-cell{max-width:none;overflow:visible}.products-table .notes-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere}
.products-table .owner-cell strong,.products-table .owner-cell small{overflow-wrap:anywhere}.products-table .status-cell small{white-space:normal;align-items:flex-start}.products-table .status-cell small svg{margin-top:3px}.products-table .badge{max-width:100%;white-space:normal}
.products-table .row-actions{display:grid;grid-template-columns:minmax(0,1fr) 32px;gap:3px;align-items:center;width:100%}
.products-table .row-actions button{min-width:0;max-width:100%;padding:7px 4px;white-space:normal;overflow-wrap:anywhere}
.products-table .row-actions [data-action="purchase"],.products-table .row-actions [data-action="edit-product"]{grid-column:1;grid-row:1}
.products-table .row-actions [data-action="view-product"]{grid-column:2;grid-row:1;width:32px}
.products-table .row-actions .create-copy{grid-column:1/-1;grid-row:2;justify-content:flex-start}
.products-table .row-actions [data-action="delete-copy"]{grid-column:2;grid-row:2;width:32px}
.products-table .row-actions button:only-child{grid-column:1/-1;justify-self:center}
@media(min-width:1800px){.products-table .row-actions{display:flex;flex-wrap:wrap;gap:3px}.products-table .row-actions button{padding:7px 5px}.products-table .row-actions [data-action="view-product"],.products-table .row-actions [data-action="delete-copy"]{width:32px;flex-shrink:0}}
@media(max-width:1100px){.products-table .product-link .link-mark{display:none}.products-table th,.products-table td{padding-left:6px;padding-right:6px}}
@media(max-width:960px){
 .table-scroll .products-table,.products-table tbody{display:block;width:100%}
 .products-table colgroup{display:none}
 .products-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
 .products-table tr{display:block;width:auto;margin:12px;border:1px solid #e2e8f0;border-radius:9px;overflow:hidden;background:#fff}
 .products-table .copy-row{margin-left:22px;border-left:3px solid #d9d1f0;background:#fafaff}
 .products-table td,.products-table td:first-child,.products-table td:last-child{display:block;position:relative;width:100%;height:auto;min-height:45px;padding:10px 14px 10px 112px;border-bottom:1px solid #eef1f6;box-shadow:none;text-align:left}
 .products-table td::before{content:attr(data-label);position:absolute;left:14px;top:11px;width:86px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Microsoft YaHei",sans-serif;font-size:14px;font-weight:500;line-height:1.6;color:#64748b}
 .products-table td:last-child{border-bottom:0}.products-table .notes-preview{-webkit-line-clamp:4}.products-table .row-actions{display:flex;flex-wrap:wrap;gap:6px}.products-table .row-actions button{padding:7px 8px}.products-table .row-actions button:only-child{margin:0}
}

@media(max-width:960px){.products-table .copy-row td[data-label="数量"]{display:none}}
@media(max-width:960px){.products-table td[data-label="采购信息"],.products-table td[data-label="录入员 / 目录"]{min-height:66px}}

/* Each procurement item has one clear input type. */
.purchase-type-tabs{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:5px;border-radius:10px;background:#eef0f7;margin:14px 0 18px}
.purchase-type-tabs button{border:1px solid transparent;min-width:0;min-height:44px;background:transparent;font-size:15px;color:#64748b;box-shadow:none}
.purchase-type-tabs button svg{width:18px;height:18px}.purchase-type-tabs button:hover{color:#5146b8;background:#ffffffa8}
.purchase-type-tabs button[aria-pressed="true"]{background:#fff;color:#5146c7;border-color:#d4cef5;box-shadow:0 2px 5px #3341550a;font-weight:600}
.purchase-type-panel .field{margin-bottom:0}.purchase-type-panel .purchase-url-field input{margin-top:8px!important}.purchase-type-panel .purchase-text-input{min-height:140px;line-height:1.8}
.purchase-type-panel .purchase-gallery:empty{display:none}.purchase-type-panel .purchase-upload{margin-top:0}
.purchase-text-content{font-size:15px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere;color:#334155}
.purchase-text-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7;color:#475569;margin:4px 0}
.purchase-type-help{margin:-4px 0 16px;font-size:14px;line-height:1.7;color:#64748b}
.purchase-filled-mark{display:none;font-size:12px;color:#059669}.purchase-type-tabs .has-content .purchase-filled-mark{display:inline}.purchase-group-content+.purchase-group-content{border-top:1px solid #e6e8f1;margin-top:16px;padding-top:16px}.purchase-content-label{display:block;color:#64748b;margin-bottom:8px}
@media(max-width:620px){.purchase-type-tabs{gap:3px;padding:4px}.purchase-type-tabs button{gap:5px;padding:7px 5px}}

.purchase-number-preview{font-size:14px;line-height:1.7;overflow-wrap:anywhere;margin:4px 0;color:#475569}.purchase-number-field input{font-size:16px;letter-spacing:.3px}
@media(max-width:420px){.purchase-type-tabs button{font-size:14px;gap:4px}.purchase-type-tabs button svg{width:15px;height:15px}}

/* Separate the two authors' remarks while keeping every table column visible. */
.products-table th.heading-notes{background:#f3f6f9;color:#475569}
.products-table th.heading-procurement-notes{background:#f2effb;color:#5744a0;border-left:1px solid #e5def6}
.products-table th.heading-notes small,.products-table th.heading-procurement-notes small{display:block;font-size:12px;line-height:1.5;font-weight:400;margin-top:3px;color:#64748b}
.products-table th.heading-procurement-notes small{color:#776b91}
.products-table td.entry-notes-cell{background:#fafbfc}
.products-table td.procurement-notes-cell{background:#fcfbff;border-left:1px solid #eee9f8;color:#514467}
.procurement-notes{min-width:0;display:grid;gap:7px}
.procurement-note{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.7}
.procurement-note+.procurement-note{border-top:1px solid #ece6f6;padding-top:7px}
.products-table .remarks-more{font-size:13px;min-height:30px;max-width:100%;padding:2px 0;display:inline-flex;justify-content:flex-start;gap:2px;text-align:left;white-space:normal;color:#6952ae}
.remarks-more svg{width:13px;height:13px;flex-shrink:0}.remark-empty{color:#94a3b8}
@media(max-width:960px){.products-table td.procurement-notes-cell{border-left:0}.products-table td.procurement-notes-cell::before{color:#6952ae}.products-table .procurement-note{-webkit-line-clamp:3}}

/* Secondary timestamps stay inside existing columns and use Beijing time. */
.record-time{display:flex;flex-wrap:wrap;gap:2px 6px;margin-top:6px;color:#64748b;font-size:12px;line-height:1.6;font-weight:400;min-width:0}
.record-time span{overflow-wrap:anywhere}.record-time time{font-size:13px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;white-space:normal}
.products-table .product-link .record-time{display:flex;max-width:100%;-webkit-line-clamp:unset;overflow:visible}
.products-table .product-link .record-time span{font-size:12px;color:#64748b}
.table-meta{display:flex;align-items:center;gap:10px}.table-heading .table-meta small{font-size:12px;margin:0;color:#64748b}
.folder-item .folder-time{font-size:12px;line-height:1.6;color:#64748b;margin-top:5px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.folder-history{padding:10px 8px 0;border-top:1px solid #eef1f6;margin-top:12px}.folder-history .record-time{margin:0 0 7px}.folder-history button{justify-content:flex-start}
.purchase-preview-record{min-width:0;width:100%}.purchase-preview-record+.purchase-preview-record{border-top:1px solid #eef1f6;margin-top:8px;padding-top:8px}
.remark-record+.remark-record{border-top:1px solid #ece6f6;padding-top:8px}.remark-record .record-time{color:#786d89}
.purchase-entry>.record-time{border-top:1px solid #eef1f6;padding-top:10px;margin-top:14px;font-size:13px}
.purchase-entry-heading .record-time{font-size:12px;margin-top:5px}.unsaved-time{display:block;margin-top:4px;font-size:12px;color:#64748b;font-weight:400}
.purchase-group-title{display:flex;align-items:center;flex-wrap:wrap;gap:12px;min-height:34px}
.purchase-review-badge,.purchase-review-control span{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:4px 14px;font-size:17px;font-weight:800;line-height:1.5;letter-spacing:2px;white-space:nowrap}
.purchase-review-badge{background:#dc2626;color:#fff;box-shadow:0 2px 5px #991b1b24}
.purchase-review-control{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none}
.purchase-review-control input{width:20px;height:20px;min-height:20px;margin:0;padding:0;flex-shrink:0;accent-color:#dc2626;cursor:pointer}
.purchase-review-control span{border:1px solid #cbd5e1;color:#64748b;background:#f8fafc}
.purchase-review-control input:checked+span{border-color:#dc2626;background:#dc2626;color:#fff;box-shadow:0 2px 5px #991b1b24}
.purchase-review-control:focus-within{outline:2px solid #7c3aed;outline-offset:4px;border-radius:7px}
.purchase-review-summary{display:flex;align-items:flex-start;flex-wrap:wrap;gap:8px 10px;margin-top:10px;min-width:0}
.purchase-review-summary>.purchase-review-badge{font-size:16px;padding:2px 10px;letter-spacing:1px;flex-shrink:0}
.purchase-review-summary>div{min-width:0;flex:1 1 115px}
.purchase-review-context{display:block;font-size:13px;font-weight:600;line-height:1.7;color:#9f2424;overflow-wrap:anywhere}
.purchase-review-more{font-size:13px;line-height:1.7;color:#9f2424;margin-top:3px}
.purchase-review-more summary{cursor:pointer;font-weight:600}
.purchase-review-more[open] summary{margin-bottom:4px}
.daily-task-card>.purchase-review-summary{margin:0 0 12px}
.image-with-time{width:175px;margin:0;min-width:0}.image-with-time>a{display:block;width:104px;height:104px;border:1px solid #e2e8f0;border-radius:8px;overflow:hidden;background:#f8fafc}.image-with-time>a img{display:block;width:100%;height:100%;object-fit:cover}.image-with-time figcaption{max-width:100%}.image-with-time .record-time{font-size:12px}
.detail-activity-section{border-top:1px solid #e2e8f0;margin-top:26px;padding-top:8px}
.activity-list{list-style:none;margin:0;padding:0 24px;min-width:0}.activity-item{display:grid;grid-template-columns:175px minmax(0,1fr);gap:24px;padding:22px 0;border-bottom:1px solid #eef1f6;min-width:0}.activity-item:last-child{border-bottom:0}
.activity-stamp{color:#64748b;font-size:13px;font-variant-numeric:tabular-nums;line-height:1.8;padding-top:3px;position:relative}.activity-stamp:before{content:"";display:inline-block;width:7px;height:7px;border-radius:50%;background:#a99ddb;margin-right:8px}
.activity-content{min-width:0}.activity-heading{display:flex;align-items:center;flex-wrap:wrap;gap:9px}.activity-heading strong{font-size:15px;color:#334155}.activity-heading .badge{font-size:13px}.activity-target{font-size:14px;color:#675385;overflow-wrap:anywhere}.activity-content p{font-size:14px;line-height:1.8;color:#475569;margin:9px 0 5px;overflow-wrap:anywhere;white-space:pre-wrap}.activity-content>small{font-size:12px;color:#64748b}
.activity-empty{margin:0;padding:40px 22px;color:#64748b;font-size:14px}.activity-filter-tag{font-size:13px;padding:5px 8px;background:#f2effb;color:#675385;border-radius:6px}
.activity-list.compact{padding:0}.activity-list.compact .activity-item{grid-template-columns:145px minmax(0,1fr);gap:14px;padding:16px 0}.activity-list.compact .activity-heading{gap:6px}.activity-list.compact .activity-heading strong{font-size:14px}.activity-list.compact .activity-content p{font-size:13px;margin-bottom:0}
@media(max-width:960px){.products-table .record-time{margin-top:7px;font-size:12px}.products-table .product-link .record-time{max-width:100%}}
@media(max-width:620px){.activity-list{padding:0 18px}.activity-item,.activity-list.compact .activity-item{grid-template-columns:minmax(0,1fr);gap:7px;padding:18px 0}.activity-stamp{font-size:12px}.activity-heading{gap:6px}.activity-content p{font-size:14px}.image-with-time{width:155px}}

/* Explain active filters without hiding status or action columns. */
.product-filter-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 16px;margin:0;border-top:1px solid #e7eaf4;background:#f6f7ff;color:#514d88;font-size:14px;overflow-wrap:anywhere}
.product-filter-summary>span{min-width:0}.product-filter-summary svg{width:15px;height:15px;vertical-align:-3px;margin-right:6px}
.product-filter-summary small{display:block;margin-top:4px;color:#64748b;font-size:13px}.product-filter-summary button{flex-shrink:0}
.products-table .quantity{white-space:nowrap;overflow-wrap:normal}

.date-filters[hidden]{display:none}

.filters[inert],.date-filters[inert]{opacity:.6;cursor:wait}

.filters .review-filter{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:14px;white-space:nowrap}.filters .review-filter select{min-width:106px}

.excel-fields.excel-export-fields{grid-template-columns:minmax(0,1.4fr) minmax(0,1.5fr) minmax(0,1fr)}
@media(max-width:620px){.excel-fields.excel-export-fields{grid-template-columns:1fr}}
