/* Company Secretarial Management System - macOS Sequoia Glassmorphic Theme */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
  /* macOS Color Tokens */
  --font-mac: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", sans-serif;
  
  --bg-main: #f5f5f7;
  --bg-surface: rgba(255, 255, 255, 0.88);
  --bg-subtle: #eeeeef;
  --bg-dark: #1e2029;
  --bg-sidebar: rgba(24, 28, 38, 0.88);

  --text-main: #1d1d1f;
  --text-muted: #86868b;
  --text-light: #f5f5f7;

  --primary: #007aff;
  --primary-hover: #0062cc;
  --primary-light: rgba(0, 122, 255, 0.12);

  --accent-active-bg: rgba(52, 199, 89, 0.15);
  --accent-active-text: #1a7f37;

  --accent-pending-bg: rgba(255, 149, 0, 0.15);
  --accent-pending-text: #b25900;

  --accent-inactive-bg: rgba(142, 142, 147, 0.15);
  --accent-inactive-text: #636366;

  --border-color: rgba(0, 0, 0, 0.08);
  --border-focus: #007aff;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.02);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.04);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Global Settings */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-mac);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout Container */
.app-layout {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* macOS Sidebar Navigation */
.app-sidebar {
  width: 260px;
  background: var(--bg-sidebar);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  color: var(--text-light);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 50;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.15);
}

.macos-traffic-lights {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0.25rem 0.5rem 1.25rem 0.5rem;
}

.mac-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: transform 0.15s ease;
}

.mac-dot:hover {
  transform: scale(1.15);
}

.mac-dot.red { background: #FF5F56; border: 0.5px solid #E0443E; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }
.mac-dot.yellow { background: #FFBD2E; border: 0.5px solid #DEA123; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }
.mac-dot.green { background: #27C93F; border: 0.5px solid #1AAB29; box-shadow: inset 0 1px 0 rgba(255,255,255,0.2); }

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.5rem 1.25rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1.25rem;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #007aff, #5856d6);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
}

.brand-text h2 {
  font-family: var(--font-mac);
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
}

.brand-text p {
  font-size: 0.725rem;
  color: rgba(255, 255, 255, 0.55);
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  overflow-y: auto;
}

.menu-label {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.45);
  padding: 0.75rem 0.65rem 0.35rem 0.65rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: 10px;
  transition: all var(--transition-fast);
}

.nav-item svg {
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.nav-item:hover {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-item:hover svg {
  color: #ffffff;
}

.nav-item.active {
  background: linear-gradient(135deg, #007aff, #0056b3);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.35);
}

.nav-item.active svg {
  color: #ffffff;
}

/* -------------------------------------------------------------
   Collapsible Accordion Dropdown Sub-Menu Styling
   ------------------------------------------------------------- */
.nav-group {
  margin-top: 0.35rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.nav-group-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.85);
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.25s ease;
  text-align: left;
}

.nav-group-header:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.nav-group-header .group-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-align: left;
  flex: 1;
}

.nav-group-header svg {
  flex-shrink: 0;
}

.nav-group-header .chevron-icon {
  color: rgba(255, 255, 255, 0.45);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), color 0.25s ease;
  flex-shrink: 0;
  margin-left: 0.5rem;
}

.nav-group.open .nav-group-header .chevron-icon {
  transform: rotate(180deg);
  color: #007aff;
}

.nav-submenu {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 0.4rem;
  margin-left: 0.75rem;
  border-left: 2px solid rgba(255, 255, 255, 0.12);
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, margin 0.3s ease;
}

.nav-group.open .nav-submenu {
  max-height: 800px;
  opacity: 1;
  margin-top: 0.35rem;
  margin-bottom: 0.5rem;
}

.nav-submenu .nav-item {
  font-size: 0.825rem;
  padding: 0.55rem 0.75rem;
  border-radius: 8px;
}

.nav-submenu .nav-item.active {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.95), rgba(0, 86, 179, 0.95));
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

.sidebar-footer {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.system-status-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #34c759;
  padding: 0.25rem 0.5rem;
}

.system-status-indicator .dot {
  width: 8px;
  height: 8px;
  background-color: #34c759;
  border-radius: 50%;
  box-shadow: 0 0 8px #34c759;
}

/* Main Content Workspace */
.app-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-main);
}

/* macOS Frosted Glass Topbar */
.main-topbar {
  height: 64px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-title {
  font-family: var(--font-mac);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.system-badge {
  font-size: 0.75rem;
  font-weight: 600;
  background-color: rgba(0, 122, 255, 0.1);
  color: #007aff;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(0, 122, 255, 0.15);
}

/* Page Views */
.view-page {
  display: none;
  padding: 2rem;
}

.view-page.active {
  display: block;
  animation: macFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes macFadeIn {
  from { opacity: 0; transform: scale(0.99) translateY(4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Company Profile Navigation Bar */
.profile-top-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}

/* macOS Cards & Elevators */
.card, .profile-card, .stat-card, .table-container {
  background: var(--bg-surface);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-label .required {
  color: #ff3b30;
}

.form-section-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #007aff;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  grid-column: span 2;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.4rem;
}

/* Dynamic Rows */
.dynamic-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn-remove-row {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 59, 48, 0.12);
  color: #ff3b30;
  font-size: 1.1rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.btn-remove-row:hover {
  background: #ff3b30;
  color: #ffffff;
}

/* Stats Overview Bar */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stat-card {
  padding: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.stat-info .stat-label {
  font-size: 0.775rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}

.stat-info .stat-value {
  font-family: var(--font-mac);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}

.stat-icon-wrapper {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
}

.stat-card.total .stat-icon-wrapper {
  background-color: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

.stat-card.active .stat-icon-wrapper {
  background-color: rgba(52, 199, 89, 0.12);
  color: #34c759;
}

.stat-card.pending .stat-icon-wrapper {
  background-color: rgba(255, 149, 0, 0.12);
  color: #ff9500;
}

.stat-card.inactive .stat-icon-wrapper {
  background-color: rgba(142, 142, 147, 0.12);
  color: #8e8e93;
}

/* Action Toolbar */
.toolbar {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.search-filter-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex: 1;
  flex-wrap: wrap;
}

.search-box {
  position: relative;
  min-width: 240px;
  flex: 1;
  max-width: 360px;
}

.search-box svg {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.search-input, .form-control {
  width: 100%;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-family: var(--font-mac);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.filter-select {
  width: auto;
  min-width: 170px;
  padding: 0.6rem 0.85rem;
  font-size: 0.9rem;
  font-family: var(--font-mac);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  background-color: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: pointer;
}

.search-input {
  padding-left: 2.5rem;
}

.search-input:focus, .form-control:focus, .filter-select:focus {
  outline: none;
  border-color: #007aff;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.25);
  background-color: #ffffff;
}

/* macOS Pill Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-mac);
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary {
  background: linear-gradient(180deg, #007aff 0%, #0062cc 100%);
  color: #ffffff;
  border: 1px solid #0056b3;
  box-shadow: 0 2px 6px rgba(0, 122, 255, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #1a87ff 0%, #007aff 100%);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: rgba(255, 255, 255, 0.85);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.btn-secondary:hover {
  background-color: #ffffff;
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-1px);
}

.btn-danger {
  background-color: rgba(255, 59, 48, 0.12);
  color: #ff3b30;
  border: 1px solid rgba(255, 59, 48, 0.2);
}

.btn-danger:hover {
  background-color: #ff3b30;
  color: #ffffff;
}

.btn-sm {
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
}

/* Action Icons */
.btn-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background-color: rgba(255, 255, 255, 0.8);
  color: var(--text-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-icon:hover {
  color: #007aff;
  border-color: #007aff;
  background-color: rgba(0, 122, 255, 0.08);
}

.btn-icon.delete:hover {
  color: #ff3b30;
  border-color: #ff3b30;
  background-color: rgba(255, 59, 48, 0.08);
}

/* macOS Tables */
.table-container {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background-color: rgba(245, 245, 247, 0.8);
  color: #86868b;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.85rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
  color: var(--text-main);
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background-color var(--transition-fast);
}

.data-table tbody tr:hover {
  background-color: rgba(0, 122, 255, 0.04);
}

.company-cell {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.company-avatar {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.15), rgba(88, 86, 214, 0.15));
  color: #007aff;
  font-weight: 700;
  font-size: 0.95rem;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.company-info .company-name {
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
  cursor: pointer;
}

.company-info .company-name:hover {
  color: #007aff;
}

.pv-badge {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: monospace;
}

/* Status Pills */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.status-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.status-pill.active {
  background-color: var(--accent-active-bg);
  color: var(--accent-active-text);
}
.status-pill.active::before { background-color: var(--accent-active-text); }

.status-pill.pending {
  background-color: var(--accent-pending-bg);
  color: var(--accent-pending-text);
}
.status-pill.pending::before { background-color: var(--accent-pending-text); }

.status-pill.inactive {
  background-color: var(--accent-inactive-bg);
  color: var(--accent-inactive-text);
}
.status-pill.inactive::before { background-color: var(--accent-inactive-text); }

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.toast {
  background: rgba(30, 34, 45, 0.9);
  backdrop-filter: blur(20px);
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.error {
  border-left: 4px solid #ff3b30;
}

.toast.success {
  border-left: 4px solid #34c759;
}

@keyframes toastSlideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Annual Return Schedule Timeline */
.ar-timeline {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ar-node {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.ar-node:hover {
  border-color: rgba(0, 122, 255, 0.3);
  box-shadow: var(--shadow-md);
}

.ar-node.highlight-1st {
  border-left: 4px solid var(--primary);
  background: linear-gradient(90deg, rgba(0, 122, 255, 0.03) 0%, #ffffff 100%);
}

.ar-node.overdue {
  border-left: 4px solid #ff3b30;
}

.ar-node.due-soon {
  border-left: 4px solid #ff9500;
}

.ar-node.filed {
  border-left: 4px solid #34c759;
}

/* =========================================================================
   Executive Compliance Health Score Dashboard Styles
   ========================================================================= */
.compliance-hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

@media (max-width: 1024px) {
  .compliance-hero-grid {
    grid-template-columns: 1fr;
  }
}

.compliance-hero-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: var(--radius-lg);
  padding: 2rem;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  position: relative;
  overflow: hidden;
}

.compliance-hero-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.compliance-score-display {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.score-gauge-ring {
  position: relative;
  width: 135px;
  height: 135px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.score-gauge-ring svg {
  transform: rotate(-90deg);
  width: 135px;
  height: 135px;
}

.score-gauge-circle-bg {
  fill: none;
  stroke: rgba(0, 0, 0, 0.06);
  stroke-width: 9;
}

.score-gauge-circle-val {
  fill: none;
  stroke: #10b981;
  stroke-width: 9;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s ease-in-out, stroke 0.5s ease;
}

.score-gauge-number {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.score-gauge-number h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  line-height: 1;
  color: var(--text-main);
  letter-spacing: -0.5px;
  margin-bottom: 4px;
}

.score-gauge-number span {
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 1.8px;
}

.compliance-hero-info h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.compliance-hero-info p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 1.25rem;
}

.compliance-metrics-pills {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.metric-pill-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-md);
  font-size: 0.8rem;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.metric-pill-badge.healthy { color: #059669; }
.metric-pill-badge.attention { color: #d97706; }
.metric-pill-badge.critical { color: #dc2626; }

.compliance-tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.compliance-filter-tabs {
  display: flex;
  background: rgba(0, 0, 0, 0.05);
  padding: 4px;
  border-radius: var(--radius-md);
  gap: 4px;
}

.compliance-tab-btn {
  border: none;
  background: transparent;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.compliance-tab-btn.active {
  background: #ffffff;
  color: var(--text-main);
  box-shadow: var(--shadow-sm);
}

.compliance-tab-btn:hover:not(.active) {
  color: var(--text-main);
}

.compliance-company-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.compliance-company-card:hover {
  border-color: rgba(0, 122, 255, 0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.compliance-company-card.critical {
  border-left: 4px solid #ef4444;
}

.compliance-company-card.attention {
  border-left: 4px solid #f59e0b;
}

.compliance-company-card.healthy {
  border-left: 4px solid #10b981;
}

.comp-company-info h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.comp-company-info .comp-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-progress-bar-container {
  width: 160px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-bar-track {
  height: 8px;
  width: 100%;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 99px;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.8s ease-in-out;
}

.score-bar-fill.healthy { background: linear-gradient(90deg, #10b981, #34d399); }
.score-bar-fill.attention { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.score-bar-fill.critical { background: linear-gradient(90deg, #ef4444, #f87171); }

.gap-tags-list {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: 320px;
}

.gap-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.gap-tag.warning {
  background: #fffbe6;
  color: #b45309;
  border-color: #fef08a;
}

