/* TODO: If PingAR Arabic license is provided by client, replace Tajawal with PingAR */

/* === Brand Variables === */
:root {
  --rc-navy: #103576;
  --rc-navy-dark: #0a2456;
  --rc-navy-light: #2a4d8f;
  --rc-purple: #8142FF;
  --rc-purple-dark: #6233FF;
  --rc-green: #20CC7B;
  --rc-blue: #2633FF;
  --rc-sky: #4CC4FF;
  --rc-gold: #BC9470;
  --rc-bg-light-blue: #ECF8FF;
  --rc-bg-light-green: #F3F4FF;
  --rc-bg-cream: #FFF9F3;
  --rc-status-compliant: #20CC7B;
  --rc-status-late: #ffc107;
  --rc-status-defaulting: #fd7e14;
  --rc-status-severely-defaulting: #dc3545;
  --rc-text-primary: #103576;
  --rc-text-body: #2c3e50;
  --rc-text-muted: #6c757d;
  --body-bg: #f4f6f8;
  --border-color: #e3e6f0;
  --sidebar-w: 260px;
  --sidebar-w-collapsed: 68px;
  --topbar-h: 60px;
}

/* === Base & Reset === */
html, body {
  height: 100%;
}

html {
  scrollbar-color: #9fb3d3 #eef3fb;
  scrollbar-width: thin;
}

* {
  scrollbar-width: thin;
  scrollbar-color: #9fb3d3 #eef3fb;
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: #eef3fb;
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #b6c6e0 0%, #8ea7ce 100%);
  border-radius: 999px;
  border: 2px solid #eef3fb;
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #9db4d7 0%, #7696c5 100%);
}

*::-webkit-scrollbar-corner {
  background: #eef3fb;
}

body {
  font-family: "Tajawal", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  color: var(--rc-text-body);
  background-color: var(--body-bg);
  -webkit-font-smoothing: antialiased;
}

input[type="email"] {
  direction: rtl;
}

a {
  color: var(--rc-purple-dark);
  text-decoration: none;
}

a:hover {
  color: var(--rc-navy);
  text-decoration: underline;
}

/* === Typography === */
h1, h2, h3, h4, h5, h6 {
  font-family: "Tajawal", system-ui, -apple-system, sans-serif;
  color: var(--rc-navy);
}

.progress {
  --bs-progress-bg: #e7edf7;
  --bs-progress-border-radius: 999px;
}

.progress-bar {
  --bs-progress-bar-bg: var(--rc-navy);
  background: linear-gradient(90deg, var(--rc-navy) 0%, var(--rc-purple) 100%);
}

/* === Layout & Sidebar === */
.app-shell {
  min-height: 100vh;
}

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--rc-navy);
  color: #b8c2cc;
  z-index: 1040;
  overflow-y: auto;
  scrollbar-gutter: stable;
  transition: width 0.25s ease, transform 0.25s ease;
}

.sidebar::-webkit-scrollbar {
  width: 8px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.08);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.42);
}

.sidebar.collapsed {
  width: var(--sidebar-w-collapsed);
}

.sidebar-header {
  border-bottom: 1px solid var(--rc-navy-light);
  padding-bottom: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-align: center;
  padding-top: 21px;
}

.sidebar-header-logo {
  width: auto;
  height: 69px;
  object-fit: contain;
}

.sidebar-role {
  color: #dbe6f3;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}

.sidebar-title {
  color: #fff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.2;
}

.sidebar.collapsed .sidebar-title {
  display: none;
}

.sidebar.collapsed .sidebar-header {
  min-height: 88px;
  padding: 0.5rem 0.25rem;
}

.sidebar.collapsed .sidebar-header-logo {
  height: 44px;
}

.sidebar.collapsed .sidebar-role {
  display: none;
}

.sidebar-nav {
  list-style: none;
  padding: 0.75rem;
  margin: 0;
}

.sidebar-nav__item {
  list-style: none;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  color: #b8c2cc;
  font-weight: 500;
  font-size: 0.92rem;
  position: relative;
  white-space: nowrap;
}

.sidebar-nav__link {
  display: flex;
}

.sidebar-link:hover {
  background: var(--rc-navy-dark);
  color: #fff;
  text-decoration: none;
}

.sidebar-link.active {
  background: var(--rc-navy-dark);
  color: #fff;
}

.sidebar-link.active::before {
  content: "";
  position: absolute;
  inset-inline-end: -0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 60%;
  background: var(--rc-purple);
  border-radius: 2px 0 0 2px;
}

.sidebar-link i {
  width: 22px;
  text-align: center;
}

.sidebar-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-nav__link__label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar.collapsed .sidebar-label {
  display: none;
}

.main-area {
  margin-inline-start: var(--sidebar-w);
  min-height: 100vh;
  transition: margin-inline-start 0.25s ease;
}

body.sidebar-collapsed .main-area {
  margin-inline-start: var(--sidebar-w-collapsed);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  height: var(--topbar-h);
  background: #fff;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 1rem;
  padding: 37px !important;
  gap: 1rem;
}

.topbar-toggle {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rc-text-primary);
}

.topbar-toggle:hover {
  background: #f1f5f9;
}

.topbar-title {
  font-weight: 700;
  color: var(--rc-text-primary);
  font-size: 0.95rem;
}

.topbar-search-wrap {
  position: relative;
  width: 360px;
  max-width: 34vw;
}

.topbar-search-icon {
  position: absolute;
  inset-inline-start: .8rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8ea0bb;
  pointer-events: none;
  z-index: 2;
}

.topbar-search-input {
  height: 40px;
  border: 1px solid #d7e3f3;
  border-radius: 10px;
  background: linear-gradient(180deg, #fff 0%, #f9fcff 100%);
  color: var(--rc-text-primary);
  padding: .45rem .85rem .45rem 2.1rem;
  text-align: center;
  box-shadow: 0 2px 8px rgba(16, 53, 118, .06);
}

.topbar-search-input:focus {
  border-color: var(--rc-navy);
  box-shadow: 0 0 0 .2rem rgba(16, 53, 118, .12), 0 2px 10px rgba(16, 53, 118, .08);
}

.topbar-search-dropdown {
  position: absolute;
  top: calc(100% + .45rem);
  inset-inline-start: 0;
  width: 100%;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(16, 53, 118, .12);
  z-index: 1045;
  overflow: hidden;
}

.topbar-search-dropdown-title {
  font-size: .8rem;
  font-weight: 700;
  color: var(--rc-text-muted);
  padding: .65rem .85rem;
  background: #f8fbff;
  border-bottom: 1px solid var(--border-color);
}

.topbar-search-dropdown .list-group-item {
  border: 0;
  border-bottom: 1px solid #eef3fb;
  display: flex;
  align-items: center;
  gap: .55rem;
  font-weight: 600;
  color: var(--rc-text-primary);
}

.topbar-search-dropdown .list-group-item:last-child {
  border-bottom: 0;
}

.topbar-search-dropdown .list-group-item i {
  color: var(--rc-navy);
}

.topbar-actions {
  margin-inline-start: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--rc-text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  position: relative;
}

.icon-btn:hover {
  background: #f1f5f9;
}

.badge-dot {
  position: absolute;
  top: -8px;
  left: 11px !important;
  inset-inline-end: 6px;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--rc-status-severely-defaulting);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

.content {
  padding: 1.5rem;
}

.breadcrumb-item a {
  color: var(--rc-text-muted);
}

.breadcrumb-item + .breadcrumb-item::before {
  content: "‹";
  color: var(--rc-text-muted);
}

.breadcrumb-item.active {
  color: var(--rc-text-primary);
  font-weight: 600;
}

.sidebar-backdrop {
  display: none;
}

/* === Cards === */
.card {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: none;
}

.card-header {
  background: var(--rc-bg-light-blue);
  color: var(--rc-navy);
  border-bottom: 1px solid var(--border-color);
  font-weight: 700;
}

/* === Buttons === */
.btn-primary {
  --bs-btn-bg: var(--rc-navy);
  --bs-btn-border-color: var(--rc-navy);
  --bs-btn-hover-bg: var(--rc-navy-dark);
  --bs-btn-hover-border-color: var(--rc-navy-dark);
  --bs-btn-active-bg: var(--rc-navy-dark);
  --bs-btn-active-border-color: var(--rc-navy-dark);
}

.btn-accent {
  background: var(--rc-purple);
  border-color: var(--rc-purple);
  color: #fff;
}

.btn-accent:hover {
  background: var(--rc-purple-dark);
  border-color: var(--rc-purple-dark);
  color: #fff;
}

.btn-secondary {
  --bs-btn-bg: var(--rc-navy-light);
  --bs-btn-border-color: var(--rc-navy-light);
  --bs-btn-hover-bg: var(--rc-navy);
  --bs-btn-hover-border-color: var(--rc-navy);
  --bs-btn-active-bg: var(--rc-navy);
  --bs-btn-active-border-color: var(--rc-navy);
}

.btn-success {
  --bs-btn-bg: var(--rc-green);
  --bs-btn-border-color: var(--rc-green);
  --bs-btn-hover-bg: #1ab26b;
  --bs-btn-hover-border-color: #1ab26b;
  --bs-btn-active-bg: #179f5f;
  --bs-btn-active-border-color: #179f5f;
}

.btn-warning {
  --bs-btn-bg: var(--rc-status-late);
  --bs-btn-border-color: var(--rc-status-late);
  --bs-btn-color: #3f3000;
  --bs-btn-hover-bg: #e6ae00;
  --bs-btn-hover-border-color: #e6ae00;
  --bs-btn-hover-color: #3f3000;
}

.btn-danger {
  --bs-btn-bg: var(--rc-status-severely-defaulting);
  --bs-btn-border-color: var(--rc-status-severely-defaulting);
  --bs-btn-hover-bg: #b52b38;
  --bs-btn-hover-border-color: #b52b38;
}

.btn-outline-primary {
  --bs-btn-color: var(--rc-navy);
  --bs-btn-border-color: var(--rc-navy);
  --bs-btn-hover-bg: var(--rc-navy);
  --bs-btn-hover-border-color: var(--rc-navy);
  --bs-btn-active-bg: var(--rc-navy-dark);
  --bs-btn-active-border-color: var(--rc-navy-dark);
}

.btn-outline-accent {
  --bs-btn-color: var(--rc-purple);
  --bs-btn-border-color: var(--rc-purple);
  --bs-btn-hover-bg: var(--rc-purple);
  --bs-btn-hover-border-color: var(--rc-purple);
  --bs-btn-hover-color: #fff;
}

.btn-outline-success {
  --bs-btn-color: var(--rc-green);
  --bs-btn-border-color: var(--rc-green);
  --bs-btn-hover-bg: var(--rc-green);
  --bs-btn-hover-border-color: var(--rc-green);
  --bs-btn-hover-color: #fff;
}

.btn-soft-primary {
  background: var(--rc-bg-light-blue);
  color: var(--rc-navy);
  border: 1px solid #cfe4f3;
}

.btn-soft-primary:hover {
  background: #dbeefb;
  color: var(--rc-navy-dark);
}

.btn-soft-accent {
  background: #f0e9ff;
  color: var(--rc-purple-dark);
  border: 1px solid #d9c8ff;
}

.btn-soft-accent:hover {
  background: #e6dbff;
  color: var(--rc-purple-dark);
}

.btn-soft-danger {
  background: #fdecef;
  color: var(--rc-status-severely-defaulting);
  border: 1px solid #f7c8cf;
}

.btn-soft-danger:hover {
  background: #fbdde2;
  color: #a12531;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 8px;
}

.btn-rounded {
  border-radius: 999px;
}

/* === Forms === */
.form-label {
  color: var(--rc-text-primary);
  font-weight: 500;
}

.input-icon-group {
  position: relative;
}

.input-leading-icon {
  position: absolute;
  inset-inline-start: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  z-index: 2;
}

.input-icon-group .form-control {
  height: 48px;
  padding-inline-start: 2.75rem;
  border-color: var(--border-color);
}

.input-icon-group .form-control:focus {
  border-color: var(--rc-navy);
  box-shadow: 0 0 0 0.2rem rgba(16, 53, 118, 0.12);
}

.btn-submit {
  height: 48px;
  border-radius: 8px;
}

/* === Tabs === */
.investor-tabs-modern {
  border-bottom: 0;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.investor-tabs-modern .nav-item {
  margin-bottom: 0;
}

.investor-tabs-modern .nav-link {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  color: var(--rc-text-primary);
  font-weight: 600;
  padding: 0.55rem 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: all 0.2s ease;
}

.investor-tabs-modern .nav-link:hover {
  background: var(--rc-bg-light-blue);
  border-color: #cfe4f3;
  color: var(--rc-navy);
}

.investor-tabs-modern .nav-link.active,
.investor-tabs-modern .nav-item.show .nav-link {
  background: var(--rc-navy);
  border-color: var(--rc-navy);
  color: #fff;
  box-shadow: 0 4px 12px rgba(16, 53, 118, 0.18);
}

.investor-tabs-modern .nav-link.active i,
.investor-tabs-modern .nav-item.show .nav-link i {
  color: #fff;
}

/* === Tables & DataTables === */
.table thead th {
  background: var(--rc-bg-light-blue);
  color: var(--rc-navy);
  text-align: center !important;
  vertical-align: middle;
}

table.dataTable thead th,
table.dataTable thead td,
.dataTables_wrapper table.dataTable thead th,
.dataTables_wrapper table.dataTable thead td {
  background: var(--rc-bg-light-blue) !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.table tbody td,
.table tbody th,
table.dataTable tbody td,
table.dataTable tbody th,
.dataTables_wrapper table.dataTable tbody td,
.dataTables_wrapper table.dataTable tbody th {
  text-align: center !important;
  vertical-align: middle !important;
}

/* === Status Badges === */
.text-orange { color: var(--rc-status-defaulting) !important; }
.bg-orange { background-color: var(--rc-status-defaulting) !important; }
.border-orange { border-color: var(--rc-status-defaulting) !important; }

.status-badge {
  padding: 0.25rem 0.65rem;
  border-radius: 0.375rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: inline-block;
}

.agreement-table-responsive {
  position: relative;
  overflow: visible !important;
}

.agreement-table-responsive .dataTables_wrapper,
.agreement-table-responsive .dataTables_scrollBody {
  overflow: visible !important;
}

.agreement-table-responsive .dropdown-menu {
  z-index: 1060;
}

.agreement-actions-dropdown .dropdown-toggle {
  min-width: 118px;
}

.status-guide-card {
  border: 1px solid var(--rc-bg-light-blue);
  border-right-width: 4px;
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  background: #fff;
}

.status-guide-card--compliant {
  border-right-color: var(--rc-status-compliant);
}

.status-guide-card--late {
  border-right-color: var(--rc-status-late);
}

.status-guide-card--defaulting {
  border-right-color: var(--rc-status-defaulting);
}

.status-guide-card--severely-defaulting {
  border-right-color: var(--rc-status-severely-defaulting);
}

.status-guide-card .sg-head {
  margin-bottom: 0.6rem;
}

.status-guide-card .badge {
  font-size: 0.85rem;
  padding: 0.38rem 1rem;
  border-radius: 999px;
}

.sg-row {
  display: flex;
  gap: 0.75rem;
  padding: 0.35rem 0;
  border-bottom: 1px dashed var(--rc-bg-light-blue);
  font-size: 0.88rem;
}

.sg-row:last-child {
  border-bottom: none;
}

.sg-k {
  font-weight: 700;
  color: var(--rc-navy);
  min-width: 110px;
  flex-shrink: 0;
}

.sg-v {
  color: var(--rc-text-body);
  line-height: 1.8;
}

.dashboard-main-title {
  color: var(--rc-navy);
}

.dashboard-manager-title {
  color: var(--rc-navy);
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.dashboard-kpi-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 991px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .dashboard-kpi-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 575px) {
  .dashboard-kpi-grid,
  .dashboard-kpi-grid-3 {
    grid-template-columns: 1fr;
  }
}

.dashboard-kpi-card {
  background: white;
  border: 1px solid var(--rc-bg-light-blue);
  border-radius: 14px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: all 0.22s;
  position: relative;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}

.dashboard-kpi-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 14px 14px 0;
}

.dashboard-kpi-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(16, 53, 118, 0.12);
  color: inherit;
  text-decoration: none;
}

.dashboard-kpi-card.dkpi-primary::before { background: var(--rc-navy); }
.dashboard-kpi-card.dkpi-purple::before { background: var(--rc-purple); }
.dashboard-kpi-card.dkpi-info::before { background: var(--rc-sky); }
.dashboard-kpi-card.dkpi-success::before { background: var(--rc-green); }
.dashboard-kpi-card.dkpi-warning::before { background: var(--rc-status-late); }
.dashboard-kpi-card.dkpi-danger::before { background: var(--rc-status-severely-defaulting); }

.dashboard-kpi-card.dkpi-alert-red {
  border-color: #f1aeb5;
  box-shadow: 0 0 12px rgba(220, 53, 69, 0.08);
}

.dashboard-kpi-card.dkpi-alert-orange {
  border-color: #ffc68a;
  box-shadow: 0 0 12px rgba(253, 126, 20, 0.08);
}

.dkpi-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.dkpi-icon.dkpi-primary { background: rgba(16, 53, 118, 0.1); color: var(--rc-navy); }
.dkpi-icon.dkpi-purple { background: rgba(129, 66, 255, 0.1); color: var(--rc-purple); }
.dkpi-icon.dkpi-info { background: rgba(76, 196, 255, 0.1); color: #0090c0; }
.dkpi-icon.dkpi-success { background: rgba(32, 204, 123, 0.1); color: var(--rc-green); }
.dkpi-icon.dkpi-warning { background: rgba(255, 193, 7, 0.12); color: #b38600; }
.dkpi-icon.dkpi-danger { background: rgba(220, 53, 69, 0.1); color: var(--rc-status-severely-defaulting); }

.dkpi-content {
  flex: 1;
  min-width: 0;
}

.dkpi-value {
  font-size: 1.65rem;
  font-weight: 900;
  line-height: 1;
  color: var(--rc-navy);
  margin-bottom: 0.2rem;
}

.dkpi-label {
  font-size: 0.82rem;
  color: var(--rc-text-muted);
  font-weight: 500;
}

.dkpi-subtitle {
  font-size: 0.72rem;
  color: var(--rc-text-muted);
  margin-top: 0.15rem;
}

.manager-card {
  background: white;
  border: 1px solid var(--rc-bg-light-blue);
  border-radius: 12px;
  padding: 1.25rem;
  transition: all 0.22s;
  height: 100%;
  box-shadow: 0 4px 10px rgba(16, 53, 118, 0.05);
}

.manager-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 53, 118, 0.1);
}

.manager-card.has-defaulting {
  border-right: 3px solid var(--rc-status-severely-defaulting);
}

.manager-card-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--rc-bg-light-blue);
}

.manager-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rc-navy), var(--rc-purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.manager-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--rc-navy);
  line-height: 1.2;
}

.manager-role {
  font-size: 0.75rem;
  color: var(--rc-text-muted);
}

.manager-stats {
  display: flex;
  gap: 0.75rem;
  text-align: center;
}

.manager-stat {
  flex: 1;
  padding: 0.5rem;
  border-radius: 8px;
  background: var(--rc-bg-light-blue);
}

.manager-stat-value {
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.15rem;
}

.manager-stat-value.stat-primary { color: var(--rc-navy); }
.manager-stat-value.stat-danger { color: var(--rc-status-severely-defaulting); }
.manager-stat-value.stat-warning { color: #b38600; }
.manager-stat-value.stat-muted { color: #ccc; }

.manager-stat-label {
  font-size: 0.7rem;
  color: var(--rc-text-muted);
}

.status-compliant { background: #d4f7e3; color: #0a6e3e; }
.status-late { background: #fff3cd; color: #664d03; }
.status-defaulting { background: #fee2c5; color: #8a4a00; }
.status-severely-defaulting { background: #f8d7da; color: #842029; }



.auth-brand {
  flex: 0 0 55%;
  max-width: 55%;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}

.auth-brand img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(45deg, rgba(255,255,255,0.04) 25%, transparent 25%), linear-gradient(-45deg, rgba(255,255,255,0.04) 25%, transparent 25%);
  background-size: 60px 60px;
  opacity: 0.5;
}

.auth-form-side {
  /*flex: 1 0 45%;*/
  /*max-width: 45%;*/
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem;
  min-height: 100vh;
}

.auth-card {
  width: 100%;
  max-width: 420px;
}

.auth-card__header {
  margin-bottom: 2rem;
}

.auth-card__title {
  font-size: 1.75rem;
  font-weight: 700;
}

.auth-card__subtitle {
  color: var(--rc-text-muted);
  font-size: 0.95rem;
}

.quick-login .list-group-item {
  text-align: right;
}

/* === Dashboard Widgets === */
.stat-card {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  height: 100%;
  box-shadow: 0 4px 6px rgba(16, 53, 118, 0.05);
}

.stat-card .card-body {
  padding: 1.25rem;
}

.stat-card .stat-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  color: #fff;
  background: var(--rc-bg-light-blue);
  color: var(--rc-navy);
}

.stat-card .stat-card__label {
  font-size: .85rem;
  color: var(--rc-text-muted);
  font-weight: 500;
}

.stat-card .stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--rc-text-primary);
  margin-top: .35rem;
}

.stat-card .stat-card__meta {
  font-size: .8rem;
  color: var(--rc-text-muted);
}

.stat-card-primary .stat-card__icon { background: var(--rc-bg-light-blue); color: var(--rc-navy); }
.stat-card-success .stat-card__icon { background: #d4f7e3; color: #0a6e3e; }
.stat-card-danger .stat-card__icon { background: #f8d7da; color: #842029; }
.stat-card-warning .stat-card__icon { background: #fff3cd; color: #8a6d00; }

.dashboard-page .welcome-strip {
  background: linear-gradient(135deg, var(--rc-navy-dark) 0%, var(--rc-navy) 60%, var(--rc-navy-light) 100%);
  border-radius: 10px;
  padding: 1.3rem 1.6rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}

.dashboard-page .welcome-strip__title {
  margin: 0;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.dashboard-page .welcome-strip__subtitle {
  margin: .2rem 0 0;
  color: rgba(255,255,255,.82);
  font-size: .9rem;
}

.dashboard-page .welcome-strip__meta {
  color: #fff;
  font-weight: 600;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  padding: .4rem .75rem;
  font-size: .85rem;
}

.dashboard-page .chart-card .card-body {
  padding: .85rem;
}

.dashboard-page .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
}

.dashboard-page .card-header .title-with-icon {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.dashboard-page .dash-table thead th {
  background: var(--rc-bg-light-blue);
  color: var(--rc-navy);
  font-weight: 700;
  white-space: nowrap;
}

.dashboard-page .dash-table tbody td {
  vertical-align: middle;
}

/* === Print & PDF === */
@media print {
  .sidebar, .topbar {
    display: none !important;
  }

  .main-area {
    margin: 0 !important;
  }

  .content {
    padding: 0 !important;
  }
}

@media (max-width: 1199.98px) {
  .sidebar {
    transform: translateX(100%);
    width: var(--sidebar-w);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-area {
    margin-inline-start: 0;
  }

  .sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 1035;
  }

  .sidebar-backdrop.show {
    display: block;
  }

  .auth-brand {
    display: none;
  }

  .auth-form-side {
    max-width: 100%;
    flex: 1 1 100%;
    padding: 1.5rem;
  }

  .investor-tabs-modern .nav-link {
    width: 100%;
    justify-content: center;
  }

  .topbar-search-wrap {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
  .topbar-search-wrap {
    display: block;
    width: 300px;
    max-width: 32vw;
  }
}

.pending-wrapper {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.pending-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  padding: 2.5rem 2.25rem;
  text-align: center;
}

.pending-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
  border-radius: 50%;
  background: #fff8e1;
  border: 8px solid #ffe7a3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pending-icon i {
  font-size: 2.5rem;
  color: #b8860b;
}

.pending-title {
  font-size: 1.6rem;
  font-weight: 700;
}

.pending-subtext {
  color: var(--rc-text-muted);
}

.pending-email {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #f1f5f9;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  margin-bottom: 1.75rem;
  direction: ltr;
}

.pending-steps {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0;
  margin: 0 0 2rem;
  padding: 1rem 0.5rem;
  background: #fafbfc;
  border: 1px solid var(--border-color);
  border-radius: 10px;
}

.pending-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--rc-text-muted);
}

.pending-step__dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e9ecef;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pending-step.is-done .pending-step__dot {
  background: var(--rc-green);
  color: #fff;
}

.pending-step.is-current .pending-step__dot {
  background: var(--rc-status-late);
  color: var(--rc-navy);
}

.btn-logout {
  min-width: 200px;
  height: 46px;
  border-radius: 8px;
}

.agreement-filter-bar {
  position: sticky;
  top: 64px;
  z-index: 100;
  background: #fff;
}

.agreement-filter-wrap fieldset {
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 13px;
}

.agreement-filter-wrap .filter-fieldset-title {
  float: none;
  width: auto;
  margin: 0 0 0.75rem;
  padding: 0 .5rem;
  font-size: 17px;
  font-weight: 700;
  color: var(--rc-navy);
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  border: 1px solid #dfe7f3;
}

.agreement-table tbody tr:hover {
  background: var(--rc-bg-light-blue);
}

.agreement-stat.success h3 { color: var(--rc-green); }
.agreement-stat.warning h3 { color: var(--rc-status-late); }
.agreement-stat.danger h3 { color: var(--rc-status-severely-defaulting); }

.agreement-stat .stat-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.agreement-stat .stat-card__icon--navy {
  background: var(--rc-bg-light-blue);
  color: var(--rc-navy);
}

.agreement-stat .stat-card__icon--success {
  background: #d4f7e3;
  color: #0a6e3e;
}

.agreement-stat .stat-card__icon--warning {
  background: #fff3cd;
  color: #8a6d00;
}

.agreement-stat .stat-card__icon--danger {
  background: #f8d7da;
  color: #842029;
}

.agreement-stat .stat-card__value {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  color: var(--rc-text-primary);
  margin-bottom: .35rem;
}

.agreement-stat.success .stat-card__value { color: var(--rc-green); }
.agreement-stat.warning .stat-card__value { color: #b8860b; }
.agreement-stat.danger .stat-card__value { color: var(--rc-status-severely-defaulting); }

.agreement-stat .stat-card__label {
  font-size: .85rem;
  color: var(--rc-text-muted);
}

.agreement-form-tabs {
  border-bottom: 2px solid var(--rc-bg-light-blue);
  margin-bottom: 1rem;
}

.agreement-form-tabs .nav-link {
  color: var(--rc-text-muted);
  border: none;
  padding: 0.85rem 1rem;
  font-weight: 500;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.agreement-form-tabs .nav-link.active {
  color: var(--rc-navy);
  font-weight: 700;
  border-bottom: 3px solid var(--rc-purple);
}

.agreement-wizard-nav .nav-link {
  border: 1px solid var(--border-color);
  background: #fff;
  color: var(--rc-text-primary);
  border-radius: 8px;
  padding: .5rem .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  font-weight: 600;
}

.agreement-wizard-nav .nav-link.active {
  background: var(--rc-navy);
  border-color: var(--rc-navy);
  color: #fff;
}

.required-label::after {
  content: " *";
  color: #dc3545;
  font-weight: 700;
}

.required-field {
  border-color: #dbe3ef;
  background: #fcfdff;
}

.form-control.is-invalid,
.form-select.is-invalid {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 .2rem rgba(220, 53, 69, .12) !important;
}

label.error,
.help-block,
.invalid-feedback {
  display: block !important;
  margin-top: .35rem;
  font-size: .82rem;
  color: #dc3545 !important;
  line-height: 1.35;
}

#agreement-form .form-control,
#agreement-form .form-select,
#agreement-form label.error,
#agreement-form .help-block,
#agreement-form .invalid-feedback {
  scroll-margin-top: 220px;
}

.form-label {
  font-weight: 600;
  color: var(--rc-text-primary);
}

.agreement-step-progress {
  min-width: 260px;
}

.quick-investor-btn {
  height: 46px;
  border-radius: 8px;
  font-weight: 600;
  white-space: nowrap;
}

.agreement-change-reason-wrap {
  min-width: 280px;
}

.cr-type-card {
  border: 2px solid var(--rc-bg-light-blue);
  border-radius: 12px;
  padding: 1.5rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  height: 100%;
}

.cr-type-card:hover {
  border-color: var(--rc-purple);
  background: var(--rc-bg-light-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 53, 118, 0.1);
}

.cr-type-card i {
  font-size: 2rem;
  color: var(--rc-navy);
  margin-bottom: .5rem;
  display: block;
}

.cr-type-card h6 {
  color: var(--rc-navy);
  font-weight: 700;
  margin-bottom: .25rem;
}

.cr-type-card small {
  color: var(--rc-text-muted);
}

.select2-container--bootstrap-5 .select2-selection__clear {
  right: auto !important;
  left: 0.75rem !important;
}

.modal .select2-container {
  z-index: 1065;
}

.modal .select2-dropdown {
  z-index: 2000;
}

.form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-top: .2rem;
  border: 1.5px solid #b8c7dd;
  border-radius: .3rem;
  background-color: #fff;
  box-shadow: none;
  transition: all .15s ease;
}

.form-check-input:hover {
  border-color: var(--rc-navy);
}

.form-check-input:focus {
  border-color: var(--rc-navy);
  box-shadow: 0 0 0 .2rem rgba(16, 53, 118, .12);
}

.form-check-input:checked {
  background-color: var(--rc-navy);
  border-color: var(--rc-navy);
}

.form-check-label {
  font-weight: 500;
  color: var(--rc-text-primary);
}

.agreement-form-tabs .nav-link:hover {
  background: var(--rc-bg-light-blue);
  color: var(--rc-navy);
}

.agreement-form-tabs .nav-link.tab-incomplete {
  color: #8a6d00;
}

.agreement-form-tabs .nav-link.tab-complete::after {
  content: "✓";
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  color: var(--rc-green);
}

.agreement-form-tabs .nav-link.tab-error::after {
  content: "!";
  position: absolute;
  top: 0.3rem;
  left: 0.3rem;
  color: #dc3545;
}

.tab-pane {
  opacity: 0;
  transition: opacity .2s ease-in;
}

.tab-pane.active.show {
  opacity: 1;
}

.required-indicator {
  color: #dc3545;
  margin-right: 0.2rem;
  cursor: help;
}

.agreement-preview-panel {
  position: sticky;
  top: 100px;
}

.agreement-preview-panel .preview-item {
  border-bottom: 1px dashed var(--border-color);
  padding-bottom: 0.4rem;
}

.agreement-preview-panel .preview-item:last-of-type {
  border-bottom: 0;
}

.agreement-form-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(255,255,255,.95);
  border-top: 2px solid var(--rc-bg-light-blue);
  box-shadow: 0 -4px 12px rgba(16,53,118,.08);
  padding: .75rem 1rem;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.agreement-form-wrapper {
  padding-bottom: 100px;
}

.tab-content > .tab-pane > .card {
  border-radius: 10px;
}

.tab-content > .tab-pane .card-body {
  padding: 1.25rem;
}

#form-completion-progress {
  width: 0;
}

.agreement-sticky-header {
  position: sticky;
  top: 64px;
  z-index: 101;
  backdrop-filter: blur(8px);
  background: rgba(255,255,255,.9);
  padding: .75rem 1rem;
  border: 1px solid var(--border-color);
  border-radius: 8px;
}

.agreement-show-hero {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  flex-wrap: wrap;
}

.agreement-kpi-card {
  padding: .9rem 1rem;
  border-radius: 10px;
}

.agreement-show-tabs .nav-link {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--rc-text-primary);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}

.agreement-show-tabs .nav-link.active {
  background: var(--rc-navy);
  border-color: var(--rc-navy);
  color: #fff;
}

.agreement-show-tabs + .tab-content .card-header {
  background: var(--bs-white);
}

.agreement-show-item {
  background: #f9fbff;
  border: 1px solid #e6edf8;
  border-radius: 8px;
  padding: .7rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .25rem;
}

.agreement-show-item span {
  font-size: .82rem;
  color: var(--rc-text-muted);
}

.agreement-show-item strong {
  color: var(--rc-text-primary);
  font-size: .95rem;
}

.agreement-list-row {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.agreement-list-row:last-child {
  border-bottom: 0;
}

.agreement-list-empty {
  padding: 1rem;
  color: var(--rc-text-muted);
  text-align: center;
}

.card {
 padding: 9px;
}

.workflows-tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.workflows-tab-header .btn {
  border-radius: 4px;
}

.agreement-table tbody tr:hover,
.table tbody tr:hover {
  background: var(--rc-bg-light-blue);
}

.agreement-dt-wrapper .dataTables_filter,
.agreement-dt-wrapper .dataTables_length {
  margin-bottom: .85rem;
}

.agreement-dt-wrapper .dataTables_filter {
  float: right !important;
  text-align: right !important;
}

.agreement-dt-wrapper .dataTables_length {
  float: left !important;
  text-align: left !important;
}

.agreement-dt-wrapper .dataTables_filter input {
  min-width: 250px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  background: #fff;
  color: var(--rc-text-primary);
  padding: .4rem .8rem;
  margin-inline-start: .5rem;
  box-shadow: none;
}

.agreement-dt-wrapper .dataTables_filter input:focus {
  border-color: var(--rc-navy);
  box-shadow: 0 0 0 .2rem rgba(16, 53, 118, .12);
}

.agreement-dt-wrapper .dataTables_length select {
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--rc-text-primary);
  height: 40px;
  padding: .3rem 2rem .3rem .5rem;
  background-color: #fff;
}

.agreement-dt-wrapper .dataTables_paginate .paginate_button {
  margin: 0 .125rem;
}

.agreement-dt-wrapper .dataTables_info {
  color: var(--rc-text-muted);
  font-weight: 600;
  background: #fff;
  border: 1px solid #e4ebf6;
  border-radius: 999px;
  padding: .4rem .85rem;
  display: inline-flex;
  align-items: center;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(16, 53, 118, .08);
}

div[id^="DataTables_Table_"] .dataTables_filter,
div[id^="DataTables_Table_"] .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_length {
  margin-bottom: .85rem;
}

div[id^="DataTables_Table_"] .dataTables_filter,
.dataTables_wrapper .dataTables_filter {
  float: right !important;
  text-align: right !important;
}

div[id^="DataTables_Table_"] .dataTables_length,
.dataTables_wrapper .dataTables_length {
  float: left !important;
  text-align: left !important;
}

div[id^="DataTables_Table_"] .dataTables_filter input,
.dataTables_wrapper .dataTables_filter input {
  min-width: 260px;
  height: 40px;
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--rc-text-primary) !important;
  padding: .4rem .8rem !important;
  margin-inline-start: .5rem !important;
}

div[id^="DataTables_Table_"] .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--rc-navy) !important;
  box-shadow: 0 0 0 .2rem rgba(16, 53, 118, .12) !important;
  outline: 0;
}

div[id^="DataTables_Table_"] .dataTables_length select,
.dataTables_wrapper .dataTables_length select {
  border: 1px solid var(--border-color) !important;
  border-radius: 8px !important;
  color: var(--rc-text-primary) !important;
  height: 40px;
  background-color: #fff !important;
}

.dataTables_wrapper .pagination .page-item .page-link {
  min-width: 36px;
  text-align: center;
  border-radius: 8px !important;
  border-color: #d7e3f3;
  color: var(--rc-navy);
  background-color: #fff;
  font-weight: 600;
}

.dataTables_wrapper .pagination .page-item .page-link:hover {
  color: var(--rc-navy-dark);
  background-color: var(--rc-bg-light-blue);
  border-color: var(--rc-navy);
  text-decoration: none;
}

.dataTables_wrapper .pagination .page-item.active .page-link {
  z-index: 3;
  color: #fff;
  background-color: var(--rc-navy);
  border-color: var(--rc-navy);
  box-shadow: 0 4px 10px rgba(16, 53, 118, .18);
}

.dataTables_wrapper .pagination .page-item.disabled .page-link {
  pointer-events: none;
  color: var(--rc-text-muted);
  background-color: #f8fafc;
  border-color: #e6edf8;
}

.dataTables_wrapper .pagination {
  --bs-pagination-color: var(--rc-navy);
  --bs-pagination-hover-color: var(--rc-navy-dark);
  --bs-pagination-focus-color: var(--rc-navy-dark);
  --bs-pagination-focus-bg: var(--rc-bg-light-blue);
  --bs-pagination-focus-box-shadow: 0 0 0 .2rem rgba(16, 53, 118, .12);
  --bs-pagination-active-bg: var(--rc-navy);
  --bs-pagination-active-border-color: var(--rc-navy);
}

.pagination .page-item .page-link {
  min-width: 40px;
  height: 40px;
  border-radius: 999px !important;
  border-color: #d7e3f3;
  color: var(--rc-navy);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 .95rem;
  box-shadow: 0 1px 2px rgba(16, 53, 118, .06);
  transition: all .18s ease;
}

.pagination .page-item .page-link:hover {
  color: var(--rc-navy-dark);
  background-color: var(--rc-bg-light-blue);
  border-color: var(--rc-navy);
  box-shadow: 0 3px 8px rgba(16, 53, 118, .12);
}

.pagination .page-item.active .page-link {
  color: #fff;
  background-color: var(--rc-navy);
  border-color: var(--rc-navy);
  box-shadow: 0 6px 14px rgba(16, 53, 118, .24);
}

.pagination .page-item.disabled .page-link {
  color: var(--rc-text-muted);
  background-color: #f8fafc;
  border-color: #e6edf8;
  box-shadow: none;
}

.pagination {
  justify-content: center;
  gap: .35rem;
  margin-top: 1rem;
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  padding: 0 1.05rem;
}

.dataTables_wrapper .row:last-child {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  margin-top: .5rem;
}

.dataTables_wrapper .row:last-child > [class*="col-"] {
  width: auto;
  flex: 0 0 auto;
}

.dataTables_wrapper .row:last-child .dataTables_info,
.dataTables_wrapper .row:last-child .dataTables_paginate,
.dataTables_wrapper .row:last-child .pagination {
  margin: 0;
}

.dataTables_wrapper .row:last-child .pagination {
  filter: drop-shadow(0 2px 6px rgba(16, 53, 118, .12));
}

.dataTables_wrapper .row:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  row-gap: .6rem;
  direction: ltr;
  padding-top: .65rem;
  padding-bottom: .65rem;
  padding-left: .9rem;
  padding-right: .9rem;
}

.dataTables_wrapper .row:first-child > [class*="col-"] {
  display: flex;
  align-items: center;
  margin-top: 0 !important;
}

.dataTables_wrapper .row:first-child > [class*="col-"]:first-child {
  justify-content: flex-start !important;
}

.dataTables_wrapper .row:first-child > [class*="col-"]:last-child {
  justify-content: flex-end !important;
}

.dataTables_wrapper .row:first-child .dataTables_length,
.dataTables_wrapper .row:first-child .dataTables_filter {
  float: none !important;
  margin: 0 !important;
  direction: rtl;
}

.dataTables_wrapper .row:first-child .dataTables_filter label,
.dataTables_wrapper .row:first-child .dataTables_length label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin: 0;
  font-weight: 600;
  color: var(--rc-text-primary);
}

.dataTables_wrapper .row:first-child .dataTables_length {
  text-align: left !important;
}

.dataTables_wrapper .row:first-child .dataTables_filter {
  text-align: right !important;
}

.dataTables_wrapper .row:first-child .dataTables_filter label {
  position: relative;
}

.dataTables_wrapper .row:first-child .dataTables_filter label::before {
  content: "\f52a";
  font-family: "bootstrap-icons";
  position: absolute;
  inset-inline-end: 2.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: #8ea0bb;
  font-size: .95rem;
  pointer-events: none;
  z-index: 2;
}

.dataTables_wrapper .row:first-child .dataTables_filter input {
  min-width: 300px;
  height: 42px;
  border: 1px solid #d7e3f3 !important;
  border-radius: 10px !important;
  background: linear-gradient(180deg, #fff 0%, #f9fcff 100%) !important;
  color: var(--rc-text-primary) !important;
  padding: .5rem 2.1rem .5rem .9rem !important;
  box-shadow: 0 2px 8px rgba(16, 53, 118, .06);
  transition: all .2s ease;
}

.dataTables_wrapper .row:first-child .dataTables_length select {
  min-width: 74px;
  padding-inline-start: .6rem !important;
  padding-inline-end: 2rem !important;
  background-position: left .55rem center !important;
  background-size: 12px 12px !important;
}

.dataTables_wrapper .row:first-child .dataTables_filter input::placeholder {
  color: #8ea0bb;
}

.dataTables_wrapper .row:first-child .dataTables_filter input:focus {
  border-color: var(--rc-navy) !important;
  box-shadow: 0 0 0 .2rem rgba(16, 53, 118, .12), 0 2px 10px rgba(16, 53, 118, .08) !important;
}

table.dataTable thead .sorting:before,
table.dataTable thead .sorting:after {
  right: auto;
  left: 0.5em;
}

.dt-buttons .btn {
  margin-left: 0.25rem;
  margin-right: 0;
}

.dataTables_filter input {
  margin-right: 0.5rem;
  margin-left: 0;
}

.column-search-row input {
  width: 100%;
  font-size: 0.85rem;
}

/*.login-pro {*/
/*  position: relative;*/
/*  height: 100vh;*/
/*  width: 100%;*/
/*  overflow: hidden;*/
/*  display: flex;*/
/*  direction: ltr;*/
/*}*/

/*.login-pro__cover {*/
/*  position: relative;*/
/*  flex: 0 0 55%;*/
/*  max-width: 55%;*/
/*  min-height: 100vh;*/
/*  width: 100%;*/
/*  height: 100vh;*/
/*  object-fit: fill;*/
/*  image-rendering: auto;*/
/*  -ms-interpolation-mode: bicubic;*/
/*  order: 2;*/
/*  align-self: stretch;*/
/*  border-radius: 0;*/
/*}*/

.login-pro__panel-wrap {
  position: relative;
  z-index: 1;
  flex: 0 0 45%;
  /*max-width: 45%;*/
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2.5rem;
  order: 1;
  background: #fdfdfd;
  direction: rtl;
}
.login-pro__panel {
  width: 100%;
  max-width: 500px;
  background: #02286f08;
  /* border: 1px solid #dbe6f4; */
  border-radius: 14px;
  /* box-shadow: 0 8px 24px rgba(15, 35, 80, 0.10); */
  padding: 2rem 1.75rem;
}

.login-pro__brand {
  /*display: flex;*/
  /*align-items: center;*/
  gap: .85rem;
  margin-bottom: 1.35rem;
  padding-bottom: .9rem;
  border-bottom: 1px solid #e9eff8;
}

.login-pro__logo {
  height: 158px;
  margin-bottom: 19px !important;
  object-fit: contain;
  flex: 0 0 auto;
  /* display: none; */
  text-align: center;
  display: flex;
  margin: auto;
}

.login-pro__brand h1 {
  margin: 0;
  font-size: 1.25rem;
  color: var(--rc-navy);
  line-height: 1.35;
}

.login-pro__brand p {
  margin: .15rem 0 0;
  color: var(--rc-text-muted);
  font-size: .88rem;
}

.login-pro__form {
  display: grid;
  gap: 1rem;
}

.login-pro__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
}

.login-pro .input-icon-group .form-control {
  height: 50px;
  border-color: #cfddf0;
  background: #fcfdff;
  border-radius: 10px;
}

.login-pro .input-icon-group .form-control:focus {
  border-color: var(--rc-navy);
  background: #fff;
  box-shadow: 0 0 0 .18rem rgba(16,53,118,.12);
}

.login-pro .form-label {
  margin-bottom: .45rem;
  font-weight: 600;
}

.login-pro .btn-submit {
  height: 50px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(16,53,118,.18);
}

.login-pro .btn-submit:hover {
  box-shadow: 0 6px 16px rgba(16,53,118,.22);
}

@media (max-width: 991.98px) {
  .login-pro {
    display: block;
    height: auto;
    min-height: 100vh;
  }

  .login-pro__cover {
    display: none;
  }

  .login-pro__panel-wrap {
    max-width: 100%;
    min-height: 100vh;
    height: auto;
    justify-content: center;
    padding: 1.25rem;
    margin-top: 0;
    background: #f8fbff;
  }

  .login-pro__panel {
    max-width: 520px;
    background: #f8fbff;
    border: 0;
    box-shadow: none;
  }

  .login-pro__brand {
    justify-content: center;
    text-align: center;
  }

  .login-pro__logo {
    display: block;
    margin: 0 auto;
  }
}

@media (max-width: 575.98px) {
  .login-pro__panel-wrap {
    align-items: center;
    padding: .75rem;
    margin-top: 0;
  }

  .login-pro__panel {
    border-radius: 0;
    padding: 1rem;
    box-shadow: none;
  }

  .login-pro__brand h1 {
    font-size: 1.05rem;
  }

  .login-pro__meta {
    flex-direction: column;
    align-items: flex-start;
  }
}

.phase14-sidebar .sidebar-nav { padding: 1rem 0; }
.phase14-sidebar .sidebar-group { margin-bottom: 0.5rem; }
.phase14-sidebar .sidebar-group + .sidebar-group { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 0.5rem; }
.phase14-sidebar .sidebar-group-header { width: 100%; border: 0; background: transparent; padding: 0.75rem 1.25rem; color: rgba(255,255,255,0.7); font-size: 0.85rem; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 0.5rem; user-select: none; transition: background 0.25s ease; }
.phase14-sidebar .sidebar-group-header:hover { background: rgba(255,255,255,0.05); color: #fff; }
.phase14-sidebar .sidebar-group-header .chevron { margin-right: auto; transition: transform 0.25s ease; font-size: 0.75rem; }
.phase14-sidebar .sidebar-group-header.collapsed .chevron { transform: rotate(-90deg); }
.phase14-sidebar .sidebar-link { border-radius: 0; padding: 0.72rem 1.25rem 0.72rem 2.5rem; color: rgba(255,255,255,0.85); transition: all 0.2s ease; }
.phase14-sidebar .sidebar-link:hover { background: rgba(255,255,255,0.08); color: #fff; }
.phase14-sidebar .sidebar-link.active { background: var(--rc-navy-dark); color: #fff; font-weight: 700; }
.phase14-sidebar .sidebar-link.active { background: var(--sidebar-active-bg, var(--rc-navy-dark)); }
.phase14-sidebar .sidebar-link.active { color: var(--sidebar-active-color, #fff); }
.phase14-sidebar .sidebar-link.active::before { inset-inline-end: 0; top: 0; transform: none; height: 100%; border-radius: 0; background: var(--rc-purple); }
.sidebar.collapsed.phase14-sidebar,
body.sidebar-collapsed .phase14-sidebar { width: var(--sidebar-w-collapsed); }
.sidebar.collapsed.phase14-sidebar .sidebar-group + .sidebar-group,
body.sidebar-collapsed .phase14-sidebar .sidebar-group + .sidebar-group { border-top: 0; padding-top: 0; }
.sidebar.collapsed.phase14-sidebar .sidebar-group-header,
body.sidebar-collapsed .phase14-sidebar .sidebar-group-header { justify-content: center; padding: 0.65rem 0.25rem; }
.sidebar.collapsed.phase14-sidebar .sidebar-group-header .group-label,
.sidebar.collapsed.phase14-sidebar .sidebar-group-header .chevron,
body.sidebar-collapsed .phase14-sidebar .sidebar-group-header .group-label,
body.sidebar-collapsed .phase14-sidebar .sidebar-group-header .chevron { display: none; }
.sidebar.collapsed.phase14-sidebar .sidebar-link,
body.sidebar-collapsed .phase14-sidebar .sidebar-link { justify-content: center; padding: 0.65rem 0.25rem; }
.sidebar.collapsed.phase14-sidebar .sidebar-link span,
body.sidebar-collapsed .phase14-sidebar .sidebar-link span { display: none; }
.sidebar.collapsed.phase14-sidebar .sidebar-link .badge,
body.sidebar-collapsed .phase14-sidebar .sidebar-link .badge { display: none !important; }
.sidebar.collapsed.phase14-sidebar .sidebar-link i,
body.sidebar-collapsed .phase14-sidebar .sidebar-link i { width: auto; margin: 0; }
.phase14-sidebar .sidebar-link i { font-size: var(--sidebar-icon-size, 1.1rem); }
.sidebar.collapsed.phase14-sidebar .sidebar-header-logo,
body.sidebar-collapsed .phase14-sidebar .sidebar-header-logo { height: 38px; }
.phase14-topbar { gap: 0.75rem; padding: 40px 1rem !important; }
.topbar-breadcrumb { font-weight: 700; color: var(--rc-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.quick-search-wrapper { position: relative; width: 360px; max-width: 34vw; }
.quick-search-icon { position: absolute; inset-inline-start: 0.8rem; top: 50%; transform: translateY(-50%); color: var(--rc-text-muted); }
.quick-search-input { height: 40px; border: 1px solid var(--border-color); border-radius: 10px; padding-inline-start: 2rem; padding-inline-end: 4.2rem; }
.quick-search-hint { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); font-size: 0.7rem; background: var(--bs-white); border: 1px solid var(--border-color); border-radius: 4px; padding: 1px 5px; color: var(--rc-text-muted); }
.quick-search-input:focus + .quick-search-hint { display: none; }
.quick-search-dropdown { position: absolute; top: calc(100% + 0.35rem); inset-inline-start: 0; width: 100%; background: var(--bs-white); border: 1px solid var(--border-color); border-radius: 10px; box-shadow: 0 8px 24px rgba(16,53,118,0.12); z-index: 1055; padding: 0.35rem 0; display: none; max-height: 320px; overflow-y: auto; }
.quick-search-dropdown.show { display: block; }
.quick-search-item { display: flex; align-items: center; gap: 0.55rem; padding: 0.65rem 0.85rem; color: var(--rc-text-primary); font-weight: 600; text-decoration: none; }
.quick-search-item:hover, .quick-search-item.active { background: var(--rc-bg-light-blue); color: var(--rc-navy); text-decoration: none; }
.user-trigger { display: flex; align-items: center; gap: 0.55rem; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--rc-navy); color: var(--bs-white); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; }
.user-info { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.user-info small { color: var(--rc-text-muted); font-size: 0.72rem; }
.notifications-menu { width: 320px; max-width: 90vw; }
.theme-customizer { width: 360px !important; }
.customizer-section { padding: 1rem 0; border-bottom: 1px solid var(--border-color); }
.customizer-section:last-child { border-bottom: 0; }
.customizer-section-title { color: var(--rc-navy); font-weight: 700; font-size: 0.95rem; margin-bottom: 0.75rem; }
.color-swatches { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.color-swatch { width: 38px; height: 38px; border-radius: 8px; border: 3px solid transparent; cursor: pointer; transition: transform 0.2s ease; position: relative; }
.color-swatch:hover { transform: scale(1.08); }
.color-swatch.active { border-color: var(--rc-navy); }
.color-swatch.active::after { content: "✓"; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); color: #fff; font-weight: 700; }
.font-preview { color: var(--rc-text-muted); margin: 0.5rem 0 0; font-size: 0.95rem; }
:root[data-theme="dark"] { --rc-navy-dark: #050a1a; --rc-bg-light-blue: #1a2540; --rc-bg-light-green: #1a2540; --rc-bg-cream: #1a2540; --rc-text-primary: #e8eef7; --rc-text-body: #c4cdd8; --rc-text-muted: #8a93a0; --body-bg: #0a1428; --border-color: #2a3656; color-scheme: dark; }
:root[data-theme="dark"] body { background: var(--body-bg); color: var(--rc-text-body); }
:root[data-theme="dark"] .topbar, :root[data-theme="dark"] .quick-search-dropdown, :root[data-theme="dark"] .dropdown-menu { background: #131e3a; border-color: #1a2540; }
:root[data-theme="dark"] .card, :root[data-theme="dark"] .modal-content, :root[data-theme="dark"] .form-control, :root[data-theme="dark"] .form-select, :root[data-theme="dark"] .table { background-color: #131e3a; color: var(--rc-text-body); border-color: #2a3656; }
:root[data-theme="dark"] .table thead th { background: #1a2540 !important; color: #fff; }
:root[data-theme="dark"] .quick-search-item { color: var(--rc-text-body); }
:root[data-theme="dark"] .quick-search-item:hover, :root[data-theme="dark"] .quick-search-item.active { background: #1a2540; color: #fff; }
:root[data-theme="dark"] .topbar .icon-btn, :root[data-theme="dark"] .topbar-breadcrumb { color: var(--rc-text-body); }
body { font-size: calc(15px * var(--font-size-scale, 1)); }
@media (max-width: 1199.98px) {
  .sidebar { transform: translateX(100%); width: var(--sidebar-w); }
  .sidebar.open { transform: translateX(0); }
  .main-area { margin-inline-start: 0 !important; }
  .sidebar-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 1039; display: none; }
  .sidebar-backdrop.show { display: block; }
  .quick-search-wrapper { width: 100%; max-width: none; }
  .user-info { display: none; }
}

@media (max-width: 991.98px) {
  .topbar.phase14-topbar {
    height: auto;
    min-height: var(--topbar-h);
    padding: 0.75rem 0.75rem !important;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
  }

  .topbar.phase14-topbar .topbar-breadcrumb {
    order: 2;
    width: 100%;
    font-size: 0.9rem;
  }

  .topbar.phase14-topbar .quick-search-wrapper {
    display: none;
  }

  #quickSearchWrapper {
    order: 3;
    display: none !important;
  }

  .topbar.phase14-topbar .topbar-actions {
    order: 1;
    margin-inline-start: auto;
    gap: 0.35rem;
  }
}

@media print {
  .sidebar, .topbar, .print-float-btn, .report-screen-filters, .btn, .nav-tabs, .no-print { display: none !important; }
  body { margin: 0; padding: 0; background: white !important; }
  .main-area { margin: 0 !important; padding: 0 !important; }
  .content { padding: 0 !important; }
  .d-print-block { display: block !important; }
  .d-none.d-print-block { display: block !important; }
  .d-print-flex { display: flex !important; }
  .d-none.d-print-flex { display: flex !important; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .page-break-before { page-break-before: always; }
  .no-page-break { page-break-inside: avoid; }
  table { border-collapse: collapse; width: 100%; }
  th { background: #103576 !important; color: white !important; }
  td, th { padding: 6px 10px; font-size: 10pt; }
  tr:nth-child(even) td { background: #f7f9fc !important; }
  .card { box-shadow: none !important; border: 1px solid #ddd !important; }
  .chart-canvas-wrapper { display: none !important; }
  .print-data-table { display: block !important; }
}

.print-float-btn {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 1050;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rc-navy);
  color: white;
  border: none;
  box-shadow: 0 4px 20px rgba(16,53,118,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.22s;
}

.print-float-btn:hover {
  background: var(--rc-purple);
  color: white;
  transform: scale(1.1);
  box-shadow: 0 6px 28px rgba(129,66,255,0.45);
}

.print-float-btn:hover .print-tooltip { opacity: 1; transform: translateX(-50%) translateY(0); }

.print-tooltip {
  position: absolute;
  bottom: 115%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: var(--rc-navy);
  color: white;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s;
}

.report-section {
  background: white;
  border: 1px solid var(--rc-bg-light-blue);
  border-radius: 12px;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.report-section-header {
  padding: .9rem 1.5rem;
  background: var(--rc-bg-light-blue);
  display: flex;
  align-items: center;
  gap: .75rem;
  border-bottom: 1px solid rgba(16,53,118,0.08);
}

.report-section-header h5 { margin: 0; color: var(--rc-navy); font-weight: 700; font-size: 1rem; }
.report-section-body { padding: 1.25rem 1.5rem; }

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-cell {
  background: white;
  border: 1px solid var(--rc-bg-light-blue);
  border-radius: 12px;
  padding: 1.1rem 1rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 30px;
}

.kpi-cell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.kpi-cell.kpi-primary::before { background: var(--rc-navy); }
.kpi-cell.kpi-success::before { background: var(--rc-green); }
.kpi-cell.kpi-danger::before { background: #dc3545; }
.kpi-cell.kpi-warning::before { background: #ffc107; }
.kpi-cell.kpi-purple::before { background: var(--rc-purple); }
.kpi-cell.kpi-info::before { background: var(--rc-sky); }
.kpi-value { font-size: 1.9rem; font-weight: 900; line-height: 1; margin-bottom: .2rem; }
.kpi-label { font-size: .78rem; color: var(--rc-text-muted); }
.row-severely { background: rgba(220,53,69,0.055) !important; }
.row-defaulting { background: rgba(253,126,20,0.055) !important; }
.print-data-table { display: none; }

.status-banner {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.status-banner.s-compliant { background: linear-gradient(135deg,#d4f7e3,#f0fdf7); border-color: #a0e8c0; }
.status-banner.s-late { background: linear-gradient(135deg,#fff3cd,#fffdf0); border-color: #ffe08a; }
.status-banner.s-defaulting { background: linear-gradient(135deg,#fee2c5,#fff8f0); border-color: #ffc68a; }
.status-banner.s-severely { background: linear-gradient(135deg,#f8d7da,#fff5f5); border-color: #f1aeb5; }
.status-icon { font-size: 2.2rem; }
.status-text h4 { margin: 0; font-weight: 800; }

.month-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  border: 2px solid transparent;
}
.month-dot-submitted { background: #d4f7e3; color: #0a6e3e; border-color: #a0e8c0; }
.month-dot-overdue { background: #f8d7da; color: #842029; border-color: #f1aeb5; }
.month-dot-pending { background: var(--rc-bg-light-blue); color: var(--rc-navy); border-color: #cce4ff; }

.signature-row { display: flex; gap: 1.5rem; margin-top: 1rem; }
.signature-box {
  flex: 1;
  border: 1px dashed #bbb;
  border-radius: 10px;
  padding: 1.25rem 1rem;
  text-align: center;
  min-height: 105px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.signature-label { font-size: .85rem; font-weight: 700; color: var(--rc-navy); }
.signature-name { font-size: .88rem; color: var(--rc-text-muted); }
.signature-line { border-top: 1px solid #ccc; margin-top: .75rem; padding-top: .4rem; font-size: .73rem; color: #bbb; }

.report-print-footer {
  border-top: 1px solid #ddd;
  padding: 6px 0;
  margin-top: 2rem;
  font-size: .78rem;
  color: #888;
  justify-content: space-between;
}
 .report-print-header {
  display: none;
}

@media print {
  .sidebar, .topbar, .breadcrumb-wrapper, nav[aria-label="مسار التنقل"], .print-float-btn, .report-screen-filters, .btn, .nav-tabs, .no-print { display: none !important; }
  .content > .d-flex.justify-content-between.align-items-center.flex-wrap.gap-2.mb-3 { display: none !important; }

  * {
    font-family: 'Tajawal', sans-serif !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  body {
    font-size: 10pt;
    color: #1a1a1a;
    background: white !important;
    margin: 0;
    padding: 0;
  }

  .main-area {
    margin: 0 !important;
    padding: 0 !important;
  }

  .content {
    padding: 0 !important;
  }

  .report-print-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    z-index: 9999;
    padding: 10px 20px 8px;
    border-bottom: 3px solid #103576;
    display: block !important;
  }

  body.has-report-header .page-content,
  body.has-report-header .main-area {
    margin-top: 130px !important;
  }

  .rph-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
  }

  .rph-logo {
    width: 70px;
    flex-shrink: 0;
    order: 3;
  }

  .rph-logo img {
    width: 65px;
    height: auto;
    object-fit: contain;
  }

  .rph-logo-fallback {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #103576;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18pt;
    font-weight: 900;
  }

  .rph-center {
    flex: 1;
    text-align: center;
    order: 2;
  }

  .rph-system-name {
    font-size: 8.5pt;
    color: #666;
    margin-bottom: 3px;
    letter-spacing: 0.3px;
  }

  .rph-title {
    font-size: 16pt;
    font-weight: 900;
    color: #103576;
    line-height: 1.2;
  }

  .rph-org {
    text-align: right;
    order: 1;
    flex-shrink: 0;
  }

  .rph-org-name {
    font-size: 13pt;
    font-weight: 900;
    color: #103576;
    line-height: 1.3;
  }

  .rph-org-sub {
    font-size: 10pt;
    font-weight: 700;
    color: #103576;
  }

  .rph-divider {
    border-top: 1px solid #8692a9;
    margin: 6px 0;
    opacity: 0.3;
  }

  .rph-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 8.5pt;
    color: #444;
  }

  .rph-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
  }

  .rph-meta-label {
    color: #888;
  }

  .rph-meta-value {
    font-weight: 700;
    color: #222;
  }

  .rph-confidential {
    background: #fff0f0;
    color: #c0392b;
    padding: 2px 10px;
    border-radius: 20px;
    border: 1px solid #f1aeb5;
    font-weight: 700;
    font-size: 8pt;
    gap: 5px;
  }

  .report-section-header {
    background: #103576 !important;
    color: white !important;
    padding: 7px 14px;
  }

  .report-section-header h5,
  .report-section-header i {
    color: white !important;
  }

  .report-section-header .badge {
    background: rgba(255,255,255,0.25) !important;
    color: white !important;
  }

  .kpi-strip {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  .kpi-cell {
    border: 1px solid #ddd !important;
    border-radius: 8px;
    padding: 10px 8px;
    text-align: center;
  }

  .kpi-value {
    font-size: 16pt !important;
    font-weight: 900 !important;
  }

  .kpi-label {
    font-size: 8pt !important;
  }

  table {
    width: 100%;
    border-collapse: collapse;
  }

  thead th {
    background: #103576 !important;
    color: white !important;
    padding: 7px 10px;
    font-size: 9.5pt;
    font-weight: 700;
    text-align: right;
  }

  tbody td {
    padding: 6px 10px;
    font-size: 9.5pt;
    border-bottom: 1px solid #e8e8e8;
    text-align: right;
  }

  tbody tr:nth-child(even) td {
    background: #f7f9fc !important;
  }

  .row-severely td { background: rgba(220,53,69,0.07) !important; }
  .row-defaulting td { background: rgba(253,126,20,0.07) !important; }

  .status-banner {
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 12px;
    border: 1px solid #ddd !important;
  }

  .status-banner h4 {
    font-size: 12pt !important;
  }

  .status-days-num {
    font-size: 18pt !important;
  }

  .report-section {
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 14px;
    page-break-inside: avoid;
  }

  .report-section-body {
    padding: 10px 14px;
  }

  .signature-row {
    display: flex !important;
    gap: 12px;
    margin-top: 12px;
  }

  .signature-box {
    flex: 1;
    border: 1px dashed #999 !important;
    border-radius: 8px;
    padding: 14px 10px;
    min-height: 90px;
    text-align: center;
  }

  .signature-label {
    font-size: 10pt;
    font-weight: 700;
    color: #103576;
  }

  .signature-line {
    border-top: 1px solid #ccc;
    margin-top: 30px;
    font-size: 8pt;
    color: #aaa;
    padding-top: 4px;
  }

  .month-dot {
    width: 28px !important;
    height: 28px !important;
    font-size: 7pt !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
  }

  .event-card {
    background: #f7f9fc !important;
    border: 1px solid #ddd;
  }

  .event-timeline::before {
    background: #103576 !important;
  }

  .event-dot {
    background: #8142FF !important;
  }

  .page-break-before { page-break-before: always; }
  .no-page-break { page-break-inside: avoid; }

  .dataTables_wrapper .dataTables_filter,
  .dataTables_wrapper .dataTables_info,
  .dataTables_wrapper .dataTables_paginate,
  .dataTables_wrapper .dataTables_length { display: none !important; }

  .badge.bg-danger { background: #dc3545 !important; color: white !important; }
  .badge.bg-warning { background: #ffc107 !important; color: #333 !important; }
  .badge.bg-success { background: #198754 !important; color: white !important; }
  .badge.bg-info { background: #0dcaf0 !important; color: white !important; }
  .badge.bg-secondary { background: #6c757d !important; color: white !important; }

  .doc-card .card-header {
    background: var(--rc-bg-light-blue);
    border-bottom: 1px solid rgba(16, 53, 118, 0.08);
  }

  .doc-card .card-header h6 {
    color: var(--rc-navy);
    font-weight: 700;
  }

  .req-card {
    border-radius: 12px;
    overflow: hidden;
  }

  .req-card .card-header {
    background: var(--rc-bg-light-blue);
    font-weight: 600;
    font-size: 0.95rem;
  }

  .requirement-locked {
    position: relative;
    opacity: 0.5;
  }

  .requirement-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    z-index: 10;
  }

  .requirement-overlay-text {
    background: var(--rc-bg-light-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    color: var(--rc-navy);
    font-weight: 700;
    font-size: 0.9rem;
  }

}

  .requirements-hero {
    background: linear-gradient(135deg, #49689f 0%, #103576 100%);
    border-radius: 18px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    color: white;
  }

  .req-hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
  }

  .req-hero-label {
    font-size: 0.85rem;
    opacity: 0.85;
    margin-bottom: 0.25rem;
  }

  .req-hero-title {
    font-size: 1.6rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    color: white !important;
  }

  .req-hero-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.9rem;
    opacity: 0.9;
    flex-wrap: wrap;
  }

  .req-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
  }

  .progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
  }

  .progress-ring svg {
    transform: rotate(-90deg);
    width: 100%;
    height: 100%;
  }

  .progress-ring .ring-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.2);
    stroke-width: 8;
  }

  .progress-ring .ring-fill {
    fill: none;
    stroke: white;
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 327;
    stroke-dashoffset: 327;
    transition: stroke-dashoffset 1s ease;
  }

  .progress-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .progress-ring-pct {
    font-size: 1.6rem;
    font-weight: 900;
  }

  .progress-ring-label {
    font-size: 0.8rem;
    opacity: 0.85;
  }

  .req-stats-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
  }

  .req-stat-chip {
      background: white;
      border: 1px solid rgba(16, 53, 118, 0.08);
      border-radius: 16px;
      padding: 0.9rem 1rem;
      display: flex;
      align-items: center;
      gap: 0.85rem;
      box-shadow: 0 8px 20px rgba(16, 53, 118, 0.04);
      min-width: 180px;
      flex: 1 1 180px;
  }

  .req-stat-icon {
      width: 40px;
      height: 40px;
      border-radius: 12px;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--rc-bg-light-blue);
      color: var(--rc-navy);
      font-size: 1.05rem;
      flex-shrink: 0;
  }

  .req-stat-success .req-stat-icon {
      background: rgba(32, 204, 123, 0.12);
      color: var(--rc-green);
  }

  .req-stat-warning .req-stat-icon {
      background: rgba(255, 193, 7, 0.14);
      color: #c58a00;
  }

  .req-stat-primary .req-stat-icon {
      background: rgba(16, 53, 118, 0.12);
      color: var(--rc-navy);
  }

  .req-stat-chip .stat-num {
      font-size: 1.3rem;
      font-weight: 900;
      color: var(--rc-navy);
      line-height: 1.1;
  }

  .req-stat-chip .stat-lbl {
      font-size: 0.82rem;
      color: #6c757d;
  }

  .monthly-report-manager .card {
      border-radius: 18px;
  }

  .monthly-report-summary-card {
      background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  }

  .monthly-mini-stat {
      display: flex;
      align-items: center;
      gap: 0.65rem;
      background: #f8fbff;
      border: 1px solid rgba(16, 53, 118, 0.08);
      border-radius: 14px;
      padding: 0.75rem 0.9rem;
      min-width: 140px;
  }

  .monthly-mini-stat i {
      font-size: 1.15rem;
  }

  .monthly-report-card {
      background: white;
      border: 1px solid rgba(16, 53, 118, 0.08);
      border-radius: 16px;
      padding: 1rem 1rem 1.1rem;
      box-shadow: 0 10px 24px rgba(16, 53, 118, 0.05);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .monthly-report-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 30px rgba(16, 53, 118, 0.08);
  }

  .monthly-report-submit-form {
      background: #f8fbff;
      border: 1px solid rgba(16, 53, 118, 0.08);
      border-radius: 14px;
      padding: 0.85rem;
  }

  .plan-submission-modal-dialog {
      max-height: calc(100vh - 1.5rem);
  }

  .plan-submission-modal-content {
      max-height: calc(100vh - 1.5rem);
      border-radius: 18px;
      overflow: hidden;
  }

  .plan-submission-modal-body {
      overflow-y: auto;
      max-height: calc(100vh - 8rem);
  }

  .req-dept-section {
    margin-bottom: 2rem;
  }

  .req-dept-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    background: var(--rc-bg-light-blue);
    border-radius: 10px;
    margin-bottom: 1rem;
  }

  .req-dept-header h5 {
    margin: 0;
    color: var(--rc-navy);
    font-weight: 700;
    font-size: 1rem;
  }

  .req-dept-count {
    font-size: 0.85rem;
    color: var(--rc-navy);
    font-weight: 600;
  }

  .requirement-row {
      display: flex;
      gap: 1rem;
      background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
      border: 1px solid rgba(16, 53, 118, 0.09);
      border-radius: 18px;
      padding: 1.15rem 1.2rem;
      margin-bottom: 0.85rem;
      position: relative;
      transition: all 0.2s;
      box-shadow: 0 10px 24px rgba(16, 53, 118, 0.04);
      overflow: hidden;
  }

  .requirement-row:hover {
      box-shadow: 0 14px 30px rgba(16, 53, 118, 0.08);
      transform: translateY(-1px);
  }

  .requirement-row.is-completed {
    border-left: 4px solid var(--rc-green);
    background: linear-gradient(to left, rgba(32, 204, 123, 0.04), white 30%);
  }

  .req-status-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
  }

  .req-number {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--rc-bg-light-blue);
    color: var(--rc-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
  }

  .requirement-row.is-completed .req-number {
    background: var(--rc-green);
    color: white;
  }

  .req-check {
    font-size: 1.4rem;
    color: #ccc;
  }

  .requirement-row.is-completed .req-check {
    color: var(--rc-green);
  }

  .req-body {
      flex: 1;
      min-width: 0;
  }

  .requirement-row-inner {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      width: 100%;
  }

  .req-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
  }

  .req-title {
    margin: 0;
    font-weight: 700;
    color: var(--rc-navy);
    font-size: 0.98rem;
  }

  .req-weight {
    font-size: 0.72rem;
    background: var(--rc-bg-light-blue);
    color: var(--rc-navy);
    padding: 2px 8px;
    border-radius: 12px;
  }

  .req-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
  }

  .req-action {
    flex-shrink: 0;
    display: flex;
    align-items: flex-start;
  }

  .req-cat-a {
    border-left: 3px dashed var(--rc-sky);
  }

  .req-linked-card {
      border-radius: 16px;
      border: 1px solid rgba(16, 53, 118, 0.08);
      background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
      box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
  }

  .req-summary-text {
    color: var(--rc-navy);
    font-weight: 600;
  }

  .req-manage-btn {
      white-space: nowrap;
      border-radius: 999px;
      padding-inline: 0.95rem;
  }

  .requirement-row.requirement-locked {
    opacity: 0.55;
  }

  .requirement-row .requirement-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.88);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
  }

  .req-save-float {
    position: fixed;
    bottom: 2rem;
    left: 2rem;
    z-index: 1050;
    background: var(--rc-navy);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 0.85rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(16, 53, 118, 0.35);
    transition: all 0.2s;
  }

  .req-save-float:hover {
    background: var(--rc-purple);
    transform: translateY(-2px);
    box-shadow: 0 6px 26px rgba(129, 66, 255, 0.45);
    color: white;
  }

  .report-print-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 2px solid #103576;
    padding: 5px 20px;
    font-size: 8pt;
    color: #666;
    display: flex !important;
    justify-content: space-between;
    align-items: center;
  }

  body.has-report-header .page-content {
    margin-bottom: 45px !important;
  }

  @media (max-width: 575px) {
    .requirements-hero {
      padding: 1.5rem;
    }

    .req-hero-content {
      flex-direction: column;
      text-align: center;
    }

    .requirement-row {
      flex-direction: column;
    }

    .req-action {
      width: 100%;
      justify-content: flex-start;
    }

    .req-save-float {
      left: 1rem;
      right: 1rem;
      bottom: 1rem;
      justify-content: center;
    }
  }

  .agreement-show-page {
    position: relative;
  }

  .print-formal-summary {
    display: none;
  }

  .agreement-print-page {
    display: none;
  }

  .agreement-show-hero {
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 18px;
    padding: 1.5rem 1.6rem;
    background: #fff;
    color: var(--rc-text-body);
    box-shadow: 0 10px 24px rgba(16, 53, 118, 0.04);
  }

  .agreement-show-hero__content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
  }

  .agreement-show-hero__main {
    min-width: 0;
  }

  .agreement-show-eyebrow {
    font-size: 0.85rem;
    color: var(--rc-text-muted);
    margin-bottom: 0.35rem;
  }

  .agreement-show-title {
    color: var(--rc-navy);
    font-size: 1.65rem;
    font-weight: 900;
    margin: 0 0 0.4rem;
    line-height: 1.2;
  }

  .agreement-show-subtitle {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    color: var(--rc-text-muted);
    font-size: 0.92rem;
  }

  .agreement-show-subtitle span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
  }

  .agreement-show-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    justify-content: flex-end;
  }

  .agreement-status-inline .status-badge {
    background: var(--rc-bg-light-blue);
    color: var(--rc-navy);
    border: 1px solid rgba(16, 53, 118, 0.12);
  }

  .agreement-hero-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.4rem;
  }

  .agreement-hero-progress {
    min-width: 260px;
    flex: 1 1 260px;
    background: var(--rc-bg-light-blue);
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 14px;
    padding: 0.75rem 0.9rem;
  }

  .agreement-hero-progress-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: var(--rc-navy);
    font-weight: 800;
    font-size: 0.9rem;
  }

  .agreement-hero-progress-bar {
    height: 10px;
    margin-top: 0.6rem;
    border-radius: 999px;
    background: rgba(16, 53, 118, 0.08);
  }

  .agreement-hero-progress-bar .progress-bar {
    border-radius: 999px;
  }

  .agreement-hero-links .btn {
    border-radius: 999px;
  }

  .agreement-hero-links .btn-light {
    background: var(--rc-bg-light-blue);
    border-color: rgba(16, 53, 118, 0.12);
    color: var(--rc-navy);
  }

  .agreement-status-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 0;
    color: #fff;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 14px 28px rgba(16, 53, 118, 0.12);
  }

  .agreement-status-banner .status-text h4,
  .agreement-status-banner .status-text p,
  .agreement-status-banner .status-days,
  .agreement-status-banner .status-days-label {
    color: white;
  }

  .agreement-status-banner .status-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    flex-shrink: 0;
  }

  .agreement-status-banner .status-days {
    text-align: center;
    min-width: 110px;
  }

  .agreement-status-banner .status-days-num {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
  }

  .agreement-status-banner--compliant {
    background: linear-gradient(135deg, rgba(32, 204, 123, 0.98) 0%, rgba(16, 53, 118, 0.92) 100%);
  }

  .agreement-status-banner--late {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.98) 0%, rgba(129, 66, 255, 0.92) 100%);
  }

  .agreement-status-banner--defaulting {
    background: linear-gradient(135deg, rgba(253, 126, 20, 0.98) 0%, rgba(16, 53, 118, 0.92) 100%);
  }

  .agreement-status-banner--severely {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.98) 0%, rgba(16, 53, 118, 0.92) 100%);
  }

  .agreement-detail-item {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 16px;
    padding: 1rem 1.05rem;
    height: 100%;
    box-shadow: 0 8px 20px rgba(16, 53, 118, 0.04);
  }

  .agreement-detail-label {
    display: block;
    color: var(--rc-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
  }

  .agreement-detail-value {
    display: block;
    color: var(--rc-navy);
    font-size: 0.96rem;
    font-weight: 700;
    line-height: 1.5;
    word-break: break-word;
  }

  .agreement-detail-subtext {
    margin-top: 0.35rem;
    color: var(--rc-text-muted);
    font-size: 0.78rem;
    line-height: 1.6;
  }

  .doc-card {
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid rgba(16, 53, 118, 0.08);
    box-shadow: 0 10px 24px rgba(16, 53, 118, 0.05);
  }

  .doc-card .card-header {
    background: var(--rc-bg-light-blue);
    border-bottom: 1px solid rgba(16, 53, 118, 0.08);
    padding: 0.95rem 1rem;
  }

  .doc-card .card-header h6 {
    color: var(--rc-navy);
    font-weight: 700;
  }

  .monthly-report-summary-card {
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 18px;
    box-shadow: 0 10px 24px rgba(16, 53, 118, 0.05);
  }

  .monthly-report-dots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(135px, 1fr));
    gap: 0.85rem;
  }

  .monthly-report-dot-card {
    background: white;
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 16px;
    padding: 0.95rem 0.85rem;
    text-align: center;
    box-shadow: 0 8px 18px rgba(16, 53, 118, 0.04);
  }

  .monthly-report-dot-title {
    margin-top: 0.55rem;
    font-weight: 800;
    color: var(--rc-navy);
    font-size: 0.9rem;
  }

  .monthly-report-dot-status {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rc-text-primary);
  }

  .monthly-report-dot-subtitle {
    margin-top: 0.15rem;
    font-size: 0.76rem;
    color: var(--rc-text-muted);
  }

  .notice-card,
  .meeting-card,
  .attachment-group-card,
  .comment-card {
    background: white;
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 18px;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(16, 53, 118, 0.04);
  }

  .meeting-text,
  .timeline-text,
  .comment-body {
    color: var(--rc-text-body);
    line-height: 1.8;
    font-size: 0.92rem;
    white-space: pre-wrap;
  }

  .timeline-list {
    position: relative;
    display: grid;
    gap: 1rem;
    padding-right: 1rem;
  }

  .timeline-item {
    position: relative;
    background: white;
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 18px;
    padding: 1rem 1rem 1rem 1.1rem;
    box-shadow: 0 10px 24px rgba(16, 53, 118, 0.04);
  }

  .timeline-item::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 1.1rem;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--rc-navy);
    border: 4px solid #fff;
    box-shadow: 0 0 0 2px var(--rc-bg-light-blue);
  }

  .attachment-list {
    display: grid;
    gap: 0.65rem;
  }

  .attachment-list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0.9rem;
    background: var(--rc-bg-light-blue);
    border-radius: 12px;
    color: var(--rc-navy);
    text-decoration: none;
    font-weight: 600;
  }

  .attachment-list-item:hover {
    background: #dceefb;
    color: var(--rc-navy-dark);
    text-decoration: none;
  }

  .attachment-list-title {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .attachment-list-meta {
    font-size: 0.76rem;
    color: var(--rc-text-muted);
    flex-shrink: 0;
  }

  .requirements-summary-card {
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 18px;
    padding: 1.15rem;
    box-shadow: 0 10px 24px rgba(16, 53, 118, 0.04);
  }

  @media (max-width: 575px) {
    .agreement-show-hero {
      padding: 1.35rem;
    }

    .agreement-show-title {
      font-size: 1.4rem;
    }

    .agreement-show-actions {
      width: 100%;
      justify-content: flex-start;
    }

    .agreement-status-banner {
      align-items: flex-start;
      flex-direction: column;
    }

    .agreement-status-banner .status-days {
      min-width: 0;
      text-align: right;
    }

    .attachment-list-item {
      flex-direction: column;
      align-items: flex-start;
    }
  }

  .agreement-show-hero {
    background: #fff;
    border: 1px solid rgba(16, 53, 118, 0.08);
    box-shadow: 0 10px 24px rgba(16, 53, 118, 0.04);
    color: var(--rc-text-body);
  }

  .agreement-show-eyebrow {
    color: var(--rc-text-muted);
  }

  .agreement-show-title,
  .agreement-show-subtitle {
    color: var(--rc-navy);
  }

  .agreement-show-actions .btn {
    border-radius: 999px;
  }

  .agreement-show-actions .btn-light {
    background: var(--rc-bg-light-blue);
    border-color: rgba(16, 53, 118, 0.12);
    color: var(--rc-navy);
  }

  .agreement-show-actions .btn-outline-light {
    border-color: rgba(16, 53, 118, 0.16);
    color: var(--rc-navy);
    background: #fff;
  }

  .agreement-status-banner {
    padding: 1rem 1.25rem;
    color: var(--rc-navy);
    background: #fff;
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-right-width: 4px;
    box-shadow: 0 8px 18px rgba(16, 53, 118, 0.04);
  }

  .agreement-status-banner .status-text h4,
  .agreement-status-banner .status-text p,
  .agreement-status-banner .status-days,
  .agreement-status-banner .status-days-label {
    color: var(--rc-navy);
  }

  .agreement-status-banner .status-icon {
    background: var(--rc-bg-light-blue);
    color: var(--rc-navy);
  }

  .agreement-status-banner--compliant {
    border-right-color: var(--rc-green);
    background: linear-gradient(90deg, rgba(32, 204, 123, 0.06), #fff 60%);
  }

  .agreement-status-banner--late {
    border-right-color: var(--rc-status-late);
    background: linear-gradient(90deg, rgba(255, 193, 7, 0.08), #fff 60%);
  }

  .agreement-status-banner--defaulting {
    border-right-color: var(--rc-status-defaulting);
    background: linear-gradient(90deg, rgba(253, 126, 20, 0.08), #fff 60%);
  }

  .agreement-status-banner--severely {
    border-right-color: var(--rc-status-severely-defaulting);
    background: linear-gradient(90deg, rgba(220, 53, 69, 0.08), #fff 60%);
  }

  .report-section {
    border-radius: 16px;
    box-shadow: 0 8px 22px rgba(16, 53, 118, 0.04);
  }

  .report-section-header {
    background: #fff;
    border-bottom: 1px solid rgba(16, 53, 118, 0.08);
  }

  .report-section-header h5 {
    font-size: 1rem;
  }

  .kpi-cell {
    border-radius: 16px;
    box-shadow: 0 10px 24px rgba(16, 53, 118, 0.04);
  }

  .kpi-value {
    font-size: 1.55rem;
  }

  .events-summary-strip {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.85rem;
  }

  .events-summary-chip {
    background: var(--rc-bg-light-blue);
    border: 1px solid rgba(16, 53, 118, 0.08);
    border-radius: 16px;
    padding: 0.9rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
  }

  .events-summary-num {
    font-size: 1rem;
    font-weight: 900;
    color: var(--rc-navy);
    white-space: nowrap;
  }

  .events-summary-label {
    color: var(--rc-text-muted);
    font-size: 0.82rem;
  }

  @media print {
    @page {
      margin: 118px 10px 48px;
    }

    * {
      background: transparent !important;
      color: #000 !important;
      box-shadow: none !important;
      text-shadow: none !important;
    }

    .report-print-header,
    .report-print-footer {
      background: #fff !important;
      color: #000 !important;
      border-color: #000 !important;
    }

    .report-print-header img,
    .rph-logo-fallback {
      filter: grayscale(1) contrast(1.2);
    }

    .agreement-show-hero,
    .agreement-status-banner,
    .report-section,
    .doc-card,
    .monthly-report-summary-card,
    .monthly-report-dot-card,
    .notice-card,
    .meeting-card,
    .attachment-group-card,
    .comment-card,
    .timeline-item,
    .requirements-summary-card,
    .agreement-detail-item,
    .kpi-cell,
    .events-summary-chip,
    .agreement-show-actions,
    .print-float-btn,
    .modal {
      background: #fff !important;
      border-color: #ccc !important;
      box-shadow: none !important;
    }

    .agreement-show-hero,
    .agreement-status-banner,
    .report-section-header,
    .doc-card .card-header,
    .card-header {
      background: #fff !important;
      color: #000 !important;
    }

    .print-formal-summary {
      display: block !important;
      margin-bottom: 12px;
    }

    .print-formal-summary-title {
      font-size: 12pt;
      font-weight: 900;
      color: #000;
      margin-bottom: 6px;
    }

    .print-formal-table {
      font-size: 8.5pt;
      margin-bottom: 8px !important;
    }

    .print-formal-table th {
      width: 18%;
      background: #f5f5f5 !important;
      color: #000 !important;
      font-weight: 700;
      padding: 4px 6px;
      border: 1px solid #bbb !important;
    }

    .print-formal-table td {
      padding: 4px 6px;
      border: 1px solid #bbb !important;
    }

    .agreement-show-title,
    .agreement-show-subtitle,
    .agreement-detail-value,
    .agreement-detail-label,
    .kpi-value,
    .kpi-label,
    .status-text h4,
    .status-text p,
    .status-days,
    .status-days-label,
    .report-section-header h5,
    .doc-card .card-header h6,
    .monthly-report-dot-title,
    .monthly-report-dot-status,
    .agreement-detail-subtext,
    .timeline-text,
    .meeting-text,
    .comment-body {
      color: #000 !important;
    }

    .progress-bar {
      background: #000 !important;
    }

    .badge,
    .status-badge,
    .month-dot,
    .btn,
    .no-print {
      border: 1px solid #000 !important;
      background: #fff !important;
      color: #000 !important;
    }

    .agreement-show-page > :not(.print-formal-summary),
    .agreement-show-actions,
    .print-float-btn,
    .modal,
    .events-summary-chip .badge,
    .report-section .btn,
    .btn {
      display: none !important;
    }

    .agreement-show-page {
      display: none !important;
    }

    .agreement-print-page {
      display: block !important;
    }

    .timeline-item::before {
      background: #000 !important;
      box-shadow: none !important;
    }

    .month-dot {
      border-color: #000 !important;
    }

    .agreement-status-banner--compliant,
    .agreement-status-banner--late,
    .agreement-status-banner--defaulting,
    .agreement-status-banner--severely {
      background: #fff !important;
      border-right-color: #000 !important;
    }

    body.has-report-header .page-content,
    body.has-report-header .main-area {
      margin-top: 0 !important;
    }

    .agreement-show-page .report-section,
    .agreement-show-page .status-banner,
    .agreement-show-page .agreement-show-hero {
      display: none !important;
    }

    .report-print-header {
      display: block !important;
    }

    .agreement-print-page,
    .agreement-print-page * {
      color: #000 !important;
      background: #fff !important;
      box-shadow: none !important;
    }

    .print-mini-card {
      border: 1px solid #bbb !important;
      border-radius: 8px;
      padding: 6px 8px;
      min-height: 52px;
      margin-bottom: 0;
    }

    .print-mini-label {
      font-size: 8pt;
      color: #555 !important;
      font-weight: 700;
      margin-bottom: 2px;
    }

    .print-mini-value {
      font-size: 10pt;
      font-weight: 900;
      line-height: 1.25;
    }

    .print-formal-table {
      font-size: 8.25pt;
    }

    .print-formal-table th,
    .print-formal-table td {
      border: 1px solid #bbb !important;
      padding: 3px 5px;
    }
  }
