/**
 * ==============================================================================
 * WAGOPAYROLL - TABLER THEME STYLE (DESIGN TOKENS & COMPONENTS)
 * File: wago-tabler-theme.css
 * Reference: Tabler UI (https://tabler.io/admin-template/preview)
 * ==============================================================================
 * Nguyên tắc:
 * 1. Độc lập, không phá vỡ css cũ
 * 2. Cung cấp tiền tố `.tblr-` để nâng cấp giao diện từng module theo chuẩn Tabler
 * 3. Hỗ trợ hệ thống Soft Badges (Light Badges) đặc trưng của Tabler
 * ==============================================================================
 */

:root {
  /* --- Tabler Brand & Palette Colors --- */
  --tblr-primary: #206bc4;
  --tblr-primary-rgb: 32, 107, 196;
  --tblr-primary-fg: #ffffff;
  --tblr-primary-hover: #1a569d;

  --tblr-secondary: #626976;
  --tblr-secondary-rgb: 98, 105, 118;
  --tblr-secondary-fg: #ffffff;

  --tblr-success: #2fb344;
  --tblr-success-rgb: 47, 179, 68;
  --tblr-success-fg: #ffffff;

  --tblr-warning: #f59f00;
  --tblr-warning-rgb: 245, 159, 0;
  --tblr-warning-fg: #ffffff;

  --tblr-danger: #d63939;
  --tblr-danger-rgb: 214, 57, 57;
  --tblr-danger-fg: #ffffff;

  --tblr-info: #4299e1;
  --tblr-info-rgb: 66, 153, 225;
  --tblr-info-fg: #ffffff;

  --tblr-azure: #4299e1;
  --tblr-azure-rgb: 66, 153, 225;

  --tblr-purple: #ae3ec9;
  --tblr-purple-rgb: 174, 62, 201;

  --tblr-teal: #0ca678;
  --tblr-teal-rgb: 12, 166, 120;

  --tblr-orange: #f76707;
  --tblr-orange-rgb: 247, 103, 7;

  /* --- Neutral & Surface Colors --- */
  --tblr-body-bg: #f8fafc;
  --tblr-surface: #ffffff;
  --tblr-surface-subtle: #fcfdfe;
  --tblr-surface-hover: #f1f5f9;

  --tblr-border-color: #e6e8eb;
  --tblr-border-subtle: #f1f3f5;
  --tblr-border-strong: #cbd5e1;

  --tblr-text-main: #1e293b;
  --tblr-text-secondary: #64748b;
  --tblr-text-muted: #94a3b8;
  --tblr-text-disabled: #cbd5e1;

  /* --- Typography --- */
  --tblr-font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --tblr-font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* --- Border Radius --- */
  --tblr-radius-xs: 3px;
  --tblr-radius-sm: 4px;
  --tblr-radius-md: 6px;
  --tblr-radius-lg: 8px;
  --tblr-radius-xl: 12px;
  --tblr-radius-pill: 50rem;

  /* --- Shadows --- */
  --tblr-shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --tblr-shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.06), 0 1px 2px -1px rgba(0, 0, 0, 0.06);
  --tblr-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.06);
  --tblr-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);

  /* --- Transitions --- */
  --tblr-transition-fast: all 0.15s ease-in-out;
  --tblr-transition-base: all 0.2s ease-in-out;
}

/* ==============================================================================
 * 1. TYPOGRAPHY & BASE RESET CHO TABLER CONTAINERS
 * ============================================================================== */
.tblr-theme-scope {
  font-family: var(--tblr-font-sans);
  color: var(--tblr-text-main);
  background-color: var(--tblr-body-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ==============================================================================
 * 2. TABLER SOFT BADGES (LIGHT BADGES / .tblr-badge-lt)
 * ============================================================================== */
.tblr-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--tblr-font-sans);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 7px;
  border-radius: var(--tblr-radius-sm);
  white-space: nowrap;
  vertical-align: middle;
  text-decoration: none;
  font-feature-settings: "tnum";
  letter-spacing: 0.3px;
  transition: var(--tblr-transition-fast);
}

.tblr-badge-pill {
  border-radius: var(--tblr-radius-pill);
  padding: 3px 9px;
}

.tblr-badge-sm {
  font-size: 10px;
  padding: 2px 5px;
}

.tblr-badge-lg {
  font-size: 13px;
  padding: 5px 10px;
}

/* Solid Badges */
.tblr-badge-primary {
  background-color: var(--tblr-primary);
  color: #ffffff;
}

.tblr-badge-success {
  background-color: var(--tblr-success);
  color: #ffffff;
}

.tblr-badge-warning {
  background-color: var(--tblr-warning);
  color: #ffffff;
}

.tblr-badge-danger {
  background-color: var(--tblr-danger);
  color: #ffffff;
}

.tblr-badge-info {
  background-color: var(--tblr-info);
  color: #ffffff;
}

.tblr-badge-secondary {
  background-color: var(--tblr-secondary);
  color: #ffffff;
}

/* Soft / Light Badges (Đặc trưng của Tabler) */
.tblr-badge-primary-lt {
  background-color: rgba(var(--tblr-primary-rgb), 0.12) !important;
  color: var(--tblr-primary) !important;
  border: 1px solid rgba(var(--tblr-primary-rgb), 0.2);
}

.tblr-badge-success-lt {
  background-color: rgba(var(--tblr-success-rgb), 0.12) !important;
  color: #1e7e34 !important;
  border: 1px solid rgba(var(--tblr-success-rgb), 0.25);
}

.tblr-badge-warning-lt {
  background-color: rgba(var(--tblr-warning-rgb), 0.14) !important;
  color: #b7791f !important;
  border: 1px solid rgba(var(--tblr-warning-rgb), 0.3);
}

.tblr-badge-danger-lt {
  background-color: rgba(var(--tblr-danger-rgb), 0.12) !important;
  color: #c53030 !important;
  border: 1px solid rgba(var(--tblr-danger-rgb), 0.25);
}

.tblr-badge-azure-lt,
.tblr-badge-info-lt {
  background-color: rgba(var(--tblr-azure-rgb), 0.12) !important;
  color: #2b6cb0 !important;
  border: 1px solid rgba(var(--tblr-azure-rgb), 0.25);
}

.tblr-badge-purple-lt {
  background-color: rgba(var(--tblr-purple-rgb), 0.12) !important;
  color: var(--tblr-purple) !important;
  border: 1px solid rgba(var(--tblr-purple-rgb), 0.25);
}

.tblr-badge-secondary-lt {
  background-color: rgba(var(--tblr-secondary-rgb), 0.10) !important;
  color: #4a5568 !important;
  border: 1px solid rgba(var(--tblr-secondary-rgb), 0.2);
}

.tblr-badge-outline {
  background-color: transparent !important;
  border: 1px solid currentColor;
}

/* Status Dots */
.tblr-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--tblr-secondary);
  vertical-align: middle;
  flex-shrink: 0;
}

.tblr-status-dot.status-green {
  background-color: var(--tblr-success);
}

.tblr-status-dot.status-red {
  background-color: var(--tblr-danger);
}

.tblr-status-dot.status-yellow {
  background-color: var(--tblr-warning);
}

.tblr-status-dot.status-blue {
  background-color: var(--tblr-primary);
}

.tblr-status-dot-animated {
  animation: tblr-status-pulse 2s infinite;
}

@keyframes tblr-status-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(var(--tblr-success-rgb), 0.5);
  }

  70% {
    box-shadow: 0 0 0 6px rgba(var(--tblr-success-rgb), 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(var(--tblr-success-rgb), 0);
  }
}

/* ==============================================================================
 * 3. TABLER CARDS (THẺ NỘI DUNG)
 * ============================================================================== */
.tblr-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: var(--tblr-surface);
  background-clip: border-box;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-radius-lg);
  box-shadow: var(--tblr-shadow-sm);
  margin-bottom: 1.25rem;
}

.tblr-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
  background-color: transparent;
  border-bottom: 1px solid var(--tblr-border-color);
}

.tblr-card-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--tblr-text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}

.tblr-card-subtitle {
  margin: 2px 0 0 0;
  font-size: 12px;
  color: var(--tblr-text-secondary);
}

.tblr-card-body {
  flex: 1 1 auto;
  padding: 1.25rem;
}

.tblr-card-footer {
  padding: 0.75rem 1.25rem;
  background-color: var(--tblr-surface-subtle);
  border-top: 1px solid var(--tblr-border-color);
  border-bottom-left-radius: calc(var(--tblr-radius-lg) - 1px);
  border-bottom-right-radius: calc(var(--tblr-radius-lg) - 1px);
}

.tblr-card-table {
  padding: 0;
}

.tblr-card-table .tblr-table {
  margin-bottom: 0;
  border-top: none;
  border-left: none;
  border-right: none;
}

.tblr-card-table .tblr-table tr:first-child th {
  border-top: none;
}

/* ==============================================================================
 * 4. TABLER KPI STATS CARDS (THỐNG KÊ NHANH)
 * ============================================================================== */
.tblr-stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.tblr-stat-card {
  padding: 1rem 1.25rem;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-radius-lg);
  background-color: var(--tblr-surface);
  box-shadow: var(--tblr-shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: var(--tblr-transition-fast);
}

.tblr-stat-card:hover {
  box-shadow: var(--tblr-shadow-md);
  border-color: var(--tblr-border-strong);
}

.tblr-stat-content {
  display: flex;
  flex-direction: column;
}

.tblr-stat-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--tblr-text-secondary);
  margin-bottom: 4px;
}

.tblr-stat-number {
  font-size: 22px;
  font-weight: 700;
  color: var(--tblr-text-main);
  line-height: 1.1;
  font-feature-settings: "tnum";
}

.tblr-stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--tblr-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

/* ==============================================================================
 * 5. TABLER BUTTONS & BUTTON GROUPS
 * ============================================================================== */
.tblr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--tblr-font-sans);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.4;
  padding: 6px 14px;
  border-radius: var(--tblr-radius-md);
  border: 1px solid transparent;
  background-color: #ffffff;
  color: var(--tblr-text-main);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  text-decoration: none;
  transition: var(--tblr-transition-fast);
  box-shadow: var(--tblr-shadow-xs);
}

.tblr-btn:hover {
  background-color: var(--tblr-surface-hover);
  border-color: var(--tblr-border-strong);
  color: var(--tblr-text-main);
  text-decoration: none;
}

.tblr-btn:focus,
.tblr-btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.2);
}

.tblr-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

.tblr-btn-sm {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: var(--tblr-radius-sm);
}

.tblr-btn-primary {
  background-color: var(--tblr-primary);
  border-color: var(--tblr-primary);
  color: #ffffff;
}

.tblr-btn-primary:hover {
  background-color: var(--tblr-primary-hover);
  border-color: var(--tblr-primary-hover);
  color: #ffffff;
}

.tblr-btn-success {
  background-color: var(--tblr-success);
  border-color: var(--tblr-success);
  color: #ffffff;
}

.tblr-btn-success:hover {
  background-color: #279839;
  border-color: #279839;
  color: #ffffff;
}

.tblr-btn-warning {
  background-color: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}

.tblr-btn-warning:hover {
  background-color: #b45309 !important;
  border-color: #b45309 !important;
  color: #ffffff !important;
}

.tblr-btn-danger {
  background-color: var(--tblr-danger);
  border-color: var(--tblr-danger);
  color: #ffffff;
}

.tblr-btn-danger:hover {
  background-color: #b92e2e;
  border-color: #b92e2e;
  color: #ffffff;
}

.tblr-btn-outline {
  background-color: #ffffff;
  border-color: var(--tblr-border-color);
  color: var(--tblr-text-main);
}

.tblr-btn-outline:hover {
  background-color: var(--tblr-surface-hover);
  border-color: var(--tblr-border-strong);
}

.tblr-btn-link {
  background-color: transparent;
  border-color: transparent;
  color: var(--tblr-text-secondary);
  box-shadow: none;
}

.tblr-btn-link:hover {
  background-color: rgba(0, 0, 0, 0.04);
  color: var(--tblr-text-main);
}

/* Button Group (Segmented View Toggle) */
.tblr-btn-group {
  display: inline-flex;
  border-radius: var(--tblr-radius-md);
  background-color: #f1f5f9;
  padding: 3px;
  border: 1px solid var(--tblr-border-color);
}

.tblr-btn-group .tblr-btn-group-item {
  border: none;
  background: transparent;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--tblr-radius-sm);
  color: var(--tblr-text-secondary);
  cursor: pointer;
  transition: var(--tblr-transition-fast);
  box-shadow: none;
}

.tblr-btn-group .tblr-btn-group-item--active,
.tblr-btn-group .tblr-btn-group-item:hover {
  background-color: #ffffff;
  color: var(--tblr-text-main);
  box-shadow: var(--tblr-shadow-xs);
}

/* ==============================================================================
 * 6. TABLER FORM CONTROLS & INPUT ICONS
 * ============================================================================== */
.tblr-form-control,
.tblr-form-select {
  display: block;
  width: 100%;
  font-family: var(--tblr-font-sans);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--tblr-text-main);
  background-color: #ffffff;
  background-clip: padding-box;
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-radius-md);
  padding: 6px 12px;
  transition: var(--tblr-transition-fast);
  box-sizing: border-box;
}

.tblr-form-control:focus,
.tblr-form-select:focus {
  border-color: #90cdf4;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb), 0.15);
}

.tblr-form-control::placeholder {
  color: var(--tblr-text-muted);
}

.tblr-input-icon {
  position: relative;
  display: block;
  width: 100%;
}

.tblr-input-icon-addon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  color: var(--tblr-text-secondary);
  pointer-events: none;
  z-index: 2;
}

.tblr-input-icon-addon-end {
  left: auto;
  right: 0;
  pointer-events: auto;
}

.tblr-input-icon .tblr-form-control {
  width: 100%;
  padding-left: 2.25rem;
  padding-right: 2.25rem;
}

/* Trailing Clear Button inside .tblr-input-icon (e.g. #wcTsSearchClear) */
.tblr-input-icon .wc-employees-search__clear,
#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: var(--tblr-text-muted, #94a3b8) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 3 !important;
  border-radius: 0 var(--tblr-border-radius, 6px) var(--tblr-border-radius, 6px) 0 !important;
  transition: color 0.15s ease !important;
}

.tblr-input-icon .wc-employees-search__clear:hover,
#companyPage .tblr-input-icon .wc-employees-search__clear:hover {
  color: var(--tblr-danger, #d63939) !important;
  background: transparent !important;
}

.tblr-input-icon .wc-employees-search__clear[hidden],
#companyPage .tblr-input-icon .wc-employees-search__clear[hidden] {
  display: none !important;
}

/* Suppress native WebKit search cancel button so only custom Tabler clear button shows */
.tblr-input-icon input[type="search"]::-webkit-search-cancel-button,
.tblr-input-icon input[type="search"]::-webkit-search-decoration,
.tblr-input-icon input[type="search"]::-webkit-search-results-button,
.tblr-input-icon input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none !important;
  appearance: none !important;
  display: none !important;
}

/* ==============================================================================
 * 7. TABLER PAGE HEADER & BREADCRUMBS
 * ============================================================================== */
.tblr-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.tblr-page-pretitle {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--tblr-text-secondary);
  margin-bottom: 2px;
}

.tblr-page-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--tblr-text-main);
  margin: 0;
  line-height: 1.2;
}

.tblr-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ==============================================================================
 * 8. TABLER DATA TABLE & TIMESHEET MATRIX SPECIAL STYLES
 * ============================================================================== */
.tblr-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--tblr-text-main);
  font-size: 13px;
}

.tblr-table th {
  background-color: var(--tblr-body-bg);
  color: var(--tblr-text-secondary);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--tblr-border-color);
  border-top: 1px solid var(--tblr-border-color);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

.tblr-table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--tblr-border-subtle);
  vertical-align: middle;
  background-color: #ffffff;
  transition: background-color 0.1s ease;
}

.tblr-table tbody tr:hover td {
  background-color: var(--tblr-surface-hover);
}

/* Matrix Sticky Elements */
.tblr-sticky-col {
  position: sticky;
  left: 0;
  z-index: 5;
  background-color: #ffffff !important;
  box-shadow: 2px 0 4px -1px rgba(0, 0, 0, 0.06);
}

.tblr-sticky-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background-color: var(--tblr-body-bg) !important;
}

/* ==============================================================================
 * 9. TABLER MODAL DIALOGS
 * ============================================================================== */
.tblr-modal .modal-content {
  border: 1px solid var(--tblr-border-color);
  border-radius: var(--tblr-radius-xl);
  box-shadow: var(--tblr-shadow-lg);
  overflow: hidden;
}

.tblr-modal .modal-header {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--tblr-border-color);
  background-color: var(--tblr-surface);
}

.tblr-modal .modal-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--tblr-text-main);
  margin: 0;
}

.tblr-modal .modal-body {
  padding: 1.25rem;
  background-color: var(--tblr-surface);
}

.tblr-modal .modal-footer {
  padding: 0.875rem 1.25rem;
  border-top: 1px solid var(--tblr-border-color);
  background-color: var(--tblr-surface-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ==============================================================================
 * 10. MODULE CHẤM CÔNG CHI TIẾT (TIMESHEET DETAIL OVERRIDES & ENHANCEMENTS)
 * ============================================================================== */

/* Page Container Top Spacing & Horizontal Alignment (Quy chuẩn 1.7 & 1.7.A - Đồng bộ 1:1 với .wc-employees-page--timesheet) */
.wc-employees-page--timesheet-detail {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

/* Header: Đồng bộ padding 12px 20px 6px và margin-bottom 8px (Quy chuẩn 1.7.A) */
.wc-employees-page--timesheet-detail .tblr-page-header,
.wc-employees-page--timesheet-detail .wc-ts-detail-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  gap: 0 !important;
  flex-wrap: nowrap !important;
}

.wc-employees-page--timesheet-detail .wc-ts-detail-header__left {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  margin-right: 15px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  /* Đảm bảo box Status cách box Tổng NV ít nhất 15px */
}

.wc-employees-page--timesheet-detail .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--timesheet-detail .wc-ts-period-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
  width: 100% !important;
}

.wc-employees-page--timesheet-detail .tblr-page-title,
.wc-employees-page--timesheet-detail #wcTsPeriodLabel {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  flex: 0 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Card panel: Góc vuông 100% (border-radius: 0), viền 4 cạnh, có margin hở mép chuẩn giống timesheet */
.wc-employees-page--timesheet-detail .wc-ts-detail-panel,
.wc-employees-page--timesheet-detail .tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1.25rem !important;
}

/* Xoá/Ẩn Ca làm việc default shift */
.wc-employees-page--timesheet-detail #wcTsDefaultShift {
  display: none !important;
}

.wc-employees-page--timesheet-detail #wcTsPeriodStatus {
  flex: 0 0 auto !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
}

.wc-employees-page--timesheet-detail .wc-ts-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--tblr-radius-sm);
  font-size: 12px;
  font-weight: 600;
  background: rgba(var(--tblr-secondary-rgb), 0.1);
  color: var(--tblr-secondary);
  border: 1px solid rgba(var(--tblr-secondary-rgb), 0.2);
}

.wc-employees-page--timesheet-detail .wc-ts-meta-chip--open {
  background: rgba(var(--tblr-success-rgb), 0.12) !important;
  color: #1e7e34 !important;
  border: 1px solid rgba(var(--tblr-success-rgb), 0.25) !important;
}

.wc-employees-page--timesheet-detail .wc-ts-meta-chip--locked {
  background: rgba(var(--tblr-danger-rgb), 0.12) !important;
  color: #c53030 !important;
  border: 1px solid rgba(var(--tblr-danger-rgb), 0.25) !important;
}

/* KPI Stat Badges */
.wc-employees-page--timesheet-detail .wc-ts-kpi {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
  flex-wrap: nowrap !important;
  margin: 0 !important;
}

@media (max-width: 991px) {

  .wc-employees-page--timesheet-detail .tblr-page-header,
  .wc-employees-page--timesheet-detail .wc-ts-detail-header {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }

  .wc-employees-page--timesheet-detail .wc-ts-detail-header__left {
    margin-right: 0 !important;
    width: 100% !important;
  }

  .wc-employees-page--timesheet-detail .wc-ts-kpi {
    width: 100% !important;
    overflow-x: auto !important;
    padding-bottom: 4px !important;
  }
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip {
  display: inline-flex;
  flex-direction: column;
  padding: 6px 12px;
  border-radius: var(--tblr-radius-md);
  background: var(--tblr-surface);
  border: 1px solid var(--tblr-border-color);
  box-shadow: var(--tblr-shadow-xs);
  min-width: 85px;
  transition: var(--tblr-transition-fast);
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip:hover {
  box-shadow: var(--tblr-shadow-sm);
  border-color: var(--tblr-border-strong);
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--tblr-text-secondary);
  margin-bottom: 2px;
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__value {
  font-size: 15px;
  font-weight: 700;
  color: var(--tblr-text-main);
  line-height: 1.2;
  font-feature-settings: "tnum";
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--ok {
  background: rgba(var(--tblr-success-rgb), 0.05);
  border-color: rgba(var(--tblr-success-rgb), 0.25);
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--ok .wc-ts-kpi__label,
.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--ok .wc-ts-kpi__value {
  color: #1e7e34;
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--late {
  background: rgba(var(--tblr-warning-rgb), 0.05);
  border-color: rgba(var(--tblr-warning-rgb), 0.3);
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--late .wc-ts-kpi__label,
.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--late .wc-ts-kpi__value {
  color: #b7791f;
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--ot {
  background: rgba(var(--tblr-azure-rgb), 0.05);
  border-color: rgba(var(--tblr-azure-rgb), 0.25);
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--ot .wc-ts-kpi__label,
.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--ot .wc-ts-kpi__value {
  color: #2b6cb0;
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--off {
  background: rgba(var(--tblr-secondary-rgb), 0.05);
  border-color: rgba(var(--tblr-secondary-rgb), 0.25);
}

.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--off .wc-ts-kpi__label,
.wc-employees-page--timesheet-detail .wc-ts-kpi__chip--off .wc-ts-kpi__value {
  color: #475569;
}

/* Toolbar & Filter Styling */
.wc-employees-page--timesheet-detail .wc-ts-detail-toolbar {
  padding: 10px 20px !important;
  background-color: var(--tblr-surface);
  border-bottom: 1px solid var(--tblr-border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.wc-employees-page--timesheet-detail .wc-ts-detail-toolbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
}

.wc-employees-page--timesheet-detail .wc-ts-search-form {
  width: 220px;
  min-width: 180px;
  margin: 0;
  flex-shrink: 0;
}

.wc-employees-page--timesheet-detail .wc-ts-search-form .tblr-input-icon {
  width: 100%;
  height: 36px;
  position: relative;
}

.wc-employees-page--timesheet-detail .wc-ts-search-form .tblr-form-control {
  height: 36px;
  padding-left: 2.25rem;
  padding-right: 2.25rem;
  font-size: 13px;
  line-height: 34px;
}

.wc-employees-page--timesheet-detail .wc-ts-filter-select.tblr-form-select {
  width: 160px;
  min-width: 140px;
  flex-shrink: 0;
  height: 36px;
  font-size: 13px;
  padding: 4px 10px;
  margin: 0;
}

.wc-employees-page--timesheet-detail .wc-ts-detail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: nowrap;
  margin-left: auto;
}

.wc-employees-page--timesheet-detail .tblr-btn {
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  white-space: nowrap;
}

/* Chrome / Sub-toolbar */
.wc-employees-page--timesheet-detail .wc-ts-grid-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 20px !important;
  background-color: var(--tblr-surface-subtle);
  border-bottom: 1px solid var(--tblr-border-color);
}

.wc-employees-page--timesheet-detail .wc-ts-detail-toolbar__hint {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tblr-text-secondary);
}

.wc-employees-page--timesheet-detail .wc-ts-grid-hint {
  font-size: 12px;
  color: var(--tblr-text-muted);
  margin: 0;
}

.wc-employees-page--timesheet-detail .tblr-btn-group {
  display: inline-flex;
  background: #f1f5f9;
  padding: 2px;
  border-radius: 6px;
  border: 1px solid var(--tblr-border-color);
}

.wc-employees-page--timesheet-detail .tblr-btn-group .wc-ts-view-toggle__btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.wc-employees-page--timesheet-detail .tblr-btn-group .wc-ts-view-toggle__btn--active {
  background: #ffffff;
  color: #1e293b;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wc-employees-page--timesheet-detail .wc-ts-legend {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 11.5px;
  color: var(--tblr-text-secondary);
}

.wc-employees-page--timesheet-detail .wc-ts-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Suppress legacy ::before dot in legend since Tabler soft badges already show indicator */
.wc-employees-page--timesheet-detail .wc-ts-legend__item::before {
  display: none !important;
}

/* Timesheet Grid Matrix - Width & Alignment Fixes */
.wc-employees-page--timesheet-detail .wc-timesheet-grid-wrap {
  overflow: auto;
  border-top: none;
  background-color: var(--tblr-surface);
  position: relative;
  max-height: calc(100vh - 380px);
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid {
  width: max-content !important;
  min-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 12px;
  margin: 0;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid th {
  position: sticky;
  top: 0;
  z-index: 4;
  background-color: #f8fafc;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 8px 6px;
  border-bottom: 1px solid var(--tblr-border-color);
  border-right: 1px solid var(--tblr-border-subtle);
  text-align: center;
  vertical-align: middle;
  white-space: nowrap;
  box-sizing: border-box;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid tbody tr {
  height: 58px !important;
  max-height: 58px !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid td {
  height: 58px !important;
  max-height: 58px !important;
  padding: 3px 4px !important;
  border-bottom: 1px solid var(--tblr-border-subtle) !important;
  border-right: 1px solid var(--tblr-border-subtle) !important;
  vertical-align: middle !important;
  text-align: center !important;
  background-color: var(--tblr-surface) !important;
  box-sizing: border-box !important;
}

.wc-employees-page--timesheet-detail .wc-ts-row--alt td {
  background-color: #fcfdfe !important;
}

.wc-employees-page--timesheet-detail .wc-ts-row:hover td {
  background-color: #f8fafc !important;
}

/* Sticky Columns - Dynamic Name Width (shrink-to-fit with max-width ceiling 280px) */
.wc-employees-page--timesheet-detail {
  --wc-ts-name-col-width: 240px;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid th.wc-ts-sticky-col,
.wc-employees-page--timesheet-detail .wc-timesheet-grid td.wc-ts-sticky-col,
.wc-employees-page--timesheet-detail .wc-ts-sticky-col {
  position: sticky !important;
  z-index: 3 !important;
  background-color: var(--tblr-surface) !important;
  box-sizing: border-box !important;
  height: 58px !important;
  max-height: 58px !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid thead th.wc-ts-sticky-col {
  z-index: 6 !important;
  background-color: #f8fafc !important;
  height: auto !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid tbody tr.wc-ts-row--alt td.wc-ts-sticky-col {
  background-color: #fcfdfe !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid tbody tr:hover td.wc-ts-sticky-col {
  background-color: #f8fafc !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid th.wc-ts-sticky-col--check,
.wc-employees-page--timesheet-detail .wc-timesheet-grid td.wc-ts-sticky-col--check {
  left: 0 !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  text-align: center !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid th.wc-ts-sticky-col--name,
.wc-employees-page--timesheet-detail .wc-timesheet-grid td.wc-ts-sticky-col--name {
  left: 44px !important;
  width: var(--wc-ts-name-col-width, 240px) !important;
  min-width: var(--wc-ts-name-col-width, 240px) !important;
  max-width: var(--wc-ts-name-col-width, 240px) !important;
  text-align: left !important;
  padding: 4px 10px !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid th.wc-ts-sticky-col--unit,
.wc-employees-page--timesheet-detail .wc-timesheet-grid td.wc-ts-sticky-col--unit {
  display: none !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid th.wc-ts-sticky-col--total,
.wc-employees-page--timesheet-detail .wc-timesheet-grid td.wc-ts-sticky-col--total {
  left: calc(44px + var(--wc-ts-name-col-width, 240px)) !important;
  width: 80px !important;
  min-width: 80px !important;
  max-width: 80px !important;
  text-align: center !important;
  border-right: 2px solid var(--tblr-border-color) !important;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06) !important;
  box-sizing: border-box !important;
}

.wc-employees-page--timesheet-detail .wc-ts-total-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  font-feature-settings: "tnum";
  background-color: rgba(var(--tblr-primary-rgb), 0.08);
  color: var(--tblr-primary);
  border: 1px solid rgba(var(--tblr-primary-rgb), 0.2);
}

/* Day columns - Chuẩn min-width: 108px, compact: 56px */
.wc-employees-page--timesheet-detail th.wc-ts-day-col,
.wc-employees-page--timesheet-detail td.wc-ts-cell {
  min-width: 108px !important;
  height: 58px !important;
  max-height: 58px !important;
  padding: 3px 4px !important;
  vertical-align: middle !important;
  box-sizing: border-box !important;
}

.wc-employees-page--timesheet-detail td.wc-ts-cell {
  position: relative !important;
  isolation: isolate !important;
  cursor: default !important;
}

.wc-employees-page--timesheet-detail .wc-timesheet-grid--compact th.wc-ts-day-col,
.wc-employees-page--timesheet-detail .wc-timesheet-grid--compact td.wc-ts-cell {
  min-width: 56px !important;
}

/* Weekend Column Rhythm */
.wc-employees-page--timesheet-detail th.wc-ts-day-col--weekend,
.wc-employees-page--timesheet-detail td.wc-ts-day-col--weekend {
  background-color: #f8fafc !important;
}

.wc-employees-page--timesheet-detail th.wc-ts-day-col--weekend {
  border-right: 1px solid var(--tblr-border-color) !important;
}

.wc-employees-page--timesheet-detail td.wc-ts-day-col--weekend {
  border-right: 1px solid var(--tblr-border-color) !important;
}

/* Day Header Typography */
.wc-employees-page--timesheet-detail .wc-ts-day-head__dow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.wc-employees-page--timesheet-detail .wc-ts-day-head__dow--weekend {
  color: #e11d48 !important;
  font-weight: 700;
}

.wc-employees-page--timesheet-detail .wc-ts-day-head__date {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  font-feature-settings: "tnum";
}

/* Employee cell in grid */
.wc-employees-page--timesheet-detail .wc-ts-employee {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}

.wc-employees-page--timesheet-detail .wc-ts-employee__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(var(--tblr-primary-rgb), 0.1);
  color: var(--tblr-primary);
  font-weight: 700;
  font-size: 11.5px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wc-employees-page--timesheet-detail .wc-ts-employee__meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
  text-align: left;
  flex: 1 1 auto;
  overflow: hidden;
}

.wc-employees-page--timesheet-detail .wc-ts-employee__name {
  font-size: 13px;
  font-weight: 600;
  color: var(--tblr-text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
  display: block;
  max-width: 100%;
}

.wc-employees-page--timesheet-detail .wc-ts-employee__role {
  font-size: 11px;
  color: var(--tblr-text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: block;
  max-width: 100%;
}

.wc-employees-page--timesheet-detail .wc-ts-employee__dept {
  font-size: 11px;
  font-style: italic;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.2;
  display: block;
  max-width: 100%;
}

.wc-employees-page--timesheet-detail .wc-ts-unit {
  font-size: 12px;
  font-weight: 500;
  color: #334155;
}

/* Bố cục ngăn xếp Slot trong ô: Cố định không để phình row */
.wc-employees-page--timesheet-detail .wc-ts-cell__stack,
.wc-employees-page--timesheet-detail .wc-ts-cell__inner {
  position: relative !important;
  height: 100% !important;
  max-height: 52px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  gap: 2px !important;
  box-sizing: border-box !important;
}

/* Ô 1 CÔNG (Single slot): Chiếm trọn ô, hiển thị cả giờ vào - ra */
.wc-employees-page--timesheet-detail .wc-ts-slot {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  padding: 2px 6px;
  border-radius: 6px;
  height: 100%;
  min-height: 44px;
  max-height: 50px;
  border: 1px solid var(--tblr-border-color);
  background: var(--tblr-surface);
  transition: var(--tblr-transition-fast);
  box-sizing: border-box;
  cursor: pointer;
}

.wc-employees-page--timesheet-detail .wc-ts-slot__top {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  line-height: 1;
}

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

.wc-employees-page--timesheet-detail .wc-ts-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
}

.wc-employees-page--timesheet-detail .wc-ts-dot--full {
  background-color: var(--tblr-success);
}

.wc-employees-page--timesheet-detail .wc-ts-dot--half {
  background-color: var(--tblr-warning);
}

.wc-employees-page--timesheet-detail .wc-ts-cell__value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  font-feature-settings: "tnum";
}

/* Giờ chấm công: Hiển thị đầy đủ cho ô 1 công */
.wc-employees-page--timesheet-detail .wc-ts-cell__time {
  display: block !important;
  color: #64748b;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  font-feature-settings: "tnum";
  white-space: nowrap;
}

.wc-employees-page--timesheet-detail .wc-ts-time--red {
  color: var(--tblr-danger) !important;
  font-weight: 700;
}

.wc-employees-page--timesheet-detail .wc-ts-flag--ot {
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background-color: rgba(var(--tblr-azure-rgb), 0.14) !important;
  color: var(--tblr-azure) !important;
  line-height: 1.2;
}

/* Nhãn trạng thái vắng/nghỉ */
.wc-employees-page--timesheet-detail .wc-ts-cell__off-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--tblr-text-secondary);
}

/* ==============================================================================
 * MULTI-SLOT (Từ 2 công / n công trở lên):
 * 1. Chiều cao mỗi công = Chiều cao của row / n (flex chia đều trong 52px)
 * 2. KHÔNG HIỂN THỊ GIỜ trong trường hợp này
 * ============================================================================== */
.wc-employees-page--timesheet-detail .wc-ts-cell--multi .wc-ts-slot,
.wc-employees-page--timesheet-detail .wc-ts-cell:has(.wc-ts-slot + .wc-ts-slot) .wc-ts-slot {
  flex: 1 1 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 1px 4px !important;
  border-radius: 4px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  box-sizing: border-box !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--multi .wc-ts-slot__top,
.wc-employees-page--timesheet-detail .wc-ts-cell:has(.wc-ts-slot + .wc-ts-slot) .wc-ts-slot__top {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 3px !important;
  line-height: 1 !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--multi .wc-ts-cell__shift,
.wc-employees-page--timesheet-detail .wc-ts-cell:has(.wc-ts-slot + .wc-ts-slot) .wc-ts-cell__shift {
  font-size: 10px !important;
  max-width: 48px !important;
  line-height: 1 !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--multi .wc-ts-cell__value,
.wc-employees-page--timesheet-detail .wc-ts-cell:has(.wc-ts-slot + .wc-ts-slot) .wc-ts-cell__value {
  font-size: 11px !important;
  min-width: 20px !important;
  min-height: 16px !important;
  line-height: 1 !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--multi .wc-ts-cell__off-label,
.wc-employees-page--timesheet-detail .wc-ts-cell:has(.wc-ts-slot + .wc-ts-slot) .wc-ts-cell__off-label {
  font-size: 10.5px !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}

/* Ẩn giờ hoàn toàn khi từ 2 công trở lên */
.wc-employees-page--timesheet-detail .wc-ts-cell--multi .wc-ts-cell__time,
.wc-employees-page--timesheet-detail .wc-ts-cell:has(.wc-ts-slot + .wc-ts-slot) .wc-ts-cell__time {
  display: none !important;
}

/* Tabler Soft Color Overrides cho các trạng thái công */
.wc-employees-page--timesheet-detail .wc-ts-cell--full .wc-ts-slot,
.wc-employees-page--timesheet-detail .wc-ts-slot.wc-ts-cell--full {
  background-color: rgba(var(--tblr-success-rgb), 0.08) !important;
  border-color: rgba(var(--tblr-success-rgb), 0.25) !important;
  border-left: 3px solid var(--tblr-success) !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--full .wc-ts-cell__value {
  color: #1e7e34 !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--half .wc-ts-slot,
.wc-employees-page--timesheet-detail .wc-ts-slot.wc-ts-cell--half {
  background-color: rgba(var(--tblr-azure-rgb), 0.08) !important;
  border-color: rgba(var(--tblr-azure-rgb), 0.25) !important;
  border-left: 3px solid var(--tblr-azure) !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--half .wc-ts-cell__value {
  color: #2b6cb0 !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--leave .wc-ts-slot,
.wc-employees-page--timesheet-detail .wc-ts-slot.wc-ts-cell--leave {
  background-color: rgba(var(--tblr-warning-rgb), 0.09) !important;
  border-color: rgba(var(--tblr-warning-rgb), 0.25) !important;
  border-left: 3px solid var(--tblr-warning) !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--leave .wc-ts-cell__off-label,
.wc-employees-page--timesheet-detail .wc-ts-cell--leave .wc-ts-cell__value {
  color: #b7791f !important;
  font-weight: 700;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--absent .wc-ts-slot,
.wc-employees-page--timesheet-detail .wc-ts-slot.wc-ts-cell--absent {
  background-color: rgba(var(--tblr-danger-rgb), 0.08) !important;
  border-color: rgba(var(--tblr-danger-rgb), 0.22) !important;
  border-left: 3px solid var(--tblr-danger) !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--absent .wc-ts-cell__off-label {
  color: var(--tblr-danger) !important;
  font-weight: 700;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--off .wc-ts-slot,
.wc-employees-page--timesheet-detail .wc-ts-slot.wc-ts-cell--off {
  background-color: transparent !important;
  border-color: transparent !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--off .wc-ts-cell__off-label {
  color: #94a3b8 !important;
  font-size: 11px;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--future .wc-ts-slot,
.wc-employees-page--timesheet-detail .wc-ts-slot.wc-ts-cell--future {
  background-color: transparent !important;
  border-color: transparent !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell--future .wc-ts-cell__off-label {
  color: #cbd5e1 !important;
  font-size: 11px;
}

/* ==============================================================================
 * HOVER ACTION OVERLAY & ACTION BUTTONS
 * Bố cục chuẩn nổi bật, không che mờ nội dung, hỗ trợ click mượt mà
 * ============================================================================== */
.wc-employees-page--timesheet-detail .wc-ts-cell__overlay {
  position: absolute !important;
  inset: 0 !important;
  background: rgba(15, 23, 42, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  border-radius: 6px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  z-index: 20 !important;
  transition: opacity 0.12s ease-in-out, visibility 0.12s ease-in-out !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell:not(.wc-ts-cell--locked):hover .wc-ts-cell__overlay {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell.wc-ts-cell--locked .wc-ts-cell__overlay {
  display: none !important;
  pointer-events: none !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18) !important;
  transition: background 0.12s ease, color 0.12s ease, box-shadow 0.12s ease !important;
  color: #1f2937 !important;
  padding: 0 !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 25 !important;
  line-height: 1 !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action i {
  font-size: 14px !important;
  line-height: 1 !important;
  pointer-events: none !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action:hover {
  transform: none !important;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.3) !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action--add {
  color: #16a34a !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action--add:hover {
  background: #f0fdf4 !important;
  color: #15803d !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action--edit {
  color: #2563eb !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action--edit:hover {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action--delete {
  color: #dc2626 !important;
}

.wc-employees-page--timesheet-detail .wc-ts-cell-action--delete:hover {
  background: #fef2f2 !important;
  color: #b91c1c !important;
}

/* Pager */
.wc-employees-page--timesheet-detail .wc-ts-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 12px !important;
  background-color: var(--tblr-surface-subtle);
  border-top: 1px solid var(--tblr-border-color);
}

/* ==============================================================================
 * 12. TABLER MODAL SMOOTH CENTERING & ZERO-JITTER FIX
 * ============================================================================== */

/* Modal container: fixed full screen, centered flex container */
.modal.wc-confirm-modal {
  padding: 0 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  text-align: center;
}

/* Flexbox centering active whenever modal is shown */
.modal.wc-confirm-modal.show,
body.wc-confirm-modal-stack-open .modal.wc-confirm-modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
}

/* Strictly hide when not shown - prevents any premature rendering */
.modal.wc-confirm-modal:not(.show) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* Disable Bootstrap 4 .modal-dialog-centered::before dummy 100vh pusher
   which creates 150vh vertical overflow & scrollbar jitter inside flex container */
.modal.wc-confirm-modal .modal-dialog-centered::before {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  content: none !important;
}

/* Modal dialog: perfectly centered from frame 0 via margin: auto in flexbox */
.modal.wc-confirm-modal .modal-dialog,
.modal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog,
body.wc-confirm-modal-stack-open .modal.wc-confirm-modal .modal-dialog {
  margin: auto !important;
  position: relative !important;
  pointer-events: auto !important;
  max-width: 480px;
  width: calc(100% - 32px);
  min-height: auto !important;
}

.modal.wc-confirm-modal .modal-content,
.modal.wc-confirm-modal .wc-confirm-modal__content {
  text-align: left !important;
}

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

#wcTsAddStaffModal .modal-dialog.wc-confirm-modal__dialog,
#wcTsRemoveStaffModal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 980px !important;
}

/* Modern Tabler-grade scale-fade transition:
   Replaces Bootstrap's jerky translate(0, -50px) drop-from-top */
.modal.wc-confirm-modal.fade .modal-dialog {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.18s ease-out !important;
  transform: scale(0.96) !important;
  opacity: 0 !important;
}

.modal.wc-confirm-modal.show .modal-dialog {
  transform: scale(1) !important;
  opacity: 1 !important;
}

/* Modal wrapper must NEVER have a dark background (kills #000000ba double-dim from legacy style.css) */
.modal.wc-confirm-modal,
body.wc-confirm-modal-stack-open .modal.wc-confirm-modal,
#wcPeriodFormModal,
#wcPeriodDeleteModal,
#wcShiftFormModal,
#wcShiftDeleteModal,
#wcHolidayFormModal,
#wcHolidayDeleteModal,
#wcLeaveTypeFormModal,
#wcLeaveTypeDeleteModal,
#wcTsSlotModal,
#wcTsAddStaffModal,
#wcTsRemoveStaffModal,
#wcTsDeleteSlotModal,
#wcTsReplaceRequestModal,
#wcBulkTimesheetModal,
#wcBulkStaffPickerModal,
#wcSalaryLineModal,
#wcPayslipExportShareModal {
  background: transparent !important;
  background-color: transparent !important;
}

/* Backdrop: uniform solid slate #0f172a, smoothly fading from 0 to 0.48 */
.modal-backdrop {
  background-color: #0f172a !important;
  background: #0f172a !important;
  transition: opacity 0.2s ease-out !important;
}

.modal-backdrop.fade {
  opacity: 0 !important;
}

.modal-backdrop.show,
body.wc-confirm-modal-stack-open .modal-backdrop.show {
  opacity: 0.48 !important;
}

body.wc-confirm-modal-stack-open .modal-backdrop:not(.show) {
  opacity: 0 !important;
}

/* ==============================================================================
 * 13. TABLER MODAL SỬA CA / CHI TIẾT Ô CÔNG (#wcTsSlotModal)
 * ============================================================================== */

/* Modal Dialog Sizing & Placement */
#wcTsSlotModal.wc-confirm-modal .modal-dialog,
#wcTsSlotModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 580px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  text-align: left !important;
}

/* Modal Content Card */
#wcTsSlotModal .modal-content,
#wcTsSlotModal .wc-confirm-modal__content {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-xl, 12px) !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  text-align: left !important;
}

/* Modal Header - Left Aligned */
#wcTsSlotModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-confirm-modal__title-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  text-align: left !important;
  gap: 3px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

#wcTsSlotModal .wc-confirm-modal__title {
  margin: 0 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--tblr-text-main, #1e293b) !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-ts-modal-sub {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 12px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.4 !important;
  text-align: left !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
}

#wcTsSlotModal .wc-ts-modal-sub__name {
  font-weight: 600 !important;
  color: var(--tblr-text-main, #0f172a) !important;
}

#wcTsSlotModal .wc-ts-modal-sub__code {
  color: var(--tblr-text-muted, #94a3b8) !important;
}

#wcTsSlotModal .wc-ts-modal-sub__sep {
  color: #cbd5e1 !important;
  margin: 0 4px !important;
}

#wcTsSlotModal .wc-ts-modal-sub__date {
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 500 !important;
}

/* Close Button */
#wcTsSlotModal .wc-confirm-modal__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: none !important;
  background: transparent !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

#wcTsSlotModal .wc-confirm-modal__close:hover {
  background-color: #f1f5f9 !important;
  color: var(--tblr-text-main, #0f172a) !important;
}

#wcTsSlotModal .wc-confirm-modal__close:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(var(--tblr-primary-rgb, 32, 107, 196), 0.2) !important;
}

#wcTsSlotModal .wc-confirm-modal__close svg {
  width: 20px !important;
  height: 20px !important;
  stroke: currentColor !important;
}

/* Modal Body - Left Aligned */
#wcTsSlotModal .wc-confirm-modal__body {
  padding: 20px 22px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  text-align: left !important;
}

/* Half Leave Notice Banner */
#wcTsSlotModal #wcTsHalfLeaveNotice {
  border-radius: var(--tblr-radius-md, 6px) !important;
  padding: 10px 14px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin-bottom: 16px !important;
  text-align: left !important;
}

#wcTsSlotModal #wcTsHalfLeaveNotice.alert-info {
  background-color: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #1d4ed8 !important;
}

#wcTsSlotModal #wcTsHalfLeaveNotice.alert-warning {
  background-color: #fefce8 !important;
  border: 1px solid #fef08a !important;
  color: #854d0e !important;
}

/* Form Grid */
#wcTsSlotModal .wc-bulk-timesheet-form {
  gap: 16px !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-bulk-timesheet-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 14px 16px !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-bulk-timesheet-field {
  display: flex !important;
  flex-direction: column !important;
  gap: 5px !important;
  min-width: 0 !important;
  text-align: left !important;
  align-items: stretch !important;
}

#wcTsSlotModal .wc-bulk-timesheet-field--full {
  grid-column: 1 / -1 !important;
}

/* Form Labels - MUST BE EXPLICITLY LEFT ALIGNED */
#wcTsSlotModal .wc-profile-label {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  line-height: 1.4 !important;
  margin: 0 !important;
  text-align: left !important;
  display: block !important;
}

/* Form Inputs & Selects */
#wcTsSlotModal .wc-profile-input,
#wcTsSlotModal .wc-profile-select {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  line-height: 1.4 !important;
  color: var(--tblr-text-main, #1e293b) !important;
  background-color: #ffffff !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  padding: 6px 12px !important;
  min-height: 38px !important;
  height: 38px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  text-align: left !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#wcTsSlotModal .wc-profile-input:focus,
#wcTsSlotModal .wc-profile-select:focus {
  outline: none !important;
  border-color: #90cdf4 !important;
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb, 32, 107, 196), 0.15) !important;
}

#wcTsSlotModal .wc-profile-input:disabled,
#wcTsSlotModal .wc-profile-select:disabled {
  background-color: #f8fafc !important;
  color: #94a3b8 !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed !important;
  opacity: 0.8 !important;
}

/* Chips & Field Head for Công / Giờ thực tế - Perfectly Aligned Row */
#wcTsSlotModal .wc-bulk-field-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 24px !important;
  height: 24px !important;
  margin-bottom: 2px !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-bulk-field-head .wc-profile-label {
  margin: 0 !important;
  line-height: 24px !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-bulk-chips {
  display: inline-flex !important;
  background-color: #f1f5f9 !important;
  padding: 2px !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid #e2e8f0 !important;
  gap: 2px !important;
  align-items: center !important;
}

#wcTsSlotModal .wc-bulk-chip {
  border: none !important;
  background: transparent !important;
  padding: 2px 9px !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  border-radius: var(--tblr-radius-sm, 4px) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  height: 20px !important;
  line-height: 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

#wcTsSlotModal .wc-bulk-chip:hover {
  background-color: rgba(255, 255, 255, 0.6) !important;
  color: #1e293b !important;
}

#wcTsSlotModal .wc-bulk-chip--active {
  background-color: #ffffff !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

#wcTsSlotModal .wc-bulk-chip.disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

/* Input Unit ("giờ") */
#wcTsSlotModal .wc-bulk-input-unit {
  position: relative !important;
  width: 100% !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-bulk-input-unit .wc-profile-input {
  padding-right: 42px !important;
}

#wcTsSlotModal .wc-bulk-input-unit__label {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  pointer-events: none !important;
  line-height: 1 !important;
}

/* OT (Làm thêm giờ) Block - Left Aligned */
#wcTsSlotModal .wc-bulk-ot {
  margin-top: 4px !important;
  padding: 12px 14px !important;
  border: 1px solid #eef2f6 !important;
  border-radius: var(--tblr-radius-lg, 8px) !important;
  background-color: #f8fafc !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-bulk-ot__toggle {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-confirm-modal__checkbox {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  cursor: pointer !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-confirm-modal__checkbox input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  accent-color: var(--tblr-primary, #206bc4) !important;
  cursor: pointer !important;
}

#wcTsSlotModal .wc-bulk-ot__badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 8px !important;
  border-radius: 999px !important;
  background-color: #e8f0fe !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

#wcTsSlotModal .wc-bulk-ot__fields {
  margin-top: 12px !important;
  padding-top: 12px !important;
  border-top: 1px dashed #e2e8f0 !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-bulk-time-range {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  text-align: left !important;
}

#wcTsSlotModal .wc-bulk-time-range__sep {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  flex: 0 0 auto !important;
}

/* Modal Footer & Buttons */
#wcTsSlotModal .wc-confirm-modal__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 14px 22px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-bottom-left-radius: var(--tblr-radius-xl, 12px) !important;
  border-bottom-right-radius: var(--tblr-radius-xl, 12px) !important;
}

.wc-confirm-modal .wc-confirm-modal__btn,
#wcTsSlotModal .wc-confirm-modal__btn,
#wcBulkTimesheetModal .wc-confirm-modal__btn,
#wcBulkStaffPickerModal .wc-confirm-modal__btn,
#wcRosterAssignModal .wc-confirm-modal__btn,
#wcRosterStaffPickerModal .wc-confirm-modal__btn,
#wcTsAddStaffModal .wc-confirm-modal__btn,
#wcTsRemoveStaffModal .wc-confirm-modal__btn,
#wcTsDeleteSlotModal .wc-confirm-modal__btn,
#wcTsReplaceRequestModal .wc-confirm-modal__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.wc-confirm-modal .wc-confirm-modal__btn--cancel,
#wcTsSlotModal .wc-confirm-modal__btn--cancel,
#wcBulkTimesheetModal .wc-confirm-modal__btn--cancel,
#wcBulkStaffPickerModal .wc-confirm-modal__btn--cancel,
#wcRosterAssignModal .wc-confirm-modal__btn--cancel,
#wcRosterStaffPickerModal .wc-confirm-modal__btn--cancel,
#wcTsAddStaffModal .wc-confirm-modal__btn--cancel,
#wcTsRemoveStaffModal .wc-confirm-modal__btn--cancel,
#wcTsDeleteSlotModal .wc-confirm-modal__btn--cancel,
#wcTsReplaceRequestModal .wc-confirm-modal__btn--cancel {
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background: #ffffff !important;
  color: var(--tblr-text-secondary, #475569) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.wc-confirm-modal .wc-confirm-modal__btn--cancel:hover,
#wcTsSlotModal .wc-confirm-modal__btn--cancel:hover,
#wcBulkTimesheetModal .wc-confirm-modal__btn--cancel:hover,
#wcBulkStaffPickerModal .wc-confirm-modal__btn--cancel:hover,
#wcRosterAssignModal .wc-confirm-modal__btn--cancel:hover,
#wcRosterStaffPickerModal .wc-confirm-modal__btn--cancel:hover,
#wcTsAddStaffModal .wc-confirm-modal__btn--cancel:hover,
#wcTsRemoveStaffModal .wc-confirm-modal__btn--cancel:hover,
#wcTsDeleteSlotModal .wc-confirm-modal__btn--cancel:hover,
#wcTsReplaceRequestModal .wc-confirm-modal__btn--cancel:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: var(--tblr-text-main, #0f172a) !important;
}

.wc-confirm-modal .wc-confirm-modal__btn--primary,
#wcTsSlotModal .wc-confirm-modal__btn--primary,
#wcBulkTimesheetModal .wc-confirm-modal__btn--primary,
#wcBulkStaffPickerModal .wc-confirm-modal__btn--primary,
#wcRosterAssignModal .wc-confirm-modal__btn--primary,
#wcRosterStaffPickerModal .wc-confirm-modal__btn--primary,
#wcTsAddStaffModal .wc-confirm-modal__btn--primary,
#wcTsReplaceRequestModal .wc-confirm-modal__btn--primary {
  border: 1px solid var(--tblr-primary, #206bc4) !important;
  background-color: var(--tblr-primary, #206bc4) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(32, 107, 196, 0.25) !important;
}

.wc-confirm-modal .wc-confirm-modal__btn--primary:hover,
#wcTsSlotModal .wc-confirm-modal__btn--primary:hover,
#wcBulkTimesheetModal .wc-confirm-modal__btn--primary:hover,
#wcBulkStaffPickerModal .wc-confirm-modal__btn--primary:hover,
#wcRosterAssignModal .wc-confirm-modal__btn--primary:hover,
#wcRosterStaffPickerModal .wc-confirm-modal__btn--primary:hover,
#wcTsAddStaffModal .wc-confirm-modal__btn--primary:hover,
#wcTsReplaceRequestModal .wc-confirm-modal__btn--primary:hover {
  border-color: var(--tblr-primary-hover, #1a569d) !important;
  background-color: var(--tblr-primary-hover, #1a569d) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(32, 107, 196, 0.35) !important;
}

.wc-confirm-modal .wc-confirm-modal__btn--danger,
#wcTsRemoveStaffModal .wc-confirm-modal__btn--danger,
#wcTsDeleteSlotModal .wc-confirm-modal__btn--danger {
  border: 1px solid var(--tblr-danger, #d63939) !important;
  background-color: var(--tblr-danger, #d63939) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(214, 57, 57, 0.25) !important;
}

.wc-confirm-modal .wc-confirm-modal__btn--danger:hover,
#wcTsRemoveStaffModal .wc-confirm-modal__btn--danger:hover,
#wcTsDeleteSlotModal .wc-confirm-modal__btn--danger:hover {
  border-color: #b91c1c !important;
  background-color: #b91c1c !important;
  color: #ffffff !important;
  box-shadow: 0 2px 4px rgba(214, 57, 57, 0.35) !important;
}

.wc-confirm-modal .wc-confirm-modal__btn:disabled,
#wcTsSlotModal .wc-confirm-modal__btn:disabled,
#wcBulkTimesheetModal .wc-confirm-modal__btn:disabled,
#wcBulkStaffPickerModal .wc-confirm-modal__btn:disabled,
#wcTsAddStaffModal .wc-confirm-modal__btn:disabled,
#wcTsRemoveStaffModal .wc-confirm-modal__btn:disabled,
#wcTsDeleteSlotModal .wc-confirm-modal__btn:disabled {
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

/* In-place cell update animation */
@keyframes wcTsCellPulse {
  0% {
    background-color: rgba(32, 107, 196, 0.22) !important;
    box-shadow: inset 0 0 0 2px var(--tblr-primary, #206bc4) !important;
  }

  50% {
    background-color: rgba(32, 107, 196, 0.10) !important;
    box-shadow: inset 0 0 0 1.5px var(--tblr-primary, #206bc4) !important;
  }

  100% {
    background-color: transparent !important;
    box-shadow: none !important;
  }
}

.wc-ts-cell.wc-ts-cell--updated {
  animation: wcTsCellPulse 1.4s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
  position: relative !important;
  z-index: 5 !important;
}

/* ==============================================================================
 * 14. TABLER MODAL CHẤM CÔNG HÀNG LOẠT (#wcBulkTimesheetModal & #wcBulkStaffPickerModal)
 * ============================================================================== */

/* Safe Centering & Full-Viewport Bounds Overrides */
#wcBulkTimesheetModal.modal,
#wcRosterAssignModal.modal,
#wcBulkStaffPickerModal.modal,
#wcRosterStaffPickerModal.modal,
#wcTsAddStaffModal.modal,
#wcTsRemoveStaffModal.modal,
#wcTsDeleteSlotModal.modal,
#wcTsReplaceRequestModal.modal,
#wcShiftFormModal.modal,
#wcShiftDeleteModal.modal,
#wcOtFormModal.modal,
#wcOtDeleteModal.modal,
#wcHolidayFormModal.modal,
#wcHolidayDeleteModal.modal,
#wcLeaveTypeFormModal.modal,
#wcLeaveTypeDeleteModal.modal,
#wcPolicyFormModal.modal,
#wcPolicyDeleteModal.modal,
#wcPolicyHelpModal.modal,
#wcSalaryLineModal.modal,
#wcPayslipExportShareModal.modal,
#wcHrDeptFormModal.modal,
#wcHrDeptDeleteModal.modal,
#wcHrPosFormModal.modal,
#wcHrPosDeleteModal.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  margin: 0 !important;
  padding: 16px !important;
  background: transparent !important;
  background-color: transparent !important;
  box-sizing: border-box !important;
}

#wcBulkTimesheetModal.modal:not(.show),
#wcRosterAssignModal.modal:not(.show),
#wcBulkStaffPickerModal.modal:not(.show),
#wcRosterStaffPickerModal.modal:not(.show),
#wcTsAddStaffModal.modal:not(.show),
#wcTsRemoveStaffModal.modal:not(.show),
#wcTsDeleteSlotModal.modal:not(.show),
#wcTsReplaceRequestModal.modal:not(.show),
#wcShiftFormModal.modal:not(.show),
#wcShiftDeleteModal.modal:not(.show),
#wcOtFormModal.modal:not(.show),
#wcOtDeleteModal.modal:not(.show),
#wcHolidayFormModal.modal:not(.show),
#wcHolidayDeleteModal.modal:not(.show),
#wcLeaveTypeFormModal.modal:not(.show),
#wcLeaveTypeDeleteModal.modal:not(.show),
#wcPolicyFormModal.modal:not(.show),
#wcPolicyDeleteModal.modal:not(.show),
#wcPolicyHelpModal.modal:not(.show),
#wcSalaryLineModal.modal:not(.show),
#wcPayslipExportShareModal.modal:not(.show),
#wcHrDeptFormModal.modal:not(.show),
#wcHrDeptDeleteModal.modal:not(.show),
#wcHrPosFormModal.modal:not(.show),
#wcHrPosDeleteModal.modal:not(.show) {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

#wcBulkTimesheetModal.modal.show,
#wcRosterAssignModal.modal.show,
#wcBulkStaffPickerModal.modal.show,
#wcRosterStaffPickerModal.modal.show,
#wcTsAddStaffModal.modal.show,
#wcTsRemoveStaffModal.modal.show,
#wcTsDeleteSlotModal.modal.show,
#wcTsReplaceRequestModal.modal.show,
#wcShiftFormModal.modal.show,
#wcShiftDeleteModal.modal.show,
#wcOtFormModal.modal.show,
#wcOtDeleteModal.modal.show,
#wcHolidayFormModal.modal.show,
#wcHolidayDeleteModal.modal.show,
#wcLeaveTypeFormModal.modal.show,
#wcLeaveTypeDeleteModal.modal.show,
#wcPolicyFormModal.modal.show,
#wcPolicyDeleteModal.modal.show,
#wcPolicyHelpModal.modal.show,
#wcSalaryLineModal.modal.show,
#wcPayslipExportShareModal.modal.show,
#wcHrDeptFormModal.modal.show,
#wcHrDeptDeleteModal.modal.show,
#wcHrPosFormModal.modal.show,
#wcHrPosDeleteModal.modal.show {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 100vh !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

/* Bulk Modal Dialog Sizing */
#wcBulkTimesheetModal.wc-confirm-modal .modal-dialog,
#wcBulkTimesheetModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog,
#wcRosterAssignModal.wc-confirm-modal .modal-dialog,
#wcRosterAssignModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog,
#wcShiftFormModal.wc-confirm-modal .modal-dialog,
#wcShiftFormModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 860px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  text-align: left !important;
  max-height: 92vh !important;
}

#wcOtFormModal.wc-confirm-modal .modal-dialog,
#wcOtFormModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 580px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  text-align: left !important;
  max-height: 92vh !important;
}

#wcPolicyFormModal.wc-confirm-modal .modal-dialog,
#wcPolicyFormModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 680px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  text-align: left !important;
  max-height: 92vh !important;
}

#wcPolicyHelpModal.wc-confirm-modal .modal-dialog,
#wcPolicyHelpModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog,
#wcHrDeptFormModal.wc-confirm-modal .modal-dialog,
#wcHrDeptFormModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog,
#wcHrPosFormModal.wc-confirm-modal .modal-dialog,
#wcHrPosFormModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 560px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  text-align: left !important;
  max-height: 90vh !important;
}

#wcHrDeptDeleteModal.wc-confirm-modal .modal-dialog,
#wcHrDeptDeleteModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog,
#wcHrPosDeleteModal.wc-confirm-modal .modal-dialog,
#wcHrPosDeleteModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 440px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  text-align: left !important;
}

#wcBulkTimesheetModal .modal-content,
#wcBulkTimesheetModal .wc-confirm-modal__content,
#wcRosterAssignModal .modal-content,
#wcRosterAssignModal .wc-confirm-modal__content,
#wcShiftFormModal .modal-content,
#wcShiftFormModal .wc-confirm-modal__content,
#wcOtFormModal .modal-content,
#wcOtFormModal .wc-confirm-modal__content,
#wcHolidayFormModal .modal-content,
#wcHolidayFormModal .wc-confirm-modal__content,
#wcLeaveTypeFormModal .modal-content,
#wcLeaveTypeFormModal .wc-confirm-modal__content,
#wcPolicyFormModal .modal-content,
#wcPolicyFormModal .wc-confirm-modal__content,
#wcPolicyDeleteModal .modal-content,
#wcPolicyDeleteModal .wc-confirm-modal__content,
#wcPolicyHelpModal .modal-content,
#wcPolicyHelpModal .wc-confirm-modal__content,
#wcHrDeptFormModal .modal-content,
#wcHrDeptFormModal .wc-confirm-modal__content,
#wcHrDeptDeleteModal .modal-content,
#wcHrDeptDeleteModal .wc-confirm-modal__content,
#wcHrPosFormModal .modal-content,
#wcHrPosFormModal .wc-confirm-modal__content,
#wcHrPosDeleteModal .modal-content,
#wcHrPosDeleteModal .wc-confirm-modal__content {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-xl, 12px) !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 90vh !important;
}

#wcBulkTimesheetModal .wc-confirm-modal__header,
#wcRosterAssignModal .wc-confirm-modal__header,
#wcShiftFormModal .wc-confirm-modal__header,
#wcOtFormModal .wc-confirm-modal__header,
#wcHolidayFormModal .wc-confirm-modal__header,
#wcLeaveTypeFormModal .wc-confirm-modal__header,
#wcPolicyFormModal .wc-confirm-modal__header,
#wcPolicyDeleteModal .wc-confirm-modal__header,
#wcPolicyHelpModal .wc-confirm-modal__header,
#wcPayrollEntryFormModal .wc-confirm-modal__header,
#wcHrDeptFormModal .wc-confirm-modal__header,
#wcHrPosFormModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
}

#wcBulkTimesheetModal .wc-confirm-modal__title,
#wcRosterAssignModal .wc-confirm-modal__title,
#wcShiftFormModal .wc-confirm-modal__title,
#wcOtFormModal .wc-confirm-modal__title,
#wcHolidayFormModal .wc-confirm-modal__title,
#wcLeaveTypeFormModal .wc-confirm-modal__title,
#wcPolicyFormModal .wc-confirm-modal__title,
#wcPolicyDeleteModal .wc-confirm-modal__title,
#wcPolicyHelpModal .wc-confirm-modal__title,
#wcPayrollEntryFormModal .wc-confirm-modal__title,
#wcHrDeptFormModal .wc-confirm-modal__title,
#wcHrPosFormModal .wc-confirm-modal__title {
  margin: 0 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-main, #1e293b) !important;
}

#wcBulkTimesheetModal .wc-confirm-modal__body,
#wcRosterAssignModal .wc-confirm-modal__body,
#wcShiftFormModal .wc-confirm-modal__body,
#wcOtFormModal .wc-confirm-modal__body,
#wcHolidayFormModal .wc-confirm-modal__body,
#wcLeaveTypeFormModal .wc-confirm-modal__body,
#wcPolicyFormModal .wc-confirm-modal__body,
#wcPolicyDeleteModal .wc-confirm-modal__body,
#wcPolicyHelpModal .wc-confirm-modal__body,
#wcPayrollEntryFormModal .wc-confirm-modal__body,
#wcHrDeptFormModal .wc-confirm-modal__body,
#wcHrPosFormModal .wc-confirm-modal__body {
  padding: 20px 22px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  flex: 1 1 auto !important;
}

/* 2-Column Card Layout for Bulk Timesheet Sections */
.wc-bulk-cards-row {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

@media (max-width: 768px) {
  .wc-bulk-cards-row {
    grid-template-columns: 1fr !important;
  }
}

.wc-bulk-card {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-lg, 8px) !important;
  padding: 16px !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  box-sizing: border-box !important;
}

.wc-bulk-card--scope {
  background-color: #ffffff !important;
}

.wc-bulk-section__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed var(--tblr-border-color, #e6e8eb) !important;
  min-height: 40px !important;
  box-sizing: border-box !important;
}

.wc-bulk-section__title {
  margin: 0 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: var(--tblr-text-main, #0f172a) !important;
  display: inline-flex !important;
  align-items: center !important;
}

.wc-bulk-section__title i {
  font-size: 16px !important;
  color: var(--tblr-primary, #206bc4) !important;
}

/* Bulk Working Quick Preset Bar */
.wc-bulk-working-bar {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: center !important;
  margin-bottom: 8px !important;
}

/* Bulk Grid Fields */
#wcBulkTimesheetModal .wc-bulk-timesheet-grid,
#wcShiftFormModal .wc-bulk-timesheet-grid,
#wcOtFormModal .wc-bulk-timesheet-grid,
#wcPolicyFormModal .wc-bulk-timesheet-grid,
#wcPayrollEntryFormModal .wc-bulk-timesheet-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px 14px !important;
}

#wcBulkTimesheetModal .wc-bulk-timesheet-grid--3,
#wcShiftFormModal .wc-bulk-timesheet-grid--3,
#wcOtFormModal .wc-bulk-timesheet-grid--3,
#wcPolicyFormModal .wc-bulk-timesheet-grid--3,
#wcPayrollEntryFormModal .wc-bulk-timesheet-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

@media (max-width: 576px) {

  #wcBulkTimesheetModal .wc-bulk-timesheet-grid,
  #wcBulkTimesheetModal .wc-bulk-timesheet-grid--3,
  #wcShiftFormModal .wc-bulk-timesheet-grid,
  #wcShiftFormModal .wc-bulk-timesheet-grid--3,
  #wcOtFormModal .wc-bulk-timesheet-grid,
  #wcOtFormModal .wc-bulk-timesheet-grid--3,
  #wcPolicyFormModal .wc-bulk-timesheet-grid,
  #wcPolicyFormModal .wc-bulk-timesheet-grid--3,
  #wcPayrollEntryFormModal .wc-bulk-timesheet-grid,
  #wcPayrollEntryFormModal .wc-bulk-timesheet-grid--3 {
    grid-template-columns: 1fr !important;
  }
}

#wcBulkTimesheetModal .wc-bulk-timesheet-field--full,
#wcShiftFormModal .wc-bulk-timesheet-field--full,
#wcOtFormModal .wc-bulk-timesheet-field--full,
#wcPolicyFormModal .wc-bulk-timesheet-field--full,
#wcPayrollEntryFormModal .wc-bulk-timesheet-field--full {
  grid-column: 1 / -1 !important;
}

#wcBulkTimesheetModal .wc-profile-label,
#wcShiftFormModal .wc-profile-label,
#wcOtFormModal .wc-profile-label,
#wcPolicyFormModal .wc-profile-label,
#wcPayrollEntryFormModal .wc-profile-label {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--tblr-text-secondary, #475569) !important;
  margin-bottom: 4px !important;
  display: block !important;
}

#wcBulkTimesheetModal .tblr-form-control:not(textarea),
#wcBulkTimesheetModal .tblr-form-select,
#wcBulkTimesheetModal .wc-profile-input:not(textarea),
#wcBulkTimesheetModal .wc-profile-select,
#wcBulkStaffPickerModal .tblr-form-control:not(textarea),
#wcBulkStaffPickerModal .tblr-form-select,
#wcBulkStaffPickerModal .wc-profile-input:not(textarea),
#wcBulkStaffPickerModal .wc-profile-select,
#wcRosterAssignModal .tblr-form-control:not(textarea),
#wcRosterAssignModal .tblr-form-select,
#wcRosterAssignModal .wc-profile-input:not(textarea),
#wcRosterAssignModal .wc-profile-select,
#wcRosterStaffPickerModal .tblr-form-control:not(textarea),
#wcRosterStaffPickerModal .tblr-form-select,
#wcRosterStaffPickerModal .wc-profile-input:not(textarea),
#wcRosterStaffPickerModal .wc-profile-select,
.wc-confirm-modal .tblr-form-control:not(textarea),
.wc-confirm-modal .tblr-form-select,
.wc-bulk-timesheet-modal .tblr-form-control:not(textarea),
.wc-bulk-timesheet-modal .tblr-form-select,
.wc-bulk-staff-picker-modal .tblr-form-control:not(textarea),
.wc-bulk-staff-picker-modal .tblr-form-select {
  height: 36px !important;
  min-height: 36px !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background-color: #ffffff !important;
  color: var(--tblr-text-main, #0f172a) !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
}

.wc-confirm-modal textarea.tblr-form-control,
.wc-confirm-modal textarea.wc-profile-input,
.wc-confirm-modal textarea {
  height: auto;
  min-height: 64px;
  line-height: 1.5 !important;
  padding: 8px 12px !important;
  box-sizing: border-box !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background-color: #ffffff !important;
  color: var(--tblr-text-main, #0f172a) !important;
}

#wcOtFormModal .wc-bulk-cards-row,
#wcPolicyFormModal .wc-bulk-cards-row,
#wcPayrollEntryFormModal .wc-bulk-cards-row {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-bottom: 0 !important;
}

#wcOtDescription,
#wcOtFormModal #wcOtDescription {
  height: 90px !important;
  min-height: 90px !important;
  resize: vertical !important;
  line-height: 1.5 !important;
}

/* Search Inputs inside .tblr-input-icon: ALWAYS enforce 2.25rem padding-left and padding-right */
#wcRosterStaffPickerModal .tblr-input-icon .tblr-form-control,
#wcRosterStaffPickerModal .tblr-input-icon input[type="search"],
#wcRosterStaffPickerModal #wcRosterPickerSearch,
#wcRosterPickerSearch,
#wcBulkStaffPickerModal .tblr-input-icon .tblr-form-control,
#wcBulkStaffPickerModal .tblr-input-icon input[type="search"],
#wcBulkStaffPickerModal #wcBulkPickerSearch,
#wcBulkPickerSearch,
#wcTsAddStaffModal .tblr-input-icon .tblr-form-control,
#wcTsAddStaffModal .tblr-input-icon input[type="search"],
#wcTsAddStaffModal #wcTsAddStaffSearch,
#wcTsRemoveStaffModal .tblr-input-icon .tblr-form-control,
#wcTsRemoveStaffModal .tblr-input-icon input[type="search"],
#wcTsRemoveStaffModal #wcTsRemoveStaffSearch,
.wc-confirm-modal .tblr-input-icon .tblr-form-control,
.wc-confirm-modal .tblr-input-icon input[type="search"],
.wc-bulk-staff-picker-modal .tblr-input-icon .tblr-form-control,
.wc-bulk-staff-picker-modal .tblr-input-icon input[type="search"],
.tblr-input-icon .tblr-form-control,
.tblr-input-icon input[type="search"] {
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  line-height: 22px !important;
  box-sizing: border-box !important;
}

/* Ensure proper arrow and 5px margin between text and arrow for all dropdowns */
#wcBulkTimesheetModal select.tblr-form-select,
#wcBulkTimesheetModal select.wc-profile-select,
#wcBulkStaffPickerModal select.tblr-form-select,
#wcBulkStaffPickerModal select.wc-profile-select,
#wcRosterAssignModal select.tblr-form-select,
#wcRosterAssignModal select.wc-profile-select,
#wcRosterStaffPickerModal select.tblr-form-select,
#wcRosterStaffPickerModal select.wc-profile-select,
#wcTsSlotModal select.wc-profile-select,
.wc-confirm-modal select.tblr-form-select,
.wc-confirm-modal select.wc-profile-select,
select.tblr-form-select,
select.wc-profile-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px 14px !important;
  padding-left: 10px !important;
  padding-right: 29px !important;
  /* Arrow 10px-24px from right, margin to text is 5px */
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  cursor: pointer !important;
}

#wcBulkTimesheetModal .tblr-form-control:focus,
#wcBulkTimesheetModal .tblr-form-select:focus,
#wcBulkTimesheetModal .wc-profile-input:focus,
#wcBulkTimesheetModal .wc-profile-select:focus,
#wcBulkStaffPickerModal .tblr-form-control:focus,
#wcBulkStaffPickerModal .tblr-form-select:focus,
#wcBulkStaffPickerModal .wc-profile-input:focus,
#wcBulkStaffPickerModal .wc-profile-select:focus,
#wcRosterAssignModal .tblr-form-control:focus,
#wcRosterAssignModal .tblr-form-select:focus,
#wcRosterAssignModal .wc-profile-input:focus,
#wcRosterAssignModal .wc-profile-select:focus,
#wcRosterStaffPickerModal .tblr-form-control:focus,
#wcRosterStaffPickerModal .tblr-form-select:focus,
#wcRosterStaffPickerModal .wc-profile-input:focus,
#wcRosterStaffPickerModal .wc-profile-select:focus,
.wc-confirm-modal .tblr-form-control:focus,
.wc-confirm-modal .tblr-form-select:focus,
.wc-confirm-modal .wc-profile-input:focus,
.wc-confirm-modal .wc-profile-select:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb, 32, 107, 196), 0.15) !important;
  outline: none !important;
}

/* Bulk Date Range & Time Range */
.wc-bulk-date-range,
.wc-bulk-time-range {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
}

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

.wc-bulk-date-range__sep,
.wc-bulk-time-range__sep {
  color: var(--tblr-text-muted, #94a3b8) !important;
  font-weight: 600 !important;
  flex-shrink: 0 !important;
}

/* Unit Label */
#wcBulkTimesheetModal .wc-bulk-input-unit,
#wcShiftFormModal .wc-bulk-input-unit {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
}

#wcBulkTimesheetModal .wc-bulk-input-unit input,
#wcShiftFormModal .wc-bulk-input-unit input {
  padding-right: 48px !important;
  width: 100% !important;
}

#wcBulkTimesheetModal .wc-bulk-input-unit__label,
#wcShiftFormModal .wc-bulk-input-unit__label {
  position: absolute !important;
  right: 12px !important;
  color: var(--tblr-text-muted, #94a3b8) !important;
  font-size: 12px !important;
  pointer-events: none !important;
}

/* Multi-Select Shift Dropdown in Bulk Modal */
.wc-bulk-shift-dropdown {
  position: relative !important;
  width: 100% !important;
}

.wc-bulk-shift-trigger {
  width: 100% !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 6px !important;
  padding: 0 10px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  cursor: pointer !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px 14px !important;
  padding-right: 28px !important;
}

.wc-bulk-shift-trigger:focus,
.wc-bulk-shift-dropdown.show .wc-bulk-shift-trigger,
.wc-bulk-shift-dropdown.is-open .wc-bulk-shift-trigger {
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15) !important;
}

.wc-bulk-shift-trigger__text {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-weight: 500 !important;
  padding-right: 6px !important;
}

.wc-bulk-shift-trigger__badge {
  font-size: 11px !important;
  padding: 2px 6px !important;
  flex-shrink: 0 !important;
  margin-right: 6px !important;
}

.wc-bulk-shift-menu {
  position: absolute !important;
  top: calc(100% + 4px) !important;
  left: 0 !important;
  right: 0 !important;
  z-index: 1085 !important;
  background: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.1) !important;
  padding: 6px !important;
  min-width: 260px !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  display: none !important;
}

.wc-bulk-shift-menu.show,
.wc-bulk-shift-dropdown.show .wc-bulk-shift-menu,
.wc-bulk-shift-dropdown.is-open .wc-bulk-shift-menu {
  display: block !important;
}

.wc-bulk-shift-item {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 10px !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  user-select: none !important;
  margin-bottom: 2px !important;
  transition: background-color 0.15s ease !important;
  font-size: 12.5px !important;
  color: #1e293b !important;
}

.wc-bulk-shift-item:hover {
  background-color: #f1f5f9 !important;
}

.wc-bulk-shift-item--all {
  background-color: #f8fafc !important;
  font-weight: 600 !important;
}

.wc-bulk-shift-item__text {
  flex: 1 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.wc-bulk-shift-color-dot {
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
}

.wc-bulk-shift-all-badge,
.wc-bulk-shift-item .tblr-badge {
  font-size: 11px !important;
  padding: 2px 6px !important;
  flex-shrink: 0 !important;
}

/* Checkbox inside shift items */
.wc-bulk-shift-item .wc-shift-checkbox {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  cursor: pointer !important;
  margin: 0 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.wc-bulk-shift-item .wc-shift-checkbox input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.wc-bulk-shift-item .wc-shift-checkbox__checkmark {
  width: 16px !important;
  height: 16px !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.wc-bulk-shift-item .wc-shift-checkbox input[type="checkbox"]:checked + .wc-shift-checkbox__checkmark {
  background-color: #206bc4 !important;
  border-color: #206bc4 !important;
}

.wc-bulk-shift-item .wc-shift-checkbox input[type="checkbox"]:checked + .wc-shift-checkbox__checkmark::after {
  content: "" !important;
  width: 4px !important;
  height: 8px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) translate(-1px, -1px) !important;
  display: block !important;
}

/* Bulk Chips */
.wc-bulk-chips {
  display: inline-flex !important;
  align-items: center !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background: var(--tblr-surface-subtle, #f8fafc) !important;
  padding: 2px !important;
  gap: 2px !important;
}

.wc-bulk-chip {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 24px !important;
  padding: 0 10px !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  border-radius: 4px !important;
  border: none !important;
  background: transparent !important;
  color: var(--tblr-text-secondary, #475569) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-bulk-chip:hover {
  background: #e2e8f0 !important;
  color: var(--tblr-text-main, #0f172a) !important;
}

.wc-bulk-chip--active {
  background: var(--tblr-primary, #206bc4) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(32, 107, 196, 0.25) !important;
}

/* Bulk OT Box */
.wc-bulk-ot {
  border-radius: var(--tblr-radius-md, 6px) !important;
  background: var(--tblr-surface-subtle, #f8fafc) !important;
  border: 1px solid #e2e8f0 !important;
  padding: 12px 14px !important;
  margin-top: 12px !important;
}

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

.wc-bulk-ot__badge {
  background: rgba(var(--tblr-primary-rgb, 32, 107, 196), 0.1) !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

.wc-bulk-ot__fields {
  margin-top: 10px !important;
  padding-top: 10px !important;
  border-top: 1px dashed #cbd5e1 !important;
}

/* Bulk Scope Row */
.wc-bulk-scope {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  margin-bottom: 12px !important;
}

.wc-bulk-scope .tblr-form-select {
  flex: 1 1 180px !important;
  min-width: 140px !important;
}

.wc-bulk-scope .wc-employees-tool-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 36px !important;
  padding: 0 14px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.tblr-btn-primary-outline,
.tblr-btn-outline-primary,
.tblr-btn.tblr-btn-primary-outline,
.tblr-btn.tblr-btn-outline-primary,
.wc-employees-tool-btn.tblr-btn-primary-outline,
.wc-employees-tool-btn.tblr-btn-outline-primary {
  border: 1px solid var(--tblr-primary, #206bc4) !important;
  background-color: #ffffff !important;
  color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 1px 2px rgba(32, 107, 196, 0.08) !important;
}

.tblr-btn-primary-outline:hover:not(:disabled),
.tblr-btn-outline-primary:hover:not(:disabled),
.tblr-btn.tblr-btn-primary-outline:hover:not(:disabled),
.tblr-btn.tblr-btn-outline-primary:hover:not(:disabled),
.wc-employees-tool-btn.tblr-btn-primary-outline:hover:not(:disabled),
.wc-employees-tool-btn.tblr-btn-outline-primary:hover:not(:disabled) {
  background-color: rgba(var(--tblr-primary-rgb, 32, 107, 196), 0.08) !important;
  border-color: var(--tblr-primary, #206bc4) !important;
  color: var(--tblr-primary, #206bc4) !important;
}

.wc-bulk-scope-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  padding-top: 8px !important;
  border-top: 1px dashed #e2e8f0 !important;
}

.wc-bulk-btn__count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: var(--tblr-primary, #206bc4) !important;
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  margin-left: 6px !important;
}

/* Bulk Modal Footer */
#wcBulkTimesheetModal .wc-confirm-modal__footer,
.wc-bulk-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 22px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  flex-shrink: 0 !important;
}

.wc-bulk-footer__status {
  margin: 0 !important;
  font-size: 13px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wc-bulk-footer__status--ready {
  color: var(--tblr-success, #2fb344) !important;
  font-weight: 500 !important;
}

.wc-bulk-footer__actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* ==============================================================================
 * WORK SCHEDULE & ROSTER ASSIGN STYLES (#wcRosterAssignModal)
 * ============================================================================== */

/* Quick Templates Bar */
.wc-roster-quick-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.wc-roster-quick-bar__label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}

/* 7 Days Schedule List */
.wc-roster-schedule-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.wc-roster-day-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  transition: all 0.15s ease !important;
}

.wc-roster-day-row:hover {
  border-color: #cbd5e1 !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
}

.wc-roster-day-row--sun {
  border-left: 3px solid var(--tblr-danger, #d63939) !important;
  background-color: #fffbfa !important;
}

.wc-roster-day-row__left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 130px !important;
  flex-shrink: 0 !important;
}

.wc-roster-day-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: var(--tblr-radius-sm, 4px) !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  background-color: #f1f5f9 !important;
  color: var(--tblr-text-main, #1e293b) !important;
  flex-shrink: 0 !important;
}

.wc-roster-day-badge--sat {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
}

.wc-roster-day-badge--sun {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
}

.wc-roster-day-info {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.wc-roster-day-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  line-height: 1.2 !important;
}

.wc-roster-day-sub {
  font-size: 11px !important;
  line-height: 1.2 !important;
  margin-top: 2px !important;
}

.wc-roster-day-row__shifts {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  flex: 1 1 auto !important;
}

.wc-roster-shift-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 28px !important;
  min-width: 58px !important;
  padding: 0 10px !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background: #ffffff !important;
  color: var(--tblr-text-secondary, #475569) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.wc-roster-shift-pill:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: var(--tblr-text-main, #0f172a) !important;
}

.wc-roster-shift-pill--selected {
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12) !important;
}

.wc-roster-shift-pill--off {
  border-style: dashed !important;
}

.wc-roster-shift-pill--off.wc-roster-shift-pill--selected {
  background-color: #475569 !important;
  border-color: #475569 !important;
  color: #ffffff !important;
}

.wc-roster-day-row--sun .wc-roster-shift-pill--off.wc-roster-shift-pill--selected {
  background-color: #e11d48 !important;
  border-color: #e11d48 !important;
  color: #ffffff !important;
}

/* Legend Bar */
.wc-roster-legend-bar {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex-wrap: wrap !important;
  padding-top: 10px !important;
  border-top: 1px dashed var(--tblr-border-color, #e6e8eb) !important;
  margin-top: 4px !important;
}

.wc-roster-legend-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 11.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
}

.wc-roster-legend-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 999px !important;
  flex-shrink: 0 !important;
}

/* ==============================================================================
 * STAFF PICKER MODAL (#wcBulkStaffPickerModal & #wcRosterStaffPickerModal)
 * ============================================================================== */

#wcBulkStaffPickerModal.wc-confirm-modal .modal-dialog,
#wcRosterStaffPickerModal.wc-confirm-modal .modal-dialog {
  max-width: 880px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  max-height: 92vh !important;
}

#wcBulkStaffPickerModal .modal-content,
#wcRosterStaffPickerModal .modal-content {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-xl, 12px) !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 90vh !important;
}

#wcBulkStaffPickerModal .wc-confirm-modal__header,
#wcRosterStaffPickerModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
}

.wc-bulk-picker-title-wrap {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#wcBulkStaffPickerModal .wc-confirm-modal__body,
#wcRosterStaffPickerModal .wc-confirm-modal__body {
  padding: 18px 22px !important;
  background-color: #ffffff !important;
  overflow-y: auto !important;
  flex: 1 1 auto !important;
}

.wc-bulk-picker-toolbar {
  display: grid !important;
  grid-template-columns: minmax(0, 1.5fr) minmax(160px, 1fr) minmax(160px, 1fr) !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.wc-bulk-picker-toolbar .tblr-input-icon {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 36px !important;
}

.wc-bulk-picker-toolbar .tblr-input-icon .tblr-form-control,
.wc-bulk-picker-toolbar .tblr-input-icon input[type="search"] {
  height: 36px !important;
  min-height: 36px !important;
  line-height: 34px !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  background-color: #ffffff !important;
  color: var(--tblr-text-main, #0f172a) !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wc-bulk-picker-toolbar .tblr-input-icon .tblr-form-control:focus,
.wc-bulk-picker-toolbar .tblr-input-icon input[type="search"]:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(var(--tblr-primary-rgb, 32, 107, 196), 0.15) !important;
  outline: none !important;
}

.wc-bulk-picker-toolbar .tblr-input-icon .tblr-input-icon-addon {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  min-width: 2.25rem !important;
  height: 100% !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.wc-bulk-picker-toolbar .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: var(--tblr-text-muted, #94a3b8) !important;
  font-size: 15px !important;
  line-height: 1 !important;
  cursor: pointer !important;
  z-index: 3 !important;
  transition: color 0.15s ease !important;
}

.wc-bulk-picker-toolbar .tblr-input-icon .wc-employees-search__clear:hover {
  color: var(--tblr-danger, #d63939) !important;
}

.wc-bulk-picker-toolbar .tblr-input-icon .wc-employees-search__clear[hidden] {
  display: none !important;
}

.wc-bulk-picker-toolbar .tblr-form-select {
  height: 36px !important;
  min-height: 36px !important;
  line-height: 1.4 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  padding: 6px 28px 6px 10px !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  background-color: #ffffff !important;
  color: var(--tblr-text-main, #0f172a) !important;
  box-sizing: border-box !important;
}

@media (max-width: 680px) {
  .wc-bulk-picker-toolbar {
    grid-template-columns: 1fr !important;
  }
}

.wc-bulk-picker-bulkrow {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-bottom: 10px !important;
  padding: 8px 12px !important;
  background: var(--tblr-surface-subtle, #f8fafc) !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 13px !important;
}

.wc-bulk-picker-bulkrow__right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 12px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
}

.wc-bulk-picker-table-wrap {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  overflow: hidden !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.wc-bulk-picker-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
}

.wc-bulk-picker-table th {
  background: var(--tblr-surface-subtle, #f8fafc) !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.wc-bulk-picker-table td {
  padding: 10px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

.wc-bulk-picker-table tbody tr:hover {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
}

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

.wc-bulk-picker-employee {
  display: flex !important;
  align-items: center !important;
}

.wc-bulk-picker-employee__name {
  font-weight: 600 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  display: block !important;
}

.wc-bulk-picker-employee__meta {
  font-size: 12px !important;
  color: var(--tblr-text-muted, #94a3b8) !important;
  display: block !important;
}

.wc-bulk-dept-tag {
  display: inline-block !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
}

/* Picker Pager */
.wc-bulk-picker-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 22px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
}

.wc-bulk-picker-pager {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  font-size: 12px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
}

.wc-bulk-page-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 28px !important;
  height: 28px !important;
  padding: 0 6px !important;
  border-radius: 4px !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background: #ffffff !important;
  color: var(--tblr-text-secondary, #475569) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-bulk-page-btn:hover:not(:disabled) {
  background-color: #f1f5f9 !important;
  color: var(--tblr-text-main, #0f172a) !important;
}

.wc-bulk-page-btn--active {
  background: var(--tblr-primary, #206bc4) !important;
  color: #ffffff !important;
  border-color: var(--tblr-primary, #206bc4) !important;
  font-weight: 600 !important;
}

.wc-bulk-page-btn:disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}

/* ==============================================================================
 * 15. TABLER MODAL THÊM / LOẠI NHÂN VIÊN (#wcTsAddStaffModal & #wcTsRemoveStaffModal)
 * ============================================================================== */

#wcTsAddStaffModal.wc-confirm-modal .modal-dialog,
#wcTsRemoveStaffModal.wc-confirm-modal .modal-dialog {
  max-width: 780px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  max-height: 92vh !important;
}

#wcTsAddStaffModal .modal-content,
#wcTsRemoveStaffModal .modal-content {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-xl, 12px) !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 90vh !important;
}

#wcTsAddStaffModal .wc-confirm-modal__header,
#wcTsRemoveStaffModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
}

#wcTsAddStaffModal .wc-confirm-modal__body,
#wcTsRemoveStaffModal .wc-confirm-modal__body {
  padding: 18px 22px !important;
  background-color: #ffffff !important;
  overflow-y: auto !important;
  flex: 1 1 auto !important;
}

.wc-ts-add-staff-table-wrap {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  overflow: hidden !important;
  max-height: 380px !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

.wc-ts-add-staff-table {
  width: 100% !important;
  border-collapse: collapse !important;
  font-size: 13px !important;
}

.wc-ts-add-staff-table th {
  background: var(--tblr-surface-subtle, #f8fafc) !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 10px 14px !important;
  border-bottom: 1px solid #e2e8f0 !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
}

.wc-ts-add-staff-table td {
  padding: 10px 14px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
}

.wc-ts-add-staff-row:hover {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  cursor: pointer !important;
}

.wc-ts-staff-picker__meta {
  display: block !important;
  font-size: 12px !important;
  color: var(--tblr-text-muted, #94a3b8) !important;
  font-weight: normal !important;
}

.wc-ts-staff-modal-pager {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 10px 0 0 !important;
  font-size: 12px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
}

#wcTsAddStaffModal .wc-confirm-modal__footer,
#wcTsRemoveStaffModal .wc-confirm-modal__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 14px 22px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  flex-shrink: 0 !important;
}

/* ==============================================================================
 * 16. TABLER STATUS MODALS (#wcTsDeleteSlotModal & #wcTsReplaceRequestModal)
 * ============================================================================== */

#wcTsDeleteSlotModal.wc-confirm-modal .modal-dialog,
#wcTsReplaceRequestModal.wc-confirm-modal .modal-dialog {
  max-width: 440px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
}

#wcTsDeleteSlotModal .modal-content,
#wcTsReplaceRequestModal .modal-content {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-xl, 12px) !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

#wcTsDeleteSlotModal .wc-confirm-modal__header,
#wcTsReplaceRequestModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
}

#wcTsDeleteSlotModal .wc-confirm-modal__body,
#wcTsReplaceRequestModal .wc-confirm-modal__body {
  padding: 24px 22px !important;
  background-color: #ffffff !important;
  text-align: center !important;
}

.tblr-status-icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 24px !important;
  margin: 0 auto 12px !important;
}

.tblr-status-icon--danger {
  background-color: rgba(214, 57, 57, 0.12) !important;
  color: var(--tblr-danger, #d63939) !important;
}

.tblr-status-icon--warning {
  background-color: rgba(245, 159, 0, 0.12) !important;
  color: var(--tblr-warning, #f59f00) !important;
}

.tblr-status-icon svg,
.tblr-status-icon i {
  font-size: 26px !important;
}

#wcTsDeleteSlotModal .wc-confirm-modal__footer,
#wcTsReplaceRequestModal .wc-confirm-modal__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 12px 20px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
}

/* ==============================================================================
 * 17. ĐIỂM DANH HÔM NAY (BUTTON, MODAL & HIGHLIGHT COLUMN ANIMATION)
 * ============================================================================== */

/* Quick Attendance Button */
.wc-ts-btn--quick-today {
  border-color: #f59e0b !important;
  color: #b45309 !important;
  background-color: #fffbeb !important;
  font-weight: 600 !important;
  transition: all 0.15s ease !important;
}

.wc-ts-btn--quick-today:hover:not(:disabled) {
  background-color: #fef3c7 !important;
  border-color: #d97706 !important;
  color: #92400e !important;
  box-shadow: 0 1px 3px rgba(245, 158, 11, 0.2) !important;
}

.wc-ts-btn--quick-today i {
  color: #f59e0b !important;
  font-size: 15px !important;
}

/* Quick Attendance Modal */
.wc-quick-attendance-modal__dialog {
  max-width: 440px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
}

.wc-quick-attendance-icon-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 10px !important;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%) !important;
  color: #d97706 !important;
  font-size: 20px !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  box-shadow: 0 2px 4px rgba(245, 158, 11, 0.2) !important;
}

.wc-quick-attendance-desc {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: var(--tblr-text-secondary, #475569) !important;
  margin-bottom: 16px !important;
}

.wc-quick-attendance-desc strong {
  color: var(--tblr-text-main, #0f172a) !important;
  font-weight: 600 !important;
}

.wc-quick-attendance-option-card {
  padding: 14px 16px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border: 1px solid var(--tblr-border-color, #e2e8f0) !important;
  border-radius: 10px !important;
  transition: all 0.15s ease !important;
}

.wc-quick-attendance-option-card:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}

.wc-quick-attendance-option-card .wc-confirm-modal__checkbox {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.wc-quick-attendance-option-card input[type="checkbox"] {
  margin-top: 3px !important;
}

.wc-quick-attendance-option-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

.wc-quick-attendance-opt-title {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-main, #1e293b) !important;
}

.wc-quick-attendance-opt-sub {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 12px !important;
  color: var(--tblr-text-muted, #64748b) !important;
  line-height: 1.35 !important;
}

.wc-quick-attendance-submit {
  background-color: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

.wc-quick-attendance-submit:hover:not(:disabled) {
  background-color: #047857 !important;
  border-color: #047857 !important;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3) !important;
}

/* Today Column Highlight Pulse Animation */
.wc-ts-col--highlight-pulse {
  position: relative !important;
  box-shadow: inset 0 0 0 2px #f59e0b !important;
  background-color: rgba(245, 158, 11, 0.12) !important;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wc-ts-col--highlight-fade {
  box-shadow: inset 0 0 0 0 transparent !important;
  background-color: transparent !important;
  transition: all 1.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Header indicator for Today */
.wc-timesheet-grid th.wc-ts-day-col--today .wc-ts-day-head__date {
  color: #b45309 !important;
  font-weight: 700 !important;
  position: relative !important;
}

.wc-timesheet-grid th.wc-ts-day-col--today .wc-ts-day-head__dow {
  color: #d97706 !important;
  font-weight: 700 !important;
}

/* ==============================================================================
 * GIAI ĐOẠN 4: MODULE DANH SÁCH KỲ CHẤM CÔNG (TIMESHEET PERIODS)
 * ============================================================================== */

/* Top Spacing & Layout Alignment (Đồng bộ với .wc-employees-page--work-schedule - Quy chuẩn 1.7, 1.8, 1.11) */
.wc-employees-page--timesheet {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

/* ==============================================================================
 * ANTI-OVERLAP RULE: DEACTIVATION BANNER VỚI CÁC TRANG TABLER
 * Khi công ty bị tạm ngưng hoạt động (is_active === 2), banner đỏ #wcDeactivationBanner
 * xuất hiện trên đỉnh trang. Khử toàn bộ margin-top âm của các trang con để không làm
 * trồi tiêu đề trang lên đè mất viền dưới của box cảnh báo.
 * ============================================================================== */
#wcDeactivationBanner~.page-body .wc-employees-page--timesheet,
#wcDeactivationBanner~.page-body .wc-employees-page--timesheet-detail,
#wcDeactivationBanner~.page-body .wc-employees-page,
.wc-deactivation-banner~.page-body .wc-employees-page--timesheet,
.wc-deactivation-banner~.page-body .wc-employees-page--timesheet-detail,
.wc-deactivation-banner~.page-body .wc-employees-page,
#watch-company-main:has(#wcDeactivationBanner) .wc-employees-page--timesheet,
#watch-company-main:has(#wcDeactivationBanner) .wc-employees-page--timesheet-detail,
#watch-company-main:has(#wcDeactivationBanner) .wc-employees-page,
#watch-company-main:has(.wc-deactivation-banner) .wc-employees-page--timesheet,
#watch-company-main:has(.wc-deactivation-banner) .wc-employees-page--timesheet-detail,
#watch-company-main:has(.wc-deactivation-banner) .wc-employees-page {
  margin-top: 0 !important;
}

/* Header: Đồng bộ padding 12px 20px 6px và margin-bottom 8px (Quy chuẩn 1.7.A) */
.wc-employees-page--timesheet .wc-ts-period-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--timesheet .wc-ts-period-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.wc-employees-page--timesheet .wc-ts-period-header__actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.wc-ts-header-btn {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  color: #475569 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.wc-ts-header-btn:hover {
  background-color: #f8fafc !important;
  color: #1e293b !important;
  border-color: #cbd5e1 !important;
  text-decoration: none !important;
}

.wc-ts-header-badge {
  font-size: 10px !important;
  font-weight: 700 !important;
  padding: 1px 5px !important;
  min-width: 16px !important;
  height: 16px !important;
  border-radius: 99px !important;
  line-height: 14px !important;
  background-color: #ef4444 !important;
  color: #ffffff !important;
  margin-left: 4px !important;
  display: inline-block !important;
}

.wc-ts-header-dot {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  width: 9px !important;
  height: 9px !important;
  border-radius: 50% !important;
  background-color: #ef4444 !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

/* Chrome Bar & Filter Chips (Quy chuẩn 1.11 & Đối chiếu Flutter) */
.wc-ts-period-chrome {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 20px !important;
  background-color: #f8fafc !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.wc-ts-period-chrome__left {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.wc-ts-period-chrome__right {
  display: flex !important;
  align-items: center !important;
  margin-left: auto !important;
}

.wc-period-filter-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-period-filter-chip:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.wc-period-filter-chip--active,
.wc-period-filter-chip.wc-ws-chip--active {
  background-color: #eff6ff !important;
  border-color: #206bc4 !important;
  color: #206bc4 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(32, 107, 196, 0.1) !important;
}

.wc-period-filter-chip .tblr-badge-lt {
  font-size: 11px !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

.wc-ts-period-count {
  font-size: 11.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

/* Badge Kỳ hiện tại (Đối chiếu Flutter) */
.wc-ts-current-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 2px 6px !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  background-color: rgba(47, 179, 68, 0.12) !important;
  color: #15803d !important;
  border: 1px solid rgba(47, 179, 68, 0.28) !important;
  vertical-align: middle !important;
  margin-right: 6px !important;
  line-height: 1.2 !important;
}

.wc-ts-row--current td {
  background-color: #fcfdfd !important;
}

.wc-ts-row--current:hover td {
  background-color: #f0fdf4 !important;
}

/* Card panel: Góc vuông 100% (border-radius: 0), viền 4 cạnh, có margin hở mép chuẩn Ảnh 2 giống work-schedule */
.wc-employees-page--timesheet .wc-ts-period-panel,
.wc-employees-page--timesheet #jsTimesheetRequestDiv,
.wc-employees-page--timesheet .tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1.25rem !important;
}

/* Card Toolbar / Header đồng bộ với .wc-ws-toolbar */
.wc-employees-page--timesheet .wc-ts-period-toolbar {
  padding: 10px 20px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.wc-employees-page--timesheet .wc-ts-period-toolbar .wc-employees-toolbar__left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  flex-wrap: wrap !important;
}

.wc-employees-page--timesheet .wc-ts-period-toolbar .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

/* Tabs chuẩn Tabler Segmented Controls */
.wc-employees-page--timesheet .wc-employees-tabs {
  display: inline-flex !important;
  align-items: center !important;
  background-color: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 6px !important;
  gap: 2px !important;
}

.wc-employees-page--timesheet .wc-employees-tab {
  border: none !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 20px !important;
  padding: 5px 14px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  outline: none !important;
}

.wc-employees-page--timesheet .wc-employees-tab:hover {
  color: #1e293b !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
}

.wc-employees-page--timesheet .wc-employees-tab--active,
.wc-employees-page--timesheet .wc-employees-tab.active {
  background-color: #ffffff !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

/* Đồng bộ bảng phụ #timesheetTable và #requestTable */
#timesheetTable,
#requestTable {
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  font-size: 13px !important;
}

#timesheetTable thead th,
#requestTable thead th {
  position: sticky !important;
  top: 0 !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  z-index: 2 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

#timesheetTable tbody tr,
#requestTable tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
}

#timesheetTable tbody tr:hover,
#requestTable tbody tr:hover {
  background-color: #f8fafc !important;
}

#timesheetTable tbody td,
#requestTable tbody td {
  height: 58px !important;
  max-height: 58px !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  font-size: 13px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
}

#timesheetTable th:first-child,
#timesheetTable td:first-child,
#requestTable th:first-child,
#requestTable td:first-child {
  padding-left: 20px !important;
}

#timesheetTable th:last-child,
#timesheetTable td:last-child,
#requestTable th:last-child,
#requestTable td:last-child {
  padding-right: 20px !important;
}

/* ==============================================================================
 * UNIFIED TABLE FORMAT: #timesheetPeriodTable (Đồng bộ chuẩn Tabler Timesheet)
 * ============================================================================== */
#timesheetPeriodTable {
  margin-bottom: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  font-size: 13px !important;
}

#timesheetPeriodTable thead th {
  position: sticky !important;
  top: 0 !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  z-index: 2 !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

#timesheetPeriodTable tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
  cursor: pointer !important;
}

#timesheetPeriodTable tbody tr:hover,
#wcSalaryPeriodTable tbody tr:hover {
  background-color: #f8fafc !important;
}

#timesheetPeriodTable tbody tr td.wc-ts-period-actions,
#wcSalaryPeriodTable tbody tr td.wc-ts-period-actions {
  cursor: default !important;
}

#timesheetPeriodTable tbody tr td.wc-ts-period-actions .tblr-btn,
#wcSalaryPeriodTable tbody tr td.wc-ts-period-actions .tblr-btn {
  cursor: pointer !important;
}

#timesheetPeriodTable tbody td,
#wcSalaryPeriodTable tbody td {
  height: 58px !important;
  max-height: 58px !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  font-size: 13px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
}

/* Quy chuẩn 1.8: Thẳng hàng 20px tuyệt đối từ Toolbar xuống Table */
#timesheetPeriodTable th:first-child,
#timesheetPeriodTable td:first-child,
#wcSalaryPeriodTable th:first-child,
#wcSalaryPeriodTable td:first-child {
  padding-left: 20px !important;
}

#timesheetPeriodTable th:last-child,
#timesheetPeriodTable td:last-child,
#wcSalaryPeriodTable th:last-child,
#wcSalaryPeriodTable td:last-child {
  padding-right: 20px !important;
}

/* ==============================================================================
 * BỐ CỤC TỰ GIÃN THEO NỘI DUNG, CANH ĐỀU VÀ KHÔNG ĐÈ DỮ LIỆU (#timesheetPeriodTable)
 * ============================================================================== */

/* Cột 1: STT (#) - cố định vừa đủ */
#timesheetPeriodTable th:nth-child(1),
#timesheetPeriodTable td:nth-child(1),
#timesheetPeriodTable .wc-ts-col-index {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 56px !important;
  text-align: center !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

/* Cột 2: Tên bảng - tự giãn, có min-width hợp lý để không bị ép sát STT */
#timesheetPeriodTable th:nth-child(2),
#timesheetPeriodTable td:nth-child(2),
#timesheetPeriodTable .wc-ts-col-name {
  min-width: 140px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-align: left !important;
}

#timesheetPeriodTable td:nth-child(2) .tblr-text-truncate,
#timesheetPeriodTable .wc-ts-col-name .tblr-text-truncate {
  display: inline-block !important;
  vertical-align: middle !important;
  max-width: 260px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Cột 3: Thời gian - tự giãn theo ngày tháng, không ngắt dòng */
#timesheetPeriodTable th:nth-child(3),
#timesheetPeriodTable td:nth-child(3),
#timesheetPeriodTable .wc-ts-col-time {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 185px !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  text-align: left !important;
  font-feature-settings: "tnum" !important;
}

/* Cột 4: Phòng ban - tự giãn theo nội dung, dữ liệu nhiều tự chiếm nhiều hơn */
#timesheetPeriodTable th:nth-child(4),
#timesheetPeriodTable td:nth-child(4),
#timesheetPeriodTable .wc-ts-col-dept-header,
#timesheetPeriodTable .wc-ts-col-dept {
  min-width: 160px !important;
  color: #475569 !important;
  text-align: left !important;
}

#timesheetPeriodTable td:nth-child(4) .tblr-text-truncate,
#timesheetPeriodTable .wc-ts-col-dept .tblr-text-truncate {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Cột 5: Chức vụ - tự giãn theo nội dung, dữ liệu nhiều tự chiếm nhiều hơn */
#timesheetPeriodTable th:nth-child(5),
#timesheetPeriodTable td:nth-child(5),
#timesheetPeriodTable .wc-ts-col-pos-header,
#timesheetPeriodTable .wc-ts-col-pos {
  min-width: 150px !important;
  color: #475569 !important;
  text-align: left !important;
}

#timesheetPeriodTable td:nth-child(5) .tblr-text-truncate,
#timesheetPeriodTable .wc-ts-col-pos .tblr-text-truncate {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Cột 6: Trạng thái - tự co giãn theo nội dung badge, không wrap, không đè */
#timesheetPeriodTable th:nth-child(6),
#timesheetPeriodTable td:nth-child(6),
#timesheetPeriodTable .wc-ts-col-status {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 130px !important;
  text-align: left !important;
}

/* Cột 7: Thao tác - tự co giãn theo cụm nút, không wrap, không bị che khuất */
#timesheetPeriodTable th:nth-child(7),
#timesheetPeriodTable td:nth-child(7),
#timesheetPeriodTable .wc-ts-col-actions {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 220px !important;
  text-align: right !important;
}

.wc-ts-period-actions .tblr-btn-group {
  gap: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
}

.wc-ts-period-actions .tblr-btn-sm {
  height: 32px !important;
  padding: 0 12px !important;
  font-size: 12.5px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 500 !important;
}

/* Fix hover for primary action buttons (Nút Xem, v.v.) */
#companyPage .tblr-btn-primary,
#companyPage a.tblr-btn-primary,
.wc-ts-period-actions a.tblr-btn-primary,
.tblr-btn-primary {
  background-color: var(--tblr-primary, #206bc4) !important;
  border-color: var(--tblr-primary, #206bc4) !important;
  color: #ffffff !important;
}

#companyPage .tblr-btn-primary:hover,
#companyPage a.tblr-btn-primary:hover,
#companyPage .tblr-btn-primary.wc-employees-tool-btn:hover:not(.disabled),
.wc-ts-period-actions a.tblr-btn-primary:hover,
.tblr-btn-primary:hover {
  background: var(--tblr-primary-hover, #1a569d) !important;
  background-color: var(--tblr-primary-hover, #1a569d) !important;
  border-color: var(--tblr-primary-hover, #1a569d) !important;
  color: #ffffff !important;
  text-decoration: none !important;
}

/* Fix hover for outline buttons */
#companyPage .tblr-btn-outline:hover:not(.disabled),
#companyPage .tblr-btn-outline.wc-employees-tool-btn:hover:not(.disabled),
.wc-ts-period-actions .tblr-btn-outline:hover {
  background: #f1f5f9 !important;
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: var(--tblr-text-main, #1e293b) !important;
}

#companyPage .tblr-btn-outline-danger:hover:not(.disabled),
#companyPage .wc-employees-tool-btn--danger.tblr-btn-outline:hover:not(.disabled),
.wc-ts-period-actions .tblr-btn-outline-danger:hover {
  background: #fef2f2 !important;
  background-color: #fef2f2 !important;
  border-color: #ef4444 !important;
  color: #dc2626 !important;
}

/* Modals sizing and centering */
#wcPeriodDeleteModal .modal-dialog {
  max-width: 440px !important;
}

#wcPeriodFormModal .modal-dialog {
  max-width: 560px !important;
}

/* Table Pager for Timesheet Periods (Đồng bộ chuẩn Tabler với Work Schedule & Timesheet Detail) */
.wc-ts-period-pager {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 20px 12px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  font-size: 12px !important;
}

.wc-ts-period-pager .wc-table-footer__left,
.wc-ts-period-pager .wc-table-footer__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.wc-ts-period-pager .wc-ts-pager__size {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 12.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  margin-bottom: 0 !important;
}

.wc-ts-period-pager .wc-ts-pager__info {
  font-size: 12.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  white-space: nowrap !important;
  font-feature-settings: "tnum" !important;
}

.wc-ts-period-pager .wc-ts-pager__btn {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1 !important;
  border-radius: 4px !important;
}

/* ==============================================================================
 * 15. TABLER WORK SCHEDULE & WEEKLY SHIFT ROSTER MATRIX (.wc-employees-page--work-schedule)
 * ============================================================================== */

/* Khử khoảng trống đỉnh trang & tạo lề trái/phải chuẩn Ảnh 2 (giảm top margin/padding bớt 1/2) */
.wc-employees-page--work-schedule {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--work-schedule,
body:has(#wcDeactivationBanner) .wc-employees-page--work-schedule {
  margin-top: 0 !important;
}

/* Card panel: Góc vuông 100% (border-radius: 0), viền 4 cạnh, có margin trái/phải chuẩn Ảnh 2 */
.wc-employees-page--work-schedule .wc-ws-panel,
.wc-employees-page--work-schedule #jsWorkScheduleCard,
.wc-employees-page--work-schedule .tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
  background-color: #ffffff !important;
  overflow: hidden !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 1.25rem !important;
}

/* Header & Toolbar alignment (Quy chuẩn 1.8 & 1.7.A: uniform 20px padding, padding-top 12px) */
.wc-ws-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
}

.wc-ws-toolbar {
  padding: 10px 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background-color: #ffffff;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb);
  flex-wrap: wrap;
}

.wc-ws-toolbar .wc-employees-toolbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.wc-ws-toolbar .wc-employees-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.wc-ws-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Chrome / Sub-toolbar (Thống nhất với .wc-ts-grid-chrome - Quy chuẩn 1.11) */
.wc-roster-grid-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 8px 20px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc);
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb);
}

.wc-roster-grid-chrome__left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.wc-roster-grid-chrome__right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-left: auto;
}

.wc-roster-info-text {
  font-size: 12.5px;
  color: var(--tblr-text-secondary, #64748b);
  white-space: nowrap;
}

/* Backward-compatible Sub-toolbar fallback */
.wc-roster-sub-toolbar {
  padding: 10px 20px !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb);
  flex-wrap: wrap;
}

.wc-roster-sub-toolbar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: wrap;
}

.wc-roster-sub-toolbar__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Search input with trailing clear button (Quy chuẩn 1.6) */
.wc-roster-search {
  min-width: 220px;
  max-width: 280px;
  position: relative !important;
}

.wc-roster-search .tblr-form-control {
  height: 36px !important;
  font-size: 13px !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
  border-radius: 6px !important;
}

.wc-roster-search .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;
  border: none !important;
  background: transparent !important;
  cursor: pointer !important;
  z-index: 3 !important;
  color: #94a3b8 !important;
}

.wc-roster-search .wc-employees-search__clear:hover {
  color: #1e293b !important;
}

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

/* Filter dropdowns */
.wc-roster-filter-select {
  height: 36px !important;
  font-size: 13px !important;
  padding: 0 28px 0 10px !important;
  min-width: 140px;
  max-width: 180px;
  border-radius: 6px !important;
}

/* Status Filter Chips */
.wc-roster-filter-chips {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  padding: 3px;
  border-radius: 8px;
}

.wc-roster-chip {
  border: none;
  background: transparent;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}

.wc-roster-chip:hover {
  color: #1e293b;
  background: rgba(255, 255, 255, 0.6);
}

.wc-roster-chip--active {
  color: var(--tblr-primary, #206bc4) !important;
  background: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.wc-roster-chip .tblr-badge-lt {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
}

/* Legend bar */
.wc-roster-legend-bar {
  padding: 0 !important;
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  border-bottom: none !important;
  font-size: 12px;
  flex-wrap: wrap;
}

.wc-roster-legend-title {
  font-weight: 600;
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wc-roster-legend-list {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.wc-roster-legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid transparent;
}

.wc-roster-legend-pill__code {
  font-weight: 700;
}

.wc-roster-legend-pill__time {
  font-weight: 400;
  opacity: 0.85;
}

.wc-roster-legend-pill--off {
  background: #f1f5f9 !important;
  color: #64748b !important;
  border-color: #e2e8f0 !important;
}

/* Matrix Table Container */
.wc-roster-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  background: #ffffff !important;
}

.wc-roster-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
  font-size: 13px !important;
}

.wc-roster-table thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 10px 8px !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 10 !important;
  white-space: nowrap !important;
}

/* Fixed Row Height 58px (Quy chuẩn 1.4) */
.wc-roster-table tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
}

.wc-roster-table tbody tr:hover {
  background-color: #f8fafc !important;
}

.wc-roster-table tbody td {
  height: 58px !important;
  max-height: 58px !important;
  vertical-align: middle !important;
  padding: 3px 6px !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  box-sizing: border-box !important;
}

/* Sticky Column 1: STT */
.wc-roster-table th.wc-roster-col-stt {
  position: sticky !important;
  left: 0 !important;
  z-index: 15 !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  text-align: center !important;
  padding-left: 20px !important;
  background-color: #f8fafc !important;
}

.wc-roster-table td.wc-roster-col-stt {
  position: sticky !important;
  left: 0 !important;
  z-index: 8 !important;
  background: #ffffff !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  text-align: center !important;
  font-weight: 500 !important;
  color: #64748b !important;
  padding-left: 20px !important;
}

.wc-roster-table tr:hover td.wc-roster-col-stt {
  background: #f8fafc !important;
}

/* Sticky Column 2: Staff */
.wc-roster-table th.wc-roster-col-staff {
  position: sticky !important;
  left: 44px !important;
  z-index: 15 !important;
  width: var(--wc-roster-name-col-width, 220px) !important;
  min-width: 160px !important;
  max-width: 280px !important;
  text-align: left !important;
  background-color: #f8fafc !important;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.03) !important;
  border-right: 1px solid var(--tblr-border-color, #e6e8eb) !important;
}

.wc-roster-table td.wc-roster-col-staff {
  position: sticky !important;
  left: 44px !important;
  z-index: 8 !important;
  background: #ffffff !important;
  width: var(--wc-roster-name-col-width, 220px) !important;
  min-width: 160px !important;
  max-width: 280px !important;
  text-align: left !important;
  box-shadow: 2px 0 5px rgba(0, 0, 0, 0.03) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
}

.wc-roster-table tr:hover td.wc-roster-col-staff {
  background: #f8fafc !important;
}

/* Staff details */
.wc-roster-staff-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.wc-roster-staff-avatar {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wc-roster-staff-info {
  min-width: 0;
  flex: 1 1 auto;
  line-height: 1.25;
}

.wc-roster-staff-name {
  display: block;
  font-weight: 600;
  color: #1e293b;
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-roster-staff-sub {
  display: block;
  color: #94a3b8;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wc-roster-quick-btn {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  border: 1px solid transparent;
  background: transparent;
  color: #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.15s ease;
  font-size: 14px;
}

.wc-roster-quick-btn:hover {
  background: #f0fdf4;
  color: #16a34a;
  border-color: #bbf7d0;
}

/* Day Columns */
.wc-roster-table th.wc-roster-col-day {
  min-width: 108px !important;
  text-align: center !important;
}

.wc-roster-table td.wc-roster-col-day {
  min-width: 108px !important;
  text-align: center !important;
  position: relative !important;
  padding: 3px 4px !important;
  height: 58px !important;
  box-sizing: border-box !important;
}

.wc-roster-cell__content {
  height: 100% !important;
  min-height: 52px !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: stretch !important;
  gap: 2px !important;
  box-sizing: border-box !important;
}

/* OFF Pill (Chiều full 100%) */
.wc-roster-off-pill {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  background: #f8fafc !important;
  color: #94a3b8 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 50px !important;
  flex: 1 1 auto !important;
  border: 1px dashed #e2e8f0 !important;
  box-sizing: border-box !important;
  cursor: default !important;
}

/* Single Shift Pill (1 ca: Chiều full 100%) */
.wc-roster-shift-pill {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 2px 4px !important;
  border-radius: 6px !important;
  border: 1px solid transparent !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 50px !important;
  flex: 1 1 auto !important;
  text-align: center !important;
  line-height: 1.15 !important;
  cursor: default !important;
  box-sizing: border-box !important;
  gap: 2px !important;
}

.wc-roster-shift-pill__name {
  font-weight: 700 !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}

.wc-roster-shift-pill__time {
  font-size: 9.5px !important;
  opacity: 0.85 !important;
  font-feature-settings: "tnum" !important;
  line-height: 1.1 !important;
}

/* Multi-slot Pill (n >= 2: Chiều cao / n, canh giữa theo chiều ngang Code Ca và Thời gian) */
.wc-roster-cell__stack--multi {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  height: 100% !important;
  min-height: 50px !important;
  width: 100% !important;
  flex: 1 1 auto !important;
  justify-content: stretch !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
}

.wc-roster-slot-pill {
  flex: 1 1 0 !important;
  min-height: 0 !important;
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  gap: 5px !important;
  border-radius: 4px !important;
  border: 1px solid transparent !important;
  padding: 1px 4px !important;
  cursor: default !important;
  line-height: 1 !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  overflow: hidden !important;
}

.wc-roster-slot-pill__code {
  font-weight: 700 !important;
  font-size: 10px !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  text-align: center !important;
}

.wc-roster-slot-pill__time {
  font-size: 9px !important;
  font-weight: 500 !important;
  opacity: 0.85 !important;
  font-feature-settings: "tnum" !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Action Overlay on Hover (Đã bỏ tính năng edit trực tiếp trên ô) */
.wc-roster-cell__overlay {
  display: none !important;
}

.wc-roster-cell-action {
  width: 28px !important;
  height: 28px !important;
  border-radius: 999px !important;
  border: none !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  color: var(--tblr-primary, #206bc4) !important;
  transition: all 0.12s ease !important;
  font-size: 14px !important;
}

.wc-roster-cell-action:hover {
  transform: scale(1.08) !important;
  color: var(--tblr-primary-hover, #1a569d) !important;
}

/* Total Column */
.wc-roster-col-total {
  width: 120px !important;
  min-width: 120px !important;
  text-align: center !important;
  padding-right: 20px !important;
}

.wc-roster-total-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.wc-roster-total-count {
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  color: var(--tblr-success, #2fb344) !important;
}

/* Roster Footer / Pager */
.wc-roster-pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px 12px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc);
  border-top: 1px solid var(--tblr-border-color, #e6e8eb);
  font-size: 12px;
}

.wc-roster-pager .wc-table-footer__left,
.wc-roster-pager .wc-table-footer__right {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Roster Modals Sizing & Styling (Quy chuẩn 1.3) */
#wcRosterAssignModal .modal-dialog {
  max-width: 640px !important;
  margin: 1.75rem auto;
}

#wcRosterAssignModal .modal-content {
  border-radius: 20px !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.25) !important;
  overflow: hidden;
  background-color: #ffffff !important;
}

#wcRosterAssignModal .modal-header {
  padding: 16px 20px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  background: #ffffff !important;
}

#wcRosterSingleDayModal .modal-dialog {
  max-width: 420px !important;
}

/* Flutter-Matched Modal Styles for Shift Roster Assignment (#wcRosterAssignModal) */
.wc-fl-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background-color: #059669;
  display: inline-block;
  margin-right: 10px !important;
  box-shadow: 0 0 0 0 rgba(5, 150, 105, 0.7);
  animation: wcFlPulse 1.8s infinite cubic-bezier(0.66, 0, 0, 1);
  flex-shrink: 0;
}

@keyframes wcFlPulse {
  to {
    box-shadow: 0 0 0 8px rgba(5, 150, 105, 0);
  }
}

.wc-fl-header-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: #0f172a !important;
  margin: 0 10px 0 0 !important;
  display: inline-block !important;
  letter-spacing: -0.2px;
}

.wc-fl-fixed-badge {
  padding: 3px 10px;
  border-radius: 99px;
  background-color: #d1fae5;
  color: #047857;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
}

#wcRosterAssignModal .modal-body {
  padding: 16px 20px !important;
  background-color: #ffffff !important;
  max-height: calc(85vh - 130px) !important;
  overflow-y: auto;
}

#wcRosterAssignModal .modal-body::-webkit-scrollbar {
  width: 6px;
}

#wcRosterAssignModal .modal-body::-webkit-scrollbar-track {
  background: transparent;
}

#wcRosterAssignModal .modal-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}

#wcRosterAssignModal .modal-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

.wc-fl-single-card {
  padding: 12px 16px;
  border-radius: 14px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
}

.wc-fl-single-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #d1fae5;
  border: 1px solid #a7f3d0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wc-fl-status-badge {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.wc-fl-status-badge--assigned {
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.wc-fl-status-badge--unassigned {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.wc-fl-box {
  padding: 14px 16px;
  border-radius: 16px;
  background-color: #f8fafc;
  border: 1px solid #e2e8f0;
  margin-bottom: 14px;
}

.wc-fl-step-circle {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  margin-right: 8px !important;
}

.wc-fl-step-circle--green {
  background-color: #047857;
}

.wc-fl-step-circle--blue {
  background-color: #2563eb;
}

.wc-fl-box-title {
  font-size: 12px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.wc-fl-counter-badge {
  padding: 3px 10px;
  border-radius: 99px;
  background-color: #d1fae5;
  border: 1px solid rgba(167, 243, 208, 0.6);
  color: #047857;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.wc-fl-counter-badge i {
  font-size: 13px;
  margin-right: 4px;
}

.wc-fl-cycle-badge {
  padding: 3px 10px;
  border-radius: 99px;
  background-color: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  font-size: 10.5px;
  font-weight: 700;
}

.wc-fl-select {
  height: 38px !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  border-radius: 12px !important;
  border: 1px solid #cbd5e1 !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  padding: 0 12px !important;
}

.wc-fl-select:focus {
  border-color: #059669 !important;
  box-shadow: 0 0 0 2px rgba(5, 150, 105, 0.15) !important;
}

.wc-fl-scope-btn {
  height: 38px;
  font-size: 12px;
  font-weight: 700;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #334155;
}

.wc-fl-scope-btn i {
  margin-right: 6px;
  font-size: 14px;
}

.wc-fl-scope-btn:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
  color: #0f172a;
}

.wc-fl-scope-btn--picker {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}

.wc-fl-scope-btn--picker:hover {
  background-color: #d1fae5 !important;
  border-color: #6ee7b7 !important;
}

.wc-fl-scope-badge {
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 99px;
  background-color: #059669;
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
  display: inline-block;
}

.wc-fl-overwrite-card {
  padding: 10px 14px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  margin-top: 10px;
  display: flex;
  align-items: flex-start;
  cursor: pointer;
  user-select: none;
}

.wc-fl-overwrite-card:hover {
  border-color: #cbd5e1;
}

.wc-fl-overwrite-card input[type="checkbox"] {
  position: static !important;
  margin: 3px 12px 0 0 !important;
  width: 16px !important;
  height: 16px !important;
  flex-shrink: 0 !important;
  cursor: pointer;
  accent-color: #059669;
}

.wc-fl-overwrite-text {
  flex: 1;
}

.wc-fl-overwrite-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.wc-fl-overwrite-desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.3;
}

.wc-fl-picker-item {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #f1f5f9;
  background-color: #ffffff;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  cursor: pointer;
  transition: all 0.12s ease;
}

.wc-fl-picker-item>* {
  margin-right: 8px;
}

.wc-fl-picker-item>*:last-child {
  margin-right: 0;
}

.wc-fl-picker-item:hover {
  background-color: #f8fafc;
  border-color: #e2e8f0;
}

.wc-fl-picker-checkbox {
  position: static !important;
  margin: 0 8px 0 0 !important;
  width: 15px !important;
  height: 15px !important;
  cursor: pointer;
  accent-color: #059669;
  flex-shrink: 0;
}

.wc-fl-quick-tpl-bar {
  padding: 8px 12px;
  border-radius: 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.wc-fl-quick-label {
  display: flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  color: #334155;
  margin-right: 8px;
  flex-shrink: 0;
}

.wc-fl-quick-label i {
  color: #f59e0b;
  font-size: 15px;
  margin-right: 4px;
}

.wc-fl-quick-btn-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  flex: 1;
}

.wc-fl-quick-btn {
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  border: 1.5px solid transparent;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  margin: 2px 4px;
}

.wc-fl-quick-btn:hover {
  filter: brightness(0.95);
  transform: translateY(-1px);
}

.wc-fl-quick-btn--active {
  border-color: #f59e0b !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3) !important;
  font-weight: 800 !important;
}

.wc-fl-quick-btn--reset {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #64748b !important;
}

.wc-fl-quick-btn--reset:hover {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

.wc-fl-days-list {
  display: flex;
  flex-direction: column;
}

.wc-fl-day-row {
  padding: 8px 12px;
  border-radius: 14px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  transition: all 0.12s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.wc-fl-day-row:hover {
  border-color: #cbd5e1;
}

.wc-fl-day-row--sun {
  border-color: #fecdd3 !important;
  background-color: #fff5f5 !important;
}

.wc-fl-day-left {
  display: flex;
  align-items: center;
  min-width: 145px;
  flex: 1 1 auto;
}

.wc-fl-day-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-right: 12px !important;
}

.wc-fl-day-badge--weekday {
  background-color: #f1f5f9;
  color: #1e293b;
}

.wc-fl-day-badge--sat {
  background-color: #d1fae5;
  color: #047857;
}

.wc-fl-day-badge--sun {
  background-color: #e11d48;
  color: #ffffff;
}

.wc-fl-day-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
}

.wc-fl-day-sub {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  margin-top: 1px;
}

.wc-fl-day-options {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.wc-fl-shift-btn {
  min-width: 44px;
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid #e2e8f0;
  background-color: #f1f5f9;
  color: #475569;
  transition: all 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  margin: 2px 3px;
}

.wc-fl-shift-btn:hover {
  background-color: #e2e8f0;
  color: #0f172a;
}

.wc-fl-shift-btn--selected {
  color: #ffffff !important;
  border-color: transparent !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.16);
  font-weight: 800;
}

.wc-fl-shift-btn--off-unselected {
  background-color: #ffffff !important;
  border: 1px dashed #cbd5e1 !important;
  color: #94a3b8 !important;
}

.wc-fl-shift-btn--off-unselected:hover {
  border-color: #f43f5e !important;
  color: #e11d48 !important;
  background-color: #fff1f2 !important;
}

.wc-fl-legend-bar {
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.wc-fl-legend-item {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748b;
  margin-right: 14px;
  margin-bottom: 4px;
}

.wc-fl-legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: 5px;
  flex-shrink: 0;
}

.wc-fl-legend-text {
  white-space: nowrap;
}

#wcRosterAssignModal .modal-footer {
  padding: 14px 20px !important;
  border-top: 1px solid #f1f5f9 !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
}

.wc-fl-btn-close {
  flex: 1 !important;
  height: 42px !important;
  border-radius: 12px !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  margin-right: 12px !important;
}

.wc-fl-btn-close:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

.wc-fl-btn-submit {
  flex: 2 !important;
  height: 42px !important;
  border-radius: 12px !important;
  background-color: #059669 !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28) !important;
  transition: all 0.15s ease !important;
}

.wc-fl-btn-submit i {
  margin-right: 6px;
}

.wc-fl-btn-submit:hover {
  background-color: #047857 !important;
  box-shadow: 0 6px 16px rgba(5, 150, 105, 0.35) !important;
}

/* Single Day Options */
.wc-roster-single-options {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wc-roster-single-opt {
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s ease;
  margin: 0;
}

.wc-roster-single-opt input[type="radio"] {
  display: none;
}

.wc-roster-single-opt:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.wc-roster-single-opt--selected {
  border-color: var(--tblr-primary, #206bc4) !important;
  background: #eff6ff !important;
  box-shadow: 0 0 0 1px var(--tblr-primary, #206bc4) !important;
}

.wc-roster-single-opt__body {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.wc-roster-single-opt__badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid transparent;
  min-width: 50px;
  text-align: center;
}

.wc-roster-single-opt__badge--off {
  background: #f1f5f9;
  color: #64748b;
  border-color: #e2e8f0;
}

.wc-roster-single-opt__title {
  font-weight: 600;
  font-size: 13px;
  color: #1e293b;
}

.wc-roster-single-opt__sub {
  font-size: 11.5px;
}

/* ==============================================================================
 * 25. MODULE CA LÀM VIỆC & HỆ SỐ OT (WORKING SHIFTS & OT COEFFICIENTS)
 * ============================================================================== */

/* Page Container Top Spacing & Horizontal Alignment (Quy chuẩn 1.7) */
.wc-employees-page--working-shifts {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
  box-sizing: border-box !important;
  min-height: calc(100vh - 120px) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--working-shifts {
  margin-top: 0 !important;
}

/* Page Header (Quy chuẩn 1.7 & 1.8: đồng bộ padding và margin-bottom 1:1 với .wc-ts-period-header) */
.wc-ws-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.wc-ws-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.wc-ws-header .tblr-page-pretitle,
.wc-ts-period-header .tblr-page-pretitle,
.wc-employees-page--timesheet .tblr-page-pretitle,
.wc-employees-page--work-schedule .tblr-page-pretitle,
.wc-employees-page--working-shifts .tblr-page-pretitle,
.wc-employees-page--timesheet-detail .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-ws-header .tblr-page-title,
.wc-ts-period-header .tblr-page-title,
.wc-employees-page--timesheet .tblr-page-title,
.wc-employees-page--work-schedule .tblr-page-title,
.wc-employees-page--working-shifts .tblr-page-title,
.wc-employees-page--timesheet-detail .tblr-page-title,
.wc-employees-page--timesheet-detail #wcTsPeriodLabel {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Segmented Page Tabs in Header Right (Quy chuẩn 1.8) */
.wc-ws-page-tabs {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px !important;
  background-color: #e2e8f0 !important;
  border-radius: var(--tblr-radius-md, 8px) !important;
  border: none !important;
  gap: 3px !important;
  margin: 0 !important;
}

.wc-ws-page-tabs .wc-employees-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  line-height: 1.2 !important;
  text-decoration: none !important;
}

.wc-ws-page-tabs .wc-employees-tab:hover {
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.wc-ws-page-tabs .wc-employees-tab--active {
  background-color: #ffffff !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1) !important;
}

/* Panes */
.wc-ws-pane[hidden] {
  display: none !important;
}

/* Summary KPI Stat Cards Row (Quy chuẩn 4 Box Tóm tắt nằm dưới title) */
.wc-ws-stats,
.wc-ot-stats {
  margin-bottom: 14px !important;
}

.wc-ws-stat-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 10px 16px !important;
  background-color: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-md, 8px) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.wc-ws-stat-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07) !important;
  transform: translateY(-1px) !important;
}

.wc-ws-stat-card__avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 8px !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

.wc-ws-stat-card__avatar--blue {
  background-color: rgba(32, 107, 196, 0.08) !important;
  color: #206bc4 !important;
  border: 1px solid rgba(32, 107, 196, 0.18) !important;
}

.wc-ws-stat-card__avatar--purple {
  background-color: rgba(116, 51, 255, 0.08) !important;
  color: #7433ff !important;
  border: 1px solid rgba(116, 51, 255, 0.18) !important;
}

.wc-ws-stat-card__avatar--green {
  background-color: rgba(47, 179, 68, 0.08) !important;
  color: #2fb344 !important;
  border: 1px solid rgba(47, 179, 68, 0.18) !important;
}

.wc-ws-stat-card__avatar--amber {
  background-color: rgba(245, 159, 0, 0.08) !important;
  color: #f59f00 !important;
  border: 1px solid rgba(245, 159, 0, 0.18) !important;
}

.wc-ws-stat-card__avatar--rose {
  background-color: rgba(214, 57, 57, 0.08) !important;
  color: #d63939 !important;
  border: 1px solid rgba(214, 57, 57, 0.18) !important;
}

.wc-ws-stat-card__content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  gap: 2px !important;
}

.wc-ws-stat-card__title {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.wc-ws-stat-card__metric {
  display: flex !important;
  align-items: baseline !important;
  min-height: 24px !important;
  line-height: 1.25 !important;
  font-size: 13px !important;
  color: #475569 !important;
}

.wc-ws-stat-number {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-feature-settings: "tnum" !important;
  letter-spacing: -0.02em !important;
}

.wc-ws-stat-card__metric .text-muted,
.wc-ws-stat-card__metric .fs-xs {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.25 !important;
}

.wc-ws-stat-card__metric .ms-1 {
  margin-left: 4px !important;
}

/* Unified 3-Tier Card Panel Standard (Quy chuẩn 1.11) */
.wc-ws-panel.tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background: #ffffff !important;
  box-shadow: none !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Tầng 1: Toolbar / Card Header */
.wc-ws-panel .wc-employees-toolbar.tblr-card-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 20px !important;
  background: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  min-height: 60px !important;
  box-sizing: border-box !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.wc-ws-panel .wc-employees-toolbar__left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex: 1 1 auto !important;
  max-width: 480px !important;
}

.wc-ws-panel .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* Search input with left icon and absolute clear button (Quy chuẩn 1.6) */
.wc-ws-search {
  position: relative !important;
  width: 100% !important;
  max-width: 380px !important;
}

.wc-ws-search .tblr-input-icon-addon {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  color: #64748b !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

.wc-ws-search .tblr-form-control {
  height: 36px !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
  font-size: 13.5px !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background-color: #ffffff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wc-ws-search .tblr-form-control:focus {
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15) !important;
}

.wc-ws-search .wc-employees-search__clear {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2.25rem !important;
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 12px !important;
  z-index: 3 !important;
}

.wc-ws-search .wc-employees-search__clear:hover {
  color: #0f172a !important;
}

/* Tầng 2: Chrome Bar Sub-toolbar */
.wc-ws-grid-chrome {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 20px !important;
  background-color: #f8fafc !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  font-size: 12.5px !important;
  min-height: 44px !important;
  box-sizing: border-box !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.wc-ws-grid-chrome__left {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.wc-ws-grid-chrome__right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.wc-ws-count-text {
  font-size: 12.5px !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Filter Chips (Quy chuẩn 1.11) */
.wc-ws-filter-chips {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wc-ws-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-ws-chip:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.wc-ws-chip--active {
  background-color: #eff6ff !important;
  border-color: #206bc4 !important;
  color: #206bc4 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(32, 107, 196, 0.1) !important;
}

.wc-ws-chip .tblr-badge-lt {
  font-size: 11px !important;
  padding: 1px 6px !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}

/* Tầng 3: Data Table (Quy chuẩn 1.8) */
.wc-ws-panel .tblr-card-table {
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

.wc-ws-panel .wc-employees-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: collapse !important;
  border: none !important;
}

.wc-ws-panel .wc-employees-table thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  height: 40px !important;
  padding: 8px 14px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  white-space: nowrap !important;
}

.wc-ws-panel .wc-employees-table thead th:first-child,
.wc-ws-panel .wc-employees-table tbody td:first-child {
  padding-left: 20px !important;
}

.wc-ws-panel .wc-employees-table thead th:last-child,
.wc-ws-panel .wc-employees-table tbody td:last-child {
  padding-right: 20px !important;
}

.wc-ws-panel .wc-employees-table tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  transition: background-color 0.12s ease !important;
}

.wc-ws-panel .wc-employees-table tbody tr:hover {
  background-color: #f8fafc !important;
}

.wc-ws-panel .wc-employees-table tbody td {
  padding: 8px 14px !important;
  vertical-align: middle !important;
  font-size: 13px !important;
  color: #1e293b !important;
  border: none !important;
}

/* Shift Squircle Avatar */
.wc-shift-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 8px !important;
  border: 1px solid rgba(0, 0, 0, 0.06) !important;
  flex-shrink: 0 !important;
  margin-right: 12px !important;
}

.wc-shift-avatar i {
  font-size: 16px !important;
}

/* OT Squircle Avatar */
.wc-ot-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  border-radius: 8px !important;
  background-color: rgba(32, 107, 196, 0.08) !important;
  color: var(--tblr-primary, #206bc4) !important;
  border: 1px solid rgba(32, 107, 196, 0.15) !important;
  flex-shrink: 0 !important;
  margin-right: 12px !important;
}

.wc-ot-avatar i {
  font-size: 16px !important;
}

/* Time range & Break icons in table cells */
.wc-ws-time-icon {
  display: inline-flex !important;
  align-items: center !important;
  font-size: 15px !important;
  color: #64748b !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
  vertical-align: middle !important;
}

/* Monospace Code Badge */
.wc-ws-code-badge {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 3px 8px !important;
  border-radius: 4px !important;
  font-family: var(--tblr-font-monospace, 'SFMono-Regular', Menlo, Monaco, Consolas, monospace) !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  letter-spacing: 0.02em !important;
}

/* Action Button Group in Table (Quy chuẩn 1.9) */
.wc-ws-panel .tblr-btn-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
}

.wc-ws-panel .tblr-btn-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-ws-panel .tblr-btn-icon:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.wc-ws-panel .tblr-btn-icon.text-danger:hover {
  background-color: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

.wc-ws-panel .tblr-btn-icon i {
  font-size: 15px !important;
  line-height: 1 !important;
}

/* Tầng 4: Card Footer & Pager (Quy chuẩn 1.11) */
.wc-ws-panel .tblr-card-footer.wc-ws-table-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 20px 12px !important;
  background-color: #f8fafc !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  min-height: 48px !important;
  box-sizing: border-box !important;
  gap: 16px !important;
  flex-wrap: wrap !important;
}

.wc-ws-table-pager {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.wc-ws-table-pager__info {
  font-size: 12.5px !important;
  color: #64748b !important;
}

.wc-ws-table-pager__btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-ws-table-pager__btn:hover:not(:disabled) {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.wc-ws-table-pager__btn:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

.wc-ws-table-pager__btn i {
  font-size: 16px !important;
  line-height: 1 !important;
}

/* Modals & Forms for Working Shifts & OT */
/* Modals & Forms for Working Shifts & OT (Quy chuẩn 1.3 & 1.9) */
#wcShiftFormModal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 940px !important;
}

#wcShiftFormModal .wc-confirm-modal__body {
  padding: 16px 20px !important;
}

/* Modal 2x2 Grid Layout:
   Row 1: Card 1 (Basic) Col 1 | Card 2 (Time) Col 2 (Equal Height)
   Row 2: Card 3 (Wage) Col 1  | Card 4 (Advanced) Col 2
*/
@media (min-width: 769px) {
  #wcShiftFormModal .wc-bulk-cards-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    gap: 16px !important;
    align-items: stretch !important;
    margin-bottom: 0 !important;
  }

  #wcShiftFormModal .wc-shift-cards-col {
    display: contents !important;
  }

  #wcShiftFormModal .wc-shift-card-basic {
    grid-column: 1 !important;
    grid-row: 1 !important;
    height: 100% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #wcShiftFormModal .wc-shift-card-time {
    grid-column: 2 !important;
    grid-row: 1 !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #wcShiftFormModal .wc-shift-card-wage {
    grid-column: 1 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }

  #wcShiftFormModal .wc-shift-card-advanced {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 768px) {
  #wcShiftFormModal .wc-bulk-cards-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  #wcShiftFormModal .wc-shift-cards-col {
    display: contents !important;
  }

  #wcShiftFormModal .wc-shift-card-basic {
    order: 1 !important;
  }

  #wcShiftFormModal .wc-shift-card-time {
    order: 2 !important;
  }

  #wcShiftFormModal .wc-shift-card-wage {
    order: 3 !important;
  }

  #wcShiftFormModal .wc-shift-card-advanced {
    order: 4 !important;
  }
}

#wcShiftFormModal .wc-shift-cards-col>.wc-bulk-card+.wc-bulk-card {
  margin-top: 0 !important;
}

#wcShiftFormModal .gap-1 {
  gap: 4px !important;
}

#wcShiftFormModal .gap-2 {
  gap: 8px !important;
}

#wcShiftFormModal .gap-3 {
  gap: 16px !important;
}

#wcShiftFormModal .wc-bulk-card {
  padding: 14px 16px !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

#wcShiftFormModal .wc-bulk-section__head {
  min-height: 36px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
}

/* Card 1: Color Presets & Custom Swatch */
.wc-shift-color-picker-box {
  padding: 10px 14px !important;
  background-color: #f8fafc !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.wc-shift-color-presets {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
}

.wc-shift-color-dot {
  display: inline-block !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  cursor: pointer !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 1px #d8dee4 !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
}

.wc-shift-color-dot:hover {
  transform: scale(1.18) !important;
}

.wc-shift-color-dot.active {
  box-shadow: 0 0 0 2.5px var(--tblr-primary, #206bc4) !important;
  transform: scale(1.12) !important;
}

.wc-shift-color-custom-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-top: 10px !important;
  padding-top: 8px !important;
  border-top: 1px dashed var(--tblr-border-color, #e6e8eb) !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wc-shift-color-custom-label {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.wc-shift-custom-color {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}

.wc-shift-color-preview-wrap {
  position: relative !important;
  width: 32px !important;
  height: 32px !important;
  flex-shrink: 0 !important;
}

.wc-shift-color-input {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  opacity: 0 !important;
  cursor: pointer !important;
  z-index: 2 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wc-shift-color-swatch-badge {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  border: 2px solid #ffffff !important;
  box-shadow: 0 0 0 1px #d8dee4, 0 1px 3px rgba(0, 0, 0, 0.08) !important;
  pointer-events: none !important;
  box-sizing: border-box !important;
}

.wc-shift-hex-input {
  width: 86px !important;
  max-width: 86px !important;
  height: 32px !important;
  font-size: 12px !important;
  font-family: var(--tblr-font-monospace, monospace) !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  text-align: center !important;
  padding: 4px 6px !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
}

/* Card 2: Duration Strip & Break Section */
.wc-shift-duration-strip {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 12px !important;
  background-color: #f8fafc !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 6px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

.wc-shift-duration-text {
  font-size: 12.5px !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

.wc-shift-break-wrap {
  width: 100% !important;
}

.wc-shift-break-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed var(--tblr-border-color, #e6e8eb) !important;
  margin-bottom: 10px !important;
  white-space: nowrap !important;
}

.wc-shift-subhead-title {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

/* Pure-CSS Tabler Toggle Switch (.wc-shift-switch) */
.wc-shift-switch {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  margin: 0 !important;
  user-select: none !important;
  position: relative !important;
}

.wc-shift-switch__input,
.wc-shift-switch input[type="checkbox"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  pointer-events: none !important;
  clip: rect(0, 0, 0, 0) !important;
  border: 0 !important;
}

.wc-shift-switch__track {
  position: relative !important;
  display: inline-block !important;
  width: 36px !important;
  height: 20px !important;
  background-color: #cbd5e1 !important;
  border-radius: 999px !important;
  transition: background-color 0.2s ease !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
}

.wc-shift-switch__track::after {
  content: '' !important;
  position: absolute !important;
  top: 2px !important;
  left: 2px !important;
  width: 16px !important;
  height: 16px !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wc-shift-switch__input:checked+.wc-shift-switch__track,
.wc-shift-switch input[type="checkbox"]:checked+.wc-shift-switch__track {
  background-color: var(--tblr-primary, #206bc4) !important;
}

.wc-shift-switch__input:checked+.wc-shift-switch__track::after,
.wc-shift-switch input[type="checkbox"]:checked+.wc-shift-switch__track::after {
  transform: translateX(16px) !important;
}

.wc-shift-switch__label {
  font-size: 12px !important;
  color: #475569 !important;
  font-weight: 500 !important;
}

/* Card 2: Modern Segmented Mode Selector & Refined Wage Controls */
.wc-shift-mode-segmented {
  display: flex !important;
  align-items: center !important;
  background-color: #f1f5f9 !important;
  border-radius: 8px !important;
  padding: 3px !important;
  gap: 3px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wc-shift-mode-option {
  flex: 1 1 0% !important;
  margin: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  user-select: none !important;
}

.wc-shift-mode-input {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  pointer-events: none !important;
}

.wc-shift-mode-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  white-space: nowrap !important;
}

.wc-shift-mode-btn i {
  font-size: 15px !important;
  color: #94a3b8 !important;
  transition: color 0.15s ease !important;
}

.wc-shift-mode-option:hover .wc-shift-mode-btn {
  color: #1e293b !important;
}

.wc-shift-mode-input:checked+.wc-shift-mode-btn,
.wc-shift-mode-option.active .wc-shift-mode-btn {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.wc-shift-mode-input:checked+.wc-shift-mode-btn i,
.wc-shift-mode-option.active .wc-shift-mode-btn i {
  color: var(--tblr-primary, #206bc4) !important;
}

/* Detail Panel for Wage Calculation */
.wc-shift-mode-detail-panel {
  padding: 10px 14px !important;
  background-color: #f8fafc !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  min-height: 52px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.wc-shift-field-label {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

.wc-shift-field-hint {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 2px !important;
  line-height: 1.3 !important;
}

.wc-shift-field-sublabel {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #475569 !important;
}

/* Quick Chips Group */
.wc-shift-quick-chips-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
}

.wc-shift-quick-chip {
  height: 32px !important;
  padding: 0 9px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  color: #475569 !important;
  background-color: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.wc-shift-quick-chip:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.wc-shift-quick-chip.active {
  color: var(--tblr-primary, #206bc4) !important;
  background-color: rgba(32, 107, 196, 0.08) !important;
  border-color: rgba(32, 107, 196, 0.45) !important;
  font-weight: 700 !important;
}

/* Refined Unit Input Control */
.wc-shift-unit-control {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.wc-shift-unit-control__input {
  width: 100% !important;
  height: 32px !important;
  padding: 4px 44px 4px 10px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  text-align: right !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wc-shift-unit-control__input:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
  outline: none !important;
}

.wc-shift-unit-control__addon {
  position: absolute !important;
  right: 10px !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Allowance Setting Panel */
.wc-shift-allowance-panel {
  padding: 10px 14px !important;
  background-color: #f8fafc !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, background-color 0.15s ease !important;
}

.wc-shift-allowance-panel.active {
  border-color: #cbd5e1 !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.wc-shift-setting-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  background-color: rgba(32, 107, 196, 0.08) !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-size: 16px !important;
  flex-shrink: 0 !important;
  margin-right: 12px !important;
}

.wc-shift-allowance-expand {
  border-top: 1px dashed var(--tblr-border-color, #e6e8eb) !important;
}

/* Fallback legacy unit control */
.wc-shift-compact-unit {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
}

.wc-shift-compact-unit__input {
  width: 100% !important;
  height: 32px !important;
  padding: 4px 38px 4px 8px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-align: right !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
}

.wc-shift-compact-unit__input:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
  outline: none !important;
}

.wc-shift-compact-unit__label {
  position: absolute !important;
  right: 8px !important;
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  pointer-events: none !important;
}

/* Card 4: Dedicated Tabler Switches Card */
.wc-shift-switches-card {
  padding: 10px 14px !important;
  background-color: #f8fafc !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  position: relative !important;
  box-sizing: border-box !important;
}

.wc-shift-switch-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
  position: relative !important;
}

.wc-shift-switch-row__content {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  flex: 1 1 auto !important;
}

.wc-shift-switch-row__title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  line-height: 1.3 !important;
}

.wc-shift-switch-row__desc {
  font-size: 11.5px !important;
  color: #64748b !important;
  line-height: 1.3 !important;
}

.wc-shift-switch-row__sep {
  height: 1px !important;
  background-color: #e2e8f0 !important;
  margin: 6px 0 !important;
}

.wc-ws-color-pill {
  width: 14px !important;
  height: 14px !important;
  border-radius: 4px !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

/* ==============================================================================
 * 18. QUẢN LÝ ĐƠN TỪ CHẤM CÔNG (ATTENDANCE REQUESTS - GIAI ĐOẠN 7)
 * ============================================================================== */

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

body:has(#wcDeactivationBanner) .wc-employees-page--attendance-requests {
  margin-top: 0 !important;
}

/* Header */
.wc-ar-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-ar-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* Panel Card */
.wc-ar-panel {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

/* Toolbar */
.wc-ar-toolbar {
  padding: 0 20px !important;
  height: 58px !important;
  min-height: 58px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
}

/* Chrome Sub-toolbar */
.wc-ar-grid-chrome {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 20px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
}

/* Table styling */
.wc-employees-page--attendance-requests .tblr-table-card thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  height: 40px !important;
  vertical-align: middle !important;
}

.wc-employees-page--attendance-requests .tblr-table-card tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  transition: background-color 0.15s ease !important;
}

.wc-employees-page--attendance-requests .tblr-table-card tbody td {
  vertical-align: middle !important;
  font-size: 13px !important;
  color: #1e293b !important;
}

.wc-employees-page--attendance-requests .tblr-table-card tbody tr:hover {
  background-color: #f8fafc !important;
}

.wc-employees-page--attendance-requests .tblr-table-card th:first-child,
.wc-employees-page--attendance-requests .tblr-table-card td:first-child {
  padding-left: 20px !important;
}

.wc-employees-page--attendance-requests .tblr-table-card th:last-child,
.wc-employees-page--attendance-requests .tblr-table-card td:last-child {
  padding-right: 20px !important;
}

/* Modal form controls */
#wcArFormModal .modal-dialog {
  max-width: 860px !important;
}

#wcArFormModal .modal-content {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-xl, 12px) !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.18) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

#wcArFormModal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 820px !important;
}

#wcArFormModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 14px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
}

#wcArFormModal .wc-confirm-modal__title-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 2px !important;
  min-width: 0 !important;
}

#wcArFormModal .wc-confirm-modal__title {
  margin: 0 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
}

#wcArFormModal .wc-confirm-modal__subtitle {
  margin: 0 !important;
  font-size: 12px !important;
  color: #64748b !important;
  line-height: 1.35 !important;
}

#wcArFormModal .wc-confirm-modal__body {
  padding: 16px 20px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
}

#wcArFormModal .wc-bulk-card {
  padding: 14px 16px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

#wcArFormModal .wc-ar-cards-row {
  margin-left: -10px !important;
  margin-right: -10px !important;
}

#wcArFormModal .wc-ar-cards-row>[class*="col-"] {
  padding-left: 10px !important;
  padding-right: 10px !important;
}

#wcArFormModal .wc-ar-cards-row__col-full,
#wcArFormModal .wc-ar-cards-row>.col-12 {
  margin-top: 18px !important;
}

@media (max-width: 767.98px) {
  #wcArFormModal .wc-ar-cards-row>.col-md-6:first-child {
    margin-bottom: 16px !important;
  }
}

#wcArFormModal .wc-bulk-section__head {
  min-height: 28px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

#wcArFormModal .wc-bulk-section__title {
  margin: 0 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
}

#wcArFormModal .wc-bulk-section__title i {
  font-size: 14px !important;
  color: var(--tblr-primary, #206bc4) !important;
  margin-right: 6px !important;
}

#wcArFormModal .wc-bulk-section__body {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}

#wcArFormModal .form-label {
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  margin-bottom: 5px !important;
  line-height: 1.3 !important;
  display: block !important;
}

#wcArFormModal .tblr-form-control,
#wcArFormModal .tblr-form-select {
  height: 36px !important;
  min-height: 36px !important;
  font-size: 13px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#wcArFormModal .tblr-form-control:focus,
#wcArFormModal .tblr-form-select:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12) !important;
  outline: none !important;
}

#wcArFormModal textarea.tblr-form-control {
  height: auto !important;
  min-height: 60px !important;
  padding: 8px 12px !important;
  resize: vertical !important;
}

#wcArFormModal .wc-ar-attachment-dropzone {
  padding: 8px 14px !important;
  border: 1px dashed #cbd5e1 !important;
  border-radius: 6px !important;
  background-color: #f8fafc !important;
  gap: 12px !important;
}

#wcArHolidayNotice[style*="display: none"],
#wcArHolidayNotice.d-none {
  display: none !important;
}

#wcArFormModal .wc-confirm-modal__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 12px 20px !important;
  background-color: #ffffff !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
}

#wcArFormModal .select2-container .select2-selection--single {
  height: 36px !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  border-radius: 6px !important;
  display: flex !important;
  align-items: center !important;
}

#wcArFormModal .select2-container .select2-selection--single .select2-selection__rendered {
  line-height: 34px !important;
  font-size: 13px !important;
  color: #0f172a !important;
  padding-left: 10px !important;
}

#wcArFormModal .select2-container .select2-selection--single .select2-selection__arrow {
  height: 34px !important;
}

#wcArFormModal,
#wcArCancelModal,
#wcArDeleteModal {
  background: transparent !important;
  background-color: transparent !important;
}

.wc-employees-page--attendance-requests .tblr-form-select,
.wc-employees-page--attendance-requests .wc-payroll-data-period__select {
  height: 36px !important;
  min-height: 36px !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  font-size: 13px !important;
  color: var(--tblr-text-main, #0f172a) !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px 14px !important;
  padding: 6px 28px 6px 10px !important;
}

.wc-employees-page--attendance-requests .wc-ar-tabs {
  display: inline-flex !important;
  align-items: center !important;
  background-color: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 8px !important;
  gap: 2px !important;
  border: 1px solid #e2e8f0 !important;
}

.wc-employees-page--attendance-requests .wc-ar-tabs .wc-employees-tab {
  height: 30px !important;
  padding: 0 12px !important;
  border: none !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--attendance-requests .wc-ar-tabs .wc-employees-tab:hover {
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.wc-employees-page--attendance-requests .wc-ar-tabs .wc-employees-tab--active {
  background-color: #ffffff !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Attendance Requests Avatar (Quy chuẩn khoảng cách ảnh & text 12px) */
.wc-employees-page--attendance-requests .wc-ar-avatar {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  max-width: 32px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  background-color: rgba(32, 107, 196, 0.12) !important;
  color: #206bc4 !important;
  border: 1px solid rgba(32, 107, 196, 0.22) !important;
  text-transform: uppercase !important;
}

/* Attendance Requests Toolbar Controls (Cố định 1 hàng ngang, không vỡ dòng) */
.wc-employees-page--attendance-requests .wc-employees-toolbar {
  flex-wrap: nowrap !important;
  height: 58px !important;
  min-height: 58px !important;
  padding: 0 20px !important;
}

.wc-employees-page--attendance-requests .wc-employees-toolbar__left {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
}

.wc-employees-page--attendance-requests .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  flex-shrink: 0 !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  width: auto !important;
}

.wc-employees-page--attendance-requests .wc-ar-toolbar-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.wc-employees-page--attendance-requests .wc-payroll-data-period {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.wc-employees-page--attendance-requests .wc-payroll-data-period__select {
  width: 140px !important;
  min-width: 130px !important;
  max-width: 160px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.wc-employees-page--attendance-requests .wc-ar-filter-select {
  width: 140px !important;
  min-width: 130px !important;
  max-width: 160px !important;
  height: 36px !important;
  flex: 0 0 auto !important;
  margin: 0 !important;
}

.wc-employees-page--attendance-requests #wcArAddBtn {
  height: 36px !important;
  padding: 0 16px !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 500 !important;
  font-size: 13px !important;
}

/* ==============================================================================
 * UNIFIED STATUS BADGES (Chuẩn hóa cột Trạng thái đồng nhất với Working Shifts)
 * ============================================================================== */
.tblr-badge.wc-employees-status {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 4px 10px !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 16px !important;
  white-space: nowrap !important;
  letter-spacing: 0.2px !important;
}

.tblr-badge.wc-employees-status.wc-employees-status--active,
.tblr-badge.wc-employees-status.tblr-badge-success-lt {
  background-color: #e8f8f1 !important;
  color: #0a9f6c !important;
  border: 1px solid rgba(10, 159, 108, 0.25) !important;
}

.tblr-badge.wc-employees-status.wc-employees-status--inactive,
.tblr-badge.wc-employees-status.tblr-badge-danger-lt {
  background-color: #fde8eb !important;
  color: #e11d48 !important;
  border: 1px solid rgba(225, 29, 72, 0.25) !important;
}

.tblr-badge.wc-employees-status.wc-employees-status--suspend,
.tblr-badge.wc-employees-status.tblr-badge-secondary-lt,
.tblr-badge.wc-employees-status.wc-employees-status--inactive.tblr-badge-secondary-lt {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border: 1px solid rgba(71, 85, 105, 0.2) !important;
}

.tblr-badge.wc-employees-status.tblr-badge-purple-lt,
.tblr-badge.wc-employees-status.wc-employees-status--inactive.tblr-badge-purple-lt {
  background-color: #f3e8ff !important;
  color: #7e22ce !important;
  border: 1px solid rgba(126, 34, 206, 0.25) !important;
}

.tblr-badge.wc-employees-status.wc-employees-status--late,
.tblr-badge.wc-employees-status.tblr-badge-warning-lt {
  background-color: #fff7ed !important;
  color: #c2410c !important;
  border: 1px solid rgba(194, 65, 12, 0.25) !important;
}

/* ==============================================================================
 * ATTENDANCE REQUESTS MODAL: ATTACHMENTS & BUTTONS (Tabler Styled)
 * ============================================================================== */
.tblr-btn-outline-success {
  background-color: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #059669 !important;
  font-weight: 600 !important;
}

.tblr-btn-outline-success:hover {
  background-color: #dcfce7 !important;
  border-color: #4ade80 !important;
  color: #047857 !important;
}

.wc-ar-attachment-dropzone {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background-color: #f8fafc;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
}

.wc-ar-attachment-dropzone:hover {
  border-color: #3b82f6;
  background-color: #eff6ff;
}

.wc-ar-attachment-dropzone__icon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background-color: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #334155;
  font-size: 16px;
  flex-shrink: 0;
}

.wc-ar-attachment-dropzone__content {
  flex: 1;
  min-width: 0;
}

.wc-ar-attachment-dropzone__title {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
}

.wc-ar-attachment-dropzone__desc {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.wc-ar-attachment-dropzone__action {
  flex-shrink: 0;
}

.wc-ar-attachment-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.wc-ar-attachment-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  transition: border-color 0.15s ease;
}

.wc-ar-attachment-item:hover {
  border-color: #cbd5e1;
}

.wc-ar-attachment-item__icon {
  font-size: 16px;
  color: #64748b;
  flex-shrink: 0;
}

.wc-ar-attachment-item__name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #2563eb;
  text-decoration: none;
}

.wc-ar-attachment-item__name:hover {
  text-decoration: underline;
}

.wc-ar-attachment-item__size {
  font-size: 11px;
  color: #94a3b8;
  flex-shrink: 0;
}

.wc-ar-attachment-item__remove {
  border: none;
  background: transparent;
  color: #94a3b8;
  padding: 2px 4px;
  cursor: pointer;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.wc-ar-attachment-item__remove:hover {
  color: #dc2626;
  background-color: #fee2e2;
}

/* ==============================================================================
 * 27. QUY ĐỊNH CHẤM CÔNG (TIMESHEET RULES - GIAI ĐOẠN 6 BƯỚC 6.3)
 * ============================================================================== */

.wc-employees-page--timesheet-rules {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
  min-height: calc(100vh - 120px) !important;
}

body:has(#wcDeactivationBanner) .wc-employees-page--timesheet-rules {
  margin-top: 0 !important;
}

/* Header (Quy chuẩn 1.7 & 1.8) */
.wc-tr-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.wc-tr-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

.wc-tr-header .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-tr-header .tblr-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Segmented Page Tabs in Header Right (Quy chuẩn 1.8) */
.wc-tr-page-tabs {
  display: inline-flex !important;
  align-items: center !important;
  padding: 4px !important;
  background-color: #f1f5f9 !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  gap: 4px !important;
  margin: 0 !important;
}

.wc-tr-page-tabs .wc-employees-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  line-height: 1.2 !important;
}

.wc-tr-page-tabs .wc-employees-tab:hover {
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.6) !important;
}

.wc-tr-page-tabs .wc-employees-tab--active {
  background-color: #ffffff !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08) !important;
}

/* Panel Card */
.wc-tr-panel {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  margin-bottom: 0 !important;
}

/* Toolbar */
.wc-employees-page--timesheet-rules .wc-employees-toolbar {
  padding: 10px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 58px !important;
}

.wc-employees-page--timesheet-rules .wc-employees-toolbar__left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex: 1 !important;
  max-width: 360px !important;
}

.wc-employees-page--timesheet-rules .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Search input container */
.wc-tr-search {
  width: 100% !important;
  position: relative !important;
}

.wc-tr-search .tblr-form-control {
  height: 36px !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  font-size: 13px !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
  background-color: #ffffff !important;
}

.wc-tr-search .tblr-form-control:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
}

.wc-tr-search .tblr-input-icon-addon {
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.25rem !important;
  color: #94a3b8 !important;
  pointer-events: none !important;
}

.wc-tr-search .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;
  border: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  z-index: 3 !important;
}

.wc-tr-search .wc-employees-search__clear:hover {
  color: #0f172a !important;
}

/* Chrome Sub-toolbar */
.wc-tr-grid-chrome {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 8px 20px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  font-size: 12.5px !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}

.wc-tr-grid-chrome__left {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.wc-tr-grid-chrome__right {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wc-tr-legends {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

/* Table Format */
.wc-employees-page--timesheet-rules .tblr-card-table {
  margin: 0 !important;
}

.wc-employees-page--timesheet-rules .tblr-table thead th {
  height: 40px !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 8px 14px !important;
  vertical-align: middle !important;
}

.wc-employees-page--timesheet-rules .tblr-table tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
}

.wc-employees-page--timesheet-rules .tblr-table tbody tr:hover {
  background-color: #f8fafc !important;
}

.wc-employees-page--timesheet-rules .tblr-table tbody td {
  padding: 8px 14px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  font-size: 13px !important;
  color: #1e293b !important;
}

.wc-employees-page--timesheet-rules .tblr-table th:first-child,
.wc-employees-page--timesheet-rules .tblr-table td:first-child {
  padding-left: 20px !important;
}

.wc-employees-page--timesheet-rules .tblr-table th:last-child,
.wc-employees-page--timesheet-rules .tblr-table td:last-child {
  padding-right: 20px !important;
}

/* Action Button Group */
.wc-employees-page--timesheet-rules .tblr-btn-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wc-employees-page--timesheet-rules .tblr-btn-group .tblr-btn {
  height: 30px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}

.wc-employees-page--timesheet-rules .tblr-btn-group .tblr-btn:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.wc-employees-page--timesheet-rules .tblr-btn-group .wc-holiday-del,
.wc-employees-page--timesheet-rules .tblr-btn-group .wc-leave-del {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
}

.wc-employees-page--timesheet-rules .tblr-btn-group .wc-holiday-del i,
.wc-employees-page--timesheet-rules .tblr-btn-group .wc-leave-del i {
  margin: 0 !important;
  padding: 0 !important;
  font-size: 14px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.wc-employees-page--timesheet-rules .tblr-btn-group .wc-holiday-del:hover,
.wc-employees-page--timesheet-rules .tblr-btn-group .wc-leave-del:hover {
  background-color: #fee2e2 !important;
  border-color: #fca5a5 !important;
  color: #dc2626 !important;
}

/* ==============================================================================
   Timesheet Rules Modals (Holiday & Leave Type - Tabler Migration)
   ============================================================================== */
#wcHolidayFormModal.wc-confirm-modal .modal-dialog,
#wcLeaveTypeFormModal.wc-confirm-modal .modal-dialog {
  max-width: 500px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  text-align: left !important;
}

#wcHolidayFormModal .wc-confirm-modal__content,
#wcLeaveTypeFormModal .wc-confirm-modal__content {
  border-radius: 12px !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.22), 0 0 0 1px rgba(15, 23, 42, 0.06) !important;
  border: 1px solid #e2e8f0 !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
}

#wcHolidayFormModal .wc-confirm-modal__header,
#wcLeaveTypeFormModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  padding: 18px 24px 14px !important;
  border-bottom: 1px solid #eef2f6 !important;
  background-color: #ffffff !important;
  position: relative !important;
}

#wcHolidayFormModal .wc-confirm-modal__title,
#wcLeaveTypeFormModal .wc-confirm-modal__title {
  font-size: 16.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
}

#wcHolidayFormModal .wc-confirm-modal__body,
#wcLeaveTypeFormModal .wc-confirm-modal__body {
  padding: 20px 24px !important;
  background-color: #ffffff !important;
}

#wcHolidayFormModal .wc-confirm-modal__footer,
#wcLeaveTypeFormModal .wc-confirm-modal__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 14px 24px !important;
  border-top: 1px solid #eef2f6 !important;
  background-color: #ffffff !important;
}

#wcHolidayFormModal .wc-confirm-modal__footer .tblr-btn,
#wcLeaveTypeFormModal .wc-confirm-modal__footer .tblr-btn {
  height: 36px !important;
  padding: 0 16px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}

/* Tabler Modal Close Icon Button */
.wc-tr-close-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
  outline: none !important;
}

.wc-tr-close-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Unified Single-Border Input Group */
.wc-tr-unified-input-group {
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  height: 36px !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 6px !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wc-tr-unified-input-group:focus-within {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
}

.wc-tr-unified-prefix {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  border-right: 1px solid #d8dee4 !important;
  user-select: none !important;
  line-height: 1 !important;
}

.wc-tr-unified-input {
  flex: 1 1 auto !important;
  width: 1% !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 10px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  text-align: center !important;
  color: #0f172a !important;
  background-color: transparent !important;
  box-sizing: border-box !important;
}

.wc-tr-unified-suffix {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border-left: 1px solid #d8dee4 !important;
  user-select: none !important;
  line-height: 1 !important;
}

/* Quick Preset Chips */
.wc-tr-quick-presets {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.wc-tr-quick-presets__label {
  font-size: 12px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  user-select: none !important;
}

.wc-tr-quick-presets__items {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-wrap: wrap !important;
}

.wc-tr-preset-chip {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 10px !important;
  font-size: 11.5px !important;
  border-radius: 999px !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
  line-height: 1.4 !important;
}

.wc-tr-preset-chip:hover {
  border-color: var(--tblr-primary, #206bc4) !important;
  color: var(--tblr-primary, #206bc4) !important;
  background-color: #f0f7ff !important;
}

.wc-tr-preset-chip--active {
  border-color: var(--tblr-primary, #206bc4) !important;
  color: var(--tblr-primary, #206bc4) !important;
  background-color: #e8f2fc !important;
  font-weight: 600 !important;
}

.wc-tr-preset-chip__val {
  font-weight: 700 !important;
}

.wc-tr-preset-chip__hint {
  color: #64748b !important;
  font-size: 11px !important;
}

.wc-tr-preset-chip--active .wc-tr-preset-chip__hint {
  color: #1d4ed8 !important;
}

/* Date Range Subcard */
.wc-tr-date-range-card {
  padding: 12px 14px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
}

.wc-tr-date-range-card__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 6px !important;
  border-bottom: 1px solid #eef2f6 !important;
}

/* Switch Card inside modal */
.wc-tr-switch-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 12px 16px !important;
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease !important;
  box-sizing: border-box !important;
}

.wc-tr-switch-card:hover {
  border-color: #cbd5e1 !important;
  background-color: #f1f5f9 !important;
}

.wc-tr-switch-card--checked {
  background-color: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
}

.wc-tr-switch-card__info {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.wc-tr-switch-card__title {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  display: flex !important;
  align-items: center !important;
}

.wc-tr-switch-card__desc {
  font-size: 12px !important;
  color: #64748b !important;
  margin-top: 2px !important;
}

/* Pure-CSS Toggle Switch */
.wc-tr-toggle-switch {
  position: relative !important;
  display: inline-block !important;
  width: 44px !important;
  height: 24px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  cursor: pointer !important;
}

.wc-tr-toggle-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  pointer-events: none !important;
}

.wc-tr-toggle-slider {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: #cbd5e1 !important;
  border-radius: 24px !important;
  transition: background-color 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wc-tr-toggle-slider::after {
  position: absolute !important;
  content: "" !important;
  height: 18px !important;
  width: 18px !important;
  left: 3px !important;
  top: 3px !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.wc-tr-toggle-switch input:checked+.wc-tr-toggle-slider {
  background-color: var(--tblr-primary, #206bc4) !important;
}

.wc-tr-toggle-switch input:checked+.wc-tr-toggle-slider::after {
  transform: translateX(20px) !important;
}

/* Tabler Badges in Timesheet Rules Page */
.wc-employees-page--timesheet-rules .tblr-badge {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px 8px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  line-height: 1.35 !important;
  white-space: nowrap !important;
}

.wc-employees-page--timesheet-rules .tblr-badge-purple-lt {
  background-color: #f3e8ff !important;
  color: #7e22ce !important;
  border: 1px solid #e9d5ff !important;
}

.wc-employees-page--timesheet-rules .tblr-badge-azure-lt {
  background-color: #e0f2fe !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
}

.wc-employees-page--timesheet-rules .tblr-badge-blue-lt {
  background-color: #dbeafe !important;
  color: #1d4ed8 !important;
  border: 1px solid #bfdbfe !important;
}

.wc-employees-page--timesheet-rules .tblr-badge-success-lt {
  background-color: #dcfce7 !important;
  color: #15803d !important;
  border: 1px solid #bbf7d0 !important;
}

.wc-employees-page--timesheet-rules .tblr-badge-secondary-lt {
  background-color: #f1f5f9 !important;
  color: #64748b !important;
  border: 1px solid #e2e8f0 !important;
}

/* ==============================================================================
   Universal Spacing for Icons/Images + Text (Tabler & Bootstrap 4)
   ============================================================================== */
.tblr-theme-scope .me-0-5,
.tblr-theme-scope .me-0\.5,
.wc-confirm-modal .me-0-5,
.wc-confirm-modal .me-0\.5 {
  margin-right: 0.25rem !important;
}

.tblr-theme-scope .me-1,
.wc-confirm-modal .me-1 {
  margin-right: 0.375rem !important;
}

.tblr-theme-scope .me-1-5,
.tblr-theme-scope .me-1\.5,
.wc-confirm-modal .me-1-5,
.wc-confirm-modal .me-1\.5 {
  margin-right: 0.5rem !important;
}

.tblr-theme-scope .me-2,
.wc-confirm-modal .me-2 {
  margin-right: 0.625rem !important;
}

.tblr-theme-scope .me-3,
.wc-confirm-modal .me-3 {
  margin-right: 1rem !important;
}

.tblr-theme-scope .ms-0-5,
.tblr-theme-scope .ms-0\.5,
.wc-confirm-modal .ms-0-5,
.wc-confirm-modal .ms-0\.5 {
  margin-left: 0.25rem !important;
}

.tblr-theme-scope .ms-1,
.wc-confirm-modal .ms-1 {
  margin-left: 0.375rem !important;
}

.tblr-theme-scope .ms-1-5,
.tblr-theme-scope .ms-1\.5,
.wc-confirm-modal .ms-1-5,
.wc-confirm-modal .ms-1\.5 {
  margin-left: 0.5rem !important;
}

.tblr-theme-scope .ms-2,
.wc-confirm-modal .ms-2 {
  margin-left: 0.625rem !important;
}

.tblr-theme-scope .ms-3,
.wc-confirm-modal .ms-3 {
  margin-left: 1rem !important;
}

.tblr-theme-scope .gap-1,
.wc-confirm-modal .gap-1 {
  gap: 0.25rem !important;
}

.tblr-theme-scope .gap-1-5,
.tblr-theme-scope .gap-1\.5,
.wc-confirm-modal .gap-1-5,
.wc-confirm-modal .gap-1\.5 {
  gap: 0.375rem !important;
}

.tblr-theme-scope .gap-2,
.wc-confirm-modal .gap-2 {
  gap: 0.5rem !important;
}

.tblr-theme-scope .gap-3,
.wc-confirm-modal .gap-3 {
  gap: 0.75rem !important;
}

/* Explicit Icon/Image + Text Margin Safeguards */
.tblr-theme-scope .tblr-btn:not(.tblr-btn-icon) i:not(:only-child),
.tblr-theme-scope .tblr-btn:not(.tblr-btn-icon) svg:not(:only-child),
.wc-confirm-modal .tblr-btn:not(.tblr-btn-icon) i:not(:only-child),
.wc-confirm-modal .tblr-btn:not(.tblr-btn-icon) svg:not(:only-child) {
  margin-right: 6px !important;
  vertical-align: -1.5px;
}

.tblr-theme-scope .tblr-btn i:only-child,
.tblr-theme-scope .tblr-btn svg:only-child,
.tblr-theme-scope .tblr-btn-icon i,
.tblr-theme-scope .tblr-btn-icon svg,
.wc-confirm-modal .tblr-btn i:only-child,
.wc-confirm-modal .tblr-btn svg:only-child {
  margin: 0 !important;
  padding: 0 !important;
}

.tblr-theme-scope .tblr-badge i,
.tblr-theme-scope .tblr-badge svg,
.wc-confirm-modal .tblr-badge i,
.wc-confirm-modal .tblr-badge svg {
  margin-right: 5px !important;
  vertical-align: -1px;
}

.wc-employees-tab i {
  margin-right: 7px !important;
}

.wc-employees-tab .tblr-badge {
  margin-left: 6px !important;
}

.wc-tr-switch-card__title svg,
.wc-tr-switch-card__title i {
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

.wc-tr-date-range-card__header svg,
.wc-tr-date-range-card__header i {
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

.wc-tr-date-range-card svg {
  margin-right: 6px !important;
  flex-shrink: 0 !important;
}

.wc-tr-preset-chip__val {
  margin-right: 4px !important;
}

.wc-tr-legends .tblr-badge+.tblr-badge {
  margin-left: 8px !important;
}

.tblr-btn-group .tblr-btn+.tblr-btn {
  margin-left: 6px !important;
}

/* ==============================================================================
 * 28. CÀI ĐẶT THÔNG SỐ LƯƠNG (PAYROLL SETTINGS - GIAI ĐOẠN 8)
 * ============================================================================== */

.wc-employees-page--payroll-settings {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
  min-height: calc(100vh - 120px) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--payroll-settings,
:has(#wcDeactivationBanner) .wc-employees-page--payroll-settings,
body:has(#wcDeactivationBanner) .wc-employees-page--payroll-settings {
  margin-top: 0 !important;
}

/* Header (Quy chuẩn 1.7 & 1.8) */
.wc-employees-page--payroll-settings .tblr-page-header,
.wc-employees-page--payroll-settings .wc-ps-header,
.wc-ps-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
}

.wc-ps-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-ps-header .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-ps-header .tblr-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Segmented Page Tabs in Header Right (Quy chuẩn 1.8) */
.wc-ps-page-tabs {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px !important;
  background-color: #f1f5f9 !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  gap: 3px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.wc-ps-page-tabs .wc-employees-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.wc-ps-page-tabs .wc-employees-tab i {
  font-size: 16px !important;
}

.wc-ps-page-tabs .wc-employees-tab:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

.wc-ps-page-tabs .wc-employees-tab--active,
.wc-ps-page-tabs .wc-employee-tab--active {
  background-color: #ffffff !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* Panels and Subcards (Quy chuẩn 1.11 & 1.12) */
.wc-ps-panel {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  background-color: #ffffff !important;
  margin-bottom: 16px !important;
}

.wc-ps-panel .tblr-card-footer {
  border-radius: 0 !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #f8fafc !important;
  padding: 10px 20px !important;
  min-height: 52px !important;
}

.wc-ps-subcard {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 18px 20px !important;
  box-sizing: border-box !important;
  height: 100% !important;
  transition: border-color 0.15s ease !important;
}

.wc-ps-subcard:hover {
  border-color: #cbd5e1 !important;
}

.wc-ps-subcard__header {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #eef2f6 !important;
}

/* Info banners (chuẩn Flutter) */
.wc-ps-info-banner {
  padding: 10px 16px !important;
  border-radius: 8px !important;
  font-size: 13px !important;
  line-height: 1.45 !important;
  margin-bottom: 18px !important;
}

.wc-ps-info-banner.alert-success {
  background-color: #ecfdf5 !important;
  border: 1px solid #d1fae5 !important;
  color: #065f46 !important;
}

.wc-ps-info-banner.alert-info {
  background-color: #eff6ff !important;
  border: 1px solid #dbeafe !important;
  color: #1e40af !important;
}

.wc-ps-info-banner i {
  color: inherit !important;
  flex-shrink: 0 !important;
}

/* Biểu thuế TNCN aside card (fix Bậc 5 cut-off) */
.wc-ps-subcard--tax-table {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
}

.wc-ps-subcard--tax-table #wcPitBracketsList {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.wc-ps-subcard--tax-table #wcPitBracketsList li {
  padding: 7px 12px !important;
  min-height: 38px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02) !important;
}

/* Stat card titles clamp & no-clip */
.wc-payroll-settings-stats .wc-ws-stat-card__title {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #64748b !important;
}

.wc-ps-subcard__icon {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
}

.wc-ps-subcard__icon--blue {
  background-color: rgba(32, 107, 196, 0.1) !important;
  color: #206bc4 !important;
  border: 1px solid rgba(32, 107, 196, 0.2) !important;
}

.wc-ps-subcard__icon--green {
  background-color: rgba(47, 179, 68, 0.1) !important;
  color: #2fb344 !important;
  border: 1px solid rgba(47, 179, 68, 0.2) !important;
}

.wc-ps-subcard__icon--purple {
  background-color: rgba(116, 51, 255, 0.1) !important;
  color: #7433ff !important;
  border: 1px solid rgba(116, 51, 255, 0.2) !important;
}

.wc-ps-subcard__title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.wc-ps-subcard__desc {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 2px 0 0 0 !important;
  line-height: 1.4 !important;
}

/* Tabler Input Group (.tblr-input-group & .tblr-input-group-text) */
.tblr-input-group,
.wc-ps-unit-group {
  position: relative !important;
  display: flex !important;
  align-items: stretch !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.tblr-input-group>.tblr-form-control,
.tblr-input-group>input.tblr-form-control,
.wc-ps-unit-group>.tblr-form-control,
.wc-ps-unit-group>input.tblr-form-control {
  position: relative !important;
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
  height: 36px !important;
  border-radius: 6px 0 0 6px !important;
  border: 1px solid #d8dee4 !important;
  border-right: none !important;
  padding: 6px 12px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  font-feature-settings: "tnum" !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.tblr-input-group>.tblr-form-control:focus,
.tblr-input-group>input.tblr-form-control:focus,
.wc-ps-unit-group>.tblr-form-control:focus,
.wc-ps-unit-group>input.tblr-form-control:focus {
  z-index: 2 !important;
  border-color: var(--tblr-primary, #206bc4) !important;
  border-right: 1px solid var(--tblr-primary, #206bc4) !important;
  margin-right: -1px !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
  outline: none !important;
}

.tblr-input-group-text,
.wc-ps-unit-group__addon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 12px !important;
  height: 36px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  color: #64748b !important;
  text-align: center !important;
  white-space: nowrap !important;
  background-color: #f8fafc !important;
  border: 1px solid #d8dee4 !important;
  border-left: 1px solid #d8dee4 !important;
  border-radius: 0 6px 6px 0 !important;
  user-select: none !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  position: static !important;
}

.tblr-input-group>.tblr-input-group-text:first-child {
  border-radius: 6px 0 0 6px !important;
  border-right: none !important;
}

.wc-employees-page--payroll-settings .tblr-form-select {
  height: 36px !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  font-size: 13px !important;
  color: #1e293b !important;
  padding: 6px 28px 6px 12px !important;
  background-color: #ffffff !important;
}

/* Switch card in Tab 2 */
.wc-employees-page--payroll-settings .wc-tr-switch-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
}

.wc-employees-page--payroll-settings .wc-tr-switch-card .wc-settings-checkbox-label {
  font-size: 13px !important;
  color: #1e293b !important;
  font-weight: 500 !important;
}

/* Chrome Sub-toolbar (Tầng 2) */
.wc-ps-grid-chrome {
  padding: 10px 20px !important;
  background-color: #f8fafc !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.wc-ps-grid-chrome__desc {
  flex: 1 1 auto !important;
  max-width: 800px !important;
}

.wc-ps-grid-chrome__legend {
  flex-shrink: 0 !important;
}

/* Policy Table (Quy chuẩn 1.8 & 1.4) */
.wc-policy-table thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  padding: 8px 12px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  vertical-align: middle !important;
}

.wc-policy-table thead .wc-policy-table__group--kpi {
  background-color: #f0f7ff !important;
  border-bottom: 2px solid #bae6fd !important;
  text-align: center !important;
  padding: 6px 12px !important;
}

.wc-policy-table thead .wc-policy-table__group--commission {
  background-color: #faf5ff !important;
  border-bottom: 2px solid #e9d5ff !important;
  border-left: 2px solid #e2e8f0 !important;
  text-align: center !important;
  padding: 6px 12px !important;
}

.wc-policy-table thead .wc-policy-table__sub--kpi {
  background-color: #f8fafc !important;
  font-size: 11px !important;
  color: #475569 !important;
}

.wc-policy-table thead .wc-policy-table__sub--commission {
  background-color: #fcfaff !important;
  font-size: 11px !important;
  color: #475569 !important;
}

.wc-policy-table thead .wc-policy-table__sub--commission:first-of-type {
  border-left: 2px solid #e2e8f0 !important;
}

.wc-policy-table tbody tr {
  height: 58px !important;
  transition: background-color 0.15s ease !important;
}

.wc-policy-table tbody tr:hover {
  background-color: #f8fafc !important;
}

.wc-policy-table tbody td {
  padding: 10px 12px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f3f5 !important;
  font-size: 13px !important;
}

.wc-policy-table th:first-child,
.wc-policy-table td:first-child {
  padding-left: 20px !important;
}

.wc-policy-table th:last-child,
.wc-policy-table td:last-child {
  padding-right: 20px !important;
}

.wc-policy-table__sticky-col {
  min-width: 200px !important;
  max-width: 280px !important;
}

.wc-policy-table__cell--kpi {
  white-space: nowrap !important;
  font-feature-settings: "tnum" !important;
}

.wc-policy-table__cell--commission {
  font-feature-settings: "tnum" !important;
}

.wc-policy-table td.wc-policy-table__cell--commission:first-of-type {
  border-left: 2px solid #e2e8f0 !important;
}

.wc-policy-table__tiers {
  max-width: 280px !important;
  font-size: 12px !important;
  color: #475569 !important;
  white-space: normal !important;
  line-height: 1.4 !important;
}

.wc-policy-table__actions-col {
  border-left: 1px solid #f1f3f5 !important;
  white-space: nowrap !important;
  width: 1% !important;
}

.wc-policy-table .tblr-btn-sm {
  height: 32px !important;
  padding: 0 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

/* Modals (Quy chuẩn 1.3 Anti-Jitter & Single-DIM) */
#wcPolicyFormModal,
#wcPolicyHelpModal,
#wcPolicyDeleteModal {
  background: transparent !important;
  background-color: transparent !important;
}

#wcPolicyFormModal .wc-policy-tiers__head {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 0 10px !important;
  margin-bottom: 8px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--tblr-text-secondary, #64748b) !important;
}

#wcPolicyFormModal .wc-policy-tier-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 8px 10px !important;
  background-color: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  transition: all 0.15s ease !important;
}

#wcPolicyFormModal .wc-policy-tier-row:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
}

#wcPolicyFormModal .wc-policy-tier-remove {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
}

/* ==============================================================================
 * GIAI ĐOẠN 9: MODULE DỮ LIỆU TÍNH LƯƠNG (PAYROLL DATA)
 * ============================================================================== */
.wc-employees-page--payroll-data {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--payroll-data,
:has(#wcDeactivationBanner) .wc-employees-page--payroll-data {
  margin-top: 0 !important;
}

.wc-employees-page--payroll-data .tblr-page-header,
.wc-employees-page--payroll-data .wc-pd-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--payroll-data .wc-pd-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-employees-page--payroll-data .tblr-page-pretitle,
.wc-pd-header .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--payroll-data .tblr-page-title,
.wc-pd-header .tblr-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* KPI Stat Cards (Quy chuẩn 1.12) */
.wc-payroll-data-stats {
  margin-bottom: 14px !important;
}

.wc-payroll-data-stats .wc-ws-stat-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 10px 16px !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-md, 8px) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
}

.wc-payroll-data-stats .wc-ws-stat-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07) !important;
  transform: translateY(-1px) !important;
}

/* 3-Tier Card Panel (Quy chuẩn 1.11) */
.wc-employees-page--payroll-data .wc-pd-panel,
.wc-employees-page--payroll-data .wc-employees-panel {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  margin: 0 !important;
  overflow: hidden !important;
}

/* Tầng 1 Toolbar */
.wc-employees-page--payroll-data .wc-employees-toolbar {
  padding: 10px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.wc-employees-page--payroll-data .wc-employees-toolbar__left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
}

.wc-employees-page--payroll-data .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.wc-employees-page--payroll-data .wc-payroll-data-period {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

.wc-employees-page--payroll-data .wc-payroll-data-period__label {
  font-size: 11px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  margin: 0 !important;
  white-space: nowrap !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.wc-employees-page--payroll-data .wc-payroll-data-period__select {
  height: 36px !important;
  min-height: 36px !important;
  width: auto !important;
  min-width: 170px !important;
  max-width: 260px !important;
}

.wc-employees-page--payroll-data #wcPayrollDataSaveBtn {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  font-weight: 500 !important;
}

/* Tầng 2 Chrome Bar */
.wc-payroll-data-chrome {
  padding: 8px 20px !important;
  background-color: #f8fafc !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-payroll-data-chrome .wc-pd-info-text {
  font-size: 12.5px !important;
  color: #64748b !important;
}

.wc-payroll-data-chrome .wc-pd-total-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-size: 13px !important;
}

/* Tầng 3 Table (Quy chuẩn 1.8) */
.wc-employees-page--payroll-data .tblr-card-table {
  border-top: none !important;
}

#wcPayrollDataTable,
.wc-employees-page--payroll-data .wc-employees-table {
  table-layout: auto !important;
  margin: 0 !important;
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

/* ==============================================================================
 * BỐ CỤC TỰ GIÃN THEO NỘI DUNG, CANH ĐỀU VÀ KHÔNG ĐÈ DỮ LIỆU (#wcPayrollDataTable)
 * ============================================================================== */

/* Cột 1: STT (#) */
#wcPayrollDataTable th.wc-pd-col-index,
#wcPayrollDataTable td.wc-pd-col-index {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 56px !important;
  text-align: center !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

/* Cột 2: Nhân viên (Avatar + Tên + Mã NV) - linh hoạt, tự giãn theo nội dung */
#wcPayrollDataTable th.wc-pd-col-staff,
#wcPayrollDataTable td.wc-pd-col-staff {
  min-width: 200px !important;
  text-align: left !important;
}

/* Cột 3: Khoản mục (Phụ cấp, Tạm ứng, Thu nhập/Khấu trừ khác) */
#wcPayrollDataTable th.wc-pd-col-type,
#wcPayrollDataTable td.wc-pd-col-type {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 140px !important;
  text-align: left !important;
  font-weight: 500 !important;
  color: #334155 !important;
}

/* Cột 4: Số tiền */
#wcPayrollDataTable th.wc-pd-col-amount,
#wcPayrollDataTable td.wc-pd-col-amount {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 130px !important;
  text-align: right !important;
  font-feature-settings: "tnum" !important;
}

/* Cột 5: Ngày áp dụng / phát sinh */
#wcPayrollDataTable th.wc-pd-col-date,
#wcPayrollDataTable td.wc-pd-col-date {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 110px !important;
  text-align: left !important;
  font-feature-settings: "tnum" !important;
}

/* Cột 6: Ghi chú - linh hoạt, tự giãn theo nội dung, trần chống tràn */
#wcPayrollDataTable th.wc-pd-col-note,
#wcPayrollDataTable td.wc-pd-col-note {
  min-width: 160px !important;
  text-align: left !important;
}

#wcPayrollDataTable td.wc-pd-col-note .tblr-text-truncate {
  display: block !important;
  max-width: 320px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Cột 7: Chịu thuế (Chịu thuế / Miễn thuế badge) */
#wcPayrollDataTable th.wc-pd-col-taxable,
#wcPayrollDataTable td.wc-pd-col-taxable {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 105px !important;
  text-align: center !important;
}

/* Cột 8: Thao tác (Sửa, Xóa) */
#wcPayrollDataTable th.wc-pd-col-actions,
#wcPayrollDataTable td.wc-pd-col-actions {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 145px !important;
  text-align: right !important;
}

/* Cột chức vụ (KPI & Sales) */
#wcPayrollDataTable th.wc-pd-col-pos,
#wcPayrollDataTable td.wc-pd-col-pos {
  min-width: 140px !important;
  text-align: left !important;
}

/* Cột % hoàn thành KPI */
#wcPayrollDataTable th.wc-pd-col-pct,
#wcPayrollDataTable td.wc-pd-col-pct {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 120px !important;
  text-align: center !important;
}

/* Cột Định mức tùy chọn (KPI) */
#wcPayrollDataTable th.wc-pd-col-rate,
#wcPayrollDataTable td.wc-pd-col-rate {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 155px !important;
  text-align: right !important;
}

/* Cột Định mức áp dụng (KPI) */
#wcPayrollDataTable th.wc-pd-col-applied,
#wcPayrollDataTable td.wc-pd-col-applied {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 140px !important;
  text-align: right !important;
  font-feature-settings: "tnum" !important;
}

/* Cột Tạm tính (KPI & Sales) */
#wcPayrollDataTable th.wc-pd-col-est,
#wcPayrollDataTable td.wc-pd-col-est {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 135px !important;
  text-align: right !important;
  font-feature-settings: "tnum" !important;
}

/* Cột Doanh số (Sales) */
#wcPayrollDataTable th.wc-pd-col-sales-rev,
#wcPayrollDataTable td.wc-pd-col-sales-rev {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 155px !important;
  text-align: right !important;
}

/* Cột Chỉ tiêu (Sales) */
#wcPayrollDataTable th.wc-pd-col-sales-target,
#wcPayrollDataTable td.wc-pd-col-sales-target {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 155px !important;
  text-align: right !important;
}

/* Cột % hoàn thành Doanh số */
#wcPayrollDataTable th.wc-pd-col-sales-pct,
#wcPayrollDataTable td.wc-pd-col-sales-pct {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 105px !important;
  text-align: center !important;
}

.wc-employees-page--payroll-data .wc-employees-table thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 2 !important;
  height: 40px !important;
  padding: 8px 12px !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
}

.wc-employees-page--payroll-data .wc-employees-table thead th:first-child,
.wc-employees-page--payroll-data .wc-employees-table tbody td:first-child {
  padding-left: 20px !important;
}

.wc-employees-page--payroll-data .wc-employees-table thead th:last-child,
.wc-employees-page--payroll-data .wc-employees-table tbody td:last-child {
  padding-right: 20px !important;
}

.wc-employees-page--payroll-data .wc-employees-table tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
}

.wc-employees-page--payroll-data .wc-employees-table tbody tr:hover {
  background-color: #f8fafc !important;
}

.wc-employees-page--payroll-data .wc-employees-table tbody td {
  padding: 8px 12px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid #f1f3f5 !important;
  font-size: 13px !important;
  color: #1e293b !important;
}

/* Staff Avatar & Name in Table */
.wc-pd-staff-cell {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

.wc-pd-avatar {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  flex-shrink: 0 !important;
}

.wc-pd-staff-info {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.25 !important;
}

.wc-pd-staff-name {
  font-weight: 600 !important;
  color: #0f172a !important;
}

.wc-pd-staff-sub {
  font-size: 11.5px !important;
  color: #64748b !important;
  margin-top: 1px !important;
  font-feature-settings: "tnum" !important;
}

/* Inline inputs in Table (KPI / Sales) */
.wc-employees-page--payroll-data .wc-employees-table .tblr-form-control,
.wc-employees-page--payroll-data .wc-employees-table .wc-profile-input {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 13px !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
  max-width: 150px !important;
}

.wc-employees-page--payroll-data .wc-employees-table .tblr-form-control:focus,
.wc-employees-page--payroll-data .wc-employees-table .wc-profile-input:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15) !important;
  outline: none !important;
}

/* Unit control & addons for inline table inputs (KPI / Sales) */
.wc-pd-unit-control {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.wc-pd-unit-control--pct {
  max-width: 105px !important;
}

.wc-pd-unit-control--money {
  max-width: 155px !important;
}

.wc-pd-unit-control .tblr-form-control,
.wc-pd-unit-control .wc-profile-input {
  height: 34px !important;
  min-height: 34px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 4px 24px 4px 8px !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background-color: #ffffff !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
}

.wc-pd-unit-control .tblr-form-control:focus,
.wc-pd-unit-control .wc-profile-input:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
  outline: none !important;
}

.wc-pd-unit-addon {
  position: absolute !important;
  right: 8px !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  pointer-events: none !important;
  user-select: none !important;
}

/* Real-time Tạm tính estimate cell highlights (KPI & Sales) */
.wc-pd-estimate-cell {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  transition: all 0.2s ease !important;
  padding: 8px 12px !important;
}

.wc-pd-estimate-cell--kpi {
  background-color: rgba(47, 179, 68, 0.08) !important;
  color: #2fb344 !important;
}

.wc-pd-estimate-cell--sales {
  background-color: rgba(116, 51, 255, 0.08) !important;
  color: #7433ff !important;
}

/* Chrome bar search input */
.wc-pd-search-wrap .tblr-form-control {
  height: 30px !important;
  min-height: 30px !important;
  font-size: 12px !important;
  padding-left: 2.25rem !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
}

.wc-pd-search-wrap .tblr-input-icon-addon {
  width: 2.25rem !important;
  font-size: 13px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
}

/* Modals (Quy chuẩn 1.3 Anti-Jitter & Single-DIM) */
#wcPayrollEntryFormModal,
#wcPayrollEntryDeleteModal,
#wcPayrollIncentiveHelpModal {
  background: transparent !important;
  background-color: transparent !important;
}

/* ==============================================================================
 * PAYROLL DATA MODAL (#wcPayrollEntryFormModal) - SHIFT MODAL STYLE STANDARD
 * ============================================================================== */
#wcPayrollEntryFormModal .modal-dialog {
  max-width: 580px !important;
  margin: 1.75rem auto !important;
}

#wcPayrollEntryFormModal .wc-confirm-modal__body {
  padding: 16px 20px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
}

#wcPayrollEntryFormModal .wc-bulk-card {
  padding: 14px 16px !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

#wcPayrollEntryFormModal .wc-bulk-section__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 36px !important;
  margin-bottom: 12px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px dashed var(--tblr-border-color, #e6e8eb) !important;
}

#wcPayrollEntryFormModal .wc-bulk-section__title {
  margin: 0 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  color: var(--tblr-text-main, #0f172a) !important;
  display: inline-flex !important;
  align-items: center !important;
}

#wcPayrollEntryFormModal .wc-bulk-section__title i {
  font-size: 16px !important;
  color: var(--tblr-primary, #206bc4) !important;
}

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

@media (max-width: 576px) {
  #wcPayrollEntryFormModal .wc-bulk-timesheet-grid {
    grid-template-columns: 1fr !important;
  }
}

#wcPayrollEntryFormModal .wc-bulk-timesheet-field--full {
  grid-column: 1 / -1 !important;
}

#wcPayrollEntryFormModal .wc-profile-label {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  color: var(--tblr-text-secondary, #475569) !important;
  margin-bottom: 4px !important;
  display: block !important;
}

#wcPayrollEntryFormModal .tblr-form-control:not(textarea),
#wcPayrollEntryFormModal .tblr-form-select,
#wcPayrollEntryFormModal .wc-profile-input:not(textarea),
#wcPayrollEntryFormModal .wc-profile-select {
  height: 36px !important;
  min-height: 36px !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 13px !important;
  border-radius: var(--tblr-radius-md, 6px) !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background-color: #ffffff !important;
  color: var(--tblr-text-main, #0f172a) !important;
  padding: 6px 10px !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
}

#wcPayrollEntryFormModal .tblr-form-control:focus,
#wcPayrollEntryFormModal .tblr-form-select:focus,
#wcPayrollEntryFormModal .wc-profile-input:focus,
#wcPayrollEntryFormModal .wc-profile-select:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
  outline: none !important;
}

#wcPayrollEntryFormModal .wc-shift-unit-control {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

#wcPayrollEntryFormModal .wc-shift-unit-control__input {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 36px 6px 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  text-align: right !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#wcPayrollEntryFormModal .wc-shift-unit-control__input:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
  outline: none !important;
}

#wcPayrollEntryFormModal .wc-shift-unit-control__addon {
  position: absolute !important;
  right: 12px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--tblr-primary, #206bc4) !important;
  pointer-events: none !important;
  user-select: none !important;
}

#wcPayrollEntryFormModal .wc-confirm-modal__footer,
#wcPayrollEntryFormModal .wc-bulk-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 22px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  flex-shrink: 0 !important;
}

#wcPayrollEntryFormModal .wc-bulk-footer__status {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#wcPayrollEntryFormModal .wc-bulk-footer__actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

#wcPayrollEntryFormModal .wc-confirm-modal__btn {
  height: 38px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
  padding: 8px 18px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* ==============================================================================
 * GIAI ĐOẠN 10.1: MODULE DANH SÁCH KỲ TÍNH LƯƠNG (SALARY PERIODS LIST)
 * ============================================================================== */
.wc-employees-page--salary {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--salary,
:has(#wcDeactivationBanner) .wc-employees-page--salary {
  margin-top: 0 !important;
}

.wc-employees-page--salary .tblr-page-header,
.wc-employees-page--salary .wc-salary-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--salary .wc-salary-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-employees-page--salary .wc-salary-header__actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Card Layout for Salary Periods (Quy chuẩn 1.8 & 1.11) */
.wc-salary-panel.tblr-card,
.wc-salary-period-panel.tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  background-color: #ffffff !important;
  margin-bottom: 0 !important;
}

.wc-salary-panel .wc-employees-toolbar.tblr-card-header,
.wc-salary-period-toolbar.tblr-card-header {
  padding: 10px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  min-height: 48px !important;
}

/* Card table: Fixed row height 58px, sticky thead (kế thừa Quy chuẩn 1.8) */
#wcSalaryPeriodTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

#wcSalaryPeriodTable thead th {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  height: 40px !important;
  box-sizing: border-box !important;
}

#wcSalaryPeriodTable th:first-child,
#wcSalaryPeriodTable td:first-child {
  padding-left: 20px !important;
}

#wcSalaryPeriodTable th:last-child,
#wcSalaryPeriodTable td:last-child {
  padding-right: 20px !important;
}

/* ==============================================================================
 * BỐ CỤC TỰ GIÃN THEO NỘI DUNG, CANH ĐỀU VÀ KHÔNG ĐÈ DỮ LIỆU (#wcSalaryPeriodTable)
 * ============================================================================== */

/* Cột 1: STT (#) */
#wcSalaryPeriodTable th:nth-child(1),
#wcSalaryPeriodTable td:nth-child(1),
#wcSalaryPeriodTable .wc-salary-col-index {
  width: 52px !important;
  min-width: 52px !important;
  max-width: 56px !important;
  text-align: center !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

/* Cột 2: Tên kỳ - tự giãn theo nội dung */
#wcSalaryPeriodTable th:nth-child(2),
#wcSalaryPeriodTable td:nth-child(2),
#wcSalaryPeriodTable .wc-salary-col-name {
  min-width: 140px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  text-align: left !important;
}

#wcSalaryPeriodTable td:nth-child(2) .tblr-text-truncate,
#wcSalaryPeriodTable .wc-salary-col-name .tblr-text-truncate {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Cột 3: Thời gian - tự giãn theo ngày tháng */
#wcSalaryPeriodTable th:nth-child(3),
#wcSalaryPeriodTable td:nth-child(3),
#wcSalaryPeriodTable .wc-salary-col-time {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 185px !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  text-align: left !important;
  font-feature-settings: "tnum" !important;
}

/* Cột 4: Phòng ban - tự giãn theo nội dung, dữ liệu nhiều tự chiếm nhiều hơn */
#wcSalaryPeriodTable th:nth-child(4),
#wcSalaryPeriodTable td:nth-child(4),
#wcSalaryPeriodTable .wc-salary-col-dept {
  min-width: 160px !important;
  color: #475569 !important;
  text-align: left !important;
}

#wcSalaryPeriodTable td:nth-child(4) .tblr-text-truncate,
#wcSalaryPeriodTable .wc-salary-col-dept .tblr-text-truncate {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Cột 5: Chức vụ - tự giãn theo nội dung, dữ liệu nhiều tự chiếm nhiều hơn */
#wcSalaryPeriodTable th:nth-child(5),
#wcSalaryPeriodTable td:nth-child(5),
#wcSalaryPeriodTable .wc-salary-col-pos {
  min-width: 150px !important;
  color: #475569 !important;
  text-align: left !important;
}

#wcSalaryPeriodTable td:nth-child(5) .tblr-text-truncate,
#wcSalaryPeriodTable .wc-salary-col-pos .tblr-text-truncate {
  display: block !important;
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

/* Cột 6: Khoá lương - tự co giãn theo badge */
#wcSalaryPeriodTable th:nth-child(6),
#wcSalaryPeriodTable td:nth-child(6),
#wcSalaryPeriodTable .wc-salary-col-lock {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 110px !important;
  text-align: left !important;
}

/* Cột 7: Thao tác - tự co giãn theo cụm nút */
#wcSalaryPeriodTable th:nth-child(7),
#wcSalaryPeriodTable td:nth-child(7),
#wcSalaryPeriodTable .wc-salary-col-actions {
  white-space: nowrap !important;
  width: 1% !important;
  min-width: 155px !important;
  text-align: right !important;
}

/* Chiều rộng đồng đều tuyệt đối giữa 2 nút Chốt lương và Mở lương */
#wcSalaryPeriodTable .wc-salary-calc,
#wcSalaryPeriodTable .wc-salary-open {
  width: 90px !important;
  min-width: 90px !important;
  max-width: 90px !important;
  padding-left: 6px !important;
  padding-right: 6px !important;
  text-align: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
}

/* ==============================================================================
 * GIAI ĐOẠN 10.2: MODULE CHI TIẾT BẢNG TÍNH LƯƠNG (SALARY DETAIL GRID & PAYSLIP MODAL)
 * Thiết kế đồng bộ 100% phong cách với Chi tiết Bảng chấm công (timesheet/:periodId)
 * Tuyệt đối không thêm bất kỳ dữ liệu nào, giữ nguyên các cột hiện có.
 * ============================================================================== */

/* Khử khoảng trống đỉnh trang & tạo lề trái/phải chuẩn (Quy chuẩn 1.7 & 1.11) */
.wc-employees-page--salary-detail {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--salary-detail,
:has(#wcDeactivationBanner) .wc-employees-page--salary-detail {
  margin-top: 0 !important;
}

/* Page Header đồng bộ 100% chuẩn Tabler với Chi tiết Bảng chấm công */
.wc-employees-page--salary-detail .tblr-page-header,
.wc-employees-page--salary-detail .wc-salary-detail-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--salary-detail .wc-salary-detail-header__left {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-employees-page--salary-detail .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--salary-detail .wc-ts-period-bar {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
  min-width: 0 !important;
}

.wc-employees-page--salary-detail .tblr-page-title,
.wc-employees-page--salary-detail #wcSalaryDetailTitle {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Card panel: Góc vuông 100% (border-radius: 0), viền 4 cạnh chuẩn Tabler */
.wc-salary-detail-panel.tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  background-color: #ffffff !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
}

/* Card Toolbar / Header (Không bị wrap, căn 2 bên sạch sẽ) */
.wc-salary-detail-panel .wc-employees-toolbar.tblr-card-header {
  padding: 10px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 12px !important;
  min-height: 52px !important;
}

.wc-salary-detail-panel .wc-employees-toolbar__left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: nowrap !important;
}

.wc-salary-detail-panel .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
  flex-wrap: nowrap !important;
}

.wc-salary-detail-panel .tblr-form-select {
  height: 36px !important;
  font-size: 13px !important;
  padding: 0 28px 0 10px !important;
  min-width: 150px !important;
  max-width: 200px !important;
  border-radius: 6px !important;
}

.wc-salary-detail-panel .tblr-btn-sm {
  height: 36px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  padding: 0 12px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

/* ==============================================================================
 * BẢNG MA TRẬN TÍNH LƯƠNG: #wcSalaryGrid (Sticky Columns chuẩn timesheet detail)
 * ============================================================================== */
.wc-salary-grid-wrap {
  overflow: auto !important;
  border-top: none !important;
  background-color: #ffffff !important;
  position: relative !important;
  max-height: calc(100vh - 270px) !important;
}

#wcSalaryGrid {
  width: max-content !important;
  min-width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  font-size: 13px !important;
  margin: 0 !important;
}

#wcSalaryGrid thead th {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  height: 40px !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

#wcSalaryGrid tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
}

#wcSalaryGrid tbody tr:hover td {
  background-color: #f8fafc !important;
}

#wcSalaryGrid tbody td {
  height: 58px !important;
  max-height: 58px !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f8fafc) !important;
  font-size: 13px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
  text-align: left !important;
}

/* ==============================================================================
 * STICKY COLUMNS FOR SALARY GRID (Đồng bộ 100% với #wcTimesheetGrid)
 * ============================================================================== */
#wcSalaryGrid th.wc-salary-sticky-col,
#wcSalaryGrid td.wc-salary-sticky-col {
  position: sticky !important;
  z-index: 3 !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  height: 58px !important;
  max-height: 58px !important;
}

#wcSalaryGrid thead th.wc-salary-sticky-col {
  z-index: 6 !important;
  background-color: #f8fafc !important;
  height: 40px !important;
}

#wcSalaryGrid tbody tr:hover td.wc-salary-sticky-col {
  background-color: #f8fafc !important;
}

/* Cột STT (#): Sticky left 0 */
#wcSalaryGrid .wc-salary-sticky-col--index {
  left: 0 !important;
  width: 50px !important;
  min-width: 50px !important;
  max-width: 50px !important;
  text-align: center !important;
  font-weight: 500 !important;
  color: #64748b !important;
  padding-left: 16px !important;
  border-right: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
}

/* Cột Nhân viên: Sticky left 50px với viền phải và shadow chia ranh giới */
#wcSalaryGrid .wc-salary-sticky-col--emp {
  left: 50px !important;
  width: 230px !important;
  min-width: 230px !important;
  max-width: 270px !important;
  text-align: left !important;
  border-right: 2px solid var(--tblr-border-color, #e2e8f0) !important;
  box-shadow: 3px 0 6px -2px rgba(15, 23, 42, 0.08) !important;
  padding: 6px 14px !important;
}

/* Cột Công (Cột 4): Canh giữa badge số công */
#wcSalaryGrid thead th:nth-child(4),
#wcSalaryGrid tbody td:nth-child(4) {
  text-align: center !important;
}

/* Định dạng số tiền tabular-nums */
#wcSalaryGrid .js-hr-money {
  font-feature-settings: "tnum" !important;
  font-variant-numeric: tabular-nums !important;
  white-space: nowrap !important;
  text-align: left !important;
}

/* Cột Tổng TN (GROSS) */
#wcSalaryGrid thead th.wc-salary-col-gross {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

#wcSalaryGrid tbody td.wc-salary-col-gross {
  font-weight: 700 !important;
  color: #0f172a !important;
  background-color: #fcfdfe !important;
  border-left: 1px solid #e2e8f0 !important;
  border-right: 1px solid #e2e8f0 !important;
}

#wcSalaryGrid tbody tr:hover td.wc-salary-col-gross {
  background-color: #f1f5f9 !important;
}

/* Cột Thực lĩnh (NET) */
#wcSalaryGrid thead th.wc-salary-col-netpay {
  background-color: rgba(47, 179, 68, 0.08) !important;
  color: #15803d !important;
  font-weight: 700 !important;
}

#wcSalaryGrid tbody td.wc-salary-col-netpay {
  font-weight: 700 !important;
  color: #059669 !important;
  font-size: 13.5px !important;
  background-color: rgba(47, 179, 68, 0.03) !important;
  border-left: 1px solid rgba(47, 179, 68, 0.18) !important;
  border-right: 1px solid rgba(47, 179, 68, 0.18) !important;
}

#wcSalaryGrid tbody tr:hover td.wc-salary-col-netpay {
  background-color: rgba(47, 179, 68, 0.08) !important;
}

/* Thao tác cột cuối */
#wcSalaryGrid th:last-child,
#wcSalaryGrid td:last-child {
  padding-right: 16px !important;
  width: 1% !important;
  white-space: nowrap !important;
  text-align: center !important;
}

/* Header Chi tiết bảng lương & Đang mở / Xem trước sang phải */
.wc-salary-detail-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.wc-salary-detail-header__left {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.wc-salary-detail-header__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-left: auto !important;
}

/* Nút Chốt lương / Mở bảng lương: Tuyệt đối không hiển thị đồng thời */
#wcSalaryOpenBtn[hidden],
#wcSalaryCalculateBtn[hidden],
.wc-salary-detail-panel .wc-employees-tool-btn[hidden] {
  display: none !important;
}

/* Nhân viên avatar & role/dept metadata trong bảng lương (chuẩn timesheet detail) */
#wcSalaryGrid .wc-ts-employee {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

#wcSalaryGrid .wc-ts-employee__avatar {
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background-color: rgba(var(--tblr-primary-rgb, 32, 107, 196), 0.1) !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 700 !important;
  font-size: 11.5px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

#wcSalaryGrid .wc-ts-employee__meta {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  text-align: left !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}

#wcSalaryGrid .wc-ts-employee__name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.25 !important;
  display: block !important;
  max-width: 100% !important;
}

#wcSalaryGrid .wc-ts-employee__role {
  font-size: 11px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
  display: block !important;
  max-width: 100% !important;
}

#wcSalaryGrid .wc-ts-employee__dept {
  font-size: 11px !important;
  font-style: italic !important;
  color: #64748b !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.2 !important;
  display: block !important;
  max-width: 100% !important;
}

/* Card Footer & Phân trang danh sách kỳ lương và chi tiết bảng lương */
.wc-salary-period-pager.tblr-card-footer,
.wc-salary-grid-pager.tblr-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 20px 12px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  font-size: 12.5px !important;
}

.wc-salary-period-pager .wc-table-footer__left,
.wc-salary-period-pager .wc-table-footer__right,
.wc-salary-grid-pager .wc-table-footer__left,
.wc-salary-grid-pager .wc-table-footer__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.wc-salary-period-pager .wc-ts-pager__btn,
.wc-salary-grid-pager .wc-ts-pager__btn {
  width: 28px !important;
  height: 28px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 12px !important;
  line-height: 1 !important;
  border-radius: 4px !important;
}

/* ==============================================================================
 * MODAL PHIẾU LƯƠNG NHÂN VIÊN: #wcSalaryLineModal (Quy chuẩn 1.3 & Tabler Shift Modal Style)
 * ============================================================================== */
#wcSalaryLineModal.wc-confirm-modal .modal-dialog,
#wcSalaryLineModal.wc-confirm-modal .modal-dialog.wc-confirm-modal__dialog {
  max-width: 780px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  text-align: left !important;
  max-height: 92vh !important;
}

#wcSalaryLineModal .modal-content,
#wcSalaryLineModal .wc-confirm-modal__content {
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-xl, 12px) !important;
  box-shadow: 0 20px 48px -10px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(15, 23, 42, 0.05) !important;
  background: #ffffff !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  max-height: 90vh !important;
}

#wcSalaryLineModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 16px 22px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
}

#wcSalaryLineModal .wc-confirm-modal__title {
  margin: 0 !important;
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-main, #1e293b) !important;
}

#wcSalaryLineModal .wc-confirm-modal__body {
  padding: 20px 22px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
  flex: 1 1 auto !important;
}

#wcSalaryLineModal .wc-confirm-modal__footer,
#wcSalaryLineModal .wc-bulk-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 14px 22px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  flex-shrink: 0 !important;
  overflow: visible !important;
  position: relative !important;
  z-index: 1050 !important;
}

#wcSalaryLineModal .wc-bulk-footer__status {
  margin: 0 !important;
  font-size: 12.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

#wcSalaryLineModal .wc-bulk-footer__actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}

/* Payslip Specific Styles matching Flutter UI/UX & Compact Tabler Card */
.wc-payslip-hero-card {
  background: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 10px !important;
  padding: 14px 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

.wc-payslip-hero-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding-bottom: 10px !important;
  border-bottom: 1px dashed var(--tblr-border-color, #e6e8eb) !important;
}

.wc-payslip-staff-left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

.wc-payslip-avatar {
  width: 38px !important;
  height: 38px !important;
  border-radius: 50% !important;
  background: #e0f2fe !important;
  color: #0284c7 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  flex-shrink: 0 !important;
  border: 1.5px solid #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
}

.wc-payslip-staff-name {
  font-size: 14.5px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  line-height: 1.25 !important;
}

.wc-payslip-staff-meta {
  font-size: 12px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  margin-top: 2px !important;
}

.wc-payslip-net-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.wc-payslip-net-label {
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
}

.wc-payslip-net-amount {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 4px !important;
}

.wc-payslip-net-val {
  font-size: 22px !important;
  font-weight: 800 !important;
  color: #059669 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.1 !important;
}

.wc-payslip-net-currency {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #059669 !important;
}

.wc-payslip-mask-btn {
  height: 30px !important;
  padding: 0 10px !important;
  font-size: 11.5px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
}

/* Formula Pipeline - Compact Horizontal Strip */
.wc-payslip-formula-box {
  display: block !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 8px !important;
  padding: 8px 12px !important;
  margin-top: 10px !important;
}

.wc-payslip-formula-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 8px !important;
  padding-bottom: 6px !important;
  border-bottom: 1px dashed #e2e8f0 !important;
}

.wc-payslip-formula-title {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
}

.wc-payslip-formula-pipeline {
  display: grid !important;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr !important;
  align-items: center !important;
  gap: 6px !important;
}

.wc-payslip-pipeline-cell {
  background: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 6px !important;
  padding: 6px 8px !important;
  text-align: center !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02) !important;
}

.wc-payslip-pipeline-cell--result {
  background: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

.wc-payslip-pipeline-tag {
  font-size: 10.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  margin-bottom: 2px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.wc-payslip-pipeline-num {
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

.wc-payslip-pipeline-op {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.wc-payslip-op-badge {
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: #e2e8f0 !important;
  color: #475569 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

.wc-payslip-op-badge--eq {
  background: #059669 !important;
  color: #ffffff !important;
}

.wc-payslip-hero-foot {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-top: 8px !important;
  margin-top: 8px !important;
  border-top: 1px solid var(--tblr-border-subtle, #f1f5f9) !important;
  font-size: 11.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
}

.wc-payslip-mini-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 12px !important;
}

@media (max-width: 576px) {
  .wc-payslip-mini-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

.wc-payslip-mini-stat {
  background: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.wc-payslip-mini-stat__head {
  font-size: 12px !important;
  font-weight: 600 !important;
  margin-bottom: 4px !important;
  display: flex !important;
  align-items: center !important;
}

.wc-payslip-mini-stat__val {
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
}

.wc-payslip-mini-stat__sub {
  font-size: 11px !important;
  margin-top: 2px !important;
}

.wc-payslip-section {
  padding: 16px 18px !important;
  margin-bottom: 12px !important;
}

.wc-payslip-items-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

.wc-payslip-item-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  font-size: 13px !important;
  transition: background-color 0.15s ease !important;
}

.wc-payslip-item-row:hover {
  background-color: #f1f5f9 !important;
}

.wc-payslip-item-row--sub {
  background-color: transparent !important;
  border-left: 2px solid var(--tblr-border-color, #cbd5e1) !important;
  padding-left: 14px !important;
  border-radius: 0 !important;
  font-size: 12.5px !important;
}

.wc-payslip-confirm-box {
  background: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

/* Menu Dropup Xuất & Chia sẻ phiếu lương (Đặt ngay trên button Xuất & chia sẻ) */
.wc-payslip-dropup {
  position: relative !important;
  display: inline-block !important;
}

.wc-payslip-dropup-menu {
  position: absolute !important;
  bottom: calc(100% + 8px) !important;
  right: 0 !important;
  min-width: 275px !important;
  background: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e2e8f0) !important;
  border-radius: 10px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.16), 0 8px 10px -6px rgba(15, 23, 42, 0.1) !important;
  padding: 6px !important;
  z-index: 1080 !important;
  display: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.wc-payslip-dropup-menu.show {
  display: block !important;
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.wc-payslip-menu-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  padding: 9px 10px !important;
  border: none !important;
  background: transparent !important;
  border-radius: 8px !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  outline: none !important;
}

.wc-payslip-menu-item:hover {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
}

.wc-payslip-menu-item__icon {
  width: 34px !important;
  height: 34px !important;
  border-radius: 7px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  flex-shrink: 0 !important;
  transition: all 0.15s ease !important;
}

.wc-payslip-menu-item__icon--share {
  background-color: #ecfdf5 !important;
  color: #059669 !important;
}

.wc-payslip-menu-item:hover .wc-payslip-menu-item__icon--share {
  background-color: #059669 !important;
  color: #ffffff !important;
}

.wc-payslip-menu-item__icon--download {
  background-color: #eff6ff !important;
  color: #2563eb !important;
}

.wc-payslip-menu-item:hover .wc-payslip-menu-item__icon--download {
  background-color: #2563eb !important;
  color: #ffffff !important;
}

.wc-payslip-menu-item__content {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.wc-payslip-menu-item__title {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  line-height: 1.25 !important;
}

.wc-payslip-menu-item__desc {
  display: block !important;
  font-size: 11px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  margin-top: 1px !important;
  line-height: 1.3 !important;
}

.wc-payslip-menu-divider {
  height: 1px !important;
  background-color: var(--tblr-border-color, #e2e8f0) !important;
  margin: 4px 0 !important;
}

/* ==============================================================================
 * GIAI ĐOẠN 11.1 & 11.2: MODULE QUẢN LÝ PHÒNG BAN & CHỨC VỤ (HR CATALOGS)
 * ============================================================================== */
.wc-employees-page--hr-catalog {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 10px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--hr-catalog,
:has(#wcDeactivationBanner) .wc-employees-page--hr-catalog {
  margin-top: 0 !important;
}

/* Header */
.wc-employees-page--hr-catalog .tblr-page-header,
.wc-employees-page--hr-catalog .wc-hr-catalog-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--hr-catalog .wc-hr-catalog-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-employees-page--hr-catalog .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--hr-catalog .tblr-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.wc-employees-page--hr-catalog .wc-hr-catalog-header__title-group p {
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.4 !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}

/* 3-Tier Card Layout */
.wc-employees-page--hr-catalog .wc-employees-panel.tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  background-color: #ffffff !important;
  margin-bottom: 0 !important;
}

.wc-employees-page--hr-catalog .wc-employees-toolbar.tblr-card-header {
  padding: 10px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  min-height: 52px !important;
}

.wc-employees-page--hr-catalog .wc-employees-toolbar__left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.wc-employees-page--hr-catalog .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
}

.wc-employees-page--hr-catalog .wc-hr-catalog-search {
  position: relative !important;
  min-width: 220px !important;
  width: 260px !important;
}

.wc-employees-page--hr-catalog .wc-hr-catalog-search input[type="search"] {
  height: 36px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
}

.wc-employees-page--hr-catalog .wc-hr-catalog-search .wc-employees-search__clear {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2.25rem !important;
  height: 36px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  z-index: 2 !important;
}

.wc-employees-page--hr-catalog .wc-hr-catalog-search .wc-employees-search__clear:hover {
  color: #0f172a !important;
}

/* Chrome Sub-toolbar */
.wc-hr-catalog-chrome {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 8px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 40px !important;
}

.wc-hr-catalog-chrome__left,
.wc-hr-catalog-chrome__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Card Table */
#wcHrDeptTable,
#wcHrPosTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

#wcHrDeptTable thead th,
#wcHrPosTable thead th {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  height: 40px !important;
  box-sizing: border-box !important;
}

#wcHrDeptTable th:first-child,
#wcHrDeptTable td:first-child,
#wcHrPosTable th:first-child,
#wcHrPosTable td:first-child {
  padding-left: 20px !important;
}

#wcHrDeptTable th:last-child,
#wcHrDeptTable td:last-child,
#wcHrPosTable th:last-child,
#wcHrPosTable td:last-child {
  padding-right: 20px !important;
  border-right: none !important;
}

#wcHrDeptTable tbody tr,
#wcHrPosTable tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
}

#wcHrDeptTable tbody tr:hover td,
#wcHrPosTable tbody tr:hover td {
  background-color: #f8fafc !important;
}

#wcHrDeptTable tbody td,
#wcHrPosTable tbody td {
  height: 58px !important;
  max-height: 58px !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f8fafc) !important;
  font-size: 13px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
}

/* ==============================================================================
 * 23. TABLER MODAL CLOSE BUTTON & HR CATALOG POPUP FORMATTING
 * ============================================================================== */

/* Universal Modal Close Button Formatting (Anti-Default-Border & Sleek Tabler Icon) */
.wc-confirm-modal__close,
.tblr-modal-close,
.tblr-modal-close-btn,
.wc-tr-close-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 6px !important;
  background: transparent !important;
  background-color: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.1s ease !important;
  box-shadow: none !important;
  outline: none !important;
  flex-shrink: 0 !important;
  line-height: 1 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

.wc-confirm-modal__close:hover,
.tblr-modal-close:hover,
.tblr-modal-close-btn:hover,
.wc-tr-close-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.wc-confirm-modal__close:active,
.tblr-modal-close:active,
.tblr-modal-close-btn:active,
.wc-tr-close-btn:active {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
  transform: scale(0.96) !important;
}

.wc-confirm-modal__close:focus,
.tblr-modal-close:focus,
.tblr-modal-close-btn:focus,
.wc-tr-close-btn:focus {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(32, 107, 196, 0.2) !important;
}

.wc-confirm-modal__close svg,
.tblr-modal-close svg,
.tblr-modal-close-btn svg,
.wc-tr-close-btn svg {
  width: 18px !important;
  height: 18px !important;
  stroke: currentColor !important;
  stroke-width: 2 !important;
  vertical-align: middle !important;
  pointer-events: none !important;
}

/* Specific Header Alignment for HR Catalog Modals */
#wcHrDeptFormModal .wc-confirm-modal__header,
#wcHrPosFormModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 18px 22px 14px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
}

#wcHrDeptFormModal .wc-confirm-modal__header .wc-confirm-modal__close,
#wcHrPosFormModal .wc-confirm-modal__header .wc-confirm-modal__close {
  margin-top: -2px !important;
  margin-right: -4px !important;
}

/* Modal Body - Clean White Background for High Contrast */
#wcHrDeptFormModal .wc-confirm-modal__body,
#wcHrPosFormModal .wc-confirm-modal__body {
  padding: 20px 22px !important;
  background-color: #ffffff !important;
  overflow-y: auto !important;
  flex: 1 1 auto !important;
}

/* Modal Footer Alignment & Button Heights (Section 1.8 & 1.9) */
#wcHrDeptFormModal .wc-confirm-modal__footer,
#wcHrPosFormModal .wc-confirm-modal__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 14px 22px !important;
  background-color: #ffffff !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  flex-shrink: 0 !important;
}

#wcHrDeptFormModal .wc-confirm-modal__footer .tblr-btn,
#wcHrPosFormModal .wc-confirm-modal__footer .tblr-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

/* ==============================================================================
 * 24. HR EMPLOYEES: REGISTERED EMPLOYEES LIST (Phase 11.3)
 * ============================================================================== */

/* Page Container Padding & Background (Section 1.7 & 1.8) */
.wc-employees-page.wc-employees-page--registered {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 10px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--registered,
:has(#wcDeactivationBanner) .wc-employees-page--registered {
  margin-top: 0 !important;
}

/* Header */
.wc-employees-page--registered .tblr-page-header,
.wc-employees-page--registered .wc-employees-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--registered .wc-employees-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-employees-page--registered .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--registered .tblr-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.wc-employees-page--registered .wc-employees-header__title-group p {
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.4 !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}

/* 4 Summary KPI Stat Cards Row (Quy chuẩn 1.12) */
.wc-employees-page--registered .wc-registered-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 14px !important;
  grid-template-columns: none !important;
}

.wc-employees-page--registered .wc-registered-stats>div[class*="col-"] {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

@media (max-width: 991.98px) {
  .wc-employees-page--registered .wc-registered-stats>div[class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 575.98px) {
  .wc-employees-page--registered .wc-registered-stats>div[class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

.wc-employees-page--registered .wc-ws-stat-card {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  height: 68px !important;
  min-height: 68px !important;
  padding: 10px 16px !important;
  background-color: #ffffff !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-radius: var(--tblr-radius-md, 8px) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

.wc-employees-page--registered .wc-ws-stat-card:hover {
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07) !important;
  transform: translateY(-1px) !important;
}

.wc-employees-page--registered .wc-ws-stat-card__avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  border-radius: 8px !important;
  font-size: 20px !important;
  flex-shrink: 0 !important;
}

.wc-employees-page--registered .wc-ws-stat-card__avatar--green {
  background-color: rgba(47, 179, 68, 0.08) !important;
  color: #2fb344 !important;
  border: 1px solid rgba(47, 179, 68, 0.18) !important;
}

.wc-employees-page--registered .wc-ws-stat-card__avatar--blue {
  background-color: rgba(32, 107, 196, 0.08) !important;
  color: #206bc4 !important;
  border: 1px solid rgba(32, 107, 196, 0.18) !important;
}

.wc-employees-page--registered .wc-ws-stat-card__avatar--amber {
  background-color: rgba(245, 159, 0, 0.08) !important;
  color: #f59f00 !important;
  border: 1px solid rgba(245, 159, 0, 0.18) !important;
}

.wc-employees-page--registered .wc-ws-stat-card__avatar--purple {
  background-color: rgba(116, 51, 255, 0.08) !important;
  color: #7433ff !important;
  border: 1px solid rgba(116, 51, 255, 0.18) !important;
}

.wc-employees-page--registered .wc-ws-stat-card__avatar--rose {
  background-color: rgba(214, 57, 57, 0.08) !important;
  color: #d63939 !important;
  border: 1px solid rgba(214, 57, 57, 0.18) !important;
}

.wc-employees-page--registered .wc-ws-stat-card__content {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  gap: 2px !important;
}

.wc-employees-page--registered .wc-ws-stat-card__title {
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.wc-employees-page--registered .wc-ws-stat-card__metric {
  display: flex !important;
  align-items: baseline !important;
  min-height: 24px !important;
  line-height: 1.25 !important;
  font-size: 13px !important;
  color: #475569 !important;
  white-space: nowrap !important;
}

.wc-employees-page--registered .wc-ws-stat-number {
  font-family: var(--tblr-font-sans, 'Inter', sans-serif) !important;
  font-size: 19px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-feature-settings: "tnum" !important;
  letter-spacing: -0.02em !important;
}

.wc-employees-page--registered .wc-ws-stat-card__metric .text-muted,
.wc-employees-page--registered .wc-ws-stat-card__metric .fs-xs {
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  line-height: 1.25 !important;
  white-space: nowrap !important;
}

.wc-employees-page--registered .wc-ws-stat-card__metric .ms-1 {
  margin-left: 4px !important;
}

/* 3-Tier Card Layout */
.wc-employees-page--registered #wcEmployeesListSection.wc-employees-panel.tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  background-color: #ffffff !important;
  margin-bottom: 0 !important;
  overflow: hidden !important;
}

.wc-employees-page--registered .wc-employees-toolbar.tblr-card-header {
  padding: 10px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  min-height: 52px !important;
}

.wc-employees-page--registered .wc-employees-toolbar__left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

.wc-employees-page--registered .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: auto !important;
}

/* Status Filter Tabs (Quy chuẩn Segmented Controls) */
.wc-employees-page--registered .wc-employees-tabs {
  display: inline-flex !important;
  align-items: center !important;
  background-color: #f1f5f9 !important;
  border-radius: 6px !important;
  padding: 3px !important;
  gap: 3px !important;
  height: 36px !important;
  box-sizing: border-box !important;
}

.wc-employees-page--registered .wc-employees-tab {
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 4px !important;
  border: none !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
}

.wc-employees-page--registered .wc-employees-tab:hover:not(.wc-employees-tab--active) {
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.wc-employees-page--registered .wc-employees-tab--active {
  background-color: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06) !important;
}

/* Search input in Toolbar (Quy chuẩn 1.6 & 1.9) */
.wc-employees-page--registered .wc-employees-search-wrap {
  position: relative !important;
  min-width: 240px !important;
  width: 280px !important;
  height: 36px !important;
}

.wc-employees-page--registered .wc-employees-search-form {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
}

.wc-employees-page--registered .js-staff-search-input,
.wc-employees-page--registered .wc-employees-search-wrap input[type="search"],
.wc-employees-page--registered .wc-employees-search__input {
  height: 36px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background-color: #ffffff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wc-employees-page--registered .js-staff-search-input:focus,
.wc-employees-page--registered .wc-employees-search-wrap input[type="search"]:focus {
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15) !important;
}

.wc-employees-page--registered .wc-employees-search-wrap .tblr-input-icon-addon {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.wc-employees-page--registered .wc-employees-search-wrap .tblr-input-icon-addon i {
  font-size: 16px !important;
}

.wc-employees-page--registered .wc-employees-search__clear {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2.25rem !important;
  height: 36px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  z-index: 2 !important;
  padding: 0 !important;
}

.wc-employees-page--registered .wc-employees-search__clear:hover {
  color: #d63939 !important;
}

/* Chrome Sub-toolbar (Tầng 2) */
.wc-employees-page--registered .wc-employees-grid-chrome {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 8px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 40px !important;
}

.wc-employees-page--registered .wc-employees-grid-chrome__left,
.wc-employees-page--registered .wc-employees-grid-chrome__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Data Table Container & Wrappers */
.wc-employees-page--registered #staffTable_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.wc-employees-page--registered #staffTable_wrapper>.row:first-child {
  display: none !important;
}

/* Data Table #staffTable */
#staffTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

#staffTable thead th {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  height: 40px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

/* Suppress legacy DataTables sorting arrows */
#staffTable thead th.sorting:before,
#staffTable thead th.sorting:after,
#staffTable thead th.sorting_asc:before,
#staffTable thead th.sorting_asc:after,
#staffTable thead th.sorting_desc:before,
#staffTable thead th.sorting_desc:after {
  display: none !important;
  content: "" !important;
}

#staffTable thead th.sorting {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding-right: 24px !important;
}

#staffTable thead th.sorting_asc {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23206bc4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 14 5-5 5 5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding-right: 24px !important;
}

#staffTable thead th.sorting_desc {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23206bc4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding-right: 24px !important;
}

#staffTable th:first-child,
#staffTable td:first-child {
  padding-left: 20px !important;
  text-align: center !important;
  width: 50px !important;
}

#staffTable th:last-child,
#staffTable td:last-child {
  padding-right: 20px !important;
  border-right: none !important;
}

#staffTable tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
}

#staffTable tbody tr:hover td {
  background-color: #f8fafc !important;
}

#staffTable tbody td {
  height: 58px !important;
  max-height: 58px !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f8fafc) !important;
  font-size: 13px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
}

/* Action button group in table row */
.wc-employees-page--registered .tblr-btn-group {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.wc-employees-page--registered .wc-employees-row-view {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background-color: #ffffff !important;
  color: #475569 !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  cursor: pointer !important;
}

.wc-employees-page--registered .wc-employees-row-view:hover:not(.disabled) {
  background-color: #f8fafc !important;
  color: #206bc4 !important;
  border-color: #206bc4 !important;
}

.wc-employees-page--registered .wc-employees-row-view.disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
}

.wc-employees-page--registered .wc-employees-row-view i {
  font-size: 16px !important;
}

/* Checkbox & Radio Controls in Table & Modals (Quy chuẩn 1.13) */
.wc-employees-page--registered .wc-shift-checkbox,
.wc-employees-page--registered .wc-shift-radio {
  display: inline-flex !important;
  align-items: center !important;
  position: relative !important;
  cursor: pointer !important;
  margin: 0 !important;
  line-height: 1 !important;
}

.wc-employees-page--registered .wc-shift-checkbox input[type="checkbox"],
.wc-employees-page--registered .wc-shift-radio input[type="checkbox"],
.wc-employees-page--registered .wc-shift-radio input[type="radio"] {
  position: absolute !important;
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.wc-employees-page--registered .wc-shift-checkbox__checkmark {
  width: 16px !important;
  height: 16px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--registered .wc-shift-checkbox input[type="checkbox"]:checked+.wc-shift-checkbox__checkmark {
  background-color: #206bc4 !important;
  border-color: #206bc4 !important;
}

.wc-employees-page--registered .wc-shift-checkbox input[type="checkbox"]:checked+.wc-shift-checkbox__checkmark::after {
  content: "" !important;
  width: 4px !important;
  height: 8px !important;
  border: solid white !important;
  border-width: 0 2px 2px 0 !important;
  transform: rotate(45deg) translate(-1px, -1px) !important;
  display: block !important;
}

.wc-employees-page--registered .wc-shift-radio__checkmark {
  width: 16px !important;
  height: 16px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--registered .wc-shift-radio input[type="checkbox"]:checked+.wc-shift-radio__checkmark,
.wc-employees-page--registered .wc-shift-radio input[type="radio"]:checked+.wc-shift-radio__checkmark {
  border-color: #206bc4 !important;
}

.wc-employees-page--registered .wc-shift-radio input[type="checkbox"]:checked+.wc-shift-radio__checkmark::after,
.wc-employees-page--registered .wc-shift-radio input[type="radio"]:checked+.wc-shift-radio__checkmark::after {
  content: "" !important;
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background-color: #206bc4 !important;
  display: block !important;
}

/* Card Footer & Pagination (Tầng 4 Quy chuẩn 1.11) */
.wc-employees-page--registered .wc-table-footer,
.wc-employees-page--invitations .wc-table-footer {
  margin: 0 !important;
  padding: 12px 20px !important;
  background-color: #ffffff !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

.wc-employees-page--registered .wc-table-footer__left,
.wc-employees-page--registered .wc-table-footer__right,
.wc-employees-page--invitations .wc-table-footer__left,
.wc-employees-page--invitations .wc-table-footer__right {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.wc-employees-page--registered .wc-table-paginate,
.wc-employees-page--invitations .wc-table-paginate {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wc-employees-page--registered .wc-table-paginate .paginate_button,
.wc-employees-page--invitations .wc-table-paginate .paginate_button {
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.wc-employees-page--registered .wc-table-paginate .paginate_button:hover:not(.disabled),
.wc-employees-page--invitations .wc-table-paginate .paginate_button:hover:not(.disabled) {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.wc-employees-page--registered .wc-table-paginate .paginate_button.disabled,
.wc-employees-page--invitations .wc-table-paginate .paginate_button.disabled {
  opacity: 0.5 !important;
  cursor: not-allowed !important;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
}

.wc-employees-page--registered .wc-page-size,
.wc-employees-page--invitations .wc-page-size {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
}

.wc-employees-page--registered .wc-page-size__toggle,
.wc-employees-page--invitations .wc-page-size__toggle {
  height: 32px !important;
  padding: 0 10px !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background: #ffffff !important;
  font-size: 13px !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.wc-employees-page--registered .wc-page-size__toggle:hover,
.wc-employees-page--invitations .wc-page-size__toggle:hover {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
}

/* Modals Formatting */
#jsModalSetupFee .wc-confirm-modal__header,
#jsModalChangeRole .wc-confirm-modal__header,
#jsModalListStaffChangeStatus .wc-confirm-modal__header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
  padding: 18px 22px 14px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
}

#jsModalSetupFee .wc-confirm-modal__body,
#jsModalChangeRole .wc-confirm-modal__body,
#jsModalListStaffChangeStatus .wc-confirm-modal__body {
  padding: 20px 22px !important;
  background-color: #ffffff !important;
  overflow-y: auto !important;
  flex: 1 1 auto !important;
}

#jsModalSetupFee .wc-confirm-modal__footer,
#jsModalChangeRole .wc-confirm-modal__footer,
#jsModalListStaffChangeStatus .wc-confirm-modal__footer {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 10px !important;
  padding: 14px 22px !important;
  background-color: #ffffff !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  flex-shrink: 0 !important;
}

#jsModalSetupFee .wc-confirm-modal__footer .tblr-btn,
#jsModalChangeRole .wc-confirm-modal__footer .tblr-btn,
#jsModalListStaffChangeStatus .wc-confirm-modal__footer .tblr-btn {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 18px !important;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

#listBusiness thead th,
#listStaffChangeStatus thead th {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 10px 14px !important;
}

#listBusiness tbody td,
#listStaffChangeStatus tbody td {
  padding: 10px 14px !important;
  font-size: 13px !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  vertical-align: middle !important;
}

/* ==============================================================================
 * 23. PHÂN HỆ QUẢN LÝ NHÂN SỰ: THÊM MỚI & SỬA HỒ SƠ NHÂN VIÊN (GIAI ĐOẠN 11.4)
 * ============================================================================== */

/* Khung trang & Margin compensation (Quy chuẩn 1.7) */
.wc-employees-page--hr-employee-new,
.watch-company-employee-detail.wc-hr-employee-new {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 10px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

body:has(#wcDeactivationBanner) .wc-employees-page--hr-employee-new,
body:has(#wcDeactivationBanner) .watch-company-employee-detail.wc-hr-employee-new {
  margin-top: 0 !important;
}

/* Page Header */
.wc-hr-emp-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-hr-emp-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
}

/* 2-Column Balanced Layout */
.wc-hr-employee-new .wc-employee-detail-layout,
.watch-company-employee-detail .wc-employee-detail-layout {
  display: flex !important;
  align-items: flex-start !important;
  gap: 20px !important;
  min-height: 480px !important;
  width: 100% !important;
}

/* Cột trái: Vertical Navigation Nav Pills */
.wc-hr-employee-new .wc-employee-detail-nav,
.watch-company-employee-detail .wc-employee-detail-nav {
  flex: 0 0 230px !important;
  width: 230px !important;
  min-width: 230px !important;
  position: sticky !important;
  top: 16px !important;
  padding: 0 !important;
  margin: 0 !important;
}

.wc-hr-employee-new .wc-emp-nav-card,
.watch-company-employee-detail .wc-emp-nav-card {
  border-radius: 8px !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

.wc-hr-employee-new .wc-emp-nav-list,
.watch-company-employee-detail .wc-emp-nav-list {
  padding: 6px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
}

.wc-hr-employee-new .wc-employee-tab,
.watch-company-employee-detail .wc-employee-tab {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: 40px !important;
  padding: 0 12px !important;
  border: 1px solid transparent !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
  position: relative !important;
}

.wc-hr-employee-new .wc-employee-tab i,
.watch-company-employee-detail .wc-employee-tab i {
  font-size: 16px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
}

.wc-hr-employee-new .wc-employee-tab .wc-emp-tab-text,
.watch-company-employee-detail .wc-employee-tab .wc-emp-tab-text {
  flex: 1 1 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.wc-hr-employee-new .wc-employee-tab:hover,
.watch-company-employee-detail .wc-employee-tab:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.wc-hr-employee-new .wc-employee-tab.wc-employee-tab--active,
.watch-company-employee-detail .wc-employee-tab.wc-employee-tab--active {
  background-color: rgba(32, 107, 196, 0.08) !important;
  border-color: rgba(32, 107, 196, 0.25) !important;
  color: var(--tblr-primary, #206bc4) !important;
  font-weight: 600 !important;
}

.wc-hr-employee-new .wc-employee-tab.wc-employee-tab--active i,
.watch-company-employee-detail .wc-employee-tab.wc-employee-tab--active i {
  color: var(--tblr-primary, #206bc4) !important;
}

/* Cột phải: Main Content Area */
.wc-hr-employee-new .wc-employee-detail-main,
.watch-company-employee-detail .wc-employee-detail-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.wc-hr-employee-new .wc-emp-detail-card,
.watch-company-employee-detail .wc-emp-detail-card {
  border-radius: 8px !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

.wc-hr-employee-new .wc-emp-detail-card .tblr-card-header,
.watch-company-employee-detail .wc-emp-detail-card .tblr-card-header {
  padding: 16px 24px 14px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
}

.wc-hr-employee-new .wc-employee-detail-title,
.watch-company-employee-detail .wc-employee-detail-title {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.wc-hr-employee-new .wc-employee-detail-subtitle,
.watch-company-employee-detail .wc-employee-detail-subtitle {
  font-size: 12.5px !important;
  color: #64748b !important;
  margin: 3px 0 0 !important;
  line-height: 1.3 !important;
}

/* Triệt tiêu khoảng cách thừa từ form cha */
.wc-hr-employee-new .wc-profile-form,
.watch-company-employee-detail .wc-profile-form {
  display: block !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

/* Tab Bodies & Form Spacing */
.wc-hr-employee-new .wc-emp-tab-body,
.watch-company-employee-detail .wc-emp-tab-body {
  padding: 20px 24px 4px !important;
  background-color: #ffffff !important;
}

/* Bố cục lưới hàng & Cột trường nhập liệu (Form Grid & Spacing chuẩn mực) */
.wc-hr-employee-new .wc-emp-tab-body .row,
.watch-company-employee-detail .wc-emp-tab-body .row {
  margin-left: -10px !important;
  margin-right: -10px !important;
}

.wc-hr-employee-new .wc-emp-tab-body .row>[class*="col-"],
.watch-company-employee-detail .wc-emp-tab-body .row>[class*="col-"] {
  padding-left: 10px !important;
  padding-right: 10px !important;
  margin-bottom: 18px !important;
}

/* Tiêu đề phân khu nhỏ trong Form (Sub-headers) */
.wc-hr-employee-new .wc-profile-section-header,
.watch-company-employee-detail .wc-profile-section-header {
  margin-bottom: 14px !important;
}

.wc-hr-employee-new .wc-profile-section-header.border-top,
.watch-company-employee-detail .wc-profile-section-header.border-top {
  margin-top: 6px !important;
  padding-top: 18px !important;
  margin-bottom: 14px !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
}

/* Form Controls & Labels Overrides */
.wc-hr-employee-new .tblr-form-label,
.watch-company-employee-detail .tblr-form-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  margin-bottom: 6px !important;
  display: block !important;
  line-height: 1.4 !important;
}

.wc-hr-employee-new .tblr-form-label.required,
.watch-company-employee-detail .tblr-form-label.required {
  color: #1e293b !important;
}

.wc-hr-employee-new .tblr-form-control,
.wc-hr-employee-new .tblr-form-select,
.wc-hr-employee-new .wc-profile-input,
.wc-hr-employee-new .wc-profile-select,
.watch-company-employee-detail .tblr-form-control,
.watch-company-employee-detail .tblr-form-select,
.watch-company-employee-detail .wc-profile-input,
.watch-company-employee-detail .wc-profile-select {
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  transition: all 0.15s ease !important;
}

.wc-hr-employee-new .tblr-form-control:focus,
.wc-hr-employee-new .tblr-form-select:focus,
.wc-hr-employee-new .wc-profile-input:focus,
.wc-hr-employee-new .wc-profile-select:focus,
.watch-company-employee-detail .tblr-form-control:focus,
.watch-company-employee-detail .tblr-form-select:focus,
.watch-company-employee-detail .wc-profile-input:focus,
.watch-company-employee-detail .wc-profile-select:focus {
  border-color: var(--tblr-primary, #206bc4) !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15) !important;
  outline: none !important;
}

.wc-hr-employee-new .tblr-form-control::placeholder,
.watch-company-employee-detail .tblr-form-control::placeholder {
  color: #94a3b8 !important;
  font-size: 13px !important;
}

.wc-hr-employee-new .tblr-form-control[readonly],
.watch-company-employee-detail .tblr-form-control[readonly],
.watch-company-employee-detail .wc-profile-input[readonly] {
  background-color: #f1f5f9 !important;
  color: #475569 !important;
  border-color: #e2e8f0 !important;
  cursor: default !important;
}

/* Tabler Input Group */
.wc-hr-employee-new .tblr-input-group,
.watch-company-employee-detail .tblr-input-group {
  display: flex !important;
  width: 100% !important;
  position: relative !important;
  align-items: stretch !important;
}

.wc-hr-employee-new .tblr-input-group>.tblr-form-control,
.watch-company-employee-detail .tblr-input-group>.tblr-form-control {
  flex: 1 1 auto !important;
  width: 1% !important;
  min-width: 0 !important;
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  border-right: none !important;
}

.wc-hr-employee-new .tblr-input-group>.tblr-input-group-text,
.watch-company-employee-detail .tblr-input-group>.tblr-input-group-text {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  border-top-left-radius: 0 !important;
  border-bottom-left-radius: 0 !important;
  background-color: #f8fafc !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  color: #64748b !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 0 12px !important;
  height: 36px !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

/* Switch Card cho BHXH & Toggle Controls */
.wc-hr-employee-new .wc-tr-switch-card,
.watch-company-employee-detail .wc-tr-switch-card {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 12px !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  border-radius: 6px !important;
  background-color: #ffffff !important;
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

/* Action Buttons Footer */
.wc-hr-employee-new .wc-profile-actions,
.watch-company-employee-detail .wc-profile-actions {
  margin: 0 !important;
  padding: 14px 24px !important;
  background-color: #f8fafc !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-hr-employee-new .wc-profile-actions .tblr-btn,
.watch-company-employee-detail .wc-profile-actions .tblr-btn {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
}

/* Visibility Helper */
.wc-hr-employee-new .hiden,
.wc-hr-employee-new [hidden],
.watch-company-employee-detail .hiden,
.watch-company-employee-detail [hidden] {
  display: none !important;
}

/* Animation Highlight cho dòng nhân viên vừa được cập nhật tại chỗ */
@keyframes wcRowUpdatedPulse {
  0% {
    background-color: rgba(32, 107, 196, 0.22) !important;
  }

  50% {
    background-color: rgba(32, 107, 196, 0.08) !important;
  }

  100% {
    background-color: transparent !important;
  }
}

tr.wc-row-updated-pulse>td {
  animation: wcRowUpdatedPulse 2s ease-out forwards !important;
}

/* ==============================================================================
 * MODULE MỜI NHÂN VIÊN (EMPLOYEES INVITATIONS - GIAI ĐOẠN 11.5)
 * ============================================================================== */
.wc-employees-page--invitations {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 10px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--invitations,
:has(#wcDeactivationBanner) .wc-employees-page--invitations {
  margin-top: 0 !important;
}

/* Header */
.wc-employees-page--invitations .tblr-page-header,
.wc-employees-page--invitations .wc-employees-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--invitations .wc-employees-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-employees-page--invitations .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--invitations .tblr-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.wc-employees-page--invitations .wc-employees-header__title-group p {
  font-size: 12.5px !important;
  font-weight: 400 !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.4 !important;
  margin-top: 2px !important;
  margin-bottom: 0 !important;
}

.wc-employees-page--invitations .wc-invitations-stats {
  display: flex !important;
  flex-wrap: wrap !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-bottom: 14px !important;
  grid-template-columns: none !important;
}

.wc-employees-page--invitations .wc-invitations-stats>div[class*="col-"] {
  flex: 0 0 25% !important;
  max-width: 25% !important;
  width: 25% !important;
}

@media (max-width: 991.98px) {
  .wc-employees-page--invitations .wc-invitations-stats>div[class*="col-"] {
    flex: 0 0 50% !important;
    max-width: 50% !important;
    width: 50% !important;
  }
}

@media (max-width: 575.98px) {
  .wc-employees-page--invitations .wc-invitations-stats>div[class*="col-"] {
    flex: 0 0 100% !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Toolbar & Chrome */
.wc-employees-page--invitations .wc-employees-toolbar {
  padding: 10px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}

.wc-employees-page--invitations .wc-employees-toolbar__left,
.wc-employees-page--invitations .wc-employees-toolbar__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
}

.wc-employees-page--invitations .wc-employees-search-wrap {
  width: 240px !important;
  position: relative !important;
}

.wc-employees-page--invitations .js-staff-invitation-search-input,
.wc-employees-page--invitations .wc-employees-search__input {
  height: 36px !important;
  border-radius: 6px !important;
  padding-left: 2.25rem !important;
  padding-right: 2.25rem !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background-color: #ffffff !important;
  width: 100% !important;
  box-sizing: border-box !important;
  color: #1e293b !important;
  outline: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.wc-employees-page--invitations .js-staff-invitation-search-input:focus,
.wc-employees-page--invitations .wc-employees-search-wrap input[type="search"]:focus {
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15) !important;
}

.wc-employees-page--invitations .wc-employees-search-wrap .tblr-input-icon-addon {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2.25rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  pointer-events: none !important;
  z-index: 1 !important;
}

.wc-employees-page--invitations .wc-employees-search-wrap .tblr-input-icon-addon i {
  font-size: 16px !important;
}

.wc-employees-page--invitations .wc-employees-search__clear {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 2.25rem !important;
  height: 36px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13px !important;
  z-index: 2 !important;
  padding: 0 !important;
}

.wc-employees-page--invitations .wc-employees-search__clear:hover {
  color: #d63939 !important;
}

/* Chrome Sub-toolbar (Tầng 2) */
.wc-employees-page--invitations .wc-employees-grid-chrome {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 8px 20px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 40px !important;
}

.wc-employees-page--invitations .wc-employees-grid-chrome__left,
.wc-employees-page--invitations .wc-employees-grid-chrome__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Data Table Container & Wrappers */
.wc-employees-page--invitations #staffInviteTable_wrapper {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
}

.wc-employees-page--invitations #staffInviteTable_wrapper>.row:first-child {
  display: none !important;
}

/* Data Table #staffInviteTable */
#staffInviteTable {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

#staffInviteTable thead th {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  height: 40px !important;
  box-sizing: border-box !important;
  position: relative !important;
}

#staffInviteTable thead th.sorting:before,
#staffInviteTable thead th.sorting:after,
#staffInviteTable thead th.sorting_asc:before,
#staffInviteTable thead th.sorting_asc:after,
#staffInviteTable thead th.sorting_desc:before,
#staffInviteTable thead th.sorting_desc:after {
  display: none !important;
  content: "" !important;
}

#staffInviteTable thead th.sorting {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 15 5 5 5-5'/%3E%3Cpath d='m7 9 5-5 5 5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding-right: 24px !important;
}

#staffInviteTable thead th.sorting_asc {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23206bc4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 14 5-5 5 5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding-right: 24px !important;
}

#staffInviteTable thead th.sorting_desc {
  cursor: pointer !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23206bc4' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  padding-right: 24px !important;
}

#staffInviteTable th:first-child,
#staffInviteTable td:first-child {
  padding-left: 20px !important;
  text-align: center !important;
  width: 50px !important;
}

#staffInviteTable th:last-child,
#staffInviteTable td:last-child {
  padding-right: 20px !important;
  border-right: none !important;
  text-align: center !important;
  width: 80px !important;
}

#staffInviteTable th:nth-last-child(2),
#staffInviteTable td:nth-last-child(2) {
  text-align: center !important;
  width: 120px !important;
  white-space: nowrap !important;
}

#staffInviteTable tbody tr {
  height: 58px !important;
  max-height: 58px !important;
  transition: background-color 0.15s ease !important;
}

#staffInviteTable tbody tr:hover td {
  background-color: #f8fafc !important;
}

#staffInviteTable tbody td {
  height: 58px !important;
  max-height: 58px !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  border-right: 1px solid var(--tblr-border-subtle, #f8fafc) !important;
  font-size: 13px !important;
  color: #1e293b !important;
  box-sizing: border-box !important;
  background-color: #ffffff !important;
}

/* Checkbox container inside #staffInviteTable and Modals */
.form-login-checkbox-cus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  margin: 0 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}

.form-login-checkbox_box.checkbox-staff,
.form-login-checkbox_box.checkbox-staff-modal,
.form-login-checkbox_box.checkbox-staff--checked {
  width: 16px !important;
  height: 16px !important;
  accent-color: var(--tblr-primary, #206bc4) !important;
  cursor: pointer !important;
  margin: 0 !important;
  border-radius: 4px !important;
}

.form-login-checkbox_checkmark.sent-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 0 !important;
  color: #2fb344 !important;
  line-height: 1 !important;
  margin-left: 2px !important;
}

.form-login-checkbox_checkmark.sent-icon i {
  font-size: 14px !important;
  color: #2fb344 !important;
}

/* Modal Table #listStaffInvite & #listStaffInviteLegacy */
#listStaffInvite,
#listStaffInviteLegacy,
#jsStaffInvitesTable,
#listEmployeesNotMatched {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin: 0 !important;
}

#listStaffInvite thead th,
#listStaffInviteLegacy thead th,
#jsStaffInvitesTable thead th,
#listEmployeesNotMatched thead th {
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 10px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  height: 38px !important;
}

#listStaffInvite tbody td,
#listStaffInviteLegacy tbody td,
#jsStaffInvitesTable tbody td,
#listEmployeesNotMatched tbody td {
  padding: 10px 12px !important;
  vertical-align: middle !important;
  border-top: none !important;
  border-bottom: 1px solid var(--tblr-border-subtle, #f1f3f5) !important;
  font-size: 13px !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
}

#listStaffInvite tbody tr:hover td,
#listStaffInviteLegacy tbody tr:hover td,
#jsStaffInvitesTable tbody tr:hover td {
  background-color: #f8fafc !important;
}

/* ==============================================================================
 * GIAI ĐOẠN 12: TRANG HỖ TRỢ / PHẢN HỒI & TÀI KHOẢN NGƯỜI DÙNG (TABLER STANDARD)
 * ============================================================================== */

/* --- 1. Support & Feedback Page Layout --- */
.wc-employees-page--support {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  padding: 10px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
}

#wcSupportFeedbackSection.wc-employees-panel.tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: none !important;
  background: #ffffff !important;
}

/* Chrome Sub-toolbar: Guarantee 1 line, Left & Right aligned */
.wc-employees-page--support .wc-employees-grid-chrome {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  background-color: var(--tblr-surface-subtle, #f8fafc) !important;
  padding: 8px 20px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  min-height: 38px !important;
}

.wc-employees-page--support .wc-employees-grid-chrome__left,
.wc-employees-page--support .wc-employees-grid-chrome__right {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

/* Hide DataTables default Search: [   ] and top wrapper row */
.wc-employees-page--support #feedBacksTable_wrapper>.row:first-child,
.wc-employees-page--support #feedBacksTable_filter,
#feedBacksTable_filter {
  display: none !important;
}

#feedBacksTable {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

#feedBacksTable thead th {
  height: 40px !important;
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid #e6e8eb !important;
  padding: 8px 12px !important;
  vertical-align: middle !important;
}

#feedBacksTable thead th:first-child,
#feedBacksTable tbody td:first-child {
  padding-left: 20px !important;
}

#feedBacksTable thead th:last-child,
#feedBacksTable tbody td:last-child {
  padding-right: 20px !important;
}

#feedBacksTable tbody tr {
  height: 58px !important;
  max-height: 58px !important;
}

#feedBacksTable tbody td {
  padding: 8px 12px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #f1f5f9 !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
}

#feedBacksTable tbody tr:hover td {
  background-color: #f8fafc !important;
}

/* --- 2. Feedback Detail Modal (#FormFeedBacksModal) --- */
#FormFeedBacksModal {
  background: transparent !important;
}

#FormFeedBacksModal.modal.fade .modal-dialog {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease !important;
  transform: scale(0.96) !important;
  opacity: 0 !important;
}

#FormFeedBacksModal.modal.show .modal-dialog,
#FormFeedBacksModal.modal.in .modal-dialog {
  transform: scale(1) !important;
  opacity: 1 !important;
}

#FormFeedBacksModal .modal-content {
  border-radius: 8px !important;
  border: 1px solid #e6e8eb !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

#FormFeedBacksModal .wc-confirm-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #e6e8eb !important;
  background: #ffffff !important;
}

#FormFeedBacksModal .wc-confirm-modal__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

#FormFeedBacksModal .wc-confirm-modal__close:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

#FormFeedBacksModal .wc-confirm-modal__body {
  padding: 20px !important;
  background: #ffffff !important;
}

#FormFeedBacksModal .wc-confirm-modal__footer {
  padding: 12px 20px !important;
  border-top: 1px solid #e6e8eb !important;
  background: #f8fafc !important;
}

/* --- 3. Sidebar Footer Account Box & 3-Option Dropdown --- */
body[data-watch-company-shell] .wc-sidebar__account-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  width: 100% !important;
  min-height: 56px !important;
  padding: 10px 12px !important;
  border-radius: 14px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

body[data-watch-company-shell] .wc-sidebar__account-toggle:hover,
body[data-watch-company-shell] .wc-sidebar__account.show .wc-sidebar__account-toggle {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.06) !important;
}

body[data-watch-company-shell] .wc-sidebar__account-avatar {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  background: #e0f2fe !important;
  color: #0369a1 !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

body[data-watch-company-shell] .wc-sidebar__account-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body[data-watch-company-shell] .wc-sidebar__account-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body[data-watch-company-shell] .wc-sidebar__account-chevron {
  font-size: 14px !important;
  color: #64748b !important;
  transition: transform 0.2s ease !important;
}

body[data-watch-company-shell] .wc-sidebar__account.show .wc-sidebar__account-chevron {
  transform: rotate(180deg) !important;
}

body[data-watch-company-shell] .wc-sidebar__account .wc-profile-dropdown.wc-profile-dropdown--sidebar {
  border-radius: 8px !important;
  border: 1px solid #e6e8eb !important;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04) !important;
  background: #ffffff !important;
  padding: 6px !important;
}

body[data-watch-company-shell] .wc-sidebar__account .wc-profile-dropdown.wc-profile-dropdown--sidebar .wc-profile-dropdown__action-item {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: background 0.12s ease, color 0.12s ease !important;
}

body[data-watch-company-shell] .wc-sidebar__account .wc-profile-dropdown.wc-profile-dropdown--sidebar .wc-profile-dropdown__action-item:hover {
  background: #f1f5f9 !important;
  color: #206bc4 !important;
}

body[data-watch-company-shell] .wc-sidebar__account .wc-profile-dropdown.wc-profile-dropdown--sidebar .wc-profile-dropdown__action-item--logout:hover {
  background: #fee2e2 !important;
  color: #d63939 !important;
}

body[data-watch-company-shell] .wc-sidebar__account .wc-profile-dropdown.wc-profile-dropdown--sidebar .wc-profile-dropdown__action-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 16px !important;
  margin-right: 8px !important;
  color: inherit !important;
}

body[data-watch-company-shell] .wc-sidebar__account .wc-profile-dropdown.wc-profile-dropdown--sidebar .wc-profile-dropdown__divider {
  height: 1px !important;
  margin: 4px 0 !important;
  background: #f1f5f9 !important;
}

/* --- 4. User Profile & Change Password Tabler Modals (#user-profile, #change-password) --- */
body[data-watch-company-shell] #user-profile,
body[data-watch-company-shell] #change-password,
body[data-watch-company-shell] #wcShellConfirmConnectModal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  z-index: 4000 !important;
  background: rgba(15, 23, 42, 0.48) !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 32px 16px !important;
  box-sizing: border-box !important;
}

body[data-watch-company-shell] #user-profile.wc-account-modal--open,
body[data-watch-company-shell] #change-password.wc-account-modal--open,
body[data-watch-company-shell] #wcShellConfirmConnectModal.show {
  display: flex !important;
}

/* Disable Bootstrap 4 .modal-dialog-centered::before dummy pusher causing top stickiness */
body[data-watch-company-shell] #user-profile .modal-dialog-centered::before,
body[data-watch-company-shell] #change-password .modal-dialog-centered::before,
body[data-watch-company-shell] #wcShellConfirmConnectModal .modal-dialog-centered::before {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  content: none !important;
}

body[data-watch-company-shell] #user-profile .modal-dialog,
body[data-watch-company-shell] #change-password .modal-dialog,
body[data-watch-company-shell] #wcShellConfirmConnectModal .modal-dialog {
  max-width: 480px !important;
  width: calc(100% - 32px) !important;
  margin: auto !important;
  position: relative !important;
  pointer-events: auto !important;
  transform: none !important;
}

body[data-watch-company-shell] #user-profile .modal-content,
body[data-watch-company-shell] #change-password .modal-content,
body[data-watch-company-shell] #wcShellConfirmConnectModal .modal-content {
  border-radius: 8px !important;
  border: 1px solid #e6e8eb !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body[data-watch-company-shell] .wc-account-modal__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 16px 20px !important;
  border-bottom: 1px solid #e6e8eb !important;
  background: #ffffff !important;
}

body[data-watch-company-shell] .wc-account-modal__header .d-flex {
  display: flex !important;
  align-items: center !important;
}

/* Header Avatar Icon */
.wc-account-modal__icon,
body[data-watch-company-shell] .wc-account-modal__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 6px !important;
  margin-right: 6px !important;
  flex-shrink: 0 !important;
}

.wc-account-modal__icon--primary {
  background-color: rgba(32, 107, 196, 0.12) !important;
  color: #206bc4 !important;
}

.wc-account-modal__icon--warning {
  background-color: rgba(245, 159, 0, 0.14) !important;
  color: #b7791f !important;
}

body[data-watch-company-shell] .wc-account-modal__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #64748b !important;
  font-size: 16px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  position: static !important;
  margin: 0 !important;
}

body[data-watch-company-shell] .wc-account-modal__close:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

body[data-watch-company-shell] .wc-account-modal__body {
  padding: 20px !important;
  background: #ffffff !important;
}

body[data-watch-company-shell] .wc-account-modal__footer {
  padding: 12px 20px !important;
  border-top: 1px solid #e6e8eb !important;
  background: #f8fafc !important;
}

/* Avatar Frame inside User Profile - 100% Round Circle (Khử hoàn toàn squircle 28px) */
body[data-watch-company-shell] #user-profile .wc-profile-modal__avatar-wrap {
  margin: 0 0 16px !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
}

body[data-watch-company-shell] #user-profile .wc-profile-modal__avatar-frame {
  width: 88px !important;
  height: 88px !important;
  min-width: 88px !important;
  min-height: 88px !important;
  margin: 0 auto !important;
  padding: 2px !important;
  border-radius: 50% !important;
  background: #f1f5f9 !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12) !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-watch-company-shell] #user-profile #img-profile,
body[data-watch-company-shell] #user-profile .wc-profile-modal__avatar-frame img,
body[data-watch-company-shell] #user-profile .rounded-circle {
  width: 84px !important;
  height: 84px !important;
  min-width: 84px !important;
  min-height: 84px !important;
  max-width: 84px !important;
  max-height: 84px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #ffffff !important;
  box-shadow: none !important;
  display: block !important;
}

/* Tabler Form Inputs & Controls in Account Modals */
body[data-watch-company-shell] #user-profile .tblr-form-control,
body[data-watch-company-shell] #user-profile .form-control,
body[data-watch-company-shell] #change-password .tblr-form-control,
body[data-watch-company-shell] #change-password .form-control {
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 12px !important;
  font-size: 13.5px !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

body[data-watch-company-shell] #user-profile .tblr-form-control:focus,
body[data-watch-company-shell] #user-profile .form-control:focus,
body[data-watch-company-shell] #change-password .tblr-form-control:focus,
body[data-watch-company-shell] #change-password .form-control:focus {
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 2px rgba(32, 107, 196, 0.2) !important;
  outline: none !important;
}

/* --- Dedicated Tabler Phone Group (.wc-profile-phone-group) --- */
.wc-profile-phone-group {
  display: flex !important;
  align-items: stretch !important;
  gap: 8px !important;
  width: 100% !important;
}

.wc-profile-phone-group__code {
  width: 140px !important;
  min-width: 140px !important;
  max-width: 140px !important;
  flex: 0 0 140px !important;
}

.wc-profile-phone-group__code select.tblr-form-select,
.wc-profile-phone-group__code select.form-control,
body[data-watch-company-shell] #user-profile #selectedCountryCode {
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  padding: 6px 28px 6px 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.wc-profile-phone-group__code select:focus {
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 2px rgba(32, 107, 196, 0.2) !important;
  outline: none !important;
}

.wc-profile-phone-group__input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.wc-profile-phone-group__input .tblr-input-icon {
  position: relative !important;
  width: 100% !important;
}

.wc-profile-phone-group__input .tblr-input-icon input,
body[data-watch-company-shell] #user-profile .wc-profile-phone-group__input input {
  padding-left: 36px !important;
  padding-right: 12px !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
  box-sizing: border-box !important;
}

body[data-watch-company-shell] #user-profile .tblr-input-icon input {
  padding-left: 36px !important;
  height: 36px !important;
  min-height: 36px !important;
}

/* Password Inputs & Eye Toggle */
.wc-password-input-wrap {
  position: relative !important;
  width: 100% !important;
}

body[data-watch-company-shell] #change-password .wc-password-input-wrap input {
  padding-right: 36px !important;
  padding-left: 36px !important;
  width: 100% !important;
  height: 36px !important;
  min-height: 36px !important;
}

body[data-watch-company-shell] #change-password .toggle-password,
body[data-watch-company-shell] #change-password .wc-password-toggle-btn {
  position: absolute !important;
  right: 6px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  color: #94a3b8 !important;
  cursor: pointer !important;
  border-radius: 4px !important;
  transition: color 0.15s ease !important;
  padding: 0 !important;
  margin: 0 !important;
}

body[data-watch-company-shell] #change-password .toggle-password:hover,
body[data-watch-company-shell] #change-password .toggle-password.is-active,
body[data-watch-company-shell] #change-password .wc-password-toggle-btn:hover,
body[data-watch-company-shell] #change-password .wc-password-toggle-btn.is-active {
  color: #206bc4 !important;
}

/* Validation Feedback / Error Alert in Change Password */
body[data-watch-company-shell] #change-password #validationPass {
  display: none;
  margin-top: 10px !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  align-items: center !important;
}

body[data-watch-company-shell] #change-password #validationPass.show {
  display: flex !important;
}

body[data-watch-company-shell] #change-password #validationPass::before {
  content: '';
  display: inline-block !important;
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cline x1='12' y1='8' x2='12' y2='12'/%3E%3Cline x1='12' y1='16' x2='12.01' y2='16'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-size: contain !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

/* ==============================================================================
 * GIAI ĐOẠN 12 & 13: TRANG HỖ TRỢ / PHẢN HỒI (/support)
 * ============================================================================== */
.wc-employees-page--support {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
  min-height: calc(100vh - 120px) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--support,
:has(#wcDeactivationBanner) .wc-employees-page--support,
body:has(#wcDeactivationBanner) .wc-employees-page--support {
  margin-top: 0 !important;
}

/* Header (Đồng bộ chuẩn margin & padding với payroll/settings) */
.wc-employees-page--support .tblr-page-header,
.wc-employees-page--support .wc-support-header,
.wc-employees-page--support .wc-employees-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
}

.wc-employees-page--support .wc-support-header__title-group,
.wc-employees-page--support .wc-employees-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-employees-page--support .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--support .tblr-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.wc-employees-page--support .wc-employees-header__title-group p,
.wc-employees-page--support .wc-support-header__title-group p {
  margin-top: 2px !important;
  font-size: 12.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.4 !important;
}

/* Card Panel & Table */
.wc-employees-page--support #wcSupportFeedbackSection.wc-employees-panel.tblr-card {
  border-radius: 0 !important;
  border: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05) !important;
  background-color: #ffffff !important;
  margin-bottom: 0 !important;
}

.wc-employees-page--support .wc-employees-toolbar.tblr-card-header {
  padding: 12px 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 58px !important;
  box-sizing: border-box !important;
}

.wc-employees-page--support .wc-employees-grid-chrome {
  background-color: #f8fafc !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  padding: 8px 20px !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  height: 38px !important;
  min-height: 38px !important;
  box-sizing: border-box !important;
}

.wc-employees-page--support #feedBacksTable {
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
}

.wc-employees-page--support #feedBacksTable thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid #e6e8eb !important;
  padding: 10px 16px !important;
  height: 40px !important;
  vertical-align: middle !important;
}

.wc-employees-page--support #feedBacksTable thead th:first-child {
  padding-left: 20px !important;
}

.wc-employees-page--support #feedBacksTable thead th:last-child {
  padding-right: 20px !important;
}

.wc-employees-page--support #feedBacksTable tbody td {
  padding: 10px 16px !important;
  font-size: 13.5px !important;
  border-top: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  height: 58px !important;
}

.wc-employees-page--support #feedBacksTable tbody td:first-child {
  padding-left: 20px !important;
}

.wc-employees-page--support #feedBacksTable tbody td:last-child {
  padding-right: 20px !important;
}

.wc-employees-page--support #feedBacksTable tbody tr:hover td {
  background-color: #f8fafc !important;
}

.wc-employees-page--support #feedBacksTable tbody td.dataTables_empty {
  text-align: center !important;
  padding: 36px 16px !important;
  color: #64748b !important;
  font-size: 13.5px !important;
}

/* ==============================================================================
 * CARD FOOTER & PHÂN TRANG CHUẨN TABLER (Tầng 4 Quy chuẩn 1.11)
 * ============================================================================== */
.wc-employees-page--support .wc-table-footer {
  margin: 0 !important;
  padding: 12px 20px !important;
  background-color: #ffffff !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  min-height: 52px !important;
  box-sizing: border-box !important;
  width: 100% !important;
}

/* Page size dropdown bên trái */
.wc-employees-page--support .wc-table-footer__right {
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-left: 0 !important;
}

/* Pager info & buttons bên phải */
.wc-employees-page--support .wc-table-footer__left {
  order: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
}

.wc-employees-page--support .wc-table-footer__pager-info {
  font-size: 12.5px !important;
  color: #64748b !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
}

.wc-employees-page--support .wc-table-paginate {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.wc-employees-page--support .wc-table-paginate .paginate_button {
  height: 32px !important;
  min-width: 32px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  text-decoration: none !important;
  user-select: none !important;
}

.wc-employees-page--support .wc-table-paginate .paginate_button:hover:not(.disabled) {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.wc-employees-page--support .wc-table-paginate .paginate_button.disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  box-shadow: none !important;
  pointer-events: none !important;
}

.wc-employees-page--support .wc-table-paginate .paginate_button.current {
  background-color: #206bc4 !important;
  border-color: #206bc4 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

.wc-employees-page--support .wc-table-paginate__icon {
  font-size: 13px !important;
  line-height: 1 !important;
  vertical-align: middle !important;
}

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

.wc-employees-page--support .wc-page-size {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  position: relative !important;
}

.wc-employees-page--support .wc-page-size__toggle {
  height: 32px !important;
  padding: 0 12px !important;
  border-radius: 6px !important;
  border: 1px solid var(--tblr-border-color, #d8dee4) !important;
  background: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--support .wc-page-size__toggle:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

.wc-employees-page--support .wc-page-size__label {
  font-size: 12.5px !important;
  color: #64748b !important;
  font-weight: 400 !important;
}

.wc-employees-page--support .wc-page-size__value {
  font-weight: 600 !important;
  color: #0f172a !important;
}

.wc-employees-page--support .wc-page-size__chevron {
  font-size: 12px !important;
  color: #64748b !important;
}

.wc-employees-page--support .wc-page-size__menu {
  position: absolute !important;
  bottom: calc(100% + 4px) !important;
  left: 0 !important;
  background: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 6px !important;
  box-shadow: 0 10px 15px -3px rgba(15, 23, 42, 0.08) !important;
  padding: 4px !important;
  min-width: 80px !important;
  z-index: 50 !important;
}

.wc-employees-page--support .wc-page-size__option {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  padding: 6px 10px !important;
  border-radius: 4px !important;
  border: none !important;
  background: transparent !important;
  font-size: 12.5px !important;
  color: #334155 !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

.wc-employees-page--support .wc-page-size__option:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.wc-employees-page--support .wc-page-size__option--active {
  background-color: rgba(32, 107, 196, 0.08) !important;
  color: #206bc4 !important;
  font-weight: 600 !important;
}

/* ==============================================================================
 * BẢNG ĐIỀU KHIỂN (DASHBOARD) — GIAI ĐOẠN 14.1: THỐNG KÊ LƯƠNG CHUẨN TABLER
 * ============================================================================== */

/* 1. Container & Bù tràn khoảng trắng đỉnh (Quy chuẩn 1.7) */
.wc-employees-page--dashboard {
  margin-top: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-left: calc(-1 * var(--fw-container-margin, 32px)) !important;
  margin-right: calc(-1 * var(--fw-container-margin, 32px)) !important;
  width: calc(100% + 2 * var(--fw-container-margin, 32px)) !important;
  max-width: none !important;
  padding: 14px 16px 32px !important;
  box-sizing: border-box !important;
  background-color: var(--tblr-body-bg, #f8fafc) !important;
  min-height: calc(100vh - 120px) !important;
}

#wcDeactivationBanner~.page-body .wc-employees-page--dashboard,
:has(#wcDeactivationBanner) .wc-employees-page--dashboard,
body:has(#wcDeactivationBanner) .wc-employees-page--dashboard {
  margin-top: 0 !important;
}

/* Khống chế độ rộng tối đa 1400px trên màn hình lớn - Dữ liệu đổ từ trái sang phải (Phương án 1) */
.wc-employees-page--dashboard .tblr-page-header,
.wc-employees-page--dashboard .wc-dashboard-panel,
.wc-employees-page--dashboard .alert {
  max-width: 1400px !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}

/* Header (Đồng bộ chuẩn margin & padding với payroll/settings) */
.wc-employees-page--dashboard .tblr-page-header,
.wc-employees-page--dashboard .wc-ps-header {
  padding: 12px 20px 6px !important;
  margin-bottom: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: nowrap !important;
  gap: 16px !important;
}

.wc-employees-page--dashboard .wc-ps-header__title-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  min-width: 0 !important;
}

.wc-employees-page--dashboard .tblr-page-pretitle {
  font-size: 11px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.8px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.2 !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--dashboard .tblr-page-title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--tblr-text-main, #0f172a) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.wc-employees-page--dashboard .wc-dashboard-welcome-subtitle {
  margin-top: 2px !important;
  font-size: 12.5px !important;
  color: var(--tblr-text-secondary, #64748b) !important;
  line-height: 1.4 !important;
}

/* 2. Segmented Pill Tabs Chuyển Đổi Miền Thống Kê (Header Right) (Quy chuẩn 1.8) */
.wc-employees-page--dashboard .wc-ps-page-tabs {
  display: inline-flex !important;
  align-items: center !important;
  padding: 3px !important;
  background-color: #f1f5f9 !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  gap: 3px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.wc-employees-page--dashboard .wc-ps-page-tabs .wc-employees-tab,
.wc-employees-page--dashboard .wc-ps-page-tabs .wc-ws-page-tab {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 6px !important;
  border: none !important;
  background: transparent !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.wc-employees-page--dashboard .wc-ps-page-tabs .wc-employees-tab:hover,
.wc-employees-page--dashboard .wc-ps-page-tabs .wc-ws-page-tab:hover {
  color: #0f172a !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
}

.wc-employees-page--dashboard .wc-ps-page-tabs .wc-employees-tab--active,
.wc-employees-page--dashboard .wc-ps-page-tabs .wc-ws-page-tab--active {
  background-color: #ffffff !important;
  color: #206bc4 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

/* 3. Bộ lọc Bảng Điều Khiển (Thống kê Lương & Thống kê Công) (Quy chuẩn 1.9) */
#wcSalaryDashboardFilters,
#wcDashboardFilters {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
}

#wcSalaryDashboardFilters.hidden,
#wcDashboardFilters.hidden {
  display: none !important;
}

#wcSalaryDashboardFilters .tblr-form-select,
#wcSalaryDashboardFilters select,
#wcDashboardFilters .tblr-form-select,
#wcDashboardFilters select {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 32px 0 12px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  cursor: pointer !important;
  min-width: 170px !important;
  max-width: 240px !important;
}

/* 4. Cụm Thẻ Tóm Tắt KPI Lương Chuẩn Tabler (Quy chuẩn 1.12) */
.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

@media (max-width: 991px) {
  .wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-card {
  height: auto !important;
  min-height: 98px !important;
  background: #ffffff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  padding: 11px 16px 12px !important;
  gap: 6px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-icon i {
  font-size: 1rem !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-icon--blue {
  background-color: rgba(32, 107, 196, 0.12) !important;
  color: #206bc4 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-icon--green {
  background-color: rgba(47, 179, 68, 0.12) !important;
  color: #2fb344 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-icon--purple {
  background-color: rgba(139, 92, 246, 0.12) !important;
  color: #8b5cf6 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748b !important;
  margin-left: 8px !important;
  flex: 1 !important;
  line-height: 1.2 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-value {
  font-size: 21px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-feature-settings: 'tnum' 1, 'cv01' 1 !important;
  line-height: 1.2 !important;
  margin-bottom: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-meta {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-stat-meta span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Info Icon Button (Giải thích công thức) */
.wc-net-salary-info-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background-color: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  vertical-align: middle !important;
}

.wc-net-salary-info-btn:hover {
  background-color: rgba(47, 179, 68, 0.12) !important;
  border-color: #2fb344 !important;
  color: #2fb344 !important;
}

/* 5. Biểu đồ Grid (Line Chart & Donut Chart) */
.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-charts-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

@media (max-width: 1024px) {
  .wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-charts-grid {
    grid-template-columns: 1fr !important;
  }
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-line-chart-card,
.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-donut-card {
  background: #ffffff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  padding: 16px 20px !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-line-chart-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-salary-chart-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 16px !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-salary-chart-header-row--top {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-salary-chart-header-row--bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-line-chart-title,
.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-donut-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #001855 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-salary-chart-hint {
  font-size: 12.5px !important;
  color: #64748b !important;
  margin: 0 !important;
  text-align: right !important;
  line-height: 1.3 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  align-items: center !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  user-select: none !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label:nth-child(1) input[type="checkbox"] {
  accent-color: #001855 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label:nth-child(2) input[type="checkbox"] {
  accent-color: #f59e0b !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label:nth-child(2) span {
  color: #c2410c !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label:nth-child(3) input[type="checkbox"] {
  accent-color: #e11d48 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label:nth-child(3) span {
  color: #e11d48 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label:nth-child(4) input[type="checkbox"] {
  accent-color: #0a9f6c !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-chart-filter-label:nth-child(4) span {
  color: #0a9f6c !important;
}

/* Range Month Picker Button (như cũ) */
.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-date-picker {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 14px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: pointer !important;
  font-size: 13.5px !important;
  color: #374151 !important;
  transition: all 0.2s !important;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-date-picker:hover {
  border-color: #001855 !important;
  color: #001855 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-date-picker .material-symbols-outlined {
  font-size: 18px !important;
  color: #64748b !important;
}

/* Dropdown Calendar Picker */
.wc-employees-page--dashboard #wcDashPanelSalary .wc-month-picker-dropdown {
  background: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
  padding: 14px !important;
  z-index: 1000 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-month-nav {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-month-nav:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-month-btn {
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  transition: all 0.12s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-month-btn.today {
  border: 1px solid #206bc4 !important;
  font-weight: 700 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-month-btn.active,
.wc-employees-page--dashboard #wcDashPanelSalary .wc-month-btn.range-edge {
  background-color: #206bc4 !important;
  color: #ffffff !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-month-btn.in-range {
  background-color: rgba(32, 107, 196, 0.10) !important;
  color: #206bc4 !important;
}

/* Donut Chart Styling */
.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-donut-center {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  pointer-events: none !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-donut-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  letter-spacing: 0.04em !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-donut-container {
  margin: 0 auto 16px auto !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-donut-value {
  font-weight: 700 !important;
  color: #0f172a !important;
  font-feature-settings: 'tnum' 1 !important;
  max-width: 124px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-align: center !important;
  display: inline-block !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-donut-legend-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 0 !important;
  font-size: 12.5px !important;
  color: #475569 !important;
  border-bottom: 1px solid #f8fafc !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-donut-legend-value {
  font-weight: 600 !important;
  color: #0f172a !important;
  font-feature-settings: 'tnum' 1 !important;
}

/* 6. Bảng Dữ Liệu Thực Lĩnh Cao Nhất / Cần Xử Lý (Quy chuẩn 1.8 & 1.11) */
.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions {
  background: #ffffff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-header {
  height: 52px !important;
  padding: 0 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e6e8eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-table-tabs {
  display: inline-flex !important;
  background-color: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 6px !important;
  gap: 2px !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-tab {
  height: 28px !important;
  padding: 0 12px !important;
  border-radius: 4px !important;
  border: none !important;
  background: transparent !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-tab.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-viewall {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #206bc4 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-viewall:hover {
  color: #17549a !important;
  text-decoration: underline !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-table thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid #e6e8eb !important;
  padding: 8px 16px !important;
  height: 40px !important;
  vertical-align: middle !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-table thead th:first-child {
  padding-left: 20px !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-table thead th:last-child {
  padding-right: 20px !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-table tbody td {
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  border-top: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  height: 58px !important;
  font-feature-settings: 'tnum' 1 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-table tbody td:first-child {
  padding-left: 20px !important;
  font-weight: 600 !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-table tbody td:last-child {
  padding-right: 20px !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-table tbody tr:hover td {
  background-color: #f8fafc !important;
}

.wc-employees-page--dashboard #wcDashPanelSalary .wc-dashboard-transactions-td--secondary {
  color: #64748b !important;
  font-size: 12.5px !important;
}

/* 7. Modal Công Thức Thực Lĩnh (#netSalaryModal) & Thuế (#taxModal) (Quy chuẩn 1.3) */
.wc-net-salary-modal-backdrop {
  position: fixed !important;
  inset: 0 !important;
  background-color: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(2px) !important;
  z-index: 1050 !important;
}

.wc-net-salary-modal-wrapper {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1055 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px !important;
}

.wc-net-salary-modal-box {
  background: #ffffff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 12px !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1) !important;
  animation: tblrModalScaleFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 20px !important;
  max-width: 480px !important;
  width: 100% !important;
  position: relative !important;
}

.wc-net-salary-modal-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding-bottom: 14px !important;
  border-bottom: 1px solid #e6e8eb !important;
  margin-bottom: 14px !important;
}

.wc-net-salary-modal-close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  height: 32px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-net-salary-modal-close:hover {
  background: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.wc-net-salary-formula-box {
  background-color: rgba(47, 179, 68, 0.08) !important;
  border: 1px solid rgba(47, 179, 68, 0.25) !important;
  border-radius: 8px !important;
  padding: 12px 14px !important;
  margin-bottom: 14px !important;
}

.wc-net-salary-formula-label {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  color: #047857 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-bottom: 4px !important;
}

.wc-net-salary-formula-content {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #064e3b !important;
}

.wc-net-salary-confirm-btn {
  width: 100% !important;
  height: 38px !important;
  background-color: #206bc4 !important;
  border: 1px solid #206bc4 !important;
  color: #ffffff !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

/* 8. Bảng Điều Khiển — Phân hệ Thống Kê Công (#wcDashPanelAttendance) (Giai đoạn 14.2) */
#wcDashboardFilters,
.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-filters {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
  flex-wrap: wrap !important;
}

#wcDashboardFilters.hidden,
.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-filters.hidden {
  display: none !important;
}

#wcDashboardFilters .tblr-form-select,
#wcDashboardFilters select,
.wc-employees-page--dashboard #wcDashPanelAttendance .wc-ts-filter-select,
.wc-employees-page--dashboard #wcDashPanelAttendance select.tblr-form-select {
  height: 36px !important;
  min-height: 36px !important;
  padding: 0 32px 0 12px !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #1e293b !important;
  cursor: pointer !important;
  min-width: 170px !important;
  max-width: 240px !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stats-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 14px !important;
  margin-bottom: 14px !important;
}

@media (max-width: 768px) {
  .wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stats-grid {
    grid-template-columns: 1fr !important;
  }
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-card {
  height: auto !important;
  min-height: 98px !important;
  background: #ffffff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  padding: 11px 16px 12px !important;
  gap: 6px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-card:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -1px rgba(0, 0, 0, 0.04) !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-bottom: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-icon {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-icon i {
  font-size: 1rem !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-icon--blue {
  background-color: rgba(32, 107, 196, 0.12) !important;
  color: #206bc4 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-icon--green {
  background-color: rgba(47, 179, 68, 0.12) !important;
  color: #2fb344 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-icon--purple {
  background-color: rgba(139, 92, 246, 0.12) !important;
  color: #8b5cf6 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748b !important;
  margin-left: 8px !important;
  flex: 1 !important;
  line-height: 1.2 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-value {
  font-size: 21px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-feature-settings: 'tnum' 1, 'cv01' 1 !important;
  line-height: 1.2 !important;
  margin-bottom: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-meta {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  flex-wrap: wrap !important;
  line-height: 1.25 !important;
  margin: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-stat-meta span {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

/* Charts Grid */
.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-charts-grid {
  display: grid !important;
  grid-template-columns: 2fr 1fr !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
}

@media (max-width: 1024px) {
  .wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-charts-grid {
    grid-template-columns: 1fr !important;
  }
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-line-chart-card,
.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-card {
  background: #ffffff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  padding: 16px 20px !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-line-chart-header {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  margin-bottom: 16px !important;
  padding-bottom: 0 !important;
  border-bottom: none !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-attendance-chart-header-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
  gap: 16px !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-attendance-chart-header-row--top {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-attendance-chart-header-row--bottom {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  width: 100% !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-line-chart-title,
.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: #001855 !important;
  margin: 0 !important;
  line-height: 1.3 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 20px !important;
  align-items: center !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #374151 !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  user-select: none !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label input[type="checkbox"] {
  width: 16px !important;
  height: 16px !important;
  cursor: pointer !important;
  margin: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label:nth-child(1) input[type="checkbox"] {
  accent-color: #0a9f6c !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label:nth-child(1) span {
  color: #0a9f6c !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label:nth-child(2) input[type="checkbox"] {
  accent-color: #f59e0b !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label:nth-child(2) span {
  color: #c2410c !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label:nth-child(3) input[type="checkbox"] {
  accent-color: #e11d48 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label:nth-child(3) span {
  color: #e11d48 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label:nth-child(4) input[type="checkbox"] {
  accent-color: #001855 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-chart-filter-label:nth-child(4) span {
  color: #001855 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-date-picker {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 7px 14px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 8px !important;
  background: #fff !important;
  cursor: pointer !important;
  font-size: 13.5px !important;
  color: #374151 !important;
  transition: all 0.2s !important;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-date-picker:hover {
  border-color: #001855 !important;
  color: #001855 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-date-picker .material-symbols-outlined {
  font-size: 18px !important;
  color: #64748b !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-month-picker-dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  background: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.12), 0 8px 10px -6px rgba(15, 23, 42, 0.08) !important;
  padding: 14px !important;
  z-index: 1000 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-month-nav {
  width: 28px !important;
  height: 28px !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-month-nav:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-month-btn {
  border-radius: 6px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  transition: all 0.12s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-month-btn.today {
  border: 1px solid #206bc4 !important;
  font-weight: 700 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-month-btn.active {
  background-color: #206bc4 !important;
  color: #ffffff !important;
}

/* Donut Chart Attendance */
.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-container {
  margin: 0 auto 16px auto !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-center {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  text-align: center !important;
  pointer-events: none !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-label {
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  color: #64748b !important;
  letter-spacing: 0.04em !important;
  display: block !important;
  margin-bottom: 2px !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-value {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  font-feature-settings: 'tnum' 1 !important;
  max-width: 124px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: visible !important;
  text-align: center !important;
  display: inline-block !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-legend-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 4px 0 !important;
  font-size: 12.5px !important;
  color: #475569 !important;
  border-bottom: 1px solid #f8fafc !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-legend-item--nested {
  padding-left: 16px !important;
  font-size: 12px !important;
  color: #64748b !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-legend-value {
  font-weight: 600 !important;
  color: #0f172a !important;
  font-feature-settings: 'tnum' 1 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-legend-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  margin-right: 8px !important;
  flex-shrink: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-legend-dot--green {
  background-color: #2fb344 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-legend-dot--orange {
  background-color: #f59f00 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-legend-dot--red {
  background-color: #d63939 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-donut-legend-dot--gray {
  background-color: #94a3b8 !important;
}

/* Attendance Transactions Table & Chips */
.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions {
  background: #ffffff !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-header {
  height: 52px !important;
  padding: 0 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #e6e8eb !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-title {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-table-tabs {
  display: inline-flex !important;
  background-color: #f1f5f9 !important;
  padding: 3px !important;
  border-radius: 6px !important;
  gap: 2px !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-tab {
  height: 28px !important;
  padding: 0 12px !important;
  border-radius: 4px !important;
  border: none !important;
  background: transparent !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-tab.is-active {
  background: #ffffff !important;
  color: #0f172a !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-viewall {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #206bc4 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  transition: color 0.15s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-viewall:hover {
  color: #17549a !important;
  text-decoration: underline !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-exception-chips {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 10px 20px !important;
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e6e8eb !important;
  flex-wrap: wrap !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-chip {
  padding: 4px 12px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  border: 1px solid #d8dee4 !important;
  background: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-chip:hover {
  border-color: #206bc4 !important;
  color: #206bc4 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-chip.is-active {
  background: #206bc4 !important;
  border-color: #206bc4 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 3px rgba(32, 107, 196, 0.3) !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-table {
  width: 100% !important;
  margin: 0 !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-table thead th {
  background-color: #f8fafc !important;
  color: #64748b !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  border-top: none !important;
  border-bottom: 1px solid #e6e8eb !important;
  padding: 8px 16px !important;
  height: 40px !important;
  vertical-align: middle !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-table thead th:first-child {
  padding-left: 20px !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-table thead th:last-child {
  padding-right: 20px !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-table tbody td {
  padding: 8px 16px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  border-top: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  vertical-align: middle !important;
  height: 58px !important;
  font-feature-settings: 'tnum' 1 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-table tbody td:first-child {
  padding-left: 20px !important;
  font-weight: 600 !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-table tbody td:last-child {
  padding-right: 20px !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-table tbody tr:hover td {
  background-color: #f8fafc !important;
}

.wc-employees-page--dashboard #wcDashPanelAttendance .wc-dashboard-transactions-td--secondary {
  color: #64748b !important;
  font-size: 12.5px !important;
}

.wc-net-salary-confirm-btn:hover {
  background-color: #17549a !important;
}

/* ==========================================================================
   GIAI ĐOẠN 15: MODAL ĐĂNG KÝ CÔNG TY / CÔNG VIỆC MỚI CHUẨN TABLER
   (#wcSignupWizardModal & #wcCompanyRegistrationWizard)
   ========================================================================== */

/* 1. Backdrop & Anti-Jitter (Single-DIM Rule - Quy chuẩn 1.3) */
body[data-watch-company-shell] #wcSignupWizardModal.wc-reg-overlay {
  position: fixed !important;
  inset: 0 !important;
  z-index: 10000 !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 24px 16px !important;
  background: rgba(15, 23, 42, 0.48) !important;
  backdrop-filter: blur(2px) !important;
  -webkit-backdrop-filter: blur(2px) !important;
  pointer-events: auto !important;
}

body[data-watch-company-shell] #wcSignupWizardModal.wc-reg-overlay.is-open {
  display: flex !important;
  animation: tblrModalFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

body[data-watch-company-shell] #wcSignupWizardModal.wc-reg-overlay[hidden] {
  display: none !important;
}

body[data-watch-company-shell].wc-signup-wizard-open>.modal-backdrop,
body[data-watch-company-shell].wc-signup-wizard-open .modal-backdrop {
  display: none !important;
  pointer-events: none !important;
}

/* 2. Modal Panel & Golden Ratio Dimensions (Quy chuẩn 1.14) */
body[data-watch-company-shell] #wcSignupWizardModal .wc-reg-overlay__panel {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  width: min(880px, calc(100vw - 32px)) !important;
  height: min(640px, calc(100vh - 40px)) !important;
  max-height: min(640px, calc(100vh - 40px)) !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  border: 1px solid rgba(226, 232, 240, 0.85) !important;
  box-shadow: 0 24px 56px rgba(15, 23, 42, 0.24) !important;
  overflow: hidden !important;
  pointer-events: auto !important;
  animation: tblrModalScaleIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards !important;
}

@keyframes tblrModalFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes tblrModalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

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

/* 3. Header Modal */
body[data-watch-company-shell] #wcSignupWizardModal .wc-reg-overlay__header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex: 0 0 auto !important;
  height: 50px !important;
  padding: 10px 20px !important;
  border-bottom: 1px solid #e6e8eb !important;
  background: #ffffff !important;
}

body[data-watch-company-shell] #wcSignupWizardModal .wc-reg-overlay__title {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

body[data-watch-company-shell] #wcSignupWizardModal .wc-reg-overlay__close {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: none !important;
  background: transparent !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 6px !important;
  color: #64748b !important;
  cursor: pointer !important;
  padding: 0 !important;
  transition: all 0.15s ease !important;
}

body[data-watch-company-shell] #wcSignupWizardModal .wc-reg-overlay__close:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

/* 4. Wizard Body & Left Sidebar */
body[data-watch-company-shell] #wcSignupWizardModal .wc-reg-overlay__body {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
  display: flex !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .wc-company-registration,
body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-layout {
  height: 100% !important;
  width: 100% !important;
  display: flex !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar {
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
  background-color: #0e2a47 !important;
  background: linear-gradient(180deg, #102a48 0%, #0b1f35 100%) !important;
  color: #ffffff !important;
  padding: 24px 20px 28px !important;
  display: flex !important;
  flex-direction: column !important;
  box-sizing: border-box !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
  overflow-y: auto !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 16px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-brand-icon {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
  font-size: 18px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-brand-icon img,
body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-brand-img {
  width: 34px !important;
  height: 34px !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  display: block !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-brand-text {
  font-size: 16px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em !important;
  color: #ffffff !important;
  line-height: 1.2 !important;
  display: block !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-brand-sub {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  display: block !important;
  letter-spacing: 0.02em !important;
  line-height: 1.2 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar-intro {
  margin-top: 0 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar-intro p {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  opacity: 1 !important;
  margin: 0 !important;
}

/* Stepper */
body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar {
  list-style: none !important;
  padding: 0 !important;
  margin: 26px 0 0 !important;
  position: relative !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar::before {
  content: "" !important;
  position: absolute !important;
  left: 15px !important;
  top: 16px !important;
  bottom: 16px !important;
  width: 2px !important;
  background-color: rgba(255, 255, 255, 0.18) !important;
  z-index: 0 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar li {
  position: relative !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 12px !important;
  margin-bottom: 20px !important;
  width: 100% !important;
  z-index: 1 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar li:last-child {
  margin-bottom: 0 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar .progress-circle {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 2px solid rgba(255, 255, 255, 0.3) !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.2s ease !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar li.active .progress-circle {
  background: #206bc4 !important;
  border-color: #206bc4 !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.3) !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar li.complete .progress-circle {
  background: #206bc4 !important;
  border-color: #206bc4 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar .progress-label {
  font-size: 13px !important;
  font-weight: 500 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  line-height: 1.3 !important;
  transition: color 0.2s ease !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar li.active .progress-label,
body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar li.complete .progress-label {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* 5. Right Content Area (.signup-main) */
body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 24px 32px 0 !important;
  background: #ffffff !important;
  overflow: hidden !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main-title {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 4px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main-subtitle {
  font-size: 13px !important;
  color: #64748b !important;
  margin-bottom: 18px !important;
  line-height: 1.4 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main .form-group {
  margin-bottom: 12px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .tblr-form-label {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: #64748b !important;
  margin-bottom: 5px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main .form-control {
  height: 38px !important;
  font-size: 13.5px !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  padding: 6px 12px !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main .form-control::placeholder {
  color: #94a3b8 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main .form-control:focus {
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15) !important;
  outline: none !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main .form-control.is-invalid {
  border-color: #d63939 !important;
  box-shadow: 0 0 0 3px rgba(214, 57, 57, 0.15) !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main select#companyCountryCode {
  height: 38px !important;
  line-height: 38px !important;
  border-radius: 6px !important;
  border: 1px solid #d8dee4 !important;
  padding: 0 30px 0 12px !important;
  font-size: 13.5px !important;
  color: #0f172a !important;
  background-color: #ffffff !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main select#companyCountryCode:focus {
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.15) !important;
  outline: none !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard #companyNameValidate[hidden] {
  display: none !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard #companyNameValidate:not([hidden]) {
  color: #d63939 !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  margin-top: 5px !important;
  display: block !important;
}

/* 6. Footer Bar & Buttons */
body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main-footer {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  height: 58px !important;
  margin: auto -32px 0 !important;
  padding: 10px 32px !important;
  border-top: 1px solid #e6e8eb !important;
  background: #ffffff !important;
  box-shadow: 0 -4px 12px rgba(15, 23, 42, 0.03) !important;
  z-index: 5 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .step-actions {
  display: flex !important;
  width: 100% !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 12px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard #cancelCompanyInfo,
body[data-watch-company-shell] #wcCompanyRegistrationWizard #submitCompanyInfo,
body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main .btn-step {
  height: 38px !important;
  min-height: 38px !important;
  padding: 0 20px !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  text-transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  margin: 0 !important;
  transition: all 0.15s ease !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard #cancelCompanyInfo {
  min-width: 96px !important;
  background: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  color: #475569 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard #cancelCompanyInfo:hover {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard #submitCompanyInfo {
  min-width: 110px !important;
  background: #206bc4 !important;
  border: 1px solid #206bc4 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard #submitCompanyInfo:hover {
  background: #1a569d !important;
  border-color: #1a569d !important;
  box-shadow: 0 2px 4px rgba(32, 107, 196, 0.25) !important;
}

/* 7. Registration Complete Screen */
body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main--complete {
  padding: 16px 32px !important;
  justify-content: center !important;
  overflow-y: auto !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main--complete #msform {
  overflow-y: visible !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 100% !important;
  padding-bottom: 0 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 16px 12px !important;
  max-width: 490px !important;
  margin: 0 auto !important;
  text-align: center !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__hero {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  margin-bottom: 12px !important;
  width: 100% !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__icon-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: auto !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 auto 12px !important;
  padding: 4px 0 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__icon {
  width: 64px !important;
  height: 64px !important;
  min-width: 64px !important;
  min-height: 64px !important;
  max-width: 64px !important;
  max-height: 64px !important;
  flex: 0 0 64px !important;
  aspect-ratio: 1 / 1 !important;
  border-radius: 50% !important;
  background: #2fb344 !important;
  box-shadow: 0 0 0 8px rgba(47, 179, 68, 0.16), 0 8px 18px rgba(47, 179, 68, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 auto !important;
  color: #ffffff !important;
  box-sizing: border-box !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__icon svg {
  width: 30px !important;
  height: 30px !important;
  display: block !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__icon svg path {
  stroke: #ffffff !important;
  stroke-width: 2.8 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__title {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 6px !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__lead {
  font-size: 13px !important;
  color: #64748b !important;
  line-height: 1.5 !important;
  margin: 0 0 14px !important;
  max-width: 440px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__card {
  width: 100% !important;
  background: #f8fafc !important;
  border: 1px solid #e6e8eb !important;
  border-radius: 8px !important;
  padding: 12px 16px !important;
  margin-bottom: 16px !important;
  text-align: left !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__card-top {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__avatar {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  border-radius: 8px !important;
  background: #206bc4 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 14px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__card-meta {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__card-name-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__card-name {
  font-size: 14.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__status {
  font-size: 11px !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
  background: rgba(47, 179, 68, 0.12) !important;
  color: #2fb344 !important;
  border: 1px solid rgba(47, 179, 68, 0.22) !important;
  white-space: nowrap !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__card-tax {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 2px 0 0 !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__owner {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  color: #64748b !important;
  margin: 10px 0 0 !important;
  padding-top: 10px !important;
  border-top: 1px solid #e6e8eb !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__actions {
  display: flex !important;
  justify-content: center !important;
  width: 100% !important;
  margin-top: 2px !important;
  margin-bottom: 8px !important;
  padding-bottom: 4px !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__cta {
  height: 42px !important;
  min-height: 42px !important;
  padding: 0 28px !important;
  border-radius: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  background: #206bc4 !important;
  border: 1px solid #206bc4 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(32, 107, 196, 0.3) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-complete__cta:hover {
  background: #1a569d !important;
  border-color: #1a569d !important;
}

/* 8. Responsive (<= 900px) */
@media (max-width: 900px) {
  body[data-watch-company-shell] #wcSignupWizardModal .wc-reg-overlay__panel {
    width: calc(100vw - 24px) !important;
    height: calc(100vh - 24px) !important;
    max-height: calc(100vh - 24px) !important;
  }

  body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-layout {
    flex-direction: column !important;
  }

  body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 16px 20px !important;
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar {
    display: flex !important;
    flex-direction: row !important;
    gap: 16px !important;
    margin-top: 14px !important;
  }

  body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar::before {
    display: none !important;
  }

  body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-sidebar .progressbar li {
    margin-bottom: 0 !important;
    width: auto !important;
  }

  body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main {
    padding: 18px 20px 0 !important;
  }

  body[data-watch-company-shell] #wcCompanyRegistrationWizard .signup-main-footer {
    margin: auto -20px 0 !important;
    padding: 10px 20px !important;
  }
}

/* ==============================================================================
 * 16. TABLER MODERN SIDEBAR & TOP NAVBAR ENHANCEMENTS
 * ============================================================================== */

/* Variable Overrides on Root/Body */
body[data-watch-company-shell] {
  --fw-sidebar-w: 250px !important;
  --fw-header-h: 58px !important;
}

/* 16.1 Modern Top Navbar (.wc-header) */
body[data-watch-company-shell] .watch-company-main-wrap>.wc-header,
body[data-watch-company-shell] .wc-header {
  height: 58px !important;
  min-height: 58px !important;
  max-height: 58px !important;
  padding: 0 20px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
  z-index: 1040 !important;
}

body[data-watch-company-shell] .wc-header__left {
  display: none !important;
}

/* Mobile collapse button */
body[data-watch-company-shell] .wc-header__menu-btn {
  display: none !important;
}

@media (max-width: 991px) {
  body[data-watch-company-shell] .wc-header__left {
    display: flex !important;
  }

  body[data-watch-company-shell] .wc-header__menu-btn {
    display: inline-flex !important;
  }
}

/* Clean Header Title & Breadcrumb Navigation (Hidden per User Request) */
body[data-watch-company-shell] .wc-header__nav {
  display: none !important;
}

/* Right Actions & Notification Button (Fixed per User Request #3, Swapped per User Request) */
body[data-watch-company-shell] .wc-header__right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin-left: auto !important;
  flex-shrink: 0 !important;
}

body[data-watch-company-shell] .wc-header__actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  height: 32px !important;
  padding-left: 12px !important;
  padding-right: 0 !important;
  margin-left: 2px !important;
  border-left: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  border-right: none !important;
}

body[data-watch-company-shell] .wc-header__icon-btn {
  position: relative !important;
  width: 36px !important;
  height: 36px !important;
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  background: transparent !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 17px !important;
  transition: all 0.15s ease !important;
  cursor: pointer !important;
  padding: 0 !important;
}

body[data-watch-company-shell] .wc-header__icon-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

body[data-watch-company-shell] .wc-header__icon-btn .feather {
  font-size: 18px !important;
  line-height: 1 !important;
}

/* Company Switcher & Quick Add Button (Khung 3: Match crop_zoom.png 100%) */
body[data-watch-company-shell] .wc-header__user {
  position: relative !important;
}

body[data-watch-company-shell] .wc-header__company-switcher {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
}

body[data-watch-company-shell] .wc-header__user-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-width: 80px !important;
  max-width: 500px !important;
  width: auto !important;
  height: 42px !important;
  min-height: 42px !important;
  padding: 3px 10px 3px 6px !important;
  background-color: #ffffff !important;
  border: 1px solid #d8dee4 !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  overflow: visible !important;
  box-sizing: border-box !important;
}

body[data-watch-company-shell] .wc-header__user-toggle:hover,
body[data-watch-company-shell] .wc-header__user-toggle:focus {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  outline: none !important;
}

body[data-watch-company-shell] .wc-header__user.show .wc-header__user-toggle {
  background-color: #ffffff !important;
  border-color: #206bc4 !important;
  box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.12) !important;
}

body[data-watch-company-shell] .wc-header__company-badge-wrap {
  width: 28px !important;
  height: 28px !important;
  min-width: 28px !important;
  border-radius: 6px !important;
  background-color: #206bc4 !important;
  background: #206bc4 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  line-height: 1 !important;
  box-shadow: 0 1px 2px rgba(32, 107, 196, 0.25) !important;
  flex-shrink: 0 !important;
  margin-right: 8px !important;
}

body[data-watch-company-shell] .wc-header__user-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  text-align: left !important;
  line-height: normal !important;
  gap: 2px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: visible !important;
}

body[data-watch-company-shell] .wc-header__user-name {
  margin: 0 !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 5px !important;
  line-height: 1.25 !important;
  min-width: 0 !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

body[data-watch-company-shell] .wc-header__user-name-label {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  line-height: 1.25 !important;
  display: inline-block !important;
  min-width: 0 !important;
  flex: 0 1 auto !important;
  max-width: 240px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-watch-company-shell] .wc-header__debug-trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #64748b !important;
  width: 16px !important;
  height: 16px !important;
  border-radius: 3px !important;
  cursor: pointer !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  line-height: 1 !important;
  transition: all 0.15s ease !important;
}

body[data-watch-company-shell] .wc-header__debug-trigger:hover,
body[data-watch-company-shell] .wc-header__debug-trigger:focus {
  color: #206bc4 !important;
  background-color: rgba(32, 107, 196, 0.1) !important;
  outline: none !important;
}

body[data-watch-company-shell] .wc-header__debug-trigger .wc-header__user-name-icon {
  font-size: 12px !important;
  line-height: 1 !important;
  color: #64748b !important;
  display: inline-block !important;
  transition: color 0.15s ease !important;
}

body[data-watch-company-shell] .wc-header__debug-trigger:hover .wc-header__user-name-icon,
body[data-watch-company-shell] .wc-header__debug-trigger:focus .wc-header__user-name-icon {
  color: #206bc4 !important;
}

body[data-watch-company-shell] .wc-header__company-status {
  font-size: 11px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  line-height: 1.35 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #64748b !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: visible !important;
}

body[data-watch-company-shell] .wc-header__company-status-dot {
  width: 6.5px !important;
  height: 6.5px !important;
  min-width: 6.5px !important;
  min-height: 6.5px !important;
  border-radius: 50% !important;
  background-color: #2fb344 !important;
  flex-shrink: 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  box-shadow: 0 0 0 1.5px rgba(47, 179, 68, 0.2) !important;
}

body[data-watch-company-shell] .wc-header__company-status--deactivated,
body[data-watch-company-shell] .wc-header__company-status--disconnected {
  color: #d63939 !important;
}

body[data-watch-company-shell] .wc-header__company-status--deactivated .wc-header__company-status-dot,
body[data-watch-company-shell] .wc-header__company-status--disconnected .wc-header__company-status-dot {
  background-color: #d63939 !important;
  box-shadow: 0 0 0 1.5px rgba(214, 57, 57, 0.2) !important;
}

body[data-watch-company-shell] .wc-header__company-status--active,
body[data-watch-company-shell] .wc-header__company-status--connected {
  color: #2fb344 !important;
}

body[data-watch-company-shell] .wc-header__company-status-label {
  display: inline-block !important;
  line-height: 1.35 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-watch-company-shell] .wc-header__user-chevron {
  font-size: 12px !important;
  color: #94a3b8 !important;
  margin-left: 6px !important;
  padding-left: 0 !important;
  flex-shrink: 0 !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

body[data-watch-company-shell] .wc-header__user.show .wc-header__user-chevron {
  transform: rotate(180deg) !important;
  color: #206bc4 !important;
}

body[data-watch-company-shell] .wc-header__add-btn {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  padding: 0 !important;
  border-radius: 8px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background-color: #206bc4 !important;
  border: 1px solid #206bc4 !important;
  color: #ffffff !important;
  cursor: pointer !important;
  box-shadow: 0 1px 2px rgba(32, 107, 196, 0.2) !important;
  transition: all 0.15s ease !important;
  flex-shrink: 0 !important;
}

body[data-watch-company-shell] .wc-header__add-btn:hover {
  background-color: #1a569d !important;
  border-color: #1a569d !important;
}

body[data-watch-company-shell] .wc-header__add-btn .feather {
  font-size: 16px !important;
  line-height: 1 !important;
}

/* 16.2 Modern Left Sidebar (.wc-sidebar) */
body[data-watch-company-shell] .wc-sidebar,
body[data-watch-company-shell] #watch-company-sidebar {
  width: var(--fw-sidebar-w, 250px) !important;
  max-width: var(--fw-sidebar-w, 250px) !important;
  background-color: #ffffff !important;
  border-right: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  box-shadow: none !important;
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  transition: width 0.2s cubic-bezier(0.4, 0, 0.2, 1), max-width 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Brand Container */
body[data-watch-company-shell] .wc-sidebar__brand-container {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  height: 58px !important;
  padding: 0 14px 0 16px !important;
  border-bottom: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  flex-shrink: 0 !important;
}

body[data-watch-company-shell] .wc-sidebar__brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-decoration: none !important;
  color: inherit !important;
  padding: 0 !important;
}

body[data-watch-company-shell] .wc-sidebar__brand-icon {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  background: #206bc4 !important;
  color: #ffffff !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: 0 1px 3px rgba(32, 107, 196, 0.25) !important;
  flex-shrink: 0 !important;
  font-size: 18px !important;
}

body[data-watch-company-shell] .wc-sidebar__brand-icon.wc-sidebar__brand-icon--img,
.wc-sidebar__brand-icon--img {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body[data-watch-company-shell] .wc-sidebar__brand-icon .wc-sidebar__brand-img,
.wc-sidebar__brand-img {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  object-fit: contain !important;
  display: block !important;
}

body[data-watch-company-shell] .wc-sidebar__brand-text-wrap {
  display: flex !important;
  flex-direction: column !important;
  line-height: 1.15 !important;
}

body[data-watch-company-shell] .wc-sidebar__brand-title {
  font-family: inherit !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
}

body[data-watch-company-shell] .wc-sidebar__brand-sub {
  font-size: 10px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #94a3b8 !important;
}

body[data-watch-company-shell] .wc-sidebar__pin-btn {
  width: 30px !important;
  height: 30px !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  background: #ffffff !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  font-size: 15px !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

body[data-watch-company-shell] .wc-sidebar__pin-btn:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Nav Area & Clean Section Titles */
body[data-watch-company-shell] .wc-sidebar__nav {
  padding: 10px 10px 8px !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  flex: 1 1 auto !important;
}

body[data-watch-company-shell] .wc-nav-section-title {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #94a3b8 !important;
  padding: 2px 10px !important;
  margin-top: 14px !important;
  margin-bottom: 4px !important;
  user-select: none !important;
}

/* Nav Items */
body[data-watch-company-shell] .wc-nav-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 38px !important;
  height: 38px !important;
  margin: 2px 0 !important;
  padding: 8px 10px !important;
  border: none !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: #475569 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-sizing: border-box !important;
}

body[data-watch-company-shell] .wc-nav-item:hover {
  color: #0f172a !important;
  background-color: #f8fafc !important;
  text-decoration: none !important;
}

body[data-watch-company-shell] .wc-nav-item:hover .wc-nav-item__icon {
  color: #0f172a !important;
}

body[data-watch-company-shell] .wc-nav-item--active,
body[data-watch-company-shell] a.wc-nav-item.active {
  background-color: rgba(32, 107, 196, 0.08) !important;
  color: #206bc4 !important;
  font-weight: 600 !important;
}

body[data-watch-company-shell] .wc-nav-item--active .wc-nav-item__icon,
body[data-watch-company-shell] a.wc-nav-item.active .wc-nav-item__icon {
  color: #206bc4 !important;
}

body[data-watch-company-shell] .wc-nav-item__left {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body[data-watch-company-shell] .wc-nav-item__icon {
  font-size: 18px !important;
  width: 20px !important;
  height: 20px !important;
  color: #64748b !important;
  flex-shrink: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease !important;
}

body[data-watch-company-shell] .wc-nav-item__label {
  font-size: 13.5px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body[data-watch-company-shell] .wc-nav-item__chevron {
  font-size: 13px !important;
  color: #94a3b8 !important;
  margin-left: auto !important;
  transition: transform 0.2s ease, color 0.2s ease !important;
}

body[data-watch-company-shell] .wc-nav-item__chevron--open {
  transform: rotate(180deg) !important;
  color: #206bc4 !important;
}

/* Submenu Hierarchy — Clean Left Guide Line & Snug Text Alignment */
body[data-watch-company-shell] .wc-nav-sub {
  position: relative !important;
  margin: 2px 0 4px 18px !important;
  padding: 2px 0 2px 10px !important;
  border-left: 1.5px solid #e2e8f0 !important;
}

body[data-watch-company-shell] .wc-nav-sub::before {
  display: none !important;
}

body[data-watch-company-shell] .wc-nav-sub.wc-nav-sub--hidden {
  display: none !important;
}

body[data-watch-company-shell] .wc-nav-sub__link {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  /* Never push text to right edge */
  gap: 8px !important;
  margin: 1px 0 !important;
  padding: 6px 8px !important;
  border-radius: 5px !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.3 !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

body[data-watch-company-shell] .wc-nav-sub__link::after {
  display: none !important;
}

body[data-watch-company-shell] .wc-nav-sub__bullet {
  width: 5px !important;
  height: 5px !important;
  min-width: 5px !important;
  border-radius: 50% !important;
  background-color: #cbd5e1 !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
  transition: all 0.15s ease !important;
}

body[data-watch-company-shell] .wc-nav-sub__label {
  flex: 1 1 auto !important;
  text-align: left !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

body[data-watch-company-shell] .wc-nav-sub__link:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  text-decoration: none !important;
}

body[data-watch-company-shell] .wc-nav-sub__link:hover .wc-nav-sub__bullet {
  background-color: #94a3b8 !important;
}

body[data-watch-company-shell] .wc-nav-sub__link--active {
  background-color: rgba(32, 107, 196, 0.08) !important;
  color: #206bc4 !important;
  font-weight: 600 !important;
}

body[data-watch-company-shell] .wc-nav-sub__link--active .wc-nav-sub__bullet {
  background-color: #206bc4 !important;
  box-shadow: 0 0 0 2px rgba(32, 107, 196, 0.2) !important;
}

/* Bottom Links (Hệ Thống) */
body[data-watch-company-shell] .wc-sidebar__bottom-links {
  position: relative !important;
  padding: 0 10px 4px !important;
  flex-shrink: 0 !important;
}

/* User Account Footer */
body[data-watch-company-shell] .wc-sidebar__footer {
  padding: 10px 10px 14px !important;
  border-top: 1px solid var(--tblr-border-color, #e6e8eb) !important;
  background-color: #ffffff !important;
  flex-shrink: 0 !important;
}

body[data-watch-company-shell] .wc-sidebar__account {
  width: 100% !important;
  margin: 0 !important;
}

body[data-watch-company-shell] .wc-sidebar__account-toggle {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 46px !important;
  padding: 5px 8px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background: #ffffff !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
}

body[data-watch-company-shell] .wc-sidebar__account-toggle:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
}

body[data-watch-company-shell] .wc-sidebar__account-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  flex-shrink: 0 !important;
  background: #f1f5f9 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body[data-watch-company-shell] .wc-sidebar__account-avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
}

body[data-watch-company-shell] .wc-sidebar__account-text {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.2 !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

body[data-watch-company-shell] .wc-sidebar__account-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #0f172a !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

body[data-watch-company-shell] .wc-sidebar__account-role {
  font-size: 11px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  margin-top: 1px !important;
}

body[data-watch-company-shell] .wc-sidebar__account-chevron {
  font-size: 14px !important;
  color: #94a3b8 !important;
  margin-left: auto !important;
}

/* 16.3 Folded Sidebar Mode (.wc-sidebar-folded) */
@media (min-width: 992px) {
  body[data-watch-company-shell].wc-sidebar-folded {
    --fw-sidebar-w: 64px !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar,
  body[data-watch-company-shell].wc-sidebar-folded #watch-company-sidebar {
    width: 64px !important;
    min-width: 64px !important;
    max-width: 64px !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .watch-company-main-wrap {
    margin-left: 64px !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .watch-company-main-wrap>.wc-header {
    left: 64px !important;
    max-width: calc(100vw - 64px) !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__brand-text-wrap,
  body[data-watch-company-shell].wc-sidebar-folded .wc-nav-section-title,
  body[data-watch-company-shell].wc-sidebar-folded .wc-nav-item__label,
  body[data-watch-company-shell].wc-sidebar-folded .wc-nav-item__chevron,
  body[data-watch-company-shell].wc-sidebar-folded .wc-nav-sub,
  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__account-text,
  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__account-chevron {
    display: none !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__brand-container {
    padding: 0 10px !important;
    justify-content: center !important;
    cursor: pointer !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__brand {
    margin: 0 auto !important;
    cursor: pointer !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__brand-icon {
    cursor: pointer !important;
    transition: transform 0.15s ease !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__brand-container:hover .wc-sidebar__brand-icon {
    transform: scale(1.08) !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__pin-btn {
    display: none !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__nav {
    padding: 10px 6px !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-nav-item {
    justify-content: center !important;
    padding: 8px 0 !important;
    width: 44px !important;
    margin: 3px auto !important;
    border-radius: 6px !important;
    cursor: pointer !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-nav-item__left {
    justify-content: center !important;
    width: 100% !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-nav-item--active,
  body[data-watch-company-shell].wc-sidebar-folded a.wc-nav-item.active {
    border-radius: 6px !important;
    background-color: rgba(32, 107, 196, 0.12) !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__account-toggle {
    justify-content: center !important;
    padding: 4px 0 !important;
    min-height: 38px !important;
    border: none !important;
    background: transparent !important;
  }

  body[data-watch-company-shell].wc-sidebar-folded .wc-sidebar__account-avatar {
    margin: 0 auto !important;
  }
}

/* 16.4 Responsive Adjustments */
@media (max-width: 991px) {
  body[data-watch-company-shell] .wc-sidebar__pin-btn {
    display: none !important;
  }
}

/* ==============================================================================
   17. TIMESHEET DETAIL SLOT MODAL (CHUẨN FLUTTER UI/UX & TABLER THEME)
   ============================================================================== */
.wc-ts-slot-modal__dialog {
  max-width: 560px !important;
  width: 95% !important;
  margin: 1.75rem auto !important;
}

.wc-ts-slot-modal__content {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 10px 10px -5px rgba(15, 23, 42, 0.04) !important;
  overflow: hidden !important;
  background-color: #ffffff !important;
}

.wc-ts-slot-modal__header {
  padding: 14px 18px !important;
  background-color: #ffffff !important;
  border-bottom: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

.wc-ts-modal-profile {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0 !important;
}

.wc-ts-modal-avatar-wrap {
  position: relative !important;
  flex-shrink: 0 !important;
}

.wc-ts-modal-avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 8px !important;
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #047857 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease !important;
}

.wc-ts-modal-avatar--leave {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

.wc-ts-modal-avatar__alert {
  position: absolute !important;
  bottom: -2px !important;
  right: -2px !important;
  width: 16px !important;
  height: 16px !important;
  background-color: #f59e0b !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
  color: #ffffff !important;
  font-size: 9px !important;
  font-weight: 800 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

.wc-ts-modal-profile__info {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  min-width: 0 !important;
}

.wc-ts-modal-profile__name-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 6px !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.wc-ts-modal-profile__name {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 !important;
  letter-spacing: -0.2px !important;
}

.wc-ts-modal-profile__position {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

.wc-ts-modal-profile__meta {
  font-size: 12px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  display: flex !important;
  align-items: center !important;
}

.wc-ts-slot-modal__body {
  padding: 16px 18px !important;
  background-color: #f8fafc !important;
}

/* 2 Main Status Tabs */
.wc-ts-modal-tabs {
  display: flex !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

.wc-ts-modal-tab-wrapper {
  flex: 1 1 50% !important;
  position: relative !important;
}

.wc-ts-modal-tab {
  width: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  border: 1px solid #e2e8f0 !important;
  background-color: #ffffff !important;
  color: #64748b !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.15s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03) !important;
}

.wc-ts-modal-tab:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

.wc-ts-modal-tab:focus,
.wc-ts-modal-tab:active,
.wc-ts-modal-tab:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.wc-ts-modal-tab--present.wc-ts-modal-tab--active {
  border: 2px solid #10b981 !important;
  background-color: #ecfdf5 !important;
  color: #065f46 !important;
  font-weight: 700 !important;
}

.wc-ts-modal-tab--present.wc-ts-modal-tab--active:focus,
.wc-ts-modal-tab--present.wc-ts-modal-tab--active:active,
.wc-ts-modal-tab--present.wc-ts-modal-tab--active:focus-visible {
  outline: none !important;
  border: 2px solid #10b981 !important;
  box-shadow: none !important;
}

.wc-ts-modal-tab--leave.wc-ts-modal-tab--active {
  border: 2px solid #f59e0b !important;
  background-color: #fffbeb !important;
  color: #92400e !important;
  font-weight: 700 !important;
}

.wc-ts-modal-tab--leave.wc-ts-modal-tab--active:focus,
.wc-ts-modal-tab--leave.wc-ts-modal-tab--active:active,
.wc-ts-modal-tab--leave.wc-ts-modal-tab--active:focus-visible {
  outline: none !important;
  border: 2px solid #f59e0b !important;
  box-shadow: none !important;
}

.wc-ts-modal-tab__dot {
  position: absolute !important;
  top: -3px !important;
  right: -3px !important;
  width: 13px !important;
  height: 13px !important;
  background-color: #f59e0b !important;
  border: 2px solid #ffffff !important;
  border-radius: 50% !important;
}

.wc-ts-modal-card {
  background-color: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 16px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

/* Attendance Method Card Radios */
.wc-ts-method-card {
  padding: 10px 12px !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  background-color: #ffffff !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.15s ease !important;
  user-select: none !important;
}

.wc-ts-method-card:hover {
  border-color: #cbd5e1 !important;
  background-color: #f8fafc !important;
}

.wc-ts-method-card:focus,
.wc-ts-method-card:active,
.wc-ts-method-card:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.wc-ts-method-card--active {
  border: 2px solid #10b981 !important;
  background-color: rgba(16, 185, 129, 0.06) !important;
}

.wc-ts-method-card--active:focus,
.wc-ts-method-card--active:active,
.wc-ts-method-card--active:focus-visible {
  outline: none !important;
  border: 2px solid #10b981 !important;
  box-shadow: none !important;
}

.wc-ts-method-card__title {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.wc-ts-method-card__sub {
  font-size: 11px !important;
  color: #64748b !important;
}

/* Quick Working Chips */
.wc-ts-working-chips {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.wc-ts-chip {
  padding: 2px 7px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 4px !important;
  border: 1px solid #d8dee4 !important;
  background-color: #ffffff !important;
  color: #475569 !important;
  cursor: pointer !important;
  outline: none !important;
  transition: all 0.15s ease !important;
  line-height: 1.3 !important;
}

.wc-ts-chip:hover {
  border-color: #10b981 !important;
  color: #059669 !important;
  background-color: #ecfdf5 !important;
}

.wc-ts-chip:focus,
.wc-ts-chip:active,
.wc-ts-chip:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}

.wc-ts-chip--active {
  background-color: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
}

.wc-ts-chip--active:focus,
.wc-ts-chip--active:active,
.wc-ts-chip--active:focus-visible {
  outline: none !important;
  border-color: #059669 !important;
  box-shadow: none !important;
}

/* Input with Unit Suffix */
.wc-ts-input-unit {
  position: relative !important;
}

.wc-ts-input-unit .tblr-form-control {
  padding-right: 46px !important;
}

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

/* Pure-CSS Switch Toggle */
.wc-ts-switch {
  position: relative !important;
  display: inline-block !important;
  width: 42px !important;
  height: 22px !important;
  cursor: pointer !important;
}

.wc-ts-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
}

.wc-ts-switch__slider {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: #cbd5e1 !important;
  border-radius: 22px !important;
  transition: 0.2s ease !important;
}

.wc-ts-switch__slider:before {
  position: absolute !important;
  content: "" !important;
  height: 18px !important;
  width: 18px !important;
  left: 2px !important;
  bottom: 2px !important;
  background-color: #ffffff !important;
  border-radius: 50% !important;
  transition: 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
}

.wc-ts-switch input:checked + .wc-ts-switch__slider {
  background-color: #10b981 !important;
}

.wc-ts-switch input:checked + .wc-ts-switch__slider:before {
  transform: translateX(20px) !important;
}

/* Modal Footer */
#wcTsSlotModal .wc-confirm-modal__footer,
.wc-ts-slot-modal__footer {
  padding: 12px 18px !important;
  background-color: #ffffff !important;
  border-top: 1px solid #f1f5f9 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
}

.wc-ts-modal-del-btn {
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  max-width: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 6px !important;
  background-color: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
  flex: 0 0 38px !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
}

.wc-ts-modal-del-btn:hover {
  background-color: #ffe4e6 !important;
  border-color: #fda4af !important;
  color: #be123c !important;
}

.wc-ts-modal-del-btn i {
  font-size: 18px !important;
  color: #e11d48 !important;
  line-height: 1 !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.wc-ts-modal-del-btn.d-none,
.wc-ts-modal-del-btn[style*="display: none"] {
  display: none !important;
}

.visually-hidden,
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.wc-ts-modal-cancel-btn {
  width: 88px !important;
  min-width: 88px !important;
  max-width: 88px !important;
  height: 38px !important;
  padding: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  flex: 0 0 88px !important;
  box-sizing: border-box !important;
  color: var(--tblr-text-secondary, #475569) !important;
  border: 1px solid var(--tblr-border-strong, #d8dee4) !important;
  background: #ffffff !important;
}

.wc-ts-modal-cancel-btn:hover {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

.wc-ts-modal-save-btn,
#wcTsSlotSave {
  height: 38px !important;
  flex: 1 1 auto !important;
  width: auto !important;
  min-width: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 16px !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  border-radius: 6px !important;
  box-sizing: border-box !important;
}

/* Shift Select Locked & Roster Hint Styling */
.wc-ts-shift-select-wrap {
  position: relative !important;
}

.wc-ts-shift-select-wrap.is-locked .tblr-form-select {
  background-color: #f1f5f9 !important;
  color: #334155 !important;
  cursor: default !important;
  padding-right: 36px !important;
  background-image: none !important;
  font-weight: 600 !important;
  border-color: #e2e8f0 !important;
  pointer-events: none !important;
}

.wc-ts-shift-select-wrap .wc-ts-shift-lock-icon {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  color: #94a3b8 !important;
  font-size: 16px !important;
  pointer-events: none !important;
  display: none;
}

.wc-ts-shift-select-wrap.is-locked .wc-ts-shift-lock-icon {
  display: block !important;
}

.wc-ts-roster-hint {
  color: #2563eb !important;
  font-size: 11.5px !important;
  font-weight: 500 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.wc-ts-roster-hint i {
  font-size: 14px !important;
  color: #2563eb !important;
}

/* ==========================================================================
   TIMESHEET MODAL LEAVE STATUS BADGE (CHỜ DUYỆT / ĐÃ DUYỆT / TỪ CHỐI / ĐÃ HỦY)
   Synchronized 1:1 with Mobile Flutter (_buildStatusBadge in edit_day_timesheet_sheet.dart)
   ========================================================================== */
.wc-ts-status-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 3px 8px !important;
  border-radius: 99px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  user-select: none !important;
  white-space: nowrap !important;
  transition: all 0.15s ease !important;
}

.wc-ts-status-badge i {
  font-size: 12px !important;
  line-height: 1 !important;
}

/* 1. Chờ duyệt (PENDING) - Amber Soft */
.wc-ts-status-badge--pending {
  background-color: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #b45309 !important;
}
.wc-ts-status-badge--pending i {
  color: #b45309 !important;
}

/* 2. Đã duyệt (APPROVED) - Emerald Soft */
.wc-ts-status-badge--approved {
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #059669 !important;
}
.wc-ts-status-badge--approved i {
  color: #059669 !important;
}

/* 3. Từ chối (REJECTED) - Rose Soft */
.wc-ts-status-badge--rejected {
  background-color: #fff1f2 !important;
  border: 1px solid #fecdd3 !important;
  color: #e11d48 !important;
}
.wc-ts-status-badge--rejected i {
  color: #e11d48 !important;
}

/* 4. Đã hủy (CANCELLED / OTHER) - Slate Soft */
.wc-ts-status-badge--cancelled {
  background-color: #f1f5f9 !important;
  border: 1px solid #e2e8f0 !important;
  color: #475569 !important;
}
.wc-ts-status-badge--cancelled i {
  color: #475569 !important;
}

/* ==========================================================================
   GLOBAL ANTI-BLACK-OUTLINE / CLEAN FOCUS FOR BUTTONS, TABS & CONTROLS
   Eliminates browser default black/dark focus-ring on clicks across all pages & modals
   ========================================================================== */
button:focus,
button:active,
button:focus-visible,
[type="button"]:focus,
[type="button"]:active,
[type="button"]:focus-visible,
[type="submit"]:focus,
[type="submit"]:active,
[type="submit"]:focus-visible,
[role="tab"]:focus,
[role="tab"]:active,
[role="tab"]:focus-visible,
[role="button"]:focus,
[role="button"]:active,
[role="button"]:focus-visible,
.wc-ts-modal-tab:focus,
.wc-ts-modal-tab:active,
.wc-ts-modal-tab:focus-visible,
.wc-ts-method-card:focus,
.wc-ts-method-card:active,
.wc-ts-method-card:focus-visible,
.wc-ts-chip:focus,
.wc-ts-chip:active,
.wc-ts-chip:focus-visible,
.wc-employees-tab:focus,
.wc-employees-tab:active,
.wc-employees-tab:focus-visible,
.wc-employee-tab:focus,
.wc-employee-tab:active,
.wc-employee-tab:focus-visible,
.wc-domain-tab:focus,
.wc-domain-tab:active,
.wc-domain-tab:focus-visible,
.wc-ts-cell-action:focus,
.wc-ts-cell-action:active,
.wc-ts-cell-action:focus-visible,
.wc-ts-pager__btn:focus,
.wc-ts-pager__btn:active,
.wc-ts-pager__btn:focus-visible,
.wc-ts-period-btn:focus,
.wc-ts-period-btn:active,
.wc-ts-period-btn:focus-visible,
.wc-confirm-modal button:focus,
.wc-confirm-modal button:active,
.wc-confirm-modal button:focus-visible,
.wc-confirm-modal [tabindex]:focus,
.wc-confirm-modal [tabindex]:active,
.wc-confirm-modal [tabindex]:focus-visible,
.modal button:focus,
.modal button:active,
.modal button:focus-visible,
.modal [tabindex]:focus,
.modal [tabindex]:active,
.modal [tabindex]:focus-visible,
.wc-confirm-modal__close:focus,
.wc-confirm-modal__close:active,
.wc-confirm-modal__close:focus-visible,
.wc-ts-modal-del-btn:focus,
.wc-ts-modal-del-btn:active,
.wc-ts-modal-del-btn:focus-visible,
.wc-ts-modal-cancel-btn:focus,
.wc-ts-modal-cancel-btn:active,
.wc-ts-modal-cancel-btn:focus-visible,
.wc-ts-modal-save-btn:focus,
.wc-ts-modal-save-btn:active,
.wc-ts-modal-save-btn:focus-visible,
#wcTsSlotDelete:focus,
#wcTsSlotDelete:active,
#wcTsSlotDelete:focus-visible,
#wcTsSlotSave:focus,
#wcTsSlotSave:active,
#wcTsSlotSave:focus-visible,
.tblr-btn:focus,
.tblr-btn:active,
.tblr-btn:focus-visible {
  outline: none !important;
}