/* v1.8 · MGT-04 · Màn hình Sổ ghi công */
.lg18-card{width:min(980px,96vw);max-height:90vh;display:flex;flex-direction:column;overflow:hidden;padding:0}
.lg18-head{display:flex;align-items:center;gap:10px;padding:14px 18px;border-bottom:1px solid #e2e8f0}
.lg18-head h3{flex:1;margin:0;font-size:17px}
.lg18-head select{width:auto;margin:0;font-size:13px;padding:6px 10px}
.lg18-head select.hidden{display:none}
.lg18-tabs{display:flex;align-items:center;gap:6px;padding:10px 18px 0}
.lg18-tabs:empty{display:none}
.lg18-tabs [role="tab"]{border:0;border-bottom:3px solid transparent;background:none;padding:8px 12px;font:inherit;font-size:13.5px;font-weight:600;color:#64748b;cursor:pointer;margin:0}
.lg18-tabs [role="tab"].on{color:#1d4ed8;border-bottom-color:#2563eb}
.lg18-recon{margin-left:auto!important}
.lg18-body{padding:14px 18px 18px;overflow:auto;min-height:160px}
.lg18-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-bottom:12px}
.lg18-tiles>div{border:1px solid #dce5f0;border-radius:12px;padding:11px 13px;background:#f8fafc;display:flex;flex-direction:column;gap:3px}
.lg18-tiles strong{font-size:22px;line-height:1.1}
.lg18-tiles span{font-size:12px;color:#64748b}
.lg18-scroll{overflow-x:auto;border:1px solid #dce5f0;border-radius:12px}
.lg18-table{width:100%;border-collapse:collapse;font-size:13px}
.lg18-table th,.lg18-table td{padding:8px 10px;text-align:left;border-bottom:1px solid #e9eef5;vertical-align:top}
.lg18-table tbody tr:last-child td{border-bottom:0}
.lg18-table th{font-size:11.5px;font-weight:700;color:#64748b;background:#f8fafc;white-space:nowrap}
.lg18-table .n{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.lg18-table td small{display:block;font-size:11.5px;color:#64748b;font-weight:400}
.lg18-table td.t{max-width:320px;overflow-wrap:anywhere}
.lg18-table tr.on td{background:#eff6ff}
.lg18-muted{color:#94a3b8;font-style:italic}
.lg18-wait{color:#b45309!important;font-weight:600!important}
.lg18-link{display:block;border:0;background:none;padding:0;margin:2px 0 0;font:inherit;font-size:12px;color:#1d4ed8;text-decoration:underline;cursor:pointer}
.lg18-decide{display:flex;gap:6px;margin-top:5px}
.lg18-decide button{margin:0}
.lg18-form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px}
.lg18-form label{display:flex;flex-direction:column;gap:4px;font-size:12px;font-weight:600;margin:0}
.lg18-form label.grow{flex:1;min-width:220px}
.lg18-form :is(select,input){margin:0;font:inherit;font-size:13px;font-weight:400}
.lg18-form button{margin:0}
.lg18-formrow td{background:#f8fafc}
.lg18-hint{margin:8px 0 0;font-size:12px;line-height:1.55;color:#64748b}
.lg18-empty{margin:26px 0;text-align:center;color:#64748b;font-size:13.5px}
.lg18-sub{margin:16px 0 8px;font-size:14px}
.lg18-off{max-width:620px;margin:18px auto;display:flex;flex-direction:column;gap:8px;align-items:flex-start}
.lg18-off p{margin:0}
@media(max-width:700px){.lg18-card{width:100vw;max-height:100dvh;border-radius:0}.lg18-head{flex-wrap:wrap}.lg18-table td.t{max-width:180px}}
html[data-zsc-scheme="dark"] :is(.lg18-head,.lg18-scroll,.lg18-table th,.lg18-table td){border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] :is(.lg18-tiles>div,.lg18-table th,.lg18-formrow td){background:var(--scheme-raised);border-color:var(--scheme-line)}
html[data-zsc-scheme="dark"] .lg18-table tr.on td{background:var(--zsc-accent-soft)}
html[data-zsc-scheme="dark"] :is(.lg18-tiles span,.lg18-table th,.lg18-table td small,.lg18-hint,.lg18-empty,.lg18-muted,.lg18-tabs [role="tab"]){color:var(--scheme-muted)}
html[data-zsc-scheme="dark"] :is(.lg18-tabs [role="tab"].on,.lg18-link){color:var(--scheme-link)}
html[data-zsc-scheme="dark"] .lg18-tabs [role="tab"].on{border-bottom-color:var(--zsc-accent)}
html[data-zsc-scheme="dark"] .lg18-wait{color:#ffd18f!important}
