.field-help{font-size:12px;color:#64748b;margin-top:6px}
.committee-row{display:grid;grid-template-columns:36px 1fr 240px 44px;gap:10px;align-items:center;margin-bottom:10px}
.committee-no{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#ecfdf5;color:#047857;font-weight:700}
.print-toolbar{display:flex;gap:10px;justify-content:flex-end;margin-bottom:16px}
.tor-print-sheet{font-family:var(--doc-font);color:#000;font-size:16pt;line-height:1.15}
.tor-doc-header{text-align:center;margin-bottom:6mm;line-height:1.2}.tor-doc-header h1{font-size:18pt;font-weight:700;margin:1mm 0}.tor-print-sheet h2{font-size:16pt;font-weight:700;margin:4mm 0 1.5mm}.tor-print-sheet p{margin:0 0 2mm;text-indent:25mm}
.tor-print-table{width:100%;border-collapse:collapse;font-size:14pt;line-height:1.1;margin:2mm 0 3mm}.tor-print-table th,.tor-print-table td{border:1px solid #000;padding:1.2mm 1.5mm;vertical-align:top;background:#fff;color:#000}.tor-print-table th{font-weight:700;vertical-align:middle}.tor-print-table th{text-align:center}.tor-print-table .center{text-align:center}.tor-print-table .num{text-align:right}
.tor-print-table{border:1px solid #000}.tor-print-table .tor-total-row td{border-bottom:1.5px solid #000!important}
.tor-signatures{display:grid;justify-content:end;row-gap:9mm;margin:12mm 0 0}

@media screen and (max-width:900px){.committee-row{grid-template-columns:32px 1fr}.committee-row select{grid-column:2}}

/* TOR v2: request-linked TOR + specification library */
.tor-source-card{margin-bottom:18px}.tor-source-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:center}.source-ok{margin-top:12px;padding:10px 12px;border-radius:10px;background:#ecfdf5;color:#065f46;border:1px solid #bbf7d0}.spec-help-strip{display:flex;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:10px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;color:#475569;font-size:13px}.spec-actions{display:flex;gap:6px;margin-top:6px;flex-wrap:wrap}.mini-action{border:1px solid #a7d8cc;background:#ecfdf5;color:#047857;border-radius:8px;padding:5px 8px;font-family:inherit;font-size:12px;cursor:pointer}.mini-action:hover{background:#d1fae5}.muted-action{background:#f8fafc;color:#475569;border-color:#cbd5e1}.suggest-check{display:flex;align-items:flex-start;gap:6px;margin-top:7px;font-size:12px;line-height:1.35;color:#64748b}.suggest-check input{width:auto;margin-top:2px}.tor-items-table textarea{min-width:260px}.spec-dialog{width:min(860px,92vw);border:0;border-radius:18px;padding:0;box-shadow:0 25px 70px rgba(15,23,42,.25)}.spec-dialog::backdrop{background:rgba(15,23,42,.45)}.spec-dialog-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;padding:20px 22px;border-bottom:1px solid #e2e8f0}.spec-dialog-head h3{margin:0}.spec-dialog-head p{margin:4px 0 0;color:#64748b}.spec-search{display:grid;grid-template-columns:1fr auto;gap:10px;padding:16px 22px;background:#f8fafc}.spec-results{max-height:55vh;overflow:auto;padding:12px 22px 22px}.spec-result{display:grid;grid-template-columns:1fr auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #e2e8f0}.spec-result-main b{font-size:15px}.spec-meta{font-size:12px;color:#64748b;margin:2px 0 6px}.spec-text{white-space:pre-wrap;color:#334155;line-height:1.5}.spec-admin-grid{display:grid;grid-template-columns:1.35fr .65fr;gap:18px;margin-bottom:18px}.import-inline{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.spec-filter{display:grid;grid-template-columns:1fr 180px auto;gap:10px;margin-bottom:16px}.spec-admin-list{display:grid;gap:10px}.spec-admin-item{border:1px solid #dbe6e2;border-radius:12px;background:#fff;overflow:hidden}.spec-admin-item summary{list-style:none;display:flex;justify-content:space-between;gap:14px;align-items:center;padding:14px 16px;cursor:pointer;background:#fbfdfc}.spec-admin-item summary::-webkit-details-marker{display:none}.spec-admin-item[open] summary{border-bottom:1px solid #e2e8f0}.spec-edit-form{padding:16px}.spec-edit-actions{display:flex;justify-content:space-between;gap:12px;align-items:center}.status-pill.warning{background:#fff7ed;color:#9a3412}
@media screen and (max-width:1000px){.spec-admin-grid{grid-template-columns:1fr}.tor-source-row,.spec-filter{grid-template-columns:1fr}.spec-result{grid-template-columns:1fr}.spec-result .btn{width:100%}}

/* Specification library admin UI */
.spec-library-page .spec-filter{display:grid;grid-template-columns:minmax(0,1fr) 190px auto;align-items:center;gap:12px;margin-bottom:16px}
.spec-library-page .spec-filter input,.spec-library-page .spec-filter select,.spec-library-page .spec-filter .btn{height:42px;min-height:42px;margin:0}
.spec-library-page .bulk-action-toolbar{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin:0 0 16px;padding:12px 14px;border:1px solid #e4d8f8;border-radius:12px;background:#faf7ff}
.spec-library-page .select-all-control{display:inline-flex;align-items:center;gap:8px;margin:0;color:#2f2145;white-space:nowrap}
.spec-library-page .select-all-control input[type="checkbox"],.spec-library-page .item-card-header input[type="checkbox"]{width:20px;height:20px;min-height:20px;margin:0;padding:0;flex:0 0 20px;accent-color:#6d28d9}
.spec-library-page .bulk-approve-button{height:40px;min-height:40px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center}
.spec-library-page .bulk-action-help{font-size:12px;color:#786b8b}
.spec-library-page .spec-admin-list{gap:12px}
.spec-library-page .spec-admin-item summary.item-card-header{display:grid;grid-template-columns:24px minmax(0,1fr) auto;align-items:center;gap:12px;padding:14px 16px}
.spec-library-page .item-checkbox-spacer{display:block;width:20px;height:20px}
.spec-library-page .item-card-title{min-width:0}.spec-library-page .item-card-title b{display:block;overflow-wrap:anywhere}
.spec-library-page .spec-edit-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;padding:16px}
.spec-library-page .spec-edit-form>.col-6{grid-column:span 2}.spec-library-page .spec-edit-form>.col-3{grid-column:span 1}.spec-library-page .spec-edit-form>.col-12{grid-column:1/-1}.spec-library-page .spec-edit-form>.col-8{grid-column:span 3}.spec-library-page .spec-edit-form>.col-4{grid-column:span 1}
.spec-library-page .spec-edit-form .form-group{margin:0;min-width:0}.spec-library-page .spec-edit-form label{margin-bottom:6px}.spec-library-page .spec-edit-form input,.spec-library-page .spec-edit-form select{height:44px;min-height:44px}
.spec-library-page .spec-edit-actions{justify-content:flex-end;flex-wrap:wrap}.spec-library-page .spec-edit-actions .muted{margin-right:auto}
.spec-library-page .spec-status-tabs{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 14px}.spec-library-page .spec-status-tabs a{display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border:1px solid #ddd0f4;border-radius:999px;background:#fff;color:#5b21b6;text-decoration:none;font-weight:600}.spec-library-page .spec-status-tabs a.active{background:#6d28d9;border-color:#6d28d9;color:#fff}.spec-library-page .spec-status-tabs b{display:inline-flex;min-width:24px;height:24px;align-items:center;justify-content:center;padding:0 7px;border-radius:999px;background:rgba(109,40,217,.1);font-size:12px}.spec-library-page .spec-status-tabs a.active b{background:rgba(255,255,255,.2)}
.spec-library-page .item-checkbox-spacer.ready{display:flex;align-items:center;justify-content:center;border-radius:50%;background:#dcfce7;color:#15803d;font-weight:800}.spec-library-page .spec-summary-text{margin-top:7px;color:#475569;line-height:1.45;font-size:13px;white-space:normal}.spec-library-page .item-card-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap}.spec-library-page .spec-edit-toggle{pointer-events:none;white-space:nowrap}
@media screen and (max-width:760px){.spec-library-page .spec-filter{grid-template-columns:1fr}.spec-library-page .bulk-action-toolbar{align-items:flex-start}.spec-library-page .bulk-action-help{flex-basis:100%}.spec-library-page .spec-edit-form{grid-template-columns:1fr}.spec-library-page .spec-edit-form>[class*="col-"]{grid-column:1/-1}.spec-library-page .spec-edit-actions{align-items:stretch}.spec-library-page .spec-edit-actions .btn{width:100%}.spec-library-page .spec-admin-item summary.item-card-header{grid-template-columns:24px minmax(0,1fr)}.spec-library-page .item-card-actions{grid-column:2;justify-content:flex-start}}
.tor-print-sheet section h2{margin-left:0;padding-left:0;text-indent:0}.tor-prose{margin:0 0 1.5mm;text-indent:25mm;text-align:left;line-height:1.15}.tor-clause{display:grid;grid-template-columns:10mm minmax(0,1fr);column-gap:1mm;margin:0 0 1mm;line-height:1.15;text-align:left}.tor-subclause{padding-left:10mm}.tor-clause-no{white-space:nowrap}

.tor-print-table{min-width:0!important;table-layout:fixed}.tor-print-table th,.tor-print-table td{white-space:normal;overflow-wrap:anywhere}.tor-print-table th:nth-child(1){width:7%}.tor-print-table th:nth-child(2){width:18%}.tor-print-table th:nth-child(3){width:30%}.tor-print-table th:nth-child(4),.tor-print-table th:nth-child(5){width:9%}.tor-print-table th:nth-child(6){width:13%}.tor-print-table th:nth-child(7){width:14%}.header-title h1{font-size:clamp(18px,1.6vw,26px);line-height:1.4}.side-actions .btn{white-space:normal}fieldset.card{min-width:0}
@media print{.main{width:100%!important}.side-actions,.page-hero,.fiscal-bar{display:none!important}.tor-print-table{border:1px solid #000!important}.tor-print-table thead{display:table-header-group}.tor-print-table tr{break-inside:avoid}.tor-print-table .tor-total-row td{border-bottom:1.5px solid #000!important}.tor-print-sheet h2{break-after:avoid}.tor-print-sheet p{orphans:3;widows:3}}
.tor-tools-stack{display:flex;flex-direction:column;gap:14px;align-self:start}.tor-tools-stack>.btn{width:100%}.tool-badge{display:inline-flex;align-self:flex-start;padding:5px 10px;border-radius:999px;background:#edf7f4;color:#087e60;font-size:12px;font-weight:700}.tool-badge.admin{background:#fff3d8;color:#865f00}.admin-tools{border-color:#ecd99d;background:linear-gradient(180deg,#fffdf8,#fff)}
.document-tools{gap:0;padding:22px}.document-tools>div:nth-child(2){margin:16px 0 8px}.document-tools h3{font-size:20px;margin:0 0 4px}.document-step{display:grid;grid-template-columns:34px 1fr;gap:11px;padding:16px 0;border-top:1px solid #e5eeeb}.step-number{width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e7f5f0;color:#087e60;font-weight:800}.step-content{display:grid;gap:5px;min-width:0}.step-content>b,.step-title>b{font-size:15px;color:#173f35}.step-content>span{font-size:12px;color:#71857f}.step-content .btn{margin-top:7px;width:100%;white-space:normal}.step-title{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}.mini-admin-badge{padding:3px 7px;border-radius:999px;background:#fff3d8;color:#865f00;font-size:10px;font-weight:700}.admin-step .step-number{background:#fff3d8;color:#865f00}.document-back{width:100%;margin-top:4px}.document-tools.side-actions{position:sticky}
.suggest-check{align-items:center!important;gap:8px!important;margin-top:8px!important}.suggest-check input{flex:0 0 auto!important;width:16px!important;height:16px!important;margin:0!important}
