/* Watch company section pages (nested routes) */

body[data-watch-company-shell] .theme-loader,
body[data-watch-company-shell] #jsLoader,
body[data-watch-company-shell] #jsLoader.show,
body[data-watch-company-shell] .theme-loader.show {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

#jsErr.toast-err:not(.show) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
}

#jsErr.toast-err:not(.show) * {
  display: none !important;
}

body[data-watch-company-shell] #jsErr.toast-err.show,
body[data-watch-company-shell] #jsErr.show {
  position: fixed !important;
  top: 20px !important;
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  z-index: 200000 !important;
  display: flex !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  pointer-events: none !important;
}

#jsAppDialog.wc-app-dialog {
  z-index: 120000;
}

#jsAppDialog.wc-app-dialog.show,
#jsAppDialog.wc-app-dialog.in {
  display: flex !important;
  align-items: center;
  justify-content: center;
}

#jsAppDialog.wc-app-dialog .modal-dialog {
  max-width: 440px;
}

#jsAppDialog.wc-app-dialog .wc-confirm-modal__content {
  overflow: visible;
}

.wc-app-dialog__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 28px 8px;
}

.wc-app-dialog__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  border-radius: 50%;
  background-color: #f79009;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 22px 22px;
}

.wc-app-dialog--warning .wc-app-dialog__icon {
  background-color: #f79009;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 8v5'/%3E%3Ccircle cx='12' cy='16.2' r='1.1' fill='%23fff' stroke='none'/%3E%3C/svg%3E");
}

.wc-app-dialog--error .wc-app-dialog__icon {
  background-color: #d92d20;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}

.wc-app-dialog--success .wc-app-dialog__icon {
  background-color: #12b76a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}

.wc-app-dialog--info .wc-app-dialog__icon {
  background-color: #2e90fa;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 11v6'/%3E%3Ccircle cx='12' cy='8' r='1.1' fill='%23fff' stroke='none'/%3E%3C/svg%3E");
}

.wc-app-dialog__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fw-on-surface, #0b1c30);
}

.wc-app-dialog__message {
  margin: 0;
  max-width: 360px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  color: #4b5563;
}

.wc-app-dialog__footer {
  justify-content: center;
  border: none;
  padding: 20px 24px 24px;
}

.wc-app-dialog--info .wc-confirm-modal__btn--primary,
.wc-app-dialog--success .wc-confirm-modal__btn--primary {
  border-color: #00288e;
  background: #00288e;
}

.wc-app-dialog--info .wc-confirm-modal__btn--primary:hover,
.wc-app-dialog--success .wc-confirm-modal__btn--primary:hover {
  border-color: #001f6e;
  background: #001f6e;
}

.watch-company-dashboard-page,
.watch-company-dashboard-page .page-body,
.watch-company-dashboard-page #jsShowContentPage,
.watch-company-dashboard-page #jsShowContentPage > .col-lg-12,
.watch-company-dashboard-page .tab-content,
.watch-company-dashboard-page .tab-pane.active,
.watch-company-dashboard-page .general-info {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
  box-sizing: border-box;
}

.watch-company-dashboard-page .page-body {
  padding: 0;
}

.watch-company-dashboard-page #jsShowContentPage {
  display: block;
}

.watch-company-dashboard-page #jsShowContentPage > .col-lg-12 {
  padding-left: 0;
  padding-right: 0;
}

.watch-company-dashboard-page .card.card--custom {
  margin: 0;
  width: 100%;
}

.watch-company-dashboard-page .card.card--custom > .card-block {
  padding: 24px;
}

.watch-company-dashboard-page .card-header.col-lg-8,
.watch-company-dashboard-page .nav-tabs.col-lg-4 {
  padding-left: 0;
  padding-right: 0;
}

.watch-company-dashboard-page .text-welcome,
.watch-company-dashboard-page .dashboard-company {
  width: 100%;
  max-width: 100%;
}

/* ========================================
   Dashboard Layout - Theo dashboard.html
   ======================================== */

/* Container - Nội dung 80% chiều rộng */
.watch-company-dashboard-page .wc-dashboard-container {
  max-width: 80%;
  padding: 0;
}

/* Welcome Section */
.watch-company-dashboard-page .wc-dashboard-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.watch-company-dashboard-page .wc-dashboard-welcome-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.watch-company-dashboard-page .wc-dashboard-welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: #001855;
  margin: 0;
  line-height: 1.3;
}

.watch-company-dashboard-page .wc-dashboard-welcome-subtitle {
  font-size: 14px;
  color: #4e6077;
  margin: 0;
}

/* Sync Button */
.watch-company-dashboard-page .wc-dashboard-sync-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: #001855;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  position: relative;
}

.wc-dashboard-sync-btn::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 12px;
  background: #333;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  margin-bottom: 8px;
  z-index: 10;
}

.wc-dashboard-sync-btn:hover::after {
  opacity: 1;
}

.watch-company-dashboard-page .wc-dashboard-sync-btn:hover {
  background: #0d2c7b;
}

.watch-company-dashboard-page .wc-dashboard-sync-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.watch-company-dashboard-page .wc-dashboard-sync-btn .material-symbols-outlined {
  font-size: 20px;
}

/* Stats Grid */
.watch-company-dashboard-page .wc-dashboard-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

/* Stat Card */
.watch-company-dashboard-page .wc-dashboard-stat-card {
  background: #ffffff;
  padding: 11px 16px 12px;
  border-radius: 8px;
  border: 1px solid #c5c5d3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.watch-company-dashboard-page .wc-dashboard-stat-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.watch-company-dashboard-page .wc-dashboard-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.watch-company-dashboard-page .wc-dashboard-stat-icon--blue {
  background: #d2e4ff;
  color: #001855;
}

.watch-company-dashboard-page .wc-dashboard-stat-icon--green {
  background: #64fcbf;
  color: #002316;
}

.watch-company-dashboard-page .wc-dashboard-stat-icon--purple {
  background: #dce1ff;
  color: #001855;
}

.watch-company-dashboard-page .wc-dashboard-stat-label {
  font-size: 14px;
  font-weight: 500;
  color: #4e6077;
}

.watch-company-dashboard-page .wc-dashboard-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: #001855;
}

.watch-company-dashboard-page .wc-dashboard-stat-fee,
.wc-dashboard-stat-fee {
  font-size: 14px;
  font-weight: 500;
  color: #0a9f6c;
  margin-top: 4px;
}

.watch-company-dashboard-page .wc-dashboard-stat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: #4e6077;
}

.watch-company-dashboard-page .wc-dashboard-stat-meta:empty {
  display: none;
}

.watch-company-dashboard-page .wc-dashboard-stat-meta span {
  white-space: nowrap;
}

.wc-kpi-delta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3;
}

.wc-kpi-delta--up {
  background-color: #ecfdf5;
  color: #059669;
  border: 1px solid #a7f3d0;
}

.wc-kpi-delta--down {
  background-color: #fff1f2;
  color: #e11d48;
  border: 1px solid #fecdd3;
}

.wc-kpi-delta--neutral {
  background-color: #f1f5f9;
  color: #64748b;
  border: 1px solid #e2e8f0;
}

.wc-kpi-delta .material-symbols-outlined {
  font-size: 13px !important;
}

.wc-kpi-delta-sub {
  font-size: 10px;
  font-weight: 500;
  opacity: 0.85;
}

.wc-meta-item--alert {
  color: #e11d48 !important;
  font-weight: 600;
}

.wc-meta-item--warn {
  color: #d97706 !important;
  font-weight: 600;
}

.wc-meta-item--info {
  color: #2563eb !important;
  font-weight: 600;
}

.watch-company-dashboard-page .wc-dashboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 16px 0 24px;
}

.watch-company-dashboard-page .wc-dashboard-filters.hidden {
  display: none !important;
}

.watch-company-dashboard-page .wc-dashboard-panel > .wc-dashboard-stats-grid:first-child,
.watch-company-dashboard-page .wc-dashboard-filters.hidden + .wc-dashboard-stats-grid,
.watch-company-dashboard-page .wc-dashboard-filters[style*="display: none"] + .wc-dashboard-stats-grid {
  margin-top: 24px;
}

.watch-company-dashboard-page .wc-dashboard-table-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: auto;
}

.watch-company-dashboard-page .wc-dashboard-tab {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #4e6077;
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.watch-company-dashboard-page .wc-dashboard-tab.is-active {
  background: #001855;
  border-color: #001855;
  color: #fff;
}

.watch-company-dashboard-page .wc-dashboard-exception-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 0 12px;
}

.watch-company-dashboard-page .wc-dashboard-exception-chips.hidden {
  display: none !important;
}

.watch-company-dashboard-page .wc-dashboard-chip {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #4e6077;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.watch-company-dashboard-page .wc-dashboard-chip.is-active {
  background: #001855;
  border-color: #001855;
  color: #fff;
}

.watch-company-dashboard-page .wc-dashboard-status--late,
.wc-employees-status--late {
  background: #fff7ed !important;
  color: #c2410c !important;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-dot--orange {
  background: #f59e0b;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-dot--red {
  background: #e11d48;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-dot--gray {
  background: #9ca3af;
}

.watch-company-dashboard-page .wc-dashboard-stat-loading {
  display: inline-block;
  width: 60px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: wc-dashboard-shimmer 1.2s infinite;
}

@keyframes wc-dashboard-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Charts Grid */
.watch-company-dashboard-page .wc-dashboard-charts-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

/* Line Chart Card */
.watch-company-dashboard-page .wc-dashboard-line-chart-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #c5c5d3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.watch-company-dashboard-page .wc-dashboard-line-chart-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.watch-company-dashboard-page .wc-dashboard-line-chart-title {
  font-size: 16px;
  font-weight: 600;
  color: #001855;
  margin: 0;
}

.watch-company-dashboard-page .wc-dashboard-date-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #f2f4f6;
  border: 1px solid #c5c5d3;
  border-radius: 8px;
  color: #4e6077;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.2s;
}

.watch-company-dashboard-page .wc-dashboard-date-picker:hover {
  background: #eceef0;
}

.watch-company-dashboard-page .wc-dashboard-date-picker .material-symbols-outlined {
  font-size: 18px;
}

.watch-company-dashboard-page .wc-dashboard-line-chart-body {
  position: relative;
  height: 250px;
}

.watch-company-dashboard-page .wc-dashboard-line-chart-body .chart-container {
  position: relative;
  height: 100%;
  width: 100%;
}

/* Remove unused SVG chart styles */
.watch-company-dashboard-page .wc-dashboard-y-axis,
.watch-company-dashboard-page .wc-dashboard-y-axis-zero,
.watch-company-dashboard-page .wc-dashboard-chart-area,
.watch-company-dashboard-page .wc-dashboard-grid-lines,
.watch-company-dashboard-page .wc-dashboard-grid-line,
.watch-company-dashboard-page .wc-dashboard-svg-chart,
.watch-company-dashboard-page .wc-dashboard-x-axis {
  display: none;
}

/* Donut Card */
.watch-company-dashboard-page .wc-dashboard-donut-card {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid #c5c5d3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.watch-company-dashboard-page .wc-dashboard-donut-title {
  font-size: 16px;
  font-weight: 600;
  color: #001855;
  margin: 0 0 16px 0;
  text-align: left;
  width: 100%;
}

.watch-company-dashboard-page .wc-dashboard-donut-container {
  position: relative;
  width: 192px;
  height: 192px;
  margin-bottom: 32px;
}

.watch-company-dashboard-page .wc-dashboard-donut-container canvas {
  width: 192px !important;
  height: 192px !important;
}

.watch-company-dashboard-page .wc-dashboard-donut-chart {
  width: 100%;
  height: 100%;
}

.watch-company-dashboard-page .wc-dashboard-donut-bg {
  stroke: #eceef0;
}

.watch-company-dashboard-page .wc-dashboard-donut-progress {
  stroke: #41dfa5;
}

.watch-company-dashboard-page .wc-dashboard-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.watch-company-dashboard-page .wc-dashboard-donut-label {
  font-size: 12px;
  color: #4e6077;
}

.watch-company-dashboard-page .wc-dashboard-donut-value {
  font-size: 22px;
  font-weight: 700;
  color: #001855;
}

.watch-company-dashboard-page .wc-dashboard-donut-value--money {
  max-width: 96px;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-align: center;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-item--nested {
  padding-left: 16px;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-item--nested .wc-dashboard-donut-legend-text,
.watch-company-dashboard-page .wc-dashboard-donut-legend-item--nested .wc-dashboard-donut-legend-value {
  font-size: 13px;
  font-weight: 500;
  color: #4e6077;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-dot--green {
  background: #0a9f6c;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-dot--blue {
  background: #0d2c7b;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-text {
  flex: 1;
  font-size: 14px;
  color: #4e6077;
  text-align: left;
}

.watch-company-dashboard-page .wc-dashboard-donut-legend-value {
  font-size: 14px;
  font-weight: 700;
  color: #191c1e;
}

/* Transactions */
.watch-company-dashboard-page .wc-dashboard-transactions {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #c5c5d3;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 32px;
}

.watch-company-dashboard-page .wc-dashboard-transactions-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 24px;
  border-bottom: 1px solid #c5c5d3;
}

.watch-company-dashboard-page .wc-dashboard-transactions-title {
  font-size: 16px;
  font-weight: 600;
  color: #001855;
  margin: 0;
}

.watch-company-dashboard-page .wc-dashboard-transactions-viewall {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #001855;
  text-decoration: none;
}

.watch-company-dashboard-page .wc-dashboard-transactions-viewall:hover {
  text-decoration: underline;
}

.watch-company-dashboard-page .wc-dashboard-transactions-viewall .material-symbols-outlined {
  font-size: 18px;
}

.watch-company-dashboard-page .wc-dashboard-transactions-table {
  width: 100%;
  border-collapse: collapse;
}

.watch-company-dashboard-page .wc-dashboard-transactions-table thead {
  background: #f2f4f6;
  border-bottom: 1px solid #c5c5d3;
}

.watch-company-dashboard-page .wc-dashboard-transactions-table th {
  padding: 12px 24px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: #4e6077;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.watch-company-dashboard-page .wc-dashboard-transactions-table tbody tr {
  border-bottom: 1px solid #f3f4f6;
}

.watch-company-dashboard-page .wc-dashboard-transactions-table tbody tr:last-child {
  border-bottom: none;
}

.watch-company-dashboard-page .wc-dashboard-transactions-table tbody tr:hover {
  background: #f2f4f6;
}

.watch-company-dashboard-page .wc-dashboard-transactions-td {
  padding: 16px 24px;
  font-size: 14px;
  color: #191c1e;
}

.watch-company-dashboard-page .wc-dashboard-transactions-td--secondary {
  color: #4e6077;
}

.watch-company-dashboard-page .wc-dashboard-transactions-badge {
  display: inline-block;
  padding: 4px 12px;
  background: #eceef0;
  border-radius: 9999px;
  font-size: 12px;
  color: #4e6077;
}

/* Sync Info */
.watch-company-dashboard-page .wc-dashboard-sync-info {
  text-align: right;
}

.watch-company-dashboard-page .wc-dashboard-sync-info p {
  font-size: 13px;
  color: #4e6077;
  margin: 0;
}

.watch-company-dashboard-page .wc-dashboard-sync-info strong {
  color: #dc2626;
}

/* ========================================
   Responsive
   ======================================== */

@media (max-width: 992px) {
  .watch-company-dashboard-page .wc-dashboard-stats-grid {
    grid-template-columns: 1fr;
  }
  
  .watch-company-dashboard-page .wc-dashboard-charts-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .watch-company-dashboard-page .wc-dashboard-welcome {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  
  .watch-company-dashboard-page .wc-dashboard-welcome-title {
    font-size: 18px;
  }
}

/* Dashboard Page - Giống hệt dashboard.html với Tailwind CSS */
.watch-company-dashboard-page .dashboard-company {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.watch-company-dashboard-page .dashboard-company h2 {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #001855;
  margin-bottom: 8px;
}

.watch-company-dashboard-page .dashboard-company p {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 24px;
  color: #444651;
}

/* Grid layouts giống Tailwind */
.watch-company-dashboard-page .dashboard-company .grid {
  display: grid;
}

.watch-company-dashboard-page .dashboard-company .grid-cols-1 {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}

.watch-company-dashboard-page .dashboard-company .md\:grid-cols-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.watch-company-dashboard-page .dashboard-company .lg\:grid-cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.watch-company-dashboard-page .dashboard-company .lg\:col-span-2 {
  grid-column: span 2 / span 2;
}

.watch-company-dashboard-page .dashboard-company .items-start {
  align-items: start;
}

.watch-company-dashboard-page .dashboard-company .gap-4 {
  gap: 16px;
}

.watch-company-dashboard-page .dashboard-company .gap-6 {
  gap: 24px;
}

.watch-company-dashboard-page .dashboard-company .mb-4 {
  margin-bottom: 16px;
}

.watch-company-dashboard-page .dashboard-company .mb-6 {
  margin-bottom: 24px;
}

.watch-company-dashboard-page .dashboard-company .mt-6 {
  margin-top: 24px;
}

/* Flexbox */
.watch-company-dashboard-page .dashboard-company .flex {
  display: flex;
}

.watch-company-dashboard-page .dashboard-company .flex-col {
  flex-direction: column;
}

.watch-company-dashboard-page .dashboard-company .items-center {
  align-items: center;
}

.watch-company-dashboard-page .dashboard-company .justify-between {
  justify-content: space-between;
}

/* Card styles */
.watch-company-dashboard-page .dashboard-company .rounded-xl {
  border-radius: 12px;
}

.watch-company-dashboard-page .dashboard-company .border {
  border-width: 1px;
  border-style: solid;
}

.watch-company-dashboard-page .dashboard-company .border-l-4 {
  border-left-width: 4px;
}

.watch-company-dashboard-page .dashboard-company .p-4 {
  padding: 16px;
}

.watch-company-dashboard-page .dashboard-company .overflow-hidden {
  overflow: hidden;
}

.watch-company-dashboard-page .dashboard-company .overflow-x-auto {
  overflow-x: auto;
}

/* Background colors */
.watch-company-dashboard-page .dashboard-company .bg-\[\#ffffff\] {
  background-color: #ffffff;
}

.watch-company-dashboard-page .dashboard-company .bg-\[\#f2f4f6\] {
  background-color: #f2f4f6;
}

.watch-company-dashboard-page .dashboard-company .bg-\[\#dce1ff\] {
  background-color: #dce1ff;
}

.watch-company-dashboard-page .dashboard-company .bg-\[\#64fcbf\] {
  background-color: #64fcbf;
}

.watch-company-dashboard-page .dashboard-company .bg-green-100 {
  background-color: #d1fae5;
}

.watch-company-dashboard-page .dashboard-company .bg-yellow-100 {
  background-color: #fef3c7;
}

/* Text colors */
.watch-company-dashboard-page .dashboard-company .text-\[\#001855\] {
  color: #001855;
}

.watch-company-dashboard-page .dashboard-company .text-\[\#00b17d\] {
  color: #00b17d;
}

.watch-company-dashboard-page .dashboard-company .text-\[\#444651\] {
  color: #444651;
}

.watch-company-dashboard-page .dashboard-company .text-\[\#191c1e\] {
  color: #191c1e;
}

.watch-company-dashboard-page .dashboard-company .text-green-700 {
  color: #059669;
}

.watch-company-dashboard-page .dashboard-company .text-yellow-700 {
  color: #d97706;
}

/* Border colors */
.watch-company-dashboard-page .dashboard-company .border-\[\#c5c5d3\] {
  border-color: #c5c5d3;
}

.watch-company-dashboard-page .dashboard-company .border-l-\[\#001855\] {
  border-left-color: #001855;
}

.watch-company-dashboard-page .dashboard-company .border-l-\[\#41dfa5\] {
  border-left-color: #41dfa5;
}

/* Typography */
.watch-company-dashboard-page .dashboard-company .text-xs {
  font-size: 12px;
}

.watch-company-dashboard-page .dashboard-company .text-sm {
  font-size: 14px;
}

.watch-company-dashboard-page .dashboard-company .text-base {
  font-size: 16px;
}

.watch-company-dashboard-page .dashboard-company .text-xl {
  font-size: 20px;
}

.watch-company-dashboard-page .dashboard-company .font-semibold {
  font-weight: 600;
}

.watch-company-dashboard-page .dashboard-company .font-bold {
  font-weight: 700;
}

.watch-company-dashboard-page .dashboard-company .uppercase {
  text-transform: uppercase;
}

.watch-company-dashboard-page .dashboard-company .tracking-wider {
  letter-spacing: 0.05em;
}

.watch-company-dashboard-page .dashboard-company .italic {
  font-style: italic;
}

/* Card Shadow */
.watch-company-dashboard-page .dashboard-company .card-shadow {
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.04);
}

/* Table styles */
.watch-company-dashboard-page .dashboard-company .divide-y > * + * {
  border-top-width: 1px;
  border-top-style: solid;
  border-top-color: #c5c5d3;
}

.watch-company-dashboard-page .dashboard-company .divide-\[\#c5c5d3\] > * {
  border-color: #c5c5d3;
}

.watch-company-dashboard-page .dashboard-company .hover\:bg-\[\#f2f4f6\]\/30:hover {
  background-color: rgba(242, 244, 246, 0.3);
}

.watch-company-dashboard-page .dashboard-company .table {
  width: 100%;
  border-collapse: collapse;
}

.watch-company-dashboard-page .dashboard-company .w-full {
  width: 100%;
}

.watch-company-dashboard-page .dashboard-company .text-left {
  text-align: left;
}

/* Table cells */
.watch-company-dashboard-page .dashboard-company .px-6 {
  padding-left: 24px;
  padding-right: 24px;
}

.watch-company-dashboard-page .dashboard-company .py-4 {
  padding-top: 16px;
  padding-bottom: 16px;
}

/* Status badges */
.watch-company-dashboard-page .dashboard-company .rounded-full {
  border-radius: 9999px;
}

.watch-company-dashboard-page .dashboard-company .px-3 {
  padding-left: 12px;
  padding-right: 12px;
}

.watch-company-dashboard-page .dashboard-company .py-1 {
  padding-top: 4px;
  padding-bottom: 4px;
}

/* Space between */
.watch-company-dashboard-page .dashboard-company .space-y-3 > * + * {
  margin-top: 12px;
}

.watch-company-dashboard-page .dashboard-company .gap-2 {
  gap: 8px;
}

/* Responsive - md breakpoint */
@media (min-width: 768px) {
  .watch-company-dashboard-page .dashboard-company .md\:col-start-4 {
    grid-column-start: 4;
  }
}

/* Responsive - lg breakpoint */
@media (min-width: 1024px) {
  .watch-company-dashboard-page .dashboard-company .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Responsive - max width 1200px */
@media (max-width: 1200px) {
  .watch-company-dashboard-page .dashboard-company .md\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive - max width 768px */
@media (max-width: 768px) {
  .watch-company-dashboard-page .dashboard-company .md\:grid-cols-4 {
    grid-template-columns: 1fr;
  }
  
  .watch-company-dashboard-page .dashboard-company .md\:col-start-4 {
    grid-column-start: auto;
  }
  
  .watch-company-dashboard-page .dashboard-company .lg\:col-span-2 {
    grid-column: span 1 / span 1;
  }
  
  .watch-company-dashboard-page .dashboard-company .lg\:grid-cols-3 {
    grid-template-columns: 1fr;
  }
}

/* Material symbols */
.watch-company-dashboard-page .dashboard-company .material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

/* Link styles */
.watch-company-dashboard-page .dashboard-company .hover\:underline:hover {
  text-decoration: underline;
}

/* ——— Work Schedule Settings (UI match lich-lam-viec.html) ——— */

#jsTimesheetRequestDiv .card-header {
  position: relative;
  z-index: 3;
}

#jsTimesheetRequestDiv .nav-tabs .nav-link {
  cursor: pointer;
}

.watch-company-section-placeholder {
  min-height: 200px;
}

.watch-company-section-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
}

.watch-company-employee-detail {
  padding: 8px 0 24px;
}

.watch-company-employee-detail .wc-employee-detail-layout {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  min-height: 400px;
}

.watch-company-employee-detail .wc-employee-detail-nav {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
  position: sticky;
  top: 16px;
}

.watch-company-employee-detail .wc-employee-tab {
  display: block !important;
  width: 100%;
  padding: 12px 16px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--fw-on-surface-variant, #444653);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-align: left;
  cursor: pointer;
  pointer-events: auto !important;
  transition: background 0.2s, color 0.2s;
  box-sizing: border-box;
}

.watch-company-employee-detail .wc-employee-tab:hover {
  background: var(--fw-surface-container-low, #eff4ff);
  color: var(--fw-on-surface, #0b1c30);
}

.watch-company-employee-detail .wc-employee-tab:focus {
  outline: none;
}

.watch-company-employee-detail .wc-employee-tab.wc-employee-tab--active {
  background: var(--fw-surface-variant, #d3e4fe);
  color: var(--fw-primary, #00288e);
  font-weight: 600;
}

.watch-company-employee-detail .wc-employee-tab--child {
  margin-left: 18px;
  width: calc(100% - 18px);
  padding-left: 28px;
  position: relative;
  font-size: 14px;
}

.watch-company-employee-detail .wc-employee-tab--child::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-left: 1.5px solid #b8c0cc;
  border-bottom: 1.5px solid #b8c0cc;
  transform: translateY(-65%) rotate(-45deg);
}

.watch-company-employee-detail .wc-employee-detail-main {
  flex: 1 1 auto;
  min-width: 0;
}

.watch-company-employee-detail .wc-employee-detail-header {
  margin-bottom: 28px;
}

.watch-company-employee-detail .wc-employee-detail-title {
  margin: 0 0 8px;
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  color: var(--fw-on-surface, #0b1c30);
}

.watch-company-employee-detail .wc-employee-detail-subtitle {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--fw-on-surface-variant, #444653);
}

.watch-company-employee-detail .wc-employee-detail-panel {
  padding-top: 4px;
}

.watch-company-employee-detail .wc-profile-form {
  display: flex;
  flex-direction: column;
  gap: 36px;
  width: 100%;
}

/* For no-nav, form doesn't have border (border is on main) */

.watch-company-employee-detail .wc-profile-section__title {
  margin: 0 0 20px;
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  color: var(--fw-on-surface, #0b1c30);
}

.watch-company-employee-detail .wc-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 24px;
  width: 100%;
}

.watch-company-employee-detail .wc-profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.watch-company-employee-detail .wc-profile-field--full {
  grid-column: 1 / -1;
}

.watch-company-employee-detail .wc-profile-max-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.watch-company-employee-detail .wc-profile-max-switch.btn-switch-small {
  flex-shrink: 0;
  width: 42px;
  height: 28px;
}

.watch-company-employee-detail .wc-profile-max-value {
  flex: 1;
  min-width: 0;
}

.watch-company-employee-detail .wc-profile-max-wallet-label {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--fw-outline-variant, #c4c5d5);
  border-radius: 10px;
  background: #fff;
  color: var(--fw-on-surface, #0b1c30);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-sizing: border-box;
}

.watch-company-employee-detail .wc-profile-label,
.wc-confirm-modal .wc-profile-label {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: var(--fw-on-surface, #0b1c30);
}

.wc-confirm-modal .wc-profile-hint {
  margin: 6px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 16px;
  color: #64748b;
}

.watch-company-employee-detail .wc-profile-input,
.watch-company-employee-detail .wc-profile-select,
.wc-confirm-modal .wc-profile-input,
.wc-confirm-modal .wc-profile-select {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--fw-outline-variant, #c4c5d5);
  border-radius: 10px;
  background: #fff;
  color: var(--fw-on-surface, #0b1c30);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  box-sizing: border-box;
  transition: border-color 0.2s;
}

.watch-company-employee-detail .wc-profile-input[readonly],
.wc-confirm-modal .wc-profile-input[readonly] {
  background: #fff;
  cursor: default;
}

.watch-company-employee-detail .wc-profile-input:focus,
.watch-company-employee-detail .wc-profile-select:focus,
.wc-confirm-modal .wc-profile-input:focus,
.wc-confirm-modal .wc-profile-select:focus {
  outline: none;
  border-color: var(--fw-primary, #00288e);
  box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.08);
}

.watch-company-employee-detail .wc-profile-select,
.wc-confirm-modal .wc-profile-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23444653' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.watch-company-employee-detail .wc-profile-actions {
  margin-top: 20px;
}

.watch-company-employee-detail .wc-profile-actions .btn {
  min-width: 100px;
  border-radius: 10px;
  font-weight: 600;
}

.watch-company-employee-detail .table-responsive-width {
  max-width: 50%;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.watch-company-employee-detail .table-responsive-width table td {
  vertical-align: middle;
}

.watch-company-employee-detail .input-time {
  padding-top: 7px;
  padding-bottom: 7px;
}

@media only screen and (max-width: 768px) {
  .watch-company-employee-detail .wc-profile-grid {
    grid-template-columns: 1fr;
  }
}

@media only screen and (max-width: 992px) {
  .watch-company-employee-detail .wc-employee-detail-layout {
    flex-direction: column;
    gap: 16px;
  }

  .watch-company-employee-detail .wc-employee-detail-nav {
    flex: none;
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
    gap: 8px;
  }

  .watch-company-employee-detail .wc-employee-tab {
    flex: 1 1 auto;
    min-width: 140px;
    text-align: center;
  }

  .watch-company-employee-detail .wc-employee-tab--child {
    margin-left: 0;
    width: auto;
    padding-left: 16px;
  }

  .watch-company-employee-detail .wc-employee-tab--child::before {
    display: none;
  }
}

@media only screen and (max-width: 1200px) {
  .watch-company-employee-detail .table-responsive-width {
    max-width: 80%;
  }
}

.watch-company-settings-detail .wc-profile-section {
  padding: 24px;
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 28, 48, 0.04);
}

.watch-company-settings-detail .wc-profile-form {
  gap: 24px;
}

.watch-company-settings-detail .wc-settings-financial-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  align-items: start;
}

.watch-company-settings-detail .wc-settings-financial-card {
  height: 100%;
}

.watch-company-settings-detail .wc-settings-financial-grid {
  grid-template-columns: 1fr;
  gap: 18px;
}

.watch-company-settings-detail .wc-settings-fee-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
}

.watch-company-settings-detail .wc-settings-fee-unit {
  min-width: 0;
}

.watch-company-settings-detail .wc-settings-input-with-loader {
  position: relative;
}

.watch-company-settings-detail .wc-settings-input-with-loader .jsLoaderInput {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
}

.watch-company-settings-detail .wc-settings-email-list,
.watch-company-settings-detail .wc-settings-email-editor {
  min-height: 44px;
  height: auto;
}

.watch-company-settings-detail .wc-settings-email-error,
.watch-company-settings-detail .wc-settings-field-error {
  margin: 4px 0 0;
  color: #fd0000;
  font-size: 12px;
  line-height: 16px;
}

.watch-company-settings-detail .wc-profile-actions {
  margin-top: 15px;
}

.watch-company-settings-detail .wc-settings-financial-actions {
  display: flex;
  justify-content: flex-end;
}

.watch-company-settings-detail .wc-settings-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--fw-on-surface-variant, #444653);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.watch-company-settings-detail .wc-settings-checkbox-label input {
  margin-top: 3px;
  flex: 0 0 auto;
}

.watch-company-settings-detail .wc-settings-deduction-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 15px;
  align-items: start;
}

.watch-company-settings-detail .wc-settings-deduction-card {
  height: 100%;
}

.watch-company-settings-detail .wc-settings-deduction-description {
  margin: -8px 0 20px;
  font-size: 14px;
  line-height: 20px;
  color: #667085;
}

.watch-company-settings-detail .wc-settings-deduction-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.watch-company-settings-detail .wc-settings-deduction-card--aside {
  padding: 24px;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4ff 100%);
}

.watch-company-settings-detail .wc-settings-deduction-aside__title {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #0b1c30;
}

.watch-company-settings-detail .wc-settings-deduction-aside__text {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 20px;
  color: #526071;
}

.watch-company-settings-detail .wc-settings-deduction-aside__list {
  margin: 0;
  padding-left: 18px;
  color: #526071;
}

.watch-company-settings-detail .wc-settings-deduction-aside__list li + li {
  margin-top: 8px;
}

/* Dashboard page redesign */
.watch-company-dashboard-page .dashboard-new-header {
  margin-bottom: 32px;
}

.watch-company-dashboard-page .dashboard-new-header h2 {
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #001855;
  margin: 0 0 8px 0;
}

.watch-company-dashboard-page .dashboard-new-header p {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 24px;
  color: #444651;
  margin: 0;
}

.watch-company-dashboard-page .dashboard-new-header a {
  color: #305ed3;
  text-decoration: none;
}

.watch-company-dashboard-page .dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 32px;
}

.watch-company-dashboard-page .kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #e0e3e5;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
}

.watch-company-dashboard-page .kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}

.watch-company-dashboard-page .kpi-card--primary { border-left: 4px solid #001855; }
.watch-company-dashboard-page .kpi-card--success { border-left: 4px solid #41dfa5; }
.watch-company-dashboard-page .kpi-card--danger { border-left: 4px solid #93000a; }
.watch-company-dashboard-page .kpi-card--info { border-left: 4px solid #425aa9; }

.watch-company-dashboard-page .kpi-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  flex-shrink: 0;
}

.watch-company-dashboard-page .kpi-icon--primary { background: #dce1ff; color: #001855; }
.watch-company-dashboard-page .kpi-icon--success { background: rgba(100, 252, 191, 0.2); color: #00b17d; }
.watch-company-dashboard-page .kpi-icon--danger { background: #ffdad6; color: #93000a; }
.watch-company-dashboard-page .kpi-icon--info { background: #cfe1fd; color: #001855; }

.watch-company-dashboard-page .kpi-icon .material-symbols-outlined {
  font-size: 24px;
}

.watch-company-dashboard-page .kpi-content { flex: 1; min-width: 0; }

.watch-company-dashboard-page .kpi-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #444651;
  margin-bottom: 4px;
}

.watch-company-dashboard-page .kpi-value {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.watch-company-dashboard-page .kpi-value--primary { color: #001855; }
.watch-company-dashboard-page .kpi-value--success { color: #00b17d; }
.watch-company-dashboard-page .kpi-value--danger { color: #93000a; }
.watch-company-dashboard-page .kpi-value--info { color: #001855; }

/* KPI Loading Animation */
.watch-company-dashboard-page .kpi-loading {
  display: inline-block;
  width: 48px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: wc-kpi-shimmer 1.2s infinite;
}

@keyframes wc-kpi-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Main Grid Layout */
.watch-company-dashboard-page .dashboard-main-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 32px;
}

/* Chart Card */
.watch-company-dashboard-page .chart-card {
  background: #ffffff;
  border: 1px solid #e0e3e5;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
}

.watch-company-dashboard-page .chart-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e3e5;
  background: rgba(242, 244, 246, 0.5);
}

.watch-company-dashboard-page .chart-card-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #001855;
  margin: 0;
}

.watch-company-dashboard-page .chart-card-legend {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #444651;
}

.watch-company-dashboard-page .chart-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #0d2c7b;
}

.watch-company-dashboard-page .chart-card-body {
  padding: 24px;
  height: 340px;
  position: relative;
}

/* Side Cards */
.watch-company-dashboard-page .dashboard-side-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.watch-company-dashboard-page .side-card {
  background: #ffffff;
  border: 1px solid #e0e3e5;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  padding: 24px;
}

.watch-company-dashboard-page .side-card-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #001855;
  margin: 0 0 24px 0;
}

/* Donut Chart */
.watch-company-dashboard-page .donut-chart-container {
  position: relative;
  width: 192px;
  height: 192px;
  margin: 0 auto 24px auto;
}

.watch-company-dashboard-page .donut-chart {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.watch-company-dashboard-page .donut-bg {
  fill: none;
  stroke: #e6e8ea;
  stroke-width: 3;
}

.watch-company-dashboard-page .donut-segment--success {
  fill: none;
  stroke: #00b17d;
  stroke-width: 3;
  stroke-dasharray: 65 100;
  stroke-linecap: round;
}

.watch-company-dashboard-page .donut-segment--primary {
  fill: none;
  stroke: #001855;
  stroke-width: 3;
  stroke-dasharray: 25 100;
  stroke-dashoffset: -65;
  stroke-linecap: round;
}

.watch-company-dashboard-page .donut-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.watch-company-dashboard-page .donut-center-label {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #444651;
}

.watch-company-dashboard-page .donut-center-value {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 24px;
  font-weight: 700;
  color: #001855;
}

/* Donut Legend */
.watch-company-dashboard-page .donut-legend {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.watch-company-dashboard-page .donut-legend-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.watch-company-dashboard-page .donut-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.watch-company-dashboard-page .donut-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.watch-company-dashboard-page .donut-legend-dot--success { background: #00b17d; }
.watch-company-dashboard-page .donut-legend-dot--primary { background: #001855; }

.watch-company-dashboard-page .donut-legend-label {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #191c1e;
}

.watch-company-dashboard-page .donut-legend-value {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #191c1e;
}

/* Quick Actions */
.watch-company-dashboard-page .quick-actions-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.watch-company-dashboard-page .quick-action-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  text-decoration: none;
  transition: background 0.2s;
}

.watch-company-dashboard-page .quick-action-item:hover {
  background: #f2f4f6;
}

.watch-company-dashboard-page .quick-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.watch-company-dashboard-page .quick-action-icon--primary { background: #dce1ff; color: #001855; }
.watch-company-dashboard-page .quick-action-item:hover .quick-action-icon--primary { background: #001855; color: #ffffff; }
.watch-company-dashboard-page .quick-action-icon--success { background: rgba(100, 252, 191, 0.2); color: #00b17d; }
.watch-company-dashboard-page .quick-action-item:hover .quick-action-icon--success { background: #00b17d; color: #ffffff; }
.watch-company-dashboard-page .quick-action-icon--secondary { background: #cfe1fd; color: #4e6077; }
.watch-company-dashboard-page .quick-action-item:hover .quick-action-icon--secondary { background: #4e6077; color: #ffffff; }

.watch-company-dashboard-page .quick-action-icon .material-symbols-outlined {
  font-size: 20px;
}

.watch-company-dashboard-page .quick-action-content { flex: 1; }

.watch-company-dashboard-page .quick-action-title {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #191c1e;
  margin-bottom: 2px;
}

.watch-company-dashboard-page .quick-action-desc {
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  color: #444651;
}

/* Transactions Table */
.watch-company-dashboard-page .transactions-card {
  background: #ffffff;
  border: 1px solid #e0e3e5;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.watch-company-dashboard-page .transactions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e0e3e5;
  background: rgba(242, 244, 246, 0.5);
}

.watch-company-dashboard-page .transactions-title {
  font-family: 'Hanken Grotesk', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #001855;
  margin: 0;
}

.watch-company-dashboard-page .transactions-view-all {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #001855;
  text-decoration: none;
  transition: color 0.2s;
}

.watch-company-dashboard-page .transactions-view-all:hover {
  color: #00164f;
  text-decoration: underline;
}

.watch-company-dashboard-page .transactions-view-all .material-symbols-outlined {
  font-size: 18px;
}

/* Dashboard Sync Info */
.watch-company-dashboard-page .dashboard-sync-info {
  text-align: right;
  margin-top: 24px;
}

.watch-company-dashboard-page .dashboard-sync-info p {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  color: #444651;
}

.watch-company-dashboard-page .dashboard-sync-info strong {
  color: #dc2626;
}

/* Responsive */
@media (max-width: 1200px) {
  .watch-company-dashboard-page .dashboard-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .watch-company-dashboard-page .dashboard-main-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .watch-company-dashboard-page .dashboard-kpi-grid {
    grid-template-columns: 1fr;
  }
  .watch-company-dashboard-page .dashboard-new-header h2 {
    font-size: 18px;
  }
  .watch-company-dashboard-page .kpi-card {
    padding: 16px;
  }
}

/* ——— Work Schedule (Lịch làm việc) & Working Shifts & Timesheet Container ——— */
.wc-employees-page--work-schedule,
.wc-employees-page--working-shifts,
.wc-employees-page--timesheet,
.wc-employees-page--timesheet-detail,
.wc-employees-page--attendance-requests {
  margin-top: calc(-1 * var(--fw-container-margin, 32px));
  margin-left: calc(-1 * var(--fw-container-margin, 32px));
  margin-right: calc(-1 * var(--fw-container-margin, 32px));
  width: calc(100% + 2 * var(--fw-container-margin, 32px));
  max-width: none;
  padding: 14px 16px 32px;
  box-sizing: border-box;
  background-color: var(--tblr-body-bg, #f8fafc);
}

.wc-employees-page--work-schedule .wc-ws-panel,
.wc-employees-page--work-schedule #jsWorkScheduleCard {
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--tblr-border-color, #e6e8eb);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  background-color: #ffffff;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 1.25rem;
}

.wc-employees-page--work-schedule .wc-ws-intro {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 20px;
  color: #6b7280;
}

.wc-ws-page .wc-ws-layout {
  display: grid;
  grid-template-columns: minmax(420px, 1.55fr) minmax(280px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.wc-ws-page .wc-ws-shell-card {
  display: block;
  width: 100%;
  max-width: none;
  min-width: 0;
  padding: 24px;
  background: var(--fw-surface-container-lowest, #ffffff);
  border: 1px solid #d8dee8;
  border-radius: 16px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.wc-ws-page .wc-ws-shell-card__header {
  padding: 16px;
  border-bottom: 1px solid #d8dee8;
  background: rgba(239, 244, 255, 0.65);
}

.wc-ws-page .wc-ws-shell-card__title {
  margin: 0;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
  color: #101828;
}

.wc-ws-page .wc-ws-shell-card__subtitle {
  margin: 4px 0 0;
  font-size: 14px;
  line-height: 20px;
  color: #667085;
}

.wc-ws-page .wc-ws-shell-card__body {
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wc-ws-page .wc-ws-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wc-ws-page .wc-ws-block__title {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #101828;
}

.wc-ws-page .wc-ws-block__icon {
  font-size: 20px;
  color: var(--fw-primary, #00288e);
}

.wc-ws-page .wc-ws-month-card {
  width: 100%;
  max-width: 100%;
  padding: 16px;
  border: 1px solid rgba(117, 118, 130, 0.22);
  border-radius: 12px;
  background: rgba(239, 244, 255, 0.45);
}

.wc-ws-page .wc-ws-month-card__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  color: #667085;
}

.wc-ws-page .wc-ws-month-card__row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wc-ws-page .wc-ws-month-card__input {
  width: 96px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #c9d2df;
  border-radius: 10px;
  background: #fff;
  font-size: 16px;
  line-height: 24px;
  font-weight: 700;
  color: #101828;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.wc-ws-page .wc-ws-month-card__input:focus,
.wc-ws-page .wc-ws-day-select:focus {
  outline: none;
  border-color: var(--fw-primary, #00288e);
  box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.08);
}

.wc-ws-page .wc-ws-month-card__unit {
  font-size: 14px;
  line-height: 20px;
  color: #667085;
  font-style: italic;
}

.wc-ws-page .wc-ws-schedule-table-wrap {
  width: 100%;
  max-width: 100%;
  border: 1px solid #d8dee8;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.wc-ws-page .wc-ws-schedule-table {
  width: 100%;
  border-collapse: collapse;
}

.wc-ws-page .wc-ws-schedule-table thead {
  background: rgba(230, 232, 234, 0.4);
}

.wc-ws-page .wc-ws-schedule-table th {
  padding: 12px 16px;
  border-bottom: 1px solid #d8dee8;
  text-align: left;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #757682;
}

.wc-ws-page .wc-ws-schedule-table tbody {
  border-top: 1px solid #d8dee8;
}

.wc-ws-page .wc-ws-schedule-table__row {
  transition: background-color 0.15s;
}

.wc-ws-page .wc-ws-schedule-table__row:hover {
  background: rgba(230, 232, 234, 0.2);
}

.wc-ws-page .wc-ws-schedule-table td {
  padding: 16px;
  vertical-align: middle;
}

.wc-ws-page .wc-ws-day-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wc-ws-page .wc-ws-day-cell__badge {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(207, 225, 253, 0.45);
  border: 1px solid rgba(0, 40, 142, 0.08);
  color: var(--fw-primary, #00288e);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.wc-ws-page .wc-ws-day-cell__label {
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: #101828;
}

.wc-ws-page .wc-ws-day-select {
  width: 100%;
  max-width: 200px;
  height: 38px;
  padding: 0 36px 0 12px;
  border: 1px solid #c9d2df;
  border-radius: 10px;
  background-color: #fff;
  color: #344054;
  font-size: 14px;
  line-height: 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' stroke='%23667085' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.wc-ws-page .wc-ws-day-action {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: #667085;
  opacity: 0;
  transition: opacity 0.15s, color 0.15s, background-color 0.15s;
  cursor: pointer;
}

.wc-ws-page .wc-ws-schedule-table__row:hover .wc-ws-day-action {
  opacity: 1;
}

.wc-ws-page .wc-ws-day-action:hover {
  color: var(--fw-primary, #00288e);
  background: rgba(239, 244, 255, 0.9);
}

.wc-ws-page .wc-ws-day-action .material-symbols-outlined {
  font-size: 20px;
}

.wc-ws-page .wc-ws-shell-card__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.wc-ws-page .wc-ws-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.wc-ws-page .wc-ws-sidebar-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid #d8dee8;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

.wc-ws-page .wc-ws-sidebar-card--highlight {
  background: linear-gradient(180deg, #0d2c7b 0%, #13388f 100%);
  color: #dce6ff;
  border-color: rgba(13, 44, 123, 0.2);
}

.wc-ws-page .wc-ws-sidebar-card__glow {
  position: absolute;
  top: -28px;
  right: -28px;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  filter: blur(18px);
  pointer-events: none;
}

.wc-ws-page .wc-ws-sidebar-card__title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 28px;
  font-weight: 600;
}

.wc-ws-page .wc-ws-sidebar-card__title-icon {
  font-size: 20px;
}

.wc-ws-page .wc-ws-sidebar-card__text {
  position: relative;
  z-index: 1;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 22px;
  color: inherit;
  opacity: 0.95;
}

.wc-ws-page .wc-ws-sidebar-checklist {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wc-ws-page .wc-ws-sidebar-checklist__item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  line-height: 18px;
}

.wc-ws-page .wc-ws-sidebar-checklist__icon {
  font-size: 18px;
  line-height: 18px;
}

.wc-ws-page .wc-ws-sidebar-card__label {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #101828;
}

.wc-ws-page .wc-ws-sidebar-preview {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wc-ws-page .wc-ws-sidebar-preview__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  line-height: 20px;
}

.wc-ws-page .wc-ws-sidebar-preview__month {
  color: #667085;
}

.wc-ws-page .wc-ws-sidebar-preview__days {
  font-weight: 700;
  color: #101828;
}

.wc-ws-page .wc-ws-sidebar-preview__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
}

.wc-ws-page .wc-ws-sidebar-preview__dot {
  aspect-ratio: 1 / 1;
  border-radius: 4px;
  display: block;
}

.wc-ws-page .wc-ws-sidebar-preview__dot--work {
  background: rgba(207, 225, 253, 0.7);
}

.wc-ws-page .wc-ws-sidebar-preview__dot--half {
  background: rgba(255, 236, 179, 0.95);
}

.wc-ws-page .wc-ws-sidebar-preview__dot--off {
  background: rgba(255, 218, 214, 0.7);
}

.wc-ws-page .wc-ws-sidebar-preview__legend {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(216, 222, 232, 0.75);
}

.wc-ws-page .wc-ws-sidebar-preview__legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  line-height: 16px;
  color: #667085;
}

.wc-ws-page .wc-ws-sidebar-preview__legend-swatch {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  display: inline-block;
}

.wc-ws-page .wc-ws-sidebar-preview__legend-swatch--work {
  background: rgba(207, 225, 253, 0.7);
}

.wc-ws-page .wc-ws-sidebar-preview__legend-swatch--half {
  background: rgba(255, 236, 179, 0.95);
}

.wc-ws-page .wc-ws-sidebar-preview__legend-swatch--off {
  background: rgba(255, 218, 214, 0.7);
}

.wc-ws-page .wc-ws-sidebar-support__media {
  position: relative;
  margin-bottom: 16px;
  height: 128px;
  border-radius: 12px;
  overflow: hidden;
  background: #eef2f7;
}

.wc-ws-page .wc-ws-sidebar-support__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.wc-ws-page .wc-ws-sidebar-support__badge {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 1;
  color: #ffffff;
  font-size: 12px;
  line-height: 16px;
  font-weight: 600;
}

.wc-ws-page .wc-ws-sidebar-card--support .wc-ws-sidebar-support__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.02) 0%, rgba(15, 23, 42, 0.55) 100%);
}

.wc-ws-page .wc-ws-sidebar-support__title {
  margin: 0 0 6px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  color: #101828;
}

.wc-ws-page .wc-ws-sidebar-support__text {
  margin: 0;
  font-size: 14px;
  line-height: 20px;
  color: #667085;
}

.wc-ws-page .wc-ws-sidebar-support__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 16px;
  height: 40px;
  border: 1px solid var(--fw-primary, #00288e);
  border-radius: 10px;
  background: #ffffff;
  color: var(--fw-primary, #00288e);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.wc-ws-page .wc-ws-sidebar-support__button:hover {
  background: rgba(239, 244, 255, 0.9);
}

.wc-ws-page .wc-ws-footer-btn {
  min-width: 120px;
  border-radius: 10px;
}

@media (max-width: 992px) {
  .wc-ws-page .wc-ws-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .wc-ws-page .wc-ws-shell-card {
    display: block;
    width: 100%;
    padding: 16px;
  }

  .wc-ws-page .wc-ws-shell-card__body {
    padding: 0;
  }

  .wc-ws-page .wc-ws-sidebar-card {
    padding: 16px;
  }

  .wc-ws-page .wc-ws-month-card {
    max-width: none;
  }

  .wc-ws-page .wc-ws-month-card__row {
    flex-direction: column;
    align-items: flex-start;
  }

  .wc-ws-page .wc-ws-schedule-table-wrap {
    overflow-x: auto;
  }

  .wc-ws-page .wc-ws-schedule-table {
    min-width: 640px;
  }

  .wc-ws-page .wc-ws-shell-card__footer {
    flex-direction: column-reverse;
  }

  .wc-ws-page .wc-ws-footer-btn {
    width: 100%;
  }
}

@media only screen and (max-width: 768px) {
  .watch-company-settings-detail .wc-profile-section {
    padding: 18px;
  }

  .watch-company-settings-detail .wc-profile-form {
    gap: 18px;
  }

  .watch-company-settings-detail .wc-settings-financial-layout {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .watch-company-settings-detail .wc-settings-deduction-layout {
    grid-template-columns: 1fr;
  }

  .watch-company-settings-detail .wc-settings-deduction-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .watch-company-settings-detail .wc-settings-financial-grid {
    gap: 15px;
  }

  .watch-company-settings-detail .wc-settings-fee-group {
    grid-template-columns: 1fr;
  }

  .watch-company-settings-detail .wc-settings-financial-actions {
    justify-content: stretch;
  }

  .watch-company-settings-detail .wc-settings-financial-actions .btn {
    width: 100%;
  }
}

.wc-support-feedback-modal {
  background: rgba(15, 23, 42, 0.45);
}

body[data-watch-company-shell] #FormFeedBacksModal,
body[data-watch-company-shell] #FormFeedBacksModal .modal-dialog,
body[data-watch-company-shell] #FormFeedBacksModal .modal-content {
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body[data-watch-company-shell] #FormFeedBacksModal {
  display: none !important;
  align-items: center;
  justify-content: center;
  padding: 24px 12px;
  z-index: 4000 !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

body[data-watch-company-shell] #FormFeedBacksModal.show {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body[data-watch-company-shell] #FormFeedBacksModal.fade {
  opacity: 0 !important;
}

body[data-watch-company-shell] #FormFeedBacksModal.fade.show {
  opacity: 1 !important;
}

body[data-watch-company-shell] #FormFeedBacksModal .modal-dialog {
  position: relative;
  z-index: 4001 !important;
  pointer-events: auto !important;
  width: 100%;
  margin: 0 auto !important;
  opacity: 1 !important;
  transform: none !important;
}

body[data-watch-company-shell] #FormFeedBacksModal .modal-content,
body[data-watch-company-shell] #FormFeedBacksModal .wc-confirm-modal__content,
body[data-watch-company-shell] #FormFeedBacksModal .wc-confirm-modal__body,
body[data-watch-company-shell] #FormFeedBacksModal .wc-confirm-modal__header,
body[data-watch-company-shell] #FormFeedBacksModal .wc-confirm-modal__footer {
  position: relative;
  z-index: 4002 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.wc-support-feedback-modal .wc-confirm-modal__content {
  border-radius: 18px;
  background: #fff;
}

.wc-support-feedback-modal .wc-confirm-modal__header {
  padding: 24px 24px 16px;
  background: #fff;
}

.wc-support-feedback-modal .wc-confirm-modal__body {
  padding: 8px 24px 24px;
  background: #fff;
}

.wc-support-feedback-modal .wc-confirm-modal__footer {
  padding: 16px 24px 24px;
  background: #fff;
}

.wc-support-feedback-modal__heading {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wc-support-feedback-modal__subtitle {
  margin: 0;
  color: #64748b;
  font-size: 13px;
  line-height: 20px;
}

.wc-support-feedback-modal .wc-profile-form,
.wc-support-feedback-modal .wc-profile-section {
  margin-bottom: 0;
}

.wc-support-feedback-modal .wc-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 20px;
}

.wc-support-feedback-modal .wc-profile-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-support-feedback-modal .wc-profile-label {
  padding-left: 2px;
  text-transform: none;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
}

.wc-support-feedback-modal .wc-profile-input {
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid #dbe2ea;
  border-radius: 12px;
  background: #fff;
}

.wc-support-feedback-modal__field--full {
  grid-column: 1 / -1;
  margin-top: 2px;
}

.wc-support-feedback-modal__message {
  min-height: 144px;
  padding-top: 14px;
  white-space: pre-wrap;
  word-break: break-word;
  align-content: flex-start;
}

@media only screen and (max-width: 768px) {
  .wc-support-feedback-modal .wc-confirm-modal__header,
  .wc-support-feedback-modal .wc-confirm-modal__body,
  .wc-support-feedback-modal .wc-confirm-modal__footer {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wc-support-feedback-modal .wc-confirm-modal__body {
    padding-top: 8px;
    padding-bottom: 20px;
  }

  .wc-support-feedback-modal .wc-profile-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wc-support-feedback-modal__field--full {
    grid-column: auto;
    margin-top: 0;
  }
}

/* Employees page — invoice-style layout */
.wc-employees-page {
  padding: 8px 0 32px;
  font-family: 'Inter', sans-serif;
}

.wc-employees-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  margin-bottom: 24px;
}

.wc-employees-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border: none;
  border-radius: 10px;
  background: var(--fw-primary, #00288e);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s;
  white-space: nowrap;
  text-decoration: none;
}

a.wc-employees-btn-primary:hover,
a.wc-employees-btn-primary:focus {
  color: #fff;
  text-decoration: none;
}

.wc-employees-btn-primary:hover {
  background: #001f6d;
  box-shadow: 0 4px 12px rgba(0, 40, 142, 0.2);
}

.wc-employees-btn-primary:disabled,
.wc-employees-btn-primary[disabled],
.wc-employees-btn-primary.is-disabled {
  background: #94a3b8 !important;
  background-color: #94a3b8 !important;
  color: #f8fafc !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  border-color: transparent !important;
  opacity: 0.8 !important;
}

.wc-employees-btn-primary:disabled:hover,
.wc-employees-btn-primary[disabled]:hover,
.wc-employees-btn-primary.is-disabled:hover {
  background: #94a3b8 !important;
  background-color: #94a3b8 !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

.wc-employees-btn-primary__icon {
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.wc-employees-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: 50%;
  max-width: 50%;
  margin-bottom: 0;
  flex: 0 0 50%;
}

.wc-employees-hero .wc-employees-btn-primary {
  flex-shrink: 0;
  margin-left: auto;
}

.wc-employees-stat-card {
  padding: 12px 14px;
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(11, 28, 48, 0.04);
  min-width: 0;
}

.wc-employees-stat-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.wc-employees-stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  align-self: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  font-size: 16px;
  line-height: 1;
}

.wc-employees-stat-card__icon i {
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.wc-employees-stat-card__icon--blue {
  background: #e8f0ff;
  color: #305ed3;
}

.wc-employees-stat-card__icon--green {
  background: #e8f8f1;
  color: #0ac282;
}

.wc-employees-stat-card__icon--amber {
  background: #fff4e5;
  color: #e6a100;
}

.wc-employees-stat-card__label {
  margin: 0;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  min-height: 34px;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--fw-on-surface-variant, #6b7280);
}

.wc-employees-stat-card__value {
  margin: 0;
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 34px;
  color: var(--fw-on-surface, #0b1c30);
}

.wc-employees-stat-card__loading {
  display: inline-block;
  width: 48px;
  height: 12px;
  border-radius: 6px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e5e7eb 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: wc-employees-shimmer 1.2s infinite;
}

@keyframes wc-employees-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.wc-employees-panel {
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.wc-employees-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--fw-outline-variant, #e5e7eb);
  background: #fff;
}

.wc-employees-toolbar__left,
.wc-employees-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wc-employees-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.wc-employees-tab {
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--fw-on-surface-variant, #6b7280);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wc-employees-tab:hover {
  color: var(--fw-on-surface, #111827);
}

.wc-employees-tab--active {
  background: #f3f4f6;
  color: var(--fw-on-surface, #111827);
  font-weight: 600;
}

.wc-employees-page button:focus,
.wc-employees-page button:active,
.wc-employees-page button:focus-visible,
.wc-employees-page a:focus,
.wc-employees-page a:active,
.wc-employees-page a:focus-visible,
.wc-employees-page .btn:focus,
.wc-employees-page .btn:active,
.wc-employees-page .btn:focus-visible,
.wc-employees-page .paginate_button:focus,
.wc-employees-page .paginate_button:active,
.wc-employees-page .paginate_button:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.wc-employees-tab:focus,
.wc-employees-tab:active,
.wc-employees-tab:focus-visible,
.wc-employees-tab--active:focus,
.wc-employees-tab--active:active,
.wc-employees-tab--active:focus-visible {
  border: none !important;
}

.wc-employees-icon-btn:focus,
.wc-employees-icon-btn:active,
.wc-employees-icon-btn:focus-visible,
.wc-employees-tool-btn:focus,
.wc-employees-tool-btn:active,
.wc-employees-tool-btn:focus-visible {
  border-color: var(--fw-outline-variant, #d1d5db) !important;
}

.wc-employees-btn-primary:focus,
.wc-employees-btn-primary:active,
.wc-employees-btn-primary:focus-visible {
  border: none !important;
}

.wc-employees-filter-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wc-employees-search {
  display: flex;
  align-items: center;
  gap: 0;
}

.wc-employees-search__expanded {
  display: none;
  align-items: center;
  gap: 12px;
}

.wc-employees-search--open .wc-employees-search__toggle {
  display: none;
}

.wc-employees-search--open .wc-employees-search__expanded {
  display: flex;
}

.wc-employees-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  padding: 8px 16px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 999px;
  background: #fff;
  margin: 0;
  cursor: text;
}

.wc-employees-search__field > i {
  flex-shrink: 0;
  font-size: 16px;
  color: #9ca3af;
}

.wc-employees-search__input {
  flex: 1;
  min-width: 0;
  padding: 0;
  border: none;
  font-size: 14px;
  line-height: 20px;
  color: var(--fw-on-surface, #0b1c30);
  background: transparent;
}

.wc-employees-search__input::placeholder {
  color: #9ca3af;
}

.wc-employees-search__input:focus {
  outline: none;
}

.wc-employees-search__clear {
  flex-shrink: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #9ca3af;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: color 0.2s;
}

.wc-employees-search__clear:hover {
  color: #4b5563;
}

.wc-employees-search__clear--icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 4px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  color: #9ca3af;
}

.wc-employees-search__clear--icon[hidden] {
  display: none !important;
}

.wc-employees-search__clear--icon:hover {
  color: #4b5563;
  background: #f3f4f6;
}

.wc-employees-search__input[type='search']::-webkit-search-cancel-button,
.wc-employees-search__input[type='search']::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.wc-employees-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.wc-employees-icon-btn:hover:not(.disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.wc-employees-icon-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wc-employees-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: var(--fw-on-surface, #111827);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.wc-employees-tool-btn:hover:not(.disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.wc-employees-tool-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wc-employees-tool-btn i {
  font-size: 16px;
  color: #6b7280;
}

.wc-employees-tool-select {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23444653' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: var(--fw-on-surface, #111827);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.wc-employees-tool-select::-ms-expand {
  display: none;
}

.wc-employees-tool-select:focus {
  outline: none;
  border-color: var(--fw-primary, #00288e);
}

.wc-employees-tool-select:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

.wc-employees-table-wrap {
  padding: 0 16px 12px;
  overflow-x: auto;
}

.wc-employees-table-wrap .dataTables_wrapper {
  width: 100%;
}

.wc-employees-page #staffTable_wrapper > .row:first-child,
.wc-employees-page--invitations #staffInviteTable_wrapper > .row:first-child,
.wc-employees-page--timesheet #timesheetTable_wrapper > .row:first-child,
.wc-employees-page--timesheet #requestTable_wrapper > .row:first-child {
  display: none;
}

.wc-employees-page table.dataTable {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

.wc-employees-page .dataTables_scroll {
  margin: 0 !important;
}

.wc-employees-page .dataTables_scrollHead,
.wc-employees-page .dataTables_scrollBody {
  border: none !important;
}

.wc-employees-page .dataTables_scrollBody {
  margin-top: 0 !important;
}

.wc-employees-table {
  width: 100% !important;
  margin-top: 0 !important;
  border-collapse: collapse;
  border-spacing: 0;
}

.wc-employees-table thead th {
  padding: 12px 14px !important;
  border-bottom: 1px solid var(--fw-outline-variant, #e5e7eb) !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  background: #f9fafb !important;
  color: #6b7280 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wc-employees-table tbody td {
  padding: 14px !important;
  border-top: none !important;
  border-left: none !important;
  border-right: none !important;
  border-bottom: 1px solid #f3f4f6 !important;
  color: var(--fw-on-surface, #111827);
  font-size: 14px;
  vertical-align: middle !important;
}

.wc-employees-table tbody tr:hover td {
  background: #fafbfc;
}

.wc-employees-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.wc-employees-status--active {
  background: #e8f8f1;
  color: #0a9f6c;
}

.wc-employees-status--inactive {
  background: #fde8eb;
  color: #e11d48;
}

.wc-employees-status--suspend {
  background: #f3f4f6;
  color: #6b7280;
}

.wc-employees-status--terminated {
  background: #eef2ff;
  color: #4f46e5;
}

.wc-employees-status-cell {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.wc-employees-row-actions {
  gap: 0;
}

.wc-employees-row-view {
  flex-shrink: 0;
}

.wc-employees-page #staffTable_wrapper > .row:last-child,
.wc-employees-page #staffInviteTable_wrapper > .row:last-child,
.wc-employees-page--timesheet #timesheetTable_wrapper > .row:last-child,
.wc-employees-page--timesheet #requestTable_wrapper > .row:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 0;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.wc-employees-page #staffTable_wrapper .dataTables_info,
.wc-employees-page #staffInviteTable_wrapper .dataTables_info,
.wc-employees-page--timesheet #timesheetTable_wrapper .dataTables_info,
.wc-employees-page--timesheet #requestTable_wrapper .dataTables_info {
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #6b7280;
}

.wc-employees-page #staffTable_wrapper .dataTables_paginate,
.wc-employees-page #staffInviteTable_wrapper .dataTables_paginate,
.wc-employees-page--timesheet #timesheetTable_wrapper .dataTables_paginate,
.wc-employees-page--timesheet #requestTable_wrapper .dataTables_paginate {
  margin: 0;
  padding: 0;
}

.wc-employees-page #staffTable_wrapper .pagination--custom,
.wc-employees-page #staffInviteTable_wrapper .pagination--custom,
.wc-employees-page--timesheet #timesheetTable_wrapper .pagination--custom,
.wc-employees-page--timesheet #requestTable_wrapper .pagination--custom {
  margin-left: 15px;
}

.wc-employees-page #staffTable_wrapper .pagination--custom label,
.wc-employees-page #staffInviteTable_wrapper .pagination--custom label,
.wc-employees-page--timesheet #timesheetTable_wrapper .pagination--custom label,
.wc-employees-page--timesheet #requestTable_wrapper .pagination--custom label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  border-left: none;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.wc-employees-page #staffTable_wrapper .pagination--custom select,
.wc-employees-page #staffInviteTable_wrapper .pagination--custom select,
.wc-employees-page--timesheet #timesheetTable_wrapper .pagination--custom select,
.wc-employees-page--timesheet #requestTable_wrapper .pagination--custom select {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  min-height: 30px;
  padding: 2px 4px 2px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.wc-employees-page .dataTables_paginate .paginate_button {
  border: none !important;
  background: transparent !important;
  color: #4b5563 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
  margin: 0 2px !important;
  border-radius: 8px !important;
}

.wc-employees-page .dataTables_paginate .paginate_button.current {
  background: #eff4ff !important;
  color: #00288e !important;
}

.wc-employees-page .dataTables_paginate .paginate_button:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

/* Shared table footer — Prev/Next left, page-size dropdown right */
.wc-employees-page .wc-table-footer {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 16px 0;
  border-top: 1px solid #f3f4f6;
}

.wc-employees-page .wc-table-footer > .wc-table-footer__left,
.wc-employees-page .wc-table-footer > .wc-table-footer__right {
  display: flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
  width: auto !important;
  max-width: none !important;
  padding: 0 !important;
}

.wc-employees-page .wc-table-footer__left {
  justify-content: flex-start;
}

.wc-employees-page .wc-table-footer__right {
  justify-content: flex-end;
  margin-left: auto;
}

.wc-employees-page .wc-table-footer__right .pagination--custom,
.wc-employees-page .wc-table-footer__right .wc-page-size-wrap {
  margin-left: 0 !important;
}

.wc-employees-page .wc-table-footer__info {
  display: none !important;
}

.wc-employees-page .wc-table-paginate {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  float: none !important;
  text-align: left;
}

.wc-employees-page .wc-table-paginate .paginate_button {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  flex: 0 0 auto;
}

.wc-employees-page .wc-table-paginate .paginate_button.previous {
  margin-right: 28px !important;
}

.wc-employees-page .wc-table-paginate .paginate_button.next {
  margin-left: 0 !important;
}

.wc-employees-page .wc-table-paginate .paginate_button:hover:not(.disabled) {
  background: transparent !important;
  color: #111827 !important;
}

.wc-employees-page .wc-table-paginate .paginate_button.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

.wc-employees-page .wc-table-paginate .paginate_button.wc-table-paginate__hidden,
.wc-employees-page .wc-table-paginate .paginate_button.first,
.wc-employees-page .wc-table-paginate .paginate_button.last {
  display: none !important;
}

.wc-employees-page .wc-table-paginate__icon {
  font-size: 14px;
  line-height: 1;
}

.wc-employees-page .wc-page-size-wrap {
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.wc-employees-page .wc-page-size {
  position: relative;
  display: inline-flex;
}

.wc-employees-page .wc-page-size__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  background: #fff;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wc-employees-page .wc-page-size__toggle:hover,
.wc-employees-page .wc-page-size__toggle[aria-expanded="true"] {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.wc-employees-page .wc-page-size__label {
  color: #6b7280;
}

.wc-employees-page .wc-page-size__value {
  color: #111827;
  font-weight: 600;
}

.wc-employees-page .wc-page-size__chevron {
  font-size: 12px;
  color: #9ca3af;
  transition: transform 0.15s ease;
}

.wc-employees-page .wc-page-size__toggle[aria-expanded="true"] .wc-page-size__chevron {
  transform: rotate(180deg);
}

.wc-employees-page .wc-page-size__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  z-index: 30;
  min-width: 88px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
}

.wc-employees-page .wc-page-size__menu--fixed {
  z-index: 1080;
}

.wc-employees-page .wc-page-size__menu--fixed.wc-page-size__menu--above {
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.12);
}

.wc-employees-page .wc-table-footer,
.wc-employees-page .wc-table-footer__right,
.wc-employees-page .wc-page-size-wrap,
.wc-employees-page .dataTables_wrapper > .row:last-child {
  overflow: visible !important;
}

.wc-employees-page .wc-page-size__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.wc-employees-page .wc-page-size__option:hover {
  background: #f9fafb;
}

.wc-employees-page .wc-page-size__option--active {
  background: #eff6ff;
  color: #1d4ed8;
}

.wc-employees-page .wc-page-size__check {
  font-size: 14px;
  color: #2563eb;
  opacity: 0;
}

.wc-employees-page .wc-page-size__option--active .wc-page-size__check {
  opacity: 1;
}

.wc-employees-back-btn,
#wcEmployeesInviteBack {
  display: none !important;
}

.wc-employees-date-range {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wc-employees-date-range__picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: var(--fw-on-surface-variant, #6b7280);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.2s, color 0.2s;
}

.wc-employees-date-range__picker:hover {
  border-color: #9ca3af;
  color: var(--fw-on-surface, #111827);
}

.wc-employees-date-range__picker i {
  font-size: 14px;
}

.wc-employees-date-range__caret {
  font-size: 12px;
  opacity: 0.7;
}

/* Confirmation modal (invite / invite all) */
.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 480px;
  width: calc(100% - 32px);
  margin: auto;
}

.wc-confirm-modal--wide .modal-dialog.wc-confirm-modal__dialog {
  max-width: 920px;
}

/* Bulk timesheet modal — fit inside watch-company shell viewport */
.wc-bulk-timesheet-modal.modal {
  z-index: 1060;
}

.wc-bulk-staff-picker-modal.modal {
  z-index: 1080;
}

body.wc-bulk-timesheet-modal-open .modal-backdrop {
  pointer-events: auto !important;
  opacity: 0.48 !important;
  background: rgba(15, 23, 42, 0.48) !important;
  display: block !important;
  z-index: 1040 !important;
}

body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal .modal-dialog,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal .modal-dialog,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal .modal-content,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal .modal-content,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal .wc-confirm-modal__header,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal .wc-confirm-modal__header,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal .wc-confirm-modal__body,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal .wc-confirm-modal__body,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal .wc-confirm-modal__footer,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal .wc-confirm-modal__footer,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal input,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal input,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal select,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal select,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal button,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal button,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal label,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal label {
  pointer-events: auto !important;
}

body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal {
  background: transparent !important;
  opacity: 1 !important;
  z-index: 1060 !important;
}

body.wc-bulk-staff-picker-open .modal-backdrop:last-of-type {
  z-index: 1070 !important;
  opacity: 0.55 !important;
}

body.wc-bulk-staff-picker-open #wcBulkTimesheetModal,
body.wc-bulk-staff-picker-open #wcRosterAssignModal {
  pointer-events: none !important;
}

body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal,
body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal .modal-dialog,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal .modal-dialog,
body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal .modal-content,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal .modal-content,
body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal input,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal input,
body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal select,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal select,
body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal button,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal button,
body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal label,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal label {
  pointer-events: auto !important;
}

body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal {
  background: transparent !important;
  opacity: 1 !important;
  z-index: 1080 !important;
}

#wcBulkTimesheetModal.modal,
#wcRosterAssignModal.modal,
#wcBulkStaffPickerModal.modal,
#wcRosterStaffPickerModal.modal {
  position: fixed !important;
  top: var(--fw-header-h, 64px) !important;
  left: var(--fw-sidebar-w, 280px) !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 16px 24px !important;
  margin: 0 !important;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden !important;
  background: transparent !important;
}

#wcBulkTimesheetModal.show,
#wcRosterAssignModal.show,
#wcBulkStaffPickerModal.show,
#wcRosterStaffPickerModal.show,
body.wc-bulk-timesheet-modal-open #wcBulkTimesheetModal.show,
body.wc-bulk-timesheet-modal-open #wcRosterAssignModal.show,
body.wc-bulk-staff-picker-open #wcBulkStaffPickerModal.show,
body.wc-bulk-staff-picker-open #wcRosterStaffPickerModal.show {
  display: flex !important;
}

#wcBulkTimesheetModal .modal-dialog.wc-bulk-timesheet-modal__dialog,
#wcRosterAssignModal .modal-dialog.wc-bulk-timesheet-modal__dialog,
#wcBulkStaffPickerModal .modal-dialog.wc-bulk-staff-picker-modal__dialog,
#wcRosterStaffPickerModal .modal-dialog.wc-bulk-staff-picker-modal__dialog {
  display: flex;
  flex-direction: column;
  margin: 0 auto !important;
  width: 100%;
  max-width: 760px;
  max-height: 100%;
  transform: none !important;
  position: relative !important;
  z-index: 1061 !important;
  pointer-events: auto !important;
}

#wcBulkStaffPickerModal .modal-dialog.wc-bulk-staff-picker-modal__dialog,
#wcRosterStaffPickerModal .modal-dialog.wc-bulk-staff-picker-modal__dialog {
  max-width: 920px;
  z-index: 1081 !important;
}

#wcBulkTimesheetModal .wc-confirm-modal__content,
#wcRosterAssignModal .wc-confirm-modal__content,
#wcBulkStaffPickerModal .wc-confirm-modal__content,
#wcRosterStaffPickerModal .wc-confirm-modal__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

#wcBulkTimesheetModal .wc-confirm-modal__header,
#wcRosterAssignModal .wc-confirm-modal__header,
#wcBulkTimesheetModal .wc-confirm-modal__footer,
#wcRosterAssignModal .wc-confirm-modal__footer,
#wcBulkStaffPickerModal .wc-confirm-modal__header,
#wcRosterStaffPickerModal .wc-confirm-modal__header,
#wcBulkStaffPickerModal .wc-confirm-modal__footer,
#wcRosterStaffPickerModal .wc-confirm-modal__footer {
  flex: 0 0 auto;
}

#wcBulkTimesheetModal .wc-bulk-timesheet-modal__body,
#wcRosterAssignModal .wc-bulk-timesheet-modal__body,
#wcBulkStaffPickerModal .wc-bulk-staff-picker-modal__body,
#wcRosterStaffPickerModal .wc-bulk-staff-picker-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
  #wcBulkTimesheetModal.modal,
  #wcBulkStaffPickerModal.modal {
    left: 0 !important;
    padding: 12px 16px !important;
  }
}

/* Payroll confirm modals (period, shift, grid) — same stacking fix as bulk */
body.wc-confirm-modal-stack-open .modal-backdrop.show {
  pointer-events: auto !important;
  opacity: 0.48 !important;
  background-color: #0f172a !important;
  background: #0f172a !important;
  display: block !important;
  z-index: 1040 !important;
}

body.wc-confirm-modal-stack-open #wcPeriodFormModal,
body.wc-confirm-modal-stack-open #wcShiftFormModal,
body.wc-confirm-modal-stack-open #wcTsSlotModal,
body.wc-confirm-modal-stack-open #wcTsAddStaffModal,
body.wc-confirm-modal-stack-open #wcTsRemoveStaffModal,
body.wc-confirm-modal-stack-open #wcTsDeleteSlotModal,
body.wc-confirm-modal-stack-open #wcPeriodFormModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcShiftFormModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcTsSlotModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcTsAddStaffModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcTsRemoveStaffModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcTsDeleteSlotModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcPeriodFormModal .modal-content,
body.wc-confirm-modal-stack-open #wcShiftFormModal .modal-content,
body.wc-confirm-modal-stack-open #wcShiftDeleteModal .modal-content,
body.wc-confirm-modal-stack-open #wcTsSlotModal .modal-content,
body.wc-confirm-modal-stack-open #wcTsAddStaffModal .modal-content,
body.wc-confirm-modal-stack-open #wcTsRemoveStaffModal .modal-content,
body.wc-confirm-modal-stack-open #wcTsDeleteSlotModal .modal-content,
body.wc-confirm-modal-stack-open #wcPeriodFormModal input,
body.wc-confirm-modal-stack-open #wcPeriodFormModal select,
body.wc-confirm-modal-stack-open #wcPeriodFormModal button,
body.wc-confirm-modal-stack-open #wcPeriodFormModal label,
body.wc-confirm-modal-stack-open #wcShiftFormModal input,
body.wc-confirm-modal-stack-open #wcShiftFormModal select,
body.wc-confirm-modal-stack-open #wcShiftFormModal button,
body.wc-confirm-modal-stack-open #wcShiftFormModal label,
body.wc-confirm-modal-stack-open #wcShiftFormModal summary,
body.wc-confirm-modal-stack-open #wcShiftDeleteModal button,
body.wc-confirm-modal-stack-open #wcTsSlotModal input,
body.wc-confirm-modal-stack-open #wcTsSlotModal button,
body.wc-confirm-modal-stack-open #wcTsAddStaffModal input,
body.wc-confirm-modal-stack-open #wcTsAddStaffModal button,
body.wc-confirm-modal-stack-open #wcTsRemoveStaffModal input,
body.wc-confirm-modal-stack-open #wcTsRemoveStaffModal button,
body.wc-confirm-modal-stack-open #wcTsDeleteSlotModal button {
  pointer-events: auto !important;
}

#wcPeriodFormModal,
#wcShiftFormModal,
#wcShiftDeleteModal,
#wcTsSlotModal,
#wcTsAddStaffModal,
#wcTsRemoveStaffModal,
#wcTsDeleteSlotModal,
body.wc-confirm-modal-stack-open #wcPeriodFormModal,
body.wc-confirm-modal-stack-open #wcShiftFormModal,
body.wc-confirm-modal-stack-open #wcShiftDeleteModal,
body.wc-confirm-modal-stack-open #wcTsSlotModal,
body.wc-confirm-modal-stack-open #wcTsAddStaffModal,
body.wc-confirm-modal-stack-open #wcTsRemoveStaffModal,
body.wc-confirm-modal-stack-open #wcTsDeleteSlotModal {
  background: transparent !important;
  background-color: transparent !important;
  z-index: 1060 !important;
}

body.wc-confirm-modal-stack-open #wcPeriodFormModal.show,
body.wc-confirm-modal-stack-open #wcShiftFormModal.show,
body.wc-confirm-modal-stack-open #wcShiftDeleteModal.show,
body.wc-confirm-modal-stack-open #wcTsSlotModal.show,
body.wc-confirm-modal-stack-open #wcTsAddStaffModal.show,
body.wc-confirm-modal-stack-open #wcTsRemoveStaffModal.show,
body.wc-confirm-modal-stack-open #wcTsDeleteSlotModal.show {
  opacity: 1 !important;
}

body.wc-confirm-modal-stack-open #wcPeriodFormModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcShiftFormModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcShiftDeleteModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcTsSlotModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcTsAddStaffModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcTsRemoveStaffModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcTsDeleteSlotModal .modal-dialog {
  z-index: 1061 !important;
  position: relative !important;
}

body.wc-confirm-modal-stack-open #wcShiftFormModal.show {
  overflow: hidden !important;
}

.wc-bulk-timesheet-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.wc-bulk-timesheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
}

.wc-bulk-timesheet-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.wc-bulk-timesheet-field .wc-profile-input,
.wc-bulk-timesheet-field .wc-profile-select {
  width: 100%;
  max-width: none;
  min-width: 0;
}

.wc-bulk-timesheet-field .wc-profile-input:disabled,
.wc-bulk-timesheet-field .wc-profile-select:disabled,
#wcPeriodFormModal input:disabled,
#wcPeriodFormModal select:disabled {
  background-color: #f1f5f9 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
  border-color: #cbd5e1 !important;
  opacity: 0.85 !important;
}

#wcBulkPayPeriodId {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-bulk-timesheet-staff__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.wc-bulk-timesheet-staff__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-confirm-modal .wc-profile-select.wc-profile-select--locked,
.wc-confirm-modal .wc-profile-select:disabled {
  appearance: none;
  -webkit-appearance: none;
  background-image: none !important;
  padding-right: 14px;
  cursor: default;
  pointer-events: none;
  color: #374151;
  background-color: #f3f4f6;
}

.wc-bulk-timesheet-staff__list {
  margin-top: 8px;
  max-height: none;
  overflow: visible;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
  padding: 6px;
}

.wc-bulk-timesheet-staff__pager {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 8px;
}

.wc-bulk-timesheet-staff__pager[hidden] {
  display: none !important;
}

.wc-bulk-timesheet-staff__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  margin: 0;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.35;
}

.wc-bulk-timesheet-staff__item:hover {
  background: rgba(15, 23, 42, 0.04);
}

.wc-bulk-timesheet-staff__item input {
  margin: 0;
  flex: 0 0 auto;
}

.wc-bulk-timesheet-hint {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
}

@media (max-width: 767px) {
  .wc-bulk-timesheet-grid {
    grid-template-columns: 1fr;
  }

  .wc-bulk-timesheet-staff__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

.wc-bulk-timesheet-field--full {
  grid-column: 1 / -1;
}

.wc-bulk-picker-title-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.wc-bulk-header__count {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.wc-bulk-req {
  color: #dc2626;
  font-weight: 700;
}

.wc-bulk-section {
  padding: 0 0 18px;
  border-bottom: 1px solid #eef2f7;
}

.wc-bulk-section:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.wc-bulk-section + .wc-bulk-section {
  padding-top: 2px;
}

.wc-bulk-section__head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wc-bulk-section__title {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--fw-on-surface, #0b1c30);
}

.wc-bulk-section__hint {
  margin-left: auto;
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
}

.wc-bulk-section__count {
  margin-left: auto;
  font-size: 13px;
  color: #64748b;
}

.wc-bulk-section__count strong {
  color: var(--fw-on-surface, #111827);
  font-weight: 700;
}

.wc-bulk-field-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-bulk-chips {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
}

.wc-bulk-chip {
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  background: #fff;
  color: #6b7280;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
}

.wc-bulk-chip:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.wc-bulk-chip--active {
  border-color: var(--fw-primary, #00288e);
  background: #eff6ff;
  color: var(--fw-primary, #00288e);
  font-weight: 600;
}

.wc-bulk-combo {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wc-bulk-combo .wc-profile-select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-bulk-date-range,
.wc-bulk-time-range {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

.wc-bulk-date-range .wc-profile-input,
.wc-bulk-time-range .wc-profile-input {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
  max-width: 100%;
}

.wc-bulk-date-range__sep,
.wc-bulk-time-range__sep {
  color: #94a3b8;
  font-weight: 600;
  flex: 0 0 auto;
}

.wc-bulk-input-unit {
  position: relative;
}

.wc-bulk-input-unit .wc-profile-input {
  padding-right: 48px;
}

.wc-bulk-input-unit__label {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 13px;
  pointer-events: none;
}

.wc-bulk-ot {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e5e7eb;
}

.wc-bulk-ot__toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.wc-bulk-ot__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 12px;
  font-weight: 500;
}

.wc-bulk-ot__fields {
  margin-top: 12px;
}

.wc-bulk-timesheet-grid--3 {
  grid-template-columns: minmax(0, 0.95fr) minmax(110px, 0.55fr) minmax(0, 1.6fr);
}

.wc-bulk-timesheet-grid--3 .wc-bulk-timesheet-field {
  min-width: 0;
}

.wc-bulk-scope {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-bulk-scope .wc-profile-select {
  flex: 1 1 140px;
  min-width: 140px;
  max-width: 220px;
}

.wc-bulk-scope .wc-employees-tool-btn {
  flex: 0 0 auto;
}

.wc-bulk-scope .wc-employees-tool-btn .wc-bulk-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
  font-size: 11px;
  font-weight: 600;
}

.wc-bulk-scope + .wc-confirm-modal__checkbox {
  margin-top: 12px;
}

.wc-bulk-footer {
  justify-content: space-between;
  gap: 16px;
}

.wc-bulk-footer__status {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.wc-bulk-footer__status--ready {
  color: #15803d;
}

.wc-bulk-footer__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  margin-left: auto;
}

.wc-bulk-timesheet-modal #wcBulkTimesheetSubmit:disabled,
.wc-bulk-staff-picker-modal #wcBulkPickerApply:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wc-bulk-picker-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr) minmax(180px, 0.9fr);
  gap: 10px;
  margin-bottom: 12px;
}

.wc-bulk-picker-bulkrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.wc-bulk-picker-bulkrow__right {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
}

.wc-bulk-link {
  border: 0;
  background: none;
  padding: 0;
  color: #2563eb;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.wc-bulk-link:hover {
  text-decoration: underline;
}

.wc-bulk-picker-filter-status {
  padding-left: 12px;
  border-left: 1px solid #e5e7eb;
}

.wc-bulk-picker-table-wrap {
  overflow: auto;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
}

.wc-bulk-picker-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.wc-bulk-picker-table th,
.wc-bulk-picker-table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.wc-bulk-picker-table th {
  background: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wc-bulk-picker-table tbody tr:hover {
  background: #f8fafc;
}

.wc-bulk-picker-table__check {
  width: 36px;
}

.wc-bulk-picker-employee {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wc-bulk-picker-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}

.wc-bulk-picker-employee__name {
  display: block;
  font-weight: 700;
  color: #0f172a;
}

.wc-bulk-picker-employee__meta {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.wc-bulk-dept-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.wc-bulk-picker-footer {
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.wc-bulk-picker-pager {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #64748b;
  font-size: 13px;
  flex-wrap: wrap;
}

.wc-bulk-picker-pager__size select {
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 8px;
  background: #fff;
}

.wc-bulk-picker-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wc-bulk-page-btn {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}

.wc-bulk-page-btn:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.wc-bulk-page-btn--active {
  border-color: var(--fw-outline-variant, #d1d5db);
  background: #f3f4f6;
  color: var(--fw-on-surface, #111827);
  font-weight: 600;
}

.wc-bulk-page-btn:disabled {
  opacity: 0.45;
  cursor: default;
}

@media (max-width: 767px) {
  .wc-bulk-timesheet-grid--3,
  .wc-bulk-picker-toolbar {
    grid-template-columns: 1fr;
  }

  .wc-bulk-scope .wc-profile-select {
    max-width: none;
    flex: 1 1 100%;
  }

  .wc-bulk-date-range,
  .wc-bulk-time-range {
    flex-wrap: wrap;
  }

  .wc-bulk-footer,
  .wc-bulk-picker-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .wc-bulk-footer__actions {
    justify-content: flex-end;
  }
}

/* Timesheet detail grid (MISA-like) */
.wc-employees-page--timesheet-detail {
  margin-top: calc(-1 * var(--fw-container-margin, 32px));
  margin-left: calc(-1 * var(--fw-container-margin, 32px));
  margin-right: calc(-1 * var(--fw-container-margin, 32px));
  width: calc(100% + 2 * var(--fw-container-margin, 32px));
  max-width: none;
  padding: 14px 16px 32px;
  box-sizing: border-box;
  background-color: var(--tblr-body-bg, #f8fafc);
}

.wc-employees-page--timesheet-detail .wc-ts-detail-panel {
  overflow: hidden;
  border-radius: 0;
  border: 1px solid var(--tblr-border-color, #e6e8eb);
}

.wc-employees-page--timesheet-detail .wc-ts-detail-header {
  padding: 12px 20px 6px;
  margin-bottom: 8px;
}

.wc-employees-page--timesheet-detail .wc-ts-detail-toolbar {
  margin-bottom: 0;
  border-bottom: none;
  padding: 10px 20px;
}

.wc-employees-page--timesheet-detail .wc-ts-grid-chrome {
  padding: 8px 20px;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid-wrap {
  padding-left: 0;
  padding-right: 0;
  padding-bottom: 0;
}

.wc-employees-page--timesheet-detail .wc-ts-pager {
  padding: 10px 20px 12px;
}

.wc-employees-page--timesheet-detail .wc-ts-detail-toolbar__left {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wc-employees-page--timesheet-detail .wc-ts-detail-toolbar__hint {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.wc-employees-page--timesheet-detail .wc-ts-detail-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wc-employees-page--timesheet-detail .wc-employees-search--open .wc-employees-search__expanded {
  display: flex;
}

.wc-employees-page--timesheet-detail .wc-ts-search-form .wc-employees-search__expanded {
  display: flex;
}

.wc-timesheet-grid-wrap {
  overflow: auto;
  border-top: 1px solid var(--fw-outline-variant, #e5e7eb);
  background: #fff;
  max-height: calc(100vh - 420px);
}

.wc-timesheet-grid {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.wc-timesheet-grid thead th {
  position: sticky;
  top: 0;
  z-index: 4;
  padding: 10px 8px;
  border-bottom: 1px solid #e5e7eb;
  border-right: 1px solid #f3f4f6;
  background: #f9fafb;
  color: #6b7280;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  white-space: nowrap;
  vertical-align: bottom;
}

.wc-timesheet-grid tbody td {
  border-bottom: 1px solid #f3f4f6;
  border-right: 1px solid #f8fafc;
  padding: 8px;
  text-align: center;
  white-space: nowrap;
  background: #fff;
  vertical-align: middle;
}

.wc-ts-row:hover td {
  background: #fafbfc;
}

.wc-ts-row--alt td {
  background: #fcfdfe;
}

.wc-ts-row--alt:hover td {
  background: #f8fafc;
}

.wc-ts-sticky-col {
  position: sticky;
  z-index: 3;
  text-align: left;
  background: #fff;
  box-shadow: 1px 0 0 rgba(15, 23, 42, 0.04);
}

.wc-timesheet-grid thead .wc-ts-sticky-col {
  z-index: 5;
  background: #f9fafb;
}

.wc-ts-row--alt .wc-ts-sticky-col {
  background: #fcfdfe;
}

.wc-ts-row:hover .wc-ts-sticky-col {
  background: #fafbfc;
}

.wc-ts-sticky-col--check {
  left: 0;
  width: 44px;
  min-width: 44px;
  text-align: center;
}

.wc-ts-sticky-col--name {
  left: 44px;
  min-width: var(--wc-ts-name-col-width, 240px);
  width: var(--wc-ts-name-col-width, 240px);
  max-width: var(--wc-ts-name-col-width, 240px);
}

.wc-ts-sticky-col--unit {
  display: none;
}

.wc-ts-sticky-col--total {
  left: calc(44px + var(--wc-ts-name-col-width, 240px));
  min-width: 80px;
  text-align: center;
  font-weight: 700;
}

.wc-ts-total-value {
  display: inline-block;
  padding: 2px 8px;
  background: #f0fdf4;
  color: #15803d;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.wc-ts-day-col {
  min-width: 108px;
}

.wc-timesheet-grid--compact .wc-ts-day-col {
  min-width: 56px;
}

.wc-ts-day-col--weekend {
  background: #f8fafc !important;
}

.wc-ts-day-head__dow {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #9ca3af;
  line-height: 1.2;
}

.wc-ts-day-head__dow--weekend {
  color: #f97316;
}

.wc-ts-day-head__date {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
  line-height: 1.2;
}

.wc-ts-employee {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.wc-ts-employee__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #dbeafe, #eff6ff);
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}

.wc-ts-employee__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
}

.wc-ts-employee__name {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-ts-employee__role {
  font-size: 12px;
  color: #6b7280;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-ts-employee__dept {
  font-size: 11px;
  font-style: italic;
  color: #6b7280;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-ts-unit {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #4b5563;
  font-size: 13px;
}

.wc-ts-cell {
  position: relative;
  cursor: default;
  isolation: isolate;
  transition: box-shadow 0.12s ease;
}

.wc-ts-cell:not(.wc-ts-cell--locked):hover {
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.18);
}

.wc-ts-cell--locked {
  cursor: pointer;
  opacity: 0.92;
}

.wc-ts-cell__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.42);
  opacity: 0;
  visibility: visible;
  pointer-events: none;
  z-index: 20;
  transition: opacity 0.12s ease;
}

.wc-ts-cell:not(.wc-ts-cell--locked) .wc-ts-cell__overlay {
  pointer-events: auto;
}

.wc-ts-cell:not(.wc-ts-cell--locked):hover .wc-ts-cell__overlay {
  opacity: 1;
}

.wc-ts-cell--empty:not(.wc-ts-cell--locked):hover .wc-ts-slot.wc-ts-slot--off {
  background: #fff;
  border: 1px solid #e5e7eb;
}

.wc-ts-cell-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #fff;
  color: #1f2937;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.22);
  cursor: pointer;
  line-height: 1;
  pointer-events: auto;
  position: relative;
  z-index: 7;
  transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.wc-ts-cell-action i {
  font-size: 14px;
  line-height: 1;
}

.wc-ts-cell-action--add {
  width: 30px;
  height: 30px;
  color: #2563eb;
}

.wc-ts-cell-action--edit:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.wc-ts-cell-action--delete {
  color: #dc2626;
}

.wc-ts-cell-action--delete:hover {
  background: #fef2f2;
  color: #b91c1c;
}

.wc-ts-cell-action:focus,
.wc-ts-cell-action:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.28);
}

.wc-ts-cell-action--add:hover {
  background: #eff6ff;
}

.wc-timesheet-grid--compact .wc-ts-cell__overlay {
  gap: 4px;
}

.wc-timesheet-grid--compact .wc-ts-cell-action {
  width: 24px;
  height: 24px;
}

.wc-timesheet-grid--compact .wc-ts-cell-action--add {
  width: 26px;
  height: 26px;
}

.wc-ts-cell__stack,
.wc-ts-cell__inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  min-height: 42px;
  justify-content: center;
}

.wc-ts-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  min-height: 40px;
  justify-content: center;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.wc-ts-slot.wc-ts-cell--full {
  border-left: 3px solid #22c55e;
  background: #fff;
}

.wc-ts-slot.wc-ts-cell--half {
  border-left: 3px solid #eab308;
  background: #fefce8;
}

.wc-ts-slot.wc-ts-cell--has-leave {
  border-left: 3px solid #0284c7;
  background: #f0f9ff;
}

.wc-ts-slot.wc-ts-cell--off,
.wc-ts-slot.wc-ts-slot--off {
  border: none;
  background: transparent;
}

.wc-ts-slot.wc-ts-cell--leave {
  border-left: 3px solid #3b82f6;
  background: #eff6ff;
}

.wc-ts-slot.wc-ts-cell--has-leave-unpaid {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.wc-ts-slot.wc-ts-cell--leave-unpaid {
  border-left: 3px solid #f59e0b;
  background: #fffbeb;
}

.wc-ts-slot.wc-ts-cell--absent {
  border-left: 3px solid #dc2626;
  background: #fef2f2;
}

.wc-ts-slot.wc-ts-cell--future {
  border: none;
  background: transparent;
}

.wc-ts-slot.wc-ts-cell--business-trip {
  border-left: 3px solid #0d9488;
  background: #f0fdfa;
}

.wc-ts-slot.wc-ts-cell--ot {
  border-left: 3px solid #2563eb;
  background: #eff6ff;
}

.wc-ts-slot.wc-ts-cell--holiday {
  border-left: 3px solid #a855f7;
  background: #faf5ff;
}

.wc-ts-slot__top {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.wc-ts-cell__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 22px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.wc-ts-cell__shift {
  display: inline-block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
}

.wc-ts-cell__time {
  display: block;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
}

.wc-ts-cell__off-label {
  color: #94a3b8;
  font-size: 12px;
  font-weight: 600;
}

.wc-ts-cell--absent .wc-ts-cell__off-label,
.wc-ts-slot.wc-ts-cell--absent .wc-ts-cell__off-label,
.wc-ts-cell--absent .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--absent .wc-ts-cell__value {
  color: #dc2626;
}

.wc-ts-cell--leave .wc-ts-cell__off-label,
.wc-ts-slot.wc-ts-cell--leave .wc-ts-cell__off-label {
  color: #1d4ed8;
}

.wc-ts-cell--holiday .wc-ts-cell__off-label,
.wc-ts-slot.wc-ts-cell--holiday .wc-ts-cell__off-label {
  color: #7e22ce;
}

.wc-ts-cell--holiday .wc-ts-cell__shift,
.wc-ts-slot.wc-ts-cell--holiday .wc-ts-cell__shift,
.wc-ts-cell__shift.wc-ts-cell__shift--holiday {
  color: #7e22ce;
  font-weight: 800;
}

.wc-ts-cell--leave-unpaid .wc-ts-cell__off-label,
.wc-ts-slot.wc-ts-cell--leave-unpaid .wc-ts-cell__off-label,
.wc-ts-cell--leave-unpaid .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--leave-unpaid .wc-ts-cell__value,
.wc-ts-cell--has-leave-unpaid .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--has-leave-unpaid .wc-ts-cell__value {
  color: #d97706;
}

.wc-ts-cell--future .wc-ts-cell__off-label,
.wc-ts-slot.wc-ts-cell--future .wc-ts-cell__off-label,
.wc-ts-cell--future .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--future .wc-ts-cell__value {
  color: #94a3b8;
}

.wc-ts-cell--full .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--full .wc-ts-cell__value {
  color: #15803d;
}

.wc-ts-cell--half .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--half .wc-ts-cell__value {
  color: #a16207;
}

.wc-ts-cell--off .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--off .wc-ts-cell__value {
  color: #94a3b8;
}

.wc-ts-cell--leave .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--leave .wc-ts-cell__value {
  color: #1d4ed8;
}

.wc-ts-cell--business-trip .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--business-trip .wc-ts-cell__value {
  color: #0f766e;
}

.wc-ts-cell--ot .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--ot .wc-ts-cell__value {
  color: #1d4ed8;
}

.wc-ts-cell--holiday .wc-ts-cell__value,
.wc-ts-slot.wc-ts-cell--holiday .wc-ts-cell__value {
  color: #7e22ce;
}

.wc-ts-cell--full,
.wc-ts-cell--half,
.wc-ts-cell--off,
.wc-ts-cell--leave,
.wc-ts-cell--leave-unpaid,
.wc-ts-cell--absent,
.wc-ts-cell--future,
.wc-ts-cell--business-trip,
.wc-ts-cell--holiday,
.wc-ts-cell--ot {
  background: transparent !important;
  color: inherit;
}

.wc-ts-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex-shrink: 0;
}

.wc-ts-dot--full {
  background: #22c55e;
}

.wc-ts-dot--half {
  background: #eab308;
}

.wc-ts-time--red {
  color: #dc2626;
  font-weight: 700;
}

.wc-ts-hover-popup {
  position: fixed;
  z-index: 1080;
  display: none;
  min-width: 240px;
  max-width: 340px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #0f172a;
  color: #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.38);
  pointer-events: none !important;
  font-size: 13px;
  line-height: 1.45;
}

.wc-ts-hover-popup,
.wc-ts-hover-popup.is-visible,
.wc-ts-hover-popup * {
  pointer-events: none !important;
}

.wc-ts-hover-popup.is-visible {
  display: block;
}

.wc-ts-hover-popup__head {
  color: #f8fafc;
  font-weight: 600;
  margin-bottom: 6px;
}

.wc-ts-hover-popup__status {
  color: #f87171;
  font-weight: 700;
  margin-bottom: 4px;
}

.wc-ts-hover-popup__status--half {
  color: #facc15;
}

.wc-ts-hover-popup__status--ot {
  color: #93c5fd;
}

.wc-ts-hover-popup__times {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #e5e7eb;
  font-weight: 500;
}

.wc-ts-hover-popup__times .is-late {
  color: #f87171;
  font-weight: 700;
}

.wc-ts-hover-popup__note {
  margin-top: 6px;
  color: #facc15;
  font-style: italic;
}

.wc-ts-flag {
  display: inline-block;
  padding: 1px 5px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  line-height: 1.4;
}

.wc-ts-flag--ot,
.wc-ts-ot {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.wc-ts-actions-col,
.wc-ts-actions {
  min-width: 64px;
  background: #f8fafc !important;
}

.wc-ts-row-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  cursor: pointer;
}

.wc-ts-row-view:hover {
  background: #eef2ff;
  color: #2563eb;
}

.wc-ts-empty {
  padding: 48px 16px !important;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
  vertical-align: middle;
}

.wc-ts-empty__msg {
  display: inline-block;
  max-width: min(640px, calc(100vw - 80px));
  line-height: 1.5;
  white-space: normal;
}

.wc-ts-detail-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  margin-bottom: 12px;
}

.wc-ts-period-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  min-width: 0;
}

.wc-ts-period-bar__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #374151;
  font-size: 13px;
}

.wc-ts-period-bar__item i {
  color: #2563eb;
}

.wc-ts-kpi {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 0;
  margin-left: auto;
}

.wc-ts-kpi__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
}

.wc-ts-kpi__label {
  font-size: 12px;
  font-weight: 600;
}

.wc-ts-kpi__value {
  font-size: 13px;
  font-weight: 700;
}

.wc-ts-kpi__chip--ok {
  background: rgba(34, 197, 94, 0.12);
  color: #15803d;
}

.wc-ts-kpi__chip--late {
  background: rgba(249, 115, 22, 0.12);
  color: #c2410c;
}

.wc-ts-kpi__chip--ot {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.wc-ts-kpi__chip--off {
  background: rgba(148, 163, 184, 0.16);
  color: #475569;
}

.wc-ts-breadcrumb {
  font-size: 13px;
  color: rgba(15, 23, 42, 0.65);
}

.wc-ts-breadcrumb a {
  color: #2563eb;
}

.wc-ts-breadcrumb__sep {
  margin: 0 6px;
}

.wc-ts-detail-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.wc-ts-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.wc-ts-meta-chip--locked {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
}

.wc-ts-meta-chip--open {
  background: rgba(34, 197, 94, 0.1);
  color: #15803d;
}

.wc-ts-detail-toolbar {
  margin-bottom: 8px;
}

.wc-ts-search-form {
  min-width: 240px;
}

.wc-ts-filter-select {
  height: 36px;
  min-width: 160px;
  padding: 0 10px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-size: 13px;
}

.wc-ts-grid-chrome {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  padding: 8px 16px 12px;
}

.wc-ts-grid-hint {
  margin: 0;
  color: #9ca3af;
  font-size: 12px;
}

.wc-ts-view-toggle {
  display: inline-flex;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  margin-left: auto;
}

.wc-ts-view-toggle__btn {
  border: 0;
  background: #fff;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  cursor: pointer;
}

.wc-ts-view-toggle__btn--active {
  background: #2563eb;
  color: #fff;
}

.wc-ts-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 12px;
  color: #6b7280;
}

.wc-ts-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.wc-ts-legend__item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.wc-ts-legend__item--full::before {
  background: #22c55e;
}

.wc-ts-legend__item--half::before {
  background: #eab308;
}

.wc-ts-legend__item--late::before {
  background: #dc2626;
}

.wc-ts-legend__item--off::before {
  background: #94a3b8;
}

.wc-ts-legend__item--absent::before {
  background: #dc2626;
}

.wc-ts-legend__item--leave::before {
  background: #3b82f6;
}

.wc-ts-legend__item--leave-unpaid::before {
  background: #f59e0b;
}

.wc-ts-legend__item--future::before {
  background: #cbd5e1;
}

.wc-ts-legend-shift {
  display: inline-flex;
  gap: 6px;
}

.wc-ts-legend-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
}

.wc-ts-pager {
  align-items: center;
}

.wc-ts-pager__size {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #6b7280;
  font-size: 13px;
}

.wc-ts-pager__size select {
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 8px;
}

.wc-ts-pager__info {
  color: #6b7280;
  font-size: 13px;
  margin-right: 8px;
}

.wc-ts-pager__btn {
  width: 32px;
  height: 32px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  cursor: pointer;
}

.wc-ts-pager__btn:disabled {
  opacity: 0.4;
  cursor: default;
}

.wc-ts-search {
  max-width: 280px;
}

@media (max-width: 991px) {
  .wc-employees-page--timesheet-detail .wc-ts-detail-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .wc-employees-page--timesheet-detail .wc-ts-sticky-col--name {
    min-width: var(--wc-ts-name-col-width, 200px);
    width: var(--wc-ts-name-col-width, 200px);
    max-width: var(--wc-ts-name-col-width, 200px);
  }

  .wc-employees-page--timesheet-detail .wc-ts-sticky-col--unit {
    display: none;
  }

  .wc-employees-page--timesheet-detail .wc-ts-sticky-col--total {
    left: calc(44px + var(--wc-ts-name-col-width, 200px));
    min-width: 72px;
  }
}

.wc-ts-period-actions {
  white-space: nowrap;
}

.wc-shift-filter,
.wc-shift-search {
  max-width: 220px;
}

#wcShiftFormModal.modal {
  top: var(--fw-header-h, 64px) !important;
  left: var(--fw-sidebar-w, 280px) !important;
  right: 0 !important;
  bottom: 0 !important;
  width: auto !important;
  height: auto !important;
  padding: 24px 32px !important;
  align-items: center;
  justify-content: center;
  overflow: hidden !important;
}

#wcShiftFormModal.show,
body.wc-confirm-modal-stack-open #wcShiftFormModal.show {
  display: flex !important;
}

#wcShiftFormModal .modal-dialog.wc-confirm-modal__dialog {
  display: flex;
  flex-direction: column;
  margin: 0 auto !important;
  width: 100%;
  max-width: 920px;
  max-height: 100%;
  transform: none !important;
}

#wcShiftFormModal .wc-confirm-modal__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: 100%;
  overflow: hidden;
}

#wcShiftFormModal .wc-confirm-modal__header,
#wcShiftFormModal .wc-confirm-modal__footer {
  flex: 0 0 auto;
}

#wcShiftFormModal .wc-confirm-modal__body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: min(58vh, 520px) !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
  #wcShiftFormModal.modal {
    left: 0 !important;
    padding: 16px !important;
  }

  #wcShiftFormModal .wc-confirm-modal__body {
    max-height: min(52vh, 420px) !important;
  }
}

.wc-ws-accordion {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
}

.wc-ws-accordion summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 8px;
}

/* Timesheet rules — Quy định chấm công */
.wc-employees-page--timesheet-rules {
  padding-top: 4px;
}

.wc-employees-page--timesheet-rules .wc-ws-intro {
  margin: 0 0 18px;
  font-size: 13px;
  line-height: 20px;
  color: #6b7280;
}

.wc-employees-page--timesheet-rules .wc-ws-pane[hidden] {
  display: none !important;
}

.wc-employees-page--timesheet-rules .wc-ws-page-tabs {
  display: flex;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid #e5e7eb;
}

.wc-employees-page--timesheet-rules .wc-ws-page-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 16px 0 0;
  padding: 10px 2px 12px;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
}

.wc-employees-page--timesheet-rules .wc-ws-page-tab .material-symbols-outlined {
  font-size: 18px;
}

.wc-employees-page--timesheet-rules .wc-ws-page-tab--active {
  color: #1d4ed8;
  border-bottom-color: #2563eb;
}

.wc-employees-page--timesheet-rules .wc-ws-page-tab__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
}

.wc-employees-page--timesheet-rules .wc-employees-panel {
  margin-bottom: 0;
}

.wc-employees-page--timesheet-rules .wc-employees-toolbar {
  align-items: flex-start;
}

.wc-employees-page--timesheet-rules .wc-tr-panel-heading {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wc-employees-page--timesheet-rules .wc-tr-panel-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  color: #101828;
}

.wc-employees-page--timesheet-rules .wc-tr-panel-subtitle {
  margin: 0;
  font-size: 12px;
  line-height: 18px;
  color: #6b7280;
}

.wc-employees-page--timesheet-rules .wc-employees-table tbody td {
  vertical-align: middle;
}

.wc-employees-page--timesheet-rules .wc-tr-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.wc-employees-page--timesheet-rules .wc-tr-name strong {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.wc-employees-page--timesheet-rules .wc-tr-code {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wc-employees-page--timesheet-rules .wc-tr-rate {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 600;
}

.wc-employees-page--timesheet-rules .wc-tr-paid {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
}

.wc-employees-page--timesheet-rules .wc-tr-paid__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
}

.wc-employees-page--timesheet-rules .wc-tr-paid__dot--yes {
  background: #22c55e;
}

.wc-employees-page--timesheet-rules .wc-tr-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.wc-employees-page--timesheet-rules .wc-tr-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  cursor: pointer;
}

.wc-employees-page--timesheet-rules .wc-tr-icon-btn:hover {
  background: #f3f4f6;
  color: #111827;
}

.wc-employees-page--timesheet-rules .wc-tr-icon-btn--edit {
  color: #2563eb;
}

.wc-employees-page--timesheet-rules .wc-tr-icon-btn--edit:hover {
  background: #eff6ff;
  color: #1d4ed8;
}

.wc-employees-page--timesheet-rules .wc-tr-icon-btn--delete {
  color: #e11d48;
}

.wc-employees-page--timesheet-rules .wc-tr-icon-btn--delete:hover {
  background: #fef2f2;
}

.wc-employees-page--timesheet-rules .wc-tr-icon-btn .material-symbols-outlined {
  font-size: 18px;
}

.wc-employees-page--timesheet-rules .wc-tr-empty {
  padding: 28px 16px;
  color: #6b7280;
}

@media (max-width: 767px) {
  .wc-employees-page--timesheet-rules .wc-employees-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .wc-employees-page--timesheet-rules .wc-employees-toolbar__left,
  .wc-employees-page--timesheet-rules .wc-employees-toolbar__right {
    width: 100%;
  }

  .wc-employees-page--timesheet-rules .wc-employees-toolbar__right .wc-employees-btn-primary {
    width: 100%;
    justify-content: center;
  }
}

.wc-profile-section__title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wc-confirm-modal__body--table {
  padding: 0;
}

.wc-confirm-modal__table-wrap {
  padding: 0 16px 12px;
  max-height: min(60vh, 420px);
  overflow: auto;
}

.wc-confirm-modal__table-wrap .wc-employees-table {
  margin-bottom: 0 !important;
}

.wc-confirm-modal__table-wrap .dataTables_scrollBody thead {
  display: none;
}

.wc-confirm-modal__table-wrap .wc-employees-table thead tr:first-child th {
  border-bottom: none !important;
  padding-bottom: 6px !important;
}

.wc-confirm-modal__table-wrap .wc-employees-table thead tr:nth-child(2) th {
  padding-top: 4px !important;
  border-top: none !important;
}

.wc-confirm-modal__table-wrap .wc-employees-table thead tr:last-child th {
  border-bottom: 1px solid var(--fw-outline-variant, #e5e7eb) !important;
}

.wc-confirm-modal__table-wrap .dataTables_scrollHead .wc-employees-table thead tr:first-child th {
  border-bottom: none !important;
}

.wc-confirm-modal__table-wrap .dataTables_scrollHead .wc-employees-table thead tr:nth-child(2) th {
  border-top: none !important;
}

.wc-confirm-modal__content {
  border: none;
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.wc-confirm-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--fw-outline-variant, #e5e7eb);
}

.wc-confirm-modal__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fw-on-surface, #0b1c30);
}

.wc-confirm-modal__title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.wc-policy-help-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--fw-primary, #00288e);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}

.wc-policy-help-btn .material-symbols-outlined {
  font-size: 18px;
}

.wc-policy-help-btn:hover,
.wc-policy-help-btn.is-active {
  background: var(--fw-primary, #00288e);
  color: #fff;
}

.wc-policy-help-modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wc-policy-help-card {
  padding: 16px;
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 12px;
  background: #f8fafc;
}

.wc-policy-help-card__title {
  margin: 0 0 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0b1c30;
}

.wc-policy-help-card__text {
  margin: 0 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #526071;
}

.wc-policy-help-formula {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.wc-policy-help-formula > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.wc-policy-help-formula > div > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e8eef8;
  color: var(--fw-primary, #00288e);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.wc-policy-help-formula code,
.wc-policy-help-example code {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #0b1c30;
  font-size: 12px;
  line-height: 1.45;
  white-space: normal;
  word-break: break-word;
}

.wc-policy-help-example {
  padding: 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px dashed #cbd5e1;
}

.wc-policy-help-example h6 {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  color: #0b1c30;
}

.wc-policy-help-example ul {
  margin: 0;
  padding-left: 18px;
  color: #526071;
  font-size: 13px;
  line-height: 1.55;
}

.wc-policy-help-example li + li {
  margin-top: 6px;
}

.wc-policy-help-example code {
  display: inline;
  padding: 1px 6px;
  border: none;
  background: #eef2ff;
}

#wcPolicyFormModal.modal,
#wcPolicyHelpModal.modal {
  align-items: center;
  justify-content: center;
  padding: 16px !important;
  overflow: hidden !important;
}

#wcPolicyFormModal.show,
#wcPolicyHelpModal.show,
body.wc-confirm-modal-stack-open #wcPolicyFormModal.show {
  display: flex !important;
}

#wcPolicyFormModal .modal-dialog.wc-confirm-modal__dialog,
#wcPolicyHelpModal .modal-dialog.wc-confirm-modal__dialog {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin: 0 auto !important;
  max-height: calc(100vh - 32px);
  transform: none !important;
}

#wcPolicyFormModal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 920px;
}

#wcPolicyHelpModal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 720px;
}

#wcPolicyFormModal .wc-confirm-modal__content,
#wcPolicyHelpModal .wc-confirm-modal__content {
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-height: calc(100vh - 32px);
  overflow: hidden;
}

#wcPolicyFormModal .wc-confirm-modal__header,
#wcPolicyFormModal .wc-confirm-modal__footer,
#wcPolicyHelpModal .wc-confirm-modal__header,
#wcPolicyHelpModal .wc-confirm-modal__footer {
  flex: 0 0 auto;
}

#wcPolicyFormModal .wc-confirm-modal__body,
#wcPolicyHelpModal .wc-confirm-modal__body,
#wcPolicyHelpModal .wc-policy-help-modal-body {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 991px) {
  #wcPolicyFormModal.modal,
  #wcPolicyHelpModal.modal {
    padding: 12px !important;
  }

  #wcPolicyFormModal .modal-dialog.wc-confirm-modal__dialog,
  #wcPolicyHelpModal .modal-dialog.wc-confirm-modal__dialog,
  #wcPolicyFormModal .wc-confirm-modal__content,
  #wcPolicyHelpModal .wc-confirm-modal__content {
    max-height: calc(100vh - 24px);
  }
}

body.wc-confirm-modal-stack-open #wcPolicyHelpModal,
body.wc-confirm-modal-stack-open #wcPolicyHelpModal .modal-dialog,
body.wc-confirm-modal-stack-open #wcPolicyHelpModal .modal-content {
  pointer-events: auto !important;
}

.wc-policy-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wc-policy-form-block {
  padding: 14px 16px 16px;
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 12px;
  background: #f8fafc;
}

.wc-policy-form-block__header {
  margin-bottom: 12px;
}

.wc-policy-form-block__title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 700;
  color: #0b1c30;
}

.wc-policy-form-block__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: #526071;
}

.wc-policy-form-block .wc-bulk-timesheet-grid {
  margin: 0;
}

.wc-policy-table-wrap {
  overflow-x: auto;
}

.wc-policy-table thead th {
  vertical-align: middle !important;
  text-align: center;
}

.wc-policy-table__sticky-col,
.wc-policy-table__actions-col {
  text-align: left !important;
}

.wc-policy-table__group-row th {
  border-bottom: 1px solid #e5e7eb !important;
}

.wc-policy-table__group {
  font-size: 12px !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wc-policy-table__group--kpi,
.wc-policy-table__sub--kpi,
.wc-policy-table__cell--kpi {
  background: #f0f7ff !important;
}

.wc-policy-table__group--commission,
.wc-policy-table__sub--commission,
.wc-policy-table__cell--commission {
  background: #f3faf6 !important;
}

.wc-policy-table__group--kpi {
  color: #1d4ed8 !important;
}

.wc-policy-table__group--commission {
  color: #15803d !important;
}

.wc-policy-table__sub {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  white-space: nowrap;
}

.wc-policy-table tbody td {
  text-align: center;
  vertical-align: middle !important;
}

.wc-policy-table tbody td.wc-policy-table__sticky-col,
.wc-policy-table tbody td.wc-policy-table__actions-col,
.wc-policy-table tbody td.wc-policy-table__tiers {
  text-align: left;
}

.wc-policy-table__position {
  font-weight: 600;
  color: #111827;
}

.wc-policy-table__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wc-policy-tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 16px;
  background: #f3f4f6;
  color: #6b7280;
}

.wc-policy-tag--kpi {
  background: #dbeafe;
  color: #1d4ed8;
}

.wc-policy-tag--commission {
  background: #dcfce7;
  color: #15803d;
}

.wc-policy-table__tiers {
  max-width: 280px;
  font-size: 13px;
  color: #374151;
  word-break: break-word;
}

.wc-policy-table tbody tr:hover .wc-policy-table__cell--kpi {
  background: #e4effc !important;
}

.wc-policy-table tbody tr:hover .wc-policy-table__cell--commission {
  background: #e7f6ed !important;
}

.wc-policy-tiers {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wc-policy-tiers__toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.wc-policy-tiers__toolbar .wc-employees-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.wc-policy-tiers__toolbar .material-symbols-outlined {
  font-size: 18px;
}

.wc-policy-tiers__hint {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 16px;
  color: #6b7280;
}

.wc-policy-tiers__head,
.wc-policy-tier-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 40px;
  gap: 10px;
  align-items: center;
}

.wc-policy-tiers__head {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
}

.wc-policy-tiers__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wc-policy-tier-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid #fecaca;
  border-radius: 10px;
  background: #fff1f2;
  color: #dc2626;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.wc-policy-tier-remove .material-symbols-outlined {
  font-size: 20px;
}

.wc-policy-tier-remove:hover {
  background: #fee2e2;
  border-color: #f87171;
}

.wc-policy-tiers__empty {
  margin: 0;
  padding: 14px 16px;
  border: 1px dashed #d1d5db;
  border-radius: 10px;
  background: #f9fafb;
  color: #6b7280;
  font-size: 13px;
  line-height: 18px;
}

.wc-confirm-modal__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9ca3af;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.wc-confirm-modal__close:hover {
  background: #f3f4f6;
  color: #6b7280;
}

.wc-confirm-modal__body {
  padding: 20px 24px;
  border-bottom: 1px solid var(--fw-outline-variant, #e5e7eb);
}

.wc-confirm-modal__message {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #6b7280;
}

.wc-confirm-modal__message strong {
  color: var(--fw-on-surface, #111827);
  font-weight: 700;
}

.wc-confirm-modal__footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px 20px;
}

.wc-confirm-modal__btn {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

.wc-confirm-modal__btn--cancel {
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  background: #fff;
  color: #6b7280;
}

.wc-confirm-modal__btn--cancel:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #374151;
}

.wc-confirm-modal__btn--primary {
  border: 1px solid #dc2626;
  background: #dc2626;
  color: #fff;
}

.wc-confirm-modal__btn--primary:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  color: #fff;
}

.wc-confirm-modal__btn:focus,
.wc-confirm-modal__btn:active,
.wc-confirm-modal__btn:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

body.wc-invite-modal-open .modal-backdrop {
  pointer-events: auto !important;
  opacity: 0.48 !important;
  background: rgba(15, 23, 42, 0.48) !important;
  display: block !important;
  z-index: 1040 !important;
}

body.wc-invite-modal-open #jsModalConfirmInvite,
body.wc-invite-modal-open #jsModalCheckInviteAll,
body.wc-invite-modal-open #jsModalListStaffInvite,
body.wc-invite-modal-open #jsModalConfirmInvite .modal-dialog,
body.wc-invite-modal-open #jsModalCheckInviteAll .modal-dialog,
body.wc-invite-modal-open #jsModalListStaffInvite .modal-dialog,
body.wc-invite-modal-open #jsModalConfirmInvite .modal-content,
body.wc-invite-modal-open #jsModalCheckInviteAll .modal-content,
body.wc-invite-modal-open #jsModalListStaffInvite .modal-content,
body.wc-invite-modal-open #jsModalConfirmInvite .modal-footer,
body.wc-invite-modal-open #jsModalConfirmInvite #submit-invite {
  pointer-events: auto !important;
}

body.wc-invite-modal-open #jsModalConfirmInvite,
body.wc-invite-modal-open #jsModalCheckInviteAll,
body.wc-invite-modal-open #jsModalListStaffInvite {
  background: transparent !important;
  opacity: 1 !important;
  z-index: 1060 !important;
}

body.wc-invite-modal-open #jsModalConfirmInvite .modal-dialog,
body.wc-invite-modal-open #jsModalCheckInviteAll .modal-dialog,
body.wc-invite-modal-open #jsModalListStaffInvite .modal-dialog {
  z-index: 1061 !important;
  position: relative !important;
}

@media only screen and (max-width: 992px) {
  .wc-employees-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .wc-employees-stats {
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
    flex: none;
  }

  .wc-employees-hero .wc-employees-btn-primary {
    margin-left: 0;
  }

  .wc-employees-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .wc-employees-toolbar__right {
    justify-content: flex-end;
  }
}

@media only screen and (max-width: 768px) {
  .wc-employees-btn-primary {
    width: 100%;
    justify-content: center;
  }

  .wc-employees-search__field {
    min-width: 0;
    flex: 1;
  }

  .wc-employees-search--open .wc-employees-search__expanded {
    flex: 1;
    min-width: 0;
  }

}

.wc-employees-export-dropdown .dropdown-toggle::after {
  margin-left: 8px;
  vertical-align: middle;
}

.wc-employees-export-menu {
  min-width: 160px;
  padding: 6px;
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.wc-employees-export-menu .dropdown-item {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fw-on-surface, #111827);
}

.wc-employees-export-menu .dropdown-item:hover,
.wc-employees-export-menu .dropdown-item:focus {
  background: #f3f4f6;
  color: var(--fw-on-surface, #111827);
}

.wc-employees-export-menu .dropdown-item.active,
.wc-employees-system-menu .dropdown-item.active {
  background: var(--fw-primary-light, #e0f2fe);
  color: var(--fw-primary, #0284c7);
  font-weight: 600;
}

.wc-employees-system-menu {
  min-width: 280px;
  max-height: 350px;
  overflow-y: auto;
  padding: 6px;
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}

.wc-employees-system-menu .system-company-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fw-on-surface, #111827);
  cursor: pointer;
}

.wc-employees-system-menu .system-company-item:hover,
.wc-employees-system-menu .system-company-item:focus {
  background: #f3f4f6;
  color: var(--fw-on-surface, #111827);
}

.wc-employees-system-menu .system-company-item.active {
  background: var(--fw-primary-light, #e0f2fe);
  color: var(--fw-primary, #0284c7);
  font-weight: 600;
}

.wc-employees-system-menu .system-section-title {
  padding: 8px 12px 4px;
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.system-dropdown-loading {
  padding: 16px;
  text-align: center;
  color: #6b7280;
  font-size: 14px;
}

.wc-employees-system-menu .system-period-item {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fw-on-surface, #111827);
  cursor: pointer;
}

.wc-employees-system-menu .system-period-item:hover,
.wc-employees-system-menu .system-period-item:focus {
  background: #f3f4f6;
  color: var(--fw-on-surface, #111827);
}

.wc-employees-system-menu .system-period-item.active {
  background: var(--fw-primary-light, #e0f2fe);
  color: var(--fw-primary, #0284c7);
  font-weight: 600;
}

/* Transactions (advance withdrawals) page — reuse employees layout */
.wc-employees-page--transactions {
  padding: 8px 0 32px;
}

.wc-employees-page--transactions .wc-employees-panel {
  padding: 0;
}

.wc-transactions-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 24px;
  row-gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--fw-outline-variant, #e5e7eb);
}

.wc-transactions-running-total {
  grid-column: 1 / -1;
  grid-row: 1;
  justify-self: end;
  align-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.wc-transactions-filters {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  width: auto !important;
  min-width: 200px;
}

.wc-transactions-actions {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
  align-self: center;
}

.wc-transactions-filters__inner {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  min-width: 0;
  width: fit-content;
}

.wc-transactions-filter-item {
  flex-shrink: 0;
}

.wc-transactions-filter-item--switch .wc-transactions-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: #4b5563;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.wc-transactions-filter-item--switch .wc-transactions-switch-btn:hover {
  background: #f9fafb;
  border-color: #9ca3af;
}

.wc-transactions-filter-item--switch .wc-transactions-switch-btn i {
  font-size: 16px;
  line-height: 1;
}

.wc-transactions-select {
  min-height: 36px;
  padding: 6px 32px 6px 12px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: var(--fw-on-surface, #111827);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23444653' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: pointer;
  max-width: 100%;
}

.wc-transactions-period-select,
.wc-employees-page--transactions .wc-transactions-filter-item--period .select2-container {
  min-width: 26ch;
  width: 26ch !important;
  max-width: 100%;
}

/* Select2 native style - KHÔNG có appearance:none để tránh conflict với Select2 */
.wc-transactions-select-native {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: var(--fw-on-surface, #111827);
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  max-width: 100%;
}

.wc-transactions-select:focus {
  outline: none;
  border-color: var(--fw-primary, #00288e);
  box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.08);
}

.wc-transactions-running-total__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--fw-on-surface, #111827);
}

.wc-transactions-running-total__value {
  font-size: 14px;
  font-weight: 700;
  color: #dc2626;
}

.wc-employees-page--transactions .wc-transactions-staff-link {
  color: var(--fw-primary, #00288e);
  font-weight: 600;
  text-decoration: none;
}

.wc-employees-page--transactions .wc-transactions-staff-link:hover {
  text-decoration: underline;
  color: #001f6d;
}

.wc-employees-page--transactions #trancastionsTable_wrapper > .row:first-child {
  display: none;
}

.wc-employees-page--transactions #trancastionsTable_wrapper > .row:last-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 16px 0 0;
  padding-top: 8px;
  border-top: 1px solid #f3f4f6;
}

.wc-employees-page--transactions #trancastionsTable_wrapper .dataTables_info {
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: #6b7280;
}

.wc-employees-page--transactions #trancastionsTable_wrapper .dataTables_paginate {
  margin: 0;
  padding: 0;
}

.wc-employees-page--transactions #trancastionsTable_wrapper .pagination--custom {
  margin-left: 15px;
}

.wc-employees-page--transactions #trancastionsTable_wrapper .pagination--custom label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding-left: 0;
  border-left: none;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
}

.wc-employees-page--transactions #trancastionsTable_wrapper .pagination--custom select {
  width: 52px;
  min-width: 52px;
  max-width: 52px;
  min-height: 30px;
  padding: 2px 4px 2px 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 13px;
}

.wc-employees-page--transactions .dataTables_paginate .paginate_button {
  border: none !important;
  background: transparent !important;
  color: #4b5563 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 6px 10px !important;
  margin: 0 2px !important;
  border-radius: 8px !important;
}

.wc-employees-page--transactions .dataTables_paginate .paginate_button.current {
  background: #eff4ff !important;
  color: #00288e !important;
}

.wc-employees-page--transactions .dataTables_paginate .paginate_button:hover {
  background: #f3f4f6 !important;
  color: #111827 !important;
}

.wc-employees-page--transactions .wc-transactions-filter-item .select2-container {
  display: block;
}

.wc-employees-page--transactions .select2-container--default .select2-selection--single {
  min-height: 36px;
  height: 36px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background: #fff;
}

.wc-employees-page--transactions .select2-container--default .select2-selection--single .select2-selection__rendered {
  padding: 4px 32px 4px 12px;
  font-size: 13px;
  font-weight: 500;
  line-height: 26px;
  color: var(--fw-on-surface, #111827);
}

.wc-employees-page--transactions .select2-container--default .select2-selection--single .select2-selection__arrow {
  top: 0;
  right: 8px;
  height: 34px;
  width: 16px;
}

.wc-employees-page--transactions .select2-container--default .select2-selection--single .select2-selection__arrow b {
  border-color: #6b7280 transparent transparent transparent;
  border-width: 5px 4px 0 4px;
  margin-top: -2px;
}

/* Đảm bảo Select2 dropdown hiển thị đúng và nằm trên */
.wc-employees-page--transactions .select2-container {
  z-index: 9999 !important;
}

.select2-dropdown {
  display: block !important;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  z-index: 10000 !important;
}

.wc-employees-page--transactions .select2-container--open {
  z-index: 10001 !important;
}

.wc-employees-page--transactions .wc-employees-table-wrap {
  -webkit-overflow-scrolling: touch;
}

.wc-employees-page--transactions .wc-employees-table {
  min-width: 960px;
}

.wc-employees-page--transactions .dropdow-period .wc-employees-date-range__picker,
.wc-employees-page--transactions .dropdow-period #ts_dateranger1 {
  min-width: 180px;
}

/* Tablet */
@media only screen and (max-width: 1200px) {
  .wc-transactions-head {
    column-gap: 16px;
  }

  .wc-transactions-filters__inner {
    flex-wrap: wrap;
  }
}

/* Small tablet / large phone */
@media only screen and (max-width: 992px) {
  .wc-employees-page--transactions {
    padding: 8px 0 24px;
  }

  .wc-transactions-head {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 10px;
    padding: 14px 12px;
  }

  .wc-transactions-running-total {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
    max-width: 100%;
  }

  .wc-transactions-filters {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .wc-transactions-actions {
    grid-column: 1 / -1;
    grid-row: 3;
    justify-self: stretch;
    justify-content: flex-start;
    flex-wrap: wrap;
    width: 100%;
  }

  .wc-transactions-filters__inner {
    flex-wrap: wrap;
    width: 100%;
  }

  .wc-transactions-filter-item {
    flex: 1 1 calc(50% - 4px);
    min-width: calc(50% - 4px);
  }

  .wc-transactions-filter-item--switch {
    flex: 0 0 36px;
    min-width: 36px;
  }

  .wc-employees-page--transactions .wc-transactions-filter-item .select2-container {
    width: 100% !important;
    max-width: 100%;
  }

  .wc-transactions-select {
    width: 100%;
    max-width: 100%;
  }

  .wc-employees-page--transactions .dropdow-period .wc-employees-date-range__picker,
  .wc-employees-page--transactions .dropdow-period #ts_dateranger1 {
    width: 100%;
    min-width: 0;
  }

  .wc-employees-page--transactions #trancastionsTable_wrapper > .row:last-child {
    flex-wrap: wrap;
    gap: 12px;
  }
}

/* Mobile */
@media only screen and (max-width: 768px) {
  .wc-transactions-head {
    padding: 12px;
  }

  .wc-transactions-running-total {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 4px;
    max-width: 55%;
  }

  .wc-transactions-running-total__label,
  .wc-transactions-running-total__value {
    font-size: 13px;
  }

  .wc-transactions-filter-item {
    flex: 1 1 100%;
    min-width: 100%;
  }

  .wc-transactions-filter-item--switch {
    flex: 0 0 36px;
    min-width: 36px;
  }

  .wc-transactions-actions .wc-employees-tool-btn {
    flex: 1 1 calc(50% - 4px);
    justify-content: center;
    min-width: 0;
  }

  .wc-transactions-actions .wc-employees-export-dropdown {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  .wc-transactions-actions .wc-employees-export-dropdown .wc-employees-tool-btn {
    width: 100%;
  }

  .wc-employees-page--transactions .wc-employees-table-wrap {
    padding: 0 12px 12px;
  }

  .wc-employees-page--transactions #trancastionsTable_wrapper > .row:last-child {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .wc-employees-page--transactions #trancastionsTable_wrapper > .row:last-child > div {
    width: 100%;
    max-width: 100%;
    flex: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }

  .wc-employees-page--transactions #trancastionsTable_wrapper .dataTables_info {
    width: 100%;
    text-align: center;
  }

  .wc-employees-page--transactions #trancastionsTable_wrapper .pagination--custom {
    margin-left: 0;
  }

  .wc-employees-page--transactions #trancastionsTable_wrapper .dataTables_paginate {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .wc-employees-page--transactions .dataTables_paginate .paginate_button {
    padding: 8px 12px !important;
  }
}

/* Small mobile */
@media only screen and (max-width: 480px) {
  .wc-transactions-head {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .wc-transactions-running-total,
  .wc-transactions-filters,
  .wc-transactions-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .wc-transactions-running-total {
    justify-self: start;
    max-width: 100%;
    white-space: normal;
  }

  .wc-transactions-actions .wc-employees-tool-btn,
  .wc-transactions-actions .wc-employees-export-dropdown {
    flex: 1 1 100%;
  }

  .wc-employees-page--transactions .wc-employees-table {
    min-width: 720px;
  }

  .wc-employees-page--transactions .wc-employees-table thead th,
  .wc-employees-page--transactions .wc-employees-table tbody td {
    padding: 10px !important;
    font-size: 12px !important;
  }

  .wc-employees-page--transactions .wc-employees-table thead th {
    font-size: 10px !important;
  }
}

/* Timesheet (payroll) page — reuse employees layout */
.wc-employees-page--timesheet {
  padding: 8px 0 32px;
}

.wc-employees-page--timesheet .wc-employees-panel {
  padding: 0;
}

.wc-timesheet-toolbar-panel {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.wc-timesheet-toolbar-panel.hiden {
  display: none !important;
}

.wc-timesheet-panel.hiden {
  display: none !important;
}

.wc-timesheet-toolbar-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.wc-employees-tool-btn--success {
  background: #0a9f6c;
  border-color: #0a9f6c;
  color: #fff;
}

.wc-employees-tool-btn--success:hover:not(.disabled) {
  background: #088f60;
  border-color: #088f60;
  color: #fff;
}

.wc-employees-tool-btn--success i {
  color: #fff;
}

.wc-employees-tool-btn--danger {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff;
}

.wc-employees-tool-btn--danger:hover:not(.disabled) {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
}

#wcTsRemoveStaffBtn:not(.is-visible),
#companyPage #wcTsRemoveStaffBtn:not(.is-visible) {
  display: none !important;
}

#wcTsRemoveStaffBtn.is-visible,
#companyPage #wcTsRemoveStaffBtn.is-visible {
  display: inline-flex;
}

#companyPage .wc-employees-tool-btn--danger {
  border-color: #dc2626;
  color: #dc2626;
}

#companyPage .wc-employees-tool-btn--danger:hover:not(.disabled) {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
}

.wc-ts-staff-modal-search {
  margin-bottom: 10px;
}

.wc-ts-staff-picker__meta {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #6b7280;
}

#wcTsAddStaffModal .modal-dialog.wc-confirm-modal__dialog,
#wcTsRemoveStaffModal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 980px;
}

#wcTsSlotModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 640px;
}

#wcTsSlotModal .wc-bulk-ot__toggle .wc-confirm-modal__checkbox {
  margin-top: 0;
}

.wc-ts-add-staff-table-wrap {
  max-height: 380px;
  overflow: auto;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  background: #fff;
}

.wc-ts-add-staff-table-wrap--empty {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wc-ts-add-staff-empty {
  margin: 0;
  padding: 16px 24px;
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}

.wc-ts-staff-modal-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.wc-ts-staff-modal-pager[hidden] {
  display: none !important;
}

.wc-ts-staff-modal-pager__right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.wc-ts-add-staff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.wc-ts-add-staff-table th,
.wc-ts-add-staff-table td {
  padding: 8px 10px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.wc-ts-add-staff-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
  color: #6b7280;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.wc-ts-add-staff-table__check {
  width: 36px;
  text-align: center;
}

.wc-ts-add-staff-table tbody tr {
  cursor: pointer;
}

.wc-ts-add-staff-table--readonly tbody tr {
  cursor: default;
}

.wc-ts-add-staff-table tbody tr:hover {
  background: rgba(15, 23, 42, 0.04);
}

.wc-ts-add-staff-email {
  color: #374151;
  word-break: break-word;
}

#wcTsRemoveStaffModal .wc-confirm-modal__message {
  margin-bottom: 10px;
}

.wc-timesheet-row-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-timesheet-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 30px;
  padding: 0 12px;
  border: none;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s, background 0.2s;
}

.wc-timesheet-action-btn--approve {
  background: #0a9f6c;
  color: #fff;
}

.wc-timesheet-action-btn--approve:hover:not(.disabled) {
  background: #088f60;
}

.wc-timesheet-action-btn--reject {
  background: #e11d48;
  color: #fff;
}

.wc-timesheet-action-btn--reject:hover:not(.disabled) {
  background: #be123c;
}

.wc-timesheet-action-btn.disabled,
.wc-timesheet-action-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.wc-timesheet-action-btn i {
  font-size: 14px;
}

@media (max-width: 992px) {
  .wc-employees-page--timesheet .wc-employees-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .wc-employees-page--timesheet .wc-employees-toolbar__left,
  .wc-employees-page--timesheet .wc-employees-toolbar__right {
    width: 100%;
    justify-content: flex-start;
  }

  .wc-employees-page--timesheet .wc-employees-toolbar__right {
    width: 100%;
    justify-content: flex-start;
  }

  .wc-timesheet-toolbar-panel,
  .wc-timesheet-toolbar-controls {
    width: 100%;
    justify-content: flex-start;
  }

  .wc-employees-page--timesheet .wc-employees-date-range__picker {
    width: 100%;
    justify-content: space-between;
  }

  .wc-employees-page--timesheet #timesheetTable_wrapper > .row:last-child,
  .wc-employees-page--timesheet #requestTable_wrapper > .row:last-child {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
}

@media (max-width: 768px) {
  .wc-employees-page--timesheet .wc-employees-table-wrap {
    padding: 0 12px 12px;
  }

  .wc-employees-page--timesheet .wc-employees-table {
    min-width: 720px;
  }

  .wc-employees-page--timesheet .wc-employees-table thead th,
  .wc-employees-page--timesheet .wc-employees-table tbody td {
    padding: 10px !important;
    font-size: 12px !important;
  }

  .wc-employees-page--timesheet .wc-employees-table thead th {
    font-size: 10px !important;
  }
}

.wc-confirm-modal__checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 12px;
  font-size: 14px;
  color: #4b5563;
  cursor: pointer;
}

.wc-confirm-modal__checkbox input {
  margin-top: 3px;
}

@media only screen and (max-width: 992px) {
  .wc-employees-page .wc-table-footer {
    padding-left: 8px;
    padding-right: 8px;
  }
}

@media only screen and (max-width: 576px) {
  .wc-employees-page .wc-table-footer {
    flex-wrap: wrap !important;
    row-gap: 12px;
  }

  .wc-employees-page .wc-table-footer__right {
    margin-left: 0;
    width: 100%;
    justify-content: flex-start;
  }
}

/* Support / Feedback page — mirrors Employees layout */
.wc-employees-page--support {
  padding: 8px 0 32px;
  font-family: 'Inter', sans-serif;
}

.wc-employees-page--support .wc-employees-panel {
  margin-top: 0;
}

.wc-support-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 22px;
}

.wc-support-info {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  line-height: 18px;
}

.wc-support-info i {
  font-size: 16px;
  color: #6b7280;
}

.wc-support-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 24px;
}

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

.wc-support-detail-field--full {
  grid-column: 1 / -1;
}

.wc-support-detail-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wc-support-detail-value {
  display: block;
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #c4c5d5;
  border-radius: 10px;
  background: #fff;
  color: #0b1c30;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  line-height: 20px;
  min-height: 44px;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wc-support-detail-textarea {
  resize: vertical;
  min-height: 120px;
}

.wc-employees-page--support .wc-employees-table-wrap .dataTables_wrapper {
  width: 100%;
}

.wc-employees-page--support .dataTables_scrollHead,
.wc-employees-page--support .dataTables_scrollBody {
  border: none !important;
}

.wc-employees-page--support table.dataTable {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

@media only screen and (max-width: 768px) {
  .wc-employees-page--support .wc-employees-toolbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .wc-employees-page--support .wc-support-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Company Management Page - Standalone styles */
#companyPage {
  padding: 8px 0 32px;
  min-height: calc(100vh - 60px);
}

#companyPage .card {
  border: none;
  border-radius: 14px;
  overflow: hidden;
  background: transparent;
}

#companyPage .wc-employees-panel {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

#companyPage .wc-employees-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
}

#companyPage .wc-employees-toolbar__left,
#companyPage .wc-employees-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

#companyPage .wc-employees-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

#companyPage .wc-employees-tab {
  border: none;
  border-radius: 0;
  background: transparent;
  color: #6b7280;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  padding: 6px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

#companyPage .wc-employees-tab:hover {
  color: #111827;
}

#companyPage .wc-employees-tab--active {
  background: #f3f4f6;
  color: #111827;
  font-weight: 600;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}

#companyPage .wc-employees-tab:focus,
#companyPage .wc-employees-tab:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

#companyPage .detail-change-role:focus,
#companyPage .detail-change-role:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

#companyPage .detail-change-role {
  border: 1px solid #d1d5db;
  color: #9ca3af;
}

#companyPage .detail-change-role i {
  color: #9ca3af;
}

#companyPage .detail-change-role.is-active i {
  color: #16a34a;
}

#companyPage .detail-change-role:hover:not(.disabled) {
  color: #111827;
  border-color: #111827;
}

#companyPage .detail-change-role:hover:not(.disabled) i {
  color: #111827;
}

#companyPage .wc-employees-filter-select {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

#companyPage .wc-employees-search {
  display: flex;
  align-items: center;
  gap: 0;
}

#companyPage .wc-employees-search__expanded {
  display: none;
  align-items: center;
  gap: 12px;
}

#companyPage .wc-employees-search--open .wc-employees-search__toggle {
  display: none;
}

#companyPage .wc-employees-search--open .wc-employees-search__expanded {
  display: flex;
}

#companyPage .wc-employees-search__field {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 280px;
  padding: 8px 16px;
  border: 1px solid #d1d5db;
  border-radius: 999px;
  background: #fff;
  margin: 0;
  cursor: text;
}

#companyPage .wc-employees-search__field > i {
  flex-shrink: 0;
  font-size: 16px;
  color: #9ca3af;
}

#companyPage .wc-employees-search__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 14px;
  color: #111827;
  outline: none;
}

#companyPage .wc-employees-search__input::placeholder {
  color: #9ca3af;
}

#companyPage .wc-employees-search__clear {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}

#companyPage .wc-employees-search__clear:hover {
  background: #f3f4f6;
  color: #111827;
}

#companyPage .tblr-input-icon .wc-employees-search__clear {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  font-size: 15px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 3 !important;
  border-radius: 0 6px 6px 0 !important;
  transition: color 0.15s ease !important;
}

#companyPage .tblr-input-icon .wc-employees-search__clear:hover {
  color: #d63939 !important;
  background: transparent !important;
}

#companyPage .tblr-input-icon .wc-employees-search__clear[hidden] {
  display: none !important;
}

#companyPage .wc-employees-search__clear--icon {
  width: 22px;
  height: 22px;
  padding: 0;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
}

#companyPage .wc-employees-search__clear--icon[hidden] {
  display: none !important;
}

#companyPage .wc-employees-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #6b7280;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}

#companyPage .wc-employees-icon-btn:hover:not(.disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

#companyPage .wc-employees-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}

#companyPage .wc-employees-tool-btn:hover:not(.disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

#companyPage .wc-employees-tool-btn i {
  font-size: 16px;
  color: #6b7280;
}

#companyPage .wc-employees-tool-btn.wc-employees-tool-btn--danger {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff;
}

#companyPage .wc-employees-tool-btn.wc-employees-tool-btn--danger:hover:not(.disabled) {
  background: #fef2f2;
  border-color: #b91c1c;
  color: #b91c1c;
}

#companyPage .wc-employees-tool-select {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 28px 0 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23444653' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  color: #111827;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

#companyPage .wc-employees-tool-select:focus {
  outline: none;
  border-color: #00288e;
}

#companyPage .wc-employees-tool-select:hover {
  background-color: #f9fafb;
  border-color: #9ca3af;
}

#companyPage .wc-employees-table-wrap {
  padding: 16px;
  overflow-x: auto;
}

#companyPage .wc-employees-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

#companyPage .wc-employees-table thead th {
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

#companyPage .wc-employees-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #374151;
  vertical-align: middle;
}

#companyPage .wc-employees-table tbody tr:hover td {
  background: #f9fafb;
}

#companyPage .wc-employees-table tbody tr:last-child td {
  border-bottom: none;
}

/* Status badges */
#companyPage .wc-employees-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

#companyPage .wc-employees-status--active {
  background: #d1fae5;
  color: #065f46;
}

#companyPage .wc-employees-status--suspend {
  background: #fef3c7;
  color: #92400e;
}

#companyPage .wc-employees-status--inactive {
  background: #f3f4f6;
  color: #6b7280;
}

/* Connection status */
#companyPage .wc-connection-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

#companyPage .wc-connection-status--connected {
  background: #d1fae5;
  color: #065f46;
}

#companyPage .wc-connection-status--disconnected {
  background: #fee2e2;
  color: #991b1b;
}

/* Row action buttons */
#companyPage .wc-employees-row-view {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  color: #6b7280;
  font-size: 14px;
  transition: all 0.2s;
}

#companyPage .wc-employees-row-view:hover {
  background: #f9fafb;
  border-color: #9ca3af;
  color: #111827;
}

#companyPage .wc-employees-row-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

@media only screen and (max-width: 768px) {
  #companyPage .wc-table-footer {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  #companyPage .dataTables_wrapper .dataTables_paginate {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== Pagination - Giống trang Nhân viên ===== */
#companyPage .wc-table-footer {
  display: flex !important;
  align-items: center;
  justify-content: space-between !important;
  gap: 16px;
  width: 100%;
  margin: 16px 0 0;
  padding: 12px 16px 0;
  border-top: 1px solid #f3f4f6;
  overflow: visible !important;
}

#companyPage .wc-table-footer__left,
#companyPage .wc-table-footer__right {
  display: flex;
  align-items: center;
  gap: 16px;
}

#companyPage .wc-table-footer__right .wc-page-size-wrap {
  margin-left: 0 !important;
}

#companyPage .wc-table-footer__info {
  display: none !important;
}

/* Paginate container */
#companyPage .wc-table-paginate {
  display: flex !important;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
}

#companyPage .wc-table-paginate .paginate_button {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 4px 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  cursor: pointer;
  flex: 0 0 auto;
}

#companyPage .wc-table-paginate .paginate_button.previous {
  margin-right: 28px !important;
}

#companyPage .wc-table-paginate .paginate_button.next {
  margin-left: 0 !important;
}

#companyPage .wc-table-paginate .paginate_button:hover:not(.disabled) {
  background: transparent !important;
  color: #111827 !important;
}

#companyPage .wc-table-paginate .paginate_button.disabled {
  opacity: 0.35;
  cursor: default;
  pointer-events: none;
}

#companyPage .wc-table-paginate .paginate_button.wc-table-paginate__hidden,
#companyPage .wc-table-paginate .paginate_button.first,
#companyPage .wc-table-paginate .paginate_button.last {
  display: none !important;
}

#companyPage .wc-table-paginate__icon {
  font-size: 14px;
  line-height: 1;
}

/* Page size selector */
#companyPage .wc-page-size-wrap {
  margin: 0 !important;
  margin-left: 0 !important;
  padding: 0 !important;
  border: none !important;
}

#companyPage .wc-page-size {
  position: relative;
  display: inline-flex;
}

#companyPage .wc-page-size__toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #111827;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

#companyPage .wc-page-size__toggle:hover,
#companyPage .wc-page-size__toggle[aria-expanded="true"] {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

#companyPage .wc-page-size__label {
  color: #6b7280;
}

#companyPage .wc-page-size__value {
  color: #111827;
  font-weight: 600;
}

#companyPage .wc-page-size__chevron {
  font-size: 12px;
  color: #9ca3af;
  transition: transform 0.15s ease;
}

#companyPage .wc-page-size__toggle[aria-expanded="true"] .wc-page-size__chevron {
  transform: rotate(180deg);
}

#companyPage .wc-page-size__menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  bottom: auto;
  z-index: 30;
  min-width: 120px;
  padding: 6px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

#companyPage .wc-page-size__menu--fixed {
  z-index: 1080;
}

#companyPage .wc-page-size__menu--fixed.wc-page-size__menu--above {
  box-shadow: 0 -10px 24px rgba(15, 23, 42, 0.12);
}

#companyPage .wc-page-size__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 8px 12px;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: #374151;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s;
}

#companyPage .wc-page-size__option:hover {
  background: #f9fafb;
}

#companyPage .wc-page-size__option--active {
  background: #eff6ff;
  color: #1d4ed8;
}

#companyPage .wc-page-size__check {
  font-size: 14px;
  color: #2563eb;
  opacity: 0;
}

#companyPage .wc-page-size__option--active .wc-page-size__check {
  opacity: 1;
}

/* DataTable override */
#companyPage .dataTables_wrapper > .row:last-child {
  overflow: visible !important;
}

#companyPage .dataTables_wrapper {
  position: relative !important;
}

/* Processing / Loading indicator - giống trang Nhân viên */
#companyPage .dataTables_wrapper {
  position: relative !important;
}

#companyPage .dataTables_wrapper .dataTables_processing {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  z-index: 100 !important;
  margin-top: 0 !important;
}

/* Spinner trong processing - giống trang Nhân viên (style.css) */
#companyPage .dataTables_processing .spinner {
  position: relative !important;
  display: inline-block !important;
  width: 44px !important;
  height: 44px !important;
  border: none !important;
  border-radius: 0 !important;
  animation: none !important;
  background: transparent !important;
  box-shadow: none !important;
}

#companyPage .dataTables_processing .spinner:before {
  content: '' !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: 50% !important;
  border: 3px solid transparent !important;
  border-top-color: #5b9aff !important;
  border-right-color: #00288e !important;
  border-bottom-color: rgba(0, 40, 142, 0.15) !important;
  border-left-color: rgba(91, 154, 255, 0.2) !important;
  animation: flexwage-loader-spin 1.15s cubic-bezier(0.45, 0.1, 0.45, 0.9) infinite !important;
  box-sizing: border-box !important;
}

#companyPage .dataTables_processing .spinner:after {
  content: '' !important;
  position: absolute !important;
  inset: 9px !important;
  border-radius: 50% !important;
  border: 3px solid transparent !important;
  border-top-color: rgba(91, 154, 255, 0.85) !important;
  border-right-color: rgba(0, 40, 142, 0.35) !important;
  border-bottom-color: transparent !important;
  border-left-color: rgba(91, 154, 255, 0.45) !important;
  animation: flexwage-loader-spin-reverse 0.85s linear infinite !important;
  box-sizing: border-box !important;
}

/* Spinner center for transactions page */
.wc-employees-page--transactions .dataTables_wrapper .dataTables_processing {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  width: auto !important;
  z-index: 100 !important;
  margin-top: 0 !important;
}

/* Modal override - FIX TRIỆT ĐỂ - giống popup Hồ sơ */
#companyPage .modal-backdrop,
#companyPage + .modal-backdrop {
  display: none !important;
  z-index: 1 !important;
}

#companyPage .modal {
  position: fixed !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 99999 !important;
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  filter: none !important;
  pointer-events: auto !important;
  display: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

#companyPage .modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#companyPage .modal.in {
  display: flex !important;
  opacity: 1 !important;
}

#companyPage .modal .modal-dialog {
  position: relative !important;
  z-index: 100000 !important;
  pointer-events: auto !important;
  margin: 0 auto !important;
  width: 100%;
  max-width: 420px;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

#companyPage .modal .modal-content {
  position: relative !important;
  z-index: 100001 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #ffffff !important;
  border: none !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18) !important;
  overflow: hidden !important;
}

#companyPage .modal .modal-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 64px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--fw-outline-variant, #e5e7eb);
  background: #fff !important;
  position: relative;
}

#companyPage .modal .modal-header .modal-title {
  margin: 0 !important;
  color: var(--fw-on-surface, #0b1c30) !important;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}

#companyPage .modal .modal-body {
  padding: 20px 24px !important;
  background: #fff;
  pointer-events: auto !important;
}

#companyPage .modal .modal-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 0 !important;
  padding: 16px 24px 24px !important;
  background: #fff !important;
  border-top: none !important;
}

#companyPage .modal .modal-footer .btn {
  min-height: 44px;
  border-radius: 10px !important;
  font-weight: 600;
  line-height: 1;
  box-shadow: none !important;
  padding: 0 24px;
  pointer-events: auto !important;
}

#companyPage .modal .modal-footer .btn-default {
  background: #fff !important;
  border: 1px solid var(--fw-outline, #d1d5db) !important;
  color: var(--fw-on-surface, #374151) !important;
}

#companyPage .modal .modal-footer .btn-default:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
}

#companyPage .modal .modal-footer .btn-primary {
  background: var(--fw-primary, #00288e) !important;
  border: 1px solid var(--fw-primary, #00288e) !important;
  color: #fff !important;
}

#companyPage .modal .modal-footer .btn-primary:hover {
  background: #001f70 !important;
  border-color: #001f70 !important;
}

/* Edit Staff Page - Hide nav, full width layout */
.watch-company-employee-detail.no-nav .wc-employee-detail-nav {
  display: none !important;
}

.watch-company-employee-detail.no-nav .wc-employee-detail-layout {
  display: block;
  min-height: auto;
  gap: 0;
}

.watch-company-employee-detail.no-nav .wc-employee-detail-main {
  max-width: 55%;
  width: auto;
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--fw-outline-variant, #e5e7eb);
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(11, 28, 48, 0.04);
  padding: 24px;
  box-sizing: border-box;
}

.watch-company-employee-detail.no-nav .wc-profile-form,
.watch-company-employee-detail.no-nav .wc-profile-grid,
.watch-company-employee-detail.no-nav .wc-profile-section,
.watch-company-employee-detail.no-nav .wc-profile-header {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.watch-company-employee-detail.no-nav .wc-employee-detail-panel {
  padding: 0;
}

/* Section styling - no padding, no border */
.watch-company-employee-detail .wc-profile-section {
  padding: 24px;
}

/* Header section - included in border */
.watch-company-employee-detail .wc-profile-header {
  text-align: left;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--fw-outline-variant, #e5e7eb);
}

.watch-company-employee-detail .wc-profile-header__title {
  margin: 0 0 8px;
  font-family: 'Hanken Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
  color: var(--fw-on-surface, #0b1c30);
  text-align: left;
}

.watch-company-employee-detail .wc-profile-header__subtitle {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--fw-on-surface-variant, #444653);
}

/* Label styling */
.watch-company-employee-detail .wc-profile-label {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
  color: var(--fw-on-surface-variant, #444653);
}

/* Input styling */
.watch-company-employee-detail .wc-profile-input {
  padding: 10px 14px;
  border: 1px solid var(--fw-outline, #d1d5db);
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: var(--fw-on-surface, #0b1c30);
  background: #fff;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.watch-company-employee-detail .wc-profile-input:focus {
  outline: none;
  border-color: var(--fw-primary, #00288e);
  box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.1);
}

.watch-company-employee-detail .wc-profile-input[readonly] {
  background: var(--fw-surface-container-lowest, #f9fafb);
  color: var(--fw-on-surface-variant, #444653);
}

/* Avatar field - centered */
.watch-company-employee-detail .wc-profile-field--avatar {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.watch-company-employee-detail .wc-avatar-wrapper {
  position: relative;
  display: inline-block;
}

.watch-company-employee-detail .avatar-staff {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--fw-outline-variant, #e5e7eb);
}

.watch-company-employee-detail .wc-avatar-edit-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--fw-primary, #0077b6);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
  border: 2px solid #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.watch-company-employee-detail .wc-avatar-wrapper:hover .wc-avatar-edit-btn {
  opacity: 1;
}

.watch-company-employee-detail.no-nav .wc-profile-grid--center {
  justify-content: center;
}

/* Input group for phone country code */
.watch-company-employee-detail .wc-profile-input-group {
  display: flex;
  gap: 8px;
}

.watch-company-employee-detail .wc-profile-input-group select {
  flex: 0 0 180px;
}

/* Full width form */
.watch-company-employee-detail.no-nav .wc-profile-form {
  max-width: 800px;
  margin: 0 auto;
}

/* Action buttons */
.watch-company-employee-detail .wc-profile-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--fw-outline-variant, #e5e7eb);
  margin-top: 16px;
}

.watch-company-employee-detail .btn-secondary {
  background: #fff !important;
  border: 1px solid var(--fw-outline, #d1d5db) !important;
  color: var(--fw-on-surface, #374151) !important;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 500;
}

.watch-company-employee-detail .btn-secondary:hover {
  background: #f9fafb !important;
  border-color: #9ca3af !important;
}

/* Block/Unlock Modal - Staff Table */
.wc-block-modal {
  position: relative;
  border-radius: 16px;
  border: none;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  overflow: visible;
  background: #fff;
}

.modal-dialog-centered .modal-content.wc-block-modal {
  background-color: #fff !important;
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25) !important;
}

.wc-block-modal .modal-content {
  background: #fff !important;
  border: none !important;
}

.modal-dialog:has(.wc-block-modal) {
  z-index: 9999;
}

.modal-backdrop {
  z-index: 9998 !important;
}

.modal.wc-block-modal,
.modal.wc-block-modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  z-index: 10000 !important;
}

/* Ensure modal backdrop doesn't block our modal */
.modal-stack {
  z-index: 9999 !important;
}

/* Force our modal content to be on top */
#usersTable_wrapper .modal {
  z-index: 1060 !important;
  display: none;
}

#usersTable_wrapper .modal.show {
  display: flex !important;
}

/* Ensure backdrop is below our modal */
#usersTable_wrapper .modal ~ .modal-backdrop {
  z-index: 1059 !important;
}

.wc-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #f3f4f6;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 1;
}

.wc-modal-close:hover {
  background: #e5e7eb;
}

.wc-modal-close i {
  font-size: 16px;
  color: #6b7280;
}

.wc-block-modal__body {
  padding: 32px 24px 24px;
  text-align: center;
}

.wc-block-modal__title {
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.wc-block-modal__text {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 16px;
}

.wc-block-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 0 24px 24px;
}

.wc-btn-cancel {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #6b7280;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.wc-btn-cancel:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #374151;
}

.wc-btn-confirm {
  background: #10b981;
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 10px;
  font-weight: 500;
  font-size: 14px;
  transition: all 0.2s;
}

.wc-btn-confirm:hover {
  background: #059669;
}

/* Select styling */
.watch-company-employee-detail .wc-profile-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23374151' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 40px;
}

.wc-hr-employee-new {
  max-width: 1080px;
}

.wc-hr-employee-new .wc-employee-detail-layout {
  gap: 24px;
}

.wc-hr-employee-new .wc-employee-detail-nav {
  flex-basis: 200px;
}

.wc-hr-employee-new .wc-employee-detail-header {
  margin-bottom: 16px;
}

.wc-hr-employee-new .wc-employee-detail-title {
  font-size: 20px;
  line-height: 26px;
  margin-bottom: 4px;
}

.wc-hr-employee-new .wc-profile-form {
  gap: 16px;
}

.wc-hr-employee-new .wc-profile-section {
  padding: 20px 22px;
}

.wc-hr-employee-new .wc-profile-section__title {
  margin-bottom: 14px;
  font-size: 15px;
}

.wc-hr-employee-new .wc-hr-employee-new-subtitle {
  margin-top: 22px;
}

.wc-hr-employee-new .wc-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
}

.wc-hr-employee-new .wc-profile-field {
  gap: 6px;
}

.wc-hr-employee-new .wc-profile-input,
.wc-hr-employee-new .wc-profile-select {
  min-height: 40px;
  padding: 8px 12px;
}

.wc-hr-employee-new-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--fw-outline-variant, #e5e7eb);
}

.wc-hr-employee-new-actions .wc-employees-tool-btn,
.wc-hr-employee-new-actions .wc-employees-btn-primary {
  min-height: 40px;
  padding: 0 16px;
  text-decoration: none;
}

.wc-hr-employee-new-actions a.wc-employees-tool-btn {
  color: var(--fw-on-surface, #111827);
}

.wc-hr-employee-new-actions a.wc-employees-tool-btn:hover {
  color: var(--fw-on-surface, #111827);
  text-decoration: none;
}

.wc-hr-employee-new-actions .js-hr-emp-save-next.hiden,
.wc-hr-employee-new-actions .js-hr-emp-save-next[hidden] {
  display: none !important;
}

.wc-hr-employee-new .wc-profile-field.hiden,
.wc-hr-employee-new .wc-profile-field[hidden] {
  display: none !important;
}

@media only screen and (max-width: 768px) {
  .wc-hr-employee-new .wc-profile-grid {
    grid-template-columns: 1fr;
  }

  .wc-hr-employee-new-actions {
    flex-wrap: wrap;
  }
}

/* Working shifts & OT Coefficients: Migrated to wago-tabler-theme.css (Section 25) */
.wc-employees-page--working-shifts .wc-ws-pane[hidden] {
  display: none !important;
}

/* Bảng lương: filter dropdown cùng style toolbar (tool-select) */
.wc-employees-page--salary-detail .wc-employees-toolbar__right .wc-employees-tool-select {
  min-width: 180px;
  max-width: 260px;
}

.wc-employees-status--preview {
  background: #fff7ed;
  color: #c2410c;
}

.wc-salary-preview-hint {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff7ed;
  color: #9a3412;
  font-size: 13px;
  line-height: 1.4;
}

/* Bảng lương: Tổng TN đậm vừa (~2/3 độ đậm so với Thực lĩnh 700) */
.wc-employees-page--salary-detail .wc-salary-col-gross {
  font-weight: 550;
}
.wc-employees-page--salary-detail .wc-salary-col-netpay {
  font-weight: 700;
}

/* Bảng lương: Cột Nhân viên & Phòng ban căn lề trái như bảng chấm công */
.wc-employees-page--salary-detail #wcSalaryGrid th:nth-child(2),
.wc-employees-page--salary-detail #wcSalaryGrid td:nth-child(2),
.wc-employees-page--salary-detail #wcSalaryGrid th:nth-child(3),
.wc-employees-page--salary-detail #wcSalaryGrid td:nth-child(3) {
  text-align: left;
}

/* Dữ liệu tính lương — cùng layout toolbar/tabs như HR catalog (Phòng ban) */
.wc-employees-page--payroll-data .wc-employees-toolbar__left {
  flex: 1 1 auto;
  overflow-x: auto;
}

.wc-employees-page--payroll-data .wc-employees-tabs {
  flex-wrap: nowrap;
  min-width: max-content;
}

.wc-employees-page--payroll-data .wc-employees-toolbar__right {
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wc-employees-page--payroll-data .wc-payroll-data-period,
.wc-employees-page--attendance-requests .wc-payroll-data-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-width: 0;
}

.wc-employees-page--payroll-data .wc-payroll-data-period__label,
.wc-employees-page--attendance-requests .wc-payroll-data-period__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--fw-on-surface-variant, #6b7280);
  white-space: nowrap;
}

.wc-employees-page--payroll-data .wc-payroll-data-period__select,
.wc-employees-page--attendance-requests .wc-payroll-data-period__select {
  min-width: 18ch;
  max-width: 32ch;
  text-overflow: ellipsis;
  overflow: hidden;
  appearance: none;
  padding-right: 28px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23444653' d='M1.41 0L6 4.58 10.59 0 12 1.41l-6 6-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}

.wc-employees-page--payroll-data .wc-employees-table .wc-profile-input {
  width: 100%;
  min-width: 0;
  min-height: 36px;
  padding: 6px 10px;
  border: 1px solid var(--fw-outline-variant, #d1d5db);
  border-radius: 8px;
  background: #fff;
  color: var(--fw-on-surface, #111827);
  font-size: 14px;
  line-height: 20px;
}

.wc-employees-page--payroll-data .wc-employees-table .wc-profile-input:focus {
  outline: none;
  border-color: var(--fw-primary, #00288e);
  box-shadow: 0 0 0 3px rgba(0, 40, 142, 0.08);
}

.wc-employees-page--payroll-data .wc-employees-table .text-muted {
  color: #6b7280;
}

@media only screen and (max-width: 992px) {
  .wc-employees-page--payroll-data .wc-employees-toolbar__left,
  .wc-employees-page--payroll-data .wc-employees-toolbar__right,
  .wc-employees-page--attendance-requests .wc-employees-toolbar__left,
  .wc-employees-page--attendance-requests .wc-employees-toolbar__right {
    width: 100%;
  }

  .wc-employees-page--payroll-data .wc-payroll-data-period,
  .wc-employees-page--attendance-requests .wc-payroll-data-period {
    flex: 1 1 auto;
  }

  .wc-employees-page--payroll-data .wc-payroll-data-period__select,
  .wc-employees-page--attendance-requests .wc-payroll-data-period__select {
    flex: 1 1 auto;
    max-width: none;
  }
}

@media (max-width: 1200px) {
  .wc-employees-page--working-shifts .wc-ot-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .wc-employees-page--working-shifts .wc-ot-stats {
    grid-template-columns: 1fr;
  }
}
