:root{
  --jcca-navy:#183f59;
  --jcca-navy-dark:#123247;
  --jcca-navy-mid:#1a3e59;
  --jcca-accent:#3b82f6;
  --jcca-accent-hover:#2563eb;
  --jcca-accent-light:#dbeafe;
  --jcca-accent-soft:#eaf1ff;
  --jcca-white:#ffffff;
  --jcca-text:#0f2435;
  --jcca-text-muted:#75869a;
  --jcca-heading:#08243a;
  --jcca-label:#2f54b5;
  --app-bg:#f8fafc;
  --sidebar-bg:var(--jcca-navy);
  --sidebar-active-bg:#1a3e59;
  --sidebar-text:rgba(255,255,255,.86);
  --sidebar-active:#3b82f6;
  --primary:var(--jcca-accent);
  --border:#d3deeb;
  --text:var(--jcca-text);
  --muted:var(--jcca-text-muted);
  --card-shadow:0 8px 20px rgba(24,63,89,.08);
  --bs-primary:var(--jcca-accent);
  --bs-primary-rgb:59,130,246;
  --bs-link-color:#2a5ea2;
  --bs-link-hover-color:var(--jcca-accent);
  --jcca-table-hover-bg:#dbeafe;
  --jcca-table-hover-bg-neutral:#e2e8f0;
  --bs-table-hover-bg:var(--jcca-table-hover-bg);
  --jcca-panel-border:#bad7f9;
}
*{box-sizing:border-box}
body{margin:0;background:var(--app-bg);color:var(--text);font-family:Inter,"Segoe UI",system-ui,-apple-system,Roboto,Arial,sans-serif;font-size:13px;line-height:1.35;-webkit-font-smoothing:antialiased}
.app-shell{min-height:100vh;display:flex}
.app-sidebar{position:fixed;inset:0 auto 0 0;width:278px;background:var(--sidebar-bg);color:var(--sidebar-text);padding:18px 14px;z-index:1040;display:flex;flex-direction:column;overflow:hidden;transition:transform .25s ease}
.sidebar-brand{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;padding:12px 20px 16px;border-bottom:1px solid rgba(255,255,255,.08);margin-bottom:12px;text-decoration:none;flex-shrink:0;text-align:center}
.sidebar-brand:hover{text-decoration:none}
.sidebar-brand:focus-visible{outline:2px solid var(--jcca-accent);outline-offset:4px;border-radius:12px}
.sidebar-brand-logo{display:block;width:100%;max-width:160px;height:auto;object-fit:contain;object-position:center center}
.sidebar-brand-icon{width:42px;height:42px;border-radius:14px;background:linear-gradient(135deg,var(--jcca-accent),var(--jcca-navy-mid));display:grid;place-items:center;color:#fff;font-size:1.2rem}
.sidebar-brand-title{display:block;color:#fff;font-weight:800;letter-spacing:.2px;line-height:1.1}
.sidebar-brand-subtitle{display:block;font-size:.78rem;color:#94a3b8;margin-top:3px}
.sidebar-nav{display:flex;flex-direction:column;gap:4px;flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:rgba(148,163,184,.55) transparent;padding-right:4px;margin-right:-4px}
.sidebar-nav::-webkit-scrollbar{width:8px}
.sidebar-nav::-webkit-scrollbar-thumb{background:rgba(148,163,184,.45);border-radius:999px}
.sidebar-nav::-webkit-scrollbar-thumb:hover{background:rgba(148,163,184,.65)}
.sidebar-link{display:flex;align-items:center;gap:11px;padding:10px 12px;color:var(--sidebar-text);text-decoration:none;border-radius:12px;font-weight:600;font-size:.94rem}
.sidebar-link i{width:18px;text-align:center;color:rgba(255,255,255,.55)}
.sidebar-link:hover{color:#fff;background:rgba(255,255,255,.08)}
.sidebar-link.active{color:var(--jcca-accent);background:var(--sidebar-active-bg);font-weight:700}
.sidebar-link.active i{color:var(--jcca-accent)}
.sidebar-backdrop{display:none;position:fixed;inset:0;background:rgba(15,23,42,.45);z-index:1030}
.app-main{margin-left:278px;min-height:100vh;width:calc(100% - 278px)}
.app-topbar{position:sticky;top:0;z-index:1020;background:rgba(255,255,255,.9);backdrop-filter:blur(10px);border-bottom:1px solid var(--border);height:74px;display:flex;align-items:center;justify-content:space-between;padding:0 24px}
.topbar-title{font-size:1.25rem;margin:0;font-weight:800;color:var(--jcca-heading)}
.topbar-tools{display:flex;align-items:center;gap:12px}.topbar-search{width:280px}.btn-icon{width:38px;height:38px;padding:0;display:inline-flex;align-items:center;justify-content:center}.content-wrap{padding:24px;max-width:1680px;margin:auto}.breadcrumb{font-size:.88rem}.page-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:20px}.page-title{font-weight:800;margin:0 0 4px;color:var(--jcca-heading)}.page-subtitle{margin:0;color:var(--muted)}.card{border:1px solid var(--border);border-radius:18px;box-shadow:var(--card-shadow)}.card-header{background:#fff;border-bottom:1px solid var(--border);font-weight:800;border-radius:18px 18px 0 0!important}.metric-card .card-body{min-height:104px}
.metric-card-link{display:block;text-decoration:none;color:inherit;cursor:pointer;border-radius:18px;transition:transform .15s ease,box-shadow .15s ease}
.metric-card-link:hover{color:inherit;transform:translateY(-2px)}
.metric-card-link:hover .metric-card{box-shadow:0 14px 36px rgba(26,54,78,.12);border-color:#c5d0db}
.metric-card-link:focus-visible{outline:2px solid var(--jcca-accent);outline-offset:3px}.metric-icon{width:46px;height:46px;border-radius:15px;background:var(--jcca-accent-soft);color:var(--primary);display:grid;place-items:center;font-size:1.2rem}.section-title{font-size:1rem;font-weight:800;margin:0;color:var(--jcca-heading)}.table{margin:0}.table thead th{background:var(--jcca-navy);color:#fff;font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;white-space:nowrap;border-bottom:0}.table td,.table th{vertical-align:middle}.action-group{display:inline-flex;gap:6px;align-items:center}.badge{font-weight:700;border-radius:999px;padding:.45rem .65rem}.badge-soft-primary{background:#eaf1ff;color:#1f5bf4;border:1px solid #b8d0ff}.badge-soft-success{background:#e7f7ef;color:#08764d;border:1px solid #a5e7c6}.badge-soft-warning{background:#fff2d2;color:#9a4a19;border:1px solid #ffe0a2}.badge-soft-danger{background:#fee2e2;color:#b91c1c}.badge-soft-secondary{background:#edf2f7;color:#465468;border:1px solid #d7e0eb}.badge-soft-info{background:#eaf1ff;color:#1f5bf4;border:1px solid #b8d0ff}.required:after{content:" *";color:#dc2626}.upload-zone{border:1px dashed #cbd5e1;border-radius:16px;padding:16px;background:#f8fafc}.upload-preview{font-size:.88rem;color:var(--muted);margin-top:10px}.detail-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.detail-item-label{font-size:.78rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);font-weight:800}.detail-item-value{margin:4px 0 0;font-weight:700}.timeline{position:relative}.timeline-item{border-left:3px solid var(--jcca-accent);padding:0 0 16px 14px}.timeline-title{font-weight:800;margin:0;color:var(--jcca-heading)}.timeline-meta{font-size:.86rem;color:var(--muted);margin:3px 0 0}.progress{height:9px;background:#e5e7eb;border-radius:999px}.progress-bar{border-radius:999px;background-color:var(--jcca-accent)}.form-control,.form-select{border-radius:12px;border-color:#dbe1ea}.modal-content{border-radius:20px;border:0}.dropdown-menu{border-radius:14px;border:1px solid var(--border);box-shadow:var(--card-shadow)}
@media (max-width:991.98px){.app-sidebar{transform:translateX(-100%)}body.sidebar-open .app-sidebar{transform:translateX(0)}body.sidebar-open .sidebar-backdrop{display:block}.app-main{margin-left:0;width:100%}.topbar-tools .topbar-search{display:none}.app-topbar{padding:0 16px}.content-wrap{padding:18px}.page-heading{flex-direction:column}.detail-list{grid-template-columns:1fr}}
@media (max-width:575.98px){.btn-group{display:flex;flex-direction:column;width:100%}.btn-group .btn{border-radius:12px!important}.page-heading .btn,.page-heading .btn-group{width:100%}.table-responsive{font-size:.9rem}}
.auth-shell{min-height:100vh;display:flex;background:var(--app-bg)}
.auth-brand{flex:1;display:flex;flex-direction:column;justify-content:center;padding:48px 56px;background:var(--sidebar-bg);color:var(--sidebar-text);position:relative;overflow:hidden}
.auth-brand::before{content:"";position:absolute;top:-120px;right:-80px;width:320px;height:320px;border-radius:50%;background:linear-gradient(135deg,rgba(176,91,54,.22),rgba(30,75,109,.35))}
.auth-brand::after{content:"";position:absolute;bottom:-100px;left:-60px;width:260px;height:260px;border-radius:50%;background:rgba(30,75,109,.2)}
.auth-brand-inner{position:relative;z-index:1;max-width:440px}
.auth-brand .sidebar-brand{border-bottom:0;padding:0;margin-bottom:28px;align-items:center}
.auth-tagline{font-size:1.05rem;line-height:1.6;color:#94a3b8;margin:0 0 28px}
.auth-features{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:14px}
.auth-features li{display:flex;align-items:center;gap:12px;font-weight:600;color:#e2e8f0}
.auth-features i{width:36px;height:36px;border-radius:12px;background:rgba(255,255,255,.08);display:grid;place-items:center;color:var(--jcca-accent)}
.auth-panel{flex:1;display:flex;align-items:center;justify-content:center;padding:32px 24px}
.auth-card{width:100%;max-width:440px;border:1px solid var(--border);border-radius:22px;box-shadow:var(--card-shadow);background:#fff;padding:36px 32px}
.auth-card-title{font-size:1.5rem;font-weight:800;margin:0 0 6px;color:var(--jcca-heading)}
.auth-card-subtitle{color:var(--muted);margin:0 0 24px;font-size:.95rem}
.auth-demo{background:var(--jcca-accent-soft);border:1px solid #e8cbb9;border-radius:14px;padding:14px 16px;margin-bottom:22px}
.auth-demo-title{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;font-weight:800;color:var(--primary);margin:0 0 8px}
.auth-demo p{margin:0;font-size:.88rem;color:#475569}
.auth-demo code{background:var(--jcca-accent-light);color:var(--jcca-accent-hover);padding:2px 8px;border-radius:8px;font-size:.85rem}
.auth-form .form-label{font-weight:700;font-size:.9rem}
.auth-form .input-group-text{border-radius:12px 0 0 12px;border-color:#dbe1ea;background:#f8fafc;color:var(--muted)}
.auth-form .form-control{border-radius:0 12px 12px 0;border-color:#dbe1ea;padding:.7rem .9rem}
.auth-form .input-group .form-control{border-radius:0 12px 12px 0}
.auth-form .input-group>.input-group-text+input{border-left:0}
.auth-submit{width:100%;padding:.75rem;font-weight:800;border-radius:12px;margin-top:8px}
.auth-footer-links{display:flex;align-items:center;justify-content:space-between;margin-top:18px;font-size:.88rem}
.auth-footer-links a{color:var(--primary);text-decoration:none;font-weight:600}
.auth-footer-links a:hover{text-decoration:underline}
.auth-mobile-brand{display:none;text-align:center;margin-bottom:24px}
@media (max-width:991.98px){.auth-brand{display:none}.auth-panel{min-height:100vh}.auth-mobile-brand{display:block}.auth-mobile-brand .sidebar-brand{justify-content:center;border-bottom:0;padding:0}}
.toast-container-top-end{top:1rem;right:1rem;left:auto;bottom:auto;z-index:9999;max-width:min(420px,calc(100vw - 2rem));pointer-events:none}
.toast-container-top-end .toast{pointer-events:auto}
.sidebar-section{margin-bottom:14px}
.sidebar-section-label{margin:10px 12px 6px;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:rgba(255,255,255,.45)}
.sidebar-step-badge{min-width:22px;height:22px;border-radius:8px;background:rgba(37,99,235,.25);color:#bfdbfe;display:inline-grid;place-items:center;font-size:.72rem;font-weight:800;flex-shrink:0}
.sidebar-link-text{flex:1;min-width:0}
.job-flow-strip{background:#fff;border:1px solid var(--border);border-radius:16px;padding:12px 14px;box-shadow:var(--card-shadow);overflow-x:auto}
.job-flow-strip-inner{display:flex;align-items:center;gap:6px;min-width:max-content}
.job-flow-step{display:inline-flex;align-items:center;gap:8px;padding:8px 10px;border-radius:12px;text-decoration:none;color:#64748b;font-size:.82rem;font-weight:700;white-space:nowrap}
.job-flow-step-num{width:24px;height:24px;border-radius:999px;display:grid;place-items:center;background:#e2e8f0;color:#475569;font-size:.75rem}
.job-flow-step--done .job-flow-step-num{background:#dcfce7;color:#15803d}
.job-flow-step--current{background:var(--jcca-accent-soft);color:var(--jcca-accent)}
.job-flow-step--current .job-flow-step-num{background:var(--jcca-accent);color:#fff}
.job-flow-connector{color:#cbd5e1;font-size:.7rem;padding:0 2px}
.flow-step-alert{font-size:.92rem}
.flow-hint{max-width:280px}
.bid-filters-row,.proposal-filters-row{flex-wrap:nowrap!important}
.card-body:has(.bid-filters-row),.card-body:has(.proposal-filters-row){overflow-x:auto}
.bid-filters-row .col,.proposal-filters-row .col{min-width:140px}
.bid-filters-row .col:nth-child(3),.proposal-filters-row .col:nth-child(3){min-width:180px}
.form-control::placeholder,.form-control::-webkit-input-placeholder,textarea.form-control::placeholder{color:#9ca3af;opacity:1}
.form-select{color:#1e293b}
.form-select option:not([disabled]){color:#1e293b;background:#fff}
.form-select option[disabled]{color:#9ca3af}
.form-select:has(option[disabled]:checked){color:#9ca3af}
.field-error{font-size:.8125rem;color:#dc2626;margin-top:.25rem;margin-bottom:0}
.form-control.is-invalid,.form-select.is-invalid{border-color:#dc2626}
.dashboard-chart-wrap{position:relative;height:240px;max-width:100%}
.dashboard-chart-wrap--tall{height:280px}
.dashboard-chart-wrap--wide{height:300px}
.table-actions-cell{white-space:nowrap;min-width:16rem}
.table-actions-cell .action-group{flex-wrap:nowrap}
.table-actions-cell .form-select{flex-shrink:0}
.job-row-actions .btn-icon{opacity:1;flex-shrink:0}
.job-row-actions .btn-outline-dark{color:#1e293b;border-color:#64748b}
.job-row-actions .btn-outline-dark:hover{background:#f1f5f9;border-color:#334155;color:#0f172a}

/* ===== Section theme system — unified navy + blue ===== */
.app-section,
.app-section--overview,
.app-section--proposal_phase,
.app-section--production_phase,
.app-section--support,
.app-section--closeout,
.app-section--admin{
  --section-color:var(--jcca-accent);
  --section-bg:var(--app-bg);
  --section-border:var(--border);
  --section-sidebar:rgba(59,130,246,.45);
}

.app-topbar{border-top:3px solid var(--jcca-navy)}
.content-wrap{background:var(--app-bg)}

.page-section-context{display:inline-flex;align-items:center;gap:10px;padding:8px 14px;border-radius:999px;background:var(--section-bg);border:1px solid var(--section-border);color:var(--section-color);font-size:.82rem;font-weight:800;letter-spacing:.02em}
.page-section-context__icon{width:28px;height:28px;border-radius:999px;background:#fff;display:grid;place-items:center;box-shadow:0 1px 2px rgba(15,23,42,.08)}

.sidebar-section{margin-bottom:16px;padding:8px 6px 10px;border-radius:14px;background:rgba(255,255,255,.02)}
.sidebar-section-label{display:flex;align-items:center;gap:8px}
.sidebar-section-label::before{content:"";width:8px;height:8px;border-radius:999px;background:var(--section-sidebar-color,#64748b);flex-shrink:0}
.sidebar-section--overview,
.sidebar-section--proposal_phase,
.sidebar-section--production_phase,
.sidebar-section--support,
.sidebar-section--closeout,
.sidebar-section--admin,
.sidebar-section--company{--section-sidebar-color:rgba(255,255,255,.42)}
.sidebar-section--overview .sidebar-link.active,
.sidebar-section--proposal_phase .sidebar-link.active,
.sidebar-section--production_phase .sidebar-link.active,
.sidebar-section--support .sidebar-link.active,
.sidebar-section--closeout .sidebar-link.active,
.sidebar-section--admin .sidebar-link.active,
.sidebar-section--company .sidebar-link.active,
.sidebar-section--overview .sidebar-link:hover,
.sidebar-section--proposal_phase .sidebar-link:hover,
.sidebar-section--production_phase .sidebar-link:hover,
.sidebar-section--support .sidebar-link:hover,
.sidebar-section--closeout .sidebar-link:hover,
.sidebar-section--admin .sidebar-link:hover,
.sidebar-section--company .sidebar-link:hover{background:var(--sidebar-active-bg);color:var(--jcca-accent)}
.sidebar-section--overview .sidebar-step-badge,
.sidebar-section--proposal_phase .sidebar-step-badge,
.sidebar-section--production_phase .sidebar-step-badge,
.sidebar-section--support .sidebar-step-badge,
.sidebar-section--closeout .sidebar-step-badge,
.sidebar-section--admin .sidebar-step-badge,
.sidebar-section--company .sidebar-step-badge{background:rgba(59,130,246,.35);color:#dbeafe}
.sidebar-group{margin-bottom:2px}
.sidebar-group-toggle{display:flex;align-items:center;gap:11px;width:100%;padding:10px 12px;color:var(--sidebar-text);background:transparent;border:0;border-radius:12px;font-weight:600;font-size:.94rem;cursor:pointer;text-align:left}
.sidebar-group-toggle i{width:18px;text-align:center;color:rgba(255,255,255,.55)}
.sidebar-group.is-active .sidebar-group-toggle i,.sidebar-group.is-open .sidebar-group-toggle i{color:var(--jcca-accent)}
.sidebar-group-toggle:hover,.sidebar-group.is-open .sidebar-group-toggle,.sidebar-group.is-active .sidebar-group-toggle{background:var(--sidebar-active-bg);color:var(--jcca-accent)}
.sidebar-group-chevron{margin-left:auto;font-size:.72rem;opacity:.7;transition:transform .2s ease}
.sidebar-group.is-open .sidebar-group-chevron{transform:rotate(90deg)}
.sidebar-submenu{display:none;flex-direction:column;gap:2px;margin:2px 0 4px 10px;padding-left:10px;border-left:1px solid rgba(255,255,255,.08)}
.sidebar-group.is-open > .sidebar-submenu{display:flex}
.sidebar-sublink{padding:8px 12px;font-size:.88rem}
.sidebar-sublink i{font-size:.82rem}
.sidebar-nested-group{margin:2px 0}
.sidebar-nested-head{display:flex;align-items:stretch;gap:2px}
.sidebar-nested-head > .sidebar-sublink{flex:1;min-width:0}
.sidebar-nested-toggle{display:inline-flex;align-items:center;justify-content:center;width:34px;border:0;border-radius:10px;background:transparent;color:rgba(255,255,255,.55);cursor:pointer}
.sidebar-nested-toggle:hover,.sidebar-nested-group.is-open .sidebar-nested-toggle,.sidebar-nested-group.is-active .sidebar-nested-toggle{background:rgba(255,255,255,.06);color:var(--jcca-accent)}
.sidebar-nested-chevron{font-size:.68rem;transition:transform .2s ease}
.sidebar-nested-group.is-open .sidebar-nested-chevron{transform:rotate(90deg)}
.sidebar-nested-submenu{display:none;flex-direction:column;gap:2px;margin:2px 0 4px 12px;padding-left:10px;border-left:1px solid rgba(255,255,255,.08)}
.sidebar-nested-group.is-open > .sidebar-nested-submenu{display:flex}
.sidebar-nested-submenu .sidebar-sublink{padding-left:10px;font-size:.84rem}
.sidebar-section--admin .sidebar-group-toggle:hover,.sidebar-section--admin .sidebar-group.is-open .sidebar-group-toggle,.sidebar-section--admin .sidebar-group.is-active .sidebar-group-toggle{background:rgba(124,58,237,.22)}

.job-flow-strip{border-color:var(--section-border);background:linear-gradient(180deg,#fff 0%,var(--section-bg) 100%)}
.job-flow-step--phase-proposal.job-flow-step--current,
.job-flow-step--phase-production.job-flow-step--current{background:var(--jcca-accent-soft);color:var(--jcca-accent)}
.job-flow-step--phase-proposal.job-flow-step--current .job-flow-step-num,
.job-flow-step--phase-production.job-flow-step--current .job-flow-step-num{background:var(--jcca-accent);color:#fff}
.job-flow-step--phase-proposal.job-flow-step--done .job-flow-step-num,
.job-flow-step--phase-production.job-flow-step--done .job-flow-step-num{background:var(--jcca-accent-light);color:var(--jcca-accent-hover)}

.app-section .card{border-color:color-mix(in srgb,var(--section-border) 70%,#e5e7eb)}
.app-section .card>.card-header{background:linear-gradient(180deg,#fff 0%,var(--section-bg) 100%);border-bottom-color:var(--section-border);color:var(--jcca-heading)}
.app-section .metric-card{border-color:color-mix(in srgb,var(--section-border) 65%,#e5e7eb)}
.app-section .metric-icon{background:var(--section-bg);color:var(--section-color);border:1px solid var(--section-border)}
.app-section .metric-card-link:hover .metric-card{border-color:var(--section-color);box-shadow:0 14px 36px color-mix(in srgb,var(--section-color) 18%,transparent)}
.app-section .breadcrumb .breadcrumb-item.active{color:var(--section-color);font-weight:700}
.app-section .btn-primary{--bs-btn-bg:var(--section-color);--bs-btn-border-color:var(--section-color);--bs-btn-hover-bg:color-mix(in srgb,var(--section-color) 85%,#000);--bs-btn-hover-border-color:color-mix(in srgb,var(--section-color) 85%,#000)}
.app-section .nav-tabs.card-header-tabs .nav-link.active{color:var(--section-color);border-bottom:2px solid var(--section-color);background:var(--section-bg)}
.app-section .nav-tabs.card-header-tabs .nav-link{color:#64748b;font-weight:700}
.app-section .table thead th{border-bottom:0;background:var(--jcca-navy);color:#fff}
.app-section .flow-step-alert{border-color:var(--section-border)!important;background:var(--section-bg)!important}

.amount-reveal-btn{border-color:var(--section-border);color:var(--section-color);background:#fff}
.amount-reveal-btn:hover{background:var(--section-bg);border-color:var(--section-color);color:color-mix(in srgb,var(--section-color) 80%,#000)}

.permission-accordion-item{border:1px solid var(--border)!important;border-radius:16px!important;overflow:hidden;margin-bottom:12px}
.permission-accordion-item--overview{--perm-color:#6366f1;--perm-bg:#eef2ff;--perm-border:#c7d2fe}
.permission-accordion-item--proposal_phase{--perm-color:var(--jcca-accent);--perm-bg:var(--jcca-accent-soft);--perm-border:#e8cbb9}
.permission-accordion-item--production_phase{--perm-color:#059669;--perm-bg:#ecfdf5;--perm-border:#a7f3d0}
.permission-accordion-item--support{--perm-color:#d97706;--perm-bg:#fffbeb;--perm-border:#fde68a}
.permission-accordion-item--closeout{--perm-color:#475569;--perm-bg:#f1f5f9;--perm-border:#cbd5e1}
.permission-accordion-item--financial{--perm-color:#ca8a04;--perm-bg:#fefce8;--perm-border:#fde047}
.permission-accordion-item--admin{--perm-color:#7c3aed;--perm-bg:#f5f3ff;--perm-border:#ddd6fe}
.permission-accordion-item .accordion-button:not(.collapsed){background:var(--perm-bg);color:var(--perm-color);box-shadow:inset 0 -1px 0 var(--perm-border)}
.permission-accordion-item .permission-cat-check-wrap{background:var(--perm-bg);border-right:1px solid var(--perm-border)!important}
.permission-accordion-item .permission-cat-icon{color:var(--perm-color)}
.permission-accordion-item .accordion-body{background:#fff}
.permission-module-card{border-color:color-mix(in srgb,var(--perm-border,#e5e7eb) 80%,#e5e7eb)!important}
.permission-module-card--financial{background:var(--perm-bg)!important;border-color:var(--perm-border)!important}

.alert-light.border.flow-step-alert{border-left:4px solid var(--section-color)!important}
.upload-zone{border-color:var(--section-border);background:color-mix(in srgb,var(--section-bg) 55%,#fff)}
.detail-item-label{color:color-mix(in srgb,var(--section-color) 45%,#6b7280)}

/* Consistent status placement — column 2 in tables, highlighted field on forms */
.table-status-col{width:9rem;min-width:8.5rem;white-space:nowrap}
.table thead th.table-status-col{color:var(--section-accent,var(--section-color,#0d6efd));font-weight:700}
.table tbody td.table-status-col{background:color-mix(in srgb,var(--section-accent,var(--section-color,#0d6efd)) 6%,transparent)}

/* Global table row hover — highlight row under cursor */
.table tbody tr:not(.ca-register__empty):hover > *,
.table tbody tr:not(.ca-register__empty):hover > th{
  --bs-table-bg-state:var(--jcca-table-hover-bg);
  --bs-table-accent-bg:var(--jcca-table-hover-bg);
  background-color:var(--jcca-table-hover-bg)!important;
}
.table tbody tr.table-primary:hover > *{
  background-color:color-mix(in srgb,var(--jcca-accent) 14%,var(--jcca-table-hover-bg))!important;
}
.gtable tbody tr:hover > td,
.wr-table tbody tr:hover > td,
.wjsr-table tbody tr:hover > td,
.wjsr-table tbody tr:hover > th{
  background-color:var(--jcca-table-hover-bg)!important;
}

.form-status-field{background:color-mix(in srgb,var(--section-accent,var(--section-color,#0d6efd)) 8%,#fff);border:1px solid color-mix(in srgb,var(--section-accent,var(--section-color,#0d6efd)) 22%,#dee2e6);border-radius:.5rem;padding:.85rem 1rem}
.form-status-field .form-label{color:var(--section-accent,var(--section-color,#0d6efd));font-weight:600;margin-bottom:.35rem}

.notes-thread-card .card-header{background:color-mix(in srgb,var(--section-bg,#eff6ff) 80%,#fff);border-bottom:1px solid var(--section-border,#dbeafe);font-weight:700}
.notes-thread-count{background:var(--section-color,#2563eb)!important}
.notes-thread-list{max-height:420px;overflow-y:auto}
.notes-thread-item{padding:1rem 1rem .25rem;border-bottom:1px solid #eef2f7}
.notes-thread-item:last-child{border-bottom:0}
.notes-thread-empty{padding:1.25rem 1rem}
.notes-thread-author{font-size:.92rem}
.notes-thread-time{font-size:.78rem;white-space:nowrap}
.notes-thread-avatar{width:38px;height:38px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:.78rem;font-weight:700;color:#fff;flex-shrink:0}
.notes-thread-avatar--tone-0{background:#f59e0b}
.notes-thread-avatar--tone-1{background:#3b82f6}
.notes-thread-avatar--tone-2{background:#10b981}
.notes-thread-avatar--tone-3{background:#8b5cf6}
.notes-thread-avatar--tone-4{background:#ef4444}
.notes-thread-bubble{background:#f3f4f6;border:1px solid #e5e7eb;border-radius:14px;border-top-left-radius:4px;padding:.75rem .9rem;font-size:.92rem;line-height:1.45}
.notes-thread-images .notes-thread-thumb-wrap{display:inline-block;border-radius:8px;overflow:hidden;border:1px solid #e5e7eb}
.notes-thread-thumb{object-fit:cover;display:block}
.notes-thread-compose{background:#fafbfc}
.notes-thread-existing-image{display:flex;flex-direction:column;align-items:center;gap:.15rem;cursor:pointer}
.notes-thread-existing-image input{margin-bottom:.15rem}

/* ===== Document-style form & listing theme ===== */
.jcca-doc-ui{
  --doc-navy:var(--jcca-navy);
  --doc-navy-dark:var(--jcca-navy-dark);
  --doc-label-bg:#f1f5f9;
  --doc-border:#d1d5db;
  --doc-card-shadow:0 2px 10px rgba(15,23,42,.07);
}
.jcca-doc-ui .page-title{color:var(--doc-navy);font-size:1.45rem;letter-spacing:-.01em}
.jcca-doc-ui .page-subtitle{color:#64748b}

/* Form section cards (main create/edit forms) */
.jcca-doc-ui form[method="POST"]:not(.d-inline):not(.d-inline-flex)>.row .card,
.jcca-doc-ui form[method="POST"]:not(.d-inline):not(.d-inline-flex)>.row>.col-xl-8 .card,
.jcca-doc-ui form[method="POST"]:not(.d-inline):not(.d-inline-flex)>.row>.col-xl-4 .card,
.jcca-doc-ui form[method="POST"]:not(.d-inline):not(.d-inline-flex)>.row>.col-12 .card{
  border:1px solid var(--doc-border);
  border-radius:6px;
  box-shadow:var(--doc-card-shadow);
  overflow:hidden;
}
.jcca-doc-ui form[method="POST"]:not(.d-inline):not(.d-inline-flex)>.row .card:not(.notes-thread-card):not(.metric-card)>.card-header{
  background:var(--doc-navy);
  color:#fff;
  font-weight:700;
  font-size:.9rem;
  padding:.7rem 1rem;
  border-bottom:0;
  border-radius:0!important;
  letter-spacing:.01em;
}
.jcca-doc-ui form[method="POST"]:not(.d-inline):not(.d-inline-flex)>.row .card:not(.notes-thread-card)>.card-body{
  background:#fff;
  padding:1rem 1.1rem 1.15rem;
}
.jcca-doc-ui form[method="POST"]:not(.d-inline):not(.d-inline-flex) .card-body>.row.g-3{--bs-gutter-y:.85rem;--bs-gutter-x:.85rem}

/* Form labels — grey band above inputs (data entry forms only) */
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label:not(.text-muted){
  background:var(--doc-label-bg);
  border:1px solid #e2e8f0;
  border-bottom:0;
  border-radius:4px 4px 0 0;
  color:#334155;
  display:block;
  font-size:.8125rem;
  font-weight:700;
  margin-bottom:0;
  padding:.5rem .7rem;
}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label.text-muted{
  background:var(--doc-label-bg);
  border:1px solid #e2e8f0;
  border-bottom:0;
  border-radius:4px 4px 0 0;
  color:#64748b!important;
  display:block;
  font-size:.75rem;
  font-weight:700;
  margin-bottom:0;
  padding:.45rem .7rem;
  text-transform:uppercase;
  letter-spacing:.03em;
}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label.text-muted+.fw-semibold,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label.text-muted+p{
  background:#fff;
  border:1px solid #e2e8f0;
  border-top:0;
  border-radius:0 0 4px 4px;
  margin-bottom:.85rem!important;
  margin-top:0;
  padding:.55rem .7rem;
}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-control,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-select,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) textarea.form-control{
  border-color:#cbd5e1;
  border-radius:0 0 4px 4px;
  border-top:0;
  font-size:.9rem;
}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label:not(.text-muted)+.form-control,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label:not(.text-muted)+.form-select,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label:not(.text-muted)+textarea.form-control,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label.required+.form-control,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label.required+.form-select{
  border-top:0;
}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label+.form-control:focus,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label+.form-select:focus,
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-label+textarea.form-control:focus{
  border-color:#93c5fd;
  box-shadow:0 0 0 .15rem rgba(37,99,235,.12);
}
.jcca-doc-ui form .form-text{
  font-size:.78rem;
  margin-top:.35rem;
}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-status-field{
  background:#fff;
  border:1px solid #e2e8f0;
  border-radius:4px;
  padding:0;
  overflow:hidden;
}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-status-field .form-label{
  background:var(--doc-label-bg);
  border:0;
  border-bottom:1px solid #e2e8f0;
  border-radius:0;
  color:var(--doc-navy);
  margin-bottom:0;
}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .form-status-field .form-select{
  border:0;
  border-radius:0;
}
/* Modal forms — same document field styling */
.jcca-doc-ui .modal form .form-label:not(.text-muted){
  background:var(--doc-label-bg);
  border:1px solid #e2e8f0;
  border-bottom:0;
  border-radius:4px 4px 0 0;
  color:#334155;
  display:block;
  font-size:.8125rem;
  font-weight:700;
  margin-bottom:0;
  padding:.5rem .7rem;
}
.jcca-doc-ui .modal form .form-control,
.jcca-doc-ui .modal form .form-select{
  border-color:#cbd5e1;
  border-radius:0 0 4px 4px;
  border-top:0;
}
.jcca-doc-ui .modal .modal-header{
  background:var(--doc-navy);
  color:#fff;
  border-radius:18px 18px 0 0;
}
.jcca-doc-ui .modal .modal-header .btn-close{filter:invert(1) grayscale(1) brightness(2)}
.jcca-doc-ui .modal .modal-title{font-weight:700}
.jcca-doc-ui form:not([method="GET"]):not(.d-inline-flex) .field-error{padding:0 .7rem .35rem}

/* Form action bar */
.jcca-doc-ui form>.row>.col-12 .d-flex.flex-wrap,
.jcca-doc-ui form .col-12>.d-flex.flex-wrap.justify-content-end{
  background:#f8fafc;
  border:1px solid var(--doc-border);
  border-radius:6px;
  margin-top:.5rem;
  padding:.85rem 1rem;
}
.jcca-doc-ui form .btn-primary{
  background:var(--primary);
  border-color:var(--primary);
  font-weight:700;
  min-width:9rem;
  padding:.55rem 1.1rem;
}
.jcca-doc-ui form .btn-outline-secondary{
  border-color:#94a3b8;
  color:#334155;
  font-weight:600;
}

/* Listing / index cards */
.jcca-doc-ui .card:not(.metric-card):not(.notes-thread-card):has(.table)>.card-header,
.jcca-doc-ui .card:not(.metric-card):not(.notes-thread-card):has(.table-responsive)>.card-header{
  background:var(--doc-navy);
  color:#fff;
  font-weight:700;
  font-size:.9rem;
  padding:.7rem 1rem;
  border-bottom:0;
  border-radius:6px 6px 0 0!important;
}
.jcca-doc-ui .card:not(.metric-card):not(.notes-thread-card):has(.table)>.card-header .text-muted,
.jcca-doc-ui .card:not(.metric-card):not(.notes-thread-card):has(.table-responsive)>.card-header .text-muted{
  color:rgba(255,255,255,.78)!important;
}
.jcca-doc-ui .card:not(.metric-card)>.card-header:has(+ .card-body .table),
.jcca-doc-ui .card:not(.metric-card)>.card-header:has(+ .table-responsive){
  background:var(--doc-navy);
  color:#fff;
}
.jcca-doc-ui .card:not(.metric-card):has(.table),
.jcca-doc-ui .card:not(.metric-card):has(.table-responsive),
.jcca-doc-ui .card:not(.metric-card):has(.rfq-list-table-wrap){
  border:1px solid var(--jcca-panel-border);
  border-radius:10px;
  box-shadow:var(--card-shadow);
  overflow:hidden;
}

/* Filter panels — navy header to match list panels */
.jcca-doc-ui .card:has(> .card-body > form[method="GET"])>.card-header{
  background:var(--doc-navy)!important;
  border-bottom:0!important;
  color:#fff!important;
  font-weight:700;
  font-size:.9rem;
  padding:.7rem 1rem;
}
.jcca-doc-ui form[method="GET"] .form-label{
  background:transparent!important;
  border:0!important;
  border-radius:0!important;
  color:var(--jcca-label)!important;
  font-size:11px!important;
  font-weight:800!important;
  letter-spacing:.035em!important;
  margin-bottom:6px!important;
  padding:0!important;
  text-transform:uppercase!important;
}
.jcca-doc-ui form[method="GET"] .form-control,
.jcca-doc-ui form[method="GET"] .form-select{
  height:34px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:13px;
  padding:.375rem .65rem;
}
.jcca-doc-ui form[method="GET"] .form-control:focus,
.jcca-doc-ui form[method="GET"] .form-select:focus{
  border-color:#74a7f8;
  box-shadow:0 0 0 3px rgba(59,130,246,.12);
}
.jcca-doc-ui .card:has(> .card-body > form[method="GET"]){
  border:1px solid var(--jcca-panel-border)!important;
  border-radius:10px!important;
  box-shadow:var(--card-shadow)!important;
}

/* Listing tables */
.jcca-doc-ui .table thead th{
  background:var(--doc-navy-dark);
  border-bottom:0;
  color:#fff;
  font-size:.75rem;
  font-weight:700;
  letter-spacing:.04em;
  padding:.65rem .75rem;
  text-transform:uppercase;
  vertical-align:middle;
}
.jcca-doc-ui .table tbody td{
  border-color:#e5e7eb;
  font-size:.9rem;
  padding:.6rem .75rem;
}
.jcca-doc-ui .table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-bg-type:#fafbfc}

/* Detail / show page section cards (non-form) */
.jcca-doc-ui .card.mb-4:not(.metric-card):not(.notes-thread-card)>.card-header:not(.nav-tabs){
  background:var(--doc-navy);
  color:#fff;
  font-weight:700;
  border-bottom:0;
  border-radius:6px 6px 0 0!important;
}

/* Settings tabs card */
.jcca-doc-ui .card>.card-header.nav-tabs,
.jcca-doc-ui .card-header-tabs{
  background:#fff!important;
  color:inherit!important;
  border-bottom:1px solid var(--doc-border)!important;
}
.jcca-doc-ui .nav-tabs.card-header-tabs .nav-link.active{
  background:#fff;
  border-bottom:2px solid var(--doc-navy)!important;
  color:var(--doc-navy)!important;
}

/* Metric cards unchanged but slightly refined */
.jcca-doc-ui .metric-card{
  border:1px solid #dbeafe;
  border-radius:8px;
}

@media (max-width:991.98px){
  .jcca-doc-ui form .form-label,
  .jcca-doc-ui form .form-label.text-muted{font-size:.78rem}
}

/* Searchable client / agency field */
.client-search-wrap{position:relative}
.client-search-list{
  position:absolute;
  z-index:1050;
  top:100%;
  left:0;
  right:0;
  max-height:240px;
  overflow-y:auto;
  margin-top:.25rem;
  background:#fff;
  border:1px solid var(--doc-border,#dbeafe);
  border-radius:6px;
  box-shadow:0 8px 24px rgba(15,23,42,.12);
}
.client-search-option{
  display:block;
  width:100%;
  padding:.5rem .75rem;
  border:0;
  background:transparent;
  text-align:left;
  font-size:.9rem;
}
.client-search-option:hover,
.client-search-option.is-active{
  background:#eff6ff;
  color:var(--doc-navy,#1e3a5f);
}

.assign-team-grid th,
.assign-team-grid td{
  vertical-align:middle;
}
.assign-team-grid .assign-team-role-col{
  width:28%;
  min-width:220px;
  background:#f8fafc;
  font-weight:600;
  color:var(--doc-navy,#1e3a5f);
}
.assign-team-grid thead th{
  background:var(--doc-navy,#1e3a5f);
  color:#fff;
  font-weight:600;
  border-color:#1e3a5f;
}
.assign-team-grid tbody th{
  border-color:#dbeafe;
}

.job-row-overdue td{
  background-color:#fff7f7;
}

.job-service-overdue td{
  background-color:#fff1f2;
}

.job-service-overdue td.job-service-due-date{
  color:#dc2626 !important;
  font-weight:600;
}

@keyframes jcca-date-blink{
  0%,100%{opacity:1}
  50%{opacity:.35}
}
.job-date-expired{
  color:#dc2626 !important;
  font-weight:700;
  animation:jcca-date-blink 1.2s ease-in-out infinite;
}

.job-hub-schedule-block .section-title{color:#0f172a}
.job-hub-schedule-meta-label{display:block;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#94a3b8;margin-bottom:4px}
.job-hub-schedule-meta-value{display:block;font-size:1rem;color:#0f172a}
.job-hub-schedule-meta-value--due{color:var(--jcca-accent)}
.job-hub-schedule-status{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;font-size:.82rem;font-weight:800}
.job-hub-schedule-status--success{background:#ecfdf5;color:#047857;border:1px solid #a7f3d0}
.job-hub-schedule-status--danger{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
.job-hub-schedule-card{border-radius:16px;border-color:#e2e8f0}
.job-hub-schedule-kicker{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#94a3b8;margin-bottom:0}
.job-hub-schedule-timeline{display:flex;align-items:flex-start;justify-content:space-between;gap:4px;position:relative;padding:4px 0 8px;margin-bottom:12px}
.job-hub-schedule-milestone{flex:1;min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:8px}
.job-hub-schedule-milestone-label{font-size:.8rem;font-weight:800;color:#0f172a;line-height:1.2;min-height:2.4em;display:flex;align-items:flex-end;justify-content:center}
.job-hub-schedule-milestone.is-upcoming .job-hub-schedule-milestone-label{color:#94a3b8}
.job-hub-schedule-milestone-track{display:flex;align-items:center;justify-content:center;width:100%;position:relative;min-height:32px}
.job-hub-schedule-line{position:absolute;top:50%;height:2px;transform:translateY(-50%);z-index:0}
.job-hub-schedule-line--before{left:0;right:50%}
.job-hub-schedule-line--after{left:50%;right:0}
.job-hub-schedule-line.is-done{background:var(--jcca-accent)}
.job-hub-schedule-line.is-overdue{background:#dc2626}
.job-hub-schedule-line.is-upcoming{background:#e2e8f0}
.job-hub-schedule-node{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:#fff;border:2px solid #cbd5e1;position:relative;z-index:1;flex-shrink:0}
.job-hub-schedule-milestone.is-done .job-hub-schedule-node{background:var(--jcca-accent);border-color:var(--jcca-accent);color:#fff;font-size:.75rem}
.job-hub-schedule-milestone.is-overdue .job-hub-schedule-node{background:#fef2f2;border-color:#fca5a5;color:#dc2626;font-size:.82rem}
.job-hub-schedule-milestone.is-active .job-hub-schedule-node{border-color:var(--jcca-accent);background:#fff}
.job-hub-schedule-node-ring{width:10px;height:10px;border-radius:999px;background:var(--jcca-accent);display:block}
.job-hub-schedule-range{font-size:.72rem;color:#64748b;line-height:1.25}
.job-hub-schedule-badge{display:inline-flex;align-items:center;justify-content:center;padding:4px 10px;border-radius:999px;font-size:.72rem;font-weight:800;line-height:1.2}
.job-hub-schedule-badge--success{background:#ecfdf5;color:#047857}
.job-hub-schedule-badge--primary{background:var(--jcca-accent-soft);color:var(--jcca-accent)}
.job-hub-schedule-badge--danger{background:#fef2f2;color:#dc2626}
.job-hub-schedule-footnote{font-size:.8rem;color:#94a3b8;font-style:italic;margin-top:1rem}
@media (max-width:991.98px){
  .job-hub-schedule-timeline{overflow-x:auto;padding-bottom:10px}
  .job-hub-schedule-milestone{min-width:108px}
}

.proposal-schedule-block .section-title{color:#0f172a}
.proposal-schedule-card{border-radius:16px;border-color:#e2e8f0}
.proposal-schedule-kicker{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;font-weight:800;color:#94a3b8;margin-bottom:0}
.proposal-schedule-timeline{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;position:relative;padding:8px 0 4px;margin-bottom:8px}
.proposal-schedule-timeline::before{content:"";position:absolute;left:calc(100% / 12);right:calc(100% / 12);top:42px;height:2px;background:#e2e8f0;z-index:0}
.proposal-schedule-timeline::after{content:"";position:absolute;left:calc(100% / 12);top:42px;height:2px;width:calc((100% - (100% / 6)) * var(--schedule-progress, 0) / 100);max-width:calc(100% - (100% / 6));background:var(--jcca-accent);z-index:0;transition:width .3s ease}
.proposal-schedule-milestone{flex:1;min-width:0;text-align:center;position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:8px}
.proposal-schedule-label{font-size:.78rem;font-weight:700;color:#1e293b;line-height:1.25;min-height:2.5em;display:flex;align-items:flex-end;justify-content:center}
.proposal-schedule-node{width:28px;height:28px;border-radius:999px;display:grid;place-items:center;background:#fff;border:2px solid #cbd5e1;flex-shrink:0}
.proposal-schedule-milestone.is-done .proposal-schedule-node{background:var(--jcca-accent);border-color:var(--jcca-accent);color:#fff;font-size:.72rem}
.proposal-schedule-milestone.is-active .proposal-schedule-node{border-color:var(--jcca-accent);background:#fff}
.proposal-schedule-node-ring{width:10px;height:10px;border-radius:999px;background:var(--jcca-accent);display:block}
.proposal-schedule-weeks{font-size:.72rem;color:#94a3b8;line-height:1.2}
.proposal-schedule-footnote{font-size:.8rem;color:#94a3b8;font-style:italic}
@media (max-width:767.98px){
  .proposal-schedule-timeline{overflow-x:auto;padding-bottom:12px}
  .proposal-schedule-timeline::before,.proposal-schedule-timeline::after{left:80px;right:80px}
  .proposal-schedule-milestone{min-width:88px}
}

.job-schedule-dates-card{border-radius:16px}
.job-schedule-date-tile{border:1px solid #e2e8f0;border-radius:12px;padding:12px 14px;background:#fff}
.job-schedule-date-label{display:block;font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;font-weight:800;color:#94a3b8;margin-bottom:6px}
.job-schedule-date-value{display:block;font-size:1rem;color:#0f172a}
.job-schedule-milestones-table thead th{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:#64748b}
.job-schedule-row-expired td{background-color:#fff1f2}

.table-hover>tbody>tr.job-service-overdue:hover>td.job-service-due-date{
  color:#dc2626 !important;
}

/* CA register tables — RFI & Submittal (section theme) */
.ca-register{
  border:1px solid color-mix(in srgb,var(--section-border,var(--border)) 70%,#e5e7eb);
  border-radius:18px;
  background:#fff;
  margin-bottom:1rem;
  box-shadow:var(--card-shadow);
  overflow:hidden;
}

.ca-register__title{
  text-align:center;
  color:#0f172a;
  font-weight:800;
  padding:.65rem .75rem;
  font-size:.9rem;
  letter-spacing:.02em;
  background:linear-gradient(180deg,#fff 0%,var(--section-bg,#f8fafc) 100%);
  border-bottom:1px solid var(--section-border,var(--border));
}

.ca-register__table thead th{
  background:color-mix(in srgb,var(--section-bg,#f8fafc) 75%,#f8fafc);
  color:#475569;
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
  text-align:center;
  border-color:var(--section-border,var(--border));
  border-bottom:2px solid var(--section-border,var(--border));
  white-space:nowrap;
  vertical-align:middle;
}

.ca-register__table td{
  border-color:color-mix(in srgb,var(--section-border,var(--border)) 55%,#e5e7eb);
  font-size:.88rem;
  vertical-align:middle;
  color:var(--text,#111827);
}

.ca-register__table tbody tr:nth-child(odd):not(.ca-register__empty) td{
  background:color-mix(in srgb,var(--section-bg,#fafbfc) 35%,#fafbfc);
}

.ca-register__table tbody tr:hover:not(.ca-register__empty) td{
  background-color:var(--jcca-table-hover-bg)!important;
}

.ca-register__table tbody tr.ca-register__empty td{
  min-height:1.6rem;
  background:#fff;
}

.ca-register__table tbody tr.ca-register__empty:nth-child(odd) td{
  background:color-mix(in srgb,var(--section-bg,#fafbfc) 35%,#fafbfc);
}

.ca-register__check{
  text-align:center;
  font-weight:600;
  color:#64748b;
}

.ca-register__col-num{
  width:5.5rem;
}

.ca-register__col-spec{
  width:6.5rem;
}

.ca-register__col-date{
  width:6.25rem;
}

.ca-register__col-person{
  width:7rem;
}

.ca-register__col-check{
  width:4.25rem;
  font-size:.72rem;
  line-height:1.2;
  white-space:normal;
}

.ca-register__col-actions{
  width:9rem;
  white-space:nowrap;
}

.jcca-doc-ui .ca-register .ca-register__table thead th{
  background:color-mix(in srgb,var(--section-bg,#f8fafc) 75%,#f8fafc);
  color:#475569;
  border-bottom:2px solid var(--section-border,var(--border));
}

.jcca-doc-ui .ca-register{
  border:1px solid color-mix(in srgb,var(--section-border,var(--border)) 70%,#e5e7eb);
  border-radius:18px;
  box-shadow:var(--card-shadow);
}

.jcca-doc-ui .ca-register__title{
  background:linear-gradient(180deg,#fff 0%,var(--section-bg,#f8fafc) 100%);
  color:#0f172a;
  border-bottom:1px solid var(--section-border,var(--border));
}

.table-sort-link{
  color:inherit;
  text-decoration:none;
  display:inline-flex;
  align-items:center;
  gap:.28em;
  white-space:nowrap;
  cursor:pointer;
}

.table-sort-link .table-sort-icon{
  font-size:1.05em;
  font-weight:500;
  line-height:1;
}

.table-sort-link:hover{
  color:var(--section-accent,var(--section-color,var(--jcca-accent)));
}

.table-sort-link.is-active{
  font-weight:800;
  color:var(--section-accent,var(--section-color,#7db7e8));
}

.table-sort-link.is-active .table-sort-icon{
  color:inherit;
}

/* Navy headers: white idle (arrow always visible), light-blue when active */
.table thead .table-sort-link{
  color:#fff;
}

.table thead .table-sort-link .table-sort-icon{
  color:rgba(255,255,255,.85);
}

.table thead .table-sort-link:hover,
.table thead .table-sort-link.is-active{
  color:var(--section-accent,var(--section-color,#7db7e8));
}

.table thead .table-sort-link:hover .table-sort-icon,
.table thead .table-sort-link.is-active .table-sort-icon{
  color:inherit;
}

/* Weekly Job Status Report (Timesheet) */
.wjsr-card{
  border:1px solid #cbd5e1;
}

.wjsr-title{
  text-align:center;
  color:#1d4ed8;
  text-decoration:underline;
  font-size:1.35rem;
  font-weight:700;
  letter-spacing:.02em;
  margin-bottom:1.25rem;
}

.wjsr-meta th,
.wjsr-meta td{
  padding:.45rem .65rem;
  font-size:.9rem;
  vertical-align:middle;
}

.wjsr-meta th{
  width:8%;
  background:#f8fafc;
  white-space:nowrap;
}

.wjsr-table{
  margin-bottom:0;
  font-size:.88rem;
}

.wjsr-table th,
.wjsr-table td{
  vertical-align:top;
  padding:.4rem .55rem;
}

.wjsr-section th{
  text-align:center;
  font-weight:700;
  font-size:.95rem;
  border-bottom:0;
}

.wjsr-section--top th{
  background:#fecaca;
}

.wjsr-section--low th{
  background:#bfdbfe;
}

.wjsr-columns th{
  background:#e2e8f0;
  font-weight:600;
}

.wjsr-job-link{
  color:inherit;
  text-decoration:none;
  font-weight:600;
}

.wjsr-job-link:hover{
  color:var(--bs-primary);
  text-decoration:underline;
}

@media print{
  .d-print-none{
    display:none !important;
  }

  .wjsr-card{
    border:0;
    box-shadow:none;
  }

  .app-shell .sidebar,
  .app-shell .app-header,
  .breadcrumb,
  .section-context,
  .job-flow-strip,
  footer{
    display:none !important;
  }

  .app-main{
    margin:0 !important;
    width:100% !important;
  }

  .content-wrap{
    padding:0 !important;
  }
}

tr[data-row-href],
tr[data-row-edit],
tr[data-row-click]{
  cursor:pointer;
}

/* Job hub tab bar — pill tabs with record context header */
.job-hub-card{
  overflow:visible;
}
.job-hub-card>.card-header.job-hub-tabs-header{
  background:#fff!important;
  border-bottom:0!important;
  padding:1rem 1.25rem 0;
  overflow:visible;
}
.job-hub-tabs-shell{
  min-width:0;
  width:100%;
}
.job-hub-tabs-scroll{
  overflow-x:auto;
  overflow-y:hidden;
  margin:0 -.25rem;
  padding:0 .75rem .35rem .25rem;
  scroll-padding-inline-end:1rem;
  scrollbar-width:thin;
  -webkit-overflow-scrolling:touch;
}
.job-hub-tabs-scroll::-webkit-scrollbar{
  height:6px;
}
.job-hub-tabs-scroll::-webkit-scrollbar-thumb{
  background:#cbd5e1;
  border-radius:999px;
}
.job-hub-context{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin-bottom:.85rem;
  font-weight:700;
  font-size:1.05rem;
  color:#1e293b;
  letter-spacing:-.01em;
  min-width:0;
}
.job-hub-context-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.job-hub-context-dot{
  width:10px;
  height:10px;
  border-radius:50%;
  flex-shrink:0;
  box-shadow:0 0 0 2px rgba(255,255,255,.9);
}
.job-hub-tabs{
  display:flex;
  flex-wrap:nowrap;
  gap:.35rem;
  margin:0;
  padding:0 0 .15rem;
  list-style:none;
  width:max-content;
  min-width:100%;
}
.job-hub-tabs .nav-item{
  flex-shrink:0;
}
.job-hub-tabs .nav-link{
  border:0;
  border-radius:999px;
  padding:.45rem 1rem;
  color:#64748b;
  font-weight:600;
  font-size:.875rem;
  background:transparent;
  white-space:nowrap;
  transition:color .15s ease,background .15s ease,box-shadow .15s ease;
}
.job-hub-tabs .nav-link:hover{
  color:#334155;
  background:rgba(255,255,255,.85);
}
.job-hub-card:not(.jcca-hybrid-tabs) .job-hub-tabs .nav-link.active{
  color:#fff!important;
  background:linear-gradient(135deg,#7c3aed 0%,#06b6d4 100%)!important;
  border:0!important;
  box-shadow:0 4px 14px rgba(124,58,237,.28);
}
.job-hub-card>.card-body{
  border-top:1px solid #e2e8f0;
}

/* AHJ milestone accordion progress */
.ahj-milestone-accordion .accordion-item{
  border:1px solid #bfdbfe!important;
  border-radius:14px!important;
  overflow:hidden;
  box-shadow:0 2px 8px rgba(37,99,235,.06);
}
.ahj-milestone-accordion .accordion-button.ahj-milestone-header{
  align-items:flex-start;
  padding:1rem 1.15rem;
  background:linear-gradient(180deg,#fff 0%,#f8fafc 100%);
  border-left:4px solid #cbd5e1;
  transition:background .2s ease,border-color .2s ease,box-shadow .2s ease;
}
.ahj-milestone-accordion .accordion-button.ahj-milestone-header:not(.collapsed){
  background:linear-gradient(135deg,#dbeafe 0%,#eff6ff 45%,#f0f9ff 100%);
  border-left-color:#2563eb;
  box-shadow:inset 0 -1px 0 rgba(37,99,235,.12);
  color:#0f172a;
}
.ahj-milestone-accordion .accordion-button.ahj-milestone-header.collapsed:hover{
  background:linear-gradient(180deg,#f8fafc 0%,#f1f5f9 100%);
  border-left-color:#60a5fa;
}
.ahj-milestone-accordion .accordion-button::after{
  margin-top:.45rem;
  filter:opacity(.7);
}
.ahj-milestone-badge{
  font-size:.78rem;
  padding:.35rem .65rem;
}
.ahj-milestone-title{
  font-size:1.02rem;
  color:#0f172a;
  letter-spacing:-.01em;
}
.ahj-milestone-progress-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:3.25rem;
  padding:.3rem .7rem;
  border-radius:999px;
  background:linear-gradient(135deg,#7c3aed 0%,#06b6d4 100%);
  color:#fff!important;
  font-weight:700;
  font-size:.9rem;
  box-shadow:0 2px 8px rgba(124,58,237,.25);
}
.ahj-milestone-accordion .accordion-button:not(.collapsed) .ahj-milestone-progress-pill{
  box-shadow:0 3px 12px rgba(37,99,235,.3);
}
.ahj-progress-track{
  background:#e2e8f0;
  border-radius:999px;
  overflow:hidden;
}
.ahj-overall-progress-card{
  background:linear-gradient(180deg,#f8fafc 0%,#fff 100%);
}
.jcca-doc-ui .ahj-milestone-accordion .ahj-light-table thead th,
.jcca-doc-ui .ahj-light-table thead th{
  background:#f1f5f9!important;
  border-bottom:1px solid #e2e8f0!important;
  color:#64748b!important;
  font-size:.72rem;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
}

/* SweetAlert2 — match JCCA theme */
.swal2-popup{
  font-family:inherit;
  border-radius:16px;
  padding:1.5rem 1.75rem;
}
.swal2-title{
  font-size:1.25rem;
  font-weight:600;
  color:#1e293b;
}
.swal2-html-container,
.swal2-html-container p{
  font-size:0.95rem;
  color:#64748b;
}
.swal2-actions{
  gap:0.5rem;
}
.swal2-styled.swal2-confirm,
.swal2-styled.swal2-cancel{
  border-radius:8px;
  font-weight:500;
  padding:0.5rem 1.25rem;
  box-shadow:none !important;
}

.table-pagination-bar .pagination{
  margin-bottom:0;
}

.table-pagination-bar .page-link{
  color:#1e3a5f;
}

.table-pagination-bar .page-item.active .page-link{
  background-color:#1e3a5f;
  border-color:#1e3a5f;
}

/* Global button content alignment */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* Global table row hover for both Bootstrap and plain tables */
.content-wrap table tbody tr:hover > td,
.content-wrap table tbody tr:hover > th,
.phase-list-page .phase-list-table tbody tr:hover > td,
.phase-list-page .phase-list-table tbody tr:hover > th,
.phase-mini-table tbody tr:hover > td,
.phase-mini-table tbody tr:hover > th{
  background-color:var(--jcca-table-hover-bg, #dbeafe) !important;
}
