@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Sora:wght@600;700&display=swap");

:root {
  --bg: #0f172a;
  --panel: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --primary: #0ea5e9;
  --accent: #f97316;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Plus Jakarta Sans", "Segoe UI", Tahoma, sans-serif;
  color: #0f172a;
  background: #f1f5f9;
}

a {
  color: inherit;
}

body.login-page {
  background:
    radial-gradient(circle at 8% 14%, rgba(14, 165, 233, 0.24), transparent 34%),
    radial-gradient(circle at 88% 84%, rgba(249, 115, 22, 0.2), transparent 36%),
    linear-gradient(145deg, #e2e8f0 0%, #f8fafc 48%, #e2e8f0 100%);
}

.login-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  padding: 20px;
}

.login-left {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 28px;
  background:
    radial-gradient(circle at 18% 22%, rgba(14, 165, 233, 0.24), transparent 36%),
    radial-gradient(circle at 82% 74%, rgba(249, 115, 22, 0.2), transparent 36%),
    linear-gradient(160deg, #0f172a 0%, #17263d 52%, #1f314f 100%);
  color: #fff;
  padding: 56px 54px;
  box-shadow: 0 24px 65px rgba(15, 23, 42, 0.28);
}

.login-left h1 {
  margin: 18px 0 14px;
  font-size: 48px;
  line-height: 1.08;
  letter-spacing: 0.2px;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-brand-chip {
  display: inline-block;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.45);
  background: rgba(14, 165, 233, 0.15);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-hero-copy {
  margin: 0 0 26px;
  max-width: 560px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.48;
}

.login-hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hero-tile {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.36);
  padding: 14px;
}

.hero-tile h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.hero-tile p {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.4;
}

.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.login-card {
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.16);
}

.login-eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #0369a1;
  font-weight: 700;
}

.login-title {
  margin: 8px 0 6px;
  font-size: 34px;
  line-height: 1.15;
}

.login-subtitle {
  margin: 0;
}

.login-form {
  margin-top: 18px;
}

.login-form input {
  margin-bottom: 12px;
}

.login-form button {
  margin-top: 4px;
}

.login-hint {
  margin: 16px 0 0;
}

.label {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  color: #334155;
  font-weight: 600;
}

input,
select,
textarea,
button {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 11px 13px;
  font-size: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

button {
  background: var(--bg);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  border: 0;
}

button:hover {
  background: #1e293b;
}

button.secondary {
  background: #f8fafc;
  color: #0f172a;
}

button.secondary.emp-edit {
  border: 1px solid #93c5fd;
  background: linear-gradient(120deg, #eff6ff, #dbeafe);
  color: #1d4ed8;
}

button.secondary.emp-edit:hover {
  background: linear-gradient(120deg, #dbeafe, #bfdbfe);
}

button.secondary.emp-del {
  background: rgba(255, 255, 255, 0.96);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

button.secondary.emp-del:hover {
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.24);
}

body.app-page {
  background:
    radial-gradient(circle at 10% 8%, rgba(14, 165, 233, 0.18), transparent 30%),
    radial-gradient(circle at 88% 84%, rgba(249, 115, 22, 0.16), transparent 34%),
    linear-gradient(150deg, #e2e8f0 0%, #f8fafc 45%, #e2e8f0 100%);
}

.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 286px 1fr;
  gap: 14px;
  padding: 14px;
}

.sidebar {
  position: sticky;
  top: 14px;
  height: calc(100vh - 28px);
  overflow: auto;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background:
    radial-gradient(circle at 18% 12%, rgba(14, 165, 233, 0.2), transparent 36%),
    linear-gradient(165deg, #0f172a 0%, #16253b 52%, #1e314f 100%);
  color: #fff;
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 52px rgba(15, 23, 42, 0.24);
}

.brand {
  margin-bottom: 18px;
}

.brand-mini {
  margin: 0;
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  background: rgba(14, 165, 233, 0.14);
  color: #dbeafe;
}

.brand h2 {
  margin: 10px 0 4px;
  font-size: 29px;
  line-height: 1.1;
}

.brand-copy {
  margin: 0;
  color: #cbd5e1;
  font-size: 13px;
}

.side-nav {
  margin-top: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: #cbd5e1;
  padding: 11px 12px;
  border-radius: 12px;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-link::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #94a3b8;
}

.nav-link.active {
  background: linear-gradient(120deg, rgba(14, 165, 233, 0.26), rgba(249, 115, 22, 0.18));
  border-color: rgba(125, 211, 252, 0.34);
  color: #fff;
  transform: translateX(2px);
}

.nav-link.active::before {
  background: #67e8f9;
}

.nav-link:hover {
  border-color: rgba(148, 163, 184, 0.32);
  background: rgba(255, 255, 255, 0.08);
}

.userbox {
  margin-top: auto;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 16px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.38);
}

.userbox-label {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #67e8f9;
}

.user-name {
  margin-top: 6px;
  font-size: 18px;
  font-weight: 700;
}

.user-role {
  margin-top: 3px;
  color: #cbd5e1;
}

.logout-main {
  margin-top: 12px;
  background: linear-gradient(120deg, #ef4444, #dc2626);
  border: 1px solid #b91c1c;
  box-shadow: 0 10px 20px rgba(220, 38, 38, 0.24);
}

.logout-main:hover {
  background: linear-gradient(120deg, #f87171, #ef4444);
}

.main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(7px);
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.12);
  padding: 16px 18px;
}

.topbar-copy {
  min-width: 0;
}

.topbar-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: #0284c7;
  font-weight: 700;
}

.topbar h1 {
  margin: 4px 0 2px;
  font-size: 29px;
}

.topbar-note {
  margin: 0;
}

.top-logout {
  width: auto;
  min-width: 118px;
  background: linear-gradient(120deg, #ef4444, #dc2626) !important;
  color: #fff !important;
  border: 1px solid #b91c1c;
  box-shadow: 0 8px 16px rgba(220, 38, 38, 0.18);
}

.top-logout:hover {
  background: linear-gradient(120deg, #f87171, #ef4444) !important;
}

.section {
  display: none;
}

.section.active {
  display: block;
  animation: section-reveal 0.2s ease;
}

@keyframes section-reveal {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-grid {
  margin-top: 12px;
}

.dashboard-main-grid {
  grid-template-columns: repeat(12, minmax(0, 1fr));
  align-items: stretch;
}

.dashboard-operator-card {
  grid-column: 1 / -1;
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 28px;
  border-color: rgba(14, 165, 233, 0.18);
  background:
    radial-gradient(circle at 12% 18%, rgba(14, 165, 233, 0.14), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(249, 115, 22, 0.12), transparent 34%),
    linear-gradient(160deg, #ffffff 0%, #f8fbff 56%, #eef6ff 100%);
}

.dashboard-operator-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.98), rgba(37, 99, 235, 0.76), rgba(56, 189, 248, 0.45));
}

.dashboard-operator-card .panel-title {
  position: relative;
  font-size: 26px;
  margin-bottom: 18px;
}

.dashboard-operator-card .operator-dashboard-table {
  position: relative;
  font-size: 15px;
}

.dashboard-operator-card .operator-dashboard-table th,
.dashboard-operator-card .operator-dashboard-table td {
  padding: 14px 14px;
}

.dashboard-operator-card .operator-icon {
  width: 46px;
  height: 46px;
  font-size: 13px;
}

.dashboard-operator-card .operator-name {
  font-size: 16px;
}

.dashboard-activity-card {
  grid-column: 1 / -1;
  min-width: 0;
}

.row {
  display: grid;
  gap: 12px;
}

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

.row.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

.card {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 22px;
  padding: 18px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.section .card + .card {
  margin-top: 12px;
}

.panel-title {
  margin: 0 0 12px;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 18px;
  color: #0f172a;
}

.panel-subtitle {
  margin: -2px 0 12px;
  color: #475569;
  font-size: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.action-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
}

.action-panel::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.95), rgba(56, 189, 248, 0.45));
}

.action-panel-employee::before {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.95), rgba(37, 99, 235, 0.55));
}

.action-panel-sim::before {
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.92), rgba(14, 165, 233, 0.48));
}

.action-panel-assign::before {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.95), rgba(251, 146, 60, 0.45));
}

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

.action-head-copy {
  min-width: 0;
}

.employee-form-head {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.employee-mode-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.84);
  color: #334155;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-mode-chip.is-editing {
  border-color: rgba(37, 99, 235, 0.24);
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
}

.action-panel-employee {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.14), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(191, 219, 254, 0.16), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(239, 246, 255, 0.92) 100%);
}

.employee-form-shell {
  gap: 16px;
}

.employee-form-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.92fr);
  gap: 14px;
}

.employee-form-panel {
  position: relative;
  display: grid;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 18px 32px rgba(148, 163, 184, 0.1);
}

.employee-form-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.95), rgba(59, 130, 246, 0.34), rgba(255, 255, 255, 0));
}

.employee-form-panel-access::before {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.94), rgba(14, 165, 233, 0.36), rgba(255, 255, 255, 0));
}

.employee-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employee-panel-step {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.employee-panel-title {
  margin: 6px 0 0;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  color: #0f172a;
}

.employee-panel-copy {
  margin: 8px 0 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
  max-width: 42ch;
}

.employee-panel-grid {
  gap: 14px;
}

.employee-form-panel .field {
  gap: 8px;
}

.employee-form-panel .field label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
}

.employee-form-panel input,
.employee-form-panel select {
  min-height: 52px;
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.employee-form-panel input:focus,
.employee-form-panel select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
}

.employee-form-tip {
  display: grid;
  gap: 8px;
  border: 1px dashed rgba(59, 130, 246, 0.24);
  border-radius: 18px;
  padding: 14px;
  background: rgba(239, 246, 255, 0.78);
}

.employee-form-tip-title {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #1d4ed8;
}

.employee-form-tip-copy {
  margin: 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.55;
}

.employee-form-footer {
  justify-content: flex-end;
}

.employee-directory-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(56, 189, 248, 0.14), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.employee-directory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.95fr);
  gap: 18px;
  align-items: end;
}

.employee-directory-copy {
  display: grid;
  gap: 10px;
}

.employee-directory-kicker {
  width: fit-content;
}

.employee-directory-headline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-directory-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-directory-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.employee-directory-stat {
  display: grid;
  gap: 6px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 30px rgba(148, 163, 184, 0.08);
}

.employee-directory-stat-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.employee-directory-stat strong {
  font-size: 28px;
  line-height: 1;
  color: #0f172a;
}

.employee-directory-controls {
  margin-top: 18px;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(2, minmax(180px, 0.7fr)) auto;
  gap: 12px;
  align-items: end;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 245, 249, 0.95) 100%);
}

.employee-directory-field {
  display: grid;
  gap: 8px;
}

.employee-directory-field input,
.employee-directory-field select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #fff;
  padding: 12px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.employee-directory-field input:focus,
.employee-directory-field select:focus {
  border-color: #0284c7;
  box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.12);
  outline: none;
}

.employee-directory-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.employee-directory-actions button {
  width: auto;
  min-width: 138px;
}

.employee-directory-meta {
  margin: 14px 0 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employee-directory-summary {
  margin: 0;
  font-size: 13px;
  color: #334155;
}

.employee-directory-filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.employee-filter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(14, 165, 233, 0.18);
  background: rgba(224, 242, 254, 0.9);
  color: #075985;
}

.employee-filter-pill.is-muted {
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(241, 245, 249, 0.92);
  color: #64748b;
}

.employee-table-wrap {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 22px;
  padding: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.94),
    0 18px 34px rgba(148, 163, 184, 0.08);
}

.employee-table-wrap table {
  min-width: 1080px;
}

.employee-table-wrap tbody tr {
  transition: background 0.18s ease, transform 0.18s ease;
}

.employee-table-wrap tbody tr:hover {
  background: rgba(248, 250, 252, 0.92);
}

.employee-row-active {
  background: rgba(224, 242, 254, 0.72);
}

.employee-person-cell,
.employee-contact-cell,
.employee-access-cell,
.employee-issued-cell,
.employee-last-seen {
  display: grid;
  gap: 4px;
}

.employee-person-cell {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}

.employee-avatar {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.18));
  color: #075985;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.employee-avatar.admin {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.18), rgba(234, 88, 12, 0.18));
  color: #9a3412;
}

.employee-person-copy strong,
.employee-contact-cell strong,
.employee-issued-cell strong,
.employee-last-seen strong {
  color: #0f172a;
  font-size: 14px;
}

.employee-person-copy span,
.employee-contact-cell span,
.employee-issued-cell span,
.employee-last-seen span {
  color: #64748b;
  font-size: 12px;
}

.employee-role-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(14, 165, 233, 0.2);
  background: rgba(224, 242, 254, 0.92);
  color: #0c4a6e;
}

.employee-role-pill.admin {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(255, 237, 213, 0.92);
  color: #c2410c;
}

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

.employee-actions-inline button {
  width: auto;
  min-width: 92px;
}

.employee-delete-icon-btn {
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
}

.employee-delete-icon-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  pointer-events: none;
}

.employee-actions-inline .employee-delete-icon-btn {
  min-width: 42px;
}

.employee-directory-card {
  border-radius: 20px;
  padding: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 16px 30px rgba(148, 163, 184, 0.08);
}

.employee-directory-card.is-editing {
  border-color: rgba(14, 165, 233, 0.28);
  background: linear-gradient(180deg, rgba(240, 249, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.employee-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.employee-card-tags {
  margin: 12px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-card-actions {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.employee-card-actions .emp-edit {
  width: 100%;
}

.employee-card-actions .employee-delete-icon-btn {
  width: 42px;
  min-width: 42px;
}

.employee-sim-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(241, 245, 249, 0.95);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.employee-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-directory-empty {
  display: grid;
  text-align: center;
  gap: 8px;
}

.employee-directory-empty-title,
.employee-directory-empty-copy {
  margin: 0;
}

.employee-directory-empty-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.employee-directory-empty-copy {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

.assign-mode-chip.is-editing {
  border-color: rgba(249, 115, 22, 0.24);
  background: rgba(255, 237, 213, 0.92);
  color: #c2410c;
}

.action-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.2);
  background: rgba(14, 165, 233, 0.1);
  color: #075985;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.action-head .panel-title {
  margin: 10px 0 6px;
  font-size: 24px;
  line-height: 1.12;
}

.action-head .panel-subtitle {
  margin: 0;
  max-width: 680px;
  font-size: 13px;
  color: #334155;
}

.action-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 212px;
}

.action-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.8);
  color: #0f172a;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.form-shell {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(248, 250, 252, 0.92) 100%);
  border-radius: 16px;
  padding: 14px;
}

.form-grid {
  gap: 14px;
}

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

.permission-tile {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #fff;
  border-radius: 12px;
  padding: 10px;
}

.permission-title {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.permission-copy {
  margin: 4px 0 0;
  font-size: 12px;
  color: #64748b;
}

.permission-check {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  accent-color: #0284c7;
  flex-shrink: 0;
}

.form-shell input,
.form-shell select {
  min-height: 44px;
  border-radius: 11px;
  border-color: #cbd5e1;
  background: #fff;
}

.form-shell input::placeholder {
  color: #94a3b8;
}

.operator-quick {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 7px;
}

.sim-import-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(34, 197, 94, 0.16);
  border-radius: 20px;
  padding: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 211, 252, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(240, 253, 244, 0.96) 100%);
}

.sim-import-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sim-import-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(34, 197, 94, 0.18);
  background: rgba(220, 252, 231, 0.82);
  color: #15803d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sim-import-title {
  margin: 10px 0 6px;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  color: #0f172a;
}

.sim-import-copy {
  margin: 0;
  max-width: 64ch;
  color: #334155;
  font-size: 13px;
  line-height: 1.6;
}

.sim-import-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 190px;
}

.sim-import-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.24);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.sim-import-grid {
  align-items: end;
}

.sim-import-file input[type="file"] {
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 15px;
  border: 1px dashed rgba(34, 197, 94, 0.28);
  background: rgba(255, 255, 255, 0.94);
}

.sim-import-file input[type="file"]::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 10px;
  padding: 9px 14px;
  background: linear-gradient(120deg, #0ea5e9, #0284c7);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
}

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

.sim-import-actions button {
  width: auto;
  min-width: 156px;
}

.operator-chip {
  width: auto;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(219, 234, 254, 0.55);
  color: #1e3a8a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.operator-chip:hover {
  background: rgba(191, 219, 254, 0.88);
}

.field-help {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
}

.action-field {
  justify-content: flex-end;
}

.form-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-top: 1px dashed rgba(148, 163, 184, 0.32);
  padding-top: 12px;
}

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

.form-actions button {
  width: auto;
  min-width: 140px;
  min-height: 42px;
  padding: 10px 16px;
  margin: 0;
  border-radius: 10px;
}

.form-second-row {
  margin-top: 2px;
}

.form-actions-inline {
  margin-top: 0;
  max-width: none;
}

.assign-btn {
  min-width: 154px;
}

.btn-primary {
  background: linear-gradient(120deg, #0284c7, #0369a1);
  box-shadow: 0 8px 18px rgba(3, 105, 161, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(120deg, #0ea5e9, #0284c7);
}

.btn-secondary {
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
}

.btn-secondary:hover {
  background: #eff6ff;
}

.dashboard-stats .stat:nth-child(1) {
  border-top: 3px solid #0ea5e9;
}

.dashboard-stats .stat:nth-child(2) {
  border-top: 3px solid #22c55e;
}

.dashboard-stats .stat:nth-child(3) {
  border-top: 3px solid #fb923c;
}

.dashboard-stats .stat:nth-child(4) {
  border-top: 3px solid #a855f7;
}

.stat {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  padding: 13px 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.stat .k {
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat .v {
  font-size: 29px;
  margin-top: 6px;
  font-weight: 700;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 4px 0 12px;
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  background: #f8fafc;
}

.toolbar > * {
  width: auto;
  min-width: 140px;
}

.toolbar-note {
  margin: 0;
  font-size: 12px;
  color: #64748b;
}

.toolbar-hidden {
  display: none !important;
}

.inventory-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border-color: rgba(148, 163, 184, 0.22);
}

.inventory-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 5px;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.92), rgba(14, 165, 233, 0.9), rgba(249, 115, 22, 0.7));
}

.inventory-shell {
  display: grid;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.08), transparent 32%),
    radial-gradient(circle at 0% 100%, rgba(34, 197, 94, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.98) 100%);
}

.inventory-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.95fr);
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 14% 18%, rgba(14, 165, 233, 0.16), transparent 30%),
    radial-gradient(circle at 88% 78%, rgba(34, 197, 94, 0.14), transparent 34%),
    linear-gradient(155deg, #f8fbff 0%, #f8fafc 58%, #eef6ff 100%);
}

.inventory-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(14, 116, 144, 0.18);
  background: rgba(14, 165, 233, 0.1);
  color: #075985;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-hero-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-top: 10px;
}

.inventory-hero .panel-title {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.08;
}

.inventory-hero .panel-subtitle {
  margin: 0;
  max-width: 720px;
  font-size: 14px;
  line-height: 1.55;
  color: #334155;
}

.inventory-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 240px;
}

button.secondary.inventory-ghost-btn {
  width: auto;
  min-width: 142px;
  min-height: 44px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  background: rgba(255, 255, 255, 0.88);
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

button.secondary.inventory-ghost-btn:hover {
  background: #ffffff;
}

.inventory-hero-stats {
  display: grid;
  gap: 12px;
}

.inventory-spotlight {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  padding: 16px;
  min-height: 104px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.inventory-spotlight-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.inventory-spotlight strong {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  line-height: 1.45;
  color: #0f172a;
}

.inventory-controls {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(220px, 0.8fr);
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.9);
}

.inventory-search-panel,
.inventory-filter-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inventory-control-label {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.inventory-search-input {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 6px 8px 6px 12px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.inventory-search-prefix {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  min-height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: linear-gradient(135deg, #e0f2fe 0%, #dbeafe 100%);
  color: #0c4a6e;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-search-input input {
  min-height: 42px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.inventory-search-input input:focus {
  box-shadow: none;
}

.inventory-filter-panel select {
  min-height: 56px;
  border-radius: 16px;
  background: #ffffff;
}

.inventory-status-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.inventory-status-tab {
  width: auto;
  min-width: 120px;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #ffffff;
  color: #0f172a;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(148, 163, 184, 0.12);
}

.inventory-status-tab:hover {
  background: #eff6ff;
}

.inventory-status-tab.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(3, 105, 161, 0.24);
}

.inventory-status-select {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.inventory-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.inventory-chip {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(241, 245, 249, 0.96) 100%);
}

.inventory-chip::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #0ea5e9;
}

.inventory-chip-showing::before {
  background: #0ea5e9;
}

.inventory-chip-available::before {
  background: #22c55e;
}

.inventory-chip-assigned::before {
  background: #f97316;
}

.inventory-chip-deactivated::before {
  background: #ef4444;
}

.inventory-chip-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.inventory-chip-value {
  display: block;
  margin-top: 8px;
  font-size: 26px;
  font-weight: 800;
  color: #0f172a;
}

.inventory-chip-meta {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: #475569;
}

.inventory-active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 22px;
}

.inventory-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid rgba(14, 165, 233, 0.16);
  background: rgba(14, 165, 233, 0.08);
  color: #0f172a;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 600;
}

.inventory-filter-pill strong {
  color: #0369a1;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-filter-pill.is-neutral {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.92);
  color: #475569;
}

.inventory-results-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.inventory-results-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.inventory-results-title {
  margin: 4px 0 0;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 20px;
  color: #0f172a;
}

.inventory-results-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.inventory-table-shell {
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.cell-stack {
  display: grid;
  gap: 4px;
}

.cell-sub {
  font-size: 12px;
  color: #64748b;
}

.inventory-table-wrap {
  border-radius: 18px;
}

.inventory-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: rgba(248, 250, 252, 0.96);
  backdrop-filter: blur(8px);
}

.inventory-row:hover {
  background: linear-gradient(90deg, rgba(239, 246, 255, 0.76) 0%, rgba(248, 250, 252, 0.92) 100%);
}

.inventory-sim-cell {
  display: grid;
  gap: 6px;
}

.inventory-sim-number {
  font-size: 15px;
  line-height: 1.2;
}

.inventory-operator-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.96);
  padding: 7px 12px 7px 8px;
}

.inventory-operator-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.16);
  flex-shrink: 0;
}

.inventory-operator-label {
  font-weight: 700;
  color: #0f172a;
}

.inventory-operator-pill.operator-airtel {
  background: rgba(254, 242, 242, 0.92);
  border-color: rgba(239, 68, 68, 0.18);
}

.inventory-operator-pill.operator-jio {
  background: rgba(239, 246, 255, 0.92);
  border-color: rgba(14, 165, 233, 0.18);
}

.inventory-operator-pill.operator-vi {
  background: rgba(255, 247, 237, 0.94);
  border-color: rgba(249, 115, 22, 0.2);
}

.inventory-operator-pill.operator-default {
  background: rgba(241, 245, 249, 0.96);
  border-color: rgba(148, 163, 184, 0.2);
}

.inventory-employee-cell {
  display: grid;
  gap: 4px;
}

.inventory-empty-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.8);
  color: #475569;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.note-snippet {
  display: block;
  max-width: 300px;
  color: #334155;
  line-height: 1.5;
  white-space: normal;
  word-break: break-word;
}

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

.table-actions > * {
  width: auto;
}

.inventory-actions {
  min-width: 250px;
}

.inventory-action-btn {
  width: auto;
  min-width: 96px;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 10px;
}

.inventory-inline-select {
  width: auto;
  min-width: 148px;
  min-height: 40px;
  margin: 0;
}

button.inventory-action-danger,
button.secondary.inventory-action-danger {
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(255, 255, 255, 0.96);
  color: #64748b;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

button.inventory-action-danger:hover,
button.secondary.inventory-action-danger:hover {
  background: rgba(254, 242, 242, 0.96);
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.24);
}

.inventory-action-btn.inventory-delete-icon-btn {
  width: 42px;
  min-width: 42px;
  min-height: 40px;
  padding: 0;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inventory-action-btn.inventory-delete-icon-btn svg {
  width: 17px;
  height: 17px;
  display: block;
  pointer-events: none;
}

.inventory-empty {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 28px 14px;
  text-align: center;
  color: #64748b;
}

.inventory-empty strong {
  font-size: 16px;
  color: #0f172a;
}

.inventory-cards {
  margin-top: 4px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.inventory-record-card {
  border-radius: 18px;
  padding: 16px;
}

.inventory-record-head {
  gap: 12px;
}

.inventory-record-copy {
  display: grid;
  gap: 10px;
}

.inventory-record-operator .inventory-operator-pill {
  background: rgba(248, 250, 252, 0.96);
}

.inventory-record-grid {
  gap: 10px;
}

.inventory-card-actions {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.inventory-card-actions .inventory-action-btn.inventory-delete-icon-btn {
  flex: 0 0 42px;
}

.toolbar-actions {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.toolbar-actions button {
  width: auto;
  min-width: 132px;
  min-height: 46px;
}

.assign-workspace-card {
  background:
    radial-gradient(circle at 88% 0%, rgba(249, 115, 22, 0.12), transparent 26%),
    radial-gradient(circle at 0% 100%, rgba(251, 191, 36, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 251, 235, 0.92) 100%);
}

.assign-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.assign-latest-value {
  font-size: 21px;
  line-height: 1.2;
  word-break: break-word;
}

.assign-form-shell {
  gap: 16px;
}

.assign-workbench {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.assign-select-panel {
  --assign-accent: #f97316;
  --assign-accent-soft: rgba(249, 115, 22, 0.14);
  --assign-accent-deep: rgba(249, 115, 22, 0.22);
  --assign-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 249, 241, 0.96) 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 100%;
  overflow: hidden;
  border: 1px solid var(--assign-accent-deep);
  border-radius: 22px;
  padding: 18px;
  background: var(--assign-panel-bg);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.78),
    0 16px 32px rgba(148, 163, 184, 0.12);
}

.assign-select-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--assign-accent) 0%, rgba(255, 255, 255, 0) 100%);
}

.assign-select-panel-sim {
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 247, 237, 0.95) 100%);
}

.assign-select-panel-employee {
  --assign-accent: #0284c7;
  --assign-accent-soft: rgba(2, 132, 199, 0.14);
  --assign-accent-deep: rgba(14, 165, 233, 0.22);
  --assign-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 249, 255, 0.96) 100%);
  background:
    radial-gradient(circle at 100% 0%, rgba(125, 211, 252, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(240, 249, 255, 0.96) 100%);
}

.assign-select-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.assign-step {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.assign-select-title {
  margin: 4px 0 0;
  font-family: "Sora", "Plus Jakarta Sans", sans-serif;
  font-size: 19px;
  color: #0f172a;
}

.assign-select-subtitle {
  margin: 8px 0 0;
  max-width: 38ch;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.assign-select-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  border: 1px solid var(--assign-accent-soft);
  background: rgba(255, 255, 255, 0.82);
  color: var(--assign-accent);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: 0 8px 18px rgba(148, 163, 184, 0.12);
}

.assign-field-stack {
  display: grid;
  gap: 12px;
}

.assign-field-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.assign-field-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.9) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 10px 22px rgba(148, 163, 184, 0.1);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.assign-field-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--assign-accent-soft), rgba(255, 255, 255, 0));
}

.assign-field-card-search {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(248, 250, 252, 0.92) 100%);
}

.assign-field-card-select {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.88) 100%);
}

.assign-field-card:focus-within {
  transform: translateY(-1px);
  border-color: var(--assign-accent-deep);
  box-shadow:
    0 0 0 4px var(--assign-accent-soft),
    0 16px 30px rgba(148, 163, 184, 0.14);
}

.assign-select-panel .field {
  gap: 8px;
}

.assign-select-panel .field label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #334155;
}

.assign-select-panel input,
.assign-select-panel select {
  min-height: 52px;
  border-radius: 15px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.assign-select-panel input:focus,
.assign-select-panel select:focus {
  border-color: var(--assign-accent);
  box-shadow: 0 0 0 4px var(--assign-accent-soft);
}

.assign-select-panel input:disabled,
.assign-select-panel select:disabled {
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(241, 245, 249, 0.88);
  color: #64748b;
  box-shadow: none;
}

.assign-preview-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  margin-top: auto;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  padding: 15px;
  min-height: 132px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 12px 26px rgba(148, 163, 184, 0.1);
}

.assign-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: 18px 0 0 18px;
  background: linear-gradient(180deg, var(--assign-accent), rgba(255, 255, 255, 0));
}

.assign-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.assign-preview-kicker {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.assign-preview-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.assign-preview-body {
  display: grid;
  gap: 7px;
  margin-top: 2px;
}

.assign-preview-body strong {
  font-size: 17px;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.assign-preview-body span,
.assign-preview-empty span {
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.assign-preview-empty {
  display: grid;
  gap: 6px;
  align-content: center;
  min-height: 100%;
}

.assign-preview-empty strong {
  color: #0f172a;
  font-size: 15px;
}

.assign-selection-meta {
  display: grid;
  align-content: center;
  border: 1px dashed rgba(148, 163, 184, 0.34);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.assign-selection-title {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9a3412;
}

.assign-selection-copy {
  margin: 8px 0 0;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.assignment-log-card {
  position: relative;
  overflow: hidden;
  border-color: rgba(249, 115, 22, 0.18);
}

.assignment-log-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.95), rgba(251, 146, 60, 0.64), rgba(251, 191, 36, 0.38));
}

.assignment-log-shell {
  display: grid;
  gap: 18px;
}

.assignment-log-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.assignment-log-copy {
  min-width: 0;
}

.assignment-log-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  border: 1px solid rgba(249, 115, 22, 0.18);
  background: rgba(255, 237, 213, 0.78);
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assignment-log-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: 220px;
}

.assignment-log-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.assignment-log-controls,
.assignment-log-results {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.toolbar-assignments {
  align-items: flex-start;
  row-gap: 12px;
}

.assignment-toolbar-search,
.assignment-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toolbar-field-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.toolbar-assignments .toolbar-search {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toolbar-assignments .toolbar-search input {
  width: 100%;
  min-height: 46px;
}

.toolbar-assignments .toolbar-field {
  flex: 1 1 168px;
  min-width: 160px;
}

.toolbar-assignments .toolbar-field select,
.toolbar-assignments .toolbar-field input {
  width: 100%;
  min-height: 46px;
}

.assignment-date-field {
  flex: 1 1 186px;
}

.assignment-date-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.assignment-date-input {
  padding-right: 52px;
}

button.assignment-date-trigger {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(248, 250, 252, 0.96);
  color: #2563eb;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

button.assignment-date-trigger:hover {
  background: rgba(219, 234, 254, 0.96);
  color: #1d4ed8;
}

button.assignment-date-trigger svg {
  width: 16px;
  height: 16px;
  display: block;
  pointer-events: none;
}

.assignment-date-input::-webkit-calendar-picker-indicator {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
}

.assignment-toolbar-actions {
  align-self: flex-end;
}

.assignment-summary {
  margin-top: 2px;
}

.assignment-active-filters {
  min-height: 30px;
}

.assignment-results-head {
  align-items: center;
}

.assignment-results-count {
  background: rgba(249, 115, 22, 0.1);
  color: #9a3412;
}

.assignment-table-wrap {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.12);
}

.assignment-table {
  border: 0;
  border-radius: 20px;
  background: transparent;
}

.assignment-table thead th {
  background: rgba(248, 250, 252, 0.94);
  backdrop-filter: blur(10px);
  color: #475569;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assignment-table td {
  vertical-align: top;
  padding-top: 16px;
  padding-bottom: 16px;
}

.assignment-row:hover {
  background: linear-gradient(90deg, rgba(255, 247, 237, 0.86) 0%, rgba(255, 255, 255, 0.94) 100%);
}

.assignment-sim-cell,
.assignment-person,
.assignment-date-cell,
.assignment-status-stack {
  display: grid;
  gap: 5px;
}

.assignment-sim-number {
  font-size: 15px;
  line-height: 1.2;
  color: #0f172a;
}

.assignment-sim-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.assignment-id-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
  font-size: 11px;
  font-weight: 700;
}

.assignment-record-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(248, 250, 252, 0.92);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.assignment-record-state.is-current {
  border-color: rgba(34, 197, 94, 0.2);
  background: rgba(220, 252, 231, 0.88);
  color: #15803d;
}

.assignment-person strong,
.assignment-date-cell strong {
  color: #0f172a;
}

.assignment-person span,
.assignment-date-cell span,
.assignment-status-meta {
  color: #64748b;
  font-size: 12px;
}

.assignment-person-subtle span {
  text-transform: capitalize;
}

.assignment-note-bubble {
  display: inline-flex;
  max-width: 340px;
  width: auto;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 247, 237, 0.82);
  border: 1px solid rgba(249, 115, 22, 0.12);
  color: #7c2d12;
  line-height: 1.5;
}

.assignment-row-actions {
  justify-content: flex-start;
}

.assignment-cards {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.assignment-record-card {
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(251, 191, 36, 0.12), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.12);
}

.assignment-record-card.is-current {
  border-color: rgba(34, 197, 94, 0.22);
}

.assignment-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.assignment-card-main {
  min-width: 0;
}

.assignment-card-title {
  font-size: 18px;
}

.assignment-card-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.assignment-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.assignment-date-inline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(14, 165, 233, 0.08);
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
}

.assignment-card-operator {
  margin-top: 10px;
}

.assignment-card-note {
  grid-column: 1 / -1;
}

.history-shell {
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.12), transparent 28%),
    radial-gradient(circle at 0% 100%, rgba(56, 189, 248, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

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

.history-copy {
  display: grid;
  gap: 10px;
}

.history-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(20, 184, 166, 0.18);
  background: rgba(20, 184, 166, 0.08);
  color: #0f766e;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.history-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  border-radius: 999px;
  padding: 7px 11px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: rgba(255, 255, 255, 0.88);
  color: #475569;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.history-controls,
.history-results {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 22px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 250, 252, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.history-results {
  margin-top: 16px;
}

.toolbar-history {
  align-items: flex-start;
  row-gap: 12px;
}

.history-toolbar-search,
.history-toolbar-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toolbar-history .toolbar-search {
  flex: 1 1 320px;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toolbar-history .toolbar-search input {
  width: 100%;
  min-height: 46px;
}

.toolbar-history .toolbar-field {
  flex: 1 1 180px;
  min-width: 168px;
}

.toolbar-history .toolbar-field select {
  width: 100%;
  min-height: 46px;
}

.history-toolbar-actions {
  align-self: flex-end;
}

.history-summary {
  margin-top: 2px;
}

.history-active-filters {
  min-height: 30px;
}

.history-chip-user::before {
  background: #2563eb;
}

.history-chip-sim::before {
  background: #14b8a6;
}

.history-chip-assignment::before {
  background: #f97316;
}

.history-results-head {
  align-items: center;
}

.history-results-count {
  background: rgba(20, 184, 166, 0.1);
  color: #0f766e;
}

.history-table-wrap {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.12);
}

.history-table {
  border: 0;
  border-radius: 20px;
}

.history-table tbody tr {
  transition: background 0.18s ease;
}

.history-table tbody tr:hover {
  background: rgba(240, 253, 250, 0.86);
}

.history-action-cell,
.history-description-cell,
.history-actor-cell,
.history-entity-cell,
.history-date-cell {
  display: grid;
  gap: 4px;
}

.history-action-chip,
.history-entity-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(241, 245, 249, 0.92);
  color: #334155;
}

.history-tone-user .history-action-chip,
.history-action-chip.history-tone-user,
.history-entity-pill.history-tone-user {
  border-color: rgba(37, 99, 235, 0.2);
  background: rgba(219, 234, 254, 0.9);
  color: #1d4ed8;
}

.history-tone-sim .history-action-chip,
.history-action-chip.history-tone-sim,
.history-entity-pill.history-tone-sim {
  border-color: rgba(20, 184, 166, 0.2);
  background: rgba(204, 251, 241, 0.88);
  color: #0f766e;
}

.history-tone-assignment .history-action-chip,
.history-action-chip.history-tone-assignment,
.history-entity-pill.history-tone-assignment {
  border-color: rgba(249, 115, 22, 0.2);
  background: rgba(255, 237, 213, 0.92);
  color: #c2410c;
}

.history-tone-system .history-action-chip,
.history-action-chip.history-tone-system,
.history-entity-pill.history-tone-system {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(241, 245, 249, 0.92);
  color: #475569;
}

.history-action-key {
  color: #64748b;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.history-description-cell strong,
.history-actor-cell strong,
.history-date-cell strong {
  color: #0f172a;
  font-size: 14px;
}

.history-card-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.history-card {
  border-radius: 22px;
  padding: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(20, 184, 166, 0.08), transparent 30%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  box-shadow: 0 18px 36px rgba(148, 163, 184, 0.12);
}

.history-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.history-card-description {
  margin: 10px 0 0;
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
}

.history-card-grid {
  margin-top: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.history-empty-card {
  display: grid;
  gap: 8px;
  text-align: center;
}

.history-empty-title,
.history-empty-copy {
  margin: 0;
}

.history-empty-title {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.history-empty-copy {
  color: #64748b;
  font-size: 13px;
  line-height: 1.55;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

th,
td {
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
  padding: 10px 9px;
  vertical-align: top;
}

thead th {
  background: #f8fafc;
}

tbody tr:hover {
  background: #f8fafc;
}

tbody tr:last-child td {
  border-bottom: none;
}

th {
  color: #475569;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #fff;
}

.operator-dashboard-table tbody tr.operator-row td {
  vertical-align: middle;
}

.operator-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.operator-icon {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: #fff;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.18);
  flex-shrink: 0;
}

.operator-icon.operator-airtel {
  background: linear-gradient(140deg, #ef4444, #dc2626);
}

.operator-icon.operator-jio {
  background: linear-gradient(140deg, #2563eb, #1d4ed8);
}

.operator-icon.operator-vi {
  background: linear-gradient(140deg, #7c3aed, #6d28d9);
}

.operator-icon.operator-default {
  background: linear-gradient(140deg, #475569, #334155);
}

.operator-name {
  margin: 0;
  font-weight: 700;
  color: #0f172a;
  font-size: 14px;
}

.operator-meta {
  margin: 2px 0 0;
  font-size: 11px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.operator-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.operator-count.total {
  background: #e2e8f0;
  color: #0f172a;
}

.operator-count.available {
  background: #dcfce7;
  color: #166534;
}

.operator-count.assigned {
  background: #ffedd5;
  color: #9a3412;
}

.operator-count.deactivated {
  background: #fee2e2;
  color: #991b1b;
}

td button,
td select {
  margin-bottom: 6px;
}

.tag {
  display: inline-block;
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e2e8f0;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.tag.available {
  background: #dcfce7;
  color: #166534;
}

.tag.assigned {
  background: #ffedd5;
  color: #9a3412;
}

.tag.deactivated {
  background: #fee2e2;
  color: #991b1b;
}

.msg {
  margin-top: 10px;
  font-size: 13px;
  color: #0f766e;
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(15, 118, 110, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
}

.error {
  color: #b91c1c;
  background: rgba(239, 68, 68, 0.08);
  border-color: rgba(185, 28, 28, 0.24);
}

.small {
  font-size: 12px;
  color: var(--muted);
}

.list-cards {
  display: none;
}

.entity-card {
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  padding: 12px;
}

.entity-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.entity-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.entity-sub {
  margin: 4px 0 0;
  color: #475569;
  font-size: 12px;
}

.entity-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.entity-item {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 8px;
  background: #fff;
}

.entity-item span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
}

.entity-item strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: #0f172a;
}

.entity-actions {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

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

.employee-actions-inline button {
  width: auto;
  min-width: 92px;
}

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

.assignment-actions-inline button {
  width: auto;
  min-width: 132px;
}

@media (max-width: 1180px) {
  .employee-directory-hero {
    grid-template-columns: 1fr;
  }

  .employee-directory-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-directory-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 980px) {
  .login-wrap,
  .app {
    grid-template-columns: 1fr;
    padding: 14px;
    gap: 14px;
  }

  .login-left {
    padding: 32px 24px;
  }

  .login-left h1 {
    font-size: 36px;
  }

  .login-hero-copy {
    font-size: 15px;
    margin-bottom: 16px;
  }

  .login-hero-grid {
    grid-template-columns: 1fr;
  }

  .row.cols-2,
  .row.cols-3,
  .row.cols-4 {
    grid-template-columns: 1fr;
  }

  .dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-operator-card,
  .dashboard-activity-card {
    grid-column: auto;
  }

  .dashboard-operator-card {
    min-height: 0;
    padding: 24px;
  }

  .toolbar > * {
    width: 100%;
  }

  .inventory-shell {
    padding: 18px;
  }

  .inventory-hero,
  .inventory-controls,
  .employee-form-workbench,
  .employee-directory-hero,
  .employee-directory-controls,
  .assign-workbench,
  .assign-overview-grid {
    grid-template-columns: 1fr;
  }

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

  .employee-directory-meta,
  .employee-card-top {
    flex-direction: column;
  }

  .employee-directory-filter-pills {
    justify-content: flex-start;
  }

  .employee-directory-actions {
    justify-content: flex-start;
  }

  .employee-directory-actions button {
    flex: 1 1 180px;
  }

  .assign-field-grid {
    grid-template-columns: 1fr;
  }

  .inventory-hero {
    padding: 16px;
  }

  .inventory-hero-head,
  .inventory-results-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .employee-form-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .sim-import-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .sim-import-chips {
    min-width: 0;
    justify-content: flex-start;
  }

  .sim-import-actions {
    width: 100%;
    justify-content: stretch;
  }

  .sim-import-actions button {
    width: 100%;
    min-width: 0;
  }

  .assignment-log-hero,
  .history-hero,
  .history-card-top,
  .assignment-card-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .assignment-log-badges,
  .history-badges {
    min-width: 0;
    justify-content: flex-start;
  }

  .assignment-log-controls,
  .assignment-log-results,
  .history-controls,
  .history-results {
    padding: 12px;
  }

  .assignment-card-status {
    justify-items: flex-start;
  }

  .inventory-hero-actions {
    width: 100%;
    min-width: 0;
    justify-content: stretch;
  }

  .inventory-hero-actions button {
    width: 100%;
  }

  .inventory-status-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .inventory-status-tab {
    flex: 0 0 auto;
  }

  .toolbar-assignments .toolbar-search,
  .toolbar-assignments .toolbar-field,
  .toolbar-history .toolbar-search,
  .toolbar-history .toolbar-field,
  .toolbar-actions {
    min-width: 0;
    width: 100%;
    flex-basis: 100%;
  }

  .toolbar-actions {
    margin-left: 0;
    justify-content: stretch;
  }

  .toolbar-actions button {
    width: 100%;
  }

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

  .sidebar {
    position: relative;
    top: auto;
    height: auto;
    max-height: none;
  }

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

  .top-logout {
    width: 100%;
  }

  .action-head {
    flex-direction: column;
    align-items: stretch;
  }

  .action-badges {
    min-width: 0;
    justify-content: flex-start;
  }

  .action-head .panel-title {
    font-size: 21px;
  }

  .form-shell {
    padding: 12px;
  }

  .permissions-grid {
    grid-template-columns: 1fr;
  }

  .form-footer {
    justify-content: stretch;
  }

  .form-actions {
    width: 100%;
    flex-direction: column;
    justify-content: stretch;
  }

  .form-actions button {
    width: 100%;
    min-width: 0;
  }

  .assign-btn {
    max-width: none;
  }

  .table-wrap {
    display: none;
  }

  .operator-dashboard-table .operator-cell {
    gap: 8px;
  }

  .operator-dashboard-table .operator-icon {
    width: 32px;
    height: 32px;
    font-size: 10px;
  }

  .list-cards {
    display: grid;
    gap: 10px;
    margin-top: 10px;
  }

  .entity-grid {
    grid-template-columns: 1fr;
  }

  .inventory-actions,
  .inventory-card-actions {
    min-width: 0;
  }

  .assign-select-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .assign-select-count {
    justify-content: flex-start;
  }

  .assign-select-panel {
    padding: 16px;
    border-radius: 20px;
  }

  .assign-preview-card {
    min-height: 0;
  }

  .inventory-inline-select,
  .inventory-action-btn {
    width: 100%;
    min-width: 0;
  }
}

@media (min-width: 981px) and (max-width: 1280px) {
  .dashboard-main-grid {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .dashboard-operator-card {
    grid-column: 1 / -1;
  }

  .dashboard-activity-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .inventory-summary {
    grid-template-columns: 1fr;
  }

  .employee-directory-stats {
    grid-template-columns: 1fr;
  }

  .inventory-status-tab,
  .employee-directory-badge,
  .employee-filter-pill,
  .assign-select-count,
  .history-badge,
  .inventory-ghost-btn,
  .assignment-log-badge,
  .assignment-date-inline,
  .sim-import-chip,
  .employee-mode-chip {
    width: 100%;
  }

  .action-badge,
  .operator-chip {
    width: 100%;
  }

  .employee-directory-actions button {
    width: 100%;
    min-width: 0;
  }
}
