.fc-catalog-layout { display:grid; grid-template-columns:minmax(210px,15%) minmax(0,1fr); align-items:start; gap:10px; }
.fc-catalog-layout > .project-record-navigation { margin:0; position:sticky; top:72px; }
.fc-catalog-content { min-width:0; padding:14px; }
.fc-document-scope { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
.fc-document-scope .is-active { border-color:var(--primary-color,#015e70); color:var(--primary-color,#015e70); }
.fc-new-context { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 12px; }
.fc-new-context>div { display:grid; gap:5px; min-width:0; }
.fc-new-context span { font-size:12px; color:#697e8b; overflow-wrap:anywhere; }
.fc-new-dialog { width:min(960px,calc(100vw - 28px)); max-width:none; max-height:calc(100dvh - 28px); padding:0; overflow:auto; color:#243e4c; font-family:Arial,sans-serif; font-size:14px; }
.fc-new-dialog::backdrop { background:#102d3b80; }
.fc-new-dialog-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding:16px; border-bottom:1px solid #d2d9de; position:sticky; top:0; z-index:2; background:#fff; }
.fc-new-dialog-heading h2 { font-size:17px; margin:0 0 6px; }
.fc-new-dialog-heading p { color:#697e8b; font-size:13px; margin:0; }
.fc-new-dialog-body { padding:16px; }
.fc-picker-columns { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.fc-picker-columns fieldset { min-width:0; padding:12px; border:1px solid #d2d9de; border-radius:4px; }
.fc-picker-columns legend { float:none; width:auto; padding:0 4px; margin-bottom:6px; font-size:14px; font-weight:600; }
.fc-picker-search { display:grid; gap:6px; font-size:12px; color:#697e8b; }
.fc-picker-search input { width:100%; margin:0; font-size:13px; }
.fc-picker-options { height:250px; overflow:auto; margin:10px 0; border:1px solid #dce4e8; scrollbar-width:thin; }
.fc-picker-option { display:flex; align-items:flex-start; gap:8px; padding:9px; margin:0; cursor:pointer; }
.fc-picker-option+.fc-picker-option { border-top:1px solid #e5eaed; }
.fc-picker-option:hover,.fc-picker-option.is-selected { background:#edf7f8; }
.fc-picker-option input { flex:none; margin:4px 0 0; accent-color:var(--primary-color,#015e70); }
.fc-picker-option>span { min-width:0; display:grid; gap:4px; overflow-wrap:anywhere; }
.fc-picker-option strong { font-size:13px; font-weight:500; }
.fc-picker-option small { font-size:11px; color:#697e8b; }
.fc-picker-selection { color:#697e8b; font-size:12px; margin:8px 0 0; overflow-wrap:anywhere; }
.fc-picker-selection strong { color:#243e4c; font-weight:500; }
.fc-picker-message { display:block; color:#697e8b; font-size:12px; padding:8px; margin:0; }
.fc-new-dialog-footer { display:flex; justify-content:flex-end; gap:8px; padding:12px 16px; border-top:1px solid #d2d9de; position:sticky; bottom:0; z-index:1; background:#fff; }
@media(max-width:650px) { .fc-picker-columns { grid-template-columns:minmax(0,1fr); } .fc-picker-options { height:155px; } .fc-new-dialog-heading,.fc-new-dialog-body { padding:12px; } .fc-new-context { align-items:flex-start; } }
.fc-entry { display:grid; gap:12px; min-width:0; }
.fc-summary-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; }
.fc-summary-fields:empty { display:none; }
.fc-summary-fields .fc-title-field { min-width:0; }
.fc-entry-footer { display:flex; justify-content:flex-end; padding:12px; }
.fc-template-edit { color:var(--primary-color,#015e70); }
.project-back-link { display:inline-flex; align-items:center; gap:6px; color:var(--primary-color,#015e70); font-size:13px; text-decoration:none; padding:5px 0; }
.project-back-link:hover { text-decoration:underline; }
.fc-entry-more { position:relative; }
.fc-entry-more[open] { z-index:1100; }
.fc-entry-more>summary { display:flex; align-items:center; justify-content:center; width:32px; height:32px; border:1px solid #ccd5dc; border-radius:4px; background:#fff; cursor:pointer; list-style:none; }
.fc-entry-more>summary::-webkit-details-marker { display:none; }
.fc-entry-more>summary:focus-visible { outline:2px solid var(--primary-color,#015e70); outline-offset:2px; }
.fc-entry-more-menu { position:absolute; right:0; top:calc(100% + 5px); display:grid; gap:4px; min-width:190px; padding:6px; background:#fff; border:1px solid #ccd5dc; border-radius:4px; box-shadow:0 5px 18px #17374c20; }
.fc-entry-more-menu>.button-theme { justify-content:flex-start; width:100%; background:#fff; color:#29445a; border:0; text-align:left; }
.fc-entry-more-menu>.button-theme:hover { background:#edf7f8; }
.fc-entry .fc-entry-more-menu .document-export-trigger:not(:disabled) { background:#fff!important;color:#173d54!important;opacity:1!important;filter:none!important;box-shadow:none; }
.fc-entry .fc-entry-more-menu .document-export-trigger:not(:disabled):hover { background:#e5f2f5!important;color:#015e70!important; }
.fc-entry .fc-entry-more-menu .document-export-trigger:not(:disabled) i { color:inherit!important; }
.fc-document-row-actions,.fc-row-downloads { display:inline-flex;align-items:center;gap:5px;white-space:nowrap; }
.project-doc-table table { font-size:13px; margin:0; }
.project-doc-table th { background:#f4f6f7; color:#526472; font-weight:500; white-space:nowrap; }
.project-doc-table td { padding:12px 8px; vertical-align:middle; }
.project-doc-table td:first-child { white-space:nowrap; }
.project-doc-table a { color:#015e70; }
.project-doc-title { display:block; font-weight:600; min-width:150px; }
.project-doc-table small { display:block; color:#6c757d; margin-top:4px; }
.project-doc-empty { min-height:180px; padding:25px 16px; display:flex; align-items:center; justify-content:center; gap:10px; flex-direction:column; color:#697780; text-align:center; }
.project-doc-empty i { font-size:25px; color:#8b9da6; }
.project-doc-empty strong { font-weight:500; color:#344c58; }
.project-doc-empty span,.project-doc-pagination > span { font-size:13px; }
.project-doc-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:12px; flex-wrap:wrap; }
.project-doc-pagination > span { color:#697780; }
.project-doc-filters { display:grid; grid-template-columns:minmax(150px,1fr) minmax(140px,220px) auto; gap:8px; margin-bottom:12px; }
.fc-bulk-dialog { width:min(600px,calc(100vw - 28px));padding:18px;border:1px solid #c6d4df;border-radius:6px;color:#264252; }.fc-bulk-dialog::backdrop { background:#12354c55; }.fc-bulk-dialog>header,.fc-bulk-dialog>footer { display:flex;align-items:center;justify-content:space-between;gap:8px; }.fc-bulk-dialog>header { font-size:16px;margin-bottom:12px; }.fc-bulk-dialog>footer { justify-content:flex-end;margin-top:18px; }.fc-bulk-dialog p { margin:10px 0; }.fc-bulk-dialog fieldset { border:1px solid #d8e1e8;border-radius:4px;padding:12px;margin:12px 0; }.fc-bulk-dialog legend { float:none;width:auto;font-size:13px;font-weight:600;margin:0;padding:0 5px; }.fc-bulk-dialog label { display:flex;align-items:center;gap:8px;padding:8px 0;cursor:pointer; }.fc-bulk-dialog small { display:block;color:#637580;line-height:1.5; }.fc-bulk-count { color:#015e70; }.fc-bulk-progress { display:grid;gap:5px;margin-top:14px;font-size:12px; }.fc-bulk-progress progress { width:100%;accent-color:#015e70; }.fc-bulk-progress span { overflow-wrap:anywhere;color:#637580; }
.fc-download { display:inline-flex;align-items:center;gap:5px;min-height:30px;padding:4px 8px;border:1px solid #b7cbd7;border-radius:4px;background:#fff;color:#145579;font-size:12px;font-weight:600; }
.fc-download:hover { background:#e9f3f9; }.fc-download-pdf { color:#a13c2e;border-color:#dcc3be; }.fc-download-pdf:hover { background:#fff0ed; }.fc-download:disabled { opacity:.55;cursor:wait; }
.fc-status { --fc-status-color:#64748b;--fc-status-bg:#f1f5f9;display:inline-flex;align-items:center;gap:5px;padding:2px 7px;min-height:24px;border:1px solid color-mix(in srgb,var(--fc-status-color) 32%,white);border-radius:4px;background:var(--fc-status-bg);color:var(--fc-status-color);font-size:11px;font-weight:700;line-height:18px;white-space:nowrap; }
button.fc-status { cursor:pointer; }.fc-status-dot { width:6px;height:6px;flex-shrink:0;border-radius:50%;background:currentColor; }.fc-status>i { font-size:11px;margin-left:3px; }
.fc-status-saved { --fc-status-color:#1c6085;--fc-status-bg:#eaf4fb; }.fc-status-waiting { --fc-status-color:#936000;--fc-status-bg:#fff5d6; }.fc-status-signing { --fc-status-color:#7541ad;--fc-status-bg:#f3ebfd; }.fc-status-signed { --fc-status-color:#087969;--fc-status-bg:#e1f7f1; }.fc-status-approved { --fc-status-color:#1d7344;--fc-status-bg:#e8f5ec; }.fc-status-completed { --fc-status-color:#146b34;--fc-status-bg:#dff3e4; }.fc-status-revision { --fc-status-color:#a85d10;--fc-status-bg:#fff0df; }.fc-status-cancelled { --fc-status-color:#ad3541;--fc-status-bg:#fcebed; }.fc-status-archived { --fc-status-color:#575477;--fc-status-bg:#eeedf5; }
.fc-status-dialog { width:min(420px,calc(100vw - 28px));padding:16px;border:1px solid #cad6df;border-radius:6px;color:#264252; }.fc-status-dialog::backdrop { background:#12354c55; }.fc-status-dialog>header { display:flex;justify-content:space-between;align-items:center;margin-bottom:12px; }.fc-status-dialog p { margin:8px 0; }.fc-status-options { display:grid;gap:8px;margin-top:14px; }.fc-status-options .fc-status { justify-content:flex-start;padding:8px 12px;font-size:13px; }.fc-status-options .fc-status:hover { filter:brightness(.97); }
.fc-catalog-manager .button-theme, .fc-catalog-page .button-theme, .fc-fill-page .button-theme { white-space: nowrap; }
.fc-create-picker { align-items: flex-end; display: flex; gap: 8px; padding: 12px; }
.fc-create-picker > label { display: grid; flex: 1; gap: 6px; margin: 0; }
.fc-title-field { display: grid; gap: 6px; margin-top: 12px; }
.fc-title-field input { max-width: 760px; }
.fc-entry .ff-preview-sheet { margin: 0; max-width: none; padding: 12px; width: 100%; }
.fc-entry .ff-preview-group { border: 0; border-radius: 0; margin: 0; padding: 0; }
.fc-entry .ff-preview-group + .ff-preview-group { border-top: 1px solid #e4e9ed; margin-top: 16px; padding-top: 16px; }
.fc-entry .ff-preview-group h3 { border: 0; color: #173e58; font-size: 14px; font-weight: 700; margin: 0 0 12px; padding: 0; }
.fc-entry .ff-fields-grid { grid-template-columns:repeat(4,minmax(0,1fr)); column-gap: 16px; padding: 0; row-gap: 16px; }
.fc-entry .fc-form-field { min-width:0; }
.fc-entry .fc-form-field-wide { grid-column:1 / -1; }
.fc-entry .ff-input-block { display: grid; gap: 6px; }
.fc-entry .ff-field-heading { margin: 0; }
.fc-entry .ff-field-label { font-size: 14px; font-weight: 500; margin: 0; }
.fc-entry .quote-select-popup { left:auto; min-width:min(320px,calc(100vw - 32px)); }
.fc-entry .quote-select-trigger { min-height:32px; }
.fc-entry .quote-select-option>span { overflow-wrap:anywhere; }
.fc-entry .ff-product-cell { min-width:250px; }
.fc-entry .ff-product-cell .quote-select-header { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.fc-entry .ff-product-cell .quote-select-trigger { min-height:31px; font-size:13px; }
.fc-entry .ff-product-cell .quote-select-popup { z-index:1300; }
.fc-entry .ff-entity-search { margin-bottom: 6px; }
.fc-entry :is(input, textarea, select):disabled { color: #212529; opacity: 1; }
@media(max-width:1199px) { .fc-entry .ff-fields-grid,.fc-summary-fields { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:650px) { .fc-entry .ff-fields-grid,.fc-summary-fields { grid-template-columns:minmax(0,1fr); } }
.fc-overview { padding: 12px; }
.fc-overview h2 { color: #173e58; font-size: 17px; margin: 0 0 12px; }
.fc-overview-form { align-items: center; border-top: 1px solid #e4e9ed; display: flex; gap: 12px; justify-content: space-between; padding: 12px 0; }
.fc-overview-form small { color: #6c757d; display: block; margin-top: 4px; }
.fc-catalog-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.fc-catalog-card { min-width: 0; padding: 12px; }
.fc-catalog-card-heading { align-items: flex-start; display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; }
.fc-catalog-card h2 { color: #173e58; font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.fc-catalog-path { display: block; margin-top: 8px; overflow-wrap: anywhere; }
.fc-catalog-card footer { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.fc-catalog-card .button-theme:disabled { cursor: not-allowed !important; opacity: .5; }
.fc-empty { color: #6c757d; padding: 16px; }
.fc-catalog-dialog { max-width: 720px; }
.fc-catalog-edit { display: grid; gap: 16px; padding: 16px; }
.fc-catalog-edit > label { display: grid; gap: 6px; margin: 0; }
.fc-catalog-edit fieldset { border: 1px solid #bfc6ca; max-height: 320px; overflow: auto; padding: 12px; }
.fc-catalog-edit legend { color: #173e58; float: none; font-size: 14px; font-weight: 700; padding: 0 4px; width: auto; }
.fc-catalog-edit .fc-form-choice { align-items: center; display: flex; gap: 10px; margin: 0; padding: 7px 0; }
.fc-form-choice small { color: #6c757d; display: block; }
@media (max-width: 650px) {
    .fc-catalog-grid { grid-template-columns: minmax(0, 1fr); }
    .fc-create-picker { flex-wrap: wrap; }
    .fc-create-picker > label { flex-basis: 100%; }
}

.fc-catalog-tree,.fc-catalog-tree ul{list-style:none;margin:10px 0;padding-left:0}.fc-catalog-tree ul{padding-left:26px;border-left:1px solid #cbd5df;margin-left:12px}.fc-tree-node{margin:8px 0}.fc-catalog-tree .fc-catalog-card{padding:14px}.fc-catalog-tree .fc-catalog-card h2{font-size:16px}.fc-policy-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}.fc-policy-people{max-height:none!important}.fc-policy-people .fc-policy-columns>div{max-height:220px;overflow:auto;padding:8px;border:1px solid #e1e5ea}.fc-policy-people small{display:block;margin-top:8px;color:#697780}.fc-catalog-edit>label,.fc-policy-columns>label{display:grid;gap:6px}.fc-catalog-edit .fc-form-choice{display:flex;align-items:center}.fc-child-catalogs{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.fc-catalog-dialog{width:min(960px,95vw)!important}@media(max-width:650px){.fc-policy-columns{grid-template-columns:1fr}.fc-catalog-tree ul{padding-left:12px;margin-left:4px}}
.fc-bulk-dialog { white-space:normal; }.fc-bulk-dialog p,.fc-bulk-dialog small { white-space:normal;overflow-wrap:anywhere; }
/* Approval centre */
.fc-approval-list { padding: 0 14px 12px; }
.fc-approval-stages { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #d5e0e6; margin-bottom: 16px; }
.fc-approval-stages > a { display: flex; align-items: center; gap: 8px; padding: 14px 16px; color: #4c6475; border-bottom: 3px solid transparent; text-decoration: none; }
.fc-approval-stages > a.is-active { color: var(--primary-color, #015e70); border-bottom-color: var(--primary-color, #015e70); font-weight: 600; }
.fc-approval-stages span { background: #edf3f5; border-radius: 4px; padding: 1px 7px; font-size: 12px; }
.fc-approval-filters { display: grid; grid-template-columns: minmax(200px, 2fr) minmax(200px, 1.5fr) minmax(160px, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 16px; }
.fc-approval-filters label { display: flex; flex-direction: column; gap: 6px; margin: 0; font-weight: normal; }
.fc-approval-filter-actions { display: flex; gap: 6px; align-items: center; padding-bottom: 1px; }
.fc-approval-project { min-width: 0; }
.fc-approval-clear-project { border: 0; color: #476577; background: transparent; font-size: 18px; padding: 0 4px; line-height: 1; }
.fc-approval-table table { width: 100%; min-width: 1000px; font-size: 13px; }
.fc-approval-table th { white-space: nowrap; }
.fc-approval-table td { vertical-align: middle; padding-top: 10px; padding-bottom: 10px; }
.fc-approval-table small { display: block; color: #667b8c; margin-top: 4px; }
.fc-approval-title { min-width: 200px; max-width: 420px; }
.fc-approval-title > a { font-weight: 600; }
.fc-approval-project-cell { min-width: 150px; max-width: 240px; }
.fc-approval-dates { white-space: nowrap; }
.fc-approval-dates .fc-approval-overdue { color: #ad2828; }
.fc-approval-table .button-theme { white-space: nowrap; }
.fc-approval-empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 60px 16px; color: #64798a; }
.fc-approval-empty > i { font-size: 32px; }
.fc-approval-context { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0; color: #64798a; }
@media (max-width: 1100px) { .fc-approval-filters { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .fc-approval-filters { grid-template-columns: 1fr; } .fc-approval-stages > a { padding: 12px 8px; } }
.project-record-navigation { align-self:start; min-width:0; margin:8px; padding:8px 6px; border:1px solid #dbe3e7; border-radius:3px; overflow:auto; max-height:min(65dvh,540px); }
.project-record-navigation > strong { display:block; color:#344c58; padding:2px 4px 6px; }
.project-record-tree { list-style:none; margin:0; padding:0; }
.project-record-tree .project-record-tree { margin-left:13px; padding-left:9px; border-left:1px solid #d7e2e8; }
.project-record-tree-row { display:flex; align-items:center; min-width:0; }
.project-record-tree-row a { display:flex; align-items:center; gap:5px; flex:1; min-width:0; padding:5px 4px; color:#294755; font-size:13px; line-height:1.35; text-decoration:none; border-radius:3px; }
.project-record-tree-row a > span { flex:1; min-width:0; overflow-wrap:anywhere; }
.project-record-tree-row a:hover,.project-record-tree-row a.is-active { background:#eaf5f6; color:#015e70; }
.project-record-tree-row a.is-active { font-weight:600; }
.project-record-tree-row small { flex:none; min-width:22px; text-align:center; background:#edf2f5; color:#526c7b; padding:1px 5px; border-radius:3px; }
.project-record-toggle { border:0; background:transparent; color:#526c7b; width:18px; height:26px; padding:0; flex:none; }
.fc-record-breadcrumb { display:flex; align-items:center; flex-wrap:wrap; gap:7px; color:#627987; margin:0 0 10px; }
.fc-record-breadcrumb a { color:#015e70; }
.fc-record-date-filter { display:grid; gap:4px; margin:0; color:#526c7b; font-size:12px; }
.project-doc-filters.fc-record-filters { grid-template-columns:minmax(120px,1fr) minmax(120px,200px) minmax(128px,150px) auto; align-items:end; }
.project-catalog-panel .project-doc-filters.fc-filters-without-templates { grid-template-columns:minmax(0,1fr) auto; }
.project-catalog-panel .project-doc-filters.fc-record-filters.fc-filters-without-templates { grid-template-columns:minmax(0,1fr) minmax(128px,150px) auto; }
.fc-journal-date input { min-width:145px; }
@media(max-width:900px) { .project-doc-filters.fc-record-filters { grid-template-columns:minmax(120px,1fr) minmax(128px,1fr) auto; } .project-doc-filters.fc-record-filters > input { grid-column:1/-1; } }
@media(max-width:760px) { .project-doc-filters { grid-template-columns:minmax(0,1fr) auto; } .project-doc-filters > input { grid-column:1/-1; } .project-doc-title { min-width:135px; } }
@media(max-width:620px) { .project-record-navigation { max-height:240px; } .fc-catalog-layout { grid-template-columns:minmax(0,1fr); } .fc-catalog-layout > .project-record-navigation { position:static; } }
@media(max-width:520px) { .project-doc-filters.fc-record-filters,.project-catalog-panel .project-doc-filters.fc-filters-without-templates { grid-template-columns:minmax(0,1fr); } }

/* Shared catalog panel styles for both ProjectCatalogPanel and ClassCatalogPanel */
.project-catalog-panel { min-width:0; padding:14px; }
.project-catalog-heading { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.project-catalog-heading h3 { font-size:16px; font-weight:700; color:#173e58; margin:0 0 4px; }
.project-catalog-heading > div > span { color:#6c757d; font-size:12px; }
.project-catalog-actions { display:flex; flex-wrap:wrap; align-items:center; gap:6px; }
.project-document-picker { display:flex; gap:8px; align-items:end; padding:12px; background:#f6f8f9; border:1px solid #dde4e8; margin-bottom:12px; }
.project-document-picker label { display:grid; gap:6px; flex:1; min-width:0; }
.project-catalog-panel .fc-entry { gap:12px; }
.project-catalog-panel .crm-document-summary { padding:12px; }
.project-catalog-panel .crm-document-heading { flex-wrap:wrap; }
.project-catalog-panel .crm-document-actions { flex-wrap:wrap; }
.fc-template-dialog { width:min(720px,calc(100vw - 28px)); }
.project-document-context { display:grid; gap:5px; flex:1; min-width:0; }
.project-document-context strong { font-size:13px; overflow-wrap:anywhere; }
.project-document-context span { font-size:12px; color:#6c757d; overflow-wrap:anywhere; }
@media(max-width:760px) { .project-catalog-panel { padding:10px; } .project-catalog-actions .button-theme { font-size:12px; } }
@media(max-width:600px) { .project-document-picker { flex-wrap:wrap; } .project-document-context { flex-basis:100%; } }
