/*
===========================================================
  VMS BLUE-WHITE THEME — vms-theme.css
  Skyper Business Solutions
  Bootstrap 5 + Custom CSS Combined
===========================================================
*/

/* ── Google Fonts loaded in HTML ── */
/* Sora + DM Sans */

:root {
  --blue-900: #0B1E3D;
  --blue-800: #0F2A52;
  --blue-700: #1A3E72;
  --blue-600: #1D5CB4;
  --blue-500: #2272D8;
  --blue-400: #4A90E2;
  --blue-300: #7DB6F5;
  --blue-100: #D6E9FF;
  --blue-50: #EBF4FF;
  --white: #FFFFFF;
  --gray-50: #F4F7FB;
  --gray-100: #E8EEF6;
  --gray-200: #D0DCEE;
  --gray-400: #7A95B8;
  --gray-600: #4A6585;
  --green: #2DC77C;
  --red: #E5404A;
  --amber: #F5A623;
  --sidebar-w: 240px;
  --topbar-h: 62px;
  --radius: 13px;
  --shadow: 0 2px 14px rgba(11, 30, 61, 0.07);
}

/* ═══════════════════════════════════
   BASE
═══════════════════════════════════ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family: 'DM Sans', sans-serif !important;
  background: var(--gray-50) !important;
  color: var(--blue-900);
  font-size: 14px;
  margin: 0;
  padding: 0;
}

/* ═══════════════════════════════════
   SIDEBAR OVERLAY
═══════════════════════════════════ */
.vms-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 30, 61, 0.55);
  z-index: 190;
  backdrop-filter: blur(2px);
}

.vms-overlay.show {
  display: block;
}

/* Image-Style Premium Forms */
.vms-img-card {
  background: #fff;
  border-radius: 12px;
  border: 1.5px solid #edf2f7;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  margin-top: 20px;
}

.vms-img-header {
  padding: 20px 24px;
  border-bottom: 1.5px solid #edf2f7;
  display: flex;
  align-items: center;
  gap: 12px;
}

.vms-img-icon {
  width: 36px;
  height: 36px;
  background: #eef2ff;
  color: #4f46e5;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.vms-img-title {
  font-size: 16px;
  font-weight: 700;
  color: #1e293b;
}

.vms-img-body {
  padding: 24px;
}

.vms-img-footer {
  padding: 16px 24px;
  background: #f8fafc;
  border-top: 1.5px solid #edf2f7;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.vms-img-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  /* margin-bottom: 8px; */
}

.vms-img-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  font-size: 14px;
  color: #1e293b;
  transition: all 0.2s;
  margin-bottom: 20px;
}

.vms-img-input:focus {
  outline: none;
  border-color: #94a3b8;
  box-shadow: 0 0 0 3px rgba(148, 163, 184, 0.1);
}

.vms-img-input::placeholder {
  color: #cbd5e1;
}

.vms-file-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  background: #f1f5f9;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
}

.vms-file-btn {
  padding: 6px 16px;
  background: #fff;
  border: 1.5px solid #e2e8f0;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.vms-file-text {
  font-size: 13px;
  color: #94a3b8;
}

/* ═══════════════════════════════════
   SIDEBAR
═══════════════════════════════════ */
.vms-sidebar {
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--sidebar-w);
  background: var(--blue-900);
  display: flex;
  flex-direction: column;
  z-index: 200;
  box-shadow: 3px 0 20px rgba(11, 30, 61, 0.22);
  transition: transform 0.28s cubic-bezier(.4, 0, .2, 1);
}

.vms-logo {
  padding: 20px 18px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vms-logo-box {
  display: inline-block;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-300));
  border-radius: 10px;
  padding: 6px 12px;
  font-family: 'Sora', sans-serif;
  font-weight: 800;
  font-size: 15px;
  color: #fff;
  letter-spacing: 3px;
  line-height: 1.3;
  box-shadow: 0 3px 12px rgba(34, 114, 216, 0.4);
}

.vms-logo-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--blue-300);
  letter-spacing: 1.2px;
  text-transform: uppercase;
  margin-top: 6px;
}

.vms-logo-img {
  max-width: 160px;
  max-height: 48px;
  object-fit: contain;
  display: block;
}

.vms-sidebar-close {
  display: none;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: var(--blue-300);
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 18px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.vms-nav-scroll {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.vms-nav-scroll::-webkit-scrollbar {
  width: 0;
}

.vms-nav-section {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--blue-400);
  padding: 16px 18px 6px;
}

.vms-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  margin: 2px 10px;
  border-radius: 9px;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.18s;
  position: relative;
}

.vms-nav-item:hover,
.vms-nav-item:focus {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  text-decoration: none;
}

.vms-nav-item.active {
  background: linear-gradient(135deg, rgba(34, 114, 216, .32), rgba(74, 144, 226, .14));
  color: #fff;
  border: 1px solid rgba(34, 114, 216, .35);
}

.vms-nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 20px;
  background: linear-gradient(180deg, var(--blue-500), var(--blue-300));
  border-radius: 0 3px 3px 0;
}

.vms-nav-icon {
  font-size: 15px;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.vms-nav-arrow {
  margin-left: auto;
  font-size: 10px;
  color: var(--gray-400);
  transition: transform 0.25s;
  display: inline-block;
}

.vms-nav-badge {
  margin-left: auto;
  padding: 1px 7px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
}

/* Master dropdown */
.vms-nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 18px;
  margin: 2px 10px;
  border-radius: 9px;
  color: var(--gray-400);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}

.vms-nav-dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.vms-nav-dropdown-toggle.open {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.vms-nav-dropdown-toggle.open .vms-nav-arrow {
  transform: rotate(90deg);
  color: var(--blue-300);
}

.vms-nav-submenu {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.3s cubic-bezier(.4, 0, .2, 1), opacity 0.25s;
}

.vms-nav-submenu.open {
  max-height: 220px;
  opacity: 1;
}

.vms-nav-sub-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px 9px 44px;
  margin: 1px 10px;
  border-radius: 8px;
  color: var(--gray-400);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.16s;
  position: relative;
}

.vms-nav-sub-item::before {
  content: '';
  position: absolute;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--blue-700);
  transition: background 0.16s;
}

.vms-nav-sub-item:hover,
.vms-nav-sub-item:focus {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  text-decoration: none;
}

.vms-nav-sub-item:hover::before {
  background: var(--blue-400);
}

.vms-nav-sub-item.active-sub {
  color: var(--blue-300);
  background: rgba(34, 114, 216, 0.15);
}

.vms-nav-sub-item.active-sub::before {
  background: var(--blue-300);
}

.vms-sidebar-footer {
  flex-shrink: 0;
  padding: 14px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.vms-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.vms-s-avatar {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.vms-s-name {
  font-size: 12px;
  font-weight: 600;
  color: #fff;
}

.vms-s-role {
  font-size: 10px;
  color: var(--blue-400);
}

/* ═══════════════════════════════════
   TOPBAR
═══════════════════════════════════ */
.vms-topbar {
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  top: 0;
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1.5px solid var(--gray-100);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  z-index: 150;
  box-shadow: 0 2px 10px rgba(11, 30, 61, 0.06);
  transition: left 0.28s cubic-bezier(.4, 0, .2, 1);
}

.vms-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  color: var(--blue-900);
  font-size: 20px;
  flex-shrink: 0;
}

.vms-hamburger:hover {
  background: var(--gray-100);
}

.vms-topbar-brand {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.vms-topbar-sub {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 1px;
}

.vms-topbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vms-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(45, 199, 124, 0.1);
  color: var(--green);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.vms-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: vmsPulse 1.3s infinite;
}

@keyframes vmsPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: .4;
    transform: scale(.75);
  }
}

.vms-notif-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-100);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  cursor: pointer;
  transition: all 0.18s;
  flex-shrink: 0;
}

.vms-notif-btn:hover {
  border-color: var(--blue-400);
  background: var(--blue-50);
}

.vms-notif-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Profile dropdown */
.vms-profile-wrap {
  position: relative;
}

.vms-top-user {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 5px 10px 5px 6px;
  border-radius: 10px;
  border: 1.5px solid var(--gray-100);
  transition: all 0.18s;
  white-space: nowrap;
  user-select: none;
}

.vms-top-user:hover,
.vms-top-user.open {
  border-color: var(--blue-300);
  background: var(--blue-50);
}

.vms-top-user-avatar {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-400));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.vms-top-user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--blue-900);
}

.vms-top-user-role {
  font-size: 10.5px;
  color: var(--gray-400);
}

.vms-top-user-caret {
  font-size: 10px;
  color: var(--gray-400);
  margin-left: 2px;
  transition: transform 0.22s;
  display: inline-block;
}

.vms-top-user.open .vms-top-user-caret {
  transform: rotate(180deg);
  color: var(--blue-500);
}

.vms-profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 230px;
  background: var(--white);
  border: 1.5px solid var(--gray-100);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(11, 30, 61, 0.14);
  z-index: 500;
  overflow: hidden;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform-origin: top right;
}

.vms-profile-dropdown.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.vms-pd-header {
  padding: 16px 16px 14px;
  background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
  display: flex;
  align-items: center;
  gap: 12px;
}

.vms-pd-avatar {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--blue-400), var(--blue-300));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.vms-pd-name {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.vms-pd-role-text {
  font-size: 10.5px;
  color: var(--blue-300);
  margin-top: 2px;
}

.vms-pd-badge {
  margin-left: auto;
  background: rgba(45, 199, 124, 0.22);
  color: var(--green);
  font-size: 9.5px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}

.vms-pd-menu {
  padding: 6px 0;
}

.vms-pd-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-600);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.vms-pd-item:hover {
  background: var(--blue-50);
  color: var(--blue-600);
  text-decoration: none;
}

.vms-pd-item-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  background: var(--gray-100);
  transition: background 0.15s;
}

.vms-pd-item:hover .vms-pd-item-icon {
  background: var(--blue-100);
}

.vms-pd-divider {
  height: 1px;
  background: var(--gray-100);
  margin: 4px 0;
}

.vms-pd-item.logout {
  color: var(--red);
}

.vms-pd-item.logout:hover {
  background: rgba(229, 64, 74, 0.06);
  color: var(--red);
}

.vms-pd-item.logout .vms-pd-item-icon {
  background: rgba(229, 64, 74, 0.08);
}

/* ═══════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════ */
.vms-main {
  position: fixed;
  left: var(--sidebar-w);
  right: 0;
  top: var(--topbar-h);
  bottom: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--gray-50);
  transition: left 0.28s cubic-bezier(.4, 0, .2, 1);
}

.vms-page-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 22px 24px 32px;
}

.vms-page-scroll::-webkit-scrollbar {
  width: 5px;
}

.vms-page-scroll::-webkit-scrollbar-thumb {
  background: var(--blue-300);
  border-radius: 10px;
}

/* Page header */
.vms-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}

.vms-page-title {
  font-family: 'Sora', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--blue-900);
  letter-spacing: -0.4px;
}

.vms-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--gray-400);
  margin-top: 3px;
  flex-wrap: wrap;
}

.vms-breadcrumb a {
  color: var(--blue-500);
  text-decoration: none;
  font-weight: 500;
}

.vms-breadcrumb a:hover {
  text-decoration: underline;
}

/* ═══════════════════════════════════
   STAT CARDS
═══════════════════════════════════ */
.vms-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.vms-stat-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-100);
  box-shadow: var(--shadow);
  padding: 18px 18px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
}

.vms-stat-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(34, 114, 216, .14);
}

.vms-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.vms-stat-card.pending::before {
  background: linear-gradient(90deg, var(--amber), #f8c76a);
}

.vms-stat-card.reject::before {
  background: linear-gradient(90deg, var(--red), #f07078);
}

.vms-stat-card.approve::before {
  background: linear-gradient(90deg, var(--green), #5fdb9e);
}

.vms-stat-card.meeting::before {
  background: linear-gradient(90deg, var(--blue-500), var(--blue-300));
}

.vms-stat-card.reg::before {
  background: linear-gradient(90deg, #7c3aed, #a78bfa);
}

.vms-stat-card.inside::before {
  background: linear-gradient(90deg, #0891b2, #22d3ee);
}

.vms-stat-card.out::before {
  background: linear-gradient(90deg, #ea580c, #fb923c);
}

.vms-stat-card.overtime::before {
  background: linear-gradient(90deg, #dc2626, #f87171);
}

.vms-stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}

.vms-stat-card.pending .vms-stat-icon {
  background: rgba(245, 166, 35, .11);
}

.vms-stat-card.reject .vms-stat-icon {
  background: rgba(229, 64, 74, .10);
}

.vms-stat-card.approve .vms-stat-icon {
  background: rgba(45, 199, 124, .11);
}

.vms-stat-card.meeting .vms-stat-icon {
  background: var(--blue-50);
}

.vms-stat-card.reg .vms-stat-icon {
  background: rgba(124, 58, 237, 0.1);
}

.vms-stat-card.inside .vms-stat-icon {
  background: rgba(8, 145, 178, 0.1);
}

.vms-stat-card.out .vms-stat-icon {
  background: rgba(234, 88, 12, 0.1);
}

.vms-stat-card.overtime .vms-stat-icon {
  background: rgba(220, 38, 38, 0.1);
}

.vms-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 4px;
}

.vms-stat-value {
  font-family: 'Sora', sans-serif;
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.vms-stat-card.pending .vms-stat-value {
  color: var(--amber);
}

.vms-stat-card.reject .vms-stat-value {
  color: var(--red);
}

.vms-stat-card.approve .vms-stat-value {
  color: var(--green);
}

.vms-stat-card.meeting .vms-stat-value {
  color: var(--blue-500);
}

.vms-stat-card.reg .vms-stat-value {
  color: #7c3aed;
}

.vms-stat-card.inside .vms-stat-value {
  color: #0891b2;
}

.vms-stat-card.out .vms-stat-value {
  color: #ea580c;
}

.vms-stat-card.overtime .vms-stat-value {
  color: #dc2626;
}

.vms-stat-sub {
  font-size: 11px;
  color: var(--gray-400);
  margin-top: 3px;
}

/* ═══════════════════════════════════
   TABLE PANEL
═══════════════════════════════════ */
.vms-table-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--gray-100);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.vms-table-toolbar {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding: 12px 18px;
  border-bottom: 1.5px solid var(--gray-100);
  gap: 10px;
  flex-wrap: wrap;
}

.vms-entries-select {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--gray-600);
}

.vms-entries-select select {
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 13px;
  color: var(--blue-900);
  font-family: 'DM Sans', sans-serif;
  outline: none;
  cursor: pointer;
  background: var(--white);
}

.vms-entries-select select:focus {
  border-color: var(--blue-400);
}

.vms-search-wrap {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-600);
}

.vms-search-input {
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  outline: none;
  width: 190px;
  transition: border-color .18s;
  background: var(--white);
}

.vms-search-input:focus {
  border-color: var(--blue-400);
}

.vms-table-scroll {
  flex: 1;
  min-height: 0;
  overflow-x: auto;
  overflow-y: auto;
}

.vms-table-scroll::-webkit-scrollbar,
.dt-layout-table::-webkit-scrollbar {
  height: 6px;
  width: 5px;
}

.vms-table-scroll::-webkit-scrollbar-thumb,
.dt-layout-table::-webkit-scrollbar-thumb {
  background: var(--blue-300);
  border-radius: 10px;
}

.vms-table-scroll::-webkit-scrollbar-thumb:hover,
.dt-layout-table::-webkit-scrollbar-thumb:hover {
  background: var(--blue-500);
}

.vms-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 900px;
}

.vms-table thead {
  background: var(--gray-50);
  position: sticky;
  top: 0;
  z-index: 5;
}

.vms-table th {
  padding: 10px 14px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gray-400);
  border-bottom: 1.5px solid var(--gray-100);
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.vms-table th:hover {
  color: var(--blue-600);
}

.vms-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--gray-100);
  font-size: 13px;
  vertical-align: middle;
  white-space: nowrap;
}

.vms-table tr:last-child td {
  border-bottom: none;
}

.vms-table tr:hover td {
  background: var(--blue-50);
}

.vms-table-footer {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 11px 18px;
  border-top: 1.5px solid var(--gray-100);
  background: var(--white);
  font-size: 12.5px;
  color: var(--gray-400);
}

/* ═══════════════════════════════════
   BADGES
═══════════════════════════════════ */
.vms-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
}

.vms-badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.vms-badge.approved {
  background: rgba(45, 199, 124, .12);
  color: #1aa764;
}

.vms-badge.pending {
  background: rgba(245, 166, 35, .12);
  color: #c07d0a;
}

.vms-badge.rejected,
.vms-badge.inactive {
  background: rgba(229, 64, 74, .10);
  color: #b5252e;
}

.vms-badge.active {
  background: rgba(45, 199, 124, .12);
  color: #1aa764;
}

.vms-badge.inside {
  background: var(--blue-100);
  color: var(--blue-600);
  border: 1px solid var(--blue-200);
}

.vms-badge.approved .vms-badge-dot,
.vms-badge.active .vms-badge-dot {
  background: var(--green);
}

.vms-badge.pending .vms-badge-dot {
  background: var(--amber);
}

.vms-badge.rejected .vms-badge-dot,
.vms-badge.inactive .vms-badge-dot {
  background: var(--red);
}

.vms-badge.inside .vms-badge-dot {
  background: var(--blue-500);
}

.vms-purpose-badge {
  background: var(--blue-100);
  color: var(--blue-600);
  padding: 3px 10px;
  border-radius: 6px;
  border: 1px solid var(--blue-200);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  display: inline-block;
}

/* ═══════════════════════════════════
   BUTTONS
═══════════════════════════════════ */
.vms-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 20px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-family: 'DM Sans', sans-serif;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.vms-btn-primary {
  background: linear-gradient(135deg, var(--blue-700), var(--blue-500));
  color: #fff;
  box-shadow: 0 3px 12px rgba(34, 114, 216, 0.28);
}

.vms-btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  color: #fff;
  text-decoration: none;
}

.vms-btn-secondary {
  background: var(--gray-600);
  color: #fff;
}

.vms-btn-secondary:hover {
  filter: brightness(1.15);
  color: #fff;
  text-decoration: none;
}

.vms-btn-outline {
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
}

.vms-btn-outline:hover {
  border-color: var(--blue-400);
  color: var(--blue-600);
  background: var(--blue-50);
  text-decoration: none;
}

.vms-btn-danger {
  background: var(--red);
  color: #fff;
}

.vms-btn-danger:hover {
  filter: brightness(0.92);
  color: #fff;
  text-decoration: none;
}

.vms-icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  border: none;
  transition: all .15s;
}

.vms-icon-btn.edit {
  background: var(--blue-100);
  color: var(--blue-600);
  border: 1.5px solid var(--blue-200);
}

.vms-icon-btn.edit:hover {
  background: var(--blue-600);
  color: #fff;
  border-color: var(--blue-600);
  transform: scale(1.08);
}

.vms-icon-btn.del {
  background: rgba(229, 64, 74, .14);
  color: var(--red);
  border: 1.5px solid rgba(229, 64, 74, .25);
}

.vms-icon-btn.del:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  transform: scale(1.08);
}

/* ═══════════════════════════════════
   FORM ELEMENTS
═══════════════════════════════════ */
.vms-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.vms-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  letter-spacing: 0.1px;
}

.vms-label .req {
  color: var(--red);
  margin-left: 2px;
}

.vms-input,
.vms-select,
.vms-textarea {
  width: 100%;
  border: 1.5px solid var(--gray-200);
  border-radius: 9px;
  padding: 10px 13px;
  font-size: 13px;
  font-family: 'DM Sans', sans-serif;
  color: var(--blue-900);
  background: var(--white);
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.vms-input {
  height: 42px;
}

.vms-select {
  height: 42px;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%237A95B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}

.vms-input::placeholder,
.vms-textarea::placeholder {
  color: var(--gray-400);
}

.vms-input:focus,
.vms-select:focus,
.vms-textarea:focus {
  border-color: var(--blue-400);
  box-shadow: 0 0 0 3px rgba(34, 114, 216, 0.10);
}

.vms-textarea {
  resize: vertical;
  min-height: 80px;
}

.vms-form-card {
  background: var(--white);
  border-radius: 16px;
  border: 1.5px solid var(--gray-100);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.vms-form-body {
  padding: 22px 24px 18px;
}

.vms-form-footer {
  padding: 16px 24px;
  border-top: 1.5px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  background: var(--gray-50);
  flex-wrap: wrap;
}

.vms-form-heading {
  padding: 18px 24px 16px;
  border-bottom: 1.5px solid var(--gray-100);
  display: flex;
  align-items: center;
  gap: 10px;
}

.vms-form-heading-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--blue-50);
  border: 1.5px solid var(--blue-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.vms-form-heading-text {
  font-family: 'Sora', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue-900);
}

.vms-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
}

.vms-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 18px 20px;
}

/* ═══════════════════════════════════
   MODAL
═══════════════════════════════════ */
.vms-modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(11, 30, 61, 0.45);
  backdrop-filter: blur(3px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.vms-modal-backdrop.show {
  display: flex;
}

.vms-modal {
  background: var(--white);
  border-radius: 18px;
  box-shadow: 0 24px 64px rgba(11, 30, 61, 0.22);
  width: 100%;
  max-width: 660px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  animation: vmsModalIn 0.28s cubic-bezier(.34, 1.56, .64, 1) both;
  overflow: hidden;
}

@keyframes vmsModalIn {
  from {
    transform: scale(0.88) translateY(20px);
    opacity: 0
  }

  to {
    transform: scale(1) translateY(0);
    opacity: 1
  }
}

.vms-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1.5px solid var(--gray-100);
  flex-shrink: 0;
}

.vms-modal-title {
  font-family: 'Sora', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--blue-900);
}

.vms-modal-sub {
  font-size: 11.5px;
  color: var(--gray-400);
  margin-top: 2px;
}

.vms-modal-close {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--gray-100);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--gray-600);
  transition: all 0.15s;
}

.vms-modal-close:hover {
  background: rgba(229, 64, 74, 0.1);
  color: var(--red);
}

.vms-modal-body {
  padding: 22px;
  overflow-y: auto;
  flex: 1;
}

.vms-modal-footer {
  padding: 14px 22px;
  border-top: 1.5px solid var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-shrink: 0;
  background: var(--gray-50);
  flex-wrap: wrap;
}

/* ═══════════════════════════════════
   TOAST
═══════════════════════════════════ */
.vms-toast {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background: var(--blue-900);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(11, 30, 61, 0.25);
  z-index: 999;
  transform: translateY(80px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none;
}

.vms-toast.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* ═══════════════════════════════════
   BOOTSTRAP OVERRIDES
═══════════════════════════════════ */
.btn-primary {
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500)) !important;
  border: none !important;
  border-radius: 9px !important;
  box-shadow: 0 3px 12px rgba(34, 114, 216, 0.28) !important;
  font-family: 'DM Sans', sans-serif !important;
}

.btn-primary:hover {
  filter: brightness(1.08) !important;
}

.btn-danger {
  background: var(--red) !important;
  border: none !important;
  border-radius: 9px !important;
}

.btn-secondary {
  background: var(--gray-600) !important;
  border: none !important;
  border-radius: 9px !important;
}

.btn-outline-primary {
  border-color: var(--blue-400) !important;
  color: var(--blue-600) !important;
  border-radius: 9px !important;
}

.btn-outline-primary:hover {
  background: var(--blue-50) !important;
}

.card {
  border-radius: var(--radius) !important;
  border: 1.5px solid var(--gray-100) !important;
  box-shadow: var(--shadow) !important;
}

.form-control,
.form-select {
  border: 1.5px solid var(--gray-200) !important;
  border-radius: 9px !important;
  font-family: 'DM Sans', sans-serif !important;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--blue-400) !important;
  box-shadow: 0 0 0 3px rgba(34, 114, 216, 0.10) !important;
}

.table thead th {
  background: var(--gray-50) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.6px !important;
  color: var(--gray-400) !important;
  border-bottom: 1.5px solid var(--gray-100) !important;
}

.table tbody tr:hover td {
  background: var(--blue-50) !important;
}

.badge.bg-success {
  background: rgba(45, 199, 124, 0.12) !important;
  color: #1aa764 !important;
  border-radius: 20px !important;
}

.badge.bg-danger {
  background: rgba(229, 64, 74, 0.10) !important;
  color: #b5252e !important;
  border-radius: 20px !important;
}

.badge.bg-warning {
  background: rgba(245, 166, 35, 0.12) !important;
  color: #c07d0a !important;
  border-radius: 20px !important;
}

.page-item.active .page-link {
  background: var(--blue-600) !important;
  border-color: var(--blue-600) !important;
  border-radius: 7px !important;
}

.page-link {
  color: var(--blue-600) !important;
  border-radius: 7px !important;
}

.modal-content {
  border-radius: 18px !important;
  border: none !important;
  background-color: var(--white) !important;
  box-shadow: 0 15px 50px rgba(11, 30, 61, 0.25) !important;
}

.modal-header {
  border-bottom: 1.5px solid var(--gray-100) !important;
}

.modal-footer {
  border-top: 1.5px solid var(--gray-100) !important;
  background: var(--gray-50) !important;
  border-radius: 0 0 18px 18px !important;
}

/* DataTables */
.dataTables_wrapper .dataTables_filter input {
  border: 1.5px solid var(--gray-200) !important;
  border-radius: 8px !important;
  padding: 6px 12px !important;
  font-family: 'DM Sans', sans-serif !important;
}

.dataTables_wrapper .dataTables_filter input:focus {
  border-color: var(--blue-400) !important;
  outline: none !important;
}

.dataTables_wrapper .dataTables_length select {
  border: 1.5px solid var(--gray-200) !important;
  border-radius: 8px !important;
  padding: 5px 10px !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: var(--blue-600) !important;
  color: #fff !important;
  border-radius: 7px !important;
  border: none !important;
}

.dt-layout-table {
  overflow: auto;
}

.dt-layout-row:first-child {
  padding: 10px 15px;
}

.dt-layout-row:nth-child(3) {
  padding: 10px 15px;
}









/* ═══════════════════════════════════
   RESPONSIVE
═══════════════════════════════════ */
@media (max-width: 1024px) {
  .vms-sidebar {
    transform: translateX(-100%);
  }

  .vms-sidebar.open {
    transform: translateX(0);
  }

  .vms-hamburger {
    display: flex;
  }

  .vms-sidebar-close {
    display: flex;
  }

  .vms-topbar {
    left: 0 !important;
  }

  .vms-main {
    left: 0 !important;
  }

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

  .vms-top-user-name,
  .vms-top-user-role {
    display: none;
  }

  .vms-top-user {
    padding: 5px 6px;
  }
}

@media (max-width: 768px) {
  .vms-topbar {
    padding: 0 14px;
    gap: 8px;
  }

  .vms-topbar-brand {
    font-size: 14px;
  }

  .vms-topbar-sub,
  .vms-live-pill {
    display: none;
  }

  .vms-page-scroll {
    padding: 14px 14px 24px;
  }

  .vms-grid-2,
  .vms-grid-3 {
    grid-template-columns: 1fr;
  }

  .vms-form-body {
    padding: 18px 16px;
  }

  .vms-form-footer {
    padding: 14px 16px;
  }

  .vms-modal-body {
    padding: 16px;
  }

  .vms-modal-header {
    padding: 14px 16px;
  }

  .vms-modal-footer {
    padding: 12px 16px;
  }

  .vms-table-toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .vms-search-wrap {
    margin-left: 0;
    width: 100%;
  }

  .vms-search-input {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .vms-stats-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

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

  .vms-btn {
    flex: 1;
    justify-content: center;
  }

  .vms-notif-btn {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .vms-top-user-avatar {
    width: 30px;
    height: 30px;
  }
}

/* Print (Visitor Pass) */
@media print {

  .vms-sidebar,
  .vms-topbar,
  .vms-page-header,
  .vms-btn,
  .vms-hamburger {
    display: none !important;
  }

  .vms-main {
    left: 0 !important;
    top: 0 !important;
  }

  .vms-page-scroll {
    padding: 0 !important;
  }
}