:root {
  --brand-color: #3BC1EA;
  --brand-deep-color: #1f8fb2;
  --brand-light-color: #f5f5f5;
  --brand-annex-color: #1b2c35;
  --brand-secondary-color: #284352;
  --brand-contrast-color: #ffffff;
  --brand-info-color: #3BC1EA;

  --a4-width: 794px;
  --a4-height: 1123px;
  --page-margin: 66px;
  --page-content-height: 931px;
  --page-content-width: 602px;
  --page-gap: 40px;
  --editor-bg: #525659;
  --toolbar-bg: #f3f3f3;
  --border-color: #d1d1d1;
  --primary-color: #3BC1EA;
  --primary-color-hover: #2aa0c7;
  --primary-color-deep: #1f8fb2;
  --success-color: #107c10;
}

body {
  overflow: auto !important;
}

/* Keep the app header in the normal page flow so it scrolls with content. */
.app-topbar {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  z-index: 2 !important;
  margin-left: calc(var(--ins-sidenav-width) + 10px) !important;
}

.btn-primary:hover,
.btn-outline-primary:hover,
.btn-primary:focus,
.btn-outline-primary:focus,
.btn-primary:active,
.btn-outline-primary:active {
  background-color: var(--primary-color-hover) !important;
  border-color: var(--primary-color-hover) !important;
  color: #fff !important;
}


.menu-arrow {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  transition: transform 0.2s ease;
}

.menu-arrow:before {
  content: "+";
  font-family: inherit;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1;
}

[aria-expanded="true"] .menu-arrow:before {
  content: "−";
}

.side-nav .sub-menu .side-nav-item .side-nav-link {
  border-left: 2px solid transparent;
  border-left-color: #3BC1EA;
  border-radius: 0 !important;
}



.btn-outline-brand {
  color: var(--brand-annex-color);
  border-color: var(--brand-color);
}

.btn-outline-brand:hover {
  background-color: var(--brand-deep-color);
  color: #fff;
}

.btn-outline-brand:focus,
.btn-outline-brand:active {
  box-shadow: 0 0 0 0.25rem rgba(133, 91, 39, 0.25);
}

/* LOADER 2 - Skeleton Loader */
.skeleton-box {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s ease-in-out infinite;
  border-radius: 4px;
}

.skeleton-circle {
  border-radius: 50% !important;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* LOADER 3 - Pulse Loader */
.pulse-loader {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pulse-loader span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    var(--brand-color) 0%,
    var(--brand-deep-color) 100%
  );
  animation: pulse-wave 1.4s ease-in-out infinite;
}

.pulse-loader span:nth-child(1) {
  animation-delay: 0s;
}
.pulse-loader span:nth-child(2) {
  animation-delay: 0.2s;
}
.pulse-loader span:nth-child(3) {
  animation-delay: 0.4s;
}
.pulse-loader span:nth-child(4) {
  animation-delay: 0.6s;
}

@keyframes pulse-wave {
  0%,
  60%,
  100% {
    transform: scale(1);
    opacity: 0.3;
  }
  30% {
    transform: scale(2);
    opacity: 1;
  }
}

/* LOADER 4 - Cards Loader */
.cards-loader {
  position: relative;
  width: 60px;
  height: 60px;
}

.card-loader {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-top-color: var(--brand-color);
  border-radius: 50%;
  animation: rotate-card 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.card-loader:nth-child(1) {
  animation-delay: 0s;
  border-top-color: var(--brand-color);
}

.card-loader:nth-child(2) {
  animation-delay: 0.15s;
  border-top-color: var(--brand-deep-color);
  width: 75%;
  height: 75%;
  top: 12.5%;
  left: 12.5%;
}

.card-loader:nth-child(3) {
  animation-delay: 0.3s;
  border-top-color: var(--brand-annex-color);
  width: 50%;
  height: 50%;
  top: 25%;
  left: 25%;
}

@keyframes rotate-card {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* LOADER 5 - Data Loader */
.data-loader {
  display: flex;
  gap: 4px;
  align-items: flex-end;
  height: 40px;
}

.loader-bar {
  width: 8px;
  background: linear-gradient(
    to top,
    var(--brand-color),
    var(--brand-deep-color)
  );
  border-radius: 4px 4px 0 0;
  animation: data-wave 1.2s ease-in-out infinite;
}

.loader-bar:nth-child(1) {
  animation-delay: 0s;
  height: 10px;
}
.loader-bar:nth-child(2) {
  animation-delay: 0.1s;
  height: 20px;
}
.loader-bar:nth-child(3) {
  animation-delay: 0.2s;
  height: 30px;
}
.loader-bar:nth-child(4) {
  animation-delay: 0.3s;
  height: 20px;
}
.loader-bar:nth-child(5) {
  animation-delay: 0.4s;
  height: 10px;
}

@keyframes data-wave {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(2);
  }
}

/* LOADER 6 - Modern Spinner */
.modern-spinner {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spinner-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border: 3px solid transparent;
  border-radius: 50%;
  animation: spin-ring 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
  border-top-color: var(--brand-color);
  animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
  border-bottom-color: var(--brand-annex-color);
  width: 70%;
  height: 70%;
  animation-delay: 0.2s;
  animation-direction: reverse;
}

.spinner-core {
  position: relative;
  color: var(--brand-color);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.5);
    opacity: 1;
  }
}

.loading-dots {
  display: inline-flex;
  font-size: 24px;
  line-height: 1;
  color: var(--brand-annex-color);
}

.loading-dots span {
  animation: dot-fade 1.4s infinite ease-in-out;
}

.loading-dots span:nth-child(1) {
  animation-delay: 0s;
}
.loading-dots span:nth-child(2) {
  animation-delay: 0.2s;
}
.loading-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dot-fade {
  0%,
  60%,
  100% {
    opacity: 0.2;
  }
  30% {
    opacity: 1;
  }
}


.auth-box {
  background: linear-gradient(
      rgba(255, 255, 255, 0.7),
      rgba(221, 227, 213, 0.7)
    ),
    url('../images/VP.jpg');
  background-repeat:repeat;
  background-position: center;
  background-size: cover;
}

/* Outer frame depth */
.hard-card {
  border-radius: 22px;
  padding: 4px;
  background: #3BC1EA;

  box-shadow:
    4px 8px 18px rgba(0, 0, 0, 0.15),
    -8px -8px 18px rgba(255, 255, 255, 0.7);
}

/* Inner carved / inset effect */
.embossed-card {
  /* background: #FEFCF5; */
  border-radius: 18px;
  border: none;

  box-shadow:
    inset 8px 8px 18px rgba(0, 0, 0, 0.18),
    inset -8px -8px 18px rgba(255, 255, 255, 0.9);
}

.content-page {
  height: auto !important;
  overflow: visible !important;
  /* padding-bottom: 20px !important; */
}

/* ============================= */
/* ZAL CHAT MODAL STYLES */
/* ============================= */

.zal-chat-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: zal-fadeIn 0.2s ease;
  backdrop-filter: blur(4px);
}

.zal-chat-modal-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  animation: zal-slideUp 0.3s ease;
}

.zal-chat-modal-header {
  /* background: linear-gradient(135deg,#1B2C35 0%,#7F642D 100%); */
  min-height: 40px;
}

.zal-chat-icon-wrapper {
  width: 40px;
  height: 40px;
}

.zal-chat-action-btn {
  width: 26px;
  height: 26px;
}

/* ============================= */
/* ZAL ANIMATIONS */
/* ============================= */

@keyframes zal-fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes zal-slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (min-width: 1200px) {
  .col-xl-2half {
    flex: 0 0 auto;
    width: 20%;
  }
}

/* Optional: 6-column layout at xxl breakpoint (≥ 1400px) */
@media (min-width: 1400px) {
  .col-xl-2half {
    flex: 0 0 auto;
    width: 16.6667%;
  }
}

.cmd-folder-item {
  transition: background-color 0.15s ease;
}
.cmd-folder-item:hover {
  background-color: #f0f0f0 !important;
}
.cmd-folder-item.cmd-active {
  background-color: #e7f1ff !important;
}
.cmd-table > tbody > tr:hover {
  background-color: #f8f9fa;
}
.cmd-table > tbody > tr.cmd-table-selected {
  background-color: #cfe2ff;
}
.cmd-table > tbody > tr.cmd-table-selected:hover {
  background-color: #b6d4fe;
}
.cmd-bg-primary-subtle {
  background-color: rgba(13, 110, 253, 0.1) !important;
}
.cmd-breadcrumb.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: #6c757d;
}
.cmd-card {
  transition: all 0.15s ease;
}
.cmd-card:hover {
  border: 1px solid var(--brand-info-color) !important;
  border-radius: 8px !important;
}

.resizer-handle:hover {
  background-color: #dee2e6 !important;
}
.resizer-handle:active {
  background-color: #945e0e !important;
}

/* ══════════════════════════════════════════════════════════════════════════════
   ZDesk Rich Editor Styles - A4 Layout
   ══════════════════════════════════════════════════════════════════════════════ */

.zdesk-modal-header {
  padding: 0;
  border: none;
  background-color: var(--toolbar-bg);
}

.zdesk-modal-body {
  padding: 0;
  height: calc(100vh - 42px);
  overflow: hidden;
}

.zdesk-menu-bar {
  display: flex;
  align-items: center;
  background-color: var(--toolbar-bg);
  padding: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 13px;
  user-select: none;
  width: 100%;
}

.zdesk-menu-left-section {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  border-right: 1px solid var(--border-color);
}

.zdesk-menu-items {
  display: flex;
  align-items: center;
  flex: 1;
}

.zdesk-menu-item {
  position: relative;
  padding: 6px 12px;
  cursor: pointer;
  border-radius: 2px;
  transition: background-color 0.15s;
}

.zdesk-menu-item:hover,
.zdesk-menu-item.active {
  background-color: #cce4f7;
}

.zdesk-menu-right-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  margin-left: auto;
}

.zdesk-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background-color: #fff;
  border: 1px solid #c8c8c8;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
  z-index: 1050;
  padding: 4px 0;
}

.zdesk-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 24px 6px 12px;
  cursor: pointer;
  font-size: 13px;
  color: #333;
  transition: background-color 0.1s;
}

.zdesk-dropdown-item:hover {
  background-color: #e5e5e5;
}

.zdesk-dropdown-divider {
  height: 1px;
  background-color: #e0e0e0;
  margin: 4px 0;
}

.zdesk-dropdown-shortcut {
  color: #666;
  font-size: 12px;
  margin-left: 24px;
}

.zdesk-dropdown-icon {
  width: 20px;
  margin-right: 8px;
  display: inline-flex;
  justify-content: center;
  font-size: 12px;
}

.zdesk-quick-btn {
  padding: 4px 8px;
  font-size: 12px;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: opacity 0.15s;
}

.zdesk-quick-btn:hover {
  opacity: 0.9;
}

.zdesk-quick-btn-save {
  background-color: var(--primary-color);
  color: #fff;
}

.zdesk-quick-btn-clear {
  background-color: transparent;
  color: #333;
  border: 1px solid #c8c8c8;
}

.zdesk-quick-btn-clear:hover {
  background-color: #f0f0f0;
}

.zdesk-saved-badge {
  background-color: #dff6dd;
  color: var(--success-color);
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.zdesk-close-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.zdesk-close-btn:hover {
  background-color: #e0e0e0;
}

.zdesk-doc-title {
  font-size: 12px;
  color: #666;
}

.zdesk-doc-title i {
  margin-right: 6px;
}

#zdesk-rte.e-richtexteditor {
  border: none !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

#zdesk-rte .e-rte-toolbar {
  flex-shrink: 0 !important;
  border-bottom: 1px solid var(--border-color) !important;
}

/* Gray background container - like MS Word */
#zdesk-rte .e-rte-content {
  flex: 1 !important;
  background: var(--editor-bg) !important;
  padding: 40px 50px !important;
  overflow-y: auto !important;
  display: flex !important;
  justify-content: center !important;
}

/* A4 page - centered white paper */
#zdesk-rte .e-rte-content .e-content {
  width: var(--a4-width) !important;
  min-width: var(--a4-width) !important;
  max-width: var(--a4-width) !important;
  min-height: var(--a4-height) !important;
  background: #ffffff !important;
  padding: var(--page-margin) !important;
  margin: 0 !important;
  box-shadow:
    0 4px 12px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(0, 0, 0, 0.1) !important;
  box-sizing: border-box !important;
  line-height: 1.6 !important;
  font-family: "Times New Roman", Times, serif !important;
  font-size: 12pt !important;
}

#zdesk-rte .e-content:focus {
  outline: none !important;
}

/* Character count positioning */
#zdesk-rte .e-rte-character-count {
  position: fixed !important;
  bottom: 15px !important;
  right: 20px !important;
  background: rgba(82, 86, 89, 0.95) !important;
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 4px !important;
  font-size: 12px !important;
  z-index: 1000 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
}

/* Custom scrollbar */
#zdesk-rte .e-rte-content::-webkit-scrollbar {
  width: 14px;
  height: 14px;
}

#zdesk-rte .e-rte-content::-webkit-scrollbar-track {
  background: #3c3f41;
}

#zdesk-rte .e-rte-content::-webkit-scrollbar-thumb {
  background: #6b6b6b;
  border-radius: 7px;
  border: 3px solid #3c3f41;
}

#zdesk-rte .e-rte-content::-webkit-scrollbar-thumb:hover {
  background: #888;
}

#zdesk-rte .e-rte-content {
  scrollbar-width: thin;
  scrollbar-color: #6b6b6b #3c3f41;
}

.zdesk-mention-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.zdesk-mention-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
  flex-shrink: 0;
}

.zdesk-mention-info {
  display: flex;
  flex-direction: column;
}

.zdesk-mention-name {
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
}

.zdesk-mention-email {
  font-size: 11px;
  color: #6b7280;
}

.zdesk-mention-link {
  font-weight: 600;
  text-decoration: none;
  color: var(--primary-color);
}

.zdesk-mention-link:hover {
  text-decoration: underline;
}

#zdesk-rte .e-rte-quick-popup {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
  border-radius: 4px !important;
}

#zdesk-rte .e-rte-quick-toolbar {
  background-color: #fff !important;
  border: 1px solid #e0e0e0 !important;
}

.e-rte-dialog .e-dialog {
  border-radius: 8px !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2) !important;
}

.e-rte-dialog .e-dlg-header-content {
  background-color: var(--toolbar-bg) !important;
  border-radius: 8px 8px 0 0 !important;
}

.e-rte-dialog .e-footer-content {
  border-radius: 0 0 8px 8px !important;
}

@media print {
  .zdesk-modal-header,
  .zdesk-menu-bar {
    display: none !important;
  }

  .zdesk-modal-body {
    height: auto !important;
    overflow: visible !important;
  }

  #zdesk-rte .e-rte-content {
    background: white !important;
    padding: 0 !important;
  }

  #zdesk-rte .e-content {
    box-shadow: none !important;
    margin: 0 !important;
  }

  #zdesk-rte .e-rte-toolbar,
  #zdesk-rte .e-rte-character-count {
    display: none !important;
  }
}

.bg-brand2 {
  background-color: var(--brand-annex-color) !important;
}

.bg-brand3 {
  background-color: rgb(24, 50, 71) !important;
}

@keyframes recPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.5;
    transform: scale(0.8);
  }
}

@keyframes waveBar {
  from {
    transform: scaleY(0.4);
  }
  to {
    transform: scaleY(1.2);
  }
}

@keyframes ctxFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes highlightPulse {
  0% {
    background: rgba(255, 235, 59, 0.6);
  }
  100% {
    background: transparent;
  }
}

.typing-indicator {
  display: inline-flex;
  gap: 3px;
  margin-right: 6px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #999;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}
.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* KANBAN REQUEST UI */

/* Spin animation */
.wrk-ins_spin {
  animation: wrk-ins_spin 1s linear infinite;
}
@keyframes wrk-ins_spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Placeholder animation */
.placeholder-glow .placeholder {
  animation: wrk-ins_placeholder-glow 2s ease-in-out infinite;
}
@keyframes wrk-ins_placeholder-glow {
  50% {
    opacity: 0.2;
  }
}

/* ═══════════════════════════════════════════════════════════════
           STEPPER
           ═══════════════════════════════════════════════════════════════ */
.wrk-ins_stepper {
  margin-top: 10px;
}
.wrk-ins_step {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--step-bg);
  border: 2px solid var(--step-border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}
.wrk-ins_step--current {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--step-border) 25%, transparent);
}
.wrk-ins_step-icon {
  font-size: 9px;
  color: #fff;
}
.wrk-ins_step-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
}
.wrk-ins_step-line {
  flex: 1;
  height: 2px;
  background: var(--line-bg);
  transition: background 0.3s;
}
.wrk-ins_step-more {
  font-size: 9px;
}

/* ═══════════════════════════════════════════════════════════════
           KANBAN CARD
           ═══════════════════════════════════════════════════════════════ */
.wrk-ins_card {
  transition: all 0.2s ease;
  cursor: pointer;
  border-color: #f1f5f9;
  border-left: 3px solid var(--stage-color);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}
.wrk-ins_card--hovered {
  border-color: color-mix(in srgb, var(--stage-color) 60%, transparent);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--stage-color) 20%, transparent);
}
.wrk-ins_card-title {
  font-size: 13.5px;
}
.wrk-ins_card-dot {
  font-size: 10px;
}
.wrk-ins_card-id {
  font-size: 10px;
}
.wrk-ins_dropdown-btn {
  width: 24px;
  height: 28px;
  padding: 0;
}
.wrk-ins_dropdown-icon {
  font-size: 14px;
}
.wrk-ins_dropdown-menu {
  font-size: 13px;
}
.wrk-ins_disabled {
  cursor: not-allowed;
  opacity: 0.5;
}
.wrk-ins_avatar {
  width: 24px;
  height: 24px;
  background: linear-gradient(135deg, #f59e0b, #1e293b);
  font-size: 9px;
}
.wrk-ins_requester-name {
  font-size: 11px;
  max-width: 80px;
}
.wrk-ins_stat {
  font-size: 11px;
}
.wrk-ins_approver-badge {
  background: #f0f9ff;
  font-size: 10px;
  color: #0369a1;
}
.wrk-ins_overdue-badge {
  background: #fef2f2;
  font-size: 10px;
  color: #ef4444;
}
.wrk-ins_card-footer {
  border-top: 1px dashed #f1f5f9;
}
.wrk-ins_date-text {
  font-size: 10px;
}
.wrk-ins_clock-icon {
  font-size: 11px;
}
.wrk-ins_view-link {
  font-size: 11px;
}
.wrk-ins_arrow-icon {
  font-size: 11px;
}

/* ═══════════════════════════════════════════════════════════════
           KANBAN COLUMN
           ═══════════════════════════════════════════════════════════════ */
.wrk-ins_column {
  min-width: 300px;
  max-width: 300px;
  border: 1px solid color-mix(in srgb, var(--column-color) 30%, transparent);
  background: color-mix(in srgb, var(--column-color) 8%, transparent);
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 260px);
  border-radius: 8px;
}
.wrk-ins_column-header {
  border-bottom: 1px solid
    color-mix(in srgb, var(--column-color) 20%, transparent);
  flex-shrink: 0;
}
.wrk-ins_column-icon {
  width: 28px;
  height: 28px;
  background: var(--column-color);
}
.wrk-ins_column-icon-i {
  font-size: 14px;
  color: #fff;
}
.wrk-ins_column-title {
  font-size: 13px;
}
.wrk-ins_column-desc {
  font-size: 10px;
}
.wrk-ins_column-count {
  min-width: 24px;
  height: 24px;
  background: var(--column-color);
  font-size: 12px;
  padding: 0 8px;
  border-radius: 6px;
}
.wrk-ins_empty-icon {
  width: 48px;
  height: 48px;
  background: color-mix(in srgb, var(--column-color) 15%, transparent);
}
.wrk-ins_empty-icon-i {
  font-size: 22px;
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════════════════════
           SKELETON
           ═══════════════════════════════════════════════════════════════ */
.wrk-ins_skeleton-col {
  min-width: 300px;
  max-width: 300px;
  height: 400px;
  background: #f8f9fa;
  border-radius: 8px;
}
.wrk-ins_skeleton-title {
  height: 20px;
}
.wrk-ins_skeleton-subtitle {
  height: 16px;
}
.wrk-ins_skeleton-card {
  height: 100px;
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
           ERROR
           ═══════════════════════════════════════════════════════════════ */
.wrk-ins_error-icon {
  width: 64px;
  height: 64px;
  background: #fef2f2;
}
.wrk-ins_error-icon-i {
  font-size: 32px;
  color: #ef4444;
}

/* ═══════════════════════════════════════════════════════════════
           STAT CARD
           ═══════════════════════════════════════════════════════════════ */
.wrk-ins_stat-card {
  border-radius: 12px;
}
.wrk-ins_stat-icon {
  width: 44px;
  height: 44px;
}
.wrk-ins_stat-icon-i {
  font-size: 22px;
  color: var(--icon-color);
}
.wrk-ins_stat-value {
  font-size: 24px;
  color: #1e293b;
}
.wrk-ins_stat-bar {
  height: 3px;
  border-radius: 0 0 12px 12px;
  opacity: 0.6;
}

/* ═══════════════════════════════════════════════════════════════
           TOOLBAR
           ═══════════════════════════════════════════════════════════════ */
.wrk-ins_toolbar {
  border-radius: 12px;
}
.wrk-ins_search-group {
  max-width: 300px;
}
.wrk-ins_search-icon {
  border-radius: 8px 0 0 8px;
}
.wrk-ins_search-input {
  font-size: 13px;
}
.wrk-ins_filter-wrap {
  width: 180px;
}
.wrk-ins_refresh-btn {
  border-radius: 8px;
}
.wrk-ins_results-count {
  font-size: 12px;
}
.wrk-ins_new-btn {
  border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════════
           PAGINATION
           ═══════════════════════════════════════════════════════════════ */
.wrk-ins_pagination {
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
           HIDDEN SCROLLBAR STYLES
           ═══════════════════════════════════════════════════════════════ */
.kanban-board {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 16px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.kanban-board::-webkit-scrollbar {
  display: none;
}
.kanban-cards-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.kanban-cards-container::-webkit-scrollbar {
  display: none;
}
.kanban-column {
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.kanban-column::-webkit-scrollbar {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
               GENERAL
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_modal-content {
  border-radius: 12px;
  overflow: hidden;
}
.wrk-dtl_header {
  border-bottom: 1px solid #e9ecef;
}
.wrk-dtl_body {
  background: #f8f9fa;
}
.wrk-dtl_footer {
  border-top: 1px solid #e9ecef;
}
.wrk-dtl_text-purple {
  color: #6f42c1 !important;
}

/* ═══════════════════════════════════════════════════════════════
               ICONS
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_error-icon {
  font-size: 48px;
}
.wrk-dtl_empty-icon {
  font-size: 48px;
}
.wrk-dtl_empty-state-icon {
  font-size: 32px;
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════════════
               HEADER
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_record-id {
  font-size: 12px;
}
.wrk-dtl_status-badge {
  font-size: 11px;
  background-color: var(--status-bg);
  color: var(--status-text);
}
.wrk-dtl_status-icon {
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════
               TABS
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_tabs {
  margin-bottom: -1px;
  background: #fff;
}
.wrk-dtl_tabs .nav-link {
  font-size: 13px;
  padding: 10px 16px;
  color: #6c757d;
  border: none;
  border-bottom: 2px solid transparent;
  transition: all 0.2s;
}
.wrk-dtl_tabs .nav-link:hover {
  color: #495057;
  border-bottom-color: #dee2e6;
}
.wrk-dtl_tabs .nav-link.active {
  color: var(--brand-deep-color);
  border-bottom-color: var(--brand-deep-color);
  background: transparent;
}

/* ═══════════════════════════════════════════════════════════════
               CARDS
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_card {
  border: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.wrk-dtl_card-header {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
}
.wrk-dtl_approver-card {
  border-left: 2px solid var(--brand-deep-color);
}

/* ═══════════════════════════════════════════════════════════════
               PROGRESS
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_progress {
  height: 10px;
  background: #e9ecef;
}

/* ═══════════════════════════════════════════════════════════════
               BADGES
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_inline-badge,
.wrk-dtl_step-badge {
  background-color: var(--status-bg);
  color: var(--status-text);
  font-size: 10px;
}
.wrk-dtl_current-badge {
  font-size: 10px;
}
.wrk-dtl_primary-badge {
  font-size: 10px;
}

/* ═══════════════════════════════════════════════════════════════
               APPROVER
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_approver-avatar {
  width: 40px;
  height: 40px;
}

/* ═══════════════════════════════════════════════════════════════
               TIMELINE (STEPS)
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_timeline {
  position: relative;
  padding-left: 32px;
}
.wrk-dtl_timeline-item {
  position: relative;
  padding-bottom: 20px;
  padding-left: 20px;
  border-left: 3px solid #e5e7eb;
}
.wrk-dtl_timeline-item--completed {
  border-left-color: #22c55e;
}
.wrk-dtl_timeline-item--rejected {
  border-left-color: #ef4444;
}
.wrk-dtl_timeline-item--current {
  border-left-color: #3b82f6;
}
.wrk-dtl_timeline-item:last-child {
  padding-bottom: 0;
}
.wrk-dtl_marker-wrap {
  position: absolute;
  left: -14px;
  top: 0;
}
.wrk-dtl_marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e5e7eb;
  color: #6b7280;
}
.wrk-dtl_marker--completed {
  background: #22c55e;
  color: #fff;
}
.wrk-dtl_marker--rejected {
  background: #ef4444;
  color: #fff;
}
.wrk-dtl_marker--current {
  background: #3b82f6;
  color: #fff;
}
.wrk-dtl_marker-icon {
  font-size: 12px;
}
.wrk-dtl_marker-icon--sm {
  font-size: 10px;
}
.wrk-dtl_marker-num {
  font-size: 10px;
  font-weight: bold;
}
.wrk-dtl_user-icon {
  font-size: 11px;
}
.wrk-dtl_user-name {
  font-size: 13px;
}
.wrk-dtl_step-desc {
  line-height: 1.4;
}
.wrk-dtl_alert {
  font-size: 12px;
}
.wrk-dtl_action-box {
  border: 1px solid #e9ecef;
}
.wrk-dtl_action-label {
  font-size: 12px;
}
.wrk-dtl_action-remarks {
  font-size: 12px;
}

/* ═══════════════════════════════════════════════════════════════
               HISTORY TIMELINE
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_history-timeline {
  position: relative;
  padding-left: 32px;
}
.wrk-dtl_history-item {
  position: relative;
  padding-bottom: 16px;
  padding-left: 20px;
  border-left: 2px solid #e5e7eb;
}
.wrk-dtl_history-item:last-child {
  padding-bottom: 0;
}
.wrk-dtl_history-marker-wrap {
  position: absolute;
  left: -11px;
  top: 0;
}
.wrk-dtl_history-marker {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 2px solid #e5e7eb;
}
.wrk-dtl_history-icon {
  font-size: 10px;
}
.wrk-dtl_history-remarks {
  font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════════
               ATTACHMENTS
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_attachments {
  overflow: hidden;
}
.wrk-dtl_attachment-item {
  border-left: none;
  border-right: none;
  transition: background 0.2s;
}
.wrk-dtl_attachment-item:first-child {
  border-top: none;
}
.wrk-dtl_attachment-item:last-child {
  border-bottom: none;
}
.wrk-dtl_attachment-item:hover {
  background: #f8f9fa;
}
.wrk-dtl_file-icon {
  width: 40px;
  height: 40px;
}

/* ═══════════════════════════════════════════════════════════════
               EMPTY STATES
               ═══════════════════════════════════════════════════════════════ */
.wrk-dtl_empty-state {
  padding: 40px 20px;
}

/* INSTANCE MODAL */

/* Timeline Styles for Workflow Detail Modal */
.timeline-alt {
  position: relative;
  padding-left: 30px;
}

.timeline-alt::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e9ecef;
}

.timeline-item {
  position: relative;
  padding-bottom: 20px;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-icon {
  position: absolute;
  left: -26px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.timeline-item-info {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 12px;
}

/* Avatar Sizes */
.avatar-xs {
  width: 24px;
  height: 24px;
  font-size: 10px;
}

.avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.avatar-md {
  width: 40px;
  height: 40px;
  font-size: 14px;
}

/* ================================
   APPROVAL ACTION MODAL STYLES
   ================================ */

/* Keyframe Animations */
@keyframes modalPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes checkmarkDraw {
  0% {
    stroke-dashoffset: 100;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes spinRotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Modal Overlay */
.approval-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  transition: all 0.3s ease-out;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.approval-modal-overlay.visible {
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
}

/* Modal Container */
.approval-modal-container {
  background-color: #fff;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  width: 100%;
  max-width: 500px;
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  position: relative;
}

.approval-modal-container.visible {
  transform: scale(1) translateY(0);
  opacity: 1;
}

/* Modal Header */
.approval-modal-header {
  color: #fff;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

.approval-modal-header.approve {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.approval-modal-header.reject {
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
}

.approval-modal-header.delegate {
  background: linear-gradient(135deg, #0dcaf0 0%, #6c63ff 100%);
}

.approval-modal-header.return {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.approval-modal-header.default {
  background: linear-gradient(135deg, #0d6efd 0%, #6c63ff 100%);
}

.approval-modal-header-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  opacity: 0.1;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.5) 10px,
    rgba(255, 255, 255, 0.5) 20px
  );
}

.approval-modal-header-content {
  display: flex;
  align-items: center;
  position: relative;
}

.approval-modal-icon-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.approval-modal-icon-circle.animate {
  animation: modalPulse 0.5s ease-in-out;
}

.approval-modal-header-text h5 {
  margin-bottom: 0;
}

.approval-modal-header-text small {
  opacity: 0.9;
}

.approval-modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  width: 36px;
  height: 36px;
  color: #fff;
  cursor: pointer;
  transition: all 0.2s ease;
}

.approval-modal-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.3);
}

.approval-modal-close-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal Body */
.approval-modal-body {
  padding: 1.5rem;
  max-height: 60vh;
  overflow-y: auto;
}

/* Modal Footer */
.approval-modal-footer {
  padding: 1rem 1.5rem;
  background-color: #f8f9fa;
  border-top: 1px solid #e9ecef;
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
}

/* Loading State */
.approval-modal-loading {
  text-align: center;
  padding: 3rem 1rem;
}

.approval-modal-loading .spinner-border {
  width: 3rem;
  height: 3rem;
}

.approval-modal-loading.approve .spinner-border {
  color: #198754;
}

.approval-modal-loading.reject .spinner-border {
  color: #dc3545;
}

.approval-modal-loading.delegate .spinner-border {
  color: #0dcaf0;
}

.approval-modal-loading.return .spinner-border {
  color: #ffc107;
}

/* Info Card */
.approval-modal-info-card {
  background-color: #f8f9fa;
  border-radius: 12px;
  padding: 1rem;
  margin-bottom: 1rem;
  border: 1px solid #e9ecef;
  transition: all 0.2s ease;
}

.approval-modal-info-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.approval-modal-info-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.approval-modal-info-card-header h6 {
  margin-bottom: 0;
  font-weight: 600;
}

.approval-modal-info-card .badge.approve {
  background-color: rgba(25, 135, 84, 0.15);
  color: #198754;
}

.approval-modal-info-card .badge.reject {
  background-color: rgba(220, 53, 69, 0.15);
  color: #dc3545;
}

.approval-modal-info-card .badge.delegate {
  background-color: rgba(13, 202, 240, 0.15);
  color: #0dcaf0;
}

.approval-modal-info-card .badge.return {
  background-color: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.approval-modal-info-item {
  display: flex;
  align-items: center;
}

.approval-modal-info-item i {
  width: 20px;
}

.approval-modal-info-item.approve i {
  color: #198754;
}

.approval-modal-info-item.reject i {
  color: #dc3545;
}

.approval-modal-info-item.delegate i {
  color: #0dcaf0;
}

.approval-modal-info-item.return i {
  color: #ffc107;
}

.approval-modal-remarks {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px dashed #dee2e6;
}

.approval-modal-remarks small {
  display: flex;
  align-items: flex-start;
}

.approval-modal-remarks i {
  margin-top: 2px;
}

/* Form Styles */
.approval-modal-form-group {
  margin-bottom: 1rem;
}

.approval-modal-label {
  font-weight: 500;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #495057;
}

.approval-modal-label i.approve {
  color: #198754;
}

.approval-modal-label i.reject {
  color: #dc3545;
}

.approval-modal-label i.delegate {
  color: #0dcaf0;
}

.approval-modal-label i.return {
  color: #ffc107;
}

.approval-modal-label i.muted {
  color: #6c757d;
}

.approval-modal-textarea,
.approval-modal-select {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 0.75rem;
  transition: all 0.2s ease;
  width: 100%;
}

.approval-modal-textarea:focus,
.approval-modal-select:focus {
  outline: none;
  box-shadow: none;
}

.approval-modal-textarea:focus.approve,
.approval-modal-select:focus.approve {
  border-color: #198754;
}

.approval-modal-textarea:focus.reject,
.approval-modal-select:focus.reject {
  border-color: #dc3545;
}

.approval-modal-textarea:focus.delegate,
.approval-modal-select:focus.delegate {
  border-color: #0dcaf0;
}

.approval-modal-textarea:focus.return,
.approval-modal-select:focus.return {
  border-color: #ffc107;
}

.approval-modal-form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Success Overlay */
.approval-modal-success-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 10;
  animation: modalFadeIn 0.3s ease-out;
}

.approval-modal-success-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  animation: modalPulse 0.5s ease-in-out infinite;
}

.approval-modal-success-icon.approve {
  background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.approval-modal-success-icon.reject {
  background: linear-gradient(135deg, #dc3545 0%, #ff6b6b 100%);
}

.approval-modal-success-icon.delegate {
  background: linear-gradient(135deg, #0dcaf0 0%, #6c63ff 100%);
}

.approval-modal-success-icon.return {
  background: linear-gradient(135deg, #ffc107 0%, #ff9800 100%);
}

.approval-modal-success-checkmark {
  stroke-dasharray: 100;
  animation: checkmarkDraw 0.5s ease-out forwards;
}

.approval-modal-success-text {
  margin-bottom: 0.5rem;
}

.approval-modal-success-text.approve {
  color: #198754;
}

.approval-modal-success-text.reject {
  color: #dc3545;
}

.approval-modal-success-text.delegate {
  color: #0dcaf0;
}

.approval-modal-success-text.return {
  color: #ffc107;
}

/* Confirmation Overlay */
.approval-modal-confirm-overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.98);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  z-index: 10;
  animation: modalSlideUp 0.3s ease-out;
}

.approval-modal-confirm-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.approval-modal-confirm-icon.reject {
  background-color: #fff5f5;
}

.approval-modal-confirm-icon.reject i {
  font-size: 2rem;
  color: #dc3545;
}

.approval-modal-confirm-icon.return {
  background-color: #fff8e6;
}

.approval-modal-confirm-icon.return i {
  font-size: 2rem;
  color: #ffc107;
}

.approval-modal-confirm-text {
  max-width: 300px;
  text-align: center;
  margin-bottom: 1.5rem;
}

.approval-modal-confirm-buttons {
  display: flex;
  gap: 0.75rem;
}

/* Button hover effects */
.approval-modal-footer .btn,
.approval-modal-confirm-buttons .btn {
  transition: all 0.2s ease;
}

.approval-modal-footer .btn:hover:not(:disabled),
.approval-modal-confirm-buttons .btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.approval-modal-footer .btn:active:not(:disabled),
.approval-modal-confirm-buttons .btn:active:not(:disabled) {
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 576px) {
  .approval-modal-container {
    margin: 0.5rem;
    max-width: calc(100% - 1rem);
  }

  .approval-modal-header {
    padding: 1rem;
  }

  .approval-modal-body {
    padding: 1rem;
  }

  .approval-modal-footer {
    padding: 0.75rem 1rem;
    flex-direction: column;
  }

  .approval-modal-footer .btn {
    width: 100%;
  }

  .approval-modal-confirm-buttons {
    flex-direction: column;
    width: 100%;
  }

  .approval-modal-confirm-buttons .btn {
    width: 100%;
  }
}

/* HR DASHBOARD STYLES */
.admin-hr-card {
  border: 1px solid #edf1f5;
  border-radius: 18px;
  background: #ffffff;
  overflow: hidden;
}

.section-kicker {
  display: inline-block;
  margin-bottom: 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.module-tile {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1rem;
  background: #ffffff;
  border: 1px solid #e9eef5;
  border-radius: 16px;
  transition: all 0.22s ease;
}

.module-tile:hover {
  transform: translateY(-2px);
  border-color: #d8e1ea;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.module-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.module-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #0f172a;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.module-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
}

.module-tile-body {
  margin-bottom: 1rem;
}

.module-title {
  margin-bottom: 0.45rem;
  font-weight: 600;
  color: #0f172a;
}

.module-summary {
  margin-bottom: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #64748b;
}

.module-tile-footer {
  margin-top: auto;
  padding-top: 0.35rem;
}

.module-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  transition: all 0.2s ease;
}

.module-link:hover {
  color: #0f172a;
  background: #f8fafc;
  border-color: #cbd5e1;
}

@media (max-width: 767.98px) {
  .admin-hr-card .card-header,
  .admin-hr-card .card-body {
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}

/* EMPLOYEE PROFILE PAGE */
.nav-pills .nav-link.active {
  color: #fff;
}
.nav-pills .nav-link {
  background-color: #f1f3f5;
  color: #333;
}
.card:hover {
  transform: translateY(-2px);
  transition: 0.2s ease;
}

/* TRAINING MANAGEMET PAGE */
.course-card-v2 {
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: all 0.25s ease;
}

.course-card-v2:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.course-media {
  height: 190px;
  background: #f3f4f6;
}

.course-image-v2 {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(17, 24, 39, 0.08),
    rgba(17, 24, 39, 0.16)
  );
}

.course-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

.icon-btn-soft {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: #1f2937;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}

.icon-btn-soft:hover {
  background: #fff;
  transform: scale(1.04);
}

.course-title-v2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 3rem;
}

.course-meta {
  font-size: 0.87rem;
  color: #6b7280;
}

.tag-pill-soft {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 0.78rem;
  font-weight: 500;
}

.course-progress-card {
  background: #f9fafb;
  border: 1px solid #eef2f7;
  border-radius: 16px;
  padding: 0.95rem 1rem;
}

.progress-label {
  font-size: 0.82rem;
  color: #6b7280;
  font-weight: 500;
}

.progress-value {
  font-size: 0.9rem;
  font-weight: 700;
  color: #111827;
}

.course-progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.course-progress-bar .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, #111827 0%, #4b5563 100%);
}

.course-footer {
  margin-top: auto;
}

.enroll-btn {
  border: 0;
  background: #111827;
  color: #fff;
  padding: 0.6rem 1rem;
  font-weight: 600;
  transition: all 0.2s ease;
}

.enroll-btn:hover {
  background: #000;
  color: #fff;
  transform: translateY(-1px);
}

/* ADMIN INVOICE */
.bg-danger-light {
  background-color: rgba(220, 53, 69, 0.1);
}
.bg-warning-light {
  background-color: rgba(255, 193, 7, 0.1);
}
.bg-info-light {
  background-color: rgba(23, 162, 184, 0.1);
}
.bg-success-light {
  background-color: rgba(40, 167, 69, 0.1);
}
.rounded-3 {
  border-radius: 0.5rem !important;
}
.fw-600 {
  font-weight: 600;
}
.fw-500 {
  font-weight: 500;
}
.table-hover tbody tr:hover {
  background-color: rgba(0, 0, 0, 0.02);
}
@media (max-width: 768px) {
  .table-responsive {
    font-size: 0.875rem;
  }
  h3 {
    font-size: 1.5rem;
  }
  h4 {
    font-size: 1.25rem;
  }
}

/* EXPENSE TRACKING */
.expense-dashboard-wrap {
  --lime: #a3e635;
  --coral: #f87171;
  --teal: #2dd4bf;
  --amber: #fbbf24;
  --slate-900: #0f172a;
  --slate-700: #334155;
  --slate-500: #64748b;
  --surface: rgba(255, 255, 255, 0.9);
  --edge: rgba(148, 163, 184, 0.28);
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--slate-900);
}

.expense-dashboard-wrap .num-font {
  font-family: "JetBrains Mono", "Consolas", monospace;
  letter-spacing: -0.02em;
}

.expense-dashboard-wrap .fin-card {
  border-radius: 16px;
  border: 1px solid var(--edge);
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 250, 252, 0.8)
  );
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.45),
    0 8px 24px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(7px);
  transition:
    box-shadow 0.3s ease,
    transform 0.3s ease,
    border-color 0.3s ease;
}

.expense-dashboard-wrap .fin-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.expense-dashboard-wrap .kpi-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
}

.expense-dashboard-wrap .kpi-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 16px;
  z-index: -1;
  opacity: 0.52;
}

.expense-dashboard-wrap .kpi-card.tone-income::before,
.expense-dashboard-wrap .kpi-card.tone-saving::before {
  background: linear-gradient(
    135deg,
    rgba(163, 230, 53, 0.45),
    rgba(45, 212, 191, 0.2)
  );
}

.expense-dashboard-wrap .kpi-card.tone-expense::before {
  background: linear-gradient(
    135deg,
    rgba(248, 113, 113, 0.45),
    rgba(239, 68, 68, 0.12)
  );
}

.expense-dashboard-wrap .kpi-card.tone-investment::before {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.52),
    rgba(163, 230, 53, 0.18)
  );
}

.expense-dashboard-wrap .kpi-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}

.expense-dashboard-wrap .tone-income .kpi-icon,
.expense-dashboard-wrap .tone-saving .kpi-icon {
  color: #3f6212;
  background: rgba(163, 230, 53, 0.25);
}

.expense-dashboard-wrap .tone-expense .kpi-icon {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.2);
}

.expense-dashboard-wrap .tone-investment .kpi-icon {
  color: #92400e;
  background: rgba(251, 191, 36, 0.24);
}

.expense-dashboard-wrap .change-pill {
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 10px;
  font-weight: 700;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.expense-dashboard-wrap .tone-income .change-pill,
.expense-dashboard-wrap .tone-saving .change-pill {
  background: rgba(163, 230, 53, 0.2);
  color: #3f6212;
}

.expense-dashboard-wrap .tone-expense .change-pill {
  background: rgba(248, 113, 113, 0.22);
  color: #b91c1c;
}

.expense-dashboard-wrap .tone-investment .change-pill {
  background: rgba(251, 191, 36, 0.24);
  color: #854d0e;
}

.expense-dashboard-wrap .section-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0;
}

.expense-dashboard-wrap .ytd-pill {
  border-radius: 999px;
  background: rgba(163, 230, 53, 0.2);
  color: #3f6212;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
}

.expense-dashboard-wrap .mini-select,
.expense-dashboard-wrap .search-field {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.9);
  font-size: 13px;
}

.expense-dashboard-wrap .mini-select:focus,
.expense-dashboard-wrap .search-field:focus {
  border-color: rgba(45, 212, 191, 0.65);
  box-shadow: 0 0 0 0.18rem rgba(45, 212, 191, 0.15);
}

.expense-dashboard-wrap .bar-chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 265px;
  padding: 14px 4px 2px;
  overflow-x: auto;
}

.expense-dashboard-wrap .bar-col {
  min-width: 46px;
  text-align: center;
  position: relative;
}

.expense-dashboard-wrap .bar-track {
  height: 214px;
  border-radius: 18px;
  background: linear-gradient(
    180deg,
    rgba(226, 232, 240, 0.4),
    rgba(241, 245, 249, 0.6)
  );
  display: flex;
  align-items: end;
  padding: 0 5px;
}

.expense-dashboard-wrap .bar-value {
  width: 100%;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(
    180deg,
    rgba(51, 65, 85, 0.8),
    rgba(15, 23, 42, 0.88)
  );
  animation: rise-up 0.9s ease both;
  transition:
    filter 0.25s ease,
    box-shadow 0.25s ease;
}

.expense-dashboard-wrap .bar-col.active .bar-value {
  background: var(--brand-color);
  box-shadow: 0 8px 20px rgba(31, 143, 178, 0.22);
}

.expense-dashboard-wrap .bar-col:hover .bar-value {
  filter: brightness(1.08);
}

.expense-dashboard-wrap .bar-tip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 11px;
  color: #f8fafc;
  background: rgba(2, 6, 23, 0.88);
  border-radius: 8px;
  padding: 5px 8px;
  pointer-events: none;
}

.expense-dashboard-wrap .bill-item {
  padding: 12px 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.35);
}

.expense-dashboard-wrap .bill-item:last-child {
  border-bottom: none;
}

.expense-dashboard-wrap .bill-logo {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.expense-dashboard-wrap .status-pill {
  border-radius: 999px;
  font-size: 11px;
  padding: 4px 10px;
  font-weight: 700;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.expense-dashboard-wrap .status-pill.due {
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
}

.expense-dashboard-wrap .status-pill.scheduled {
  background: rgba(30, 41, 59, 0.14);
  color: #1e293b;
}

.expense-dashboard-wrap .status-pill.paid {
  background: rgba(163, 230, 53, 0.24);
  color: #3f6212;
}

.expense-dashboard-wrap .tx-table thead th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-500);
  border-bottom-color: rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.75);
}

.expense-dashboard-wrap .tx-table tbody tr {
  transition:
    box-shadow 0.25s ease,
    background-color 0.25s ease;
}

.expense-dashboard-wrap .tx-table tbody tr:hover {
  background-color: rgba(163, 230, 53, 0.07);
  box-shadow: inset 0 0 0 1px rgba(163, 230, 53, 0.28);
}

.expense-dashboard-wrap .merchant-dot {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.expense-dashboard-wrap .type-pill {
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  transition:
    background-color 0.35s ease,
    color 0.35s ease;
}

.expense-dashboard-wrap .type-pill.expense {
  background: rgba(248, 113, 113, 0.2);
  color: #b91c1c;
}

.expense-dashboard-wrap .type-pill.earned {
  background: rgba(163, 230, 53, 0.25);
  color: #3f6212;
}

.expense-dashboard-wrap .amount-negative {
  color: #dc2626;
}
.expense-dashboard-wrap .amount-positive {
  color: #15803d;
}

.expense-dashboard-wrap .donut-shell {
  width: 210px;
  height: 210px;
  border-radius: 50%;
  margin: 8px auto 18px;
  position: relative;
  animation: donut-reveal 1.05s cubic-bezier(0.2, 0.85, 0.2, 1) both;
  transform-origin: 50% 50%;
}

.expense-dashboard-wrap .donut-shell::before {
  content: "";
  position: absolute;
  inset: 26px;
  border-radius: 50%;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.95),
    rgba(248, 250, 252, 0.85)
  );
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.28);
}

.expense-dashboard-wrap .donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  text-align: center;
}

.expense-dashboard-wrap .legend-row {
  margin-bottom: 10px;
}

.expense-dashboard-wrap .legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 8px;
}

.expense-dashboard-wrap .legend-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(226, 232, 240, 0.7);
  overflow: hidden;
}

.expense-dashboard-wrap .legend-fill {
  height: 100%;
  border-radius: inherit;
}

@keyframes rise-up {
  from {
    transform: scaleY(0);
    transform-origin: bottom;
  }
  to {
    transform: scaleY(1);
    transform-origin: bottom;
  }
}

@keyframes donut-reveal {
  from {
    transform: scale(0.72) rotate(-50deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

/* TEST CARD */
.invoice-aging-card {
  background: #fff;
}

.summary-box {
  padding: 16px;
  height: 100%;
}

.summary-box.warning {
  background: rgba(245, 159, 0, 0.08);
}

.summary-box.danger {
  background: rgba(250, 82, 82, 0.08);
}

.summary-box.primary {
  background: rgba(59, 130, 246, 0.08);
}

.invoice-item {
  padding: 16px;
  border: 1px solid #f1f3f5;
  background: #fff;
  transition: all 0.2s ease;
}

.invoice-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.invoice-item.warning {
  border-left: 4px solid #f59f00;
}

.invoice-item.danger {
  border-left: 4px solid #fa5252;
}

.invoice-item.primary {
  border-left: 4px solid #3b82f6;
}

.invoice-badge {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.invoice-badge.standard {
  background: #3b82f6;
}

.invoice-badge.proforma {
  background: #8b5cf6;
}

/* PURCHASE ORDER ANALYTICS */
.analytics-card {
  background: #fff;
}

.analytics-select {
  width: 160px;
}

/* Chart */
.purchase-chart {
  height: 320px;
  display: flex;
  align-items: flex-end;
}

.chart-bars {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.chart-item {
  flex: 1;
  text-align: center;
}

.chart-item span {
  display: block;
  margin-top: 12px;
  font-size: 13px;
  color: #6c757d;
}

.bar-wrapper {
  height: 260px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar {
  width: 100%;
  border-radius: 8px 8px 0px 0px;
  transition: 0.3s ease;
}

.bar:hover {
  opacity: 0.85;
  transform: translateY(-4px);
}

.bar-1 {
  height: 45%;
  background: linear-gradient(to top, #3b82f6, #93c5fd);
}

.bar-2 {
  height: 70%;
  background: linear-gradient(to top, #8b5cf6, #c4b5fd);
}

.bar-3 {
  height: 55%;
  background: linear-gradient(to top, #10b981, #6ee7b7);
}

.bar-4 {
  height: 88%;
  background: linear-gradient(to top, #f59e0b, #fde68a);
}

.bar-5 {
  height: 78%;
  background: linear-gradient(to top, #ef4444, #fca5a5);
}

.bar-6 {
  height: 95%;
  background: linear-gradient(to top, #6366f1, #a5b4fc);
}

/* Progress */
.analytics-progress {
  height: 8px;
  border-radius: 20px;
  overflow: hidden;
}

/* Delivery */
.delivery-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.delivery-item {
  padding: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.delivery-item i {
  font-size: 24px;
}

.delivery-item.success {
  background: rgba(16, 185, 129, 0.08);
  color: #10b981;
}

.delivery-item.warning {
  background: rgba(245, 158, 11, 0.08);
  color: #f59e0b;
}

.delivery-item.danger {
  background: rgba(239, 68, 68, 0.08);
  color: #ef4444;
}

/* PIE CHART ON CLIENTSUPPLYACCOUNT PAGE */
.chart-card {
  border-radius: 1.1rem;
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}
.chart-card:hover {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.09) !important;
}
.chart-card .card-header {
  background: #fff;
  border-bottom: 1px solid #f0f0f2;
  padding: 1.15rem 1.5rem;
}

/* ── Filter button ────────────────────────────────────── */
.btn-filter {
  background: #f4f5f7;
  border: 1px solid #e2e3e8;
  color: #555;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 0.5rem;
  padding: 0.3rem 0.75rem;
  transition: all 0.2s;
}
.btn-filter:hover,
.btn-filter:focus {
  background: #eaebef;
  border-color: #d0d1d7;
  color: #333;
}
.btn-filter::after {
  margin-left: 0.4rem;
}

/* ── Pie chart ────────────────────────────────────────── */
.pie-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 0 0.5rem;
}
.pie-wrap svg {
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.07));
}

.pie-slice {
  cursor: pointer;
  transform-origin: 120px 120px;
  transition:
    transform 0.3s ease,
    filter 0.3s ease;
}
.pie-slice:hover {
  transform: scale(1.045);
  filter: brightness(1.08) saturate(1.1);
}

/* ── Stat cards ───────────────────────────────────────── */
.stat-box {
  border-radius: 0.5rem;
  padding: 1rem 1.1rem;
  transition: transform 0.2s ease;
}
.stat-box:hover {
  transform: translateY(-2px);
}
.stat-box.clients {
  background: linear-gradient(
    135deg,
    rgba(99, 102, 241, 0.08),
    rgba(99, 102, 241, 0.04)
  );
}
.stat-box.suppliers {
  background: linear-gradient(
    135deg,
    rgba(6, 182, 212, 0.08),
    rgba(6, 182, 212, 0.04)
  );
}
.stat-box .label {
  font-size: 0.72rem;
  font-weight: 600;
  color: #868e96;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.stat-box .value {
  font-size: 1.35rem;
  font-weight: 800;
  color: #212529;
  margin-top: 0.15rem;
}
.stat-box .pct {
  font-size: 0.72rem;
  color: #adb5bd;
  margin-top: 0.1rem;
}

/* ── Legend ────────────────────────────────────────────── */
.chart-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-size: 0.82rem;
  color: #6c757d;
}
.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 7px;
  vertical-align: middle;
}

/* ── Dropdown active highlight ────────────────────────── */
.dropdown-item.active,
.dropdown-item:active {
  background-color: #6366f1;
}

/* PAYROLL PAGE */
/* Smooth transitions */
.card,
.btn,
.badge,
.table tr {
  transition: all 0.25s ease-in-out;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* Card hover effect */
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--payroll-card-hover-shadow) !important;
}

/* Status badge styling */
.badge-paid {
  background: linear-gradient(135deg, #d4edda, #c3e6cb) !important;
  color: #155724 !important;
  border: 1px solid #b8daff;
}

.badge-pending {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7) !important;
  color: #856404 !important;
  border: 1px solid #ffeeba;
}

.badge-failed {
  background: linear-gradient(135deg, #f8d7da, #f5c6cb) !important;
  color: #721c24 !important;
  border: 1px solid #f5c6cb;
}

.badge-processing {
  background: linear-gradient(135deg, #d1ecf1, #bee5eb) !important;
  color: #0c5460 !important;
  border: 1px solid #bee5eb;
}

/* Table styling */
.table-payroll thead th {
  background: #f8fafc;
  border-bottom: 2px solid #e2e8f0;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #64748b;
  padding: 12px 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.table-payroll tbody td {
  padding: 12px 16px;
  vertical-align: middle;
  border-bottom: 1px solid #f1f3f5;
}

.table-payroll tbody tr:hover {
  background-color: #f8fafc;
  cursor: pointer;
}

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

/* Stepper styling */
.stepper-wrapper {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  padding: 20px 0;
  position: relative;
}

.stepper-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
}

.stepper-item::before {
  content: "";
  position: absolute;
  top: 24px;
  left: -50%;
  width: 100%;
  height: 3px;
  background: #e2e8f0;
  z-index: 0;
}

.stepper-item:first-child::before {
  display: none;
}

.stepper-item.completed::before {
  background: linear-gradient(90deg, #3498db, #2ecc71);
}

.stepper-item.active::before {
  background: linear-gradient(90deg, #3498db, #2ecc71);
}

.stepper-item.completed .stepper-circle {
  background: var(--brand-deep-color);
  border-color: var(--brand-color);
  color: white;
}

.stepper-item.active .stepper-circle {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border-color: #2980b9;
  color: white;
  box-shadow: 0 0 0 4px rgba(52, 152, 219, 0.2);
}

.stepper-circle {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: white;
  border: 3px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 1.1rem;
  z-index: 1;
  position: relative;
  transition: all 0.3s ease;
}

/* Drawer styling */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-overlay.show {
  opacity: 1;
}

.drawer {
  position: fixed;
  top: 0;
  right: -480px;
  width: 480px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 1050;
  transition: right 0.3s ease;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
}

.drawer.open {
  right: 0;
}

/* Summary card icon backgrounds */
.icon-bg-primary {
  background: linear-gradient(135deg, #e3f2fd, #bbdefb);
  color: #1976d2;
}

.icon-bg-success {
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  color: #388e3c;
}

.icon-bg-warning {
  background: linear-gradient(135deg, #fff8e1, #ffecb3);
  color: #f57c00;
}

.icon-bg-danger {
  background: linear-gradient(135deg, #fbe9e7, #ffccbc);
  color: #d84315;
}

.icon-bg-info {
  background: linear-gradient(135deg, #e0f7fa, #b2ebf2);
  color: #00838f;
}

.icon-bg-purple {
  background: linear-gradient(135deg, #f3e5f5, #e1bee7);
  color: #7b1fa2;
}

/* Filter toolbar styling */
.filter-toolbar {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: var(--payroll-card-shadow);
  margin-bottom: 24px;
}

/* Activity timeline */
.timeline-item {
  position: relative;
  padding-left: 50px;
  padding-bottom: 24px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #e2e8f0;
}

.timeline-item:last-child::before {
  display: none;
}

.timeline-avatar {
  position: absolute;
  left: 10px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
  z-index: 1;
  border: 2px solid white;
}

/* Section title */
.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #e2e8f0, transparent);
  margin-left: 12px;
}

/* Pagination styling */
.pagination-custom .page-link {
  border: none;
  padding: 8px 14px;
  margin: 0 2px;
  border-radius: 8px !important;
  color: #64748b;
  font-weight: 500;
  font-size: 0.85rem;
}

.pagination-custom .page-item.active .page-link {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.3);
}

.pagination-custom .page-link:hover {
  background: #f1f5f9;
  color: #1e293b;
}

/* Sortable header */
.sortable-header {
  cursor: pointer;
  user-select: none;
}

.sortable-header:hover {
  color: #3498db !important;
}

.sortable-header i {
  font-size: 0.7rem;
  margin-left: 4px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .stepper-wrapper {
    flex-direction: column;
    gap: 16px;
  }

  .stepper-item::before {
    display: none;
  }

  .stepper-item {
    flex-direction: row;
    gap: 12px;
  }

  .stepper-circle {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }

  .drawer {
    width: 100vw;
  }

  .summary-cards .col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  .summary-cards .col {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Custom card border */
/* .card {
  border: none;
  box-shadow: var(--payroll-card-shadow);
  border-radius: 12px;
} */

/* Button enhancements */
/* .btn {
  border-radius: 8px;
  font-weight: 500;
  padding: 8px 18px;
} */

/* .btn-primary {
  background: linear-gradient(135deg, #3498db, #2980b9);
  border: none;
} */

/* .btn-success {
  background: linear-gradient(135deg, #2ecc71, #27ae60);
  border: none;
}

.btn-warning {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  border: none;
  color: white;
}

.btn-danger {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  border: none;
} */

/* .btn-outline-primary {
  border: 1.5px solid #3498db;
  color: #3498db;
} */

/* .btn-outline-primary:hover {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: white;
} */

/* Dropdown menu */
.dropdown-menu {
  border: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  padding: 8px;
}

.dropdown-item {
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 0.9rem;
}

.dropdown-item:hover {
  background: #f1f5f9;
}

.dropdown-item i {
  margin-right: 8px;
  width: 18px;
  text-align: center;
}

/* Modal styling */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.modal-header {
  border-bottom: 1px solid #f1f3f5;
  padding: 20px 24px;
}

.modal-body {
  padding: 24px;
}

.modal-footer {
  border-top: 1px solid #f1f3f5;
  padding: 16px 24px;
}

/* Form controls */
.form-control,
.form-select {
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

.form-control:focus,
.form-select:focus {
  border-color: #3498db;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* Progress bars */
.progress {
  background: #e9ecef;
  border-radius: 10px;
  height: 8px;
}

.progress-bar {
  border-radius: 10px;
}

/* ApexCharts container */
.chart-container {
  min-height: 300px;
}

/* INTERNAL LOAN WORKFLOW LINE */
.workflow-wrapper {
  position: relative;
}

.workflow-step {
  position: relative;
}

.workflow-line {
  position: absolute;
  top: 26px; /* vertically aligns with circle center */
  right: -50%;
  width: 100%;
  height: 2px;
  background: #dee2e6;
  z-index: 1;
}

/* FINANCE SECTION UIs */
/* DASHBOARD */
.finance-dashboard {
  position: relative;
  padding-bottom: 1.5rem;
}

.finance-dashboard::before,
.finance-dashboard::after {
  content: "";
  position: absolute;
  z-index: 0;
  pointer-events: none;
  /* border-radius: 999px; */
  filter: blur(18px);
  opacity: 0.75;
}

.finance-dashboard::before {
  width: 240px;
  height: 240px;
  right: -80px;
  top: 60px;
  background: rgba(15, 118, 110, 0.08);
}

.finance-dashboard::after {
  width: 180px;
  height: 180px;
  left: -50px;
  bottom: 160px;
  background: rgba(250, 204, 21, 0.08);
}

.finance-dashboard > * {
  position: relative;
  z-index: 1;
}

.finance-tax-cta {
  /* border-radius: 1.2rem; */
  background: linear-gradient(130deg, #f0f9ff 0%, #ecfeff 42%, #fff7ed 100%);
  border: 1px solid rgba(14, 116, 144, 0.14);
}

.finance-tax-cta h5 {
  color: #0f172a;
}

.finance-tax-cta-btn {
  /* border-radius: 999px; */
  min-width: 200px;
  white-space: nowrap;
}

.finance-hero-card {
  overflow: hidden;
  background: linear-gradient(135deg, #061520 0%, #0d2932 38%, #113b4d 100%);
  color: #f7fbff;
  /* border-radius: 1.5rem; */
}

.finance-hero-card .card-body {
  position: relative;
}

.finance-hero-card .card-body::after {
  content: "";
  position: absolute;
  inset: auto -80px -120px auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.24) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  /* border-radius: 50%; */
}

.finance-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  /* border-radius: 999px; */
  color: rgba(247, 251, 255, 0.88);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
}

.finance-hero-title,
.finance-hero-text {
  color: inherit;
}

.finance-hero-text {
  max-width: 42rem;
  color: rgba(247, 251, 255, 0.78);
  font-size: 1rem;
}

.finance-action-btn {
  /* border-radius: 999px; */
  padding-inline: 1rem;
}

.finance-hero-panel {
  display: grid;
  gap: 0.85rem;
  min-width: 280px;
}

.finance-mini-stat {
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  /* border-radius: 1rem; */
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.finance-mini-stat span,
.finance-mini-stat small {
  display: block;
  color: rgba(247, 251, 255, 0.72);
}

.finance-mini-stat strong {
  display: block;
  margin: 0.25rem 0;
  font-size: 1.5rem;
  line-height: 1.1;
}

.finance-summary-card,
/* .finance-card {
  border-radius: 1.2rem;
} */

.finance-summary-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.98) 0%,
    rgba(248, 250, 252, 1) 100%
  );
}

.finance-summary-card .card-body {
  padding: 1.25rem 1.35rem;
}

.finance-summary-card-body {
  height: 100%;
}

.finance-summary-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  min-height: 100px;
}

.finance-summary-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.finance-summary-label {
  color: var(--ins-secondary-color);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-summary-value {
  font-size: 1.55rem;
  font-weight: 800;
  color: #0f172a;
}

.finance-summary-note {
  color: var(--ins-secondary-color);
  font-size: 0.86rem;
}

.finance-summary-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 999px;
  font-size: 1.25rem;
  flex: 0 0 auto;
  margin-left: auto;
}

.finance-card-header {
  padding: 1rem 1.15rem 0.65rem;
}

.finance-cashflow-card {
  display: flex;
  flex-direction: column;
}

.finance-aging-card {
  max-height: 530px;
  display: flex;
  flex-direction: column;
}

.finance-aging-card .card-body {
  min-height: 0;
}

.finance-aging-scroll {
  overflow-y: auto;
  max-height: 455px;
  padding-right: 0.5rem;
  scrollbar-width: thin;
}

.finance-aging-scroll::-webkit-scrollbar {
  width: 8px;
}

.finance-aging-scroll::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.18);
  /* border-radius: 999px; */
}

.finance-aging-overview {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  /* border-radius: 1rem; */
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.06) 0%,
    rgba(250, 204, 21, 0.07) 100%
  );
}

.finance-aging-section-list {
  display: grid;
  gap: 0.85rem;
}

.finance-aging-section {
  padding: 0.1rem 0 0.25rem;
}

.finance-right-stack {
  height: 100%;
}

.finance-match-aging {
  min-height: 530px;
}

.finance-right-card {
  flex: 1 1 0;
  min-height: 0;
  overflow: hidden;
}

.finance-budget-body {
  padding-bottom: 0.85rem;
}

.finance-payment-body {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.finance-payment-body .finance-payment-table {
  width: 100%;
  max-height: 100%;
  overflow: auto;
}

.finance-chart-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.finance-range-btn {
  /* border-radius: 999px; */
  border: 1px solid rgba(15, 23, 42, 0.1);
  background: #fff;
  color: #334155;
}

.finance-range-btn:hover,
.finance-range-btn:focus-visible {
  background: rgba(15, 118, 110, 0.08);
  border-color: rgba(15, 118, 110, 0.18);
  color: #0f766e;
}

.finance-range-btn.active {
  background: #0f766e;
  border-color: #0f766e;
  color: #fff;
}

.finance-chart-shell {
  display: grid;
  gap: 0.75rem;
}

.finance-chart-svg {
  width: 100%;
  height: auto;
  display: block;
}

.finance-chart-grid {
  stroke: rgba(15, 23, 42, 0.08);
  stroke-dasharray: 3 4;
}

.finance-chart-line {
  fill: none;
  stroke: #0f766e;
  stroke-width: 3.25;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 8px 16px rgba(15, 118, 110, 0.16));
}

.finance-chart-point {
  fill: #fff;
  stroke: #0f766e;
  stroke-width: 3;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    fill 0.18s ease,
    stroke 0.18s ease;
  transform-box: fill-box;
  transform-origin: center;
}

.finance-chart-point:hover,
.finance-chart-point:focus-visible,
.finance-chart-point.active {
  fill: #0f766e;
  transform: scale(1.18);
}

.finance-chart-axis-label,
.finance-chart-y-label {
  fill: #64748b;
  font-size: 0.8rem;
  font-weight: 600;
}

.finance-chart-summary {
  padding: 0.1rem 0.85rem 0;
}

.finance-chart-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.finance-chart-stats span,
.finance-aging-detail-value span {
  display: block;
  color: var(--ins-secondary-color);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.finance-chart-stats strong,
.finance-aging-detail-value strong {
  display: block;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 800;
}

.finance-alert-list {
  display: grid;
  gap: 0.7rem;
}

.finance-alert {
  padding: 0.85rem;
  /* border-radius: 1rem; */
  border: 1px solid transparent;
  background: #fff;
}

.finance-alerts-body {
  padding-bottom: 0.85rem;
}

.finance-alert.danger {
  border-color: rgba(var(--ins-danger-rgb), 0.18);
  background: linear-gradient(
    180deg,
    rgba(253, 230, 233, 0.45) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

.finance-alert.warning {
  border-color: rgba(var(--ins-warning-rgb), 0.18);
  background: linear-gradient(
    180deg,
    rgba(254, 244, 228, 0.65) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

.finance-alert.info {
  border-color: rgba(var(--ins-info-rgb), 0.18);
  background: linear-gradient(
    180deg,
    rgba(227, 245, 251, 0.72) 0%,
    rgba(255, 255, 255, 0.96) 100%
  );
}

.finance-alert-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  /* border-radius: 999px; */
  font-size: 1rem;
  flex: 0 0 auto;
}

.finance-alert-footer {
  color: #334155;
  font-size: 0.84rem;
  font-weight: 700;
}

.finance-aging-list {
  display: grid;
  gap: 1rem;
}

.finance-aging-row {
  width: 100%;
  padding: 0.82rem 0.9rem;
  /* border-radius: 1rem; */
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  text-align: left;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.finance-aging-row:hover,
.finance-aging-row:focus-visible,
.finance-aging-row.active {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.finance-aging-label {
  font-weight: 800;
  color: #0f172a;
}

.finance-aging-bar {
  width: 100%;
  height: 0.9rem;
  /* border-radius: 999px; */
  background: #edf2f7;
  overflow: hidden;
}

.finance-aging-bar > span {
  display: block;
  height: 100%;
  /* border-radius: inherit; */
}

.finance-aging-detail {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  padding: 1rem 1.1rem;
  /* border-radius: 1rem; */
  background: linear-gradient(
    135deg,
    rgba(15, 118, 110, 0.07) 0%,
    rgba(250, 204, 21, 0.08) 100%
  );
}

.finance-aging-detail-value {
  min-width: 160px;
  padding: 0.85rem 1rem;
  /* border-radius: 0.9rem; */
  background: rgba(255, 255, 255, 0.76);
}

.finance-progress {
  height: 0.85rem;
  /* border-radius: 999px; */
  background: #edf2f7;
}

.finance-progress .progress-bar {
  /* border-radius: inherit; */
}

.finance-payment-table .table {
  margin-bottom: 0;
}

.bg-orange {
  background-color: #f59e0b !important;
}

.text-orange {
  color: #f59e0b !important;
}

@media (max-width: 1199.98px) {
  .finance-chart-stats {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .finance-aging-card {
    max-height: 500px;
  }

  .finance-aging-scroll {
    max-height: 425px;
  }

  .finance-match-aging {
    min-height: 500px;
  }
}

@media (max-width: 991.98px) {
  .finance-hero-panel {
    min-width: 100%;
  }

  .finance-hero-card .card-body::after {
    inset: auto -120px -150px auto;
  }
}

@media (max-width: 575.98px) {
  .finance-dashboard {
    padding-inline: 0.25rem;
  }

  /* .finance-hero-card,
  .finance-card,
  .finance-summary-card {
    border-radius: 1rem;
  } */

  .finance-range-btn {
    flex: 1 1 calc(50% - 0.5rem);
  }

  .finance-summary-value {
    font-size: 1.35rem;
  }

  .finance-summary-card .card-body {
    padding: 1rem 1.05rem;
  }

  .finance-summary-inner {
    min-height: 88px;
  }

  .finance-summary-icon {
    width: 3rem;
    height: 3rem;
    font-size: 1.1rem;
  }

  .finance-chart-summary {
    padding-inline: 0;
  }

  .finance-aging-overview {
    flex-direction: column;
  }

  .finance-aging-card {
    max-height: 480px;
  }

  .finance-aging-scroll {
    max-height: 395px;
  }

  .finance-match-aging {
    min-height: auto;
  }

  .finance-right-stack {
    gap: 1rem;
  }

  .finance-card-header {
    padding-bottom: 0.5rem;
  }
}

/* COST ALLOCATION PAGE */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes scaleIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(40px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.table-hover tbody tr:hover {
  background-color: #f8f9fa !important;
}
.form-select:focus,
.form-control:focus {
  border-color: #1a1a2e !important;
  box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.1) !important;
}
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f0f2f5;
}
::-webkit-scrollbar-thumb {
  background: #c0c0c0;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #a0a0a0;
}

/* @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap'); */

/* * { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; } */

.appraisal-card {
  transition: all 0.3s ease;
}
.appraisal-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
  transform: translateY(-1px);
}

.rating-pill {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 2px solid #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.25s ease;
  background: #fff;
}
.rating-pill:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
.rating-pill.active {
  color: white !important;
  border-color: transparent !important;
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.btn-action {
  border-radius: 10px;
  padding: 8px 20px;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  border: none;
}
.btn-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.timeline-item {
  position: relative;
  padding-left: 45px;
  padding-bottom: 24px;
  border-left: 2px solid #e9ecef;
  margin-left: 16px;
  transition: all 0.3s ease;
}
.timeline-item:hover {
  border-left-color: #0d6efd;
}
.timeline-item:last-child {
  border-left: 2px solid transparent;
  padding-bottom: 0;
}
.timeline-dot {
  position: absolute;
  left: -17px;
  top: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.progress-bar-smooth {
  transition: width 0.8s ease;
  border-radius: 50px;
}

textarea.form-control {
  border-radius: 12px;
  border: 2px solid #e9ecef;
  padding: 14px 16px;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  resize: vertical;
}
textarea.form-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.select-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 8px 14px;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.3s ease;
  background-color: white;
  cursor: pointer;
}
.select-control:focus {
  border-color: #0d6efd;
  box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.1);
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1;
}
.workflow-step::after {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  width: 100%;
  height: 3px;
  background: #e9ecef;
}
.workflow-step:last-child::after {
  display: none;
}
.workflow-step.completed::after {
  background: #198754;
}
.workflow-step.active::after {
  background: linear-gradient(90deg, #0d6efd 50%, #e9ecef 50%);
}

.step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  z-index: 1;
  transition: all 0.3s ease;
}

.sidebar-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.table-modern th {
  background: #f8f9fa;
  border: none;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6c757d;
  position: sticky;
  top: 0;
  z-index: 2;
}
.table-modern td {
  padding: 14px 16px;
  border-color: #f0f0f0;
  vertical-align: middle;
  font-size: 0.9rem;
}
.table-modern tbody tr {
  transition: background-color 0.2s ease;
}
.table-modern tbody tr:hover {
  background-color: #f8f9ff;
}

.competency-card {
  border-radius: 14px;
  border: 2px solid #f0f0f0;
  padding: 20px;
  transition: all 0.3s ease;
  background: white;
  height: 100%;
}
.competency-card:hover {
  border-color: #0d6efd;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.1);
}

::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}

@media (max-width: 991px) {
  .sidebar-sticky-wrapper {
    position: relative !important;
    top: auto !important;
  }
}

/* EMPLOYEE APPRAISAL */
.employee-item {
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 4px solid transparent;
}
.employee-item:hover {
  background: #f0f4ff !important;
  transform: translateX(2px);
}
.employee-item.active {
  border-left-color: #0d6efd !important;
  background: #e8f0fe !important;
}
.rating-pill {
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid #dee2e6;
}
.rating-pill:hover {
  transform: scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.rating-pill.selected {
  transform: scale(1.05);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}
.competency-card {
  transition: all 0.3s ease;
}
.competency-card:hover {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}
.summary-card {
  transition: all 0.2s ease;
}
.summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}
.timeline-item {
  position: relative;
  padding-left: 40px;
}
.timeline-item::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 35px;
  bottom: -20px;
  width: 2px;
  background: #dee2e6;
}
.timeline-item:last-child::before {
  display: none;
}
.btn-action {
  transition: all 0.2s ease;
}
.btn-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}
.sidebar-scroll::-webkit-scrollbar {
  width: 5px;
}
.sidebar-scroll::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 10px;
}
.content-scroll::-webkit-scrollbar {
  width: 6px;
}
.content-scroll::-webkit-scrollbar-thumb {
  background: #c4c4c4;
  border-radius: 10px;
}
.toast-container {
  position: fixed;
  top: 80px;
  right: 20px;
  z-index: 9999;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.fade-in {
  animation: fadeInUp 0.3s ease;
}
@media (max-width: 991px) {
  .sidebar-panel {
    display: none;
  }
  .main-content {
    width: 100% !important;
  }
}

/* PROJECT MANAGEMENT EXPENSES */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap");
.kpi-card:hover {
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.07),
    0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  transform: translateY(-3px);
}
.expense-row:hover {
  background: rgba(99, 102, 241, 0.03) !important;
}
.expense-row.selected {
  background: rgba(99, 102, 241, 0.06) !important;
  border-left: 3px solid #6366f1 !important;
}
.btn-act:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12) !important;
}
.toolbar-btn:hover {
  background: rgba(99, 102, 241, 0.08) !important;
  color: #6366f1 !important;
}
.toolbar-btn.active {
  background: #6366f1 !important;
  color: white !important;
}
.activity-item:hover {
  background: rgba(99, 102, 241, 0.03);
  border-radius: 10px;
}
.doc-card:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-2px);
}
.alert-card:hover {
  transform: translateY(-1px);
}
.scroll-area::-webkit-scrollbar {
  height: 5px;
  width: 5px;
}
.scroll-area::-webkit-scrollbar-track {
  background: transparent;
}
.scroll-area::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.12);
  border-radius: 3px;
}
.scroll-area::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.2);
}
.progress-animate {
  transition: width 1s ease-in-out;
}
.slide-in {
  animation: slideIn 0.3s ease-out;
}
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
.fade-in {
  animation: fadeIn 0.4s ease-out;
}
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.check-box {
  cursor: pointer;
  transition: all 0.15s ease;
}
.check-box:hover {
  transform: scale(1.1);
}

/* MILESTONES PAGE */
* {
  box-sizing: border-box;
}
body {
  background: #f1f5f9 !important;
}
.form-check-input:checked {
  background-color: #6366f1;
  border-color: #6366f1;
}
.form-check-input:focus {
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.2);
  border-color: #6366f1;
}
.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem rgba(99, 102, 241, 0.15);
  border-color: #6366f1;
}
.table > :not(caption) > * > * {
  padding: 12px 10px;
  vertical-align: middle;
}
.table-hover > tbody > tr:hover {
  --bs-table-hover-bg: transparent;
}
.dropdown-item:hover {
  background: rgba(99, 102, 241, 0.06);
}
.dropdown-item:active {
  background: rgba(99, 102, 241, 0.12);
  color: #374151;
}
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: #9ca3af;
}
@media (max-width: 768px) {
  .container-fluid {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }
}

.see-none {
  display: none !important;
}

/* ── Open Layout (Public Pages) ── */
.open-card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.open-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08) !important;
}

.open-header .nav-link:hover {
  background-color: rgba(0, 120, 212, 0.06);
  color: var(--primary-color) !important;
}

.cursor-pointer {
  cursor: pointer;
}

.open-page .wrapper {
  background-color: #f8f9fa;
}


/* EMPLOYEE ONBOARDING */
/* ─── Panel ─── */
        .ob-panel-backdrop {
          position: fixed;
          inset: 0;
          background: rgba(0, 0, 0, 0.5);
          backdrop-filter: blur(4px);
          z-index: 1050;
          animation: obFadeIn 0.2s ease;
        }

        .ob-panel {
          position: fixed;
          inset: 0;
          z-index: 1051;
          background: #f5f6fa;
          display: flex;
          flex-direction: column;
          animation: obSlideUp 0.3s ease;
        }

        .ob-panel-header {
          display: flex;
          align-items: center;
          justify-content: space-between;
          padding: 12px 20px;
          background: #fff;
          border-bottom: 1px solid #e9ecef;
          flex-shrink: 0;
        }

        .ob-panel-body {
          flex: 1;
          overflow: auto;
          padding: 16px;
        }

        /* ─── Columns Grid ─── */
        .ob-columns-grid {
          display: grid;
          grid-template-columns: repeat(5, 1fr);
          gap: 12px;
          height: 100%;
          min-height: 0;
        }

        .ob-column {
          background: #fff;
          border: 1px solid #e9ecef;
          border-radius: 10px;
          display: flex;
          flex-direction: column;
          overflow: hidden;
          min-height: 0;
        }

        .ob-column-header {
          padding: 12px 14px;
          border-bottom: 1px solid #f0f0f0;
          background: #fafbfc;
          flex-shrink: 0;
        }

        .ob-column-body {
          flex: 1;
          overflow-y: auto;
          padding: 14px;
          min-height: 0;
        }

        .ob-column-body::-webkit-scrollbar {
          width: 4px;
        }

        .ob-column-body::-webkit-scrollbar-track {
          background: transparent;
        }

        .ob-column-body::-webkit-scrollbar-thumb {
          background: #d1d5db;
          border-radius: 4px;
        }

        .ob-column-footer {
          padding: 10px 14px;
          border-top: 1px solid #f0f0f0;
          background: #fafbfc;
          flex-shrink: 0;
        }

        /* ─── Labels ─── */
        .ob-label {
          font-size: 0.78rem;
        }

        /* ─── Select Invalid ─── */
        .ob-select-invalid .react-select__control {
          border-color: #dc3545 !important;
        }

        /* ─── Animations ─── */
        @keyframes obFadeIn {
          from { opacity: 0; }
          to { opacity: 1; }
        }

        @keyframes obSlideUp {
          from { opacity: 0; transform: translateY(20px); }
          to { opacity: 1; transform: translateY(0); }
        }

        /* ─── Responsive: Stack on smaller screens ─── */
        @media (max-width: 1400px) {
          .ob-columns-grid {
            grid-template-columns: repeat(3, 1fr);
            height: auto;
          }
        }

        @media (max-width: 992px) {
          .ob-columns-grid {
            grid-template-columns: repeat(2, 1fr);
          }
        }

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

          .ob-panel-body {
            padding: 10px;
          }
        }



        /* ── Mobile sidebar drawer ───────────────────────── */
@media (max-width: 768px) {

  /* Hide sidebar off-screen by default */
  .sidenav-menu {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    width: 260px;
    overflow-y: auto;
    background: var(--bs-body-bg);
    box-shadow: none;
  }

  /* Slide in when open */
  body.sidebar-open .sidenav-menu {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.18);
  }

  /* Dim backdrop */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  /* Push main content full width */
  .content-page,
  .main-content {
    margin-left: 0 !important;
  }
}

/* Desktop — sidebar always visible, no backdrop */
@media (min-width: 769px) {
  .sidebar-backdrop {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .app-topbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    border-radius: 0 !important;
  }

  .topnav-toggle-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--ins-topbar-item-color);
    font-size: 22px;
    padding: 0 8px;
  }

  /* ── Sidebar drawer ── */
  .sidenav-menu {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100vh !important;
    width: 260px !important;
    z-index: 1050 !important;
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    overflow-y: auto;

    /* Fix transparency — use the theme's sidenav bg variable */
    background-color: var(--ins-sidenav-bg) !important;
    background: var(--ins-sidenav-bg) !important;
  }

  body.sidebar-open .sidenav-menu {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.25);
  }

  /* Backdrop */
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1040;
  }

  body.sidebar-open .sidebar-backdrop {
    display: block;
  }

  /* Content takes full width */
  .content-page {
    margin-left: 0 !important;
    width: 100% !important;
  }
}

@media (min-width: 769px) {
  .sidebar-backdrop {
    display: none !important;
  }
}

/* Audio seek bar thumb */
input[type='range']::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  cursor: pointer;
}

input[type='range']::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  border: none;
  background: currentColor;
  cursor: pointer;
}

/* VIDEO CALL */
/* ── Wrapper ── */
.vc-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  background: var(--ins-side-card);
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Full-screen remote video ── */
.vc-remote {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--ins-side-card);
}

/* ── Gradient overlays ── */
.vc-gradient-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(to bottom, rgba(4, 5, 18, 0.80) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

.vc-gradient-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 220px;
  background: linear-gradient(to top, rgba(4, 5, 18, 0.85) 0%, transparent 100%);
  pointer-events: none;
  z-index: 2;
}

/* ── Top bar ── */
.vc-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.vc-top-bar.hidden {
  opacity: 0;
  transform: translateY(-12px);
}

.vc-top-bar.visible {
  opacity: 1;
  transform: translateY(0);
}

.vc-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ins-secondary), var(--ins-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: var(--ins-white);
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.20);
}

.vc-caller-info {
  display: flex;
  flex-direction: column;
}

.vc-caller-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--ins-white);
  line-height: 1.2;
  letter-spacing: 0.01em;
}

.vc-call-status {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
}

.vc-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ins-green);
  animation: vc-pulse-dot 1.8s ease-in-out infinite;
}

@keyframes vc-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.45; transform: scale(0.70); }
}

.vc-status-text {
  font-size: 12px;
  color: var(--ins-gray);
  font-weight: 500;
  letter-spacing: 0.03em;
}

.vc-duration {
  margin-left: auto;
  background: rgba(59, 193, 234, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(59, 193, 234, 0.25);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ins-primary);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

/* ── PiP local preview ── */
.vc-pip {
  position: absolute;
  top: 90px;
  right: 24px;
  width: 168px;
  height: 112px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--ins-gray-900);
  border: 2px solid rgba(59, 193, 234, 0.22);
  box-shadow:
    0 8px 32px rgba(4, 5, 18, 0.65),
    0 0 0 1px rgba(59, 193, 234, 0.08);
  z-index: 10;
  transition: transform 0.3s ease, border-color 0.3s ease;
  cursor: grab;
}

.vc-pip:hover {
  transform: scale(1.04);
  border-color: rgba(59, 193, 234, 0.45);
}

.vc-pip video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vc-pip-label {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-size: 10px;
  font-weight: 600;
  color: var(--ins-gray-400);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(4, 5, 18, 0.55);
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

/* ── Bottom controls bar ── */
.vc-controls-bar {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(0);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(4, 5, 18, 0.65);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(59, 193, 234, 0.12);
  border-radius: 50px;
  padding: 12px 20px;
  box-shadow:
    0 4px 6px -1px rgba(4, 5, 18, 0.5),
    0 20px 60px -10px rgba(4, 5, 18, 0.8),
    inset 0 1px 0 rgba(59, 193, 234, 0.07);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.vc-controls-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) translateY(24px);
}

.vc-controls-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.vc-divider {
  width: 1px;
  height: 32px;
  background: rgba(59, 193, 234, 0.15);
  border-radius: 1px;
  margin: 0 4px;
}

/* ── Control buttons ── */
.vc-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  outline: none;
  flex-shrink: 0;
}

.vc-btn:hover  { transform: scale(1.10); }
.vc-btn:active { transform: scale(0.95); }

.vc-btn-idle {
  background: rgba(59, 193, 234, 0.10);
  color: var(--ins-white);
  border: 1px solid rgba(59, 193, 234, 0.18);
  box-shadow: 0 2px 8px rgba(4, 5, 18, 0.4);
}

.vc-btn-idle:hover {
  background: rgba(59, 193, 234, 0.20);
  box-shadow: 0 4px 16px rgba(59, 193, 234, 0.18);
}

.vc-btn-active {
  background: rgba(247, 184, 75, 0.15);
  color: var(--ins-warning);
  border: 1px solid rgba(247, 184, 75, 0.35);
  animation: vc-glow-warning 2s ease-in-out infinite;
}

@keyframes vc-glow-warning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 184, 75, 0.0); }
  50%       { box-shadow: 0 0 14px 4px rgba(247, 184, 75, 0.22); }
}

.vc-btn-off {
  background: rgba(138, 150, 156, 0.08);
  color: var(--ins-gray);
  border: 1px solid rgba(138, 150, 156, 0.15);
}

.vc-btn-off:hover {
  background: rgba(138, 150, 156, 0.16);
}

.vc-btn-end {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--ins-danger), #c73b56);
  color: var(--ins-white);
  border: none;
  box-shadow: 0 4px 20px rgba(241, 85, 108, 0.42);
}

.vc-btn-end:hover {
  background: linear-gradient(135deg, #f4728a, var(--ins-danger));
  box-shadow: 0 6px 28px rgba(241, 85, 108, 0.62);
}

/* ── Custom tooltips ── */
.vc-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ins-gray-900);
  color: var(--ins-white);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(59, 193, 234, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  letter-spacing: 0.03em;
}

.vc-btn[data-tip]:hover::after { opacity: 1; }

/* ── No-stream placeholder ── */
.vc-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at center, var(--ins-gray-900) 0%, var(--ins-side-card) 70%);
  z-index: 1;
}

.vc-placeholder-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ins-secondary), var(--ins-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--ins-white);
  margin-bottom: 18px;
  animation: vc-ring-pulse 2.5s ease-in-out infinite;
}

@keyframes vc-ring-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 14px rgba(74, 129, 212, 0.14),
      0 0 0 30px rgba(74, 129, 212, 0.07);
  }
  50% {
    box-shadow:
      0 0 0 22px rgba(74, 129, 212, 0.08),
      0 0 0 44px rgba(74, 129, 212, 0.03);
  }
}

.vc-placeholder-name {
  font-size: 22px;
  font-weight: 600;
  color: var(--ins-white);
  letter-spacing: 0.01em;
}

.vc-placeholder-sub {
  font-size: 13px;
  color: var(--ins-gray);
  margin-top: 6px;
  letter-spacing: 0.04em;
}

/* ── Cursor hidden when controls are hidden ── */
.vc-wrapper.controls-hidden {
  cursor: none;
}


/* AUDIO CALL */
/* ── Wrapper ── */
.ac-wrapper {
  position: relative;
  width: 100%;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--ins-side-card);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ac-wrapper.controls-hidden {
  cursor: none;
}

/* ── Ambient background blobs ── */
.ac-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.ac-blob-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  left: -100px;
  background: radial-gradient(circle, rgba(74, 129, 212, 0.18) 0%, transparent 70%);
  animation: ac-blob-drift 10s ease-in-out infinite alternate;
}

.ac-blob-2 {
  width: 360px;
  height: 360px;
  bottom: -60px;
  right: -80px;
  background: radial-gradient(circle, rgba(107, 94, 174, 0.16) 0%, transparent 70%);
  animation: ac-blob-drift 13s ease-in-out infinite alternate-reverse;
}

.ac-blob-3 {
  width: 260px;
  height: 260px;
  bottom: 100px;
  left: 10%;
  background: radial-gradient(circle, rgba(59, 193, 234, 0.10) 0%, transparent 70%);
  animation: ac-blob-drift 8s ease-in-out infinite alternate;
}

@keyframes ac-blob-drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(30px, 20px) scale(1.08); }
}

/* ── Center card ── */
.ac-card {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 24px;
  text-align: center;
}

/* ── Pulse rings ── */
.ac-pulse-rings {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
}

.ac-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 193, 234, 0.28);
  animation: ac-ring-expand 3s ease-out infinite;
}

.ac-ring:nth-child(1) { width: 160px; height: 160px; animation-delay: 0.0s; }
.ac-ring:nth-child(2) { width: 210px; height: 210px; animation-delay: 0.8s; }
.ac-ring:nth-child(3) { width: 260px; height: 260px; animation-delay: 1.6s; }

@keyframes ac-ring-expand {
  0%   { opacity: 0.7; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.15); }
}

/* ── Avatar ── */
.ac-avatar-wrap {
  position: relative;
  z-index: 2;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ins-secondary), var(--ins-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  font-weight: 700;
  color: var(--ins-white);
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 0 0 6px rgba(59, 193, 234, 0.10),
    0 16px 48px rgba(4, 5, 18, 0.70);
  overflow: hidden;
  flex-shrink: 0;
}

.ac-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

/* ── Name & status ── */
.ac-name {
  font-size: 26px;
  font-weight: 700;
  color: var(--ins-white);
  letter-spacing: 0.01em;
  margin: 0 0 8px;
}

.ac-status-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-bottom: 10px;
}

.ac-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ins-green);
  animation: ac-pulse-dot 1.8s ease-in-out infinite;
}

@keyframes ac-pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.4; transform: scale(0.70); }
}

.ac-status-text {
  font-size: 13px;
  color: var(--ins-gray);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ── Duration badge ── */
.ac-duration {
  display: inline-block;
  background: rgba(59, 193, 234, 0.12);
  border: 1px solid rgba(59, 193, 234, 0.25);
  border-radius: 20px;
  padding: 6px 18px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ins-primary);
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
  margin-bottom: 48px;
}

/* ── Sound wave visualiser ── */
.ac-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 32px;
  margin-bottom: 40px;
}

.ac-bar {
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--ins-primary), var(--ins-indigo));
  animation: ac-wave-bounce 1.2s ease-in-out infinite;
  opacity: 0.85;
  transition: opacity 0.4s ease;
}

.ac-bar:nth-child(1)  { height: 10px; animation-delay: 0.00s; }
.ac-bar:nth-child(2)  { height: 22px; animation-delay: 0.10s; }
.ac-bar:nth-child(3)  { height: 30px; animation-delay: 0.20s; }
.ac-bar:nth-child(4)  { height: 18px; animation-delay: 0.30s; }
.ac-bar:nth-child(5)  { height: 28px; animation-delay: 0.15s; }
.ac-bar:nth-child(6)  { height: 14px; animation-delay: 0.25s; }
.ac-bar:nth-child(7)  { height: 26px; animation-delay: 0.05s; }
.ac-bar:nth-child(8)  { height: 20px; animation-delay: 0.35s; }
.ac-bar:nth-child(9)  { height: 12px; animation-delay: 0.10s; }
.ac-bar:nth-child(10) { height: 24px; animation-delay: 0.20s; }
.ac-bar:nth-child(11) { height: 16px; animation-delay: 0.30s; }
.ac-bar:nth-child(12) { height: 8px;  animation-delay: 0.40s; }

/* Dim bars when muted — toggle this class via JS */
.ac-wave.muted .ac-bar {
  opacity: 0.20;
}

@keyframes ac-wave-bounce {
  0%, 100% { transform: scaleY(0.45); }
  50%       { transform: scaleY(1.0); }
}

/* ── Controls bar ── */
.ac-controls-bar {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(4, 5, 18, 0.60);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(59, 193, 234, 0.12);
  border-radius: 50px;
  padding: 12px 20px;
  box-shadow:
    0 4px 6px -1px rgba(4, 5, 18, 0.5),
    0 20px 60px -10px rgba(4, 5, 18, 0.8),
    inset 0 1px 0 rgba(59, 193, 234, 0.07);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.ac-controls-bar.hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px);
}

.ac-controls-bar.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.ac-divider {
  width: 1px;
  height: 32px;
  background: rgba(59, 193, 234, 0.15);
  border-radius: 1px;
  margin: 0 4px;
}

/* ── Control buttons ── */
.ac-btn {
  position: relative;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
  outline: none;
  flex-shrink: 0;
}

.ac-btn:hover  { transform: scale(1.10); }
.ac-btn:active { transform: scale(0.95); }

.ac-btn-idle {
  background: rgba(59, 193, 234, 0.10);
  color: var(--ins-white);
  border: 1px solid rgba(59, 193, 234, 0.18);
  box-shadow: 0 2px 8px rgba(4, 5, 18, 0.4);
}

.ac-btn-idle:hover {
  background: rgba(59, 193, 234, 0.20);
  box-shadow: 0 4px 16px rgba(59, 193, 234, 0.18);
}

.ac-btn-active {
  background: rgba(247, 184, 75, 0.15);
  color: var(--ins-warning);
  border: 1px solid rgba(247, 184, 75, 0.35);
  animation: ac-glow-warning 2s ease-in-out infinite;
}

@keyframes ac-glow-warning {
  0%, 100% { box-shadow: 0 0 0 0 rgba(247, 184, 75, 0.0); }
  50%       { box-shadow: 0 0 14px 4px rgba(247, 184, 75, 0.22); }
}

.ac-btn-off {
  background: rgba(138, 150, 156, 0.08);
  color: var(--ins-gray);
  border: 1px solid rgba(138, 150, 156, 0.15);
}

.ac-btn-off:hover {
  background: rgba(138, 150, 156, 0.16);
}

.ac-btn-end {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--ins-danger), #c73b56);
  color: var(--ins-white);
  border: none;
  box-shadow: 0 4px 20px rgba(241, 85, 108, 0.42);
}

.ac-btn-end:hover {
  background: linear-gradient(135deg, #f4728a, var(--ins-danger));
  box-shadow: 0 6px 28px rgba(241, 85, 108, 0.62);
}

/* ── Custom tooltips ── */
.ac-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ins-gray-900);
  color: var(--ins-white);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
  padding: 5px 10px;
  border-radius: 6px;
  border: 1px solid rgba(59, 193, 234, 0.15);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  letter-spacing: 0.03em;
}

.ac-btn[data-tip]:hover::after { opacity: 1; }


/* INCOMING CALL */
/* components/chat/IncomingCall.css */

.inc-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(4, 5, 18, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: inc-fade-in 0.3s ease;
}

@keyframes inc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.inc-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: rgba(4, 5, 18, 0.90);
  border: 1px solid rgba(59, 193, 234, 0.18);
  padding: 40px 48px;
  box-shadow:
    0 24px 80px rgba(4, 5, 18, 0.8),
    inset 0 1px 0 rgba(59, 193, 234, 0.08);
  animation: inc-slide-up 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes inc-slide-up {
  from { transform: translateY(32px); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}

/* ── Pulse rings ── */
.inc-pulse-rings {
  position: relative;
  width: 120px;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.inc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(59, 193, 234, 0.25);
  animation: inc-ring-expand 2.5s ease-out infinite;
}
.inc-ring:nth-child(1) { width: 120px; height: 120px; animation-delay: 0.0s; }
.inc-ring:nth-child(2) { width: 170px; height: 170px; animation-delay: 0.8s; }

@keyframes inc-ring-expand {
  0%   { opacity: 0.8; transform: scale(0.85); }
  100% { opacity: 0;   transform: scale(1.2);  }
}

.inc-avatar {
  position: relative;
  z-index: 2;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ins-secondary), var(--ins-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  color: var(--ins-white);
  border: 3px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(59, 193, 234, 0.12);
}

/* ── Text ── */
.inc-name {
  font-size: 22px;
  font-weight: 700;
  color: var(--ins-white);
  margin: 0;
  letter-spacing: 0.01em;
}

.inc-label {
  font-size: 13px;
  color: var(--ins-gray);
  margin: 0 0 24px;
  letter-spacing: 0.03em;
}

/* ── Action buttons ── */
.inc-actions {
  display: flex;
  align-items: center;
  gap: 32px;
}

.inc-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  outline: none;
}

.inc-btn:hover  { transform: scale(1.12); }
.inc-btn:active { transform: scale(0.95); }

.inc-btn-reject {
  background: linear-gradient(135deg, var(--ins-danger), #c73b56);
  color: var(--ins-white);
  box-shadow: 0 4px 20px rgba(241, 85, 108, 0.45);
  animation: inc-btn-shake 1.5s ease-in-out infinite;
}

.inc-btn-answer {
  background: linear-gradient(135deg, var(--ins-green), #08a87a);
  color: var(--ins-white);
  box-shadow: 0 4px 20px rgba(10, 207, 151, 0.45);
  animation: inc-btn-pulse 1.5s ease-in-out infinite;
}

@keyframes inc-btn-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(10, 207, 151, 0.45); }
  50%       { box-shadow: 0 4px 32px rgba(10, 207, 151, 0.75); }
}

@keyframes inc-btn-shake {
  0%, 100% { transform: rotate(0deg);   }
  20%       { transform: rotate(-12deg); }
  40%       { transform: rotate(12deg);  }
  60%       { transform: rotate(-8deg);  }
  80%       { transform: rotate(8deg);   }
}


/* MY SCHEDULES */
/* components/MySchedules/MySchedules.css */

/* ─── Calendar-Scoped Variables (derived from --ins-*) ── */
.cal-app {
  --cal-bg: var(--ins-secondary-bg);
  --cal-body-bg: var(--ins-body-bg);
  --cal-surface: var(--ins-tertiary-bg);
  --cal-border: var(--ins-border-color);
  --cal-border-light: var(--ins-border-color-translucent);
  --cal-text-primary: var(--ins-body-color);
  --cal-text-secondary: var(--ins-secondary-color);
  --cal-text-heading: var(--ins-heading-color);
  --cal-text-disabled: var(--ins-gray-500);
  --cal-primary: var(--ins-primary);
  --cal-primary-rgb: var(--ins-primary-rgb);
  --cal-primary-subtle: var(--ins-primary-bg-subtle);
  --cal-primary-border: var(--ins-primary-border-subtle);
  --cal-primary-text: var(--ins-primary-text-emphasis);
  --cal-danger: var(--ins-danger);
  --cal-danger-subtle: var(--ins-danger-bg-subtle);
  --cal-success: var(--ins-success);
  --cal-hover: var(--ins-tertiary-bg);
  --cal-shadow: var(--ins-box-shadow);
  --cal-shadow-lg: var(--ins-box-shadow-lg);
  --cal-font: var(--ins-font-sans-serif);
  --cal-radius: var(--ins-border-radius);
  --cal-radius-sm: var(--ins-border-radius-sm);
  --cal-radius-lg: var(--ins-border-radius-lg);
  --cal-sidebar-width: 256px;
  --cal-time-label-width: 56px;
  --cal-header-height: 60px;
  --cal-transition: 0.2s ease;
}

/* ─── Base ───────────────────────────────────────────── */
.cal-app {
  font-family: var(--cal-font);
  color: var(--cal-text-primary);
  background: var(--cal-body-bg);
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: var(--ins-body-font-size);
  line-height: var(--ins-body-line-height);
}

.cal-app *,
.cal-app *::before,
.cal-app *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ─── Header ─────────────────────────────────────────── */
.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--cal-header-height);
  padding: 0 16px;
  border-bottom: 1px solid var(--cal-border);
  background: var(--cal-bg);
  z-index: 100;
  flex-shrink: 0;
}

.cal-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cal-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cal-hamburger {
  margin-right: 4px;
}

.cal-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: 20px;
  cursor: default;
}

.cal-logo-text {
  font-size: 18px;
  color: var(--cal-text-primary);
  font-weight: 600;
  letter-spacing: -0.3px;
}

.cal-header-title {
  font-size: 20px;
  font-weight: 500;
  color: var(--cal-text-primary);
  margin-left: 8px;
  white-space: nowrap;
}

/* ─── Buttons ────────────────────────────────────────── */
.cal-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  color: var(--cal-text-secondary);
  transition: all var(--cal-transition);
}

.cal-icon-btn:hover {
  background: var(--cal-hover);
  color: var(--cal-text-primary);
}

.cal-icon-btn.small {
  width: 28px;
  height: 28px;
}

.cal-today-btn {
  padding: 0 16px;
  height: 34px;
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius);
  background: var(--cal-bg);
  color: var(--cal-text-primary);
  font-family: var(--cal-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--cal-transition);
}

.cal-today-btn:hover {
  background: var(--cal-primary-subtle);
  border-color: var(--cal-primary-border);
  color: var(--cal-primary);
}

.cal-nav-arrows {
  display: flex;
  align-items: center;
}

/* ─── View Dropdown ──────────────────────────────────── */
.cal-view-dropdown {
  position: relative;
}

.cal-view-btn {
  display: flex;
  align-items: center;
  padding: 0 12px;
  height: 34px;
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius);
  background: var(--cal-bg);
  color: var(--cal-text-primary);
  font-family: var(--cal-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--cal-transition);
}

.cal-view-btn:hover {
  background: var(--cal-hover);
  border-color: var(--cal-primary-border);
}

.cal-view-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--cal-bg);
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius);
  box-shadow: var(--cal-shadow-lg);
  padding: 6px 0;
  min-width: 180px;
  z-index: 200;
}

.cal-view-dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--cal-text-primary);
  font-family: var(--cal-font);
  font-size: 13px;
  cursor: pointer;
  transition: background var(--cal-transition);
}

.cal-view-dropdown-item:hover {
  background: var(--cal-hover);
}

.cal-view-dropdown-item.active {
  background: var(--cal-primary-subtle);
  color: var(--cal-primary);
  font-weight: 500;
}

.cal-shortcut {
  color: var(--cal-text-disabled);
  font-size: 11px;
  font-weight: 400;
}

/* ─── Search ─────────────────────────────────────────── */
.cal-search-container {
  position: relative;
}

.cal-search-expanded {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 14px;
  background: var(--cal-surface);
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius-lg);
  width: 280px;
  height: 38px;
  color: var(--cal-text-secondary);
}

.cal-search-expanded input {
  flex: 1;
  border: none;
  background: transparent;
  font-family: var(--cal-font);
  font-size: 13px;
  color: var(--cal-text-primary);
  outline: none;
}

.cal-search-expanded input::placeholder {
  color: var(--cal-text-disabled);
}

/* ─── Body Layout ────────────────────────────────────── */
.cal-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.cal-main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--cal-bg);
}

/* ─── Sidebar ────────────────────────────────────────── */
.cal-sidebar {
  width: var(--cal-sidebar-width);
  border-right: 1px solid var(--cal-border);
  padding: 16px;
  overflow-y: auto;
  flex-shrink: 0;
  background: var(--cal-bg);
  transition: width var(--cal-transition);
}

.cal-create-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 20px 4px 4px;
  border: 1px solid var(--cal-primary);
  border-radius: 10px;
  background: var(--cal-bg);
  box-shadow: var(--cal-shadow);
  cursor: pointer;
  font-family: var(--cal-font);
  font-size: 14px;
  font-weight: 500;
  color: var(--cal-text-primary);
  transition: all var(--cal-transition);
  margin-bottom: 20px;
  height: 46px;
}

.cal-create-btn:hover {
  box-shadow: var(--cal-shadow-lg);
  background: var(--cal-primary-subtle);
}

.cal-create-btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
}

/* ─── Mini Calendar ──────────────────────────────────── */
.mini-calendar {
  margin-bottom: 16px;
}

.mini-calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 8px;
}

.mini-calendar-title {
  border: none;
  background: transparent;
  font-family: var(--cal-font);
  font-size: 13px;
  font-weight: 600;
  color: var(--cal-text-primary);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--cal-radius-sm);
}

.mini-calendar-title:hover {
  background: var(--cal-hover);
}

.mini-calendar-nav {
  display: flex;
}

.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  text-align: center;
}

.mini-calendar-day-header {
  font-size: 10px;
  font-weight: 600;
  color: var(--cal-text-secondary);
  padding: 4px 0;
  text-transform: uppercase;
}

.mini-calendar-day {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-family: var(--cal-font);
  font-size: 11px;
  color: var(--cal-text-primary);
  cursor: pointer;
  margin: 1px auto;
  transition: all var(--cal-transition);
}

.mini-calendar-day:hover {
  background: var(--cal-hover);
}

.mini-calendar-day.other-month {
  color: var(--cal-text-disabled);
}

.mini-calendar-day.today {
  background: var(--cal-primary);
  color: var(--ins-white);
  font-weight: 600;
}

.mini-calendar-day.today:hover {
  background: var(--cal-primary-text);
}

.mini-calendar-day.selected {
  background: var(--cal-primary-subtle);
  color: var(--cal-primary);
  font-weight: 600;
}

/* ─── Sidebar Sections ───────────────────────────────── */
.cal-sidebar-section {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--cal-border);
}

.cal-sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px;
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--cal-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cal-sidebar-calendar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px;
  border-radius: var(--cal-radius-sm);
  cursor: pointer;
  font-size: 13px;
  transition: background var(--cal-transition);
}

.cal-sidebar-calendar:hover {
  background: var(--cal-hover);
}

.cal-checkbox-wrapper {
  position: relative;
  display: flex;
}

.cal-checkbox-wrapper input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.cal-checkbox-custom {
  width: 18px;
  height: 18px;
  border: 2px solid;
  border-radius: var(--cal-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--cal-transition);
}

.cal-sidebar-calendar-name {
  color: var(--cal-text-primary);
  font-weight: 400;
}

/* ─── Time Grid (Week / Day / 4-Day) ─────────────────── */
.cal-day-view,
.cal-week-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.cal-day-view-header,
.cal-week-view-header {
  display: flex;
  border-bottom: 1px solid var(--cal-border);
  flex-shrink: 0;
  background: var(--cal-bg);
}

.cal-time-label-gutter {
  width: var(--cal-time-label-width);
  flex-shrink: 0;
}

.cal-day-header-cells,
.cal-week-header-cells {
  display: flex;
  flex: 1;
}

.cal-day-header-cell {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 0 6px;
  cursor: pointer;
  transition: background var(--cal-transition);
}

.cal-day-header-cell:hover {
  background: var(--cal-hover);
}

.cal-day-name {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cal-text-secondary);
  letter-spacing: 0.8px;
}

.cal-day-header-cell.today .cal-day-name {
  color: var(--cal-primary);
}

.cal-day-number {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 22px;
  font-weight: 400;
  color: var(--cal-text-primary);
  transition: background var(--cal-transition);
}

.cal-day-number:hover {
  background: var(--cal-hover);
}

.cal-day-number.today {
  background: var(--cal-primary);
  color: var(--ins-white);
  font-weight: 500;
}

.cal-day-number.today:hover {
  background: var(--cal-primary-text);
}

/* ─── Time Grid Inner ────────────────────────────────── */
.cal-time-grid-wrapper {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}



.cal-time-grid-scroll {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  min-height: 0;
}

.cal-time-grid-inner {
  display: flex;
  position: relative;
  min-width: 100%;
  /* height: 1440px; */
  /* padding-top: 16px; */
}

.cal-time-labels {
  width: var(--cal-time-label-width);
  flex-shrink: 0;
  position: relative;
  /* height: 1440px; */
}

.cal-time-label {
  position: relative;
  height: 60px;
  box-sizing: border-box;
}

.cal-time-label span {
  position: absolute;
  top: -7px;
  right: 8px;
  font-size: 10px;
  color: var(--cal-text-secondary);
  font-weight: 500;
  white-space: nowrap;
  user-select: none;
}

.cal-time-label:first-child span {
  top: 2px;
}

.cal-time-columns {
  display: flex;
  flex: 1;
  height: 1440px;
  min-width: 0;
}

.cal-time-column {
  flex: 1;
  position: relative;
  border-left: 1px solid var(--cal-border);
  height: 1440px;
  min-width: 0;
}

.cal-time-column.today {
  background: rgba(var(--cal-primary-rgb), 0.03);
}

.cal-time-slot {
  border-bottom: 1px solid var(--cal-border);
  position: relative;
  height: 60px;
  box-sizing: border-box;
  flex-shrink: 0;
}

.cal-time-slot::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  border-bottom: 1px dashed var(--cal-border);
  opacity: 0.4;
  pointer-events: none;
}

.cal-time-slot:first-child {
  border-top: 1px solid var(--cal-border);
}

.cal-time-slot:last-child {
  /* border-bottom: none; */
  border-bottom: 1px solid transparent;
}

.cal-time-slot:last-child::after {
  display: none;
}

/* ─── Current Time Line ──────────────────────────────── */
.cal-current-time-line {
  position: absolute;
  left: -1px;
  right: 0;
  height: 2px;
  background: var(--ins-danger);
  z-index: 10;
  pointer-events: none;
}

.cal-current-time-dot {
  position: absolute;
  left: -5px;
  top: -4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ins-danger);
}

/* ─── Event Blocks ───────────────────────────────────── */
.cal-event-block {
  position: absolute;
  left: 2px;
  right: 4px;
  border-radius: var(--cal-radius-sm);
  padding: 3px 8px;
  cursor: pointer;
  overflow: hidden;
  z-index: 5;
  transition: box-shadow var(--cal-transition), opacity var(--cal-transition);
  min-height: 22px;
  opacity: 0.92;
}

.cal-event-block:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 6;
  opacity: 1;
}

.cal-event-block-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ins-white);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cal-event-block-time {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 1px;
  font-weight: 400;
}

.cal-event-block-location {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.75);
  margin-top: 1px;
  font-style: italic;
}

/* ─── Drag Selection ─────────────────────────────────── */
.cal-drag-selection {
  position: absolute;
  left: 2px;
  right: 4px;
  background: var(--cal-primary-subtle);
  border: 2px solid var(--cal-primary);
  border-radius: var(--cal-radius-sm);
  z-index: 4;
  pointer-events: none;
  opacity: 0.7;
}

/* ─── Month View ─────────────────────────────────────── */
.cal-month-view {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.cal-month-header {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  border-bottom: 1px solid var(--cal-border);
  background: var(--cal-bg);
}

.cal-month-header-cell {
  padding: 10px 0;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--cal-text-secondary);
  letter-spacing: 0.8px;
}

.cal-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: repeat(6, 1fr);
  flex: 1;
}

.cal-month-cell {
  border-right: 1px solid var(--cal-border);
  border-bottom: 1px solid var(--cal-border);
  padding: 4px;
  min-height: 0;
  overflow: hidden;
  cursor: pointer;
  transition: background var(--cal-transition);
  background: var(--cal-bg);
}

.cal-month-cell:hover {
  background: var(--cal-hover);
}

.cal-month-cell:nth-child(7n) {
  border-right: none;
}

.cal-month-cell.other-month {
  background: var(--cal-surface);
}

.cal-month-day-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 500;
  color: var(--cal-text-primary);
  cursor: pointer;
  transition: all var(--cal-transition);
}

.cal-month-day-number:hover {
  background: var(--cal-hover);
}

.cal-month-cell.other-month .cal-month-day-number {
  color: var(--cal-text-disabled);
}

.cal-month-day-number.today {
  background: var(--cal-primary);
  color: var(--ins-white);
  font-weight: 600;
}

.cal-month-day-number.today:hover {
  background: var(--cal-primary-text);
}

.cal-month-events {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin-top: 2px;
}

.cal-month-event {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 1px 4px;
  border-radius: var(--cal-radius-sm);
  font-size: 11px;
  color: var(--ins-white);
  cursor: pointer;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--cal-transition);
}

.cal-month-event:hover {
  opacity: 0.85;
}

.cal-month-event-time {
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.cal-month-event-title {
  overflow: hidden;
  text-overflow: ellipsis;
}

.cal-month-more {
  border: none;
  background: transparent;
  font-family: var(--cal-font);
  font-size: 11px;
  font-weight: 600;
  color: var(--cal-primary);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: var(--cal-radius-sm);
  text-align: left;
}

.cal-month-more:hover {
  background: var(--cal-primary-subtle);
}

/* ─── Year View ──────────────────────────────────────── */
.cal-year-view {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 24px 36px;
  overflow-y: auto;
  height: 100%;
}

.cal-year-month {
  display: flex;
  flex-direction: column;
}

.cal-year-month-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--cal-text-primary);
  margin-bottom: 8px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: var(--cal-radius-sm);
  transition: all var(--cal-transition);
}

.cal-year-month-title:hover {
  background: var(--cal-primary-subtle);
  color: var(--cal-primary);
}

.cal-year-month-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
  text-align: center;
}

.cal-year-day-header {
  font-size: 9px;
  font-weight: 600;
  color: var(--cal-text-secondary);
  padding: 3px 0;
  text-transform: uppercase;
}

.cal-year-day {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 10px;
  color: var(--cal-text-primary);
  cursor: pointer;
  margin: 0 auto;
  transition: all var(--cal-transition);
}

.cal-year-day:hover {
  background: var(--cal-hover);
}

.cal-year-day.other-month {
  color: var(--cal-text-disabled);
}

.cal-year-day.today {
  background: var(--cal-primary);
  color: var(--ins-white);
  font-weight: 600;
}

.cal-year-day.has-events::after {
  content: '';
  position: absolute;
  bottom: 1px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cal-primary);
}

.cal-year-day.today.has-events::after {
  background: var(--ins-white);
}

/* ─── Schedule View ──────────────────────────────────── */
.cal-schedule-view {
  padding: 20px 24px;
  overflow-y: auto;
  height: 100%;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.cal-schedule-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  color: var(--cal-text-secondary);
}

.cal-schedule-empty h3 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 16px;
  color: var(--cal-text-primary);
}

.cal-schedule-empty p {
  font-size: 13px;
  margin-top: 6px;
  color: var(--cal-text-disabled);
}

.cal-schedule-day {
  display: flex;
  border-bottom: 1px solid var(--cal-border);
  padding: 14px 0;
}

.cal-schedule-day-header {
  width: 100px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 4px;
}

.cal-schedule-day-name {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--cal-text-secondary);
  letter-spacing: 0.5px;
  font-weight: 600;
}

.cal-schedule-day-name.today {
  color: var(--cal-primary);
}

.cal-schedule-day-number {
  font-size: 22px;
  font-weight: 400;
  color: var(--cal-text-primary);
  line-height: 1.2;
}

.cal-schedule-day-number.today {
  color: var(--cal-primary);
  font-weight: 600;
}

.cal-schedule-month {
  font-size: 10px;
  color: var(--cal-text-disabled);
  text-transform: uppercase;
  font-weight: 500;
}

.cal-schedule-events {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cal-schedule-event {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--cal-radius);
  cursor: pointer;
  transition: background var(--cal-transition);
}

.cal-schedule-event:hover {
  background: var(--cal-hover);
}

.cal-schedule-event-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 3px;
  flex-shrink: 0;
}

.cal-schedule-event-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cal-schedule-event-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--cal-text-primary);
}

.cal-schedule-event-time {
  font-size: 12px;
  color: var(--cal-text-secondary);
}

.cal-schedule-event-location {
  font-size: 12px;
  color: var(--cal-text-disabled);
  font-style: italic;
}

/* ─── Event Popover ──────────────────────────────────── */
.cal-popover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 300;
}

.cal-popover {
  position: fixed;
  width: 320px;
  background: var(--cal-bg);
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius-lg);
  box-shadow: var(--cal-shadow-lg);
  z-index: 301;
  overflow: hidden;
  animation: calPopoverIn 0.15s ease-out;
}

@keyframes calPopoverIn {
  from { opacity: 0; transform: scale(0.96) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.cal-popover-header {
  display: flex;
  justify-content: flex-end;
  padding: 8px 8px 0;
}

.cal-popover-actions {
  display: flex;
  gap: 2px;
}

.cal-popover-body {
  padding: 0 20px 20px;
}

.cal-popover-title-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.cal-popover-color-dot {
  width: 14px;
  height: 14px;
  border-radius: var(--cal-radius-sm);
  margin-top: 5px;
  flex-shrink: 0;
}

.cal-popover-title {
  font-size: 18px;
  font-weight: 500;
  color: var(--cal-text-primary);
  word-break: break-word;
  line-height: 1.3;
}

.cal-popover-datetime {
  font-size: 13px;
  color: var(--cal-text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.cal-popover-detail {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 8px;
  font-size: 13px;
  color: var(--cal-text-secondary);
}

.cal-popover-detail svg {
  flex-shrink: 0;
  margin-top: 1px;
}

.cal-popover-calendar-name {
  text-transform: capitalize;
}

/* ─── Event Modal ────────────────────────────────────── */
.cal-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(var(--ins-black-rgb), 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 400;
  animation: calFadeIn 0.15s ease-out;
}

/* ── Modal & Popover outside cal-app need their own variables ── */
.cal-modal-overlay,
.cal-popover-overlay {
  --cal-bg: var(--ins-secondary-bg);
  --cal-body-bg: var(--ins-body-bg);
  --cal-surface: var(--ins-tertiary-bg);
  --cal-border: var(--ins-border-color);
  --cal-border-light: var(--ins-border-color-translucent);
  --cal-text-primary: var(--ins-body-color);
  --cal-text-secondary: var(--ins-secondary-color);
  --cal-text-heading: var(--ins-heading-color);
  --cal-text-disabled: var(--ins-gray-500);
  --cal-primary: var(--ins-primary);
  --cal-primary-rgb: var(--ins-primary-rgb);
  --cal-primary-subtle: var(--ins-primary-bg-subtle);
  --cal-primary-border: var(--ins-primary-border-subtle);
  --cal-primary-text: var(--ins-primary-text-emphasis);
  --cal-danger: var(--ins-danger);
  --cal-danger-subtle: var(--ins-danger-bg-subtle);
  --cal-success: var(--ins-success);
  --cal-hover: var(--ins-tertiary-bg);
  --cal-shadow: var(--ins-box-shadow);
  --cal-shadow-lg: var(--ins-box-shadow-lg);
  --cal-font: var(--ins-font-sans-serif);
  --cal-radius: var(--ins-border-radius);
  --cal-radius-sm: var(--ins-border-radius-sm);
  --cal-radius-lg: var(--ins-border-radius-lg);
  --cal-transition: 0.2s ease;

  font-family: var(--cal-font);
  color: var(--cal-text-primary);
}

@keyframes calFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.cal-modal {
  width: 620px;
  max-height: 90vh;
  background: var(--cal-bg);
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius-lg);
  box-shadow: var(--cal-shadow-lg);
  overflow-y: auto;
  animation: calModalIn 0.2s ease-out;
}

@keyframes calModalIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.cal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 8px 24px;
}

.cal-modal-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--cal-text-primary);
}

.cal-modal-form {
  padding: 0 24px 24px;
}

.cal-modal-field {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.cal-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin-top: 8px;
  flex-shrink: 0;
  color: var(--cal-text-secondary);
}

.cal-title-field {
  margin-bottom: 20px;
}

.cal-modal-title-input {
  width: 100%;
  border: none;
  border-bottom: 2px solid var(--cal-border);
  padding: 8px 0;
  font-family: var(--cal-font);
  font-size: 20px;
  font-weight: 500;
  color: var(--cal-text-primary);
  background: transparent;
  outline: none;
  transition: border-color var(--cal-transition);
}

.cal-modal-title-input:focus {
  border-bottom-color: var(--cal-primary);
}

.cal-modal-title-input::placeholder {
  color: var(--cal-text-disabled);
  font-weight: 400;
}

.cal-datetime-field {
  align-items: center;
}

.cal-datetime-inputs {
  flex: 1;
}

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

.cal-datetime-separator {
  color: var(--cal-text-secondary);
  font-weight: 500;
}

.cal-datetime-row input[type="date"],
.cal-datetime-row input[type="time"] {
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius-sm);
  padding: 6px 8px;
  font-family: var(--cal-font);
  font-size: 12px;
  color: var(--cal-text-primary);
  background: var(--cal-bg);
  outline: none;
  cursor: pointer;
  transition: border-color var(--cal-transition);
}

.cal-datetime-row input:focus {
  border-color: var(--cal-primary);
}

.cal-modal-input {
  flex: 1;
  border: none;
  border-bottom: 1px solid var(--cal-border);
  padding: 8px 0;
  font-family: var(--cal-font);
  font-size: 13px;
  color: var(--cal-text-primary);
  background: transparent;
  outline: none;
  transition: border-color var(--cal-transition);
  width: 100%;
}

.cal-modal-input:focus {
  border-bottom-color: var(--cal-primary);
}

.cal-modal-input::placeholder {
  color: var(--cal-text-disabled);
}

.cal-modal-textarea {
  resize: vertical;
  min-height: 56px;
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius-sm);
  padding: 8px 10px;
}

.cal-modal-textarea:focus {
  border-color: var(--cal-primary);
}

.cal-modal-select {
  cursor: pointer;
  border: 1px solid var(--cal-border) !important;
  border-radius: var(--cal-radius-sm) !important;
  padding: 8px 10px !important;
  background: var(--cal-bg);
}

.cal-modal-select:focus {
  border-color: var(--cal-primary) !important;
}

/* ─── Color Picker ───────────────────────────────────── */
.cal-color-picker {
  position: relative;
}

.cal-color-current {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--cal-border);
  cursor: pointer;
  transition: transform var(--cal-transition);
}

.cal-color-current:hover {
  transform: scale(1.12);
}

.cal-color-options {
  position: absolute;
  top: calc(100% + 8px);
  left: -40px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 12px;
  background: var(--cal-bg);
  border: 1px solid var(--cal-border);
  border-radius: var(--cal-radius);
  box-shadow: var(--cal-shadow-lg);
  z-index: 10;
}

.cal-color-option {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--cal-transition);
}

.cal-color-option:hover {
  transform: scale(1.15);
}

.cal-color-option.selected {
  border-color: var(--cal-text-primary);
  box-shadow: 0 0 0 2px var(--cal-bg), 0 0 0 4px var(--cal-text-primary);
}

/* ─── Modal Footer ───────────────────────────────────── */
.cal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--cal-border);
}

.cal-modal-footer-right {
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.cal-btn {
  padding: 8px 20px;
  border: none;
  border-radius: var(--cal-radius);
  font-family: var(--cal-font);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--cal-transition);
}

.cal-btn-primary {
  background: var(--cal-primary);
  color: var(--ins-white);
}

.cal-btn-primary:hover {
  background: var(--cal-primary-text);
  box-shadow: 0 2px 8px rgba(var(--cal-primary-rgb), 0.35);
}

.cal-btn-secondary {
  background: transparent;
  color: var(--cal-text-secondary);
  border: 1px solid var(--cal-border);
}

.cal-btn-secondary:hover {
  background: var(--cal-hover);
  border-color: var(--cal-text-secondary);
}

.cal-btn-delete {
  background: transparent;
  color: var(--cal-danger);
  border: 1px solid transparent;
}

.cal-btn-delete:hover {
  background: var(--cal-danger-subtle);
  border-color: var(--ins-danger-border-subtle);
}

/* ─── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .cal-sidebar {
    position: absolute;
    left: 0;
    top: var(--cal-header-height);
    bottom: 0;
    background: var(--cal-bg);
    z-index: 50;
    box-shadow: var(--cal-shadow-lg);
  }

  .cal-year-view {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 16px 24px;
  }
}

@media (max-width: 768px) {
  .cal-logo-text {
    display: none;
  }

  .cal-header-title {
    font-size: 16px;
  }

  .cal-year-view {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 16px;
  }

  .cal-modal {
    width: calc(100vw - 32px);
    margin: 16px;
  }

  .cal-popover {
    width: calc(100vw - 32px);
    left: 16px !important;
  }

  .cal-datetime-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .cal-year-view {
    grid-template-columns: 1fr;
  }

  .cal-header {
    padding: 0 8px;
  }

  .cal-sidebar {
    width: 100%;
  }
}

/* ─── Scrollbar ──────────────────────────────────────── */
.cal-time-grid-scroll::-webkit-scrollbar,
.cal-schedule-view::-webkit-scrollbar,
.cal-year-view::-webkit-scrollbar,
.cal-sidebar::-webkit-scrollbar {
  width: 6px;
}

.cal-time-grid-scroll::-webkit-scrollbar-track,
.cal-schedule-view::-webkit-scrollbar-track,
.cal-year-view::-webkit-scrollbar-track,
.cal-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.cal-time-grid-scroll::-webkit-scrollbar-thumb,
.cal-schedule-view::-webkit-scrollbar-thumb,
.cal-year-view::-webkit-scrollbar-thumb,
.cal-sidebar::-webkit-scrollbar-thumb {
  background: var(--ins-gray-400);
  border-radius: 3px;
}

.cal-time-grid-scroll::-webkit-scrollbar-thumb:hover,
.cal-schedule-view::-webkit-scrollbar-thumb:hover,
.cal-year-view::-webkit-scrollbar-thumb:hover,
.cal-sidebar::-webkit-scrollbar-thumb:hover {
  background: var(--ins-gray-500);
}


/* SCHEDULE PRINT */
/* ─────────────────────────────────────────────────────────────
   PRINT STYLES
   ───────────────────────────────────────────────────────────── */

/* ── When cal-printing class is on body ──────────────────── */

/* Hide everything on the page except the calendar card */
.cal-printing .breadme,
.cal-printing .container-fluid > .d-flex.breadme {
  display: none !important;
}

/* Hide app-level navigation, sidebar, footer, topbar */
.cal-printing .topbar,
.cal-printing .navbar,
.cal-printing .app-topbar,
.cal-printing .left-side-menu,
.cal-printing .leftside-menu,
.cal-printing .footer,
.cal-printing .app-footer,
.cal-printing [class*="sidebar"],
.cal-printing [class*="topnav"],
.cal-printing [class*="footer"] {
  display: none !important;
}

/* Make the main content area full width */
.cal-printing .content-page,
.cal-printing .page-content,
.cal-printing .wrapper,
.cal-printing .content {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* ── Calendar-specific print rules ───────────────────────── */

/* Hide calendar sidebar */
.cal-printing .cal-sidebar {
  display: none !important;
}

/* Hide calendar header buttons (keep title) */
.cal-printing .cal-hamburger,
.cal-printing .cal-today-btn,
.cal-printing .cal-nav-arrows,
.cal-printing .cal-header-right,
.cal-printing .cal-create-btn,
.cal-printing .cal-logo-icon {
  display: none !important;
}

/* Show only the logo text and title */
.cal-printing .cal-header {
  border-bottom: 2px solid #333 !important;
  padding: 8px 16px !important;
  height: auto !important;
}

.cal-printing .cal-logo-text {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #333 !important;
}

.cal-printing .cal-header-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #333 !important;
}

/* Make the card full page */
.cal-printing .card {
  height: auto !important;
  min-height: auto !important;
  box-shadow: none !important;
  border: none !important;
  overflow: visible !important;
}

.cal-printing .card-body {
  overflow: visible !important;
}

.cal-printing .cal-app {
  height: auto !important;
  overflow: visible !important;
}

.cal-printing .cal-body {
  overflow: visible !important;
}

.cal-printing .cal-main {
  overflow: visible !important;
}

/* ── Time grid print adjustments ─────────────────────────── */

/* Make scroll container visible (no scroll) */
.cal-printing .cal-time-grid-wrapper,
.cal-printing .cal-time-grid-scroll {
  overflow: visible !important;
  height: auto !important;
  flex: none !important;
}

.cal-printing .cal-day-view,
.cal-printing .cal-week-view {
  height: auto !important;
  overflow: visible !important;
}

.cal-printing .cal-time-grid-inner {
  height: auto !important;
}

.cal-printing .cal-time-labels {
  height: auto !important;
}

.cal-printing .cal-time-columns {
  height: auto !important;
}

.cal-printing .cal-time-column {
  height: auto !important;
}

/* ── Event blocks print styles ───────────────────────────── */
.cal-printing .cal-event-block {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  color-adjust: exact !important;
}

.cal-printing .cal-event-block-title {
  color: #fff !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* ── Month view print ────────────────────────────────────── */
.cal-printing .cal-month-view {
  height: auto !important;
  overflow: visible !important;
}

.cal-printing .cal-month-grid {
  height: auto !important;
}

.cal-printing .cal-month-cell {
  min-height: 80px !important;
}

.cal-printing .cal-month-event {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  color-adjust: exact !important;
}

/* ── Year view print ─────────────────────────────────────── */
.cal-printing .cal-year-view {
  height: auto !important;
  overflow: visible !important;
}

.cal-printing .cal-year-day.today {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* ── Schedule view print ─────────────────────────────────── */
.cal-printing .cal-schedule-view {
  height: auto !important;
  overflow: visible !important;
}

.cal-printing .cal-schedule-event-color {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* ── Day headers ─────────────────────────────────────────── */
.cal-printing .cal-day-number.today {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  color-adjust: exact !important;
}

.cal-printing .cal-month-day-number.today {
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
  color-adjust: exact !important;
}

/* ── Current time line — hide when printing ──────────────── */
.cal-printing .cal-current-time-line {
  display: none !important;
}

/* ── Drag selection — hide when printing ─────────────────── */
.cal-printing .cal-drag-selection {
  display: none !important;
}

/* ── Popover & Modal — hide when printing ────────────────── */
.cal-printing .cal-modal-overlay,
.cal-printing .cal-popover-overlay {
  display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   @media print — applies when print dialog is actually open
   ───────────────────────────────────────────────────────────── */
@media print {
  /* Page setup */
  @page {
    size: landscape;
    margin: 0.5cm;
  }

  /* Reset body */
  body {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* Hide scrollbars */
  * {
    scrollbar-width: none !important;
  }
  *::-webkit-scrollbar {
    display: none !important;
  }

  /* Hide things that should never print */
  .cal-current-time-line,
  .cal-drag-selection,
  .cal-modal-overlay,
  .cal-popover-overlay,
  .cal-hamburger,
  .cal-today-btn,
  .cal-nav-arrows,
  .cal-header-right,
  .cal-sidebar,
  .cal-create-btn,
  .cal-logo-icon,
  .breadme,
  .topbar,
  .navbar,
  .app-topbar,
  .left-side-menu,
  .leftside-menu,
  .footer,
  .app-footer {
    display: none !important;
  }

  /* Full width */
  .content-page,
  .page-content,
  .wrapper,
  .content,
  .container-fluid {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  /* Card reset */
  .card {
    height: auto !important;
    min-height: auto !important;
    box-shadow: none !important;
    border: none !important;
    overflow: visible !important;
  }

  .card-body {
    overflow: visible !important;
    padding: 0 !important;
  }

  /* Calendar layout reset for print */
  .cal-app,
  .cal-body,
  .cal-main,
  .cal-day-view,
  .cal-week-view,
  .cal-month-view,
  .cal-year-view,
  .cal-schedule-view,
  .cal-time-grid-wrapper,
  .cal-time-grid-scroll,
  .cal-time-grid-inner,
  .cal-time-labels,
  .cal-time-columns,
  .cal-time-column,
  .cal-month-grid {
    height: auto !important;
    overflow: visible !important;
    flex: none !important;
  }

  /* Header print styling */
  .cal-header {
    border-bottom: 2px solid #333 !important;
    padding: 6px 12px !important;
    height: auto !important;
    background: #fff !important;
  }

  .cal-logo-text {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #333 !important;
  }

  .cal-header-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #333 !important;
  }

  /* Ensure colors print */
  .cal-event-block,
  .cal-month-event,
  .cal-schedule-event-color,
  .cal-day-number.today,
  .cal-month-day-number.today,
  .cal-year-day.today,
  .cal-popover-color-dot {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    color-adjust: exact !important;
  }

  /* Ensure text in event blocks is white */
  .cal-event-block-title,
  .cal-event-block-time,
  .cal-event-block-location,
  .cal-month-event-time,
  .cal-month-event-title {
    color: #fff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  /* Time slot borders lighter for print */
  .cal-time-slot {
    border-color: #ddd !important;
  }

  .cal-time-slot::after {
    border-color: #eee !important;
  }

  /* Add a printed-on footer */
  .cal-app::after {
    content: 'Printed on ' attr(data-print-date);
    display: block;
    text-align: right;
    font-size: 9px;
    color: #999;
    padding: 4px 12px;
    border-top: 1px solid #ddd;
    margin-top: 8px;
  }
}

