/* Employer portal theme: deliberately different from the admin system (teal instead of blue, dark sidebar,
   "ระบบนายจ้าง" ribbon) so nobody mistakes one for the other. Loaded after labour.css. */
:root {
  --brand-50: #e6f7f5;
  --brand-100: #c3ece6;
  --brand-500: #14b8a6;
  --brand-600: #0f8f81;
  --brand-700: #0b6f65;
  --bs-primary: var(--brand-600);
  --bs-primary-rgb: 15, 143, 129;
  --bs-link-color: var(--brand-600);
  --bs-link-hover-color: var(--brand-700);
  --emp-sidebar: #0f3d3a;
  --emp-sidebar-2: #124a46;
  --emp-sidebar-text: #d7efec;
  --emp-sidebar-muted: #8fc5bf;
}
[data-bs-theme="dark"] {
  --brand-50: #0f3d3a;
  --brand-100: #124a46;
  --emp-sidebar: #0a2927;
  --emp-sidebar-2: #0f3d3a;
}

/* dark teal sidebar */
.app-sidebar { background: linear-gradient(180deg, var(--emp-sidebar) 0%, var(--emp-sidebar-2) 100%); border-right: 0; }
.app-sidebar .sb-brand .name, .app-sidebar .sb-user .meta .n { color: #fff; }
.app-sidebar .sb-brand .sub, .app-sidebar .sb-user .meta .r, .app-sidebar .sb-section { color: var(--emp-sidebar-muted); }
.app-sidebar .sb-brand { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.app-sidebar .sb-link { color: var(--emp-sidebar-text); }
.app-sidebar .sb-link i { color: var(--emp-sidebar-muted); }
.app-sidebar .sb-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.app-sidebar .sb-link.active { background: rgba(255, 255, 255, .14); color: #fff; }
.app-sidebar .sb-link.active i { color: #5eead4; }
.app-sidebar .sb-user { border-top: 1px solid rgba(255, 255, 255, .08); }
.app-sidebar .avatar { background: #5eead4; color: #0f3d3a; }

/* ribbon under the top bar: always says which system this is */
.emp-ribbon {
  display: flex; align-items: center; gap: 8px; padding: 6px 28px; font-size: .8rem;
  background: var(--brand-50); color: var(--brand-700); border-bottom: 1px solid var(--brand-100);
}
.emp-ribbon b { font-weight: 700; }
.emp-ribbon .mdi { font-size: 1rem; }
@media (max-width: 767.98px) { .emp-ribbon { padding: 6px 16px; } }

/* login side panel in the same teal */
.auth-side { background: radial-gradient(1200px 600px at -10% -10%, rgba(255, 255, 255, .22), transparent 60%), linear-gradient(135deg, #0b6f65 0%, #0f8f81 55%, #2dd4bf 100%); }
.emp-ribbon-staff { background: #fff7ed; color: #9a3412; border-bottom-color: #fed7aa; }
.emp-ribbon-staff a { color: #9a3412; font-weight: 600; }
[data-bs-theme="dark"] .emp-ribbon-staff { background: #3b1f0b; color: #fdba74; border-bottom-color: #7c2d12; }
.app-sidebar .sb-link-staff { background: rgba(251, 146, 60, .18); color: #fed7aa; }
.app-sidebar .sb-link-staff i { color: #fdba74; }
.auth-badge-staff { background: #fff7ed; color: #9a3412; }
.auth-badge { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-weight: 600; font-size: .8rem; margin-bottom: 12px; }

/* worker detail cards */
.doc-card { border-left: 4px solid var(--border); }
.doc-card.doc-ok { border-left-color: var(--success); }
.doc-card.doc-warning { border-left-color: var(--warning); }
.doc-card.doc-critical, .doc-card.doc-expired { border-left-color: var(--danger); }
.nav-tabs .nav-link { color: var(--text-2); }
.nav-tabs .nav-link.active { font-weight: 600; color: var(--brand-700); }
.sb-section.text-truncate { max-width: 100%; }
