@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Instrument+Sans:wght@500;600;700&display=swap');

:root {
  --cc-sidebar-width: 272px;
  --cc-sidebar-bg: #0b1f2a;
  --cc-sidebar-mid: #123040;
  --cc-sidebar-text: #9db4c0;
  --cc-sidebar-active: #5eead4;
  --cc-topbar-h: 64px;
  --cc-bg: #eef3f6;
  --cc-bg-pattern: #e6eef2;
  --cc-card: #ffffff;
  --cc-accent: #0f766e;
  --cc-accent-2: #14b8a6;
  --cc-accent-dark: #0d5c56;
  --cc-border: #d7e2e8;
  --cc-text: #10232d;
  --cc-muted: #5f7480;
  --cc-shadow: 0 10px 30px rgba(16, 35, 45, 0.06);
  --cc-radius: 16px;
  --font-ui: "DM Sans", "Segoe UI", sans-serif;
  --font-display: "Instrument Sans", "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html { font-size: 14px; }
@media (min-width: 768px) { html { font-size: 15px; } }

body.app-body {
  margin: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(20, 184, 166, 0.08), transparent 35%),
    radial-gradient(circle at 100% 0%, rgba(15, 118, 110, 0.06), transparent 30%),
    linear-gradient(180deg, #f4f8fa 0%, var(--cc-bg) 100%);
  color: var(--cc-text);
  font-family: var(--font-ui);
  min-height: 100vh;
}

/* ===== Login ===== */
.login-body {
  min-height: 100vh;
  margin: 0;
  font-family: var(--font-ui);
  background: #06151c;
  color: #fff;
}

.login-split {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}

.login-visual {
  position: relative;
  overflow: hidden;
  padding: 3rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background:
    linear-gradient(160deg, rgba(6, 21, 28, 0.35), rgba(6, 21, 28, 0.82)),
    radial-gradient(circle at 20% 20%, rgba(94, 234, 212, 0.35), transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(15, 118, 110, 0.55), transparent 45%),
    linear-gradient(145deg, #0b1f2a, #134e4a 55%, #0f766e);
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: -20% auto auto 40%;
  width: 420px; height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.08);
  animation: floatOrb 10s ease-in-out infinite;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: auto -10% -15% auto;
  width: 360px; height: 360px;
  border-radius: 40% 60% 55% 45%;
  background: rgba(94, 234, 212, 0.12);
  filter: blur(2px);
  animation: floatOrb 12s ease-in-out infinite reverse;
}

.login-visual-content { position: relative; z-index: 1; max-width: 460px; }
.login-visual-content .brand-pill {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
}
.login-visual-content h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  letter-spacing: -0.03em;
}
.login-visual-content p {
  margin: 0;
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  max-width: 36ch;
}

.login-panel {
  background: #f7fafb;
  color: var(--cc-text);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.login-card {
  width: 100%;
  max-width: 420px;
  background: var(--cc-card);
  border-radius: 22px;
  padding: 2rem 2rem 1.75rem;
  box-shadow: var(--cc-shadow);
  border: 1px solid rgba(215, 226, 232, 0.9);
  animation: riseIn 0.45s ease both;
}

.login-brand { margin-bottom: 1.5rem; }
.login-logo {
  width: 52px; height: 52px; margin-bottom: 0.9rem;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--cc-accent-2), var(--cc-accent));
  color: #fff; font-weight: 700; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.28);
}
.login-brand h1 {
  font-family: var(--font-display);
  font-size: 1.65rem; margin: 0; font-weight: 700; letter-spacing: -0.03em;
}
.login-brand p { margin: 0.35rem 0 0; color: var(--cc-muted); }

.login-card .form-label { font-weight: 600; font-size: 0.85rem; color: #34505c; }
.login-card .input-group-text {
  background: #f1f6f8; border-color: var(--cc-border); color: var(--cc-muted);
}
.login-card .form-control {
  border-color: var(--cc-border); padding: 0.7rem 0.85rem;
}
.login-card .form-control:focus {
  border-color: var(--cc-accent-2);
  box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.18);
}
.login-btn {
  padding: 0.75rem; font-weight: 700; border: 0;
  background: linear-gradient(135deg, var(--cc-accent-2), var(--cc-accent));
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.25);
}
.login-btn:hover {
  background: linear-gradient(135deg, #2dd4bf, var(--cc-accent-dark));
}
.login-footnote {
  margin-top: 1.25rem; text-align: center;
  color: var(--cc-muted); font-size: 0.8rem;
}

@keyframes riseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}
@keyframes floatOrb {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

@media (max-width: 991.98px) {
  .login-split { grid-template-columns: 1fr; }
  .login-visual { min-height: 220px; padding: 1.75rem; }
  .login-visual-content h1 { font-size: 1.7rem; }
}

/* ===== App shell ===== */
.app-shell { display: flex; min-height: 100vh; }

.app-sidebar {
  width: var(--cc-sidebar-width);
  background:
    linear-gradient(180deg, rgba(94, 234, 212, 0.06), transparent 28%),
    linear-gradient(180deg, var(--cc-sidebar-bg), var(--cc-sidebar-mid));
  color: var(--cc-sidebar-text);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  z-index: 1040;
  transition: transform 0.25s ease;
  border-right: 1px solid rgba(255,255,255,0.04);
}

.sidebar-brand {
  height: var(--cc-topbar-h);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.15rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(145deg, var(--cc-accent-2), var(--cc-accent));
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.78rem;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.3);
}
.brand-text {
  font-family: var(--font-display);
  font-weight: 700; color: #f8fafc; letter-spacing: -0.02em;
}
.brand-sub { display: block; font-size: 0.7rem; color: #7f99a6; font-weight: 500; }

.sidebar-nav {
  padding: 1rem 0.75rem;
  flex: 1;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 175, 0.45) transparent;
}
.sidebar-nav::-webkit-scrollbar {
  width: 6px;
}
.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}
.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 175, 0.35);
  border-radius: 4px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 175, 0.55);
}

.sidebar-nav .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.8rem;
  color: var(--cc-sidebar-text);
  text-decoration: none;
  border-radius: 11px;
  margin-bottom: 3px;
  font-size: 0.92rem;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.sidebar-nav .nav-link:hover {
  background: rgba(255,255,255,0.06); color: #fff;
  transform: translateX(2px);
}
.sidebar-nav .nav-link.active {
  background: linear-gradient(90deg, rgba(94, 234, 212, 0.18), rgba(94, 234, 212, 0.05));
  color: var(--cc-sidebar-active);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--cc-sidebar-active);
}
.sidebar-nav .nav-link i { font-size: 1.05rem; width: 1.2rem; text-align: center; }

.nav-group { margin-bottom: 3px; }
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.62rem 0.8rem;
  background: transparent;
  border: 0;
  color: var(--cc-sidebar-text);
  border-radius: 11px;
  cursor: pointer;
  font-size: 0.92rem;
  font-family: inherit;
}
.nav-group-toggle:hover { background: rgba(255,255,255,0.06); color: #fff; }
.nav-group-toggle .chevron { margin-left: auto; font-size: 0.75rem; transition: transform 0.2s; }
.nav-group.open .nav-group-toggle .chevron { transform: rotate(180deg); }
.nav-group-items { display: none; padding-left: 0.35rem; }
.nav-group.open .nav-group-items { display: block; animation: riseIn 0.2s ease; }
.nav-group-items .nav-link { font-size: 0.88rem; padding-left: 1.9rem; }

.sidebar-foot {
  flex-shrink: 0;
  padding: 0.9rem 1rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,0.06);
  font-size: 0.75rem;
  color: #6f8794;
}

.app-main {
  margin-left: var(--cc-sidebar-width);
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  height: 100vh;
  overflow: hidden;
}

.app-topbar {
  height: var(--cc-topbar-h);
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(215, 226, 232, 0.9);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0 1.4rem;
  position: sticky;
  top: 0;
  z-index: 100;
}
.sidebar-toggle {
  display: none;
  border: 0; background: #eef5f7; width: 40px; height: 40px;
  border-radius: 11px; font-size: 1.25rem; color: var(--cc-text);
}
.topbar-title {
  font-family: var(--font-display);
  font-weight: 700; flex: 1; letter-spacing: -0.02em;
}
.user-btn {
  border: 1px solid var(--cc-border);
  background: #fff;
  border-radius: 999px;
  padding: 0.35rem 0.75rem 0.35rem 0.4rem;
  display: inline-flex; align-items: center; gap: 0.45rem;
  color: var(--cc-text); font-size: 0.88rem;
}
.user-btn i { font-size: 1.35rem; color: var(--cc-accent); }
.badge-sa {
  background: var(--cc-text); color: #fff;
  font-size: 0.62rem; padding: 0.18rem 0.4rem;
  border-radius: 6px; font-weight: 700;
}

.app-content { padding: 1.4rem 1.5rem 2.2rem; animation: riseIn 0.35s ease both; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cc-accent);
  margin: 0;
}
.page-heading {
  font-family: var(--font-display);
  font-size: 1.45rem; font-weight: 700; margin-bottom: 1rem;
  letter-spacing: -0.02em;
}
.page-toolbar {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1rem; margin-bottom: 1.1rem; flex-wrap: wrap;
}
.page-card {
  background: var(--cc-card);
  border: 1px solid rgba(215, 226, 232, 0.95);
  border-radius: var(--cc-radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--cc-shadow);
}
.table-card { padding: 0; overflow: hidden; }
.form-card { max-width: 960px; }
.form-card.form-card-full {
  max-width: none;
  width: 100%;
}
.embed-content .form-card-full {
  margin-left: 0;
  margin-right: 0;
}
.form-card-head { margin-bottom: 1.25rem; }
.form-section {
  padding: 1.1rem 0;
  border-top: 1px dashed var(--cc-border);
}
.form-section:first-of-type { border-top: 0; padding-top: 0; }
.form-section-title {
  font-size: 0.92rem; font-weight: 700; margin: 0 0 0.9rem; color: #2c4652;
}
.form-actions {
  display: flex; gap: 0.65rem; margin-top: 1.25rem; padding-top: 1rem;
  border-top: 1px solid var(--cc-border);
}

.form-label { font-weight: 600; font-size: 0.84rem; color: #3b5561; }
.form-control, .form-select {
  border-radius: 10px; border-color: var(--cc-border); padding: 0.62rem 0.8rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--cc-accent-2);
  box-shadow: 0 0 0 0.2rem rgba(20, 184, 166, 0.15);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cc-accent-2), var(--cc-accent));
  border: 0; font-weight: 600;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #2dd4bf, var(--cc-accent-dark));
}
.btn-glow { box-shadow: 0 8px 18px rgba(15, 118, 110, 0.22); }
.btn-ghost {
  border: 1px solid var(--cc-border); background: #fff; color: #35515d;
  border-radius: 0.5rem; padding: 0.45rem 0.9rem; text-decoration: none;
}
.btn-ghost:hover { background: #f3f8fa; color: var(--cc-text); }
.btn-soft {
  border: 1px solid #cfe3e2; background: #f2fbfa; color: var(--cc-accent);
  font-weight: 600;
}
.btn-soft:hover { background: #e6f7f5; color: var(--cc-accent-dark); }

.table-modern { margin: 0; }
.table-modern thead th {
  background: #f5fafb;
  color: #5d7581;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-bottom: 1px solid var(--cc-border);
  padding: 0.85rem 1rem;
  white-space: nowrap;
}
.table-modern tbody td {
  padding: 0.9rem 1rem;
  border-color: #eef3f5;
  vertical-align: middle;
}
.table-modern tbody tr:hover { background: #f7fbfc; }
.code-chip {
  display: inline-block;
  background: #eef7f6;
  color: var(--cc-accent-dark);
  border: 1px solid #cfe8e4;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  font-weight: 700;
  font-size: 0.8rem;
}
.cell-title { font-weight: 600; }
.cell-sub { font-size: 0.78rem; color: var(--cc-muted); margin-top: 0.1rem; }
.empty-row { text-align: center; color: var(--cc-muted); padding: 2.5rem 1rem !important; }

.status-badge {
  display: inline-flex; align-items: center;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
}
.badge-working { background: #dcfce7; color: #166534; }
.badge-resign { background: #fef3c7; color: #92400e; }
.badge-blacklist { background: #fee2e2; color: #991b1b; }

/* Dashboard */
.dashboard-welcome {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 20%, rgba(94, 234, 212, 0.28), transparent 35%),
    linear-gradient(135deg, #0f766e 0%, #115e59 45%, #134e4a 100%);
  color: #fff;
  border-radius: 20px;
  padding: 1.75rem 1.85rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 16px 36px rgba(15, 118, 110, 0.22);
}
.dashboard-welcome::after {
  content: "";
  position: absolute;
  right: -40px; top: -40px;
  width: 180px; height: 180px;
  border-radius: 40%;
  background: rgba(255,255,255,0.08);
}
.dashboard-welcome h2 {
  position: relative; z-index: 1;
  margin: 0 0 0.4rem; font-size: 1.6rem;
  font-family: var(--font-display); letter-spacing: -0.02em;
}
.dashboard-welcome .text-muted,
.dashboard-welcome p { position: relative; z-index: 1; color: rgba(255,255,255,0.86) !important; margin: 0; }

.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1rem;
}
.dash-tile {
  background: var(--cc-card);
  border: 1px solid rgba(215, 226, 232, 0.95);
  border-radius: var(--cc-radius);
  padding: 1.2rem 1.3rem;
  display: flex; gap: 1rem; align-items: center;
  box-shadow: var(--cc-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.dash-tile:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(16, 35, 45, 0.1);
}
.dash-tile .icon-wrap {
  width: 48px; height: 48px; border-radius: 14px;
  display: grid; place-items: center;
  background: linear-gradient(145deg, #ccfbf1, #99f6e4);
  color: var(--cc-accent-dark);
  font-size: 1.35rem;
}
.dash-tile h3 { margin: 0; font-size: 1.02rem; font-family: var(--font-display); }
.dash-tile p { margin: 0.2rem 0 0; color: var(--cc-muted); font-size: 0.85rem; }

.cc-verification-search {
  border-radius: var(--cc-radius);
  box-shadow: var(--cc-shadow);
}

.alert-success {
  border: 0; background: #ecfdf5; color: #065f46;
  border-radius: 12px;
}

.perm-table th { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--cc-muted); }
.perm-table thead .perm-head {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  white-space: nowrap;
}

@media (max-width: 991.98px) {
  .app-sidebar { transform: translateX(-100%); }
  .app-sidebar.open { transform: translateX(0); box-shadow: 20px 0 40px rgba(0,0,0,0.25); }
  .app-main { margin-left: 0; }
  .sidebar-toggle { display: inline-flex; align-items: center; justify-content: center; }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem rgba(20, 184, 166, 0.28);
}

/* ===== Multi-task tabs + embed ===== */
.task-bar {
  display: flex;
  align-items: stretch;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem 0;
  background: #e8f0f3;
  border-bottom: 1px solid var(--cc-border);
  min-height: 42px;
}
.task-tabs {
  display: flex;
  flex: 1;
  gap: 0.3rem;
  overflow-x: auto;
  padding-bottom: 0;
}
.task-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid transparent;
  border-bottom: 0;
  background: rgba(255,255,255,0.55);
  color: #456472;
  border-radius: 10px 10px 0 0;
  padding: 0.45rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
  max-width: 220px;
}
.task-tab:hover { background: #fff; color: var(--cc-text); }
.task-tab.active {
  background: #fff;
  color: var(--cc-accent-dark);
  border-color: var(--cc-border);
  box-shadow: 0 -2px 0 var(--cc-accent-2) inset;
}
.task-tab-title { overflow: hidden; text-overflow: ellipsis; }
.task-tab-close {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; line-height: 1; color: #7a929e;
}
.task-tab-close:hover { background: #fee2e2; color: #b91c1c; }
.task-close-all {
  border: 0; background: transparent; color: #7a929e;
  padding: 0 0.55rem; border-radius: 8px;
}
.task-close-all:hover { background: #fff; color: #b91c1c; }

.task-frames {
  flex: 1 1 0;
  min-height: 0;
  position: relative;
  background: var(--cc-bg);
  overflow: hidden;
}
.task-frame {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}
.task-frame.active { display: block; z-index: 1; }
.task-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  background: var(--cc-bg);
}

.app-main { min-height: 100vh; }
.app-content { display: none; } /* shell uses iframes */

.embed-body {
  margin: 0;
  background: transparent;
  font-family: var(--font-ui);
  color: var(--cc-text);
  min-height: 100%;
}
.embed-content { padding: 1.1rem 1.25rem 1.75rem; }

.filter-bar {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--cc-border);
  background: #f7fbfc;
}
.table-filter-row th {
  padding: 0.35rem 0.5rem;
  background: #f0f6f8;
  border-bottom: 1px solid var(--cc-border);
  vertical-align: middle;
}
.table-filter-row .form-control,
.table-filter-row .form-select {
  min-width: 4.5rem;
}
.table-foot {
  background: #fafcfd;
}
.list-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  color: var(--cc-muted);
}
.pager-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #e8f4f8;
  color: var(--cc-text);
  font-weight: 500;
  white-space: nowrap;
}
.pager-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  flex: 1 1 auto;
  justify-content: center;
}
.pager-round {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--cc-border);
  background: #fff;
  color: var(--cc-text);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pager-round:hover:not(.is-disabled):not(.is-active) {
  border-color: var(--cc-accent);
  color: var(--cc-accent);
}
.pager-round.is-active {
  background: var(--cc-accent);
  border-color: var(--cc-accent-dark);
  color: #fff;
}
.pager-round.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  background: #f3f6f7;
}
.pager-size-form { margin-left: auto; }
.pager-size-select {
  width: auto;
  min-width: 4.25rem;
  border-radius: 999px;
  padding-left: 0.85rem;
  padding-right: 1.75rem;
  background-color: #e8f4f8;
  border-color: transparent;
  font-weight: 600;
}
.quick-range .btn-primary {
  background: var(--cc-accent);
  border-color: var(--cc-accent-dark);
}
.emp-filter-compact { display: flex; flex-direction: column; gap: 0.45rem; }
.emp-filter-compact .quick-range { margin-bottom: 0 !important; }
.emp-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.emp-filter-row .form-control,
.emp-filter-row .form-select {
  width: auto;
  min-width: 7.2rem;
  max-width: 11rem;
  flex: 1 1 7.2rem;
}
.sort-link {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.sort-link:hover { color: var(--cc-accent); }

/* Checkbox multi-select (search + select all) */
.cc-ms { position: relative; width: 100%; }
.cc-ms-toggle {
  display: flex;
  align-items: center;
  min-height: calc(1.5em + 0.75rem + 2px);
  cursor: pointer;
  background-color: #fff;
}
.cc-ms-toggle:disabled { cursor: not-allowed; opacity: 0.65; }
.cc-ms.is-disabled .cc-ms-toggle { pointer-events: none; opacity: 0.55; }
.cc-ms-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cc-ms-panel {
  position: absolute;
  z-index: 1050;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 14rem;
  background: #fff;
  border: 1px solid var(--cc-border);
  border-radius: 10px;
  box-shadow: var(--cc-shadow);
  padding: 0.5rem 0.65rem 0.65rem;
}
.cc-ms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid var(--cc-border);
}
.cc-ms-title { font-weight: 600; font-size: 0.95rem; color: var(--cc-text); }
.cc-ms-close {
  font-size: 1.25rem;
  line-height: 1;
  color: var(--cc-muted);
  text-decoration: none;
}
.cc-ms-close:hover { color: var(--cc-text); }
.cc-ms-search { margin-bottom: 0.5rem; }
.cc-ms-list { max-height: 220px; overflow-y: auto; }
.cc-ms-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.15rem;
  margin: 0;
  cursor: pointer;
  font-size: 0.95rem;
}
.cc-ms-item:hover { background: #f4f8fa; border-radius: 6px; }
.cc-ms-item-all { font-weight: 500; border-bottom: 1px solid #eef3f6; margin-bottom: 0.25rem; padding-bottom: 0.45rem; }
