/* CLMS portal — shell + Employee Master parity for list page */
:root {
  --clms-accent: #0f6b5c;
  --clms-accent-dark: #0a4f44;
  --clms-soft: #eef2f7;
}

.clms-login-page {
  background: linear-gradient(160deg, #0f6b5c 0%, #1a3a4a 55%, #0b1f2a 100%);
}

.card-clms {
  border-top-color: var(--clms-accent) !important;
}

.btn-clms {
  background-color: var(--clms-accent);
  border-color: var(--clms-accent);
  color: #fff;
}

.clms-contractor-login .card-clms {
  border-top-color: #b45309 !important;
}

.clms-contractor-login .btn-clms {
  background-color: #b45309;
  border-color: #b45309;
}

.clms-contractor-login .btn-clms:hover {
  background-color: #92400e;
  border-color: #92400e;
}


.clms-sidebar .brand-link {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.clms-brand-link {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.9rem;
}

.clms-brand-logo {
  width: 33px;
  height: 33px;
  max-height: 33px;
  opacity: 0.95;
  margin-left: 0.35rem;
  margin-right: 0.45rem !important;
}

.clms-brand-link .brand-text {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #fff !important;
}

.clms-user-panel {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 0.5rem;
  margin-right: 0.5rem;
}

.clms-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(145deg, #38bdf8, #2563eb);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.clms-user-panel .info {
  padding-left: 0.65rem;
  line-height: 1.2;
}

.clms-shell .main-sidebar {
  background-color: #1f2d3d;
}

/* ---- Modern Home dashboard ---- */
.clms-dash {
  padding: 1rem 1.15rem 1.75rem;
}

.clms-dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.35rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(1200px 280px at 10% -40%, rgba(56, 189, 248, 0.35), transparent 55%),
    linear-gradient(135deg, #0f766e 0%, #1e3a5f 55%, #1f2d3d 100%);
}

.clms-dash-eyebrow {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.clms-dash-hero h1 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 700;
}

.clms-dash-sub {
  margin: 0.25rem 0 0;
  opacity: 0.85;
  font-size: 0.9rem;
}

.clms-dash-hero-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.clms-dash-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
}

.clms-dash-alert span {
  display: block;
  font-size: 0.85rem;
  color: #b91c1c;
  opacity: 0.9;
}

.clms-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.clms-kpi {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.05rem;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #e8eef5;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  text-decoration: none !important;
  color: inherit;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

a.clms-kpi:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  color: inherit;
}

.clms-kpi-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 1.05rem;
}

.clms-kpi.is-blue .clms-kpi-icon { background: linear-gradient(145deg, #60a5fa, #2563eb); }
.clms-kpi.is-teal .clms-kpi-icon { background: linear-gradient(145deg, #2dd4bf, #0f766e); }
.clms-kpi.is-green .clms-kpi-icon { background: linear-gradient(145deg, #34d399, #059669); }
.clms-kpi.is-red .clms-kpi-icon { background: linear-gradient(145deg, #f87171, #dc2626); }
.clms-kpi.is-orange .clms-kpi-icon { background: linear-gradient(145deg, #fb923c, #ea580c); }
.clms-kpi.is-amber .clms-kpi-icon { background: linear-gradient(145deg, #fbbf24, #d97706); }
.clms-kpi.is-purple .clms-kpi-icon { background: linear-gradient(145deg, #c084fc, #7c3aed); }
.clms-kpi.is-slate .clms-kpi-icon { background: linear-gradient(145deg, #94a3b8, #475569); }

.clms-kpi-value {
  font-size: 1.55rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}

.clms-kpi-label {
  font-size: 0.88rem;
  color: #334155;
  margin-top: 0.15rem;
}

.clms-kpi-meta {
  font-size: 0.75rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.clms-dash-main {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.clms-dash-side {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.clms-dash-bottom {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.85rem;
}

.clms-dash-card {
  background: #fff;
  border: 1px solid #e8eef5;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  padding: 1rem 1.1rem 1.15rem;
}

.clms-dash-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
}

.clms-dash-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.clms-dash-card-head p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.clms-dash-chart-wrap {
  position: relative;
  height: 280px;
}

.clms-dash-chart-sm {
  height: 210px;
}

.clms-quicklinks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.clms-quicklinks a {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.65rem 0.7rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  color: #334155;
  font-size: 0.86rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.clms-quicklinks a:hover {
  background: #ecfeff;
  border-color: #99f6e4;
  color: #0f766e;
}

.clms-quicklinks i {
  width: 1rem;
  text-align: center;
  color: #64748b;
}

.clms-dash-cta h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.clms-dash-cta p {
  color: #64748b;
  margin-bottom: 1rem;
}

@media (max-width: 1199.98px) {
  .clms-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clms-dash-main,
  .clms-dash-bottom {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .clms-dash-hero {
    flex-direction: column;
    align-items: flex-start;
  }

  .clms-kpi-grid {
    grid-template-columns: 1fr;
  }

  .clms-quicklinks {
    grid-template-columns: 1fr;
  }
}


.clms-shell.clms-admin-host-mode .content-wrapper.clms-admin-host-content {
  padding: 0 !important;
  overflow: hidden;
}

.clms-admin-host {
  height: calc(100vh - 57px);
  margin: 0;
  padding: 0;
  overflow: hidden;
}

.clms-admin-host iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  background: #fff;
}


.clms-shell .nav-sidebar .nav-treeview {
  padding-left: 0.25rem;
}

.clms-shell .nav-sidebar .nav-treeview .nav-treeview {
  padding-left: 0.75rem;
}

/* LivIcons — match Admin sidebar sizing (site-master already styles .livicon) */
.clms-shell .main-sidebar .nav-sidebar .nav-link > i.livicon {
  font-size: 0 !important;
}

.clms-shell .main-sidebar .nav-sidebar .nav-link > i.livicon svg,
.clms-shell .main-sidebar .nav-sidebar .nav-link > i.livicon > div {
  display: block !important;
  overflow: visible !important;
}

.clms-shell .main-sidebar .nav-sidebar .nav-link.active > i.nav-icon,
.clms-shell .main-sidebar .nav-sidebar .nav-link:hover > i.nav-icon {
  color: #ffffff !important;
}

.clms-shell .main-sidebar .nav-sidebar .nav-link.text-danger > i.nav-icon {
  color: #f87171 !important;
}

.clms-shell .content-wrapper {
  background: var(--clms-soft);
}

/* Admin-style top tab bar */
.clms-topbar {
  min-height: 48px;
  z-index: 1035;
}

.clms-topbar .navbar-nav .nav-link {
  white-space: nowrap;
  border-top: 3px solid transparent;
  color: #6c757d;
  padding: 0.7rem 1rem;
}

.clms-topbar .navbar-nav .nav-link.active {
  background: #fff;
  color: #343a40;
  border-top-color: #007bff;
  font-weight: 600;
}

.clms-topbar-user {
  font-size: 0.85rem;
  padding: 0 6px;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.clms-shell #clmsCompanyPanel {
  position: absolute;
  right: 0;
  left: auto;
  top: calc(100% + 4px);
  z-index: 1050;
  min-width: 280px;
  max-width: 360px;
}

.clms-shell #clmsCompanyPanel.show {
  display: block;
}

.clms-shell .master-company-search-wrap {
  order: -1;
}

.ajax-filter-popover .afp-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid #dee2e6;
  background: #f8f9fa;
}

/* Employees page — fill shell without shrinking (employee-master.css body rules) */
.clms-emp-mode .content-wrapper.clms-emp-content {
  /* AdminLTE already owns margin-left; do not re-set 250px (causes shrink on pushmenu) */
  padding: 0 !important;
  background: #eef2f7;
}

.clms-emp-mode .main-footer {
  display: none;
}

body.clms-shell.clms-emp-mode {
  padding: 0 !important;
  margin: 0 !important;
  overflow: auto !important;
  height: auto !important;
  min-height: 100vh;
  background: #eef2f7 !important;
}

body.clms-shell.clms-emp-mode .wrapper {
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh;
}

body.clms-shell.clms-emp-mode .content-wrapper {
  min-height: calc(100vh - 57px) !important;
}

/* Modern CLMS employee master shell */
.clms-em-page.em-page {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: none;
  height: auto !important;
  min-height: calc(100vh - 57px);
  padding: 0.85rem 1rem 1.25rem !important;
  margin: 0;
  background: transparent;
  box-sizing: border-box;
}

.clms-em-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
  padding: 1.05rem 1.2rem;
  border-radius: 14px;
  color: #fff;
  background:
    radial-gradient(900px 220px at 8% -40%, rgba(56, 189, 248, 0.35), transparent 55%),
    linear-gradient(135deg, #0f766e 0%, #1e3a5f 58%, #1f2d3d 100%);
}

.clms-em-hero h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
}

.clms-em-hero p {
  margin: 0.25rem 0 0;
  opacity: 0.88;
  font-size: 0.9rem;
}

.clms-em-hero-meta {
  text-align: right;
  font-size: 0.85rem;
  opacity: 0.9;
}

.clms-em-hero-meta strong {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
}

.clms-em-hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
}

.clms-em-hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: flex-end;
}

.clms-em-hero-btns .btn {
  white-space: nowrap;
}

.clms-emp-row-menu .dropdown-menu {
  font-size: 0.88rem;
}

.clms-em-page .em-main {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.clms-em-page .em-grid-wrap {
  flex: 1;
  min-height: 420px;
  height: auto !important;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

.clms-em-page .em-table-scroll {
  flex: 1;
  min-height: 280px;
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.clms-em-page .em-grid thead .em-head-row th {
  background: #0f766e !important;
  border-color: #0d9488 !important;
}

.clms-em-page .em-page-btn.is-active {
  background: #0f766e;
  color: #fff;
  border-color: #0f766e;
  border-radius: 999px;
}

.clms-em-page .em-page-btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.clms-em-page a.em-page-btn {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.clms-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.clms-status-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.clms-status-pill.is-working {
  background: #d1e7dd;
  color: #0f5132;
}

.clms-status-pill.is-resign {
  background: #f8d7da;
  color: #842029;
}

.clms-cat-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  background: #ffe8cc;
  color: #9a3412;
  font-size: 12px;
  font-weight: 600;
}

.clms-em-page tr.row-resign {
  background: #fff8e7 !important;
}

.clms-em-page tr.is-selected {
  background: #ecfdf5 !important;
}

.clms-emp-name {
  display: inline-flex;
  align-items: center;
  font-weight: 600;
  color: #0f172a;
}

.clms-em-page .em-footer {
  border-top: 1px solid #eef2f7;
  background: #f8fafc;
}

/* —— Compliance —— */
.clms-comp-page {
  padding: 0.85rem 1rem 1.5rem;
  max-width: none;
  width: 100%;
  box-sizing: border-box;
}

.clms-comp-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.clms-comp-hero h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.clms-comp-hero p {
  margin: 0.35rem 0 0;
  color: #64748b;
  font-size: 0.9rem;
  max-width: none;
}

.clms-comp-hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.clms-comp-hero-chip:hover {
  background: #ffedd5;
  color: #9a3412;
  text-decoration: none;
}

.clms-comp-alert {
  border-radius: 10px;
}

.clms-comp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
  width: 100%;
}

.clms-comp-grid {
  margin-left: 0 !important;
  margin-right: 0 !important;
  width: 100%;
}

.clms-comp-stat {
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  border-left: 4px solid #94a3b8;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.clms-comp-stat:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.clms-comp-stat.is-active {
  background: #f0fdfa;
  border-color: #5eead4;
}

.clms-comp-stat.is-danger { border-left-color: #ef4444; }
.clms-comp-stat.is-warn { border-left-color: #f59e0b; }
.clms-comp-stat.is-ok { border-left-color: #10b981; }
.clms-comp-stat.is-pending { border-left-color: #f97316; }

.clms-comp-stat-num {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}

.clms-comp-stat-label {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clms-comp-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.clms-comp-card-head {
  padding: 1rem 1.15rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.clms-comp-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #0f172a;
}

.clms-comp-card-head p {
  margin: 0.3rem 0 0.65rem;
  font-size: 0.82rem;
  color: #64748b;
}

.clms-comp-form {
  padding: 0.85rem 1.15rem 1.15rem;
}

.clms-comp-form .form-group {
  margin-bottom: 0.85rem;
}

.clms-comp-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.clms-comp-form .form-control {
  border-radius: 8px;
  border-color: #cbd5e1;
}

.clms-comp-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.clms-comp-file-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1.5px dashed #94a3b8;
  border-radius: 10px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.85rem;
  cursor: pointer;
  margin: 0;
}

.clms-comp-file-label:hover {
  border-color: var(--clms-accent);
  background: #f0fdfa;
  color: var(--clms-accent-dark);
}

.clms-comp-submit {
  margin-top: 0.35rem;
  border-radius: 8px;
  padding: 0.55rem 1rem;
  font-weight: 600;
}

.clms-comp-table {
  font-size: 0.9rem;
}

.clms-comp-table thead th {
  border-top: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  background: #f8fafc;
  white-space: nowrap;
}

.clms-comp-table td {
  vertical-align: middle;
  border-top-color: #f1f5f9;
}

.clms-comp-title {
  font-weight: 600;
  color: #0f172a;
}

.clms-comp-meta {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-top: 0.15rem;
}

.clms-comp-dot {
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: #10b981;
}

.clms-comp-dot.is-danger { background: #ef4444; }
.clms-comp-dot.is-warn { background: #f59e0b; }
.clms-comp-dot.is-ok { background: #10b981; }
.clms-comp-dot.is-rejected { background: #94a3b8; }
.clms-comp-dot.is-pending { background: #f97316; }

.clms-comp-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.clms-comp-badge.is-danger { background: #fee2e2; color: #b91c1c; }
.clms-comp-badge.is-warn { background: #fef3c7; color: #b45309; }
.clms-comp-badge.is-ok { background: #d1fae5; color: #047857; }
.clms-comp-badge.is-pending { background: #ffedd5; color: #c2410c; }
.clms-comp-badge.is-rejected { background: #f1f5f9; color: #64748b; }

.clms-comp-file-link {
  color: var(--clms-accent);
  font-size: 0.85rem;
  text-decoration: none;
  max-width: 10rem;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.clms-comp-file-link:hover {
  color: var(--clms-accent-dark);
  text-decoration: underline;
}

.clms-comp-actions .btn {
  margin-left: 0.25rem;
}

.clms-comp-cat-add {
  margin-bottom: 0.75rem;
}

.clms-comp-cat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.clms-comp-cat-list li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.65rem;
  background: #f1f5f9;
  border-radius: 999px;
  font-size: 0.82rem;
  color: #334155;
}

.clms-comp-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 1.15rem;
  border-bottom: 1px solid #f1f5f9;
}

.clms-comp-filter {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  text-decoration: none;
}

.clms-comp-filter:hover {
  color: var(--clms-accent-dark);
  border-color: #99f6e4;
  text-decoration: none;
}

.clms-comp-filter.is-active {
  background: #ecfdf5;
  color: var(--clms-accent-dark);
  border-color: #5eead4;
}

.clms-comp-overdue-alert {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  text-decoration: none;
  font-size: 0.92rem;
}

.clms-comp-overdue-alert:hover {
  background: #fee2e2;
  color: #7f1d1d;
  text-decoration: none;
}

.clms-comp-overdue-alert .ml-auto {
  margin-left: auto;
}

.clms-comp-check {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
  margin: 0;
  cursor: pointer;
}

.clms-comp-period-filter {
  border-bottom: 1px solid #f1f5f9;
}

.clms-comp-period-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
}

.clms-comp-period-input {
  width: auto;
  max-width: 11rem;
  border-radius: 8px;
}

.clms-comp-row-overdue {
  background: #fff7f7;
}

@media (max-width: 991.98px) {
  .clms-comp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .clms-comp-hero {
    flex-direction: column;
  }
}

/* —— Exit desk —— */
.clms-exit-page {
  padding: 0.85rem 1rem 1.75rem;
  width: 100%;
  box-sizing: border-box;
}

.clms-exit-hero h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.clms-exit-hero p {
  margin: 0.35rem 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.clms-exit-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.clms-exit-stat {
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.clms-exit-stat:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.clms-exit-stat.is-active {
  border-color: #5eead4;
  background: #f0fdfa;
}

.clms-exit-stat.is-warn { border-left-color: #f59e0b; }
.clms-exit-stat.is-danger { border-left-color: #ef4444; }
.clms-exit-stat.is-muted { border-left-color: #64748b; }

.clms-exit-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}

.clms-exit-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clms-exit-filters {
  margin-bottom: 0.75rem;
}

.clms-exit-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.clms-exit-search {
  flex: 1 1 220px;
  min-width: 180px;
  border-radius: 8px;
}

.clms-exit-select {
  width: auto;
  min-width: 150px;
  border-radius: 8px;
}

.clms-exit-bulk {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.75rem;
  background: #fff;
  border: 1px solid #fecaca;
  border-radius: 12px;
  position: sticky;
  top: 0;
  z-index: 5;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.clms-exit-bulk-left {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  flex: 1;
}

.clms-exit-selected {
  font-weight: 700;
  color: #b91c1c;
  min-width: 5.5rem;
  padding-bottom: 0.45rem;
}

.clms-exit-bulk-field {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
}

.clms-exit-bulk-field span {
  display: block;
  margin-bottom: 0.2rem;
}

.clms-exit-bulk-field .form-control {
  border-radius: 8px;
  min-width: 140px;
}

.clms-exit-bulk-reason {
  flex: 1 1 180px;
}

.clms-exit-bulk-reason .form-control {
  min-width: 180px;
  width: 100%;
}

.clms-exit-bulk-check {
  margin: 0;
  padding-bottom: 0.45rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.clms-exit-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.clms-exit-card-head {
  padding: 1rem 1.15rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.clms-exit-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #0f172a;
}

.clms-exit-card-head p {
  margin: 0.3rem 0 0.5rem;
  font-size: 0.82rem;
  color: #64748b;
}

.clms-exit-table thead th {
  border-top: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  background: #f8fafc;
  white-space: nowrap;
}

.clms-exit-table td {
  vertical-align: middle;
  border-top-color: #f1f5f9;
  font-size: 0.9rem;
}

.clms-exit-row.is-danger {
  background: #fff7f7;
}

.clms-exit-row.is-warn {
  background: #fffbeb;
}

.clms-exit-name {
  font-weight: 600;
  color: #0f172a;
}

.clms-exit-meta {
  font-size: 0.78rem;
  color: #94a3b8;
}

.clms-exit-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
}

.clms-exit-badge.is-danger { background: #fee2e2; color: #b91c1c; }
.clms-exit-badge.is-warn { background: #fef3c7; color: #b45309; }
.clms-exit-badge.is-ok { background: #d1fae5; color: #047857; }

.clms-exit-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1.15rem;
  border-top: 1px solid #f1f5f9;
  background: #fafbfc;
}

.clms-exit-pager-info {
  font-size: 0.85rem;
  color: #64748b;
}

.clms-exit-pager-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

@media (max-width: 991.98px) {
  .clms-exit-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Rejoin desk —— */
.clms-rejoin-page {
  padding: 0.85rem 1rem 1.75rem;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

.clms-rejoin-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.35rem;
}

.clms-rejoin-hero h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.clms-rejoin-hero p {
  margin: 0.35rem 0 1rem;
  color: #64748b;
  font-size: 0.9rem;
}

.clms-rejoin-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.clms-rejoin-stat {
  background: #fff;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  border: 1px solid #e2e8f0;
  border-left: 4px solid #94a3b8;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.15s ease, background 0.15s ease;
}

.clms-rejoin-stat:hover {
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.clms-rejoin-stat.is-active {
  background: #f0fdfa;
  border-color: #5eead4;
}

.clms-rejoin-stat.is-ok { border-left-color: #10b981; }
.clms-rejoin-stat.is-danger { border-left-color: #ef4444; }

.clms-rejoin-stat-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
  color: #0f172a;
}

.clms-rejoin-stat-label {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.clms-rejoin-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.clms-rejoin-search .form-control {
  flex: 1 1 240px;
  border-radius: 8px;
  min-width: 200px;
}

.clms-rejoin-pagesize {
  flex: 0 0 120px !important;
  max-width: 140px;
}

.clms-rejoin-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  width: 100%;
}

.clms-rejoin-list-card {
  width: 100%;
}

.clms-rejoin-form-panel {
  display: none;
  margin-bottom: 1rem;
  width: 100%;
}

.clms-rejoin-form-panel.is-open {
  display: block;
}

.clms-rejoin-form-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.clms-rejoin-form-inline .clms-rejoin-form-grid {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) repeat(3, minmax(140px, 1fr)) auto;
  gap: 0.75rem;
  align-items: end;
}

.clms-rejoin-form-actions {
  display: flex;
  align-items: flex-end;
  padding-bottom: 0.15rem;
}

.clms-rejoin-card-head {
  padding: 1rem 1.15rem 0.65rem;
  border-bottom: 1px solid #f1f5f9;
}

.clms-rejoin-card-head h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #0f172a;
}

.clms-rejoin-card-head p {
  margin: 0.3rem 0 0.5rem;
  font-size: 0.82rem;
  color: #64748b;
}

.clms-rejoin-table {
  width: 100%;
  margin-bottom: 0;
}

.clms-rejoin-table thead th {
  border-top: 0;
  border-bottom: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  background: #f8fafc;
  white-space: nowrap;
}

.clms-rejoin-table td {
  vertical-align: middle;
  border-top-color: #f1f5f9;
  font-size: 0.9rem;
}

.clms-rejoin-row.is-eligible {
  cursor: pointer;
}

.clms-rejoin-row.is-eligible:hover {
  background: #f0fdfa;
}

.clms-rejoin-row.is-selected {
  background: #ecfdf5 !important;
  box-shadow: inset 3px 0 0 var(--clms-accent);
}

.clms-rejoin-row.is-blocked {
  background: #fff7f7;
  opacity: 0.92;
  cursor: not-allowed;
}

.clms-rejoin-name {
  font-weight: 600;
  color: #0f172a;
}

.clms-rejoin-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.clms-rejoin-dates {
  white-space: nowrap;
  font-size: 0.82rem;
}

.clms-rejoin-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
}

.clms-rejoin-badge.is-ok { background: #d1fae5; color: #047857; }
.clms-rejoin-badge.is-danger { background: #fee2e2; color: #b91c1c; }

.clms-rejoin-form {
  padding: 0.85rem 1.15rem 1.15rem;
}

.clms-rejoin-form .form-group {
  margin-bottom: 0.85rem;
}

.clms-rejoin-form-inline .form-group {
  margin-bottom: 0;
}

.clms-rejoin-form label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #334155;
}

.clms-rejoin-form .form-control {
  border-radius: 8px;
}

.clms-rejoin-selected {
  margin-bottom: 0;
  border-radius: 10px;
  border: 1.5px dashed #cbd5e1;
  background: #f8fafc;
  min-height: 3.4rem;
  display: flex;
  align-items: center;
  padding: 0.55rem 0.85rem;
}

.clms-rejoin-selected-empty {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: #94a3b8;
  font-size: 0.88rem;
}

.clms-rejoin-selected-empty i {
  font-size: 1.25rem;
  color: #5eead4;
}

.clms-rejoin-selected-info {
  width: 100%;
}

.clms-rejoin-selected-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #64748b;
  font-weight: 650;
}

.clms-rejoin-selected-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0.15rem;
}

.clms-rejoin-selected-code {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 0.2rem;
}

.clms-rejoin-pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid #f1f5f9;
}

.clms-rejoin-pager-info {
  font-size: 0.85rem;
  color: #64748b;
}

.clms-rejoin-pager-links {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

@media (max-width: 991.98px) {
  .clms-rejoin-stats {
    grid-template-columns: 1fr;
  }

  .clms-rejoin-form-inline .clms-rejoin-form-grid {
    grid-template-columns: 1fr;
  }

  .clms-rejoin-hero {
    flex-direction: column;
  }
}

