:root {
  --blue: #0072bc;
  --blue-dark: #064a84;
  --sidebar: #074680;
  --sidebar-active: #3e6fa3;
  --bg: #f5f6f8;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --border: #e2e6ec;
  --line: #eef1f5;
  --success: #137a3a;
  --danger: #9f1d1d;
  --warn: #a05a00;
  --ring: rgba(0, 114, 188, 0.4);

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06),
    0 1px 3px rgba(16, 24, 40, 0.04);
  --shadow-md: 0 2px 4px rgba(16, 24, 40, 0.06),
    0 8px 20px rgba(16, 24, 40, 0.06);
  --shadow-lg: 0 4px 8px rgba(16, 24, 40, 0.06),
    0 16px 40px rgba(16, 24, 40, 0.08);

  --sidebar-w: 256px;
  --topbar-h: 72px;
  --footer-h: 38px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI Variable", "Segoe UI", Roboto,
    "Helvetica Neue", Arial, system-ui, -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  background: var(--bg);
  color: var(--text);
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.02em;
}

.tnum,
.stat-card .value,
.interpreter-summary-value,
.data-table td,
.employee-requests {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

::selection {
  background: rgba(0, 114, 188, 0.18);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #cbd3de transparent;
}

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

::-webkit-scrollbar-thumb {
  background: #cbd3de;
  border: 2px solid transparent;
  border-radius: 999px;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: #aab6c6;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.hidden {
  display: none !important;
}

.lua-mark {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #ffffff url("assets/lua-icon.png") center / 78% no-repeat;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4),
    0 4px 12px rgba(3, 31, 58, 0.18);
  flex: 0 0 auto;
}

.lua-mark-lg {
  width: 72px;
  height: 72px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 10px 26px rgba(3, 31, 58, 0.28);
}

button {
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease,
    box-shadow 0.16s ease, transform 0.08s ease;
}

button:active:not(:disabled) {
  transform: translateY(1px);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #3f4959;
  font-size: 0.86rem;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 42px;
  margin-bottom: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

input:not(:disabled):hover,
select:not(:disabled):hover,
textarea:not(:disabled):hover {
  border-color: #b7c4d5;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.12);
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.password-field {
  position: relative;
  display: block;
  margin-bottom: 14px;
}

.password-field input {
  padding-right: 44px;
  margin-bottom: 0;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  margin: 0;
  width: 32px;
  min-height: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted, #64748b);
  cursor: pointer;
  transition: color 0.16s ease, background 0.16s ease;
}

.password-toggle:hover {
  color: var(--text, #1f2937);
  background: rgba(0, 114, 188, 0.08);
}

.password-toggle:focus-visible {
  outline: 2px solid rgba(0, 114, 188, 0.5);
  outline-offset: 2px;
}

.btn-primary {
  width: 100%;
  background: var(--blue);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 114, 188, 0.28);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 12px rgba(0, 114, 188, 0.28);
}

.btn-ghost {
  background: #ffffff;
  color: #5d6878;
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: #f6f8fb;
  border-color: #cfd8e5;
  color: var(--text);
}

.btn-success {
  background: #d8f8e3;
  color: var(--success);
  border: 1px solid #9eeabb;
}

.btn-success:hover {
  background: #c4f2d4;
  border-color: #88e3a7;
}

.btn-danger {
  background: #ffe4e4;
  color: var(--danger);
  border: 1px solid #ffbaba;
}

.btn-danger:hover {
  background: #ffd2d2;
  border-color: #ff9d9d;
}

.btn-link {
  padding: 0;
  background: transparent;
  color: var(--blue);
  font-size: 0.86rem;
  font-weight: 600;
}

.alert {
  border-radius: 8px;
  padding: 11px 13px;
  margin-bottom: 14px;
  font-size: 0.9rem;
}

.alert-error {
  background: #fff0f0;
  color: var(--danger);
  border: 1px solid #ffc7c7;
}

.alert-info {
  background: #eaf6ff;
  color: var(--blue-dark);
  border: 1px solid #b8ddf8;
}

.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 56px 16px;
  background: linear-gradient(135deg, #06457d 0%, #0877b8 100%);
  color: #ffffff;
}

.login-hero {
  text-align: center;
}

.login-hero h1 {
  margin: 18px 0 4px;
  font-size: 1.55rem;
  line-height: 1.15;
}

.login-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

.login-card {
  position: relative;
  width: min(448px, 100%);
  padding: 64px 32px 32px;
  background: #ffffff;
  color: var(--text);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 24px 60px rgba(3, 31, 58, 0.22), 0 2px 6px rgba(3, 31, 58, 0.08);
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), #2aa3e6);
}

.login-card .login-logo,
.login-card > h1,
.login-card > .subtitle {
  display: none;
}

.login-card h2 {
  margin: 0 0 28px;
  font-size: 1.32rem;
  line-height: 1.2;
}

.login-lang-switch {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  gap: 4px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 4px 6px;
  background: #ffffff;
}

.login-links {
  margin: -4px 0 22px;
  text-align: right;
}

.login-footer {
  color: rgba(255, 255, 255, 0.32);
  font-size: 0.83rem;
}

.app-shell {
  display: flex;
  min-height: 100vh;
  padding-bottom: var(--footer-h);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 10;
  width: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  background: linear-gradient(
    180deg,
    #0a528f 0%,
    var(--sidebar) 48%,
    #063c6e 100%
  );
  color: #ffffff;
  box-shadow: 1px 0 0 rgba(0, 0, 0, 0.06);
  transition: left 0.22s ease;
}

.main-content,
.topbar,
.app-footer {
  transition: margin-left 0.22s ease, left 0.22s ease, width 0.22s ease;
}

.app-shell.sidebar-collapsed .sidebar {
  left: calc(-1 * var(--sidebar-w));
}

.app-shell.sidebar-collapsed .main-content {
  margin-left: 0;
  width: 100%;
}

.app-shell.sidebar-collapsed .topbar,
.app-shell.sidebar-collapsed .app-footer {
  left: 0;
}

.app-shell.sidebar-collapsed .topbar {
  padding-left: 64px;
}

.app-shell.sidebar-collapsed #sidebar-toggle-btn {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 120;
  background: #0f172a;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.28);
}

.sidebar-brand {
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.13);
}

.sidebar-brand > img,
.sidebar-brand > p,
.sidebar-lang-switch,
.sidebar-footer {
  display: none;
}

.sidebar-brand-title {
  white-space: nowrap;
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.sidebar-menu-btn {
  width: 36px;
  height: 36px;
  margin-left: auto;
  padding: 0;
  display: grid;
  place-content: center;
  gap: 4px;
  background: transparent;
}

.sidebar-menu-btn span {
  width: 15px;
  height: 2px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.7);
}

.sidebar-nav {
  padding: 24px 8px;
  display: grid;
  gap: 4px;
}

.nav-link {
  height: 40px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 12px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.64);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease;
}

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

.nav-link.active {
  background: var(--sidebar-active);
  color: #ffffff;
  box-shadow: inset 3px 0 0 #aee0ff;
}

.nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  opacity: 0.92;
}

.nav-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.nav-badge {
  min-width: 20px;
  height: 20px;
  margin-left: auto;
  padding: 0 6px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: #f8a51d;
  color: #ffffff;
  font-size: 0.72rem;
  line-height: 1;
}

.main-content {
  width: calc(100% - var(--sidebar-w));
  min-height: calc(100vh - var(--footer-h));
  margin-left: var(--sidebar-w);
  padding: calc(var(--topbar-h) + 16px) 24px 64px;
}

.topbar {
  position: fixed;
  top: 0;
  left: var(--sidebar-w);
  right: 0;
  z-index: 9;
  height: var(--topbar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.topbar-left,
.topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

#topbar-title {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.topbar-lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border-radius: 999px;
}

.lang-btn {
  min-width: 0;
  height: 26px;
  padding: 0 4px;
  border-radius: 6px;
  background: transparent;
  color: #394354;
  border: 0;
  font-size: 0.86rem;
  font-weight: 600;
}

.lang-btn.active {
  background: #eef6fc;
  color: var(--blue);
}

.globe-icon,
.bell-icon,
.chevron-down,
.filter-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.globe-icon {
  width: 16px;
  height: 16px;
  color: #687284;
}

.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 8px;
  background: transparent;
  color: #5f6878;
}

.icon-btn:hover {
  background: #f3f6fb;
  color: var(--text);
}

.notification-badge {
  position: absolute;
  right: 2px;
  top: 0;
  min-width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #d3373d;
  color: #ffffff;
  font-size: 0.66rem;
  line-height: 1;
  border: 2px solid #ffffff;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 3px 8px 3px 3px;
  background: transparent;
  color: var(--text);
  border: 1px solid transparent;
  font-weight: 650;
}

.profile-chip:hover,
.logout-topbar-btn:hover {
  background: #f6f8fb;
  border-color: var(--border);
}

#profile-initials {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
}

.chevron-down {
  width: 16px;
  height: 16px;
  color: #6b7280;
}

.logout-topbar-btn {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid transparent;
  background: transparent;
  color: #4b5565;
  font-size: 0.88rem;
  font-weight: 750;
}

.logout-icon {
  position: relative;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.logout-icon::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 3px;
  width: 8px;
  height: 11px;
  border: 1.8px solid currentColor;
  border-right: 0;
  border-radius: 3px 0 0 3px;
}

.logout-icon::after {
  content: "";
  position: absolute;
  right: 0;
  top: 7px;
  width: 10px;
  height: 2px;
  background: currentColor;
  box-shadow: 4px -4px 0 -2px currentColor, 4px 4px 0 -2px currentColor;
}

.popover {
  position: absolute;
  right: 0;
  top: 44px;
  width: 320px;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 30;
}

.topbar-notifications {
  position: relative;
}

.popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.popover-list {
  max-height: 260px;
  overflow: auto;
  display: grid;
  gap: 6px;
}

.popover-item {
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.84rem;
}

.page-header {
  margin: 0 0 18px;
}

#page-pending > .page-header,
#page-interpreters > .page-header,
#page-employees > .page-header {
  display: none;
}

.page-header h2 {
  margin: 0 0 4px;
  font-size: 1.35rem;
}

.page-header p {
  margin: 0;
  color: var(--muted);
}

.card,
.stat-card,
.pending-application-card,
.interpreter-card,
.employees-card .table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.card {
  border-radius: var(--radius-lg);
  padding: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.stat-card {
  border-radius: 10px;
  padding: 18px;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.stat-card-clickable {
  cursor: pointer;
}

.stat-card-clickable:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.stat-card .label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.stat-card .value {
  color: var(--blue);
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.pending-card,
.interpreters-card,
.employees-card {
  padding: 0;
}

.interpreters-card .interpreters-toolbar,
.interpreters-card .interpreter-status-filters,
.interpreters-card .interpreters-list-header,
.pending-card .pending-toolbar,
.employees-card .employees-toolbar,
.employees-card .employees-count,
.employees-card .table-wrap {
  padding-inline: 24px;
}

.interpreters-card .interpreters-toolbar,
.pending-card .pending-toolbar,
.employees-card .employees-toolbar {
  padding-top: 24px;
}

.employees-card .employees-count {
  margin-top: 16px;
}

.pending-toolbar,
.interpreters-toolbar,
.employees-toolbar,
.languages-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
}

.languages-toolbar {
  flex-wrap: wrap;
}

.languages-search-wrap {
  position: relative;
  flex: 2 1 260px;
  min-width: 260px;
}

.languages-search-wrap .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4b3;
  pointer-events: none;
}

.languages-search {
  width: 100%;
  height: 42px;
  margin: 0;
  padding: 10px 14px 10px 36px;
  border-radius: 8px;
  background: #ffffff;
}

.languages-filter {
  min-width: 140px;
  height: 42px;
}

.languages-card .table-wrap.hidden {
  display: none;
}

.languages-add-panel {
  margin: 0 0 20px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fafbfc;
}

.languages-add-panel h3 {
  margin: 0 0 8px;
}

.languages-add-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.languages-add-grid label {
  display: block;
  margin: 12px 0 6px;
  font-size: 0.875rem;
  color: var(--muted);
}

.languages-add-grid input,
.languages-add-grid select {
  width: 100%;
}

.languages-catalog-results {
  margin-top: 8px;
  max-height: 220px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.languages-catalog-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.languages-catalog-item:hover {
  border-color: var(--primary);
  background: #f8fbff;
}

.languages-catalog-empty {
  margin: 8px 0 0;
}

.languages-add-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.languages-count {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.dashboard-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.dashboard-panel-head .dashboard-panel-title {
  margin: 0;
}

.languages-table code {
  font-size: 0.85rem;
  color: #475467;
}

.languages-table thead th {
  padding: 0;
  vertical-align: middle;
}

.languages-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 12px 14px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.languages-sort-btn:hover {
  color: var(--primary);
}

.languages-sort-btn.is-active {
  color: var(--primary);
}

.languages-sort-btn[aria-sort="ascending"]::after,
.languages-sort-btn[aria-sort="descending"]::after {
  font-size: 0.75rem;
  line-height: 1;
}

.languages-sort-btn[aria-sort="ascending"]::after {
  content: "▲";
}

.languages-sort-btn[aria-sort="descending"]::after {
  content: "▼";
}

@media (max-width: 900px) {
  .languages-add-grid {
    grid-template-columns: 1fr;
  }

  .languages-toolbar {
    flex-wrap: wrap;
  }

  .languages-search-wrap {
    flex: 1 1 100%;
  }
}

.employees-search-wrap {
  position: relative;
  flex: 0 1 384px;
}

.pending-search-wrap {
  flex-basis: 384px;
}

.employees-search-wrap .search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa4b3;
  pointer-events: none;
}

.employees-search {
  height: 42px;
  margin: 0;
  padding: 10px 14px 10px 36px;
  border-radius: 8px;
  background: #ffffff;
}

.employees-search::placeholder {
  color: #8c96a6;
}

.pending-count,
.employees-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.toolbar-refresh {
  display: none;
}

.toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.employees-filter,
#interpreters-language-filter {
  display: none;
}

.filter-icon {
  width: 18px;
  height: 18px;
  color: #98a2b3;
}

.filter-icon::before {
  content: "";
  position: absolute;
  inset: 2px 3px;
  border: 2px solid currentColor;
  border-bottom: 0;
  clip-path: polygon(0 0, 100% 0, 62% 52%, 62% 100%, 38% 100%, 38% 52%);
}

.interpreter-status-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 20px;
}

.filter-pill {
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: #ffffff;
  color: #364152;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.filter-pill.active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

.pending-card-list,
.interpreter-card-list {
  display: grid;
  gap: 16px;
  padding: 0 24px 24px;
}

.pending-application-card,
.interpreter-card {
  min-height: 98px;
  border-radius: 12px;
}

.pending-application-card {
  border-radius: 12px;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.pending-card-row {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) 92px auto;
  align-items: center;
  gap: 22px;
  padding: 24px;
  cursor: pointer;
}

.pending-application-card:hover,
.interpreter-card:hover,
.stat-card:hover {
  border-color: #cfd8e5;
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.pending-card-main,
.interpreter-card-main {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.employee-avatar {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #0099d8;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(0, 114, 188, 0.22);
}

.employee-name {
  color: var(--text);
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.employee-email,
.pending-location,
.interpreter-registration-date {
  color: #657084;
  font-size: 0.86rem;
  line-height: 1.35;
}

.pending-location {
  display: inline;
}

.pending-location::before {
  content: " · ";
}

.pending-name-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.referred-pill {
  padding: 2px 9px;
  border-radius: 999px;
  border: 1px solid #86efac;
  background: #eafff0;
  color: #0c9a43;
  font-size: 0.72rem;
  font-weight: 700;
}

.interpreter-language-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.language-tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e9f1ff;
  color: #0050d8;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.3;
}

.pending-card-schedule {
  display: grid;
  gap: 6px;
  color: #98a2b3;
  font-size: 0.78rem;
  white-space: nowrap;
}

.pending-schedule-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
}

.pending-schedule-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.pending-card-actions,
.interpreter-card-side {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.btn-table-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 800;
  white-space: nowrap;
}

.btn-table-action span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.btn-table-action span svg {
  width: 15px;
  height: 15px;
  display: block;
}

.btn-table-approve,
.btn-table-reactivate,
.btn-table-reapprove {
  background: #d9fbe6;
  color: var(--success);
  border-color: #a8efc0;
}

.btn-table-reject {
  background: #ffe8e8;
  color: var(--danger);
  border-color: #ffb7b7;
}

.btn-table-suspend {
  background: #fff2cf;
  color: #9a4b00;
  border-color: #ffd368;
}

.pending-expand-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: #647084;
}

.pending-expand-btn svg {
  width: 18px;
  height: 18px;
}

.pending-expand-btn:hover {
  background: #f3f6fb;
  color: var(--text);
}

.interpreter-card {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(360px, 1.6fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease,
    border-color 0.16s ease, background 0.16s ease;
}

.interpreter-card:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

.interpreter-card-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.interpreter-card-chevron {
  color: #98a2b3;
  font-size: 1.5rem;
  line-height: 1;
  margin-left: 4px;
}

.employee-avatar-photo {
  overflow: hidden;
  padding: 0;
}

.employee-avatar-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.interpreters-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.interpreter-summary-card {
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.interpreter-summary-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.interpreter-summary-value {
  color: var(--text);
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.interpreter-summary-success .interpreter-summary-value {
  color: var(--success);
}

.interpreter-summary-warn .interpreter-summary-value {
  color: var(--warn);
}

.interpreter-summary-info .interpreter-summary-value {
  color: var(--blue);
}

.interpreters-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
}

.interpreters-invite-btn {
  width: auto;
  min-height: 40px;
  padding: 0 16px;
  white-space: nowrap;
}

.interpreter-empty-state {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 48px 24px;
  text-align: center;
}

.interpreter-empty-state h3 {
  margin: 0;
  font-size: 1.1rem;
}

.interpreter-empty-state p {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.interpreter-empty-icon {
  font-size: 2rem;
}

.language-pair-tag {
  gap: 4px;
}

.language-pair-icon {
  display: inline-flex;
  align-items: center;
  color: #5b86c9;
}

.status-pill-lg {
  min-height: 30px;
  padding: 5px 12px;
  font-size: 0.8rem;
  gap: 7px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
  flex: 0 0 auto;
}

.status-active .status-dot,
.status-approved .status-dot {
  background: #16a34a;
}

.status-pending .status-dot {
  background: #d97706;
}

.status-rejected .status-dot {
  background: #dc2626;
}

.status-suspended .status-dot,
.status-inactive .status-dot {
  background: #4b5563;
}

.verification-value.verification-verified {
  color: var(--success);
}

.verification-value.verification-pending {
  color: var(--warn);
}

.verification-value.verification-unverified {
  color: #6b7280;
}

.action-menu-wrap {
  position: relative;
}

.action-menu-trigger {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  color: #4b5563;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.action-menu-trigger:hover,
.action-menu-trigger[aria-expanded="true"] {
  border-color: #cfd8e5;
  background: #f8fafc;
}

.action-menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 12;
  min-width: 190px;
  padding: 6px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #ffffff;
  box-shadow: var(--shadow-lg);
}

.action-menu-item {
  width: 100%;
  min-height: 36px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.action-menu-item:hover {
  background: #f3f6fb;
}

.action-menu-item.interpreter-menu-suspend {
  color: #9a4b00;
}

.interpreter-card.is-selected {
  border-color: #7db7e8;
  box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.12), var(--shadow-sm);
}

.interpreter-card-side .interpreter-status-badge {
  flex: 0 0 auto;
}

#interpreters-detail-view {
  margin-top: 16px;
}
.detail-section-focus {
  animation: section-focus 1.2s ease;
}

@keyframes section-focus {
  0%,
  100% {
    box-shadow: none;
  }
  30% {
    box-shadow: 0 0 0 3px rgba(0, 114, 188, 0.18);
  }
}

.interpreter-card-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: stretch;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
}

.interpreter-stat {
  min-width: 0;
  padding: 10px 14px;
  text-align: left;
}

.interpreter-stat + .interpreter-stat {
  border-left: 1px solid var(--border);
}

.interpreter-stat strong {
  display: block;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: -0.01em;
  word-break: break-word;
}

.interpreter-stat span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.3;
  margin-top: 2px;
  word-break: break-word;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: capitalize;
}

.status-active,
.status-approved {
  background: #d9fbe6;
  color: var(--success);
  border: 1px solid #a8efc0;
}

.status-rejected,
.status-inactive {
  background: #ffe6e6;
  color: var(--danger);
  border: 1px solid #ffc0c0;
}

.status-rejected.status-pill-lg {
  background: #1f2937;
  color: #ffffff;
  border-color: #111827;
}

.status-pending {
  background: #fff2cf;
  color: var(--warn);
  border: 1px solid #ffd368;
}

.status-suspended {
  background: #eef0f3;
  color: #687284;
  border: 1px solid #d9dde4;
}

.employees-card .table-wrap {
  overflow-x: auto;
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

.data-table tbody tr {
  transition: background 0.16s ease;
}

.data-table tbody tr:hover {
  background: #fbfdff;
}

.data-table th {
  height: 40px;
  background: #fbfcfe;
  color: #6b7280;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.employees-table th:nth-child(6) {
  display: none;
}

.employees-table th:last-child,
.employees-table td:last-child {
  text-align: right;
}

.employee-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 270px;
}

.employee-identity .employee-avatar {
  width: 36px;
  height: 36px;
  background: #1168d8;
  font-size: 0.75rem;
}

.employee-email {
  word-break: break-word;
}

.institution-cell {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 520px;
  color: #344054;
}

.institution-icon {
  color: #98a2b3;
}

.employee-requests {
  color: var(--text);
  font-weight: 800;
}

.empty {
  padding: 30px 12px;
  color: var(--muted);
  text-align: center;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.detail-panel {
  margin-top: 0;
}

.detail-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-form input:not([type="checkbox"]):disabled,
.detail-form select:disabled,
.detail-form textarea:disabled {
  background: #fbfcfe;
  color: var(--text);
  -webkit-text-fill-color: var(--text);
  opacity: 1;
  cursor: default;
  border-color: var(--line);
}

.detail-form input:disabled,
.detail-form select:disabled,
.detail-form textarea:disabled {
  box-shadow: none;
}

.detail-form button:disabled {
  display: none;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  margin: 0 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
  color: var(--blue-dark);
  font-size: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 14px 20px;
  font-size: 0.92rem;
}

.detail-grid > *,
.detail-grid strong,
.detail-grid div:not(.detail-grid) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.detail-grid .field-label {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.language-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.language-checkboxes label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fbfcfe;
}

.language-checkboxes input {
  width: auto;
  min-height: 0;
  margin: 0;
}

.availability-editor {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.availability-header {
  display: grid;
  grid-template-columns: 150px 1fr 36px;
  gap: 12px;
  padding: 0 14px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.availability-row {
  display: grid;
  grid-template-columns: 150px 1fr 36px;
  gap: 12px;
  align-items: center;
  padding: 8px 14px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition:
    box-shadow 0.15s ease,
    border-color 0.15s ease;
}

.availability-row:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-xs);
}

.availability-row input,
.availability-row select {
  margin-bottom: 0;
}

.availability-cell {
  display: flex;
  align-items: center;
  min-width: 0;
}

.availability-cell-day select {
  width: 100%;
}

.availability-cell-time {
  gap: 6px;
}

.availability-cell-time input[type="time"] {
  flex: 1;
  min-width: 0;
  margin-bottom: 0;
}

.availability-time-icon {
  flex-shrink: 0;
  display: inline-flex;
  color: var(--blue);
}

.availability-time-icon svg {
  width: 15px;
  height: 15px;
}

.availability-time-sep {
  flex-shrink: 0;
  color: var(--muted);
}

.slot-remove-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.slot-remove-btn:hover {
  background: rgba(159, 29, 29, 0.08);
  border-color: rgba(159, 29, 29, 0.25);
  color: var(--danger);
}

.slot-remove-btn svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 620px) {
  .availability-header {
    display: none;
  }

  .availability-row {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "day remove"
      "time time";
    row-gap: 8px;
  }

  .availability-cell-day {
    grid-area: day;
  }

  .availability-cell-time {
    grid-area: time;
  }

  .slot-remove-btn {
    grid-area: remove;
    justify-self: end;
  }
}

.slot-list,
.language-list {
  margin: 0;
  padding-left: 18px;
}

.slot-list li,
.language-list li {
  margin-bottom: 6px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(10, 24, 40, 0.45);
}

.modal {
  position: relative;
  width: min(480px, 100%);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close-btn:hover,
.modal-close-btn:focus-visible {
  background: #f3f6fb;
  color: var(--text);
  outline: none;
}

.app-footer {
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  bottom: 0;
  z-index: 8;
  height: var(--footer-h);
  display: grid;
  place-items: center;
  background: #ffffff;
  border-top: 1px solid var(--border);
  color: #98a2b3;
  font-size: 0.78rem;
}

@media (max-width: 1100px) {
  .interpreters-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pending-card-row,
  .interpreter-card {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .pending-card-actions,
  .interpreter-card-side {
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
  }

  .interpreter-card-stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-left: 0;
    border-right: 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    gap: 16px 12px;
  }

  .interpreter-stat {
    padding: 0 8px;
  }

  .interpreter-stat + .interpreter-stat {
    border-left: 0;
  }

  .interpreter-status-filters {
    margin: 0 0 20px;
  }

  .interpreters-list-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 768px) {
  :root {
    --sidebar-w: 100%;
    --topbar-h: 64px;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-height: auto;
  }

  .app-shell.sidebar-collapsed .sidebar {
    left: 0;
  }

  .app-shell.sidebar-collapsed .sidebar-nav {
    display: none;
  }

  .app-shell.sidebar-collapsed #sidebar-toggle-btn {
    position: static;
    top: auto;
    left: auto;
    box-shadow: none;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 10px;
  }

  .topbar {
    position: sticky;
    left: 0;
    height: auto;
    min-height: var(--topbar-h);
    padding: 12px 16px;
    flex-wrap: wrap;
  }

  .main-content {
    width: 100%;
    margin-left: 0;
    padding: 18px 14px 62px;
  }

  .app-footer {
    left: 0;
  }

  .pending-toolbar,
  .interpreters-toolbar,
  .employees-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .employees-search-wrap,
  .pending-search-wrap {
    flex: 1 1 auto;
    width: 100%;
  }

  .interpreter-card-stats {
    grid-template-columns: 1fr;
    border: 0;
    gap: 12px;
    padding: 0;
  }

  .interpreter-stat {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 0;
    text-align: left;
  }

  .interpreter-stat strong,
  .interpreter-stat span {
    display: inline;
  }

  .interpreters-summary-grid {
    grid-template-columns: 1fr;
  }

  .logout-topbar-btn span:last-child {
    display: none;
  }

  .logout-topbar-btn {
    width: 38px;
    padding: 0;
    justify-content: center;
  }
}

.topbar-profile {
  position: relative;
}

.profile-menu {
  right: 0;
  width: 220px;
  display: grid;
  gap: 4px;
}

.profile-menu-item {
  width: 100%;
  min-height: 38px;
  padding: 8px 10px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-menu-item:hover {
  background: #f3f6fb;
}

.profile-menu-item.danger {
  color: var(--danger);
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 48px;
  padding: 0 8px;
}

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

.btn-table-view {
  background: #eef6fc;
  color: var(--blue);
  border-color: #c8e4f8;
}

.btn-table-view::before {
  display: none;
}

.interpreter-inline-detail {
  margin: -4px 24px 18px;
  border-color: #c8d7e8;
}

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

.inline-detail-head h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.readonly-field {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfe;
}

.readonly-field strong {
  display: block;
  max-width: 100%;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.empty-inline {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .topbar-right {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .topbar-lang-switch {
    order: 3;
    width: 100%;
    justify-content: flex-end;
  }

  .interpreter-inline-detail {
    margin: -4px 14px 16px;
  }

  .card-actions-inline {
    justify-content: flex-start;
  }
}
/* Interpreters language filter */
#interpreters-language-filter {
  display: block;
  width: auto;
  min-width: 180px;
  margin: 0;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.pagination.hidden {
  display: none;
}

.pagination-info {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}

.pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(0, 114, 188, 0.06);
}

.pagination-btn:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
}

.pagination-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pagination-btn svg {
  width: 18px;
  height: 18px;
}

/* ===== Dashboard sections ===== */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 20px;
}

.dashboard-panel {
  padding: 20px;
}

.dashboard-panel-title {
  margin: 0 0 16px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

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

.breakdown-label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.breakdown-value {
  font-size: 1rem;
  color: var(--text);
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
}

.dot-pending {
  background: var(--warn);
}
.dot-active {
  background: var(--success);
}
.dot-rejected {
  background: var(--danger);
}
.dot-suspended {
  background: #98a2b3;
}

.coverage-row {
  margin-bottom: 14px;
}

.coverage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
  font-size: 0.88rem;
}

.coverage-name {
  color: var(--text);
  font-weight: 500;
}

.coverage-count {
  color: var(--muted);
  font-size: 0.8rem;
}

.coverage-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.coverage-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.institution-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

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

.institution-count {
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--line);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-recent {
  margin-top: 16px;
  padding: 20px;
}

.dashboard-recent-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.recent-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

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

.recent-row:hover {
  background: var(--bg);
}

.recent-meta {
  flex: 1;
  min-width: 0;
}

/* ===== Modals (icon header) ===== */
.modal-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
}

.modal-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-icon-success {
  background: rgba(19, 122, 58, 0.12);
  color: var(--success);
}
.modal-icon-danger {
  background: rgba(159, 29, 29, 0.12);
  color: var(--danger);
}
.modal-icon-warn {
  background: rgba(160, 90, 0, 0.12);
  color: var(--warn);
}

.modal-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
}

.modal-subtitle {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.modal-hint {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 0.82rem;
}

.modal-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 16px;
}

/* ===== Pending inline expand + tabs ===== */
.pending-card-expand {
  border-top: 1px solid var(--border);
  padding: 20px 24px 24px;
}

.pending-application-card.expanded {
  box-shadow: var(--shadow-md);
}

.pending-expand-btn[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.pending-expand-btn svg {
  transition: transform 0.16s ease;
}

.pending-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.pending-tab {
  border: none;
  background: none;
  padding: 8px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}

.pending-tab:hover {
  color: var(--text);
}

.pending-tab.active {
  color: var(--blue);
  border-bottom-color: var(--blue);
}

.pending-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.pending-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.pending-field .field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.pending-field .field-value {
  font-size: 0.9rem;
  color: var(--text);
  overflow-wrap: anywhere;
}

.pending-subsection {
  margin-top: 16px;
}

.pending-subsection .field-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}
