:root {
  --brand-blue: #155eef;
  --brand-blue-dark: #123b8f;
  --brand-blue-soft: #eef4ff;
  --brand-orange: #f97316;
  --brand-orange-soft: #fff4ec;
  --text-main: #172b4d;
  --text-muted: #667085;
  --border: #e4eaf3;
  --page: #f5f8fc;
  --surface: #ffffff;
  --surface-soft: #fafcff;
  --shadow: 0 10px 26px rgba(16, 24, 40, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  background: var(--page);
}

a {
  text-decoration: none;
}

.app-layout {
  display: flex;
  min-height: 100vh;
}

.app-sidebar {
  width: 272px;
  height: 100vh;
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 22px 18px;
  background: var(--surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
}

.sidebar-brand {
  display: block;
  align-items: center;
  padding: 6px 4px 16px;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
}

.sidebar-brand:hover {
  color: var(--text-main);
}

.sidebar-brand small {
  display: block;
  color: var(--brand-orange);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sidebar-brand strong {
  display: block;
  color: var(--brand-blue-dark);
  font-size: 1.08rem;
  font-weight: 800;
}

.sidebar-brand-logo {
  width: auto;
  max-width: 220px;
  max-height: 72px;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0;
}

.sidebar-nav {
  display: grid;
  gap: 4px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 8px;
  color: var(--text-muted);
  font-weight: 650;
  transition: background 0.16s ease, color 0.16s ease;
}

.sidebar-link i {
  width: 20px;
  color: #8a98ad;
}

.sidebar-link:hover,
.sidebar-link.active {
  color: var(--brand-blue-dark);
  background: var(--brand-blue-soft);
}

.sidebar-link.active {
  box-shadow: inset 3px 0 0 var(--brand-orange);
}

.sidebar-link:hover i,
.sidebar-link.active i {
  color: var(--brand-blue);
}

.sidebar-footer {
  margin-top: auto;
  display: grid;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
}

.sidebar-user strong,
.sidebar-user span {
  display: block;
}

.sidebar-user strong {
  font-size: 0.9rem;
  color: var(--text-main);
}

.sidebar-user span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.app-main {
  flex: 1;
  min-width: 0;
}

.top-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 30px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.top-header-copy {
  display: grid;
  gap: 2px;
}

.top-header-kicker {
  color: var(--brand-orange);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.top-header-copy strong {
  color: var(--brand-blue-dark);
  font-size: 0.95rem;
}

.top-header-logo {
  height: 44px;
  width: auto;
  max-width: 42vw;
  object-fit: contain;
}

.top-header-toggle {
  border: 1px solid var(--border);
  color: var(--brand-blue-dark);
}

.content-shell {
  padding: 28px 30px 44px;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.page-kicker,
.panel-kicker,
.hero-band-kicker {
  display: inline-block;
  color: var(--brand-orange);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.page-title {
  margin: 6px 0 0;
  color: var(--brand-blue-dark);
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.18;
}

.page-subtitle {
  margin: 8px 0 0;
  max-width: 780px;
  color: var(--text-muted);
  line-height: 1.55;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--brand-blue-dark);
  font-weight: 750;
  white-space: nowrap;
}

.report-brand-chip {
  gap: 12px;
  align-items: center;
}

.report-brand-chip img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}

.report-brand-chip strong,
.report-brand-chip span {
  display: block;
}

.report-brand-chip strong {
  font-size: 0.88rem;
}

.report-brand-chip span {
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.hero-band {
  margin-bottom: 20px;
  padding: 22px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--brand-orange);
  box-shadow: var(--shadow);
}

.hero-band-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.hero-band h2 {
  margin: 6px 0;
  color: var(--brand-blue-dark);
  font-size: 1.45rem;
  font-weight: 800;
}

.hero-band p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-band-stats {
  display: flex;
  gap: 10px;
}

.hero-band-stat-link {
  min-width: 116px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--brand-blue-soft);
  border: 1px solid transparent;
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.hero-band-stat-link:hover {
  transform: translateY(-2px);
  border-color: #cbd9f4;
  box-shadow: 0 12px 22px rgba(16, 24, 40, 0.08);
}

.hero-band-stat-link strong,
.hero-band-stat-link span {
  display: block;
}

.hero-band-stat-link strong {
  color: var(--brand-blue-dark);
  font-size: 1.45rem;
}

.hero-band-stat-link span {
  color: var(--text-muted);
  font-size: 0.82rem;
}

.stats-grid,
.module-grid {
  display: grid;
  gap: 14px;
}

.stats-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 20px;
}

.stat-panel,
.module-card,
.panel-card,
.preview-card,
.login-form-card,
.login-hint-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.stat-panel {
  padding: 18px;
}

.stat-panel-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.stat-panel-link:hover {
  transform: translateY(-2px);
  border-color: #b8c8e4;
  box-shadow: 0 14px 30px rgba(16, 24, 40, 0.08);
}

.stat-label {
  display: block;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.stat-panel strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-blue-dark);
  font-size: 1.75rem;
}

.stat-panel p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.module-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.module-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  color: inherit;
}

.module-card:hover {
  border-color: #b8c8e4;
}

.module-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.module-card strong {
  display: block;
  color: var(--brand-blue-dark);
}

.module-card p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notification-feed {
  display: grid;
  gap: 12px;
}

.notification-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.notification-item-badge {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-orange-soft);
  color: var(--brand-orange);
  font-weight: 800;
}

.notification-item-copy strong,
.notification-item-copy span {
  display: block;
}

.notification-item-copy strong {
  color: var(--brand-blue-dark);
}

.notification-item-copy span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.notification-item small {
  color: var(--text-muted);
  white-space: nowrap;
}

.mini-kpi-list {
  display: grid;
  gap: 10px;
}

.mini-kpi {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.mini-kpi-link {
  color: inherit;
  text-decoration: none;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.mini-kpi-link:hover {
  transform: translateY(-2px);
  border-color: #cbd9f4;
  box-shadow: 0 10px 20px rgba(16, 24, 40, 0.06);
}

.mini-kpi span {
  color: var(--text-muted);
  font-weight: 650;
}

.mini-kpi strong {
  color: var(--brand-blue-dark);
  font-size: 1.2rem;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(360px, 440px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.panel-card {
  padding: 20px;
}

.panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.panel-head h2 {
  margin: 4px 0 0;
  color: var(--brand-blue-dark);
  font-size: 1.18rem;
  font-weight: 800;
}

.field-group {
  display: grid;
  gap: 7px;
}

.form-label {
  margin: 0;
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
}

.clean-control {
  min-height: 44px;
  border: 1px solid #ccd7e8;
  border-radius: 8px;
  background: #fff;
  color: var(--text-main);
  box-shadow: none;
}

.clean-control:focus {
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 0.2rem rgba(21, 94, 239, 0.12);
}

.textarea-clean {
  min-height: 112px;
}

.field-help {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.day-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid #d6e0ef;
  border-radius: 999px;
  background: #fff;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, color 0.16s ease, background 0.16s ease;
}

.day-chip input {
  margin: 0;
  accent-color: var(--brand-blue);
}

.day-chip input:checked + span {
  color: var(--brand-blue-dark);
}

.day-chip:hover {
  border-color: var(--brand-blue);
  box-shadow: 0 8px 18px rgba(21, 94, 239, 0.08);
  color: var(--brand-blue-dark);
}

.day-chip.active {
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
  color: var(--brand-blue-dark);
}

.form-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--brand-blue-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-divider::before,
.form-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.professional-table {
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
}

.professional-table .table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text-main);
}

.professional-table thead th {
  padding: 12px 14px;
  color: var(--brand-blue-dark);
  background: var(--brand-blue-soft);
  border-bottom: 1px solid var(--border);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.professional-table tbody td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-main);
  font-size: 0.92rem;
  vertical-align: top;
}

.professional-table tbody tr:last-child td {
  border-bottom: 0;
}

.professional-table tbody tr:hover {
  background: var(--surface-soft);
}

.professional-table td strong,
.professional-table td span {
  display: block;
}

.professional-table td strong {
  color: var(--text-main);
  font-weight: 750;
}

.professional-table td span {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.candidate-schedule-cell {
  min-width: 170px;
}

.candidate-schedule-cell .schedule-line {
  display: grid;
  gap: 2px;
}

.candidate-schedule-cell .schedule-line + .schedule-line {
  margin-top: 10px;
}

.candidate-schedule-cell .schedule-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.candidate-schedule-cell strong {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.status-dot {
  display: inline-flex !important;
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--brand-orange-soft);
  color: #b45309 !important;
  font-size: 0.76rem !important;
  font-weight: 800;
}

.status-dot.is-approved {
  background: rgba(36, 99, 235, 0.12);
  color: var(--brand-blue) !important;
}

.status-dot.is-warning {
  background: rgba(249, 115, 22, 0.16);
  color: #c2410c !important;
}

.status-dot.is-danger {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c !important;
}

.status-dot.is-neutral {
  background: rgba(100, 116, 139, 0.14);
  color: #475569 !important;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.worker-review-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 14px 0 16px;
}

.worker-thumb-link {
  width: 150px;
  text-decoration: none;
  color: inherit;
}

.worker-thumb {
  width: 150px;
  height: 110px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  display: block;
}

.worker-thumb-link span {
  display: block;
  margin-top: 8px;
  color: var(--brand-blue-dark);
  font-size: 0.84rem;
  font-weight: 650;
}

.worker-doc-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
  text-decoration: none;
  color: inherit;
}

.worker-doc-thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-soft);
  flex-shrink: 0;
}

.worker-doc-inline span {
  display: block;
  margin-top: 0;
  color: var(--brand-blue-dark);
  font-size: 0.84rem;
  font-weight: 600;
}

.empty-block {
  min-height: 220px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  border-radius: 8px;
  border: 1px dashed #c9d6e9;
  background: var(--surface-soft);
  text-align: center;
}

.empty-block i {
  color: var(--brand-blue);
  font-size: 1.6rem;
}

.empty-block strong {
  color: var(--brand-blue-dark);
}

.empty-block p {
  margin: 0;
  max-width: 460px;
  color: var(--text-muted);
}

.landing-hero {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: center;
}

.landing-title {
  max-width: 780px;
}

.landing-subtitle {
  max-width: 680px;
}

.landing-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.landing-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.preview-card {
  padding: 18px;
}

.preview-card-primary {
  border-top: 3px solid var(--brand-blue);
}

.preview-card-accent {
  border-top: 3px solid var(--brand-orange);
}

.preview-card span {
  display: block;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-card strong {
  display: block;
  margin-top: 8px;
  color: var(--brand-blue-dark);
  line-height: 1.4;
}

.login-shell {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
}

.login-panel {
  width: min(940px, 100%);
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.login-branding {
  padding: 10px 4px;
}

.login-hint-card {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  padding: 18px;
}

.login-hint-card strong {
  color: var(--brand-blue-dark);
}

.login-hint-card span {
  color: var(--text-muted);
}

.login-form-card {
  padding: 24px;
}

.btn-brand {
  color: #fff;
  border: 0;
  border-radius: 8px;
  background: var(--brand-blue);
  box-shadow: 0 8px 16px rgba(21, 94, 239, 0.18);
}

.btn-brand:hover,
.btn-brand:focus {
  color: #fff;
  background: var(--brand-blue-dark);
}

.btn-outline-brand {
  color: var(--brand-blue);
  border-color: #b8c8e4;
  border-radius: 8px;
  background: #fff;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
  color: var(--brand-blue-dark);
  border-color: var(--brand-blue);
  background: var(--brand-blue-soft);
}

.subtle-alert {
  background: #fff1f0;
  color: #ba1b1b;
}

.app-toast-container {
  z-index: 1085;
}

.app-toast {
  min-width: 320px;
  max-width: 380px;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.app-toast-header {
  border-bottom: 1px solid #eef2f7;
  background: linear-gradient(90deg, #fff9f2, #ffffff);
  color: var(--brand-blue-dark);
}

.app-toast-badge {
  width: 10px;
  height: 10px;
  margin-right: 10px;
  border-radius: 999px;
  background: var(--brand-orange);
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.14);
}

.app-toast .toast-body {
  padding: 14px 16px 16px;
  color: var(--text-main);
  font-weight: 600;
}

.mobile-sidebar {
  background: var(--surface);
  color: var(--text-main);
}

.mobile-sidebar .offcanvas-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mobile-sidebar .offcanvas-title {
  font-weight: 800;
  color: var(--brand-blue-dark);
}

.mobile-sidebar .sidebar-nav {
  flex: none;
  overflow: visible;
  padding-right: 0;
}

.mobile-sidebar .offcanvas-header {
  border-bottom: 1px solid var(--border);
}

.mobile-nav .sidebar-link {
  color: var(--text-muted);
}

.mobile-nav .sidebar-link:hover,
.mobile-nav .sidebar-link.active {
  color: var(--brand-blue-dark);
}

@media (max-width: 1199.98px) {
  .workspace-grid,
  .login-panel,
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .stats-grid,
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .app-layout {
    display: block;
  }

  .app-sidebar {
    display: none;
  }

  .top-header {
    padding: 0 18px;
  }

  .content-shell {
    padding: 22px 18px 34px;
  }

  .page-header,
  .hero-band-content {
    flex-direction: column;
  }

  .hero-band-stats {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .stats-grid,
  .module-grid,
  .landing-preview {
    grid-template-columns: 1fr;
  }

  .page-title {
    font-size: 1.65rem;
  }

  .panel-card,
  .hero-band {
    padding: 16px;
  }

  .table-actions {
    justify-content: flex-start;
  }
}
