/**
 * HĐND TP.HCM Design System Tokens & Base Overrides
 * Design System Core & CSS Token Architecture
 */

:root {
  /* Color Palette */
  --hdnd-primary: #1976D2;
  --hdnd-primary-hover: #1565C0;
  --hdnd-primary-light: #EAF3FF;
  --hdnd-primary-dark: #0D47A1;
  --hdnd-bg-page: #F5F7FA;
  --hdnd-surface: #FFFFFF;
  --hdnd-text-main: #1E293B;
  --hdnd-text-secondary: #64748B;
  --hdnd-text-muted: #94A3B8;
  --hdnd-border: #E2E8F0;
  --hdnd-input-border: #CBD5E1;
  --hdnd-border-light: #F1F5F9;
  
  /* Status Colors */
  --hdnd-success: #16A34A;
  --hdnd-success-bg: #ECFDF5;
  --hdnd-warning: #F59E0B;
  --hdnd-warning-bg: #FEF3C7;
  --hdnd-danger: #DC2626;
  --hdnd-danger-bg: #FEF2F2;
  --hdnd-info: #0284C7;
  --hdnd-info-bg: #E0F2FE;
  
  /* Border Radii */
  --hdnd-radius-sm: 6px;
  --hdnd-radius-md: 10px;
  --hdnd-radius-lg: 14px;
  --hdnd-radius-pill: 9999px;
  
  /* Elevation Shadows */
  --hdnd-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --hdnd-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --hdnd-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

/* Global Layout Overrides */
body.admin {
  background-color: var(--hdnd-bg-page) !important;
  color: var(--hdnd-text-main) !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-size: 14px;
}

#wrapper {
  background-color: var(--hdnd-bg-page) !important;
}

/* Card Surface */
.panel_s, .hdnd-card {
  background: var(--hdnd-surface) !important;
  border: 1px solid var(--hdnd-border) !important;
  border-radius: var(--hdnd-radius-md) !important;
  box-shadow: var(--hdnd-shadow-sm) !important;
  margin-bottom: 20px;
}
.panel_s .panel-body {
  padding: 20px 24px !important;
}

/* Inputs & Form Controls */
.form-control,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
select.form-control {
  height: 38px !important;
  border: 1px solid var(--hdnd-input-border) !important;
  border-radius: var(--hdnd-radius-sm) !important;
  font-size: 13.5px !important;
  color: var(--hdnd-text-main) !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus,
input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
select.form-control:focus {
  border-color: var(--hdnd-primary) !important;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15) !important;
}
textarea.form-control {
  height: auto !important;
  min-height: 80px;
}

/* Primary Button */
.btn-info, .btn-primary, .btn-hdnd-primary {
  background-color: var(--hdnd-primary) !important;
  border-color: var(--hdnd-primary) !important;
  color: #FFFFFF !important;
  border-radius: var(--hdnd-radius-sm) !important;
  font-weight: 500 !important;
  padding: 8px 16px !important;
  box-shadow: var(--hdnd-shadow-sm);
  transition: all 0.2s ease-in-out;
}
.btn-info:hover, .btn-primary:hover, .btn-hdnd-primary:hover {
  background-color: var(--hdnd-primary-hover) !important;
  border-color: var(--hdnd-primary-hover) !important;
}
.btn-info:focus, .btn-primary:focus, .btn-hdnd-primary:focus,
.btn-info:active, .btn-primary:active, .btn-hdnd-primary:active,
.btn-info.active, .btn-primary.active, .btn-hdnd-primary.active {
  background-color: var(--hdnd-primary-dark) !important;
  border-color: var(--hdnd-primary-dark) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125), 0 0 0 3px rgba(25, 118, 210, 0.25) !important;
  outline: none !important;
}

/* Button Size Protections */
.btn-info.btn-xs, .btn-primary.btn-xs, .btn-hdnd-primary.btn-xs {
  padding: 2px 6px !important;
  font-size: 11px !important;
  line-height: 1.5 !important;
  border-radius: 3px !important;
}
.btn-info.btn-sm, .btn-primary.btn-sm, .btn-hdnd-primary.btn-sm {
  padding: 5px 10px !important;
  font-size: 12px !important;
  line-height: 1.5 !important;
  border-radius: 4px !important;
}

/* Standalone & Utility Buttons */
.hdnd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: var(--hdnd-radius-sm);
  font-weight: 500;
  padding: 8px 16px;
  box-shadow: var(--hdnd-shadow-sm);
  transition: all 0.2s ease-in-out;
  cursor: pointer;
  text-decoration: none;
}
.hdnd-btn-primary {
  background-color: var(--hdnd-primary) !important;
  border: 1px solid var(--hdnd-primary) !important;
  color: #FFFFFF !important;
}
.hdnd-btn-primary:hover {
  background-color: var(--hdnd-primary-hover) !important;
  border-color: var(--hdnd-primary-hover) !important;
  color: #FFFFFF !important;
}
.hdnd-btn-secondary {
  background-color: var(--hdnd-surface) !important;
  border: 1px solid var(--hdnd-border) !important;
  color: var(--hdnd-text-main) !important;
}
.hdnd-btn-secondary:hover {
  background-color: var(--hdnd-border-light) !important;
  border-color: var(--hdnd-border) !important;
  color: var(--hdnd-text-main) !important;
}

/* Data Table Styling */
table.dataTable thead th {
  background-color: #F8FAFC !important;
  color: var(--hdnd-text-secondary) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  text-transform: none !important;
  border-bottom: 1px solid var(--hdnd-border) !important;
  padding: 12px 14px !important;
}
table.dataTable tbody td {
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  color: var(--hdnd-text-main) !important;
  border-top: 1px solid var(--hdnd-border-light) !important;
  vertical-align: middle !important;
}
table.dataTable tbody tr:hover {
  background-color: #F8FAFC !important;
}

/* Standalone Table Component */
.hdnd-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}
.hdnd-table th {
  background-color: #F8FAFC;
  color: var(--hdnd-text-secondary);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--hdnd-border);
  padding: 12px 14px;
}
.hdnd-table td {
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--hdnd-text-main);
  border-top: 1px solid var(--hdnd-border-light);
  vertical-align: middle;
}
.hdnd-table tbody tr:hover {
  background-color: #F8FAFC;
}

/* Status Badges */
.hdnd-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--hdnd-radius-pill);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.2;
}
.hdnd-badge-success { background: var(--hdnd-success-bg); color: var(--hdnd-success); }
.hdnd-badge-warning { background: var(--hdnd-warning-bg); color: var(--hdnd-warning); }
.hdnd-badge-danger { background: var(--hdnd-danger-bg); color: var(--hdnd-danger); }
.hdnd-badge-info { background: var(--hdnd-info-bg); color: var(--hdnd-info); }
.hdnd-badge-primary { background: var(--hdnd-primary-light); color: var(--hdnd-primary); }

/* Filter Bar Component */
.hdnd-filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

/* ==========================================================================
   Admin Authentication / Login Screen (HDND Design System)
   ========================================================================== */
body.login_admin {
  min-height: 100vh;
  margin: 0;
  padding: 40px 15px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  color: var(--hdnd-text-main);
  background: url('../images/bglogin.jpg') no-repeat center center fixed !important;
  background-size: cover !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative;
  overflow-x: hidden;
}

body.login_admin::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.45) 0%, rgba(15, 23, 42, 0.65) 100%);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 1;
}

.hdnd-login-centered-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 440px;
  margin: auto;
  text-align: center;
}

.hdnd-login-header-centered {
  margin-bottom: 22px;
}

.hdnd-login-emblem {
  width: 76px;
  height: 76px;
  object-fit: contain;
  margin: 0 auto 10px auto;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
}

.hdnd-login-title-centered {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF !important;
  margin: 0 0 6px 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  letter-spacing: -0.2px;
}

.hdnd-login-subtitle-centered {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.92) !important;
  margin: 0;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hdnd-login-card {
  background: #FFFFFF !important;
  border-radius: 16px !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.3), 0 5px 15px rgba(0, 0, 0, 0.15) !important;
  padding: 30px 28px !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  width: 100%;
  text-align: left;
}

/* Navigation Tabs inside Card */
.hdnd-login-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #E2E8F0;
  margin-bottom: 24px;
  padding-bottom: 0;
}

.hdnd-login-tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 12px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #64748B;
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.hdnd-login-tab-item:hover {
  color: var(--hdnd-primary);
}

.hdnd-login-tab-item.active {
  color: var(--hdnd-primary) !important;
  font-weight: 600;
  border-bottom-color: var(--hdnd-primary) !important;
}

.hdnd-login-tab-item i {
  font-size: 15px;
}

/* Form Groups & Inputs */
.hdnd-login-card .form-group {
  margin-bottom: 18px;
}

.hdnd-login-card label.control-label {
  font-size: 13.5px;
  font-weight: 600 !important;
  color: #1E293B;
  margin-bottom: 6px;
  display: block;
}

.hdnd-login-card label.control-label .required-star {
  color: #DC2626;
  font-weight: 700;
  margin-left: 2px;
}

.hdnd-input-icon-group {
  position: relative;
  display: flex;
  align-items: center;
}

.hdnd-input-icon-group .hdnd-input-icon-left {
  position: absolute;
  left: 14px;
  color: #94A3B8;
  font-size: 15px;
  pointer-events: none;
  z-index: 4;
}

.hdnd-input-icon-group .form-control {
  padding-left: 42px !important;
  padding-right: 42px !important;
  height: 44px !important;
  font-size: 14px !important;
  border-radius: 8px !important;
  border: 1px solid #CBD5E1 !important;
  background-color: #FFFFFF !important;
  color: #1E293B !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hdnd-input-icon-group .form-control::placeholder {
  color: #94A3B8;
  font-size: 13.5px;
}

.hdnd-input-icon-group .form-control:focus {
  border-color: var(--hdnd-primary) !important;
  box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.15) !important;
}

.hdnd-input-icon-group .hdnd-password-toggle {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: #94A3B8;
  cursor: pointer;
  padding: 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 4;
  outline: none;
  transition: color 0.2s;
}

.hdnd-input-icon-group .hdnd-password-toggle:hover {
  color: #475569;
}

/* Options Row (Remember me & Forgot Password) */
.hdnd-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 22px 0;
}

.hdnd-login-options .checkbox {
  margin: 0;
  padding: 0;
}

.hdnd-login-options .checkbox label {
  font-size: 13.5px;
  color: #475569;
  font-weight: 400 !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding-left: 0;
}

.hdnd-login-options .checkbox input[type="checkbox"] {
  margin: 0;
  position: static;
  width: 16px;
  height: 16px;
  accent-color: var(--hdnd-primary);
  cursor: pointer;
}

.hdnd-login-options .hdnd-forgot-link {
  font-size: 13.5px;
  color: var(--hdnd-primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.hdnd-login-options .hdnd-forgot-link:hover {
  color: var(--hdnd-primary-hover);
  text-decoration: underline;
}

/* Submit Button */
.btn-hdnd-submit {
  width: 100%;
  height: 46px !important;
  background-color: var(--hdnd-primary) !important;
  border-color: var(--hdnd-primary) !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(25, 118, 210, 0.25) !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-hdnd-submit:hover {
  background-color: var(--hdnd-primary-hover) !important;
  border-color: var(--hdnd-primary-hover) !important;
  box-shadow: 0 6px 14px rgba(25, 118, 210, 0.35) !important;
}

/* Divider "Hoặc" */
.hdnd-login-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.hdnd-login-divider::before,
.hdnd-login-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.hdnd-login-divider span {
  padding: 0 12px;
  color: #94A3B8;
  font-size: 13px;
  font-weight: 400;
}

/* Biometric Button */
.btn-hdnd-biometric {
  width: 100%;
  height: 46px;
  background-color: #FFFFFF !important;
  border: 1.5px solid var(--hdnd-primary) !important;
  color: var(--hdnd-primary) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: none !important;
  transition: all 0.2s ease;
  cursor: pointer;
}

.btn-hdnd-biometric:hover {
  background-color: var(--hdnd-primary-light) !important;
  border-color: var(--hdnd-primary-hover) !important;
  color: var(--hdnd-primary-hover) !important;
}

.btn-hdnd-biometric svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
}

/* Card Footer Version */
.hdnd-login-card-footer {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: #94A3B8;
  font-weight: 400;
}

/* Biometric Modal Overlay */
.hdnd-modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.hdnd-modal-overlay.active {
  display: flex;
}
.hdnd-modal-box {
  background: #FFFFFF;
  border-radius: 16px;
  width: 100%;
  max-width: 400px;
  padding: 32px 24px 24px;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: hdndModalPop 0.25s ease-out;
}
@keyframes hdndModalPop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.hdnd-biometric-pulse {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--hdnd-primary-light);
  color: var(--hdnd-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  position: relative;
  animation: pulseRing 1.8s infinite ease-in-out;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0.4); }
  70% { box-shadow: 0 0 0 16px rgba(25, 118, 210, 0); }
  100% { box-shadow: 0 0 0 0 rgba(25, 118, 210, 0); }
}

/* Responsive Breakpoints */
@media (max-width: 480px) {
  body.login_admin {
    padding: 20px 12px;
  }
  .hdnd-login-card {
    padding: 22px 18px !important;
  }
  .hdnd-login-title-centered {
    font-size: 19px;
  }
}

/* ==========================================================================
   Header & Top Navigation (HĐND Design System)
   ========================================================================== */
#header {
  background: var(--hdnd-primary) !important;
  background-image: none !important;
  filter: none !important;
  height: 60px !important;
  min-height: 60px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08) !important;
  border: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 16px 0 0 !important;
  position: relative !important;
  z-index: 1000 !important;
  margin: 0 !important;
}

/* Hide legacy elements */
#header #logo,
#header .company-name-header,
#header .small-logo {
  display: none !important;
}

/* Header Left Group */
#header .header-brand-group {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  float: left !important;
}

/* Hamburger Menu Icon */
#header .hide-menu {
  width: 52px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #FFFFFF !important;
  font-size: 18px !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  line-height: normal !important;
  border: none !important;
  background: transparent !important;
  transition: background-color 0.2s ease, opacity 0.2s ease !important;
}
#header .hide-menu:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
  opacity: 1 !important;
}
#header .hide-menu i {
  color: #FFFFFF !important;
}

/* Brand Block: Emblem + System Title */
#header .header-brand-block {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  padding-left: 6px !important;
}
#header .header-brand-link {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
}
#header .header-brand-link:hover,
#header .header-brand-link:focus {
  text-decoration: none !important;
}
#header .header-brand-logo {
  height: 36px !important;
  width: auto !important;
  max-width: 40px !important;
  object-fit: contain !important;
  display: block !important;
  flex-shrink: 0 !important;
}
#header .header-brand-title {
  color: #FFFFFF !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  line-height: 1.2 !important;
}

/* Header Right Navigation */
#header nav {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  margin-left: auto !important;
}
#header nav .navbar-right {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  gap: 4px !important;
}
#header nav .navbar-right > li {
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 60px !important;
}

/* Notification Bell */
#header .header-notifications {
  order: 1 !important;
}
#header .header-notifications a.notifications-icon {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 60px !important;
  line-height: 60px !important;
  padding: 0 14px !important;
  color: #FFFFFF !important;
  position: relative !important;
  background: transparent !important;
  transition: background-color 0.2s ease !important;
  text-decoration: none !important;
}
#header .header-notifications a.notifications-icon:hover,
#header .header-notifications a.notifications-icon:focus,
#header .header-notifications.open a.notifications-icon {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}
#header .header-notifications a.notifications-icon i {
  font-size: 19px !important;
  color: #FFFFFF !important;
}

/* Notification Red Badge Count */
#header .header-notifications a.notifications-icon .icon-notifications,
#header .header-notifications a.notifications-icon .icon-total-indicator {
  position: absolute !important;
  top: 13px !important;
  right: 6px !important;
  background-color: #EF4444 !important;
  color: #FFFFFF !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  min-width: 17px !important;
  height: 17px !important;
  line-height: 14px !important;
  border-radius: 9999px !important;
  padding: 0 4px !important;
  border: 1.5px solid #1976D2 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
}

/* Notifications Dropdown Window */
#header .dropdown-menu.notifications {
  width: 380px !important;
  border-radius: 12px !important;
  border: 1px solid var(--hdnd-border) !important;
  box-shadow: var(--hdnd-shadow-lg) !important;
  padding: 0 !important;
  margin-top: 4px !important;
  overflow: hidden !important;
  background: #FFFFFF !important;
}
#header .dropdown-menu.notifications .not_mark_all_as_read {
  background: #F8FAFC !important;
  border-bottom: 1px solid var(--hdnd-border) !important;
  padding: 10px 16px !important;
}
#header .dropdown-menu.notifications .not_mark_all_as_read a {
  color: var(--hdnd-primary) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 0 !important;
}

/* User Profile Nav Item */
#header .header-user-profile {
  order: 2 !important;
}
#header .header-user-profile a.profile {
  display: flex !important;
  align-items: center !important;
  height: 60px !important;
  padding: 0 12px 0 8px !important;
  color: #FFFFFF !important;
  gap: 8px !important;
  text-decoration: none !important;
  background: transparent !important;
  transition: background-color 0.2s ease !important;
}
#header .header-user-profile a.profile:hover,
#header .header-user-profile a.profile:focus,
#header .header-user-profile.open a.profile {
  background-color: rgba(255, 255, 255, 0.12) !important;
  color: #FFFFFF !important;
}
#header .header-avatar-wrap {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 50% !important;
  border: 2px solid rgba(255, 255, 255, 0.85) !important;
  overflow: hidden !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #E2E8F0 !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}
#header .header-avatar-wrap img,
#header .header-avatar-wrap .staff-profile-image-small {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
  float: none !important;
  margin: 0 !important;
}
#header .header-username {
  color: #FFFFFF !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  white-space: nowrap !important;
  margin-left: 2px !important;
  margin-right: 4px !important;
}
#header .header-user-caret {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 11px !important;
  transition: transform 0.2s ease !important;
}
#header .header-user-profile.open .header-user-caret {
  transform: rotate(180deg) !important;
}

/* User Profile Dropdown Menu */
#header .header-user-profile .dropdown-menu {
  min-width: 210px !important;
  border-radius: 12px !important;
  border: 1px solid var(--hdnd-border) !important;
  box-shadow: var(--hdnd-shadow-lg) !important;
  padding: 6px 0 !important;
  margin-top: 4px !important;
  background: #FFFFFF !important;
}
#header .header-user-profile .dropdown-menu li > a {
  padding: 9px 16px !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  transition: all 0.15s ease !important;
  font-weight: 400 !important;
  background: transparent !important;
}
#header .header-user-profile .dropdown-menu li > a i {
  width: 18px !important;
  text-align: center !important;
  font-size: 14px !important;
  color: var(--hdnd-text-secondary) !important;
  transition: color 0.15s ease !important;
}
#header .header-user-profile .dropdown-menu li > a:hover {
  background-color: #F8FAFC !important;
  color: var(--hdnd-primary) !important;
}
#header .header-user-profile .dropdown-menu li > a:hover i {
  color: var(--hdnd-primary) !important;
}
#header .header-user-profile .dropdown-menu li.divider {
  margin: 5px 0 !important;
  border-top: 1px solid var(--hdnd-border) !important;
  height: 1px !important;
  background: var(--hdnd-border) !important;
}
#header .header-user-profile .dropdown-menu li.header-logout > a {
  color: #DC2626 !important;
}
#header .header-user-profile .dropdown-menu li.header-logout > a i {
  color: #DC2626 !important;
}
#header .header-user-profile .dropdown-menu li.header-logout > a:hover {
  background-color: #FEF2F2 !important;
}

/* Submenu dropdown for language */
#header .header-user-profile .dropdown-submenu .dropdown-menu {
  top: 0 !important;
  right: 100% !important;
  left: auto !important;
  margin-top: -6px !important;
  border-radius: 10px !important;
}

/* ==========================================================================
   Sidebar Navigation (HĐND Design System)
   ========================================================================== */
#menu.sidebar {
  width: 240px !important;
  top: 60px !important;
  bottom: 0 !important;
  left: 0 !important;
  background: #FFFFFF !important;
  border-right: 1px solid #E2E8F0 !important;
  box-shadow: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  z-index: 99 !important;
  transition: margin-left 0.3s ease !important;
}

/* Custom Slim Scrollbar for Sidebar */
#menu.sidebar::-webkit-scrollbar {
  width: 5px;
}
#menu.sidebar::-webkit-scrollbar-track {
  background: transparent;
}
#menu.sidebar::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
#menu.sidebar::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* Sidebar Metis Menu List */
#side-menu {
  background: #FFFFFF !important;
  padding: 10px 0 24px 0 !important;
  margin: 0 !important;
  list-style: none !important;
}

#side-menu > li {
  margin: 2px 10px !important;
  background: transparent !important;
  border: none !important;
}

#side-menu > li > a {
  display: flex !important;
  align-items: center !important;
  padding: 10px 14px !important;
  color: #64748B !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
  text-transform: none !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
  line-height: 1.4 !important;
  border: none !important;
}

/* Hover Menu Item */
#side-menu > li > a:hover,
#side-menu > li > a:focus {
  background-color: #F8FAFC !important;
  color: #1E293B !important;
  border-bottom: none !important;
}
#side-menu > li > a:hover .menu-icon,
#side-menu > li > a:focus .menu-icon {
  color: #1E293B !important;
}
#side-menu > li > a:hover .arrow,
#side-menu > li > a:focus .arrow {
  color: #1E293B !important;
}

/* Active State: Blue Pill Shape */
#side-menu > li.active > a,
#side-menu > li.active > a:hover,
#side-menu > li.active > a:focus {
  background-color: #EAF3FF !important;
  color: #1976D2 !important;
  font-weight: 600 !important;
  border-radius: 8px !important;
}
#side-menu > li.active > a .menu-icon {
  color: #1976D2 !important;
}
#side-menu > li.active > a .arrow {
  color: #1976D2 !important;
}

/* Icon in Main Item */
#side-menu > li > a .menu-icon {
  width: 20px !important;
  min-width: 20px !important;
  font-size: 16px !important;
  margin-right: 12px !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  color: #64748B !important;
  text-align: center !important;
  float: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: color 0.15s ease !important;
}

/* Text in Main Item */
#side-menu > li > a .menu-text {
  flex: 1 1 auto !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  font-size: 13.5px !important;
  text-transform: none !important;
}

/* Arrow in Main Item */
#side-menu > li > a .arrow,
#side-menu > li > a span.fa.arrow {
  flex: 0 0 auto !important;
  float: none !important;
  margin-left: auto !important;
  font-size: 11px !important;
  color: #94A3B8 !important;
  transition: transform 0.2s ease, color 0.15s ease !important;
  line-height: inherit !important;
}

/* Arrow direction icons */
#side-menu > li > a[aria-expanded="true"] > .arrow:before {
  content: "\f107" !important; /* fa-angle-down */
}
#side-menu > li > a[aria-expanded="false"] > .arrow:before,
#side-menu > li > a:not([aria-expanded]) > .arrow:before {
  content: "\f105" !important; /* fa-angle-right */
}

/* Submenu container */
#side-menu .nav-second-level {
  background-color: transparent !important;
  padding: 4px 0 4px 16px !important;
  margin: 2px 10px 4px 22px !important;
  border-left: 2px solid #E2E8F0 !important;
  list-style: none !important;
}

#side-menu .nav-second-level li {
  background: transparent !important;
  border: none !important;
  margin: 2px 0 !important;
}

#side-menu .nav-second-level li a {
  display: flex !important;
  align-items: center !important;
  padding: 7px 12px !important;
  color: #64748B !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
  margin: 0 !important;
}

#side-menu .nav-second-level li a:hover,
#side-menu .nav-second-level li a:focus {
  background-color: #F8FAFC !important;
  color: #1E293B !important;
}

#side-menu .nav-second-level li.active a,
#side-menu .nav-second-level li.active > a {
  background-color: #EAF3FF !important;
  color: #1976D2 !important;
  font-weight: 600 !important;
}

#side-menu .nav-second-level li a .menu-icon {
  width: 16px !important;
  font-size: 13px !important;
  margin-right: 8px !important;
  color: inherit !important;
}

/* Reset legacy PNG pseudo-elements */
.sidebar .menu-item-document a::before,
.sidebar .menu-item-voting a::before,
.sidebar .menu-item-complaints a::before,
.sidebar .menu-item-app-options .sub-menu-item-promulgate a::before,
.sidebar .menu-item-app-options .sub-menu-item-departments a::before,
.sidebar .menu-item-app-options .sub-menu-item-complaint_types a::before,
.sidebar .menu-item-app-options .sub-menu-item-reception_agency a::before,
.sidebar .menu-item-app-options .sub-menu-item-complaint_transfer a::before,
.sidebar .menu-item-app-options .sub-menu-item-complaint_sources a::before {
  display: none !important;
  content: none !important;
}

.sidebar .menu-item-document a,
.sidebar .menu-item-voting a,
.sidebar .menu-item-complaints a,
.sidebar .sub-menu-item-promulgate a,
.sidebar .sub-menu-item-departments a,
.sidebar .sub-menu-item-complaint_types a,
.sidebar .sub-menu-item-reception_agency a,
.sidebar .sub-menu-item-complaint_transfer a,
.sidebar .sub-menu-item-complaint_sources a {
  padding-left: 14px !important;
}

/* ==========================================================================
   Content Area Wrapper & Layout Offsets
   ========================================================================== */
#wrapper {
  margin-left: 240px !important;
  padding: 0 !important;
  min-height: calc(100vh - 60px) !important;
  background-color: var(--hdnd-bg-page) !important;
  transition: margin-left 0.3s ease !important;
}

/* Sidebar Toggle: Collapsed State */
body.hide-sidebar:not(.show-sidebar) #menu {
  margin-left: -240px !important;
}
body.hide-sidebar:not(.show-sidebar) #wrapper {
  margin-left: 0 !important;
}

/* Responsive Breakpoints for Mobile / Tablets */
@media (max-width: 768px) {
  #header .header-brand-title {
    font-size: 13px !important;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  #header .header-username {
    display: none !important;
  }
  #header .header-user-caret {
    display: none !important;
  }
}

body.page-small #menu {
  margin-left: -240px !important;
  width: 240px !important;
  top: 60px !important;
  z-index: 9999 !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
}
body.page-small #wrapper {
  margin-left: 0 !important;
}
body.page-small.show-sidebar #menu {
  margin-left: 0 !important;
}
body.page-small.show-sidebar #wrapper {
  margin-left: 240px !important;
}

/* ==========================================================================
   Dashboard Overview (Task 4)
   ========================================================================== */

/* Hide legacy cron warning banner and dashboard options button on refined dashboard */
body.dashboard .screen-options-btn {
  display: none !important;
}
body.dashboard .alert-warning {
  display: none !important;
}
body.dashboard .col-md-12:has(> .alert-warning) {
  display: none !important;
}

/* Breadcrumb */
.hdnd-dashboard-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  color: #0F2942;
  margin-top: 4px;
  margin-bottom: 20px;
}
.hdnd-dashboard-breadcrumb a {
  color: #0F2942 !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hdnd-dashboard-breadcrumb a:hover {
  color: #1976D2 !important;
}
.hdnd-dashboard-breadcrumb .fa-home {
  font-size: 17px;
  color: #0F2942;
}

/* Greeting Welcome Banner */
.hdnd-welcome-banner {
  background: linear-gradient(135deg, #DCEEFE 0%, #EBF5FF 100%) !important;
  border: 1px solid #C7E2FE !important;
  border-radius: 14px !important;
  padding: 14px 24px !important;
  position: relative !important;
  overflow: hidden !important;
  margin-bottom: 20px !important;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(15, 41, 66, 0.04);
}
.hdnd-banner-content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
}
.hdnd-banner-greeting {
  font-size: 15px;
  font-weight: 500;
  color: #0F2942;
  line-height: 1.3;
}
.hdnd-banner-name {
  font-size: 18px;
  font-weight: 700;
  color: #0F2942;
  line-height: 1.25;
}
.hdnd-banner-subtitle {
  font-size: 13.5px;
  color: #475569;
  margin-left: auto;
  font-weight: 400;
}
.hdnd-banner-art {
  position: absolute;
  right: 0;
  bottom: 0;
  top: 0;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  display: flex;
  align-items: flex-end;
}
.hdnd-banner-art img {
  height: 100%;
  width: auto;
  object-fit: cover;
  object-position: right bottom;
}

/* KPI Metric Cards Grid */
.hdnd-kpi-row {
  margin-left: -10px;
  margin-right: -10px;
}
.hdnd-kpi-col {
  padding-left: 10px;
  padding-right: 10px;
  margin-bottom: 24px;
}
.hdnd-kpi-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}
.hdnd-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}
.hdnd-kpi-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hdnd-kpi-icon.kpi-blue {
  background-color: #EAF3FF;
  color: #1976D2;
}
.hdnd-kpi-icon.kpi-purple {
  background-color: #F3E8FF;
  color: #9333EA;
}
.hdnd-kpi-icon.kpi-green {
  background-color: #ECFDF5;
  color: #10B981;
}
.hdnd-kpi-icon.kpi-coral {
  background-color: #FEE2E2;
  color: #EF4444;
}
.hdnd-kpi-content {
  flex: 1;
  min-width: 0;
}
.hdnd-kpi-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: #64748B;
  margin-bottom: 10px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdnd-kpi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background-color: currentColor;
}
.hdnd-kpi-value {
  font-size: 30px;
  font-weight: 700;
  color: #0F2942;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.hdnd-kpi-dot.kpi-blue, .hdnd-kpi-value.kpi-blue { color: #1976D2; }
.hdnd-kpi-dot.kpi-purple, .hdnd-kpi-value.kpi-purple { color: #9333EA; }
.hdnd-kpi-dot.kpi-green, .hdnd-kpi-value.kpi-green { color: #10B981; }
.hdnd-kpi-dot.kpi-coral, .hdnd-kpi-value.kpi-coral { color: #EF4444; }
.hdnd-task-desc {
  font-size: 12.5px;
  color: #64748B;
  padding: 10px 20px 0;
  line-height: 1.5;
}
.hdnd-task-desc .fa {
  color: #94A3B8;
  margin-right: 4px;
}
a.hdnd-kpi-card,
a.hdnd-kpi-card:hover,
a.hdnd-kpi-card:focus {
  text-decoration: none;
  color: inherit;
}

/* Dashboard Section Cards */
.hdnd-dashboard-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 24px;
  overflow: hidden;
}
.hdnd-dashboard-card .hdnd-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px 14px 22px;
  border-bottom: 1px solid #F1F5F9;
}
.hdnd-dashboard-card .hdnd-card-title {
  font-size: 16px;
  font-weight: 700;
  color: #0F2942;
  margin: 0;
}
.hdnd-dashboard-card .hdnd-card-body {
  padding: 20px 22px;
}

/* Chart Card & Period Selector */
.hdnd-period-select {
  height: 32px !important;
  font-size: 12.5px !important;
  padding: 4px 10px !important;
  border-radius: 8px !important;
  border: 1px solid #CBD5E1 !important;
  background-color: #F8FAFC !important;
  color: #334155 !important;
  cursor: pointer;
}
.hdnd-chart-legend {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #64748B;
}
.hdnd-legend-box {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: middle;
}

/* Donut Status Card */
.hdnd-donut-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
}
.hdnd-donut-chart-container {
  position: relative;
  width: 155px;
  height: 155px;
  flex-shrink: 0;
}
.hdnd-donut-center-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  pointer-events: none;
}
.hdnd-donut-center-number {
  font-size: 20px;
  font-weight: 700;
  color: #0F2942;
  line-height: 1.1;
}
.hdnd-donut-center-label {
  font-size: 12px;
  color: #64748B;
  margin-top: 2px;
}
.hdnd-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  padding-left: 6px;
}
.hdnd-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.hdnd-legend-left {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #334155;
  font-weight: 500;
}
.hdnd-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}
.hdnd-legend-val {
  font-weight: 600;
  color: #0F2942;
  font-size: 13px;
}

/* Work Items Table Section */
.hdnd-link-all {
  color: #1976D2 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: color 0.15s ease;
}
.hdnd-link-all:hover {
  color: #1565C0 !important;
  text-decoration: underline !important;
}
.hdnd-filter-tabs {
  display: flex;
  gap: 6px;
  border-bottom: 1px solid #E2E8F0;
  padding: 0 22px;
  margin: 0;
  list-style: none;
  overflow-x: auto;
}
.hdnd-filter-tabs li {
  margin-bottom: -1px;
}
.hdnd-filter-tabs li a {
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  text-decoration: none !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  display: block;
  transition: all 0.2s ease;
}
.hdnd-filter-tabs li a:hover,
.hdnd-filter-tabs li.active a {
  color: #1976D2 !important;
  border-bottom-color: #1976D2 !important;
  font-weight: 600 !important;
  background: transparent !important;
}
.hdnd-work-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 0;
}
.hdnd-work-table thead th {
  background-color: #F8FAFC !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  padding: 11px 16px !important;
  border-bottom: 1px solid #E2E8F0 !important;
  border-top: none !important;
}
.hdnd-work-table tbody td {
  padding: 14px 16px !important;
  font-size: 13.5px !important;
  vertical-align: middle !important;
  border-bottom: 1px solid #F1F5F9 !important;
  border-top: none !important;
}
.hdnd-work-table tbody tr:hover td {
  background-color: #F8FAFC;
}
.hdnd-table-link {
  color: #1976D2 !important;
  font-weight: 500 !important;
  text-decoration: none !important;
}
.hdnd-table-link:hover {
  color: #1565C0 !important;
  text-decoration: underline !important;
}
.hdnd-badge-warning-soft {
  background-color: #FEF3C7 !important;
  color: #D97706 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: inline-block;
}
.hdnd-badge-info-soft {
  background-color: #E0F2FE !important;
  color: #0284C7 !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: inline-block;
}
.hdnd-badge-purple-soft {
  background-color: #F3E8FF !important;
  color: #7C3AED !important;
  padding: 4px 10px !important;
  border-radius: 9999px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  display: inline-block;
}

/* Quick Access 2x3 Grid */
/* Ý kiến theo lĩnh vực (top 5) */
.hdnd-fields-desc {
  padding: 0 0 12px;
}
.hdnd-field-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hdnd-field-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.hdnd-field-rank {
  flex: 0 0 22px;
  height: 22px;
  border-radius: 6px;
  background: #EAF3FF;
  color: #1976D2;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hdnd-field-name {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: #0F2942;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdnd-field-total {
  flex: 0 0 auto;
  font-size: 13.5px;
  font-weight: 700;
  color: #0F2942;
  font-variant-numeric: tabular-nums;
}
.hdnd-field-bar {
  height: 6px;
  border-radius: 999px;
  background: #F1F5F9;
  overflow: hidden;
  margin-left: 32px;
}
.hdnd-field-bar span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: #1976D2;
}
.hdnd-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 6px 0;
}
.hdnd-quick-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  min-height: 96px;
  text-align: center;
}
.hdnd-quick-item:hover {
  background-color: #FFFFFF;
  border-color: #93C5FD;
  box-shadow: 0 4px 12px rgba(25, 118, 210, 0.08);
  transform: translateY(-2px);
  text-decoration: none !important;
}
.hdnd-quick-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 8px;
}
.hdnd-quick-icon.icon-blue {
  background-color: #EAF3FF;
  color: #1976D2;
}
.hdnd-quick-icon.icon-green {
  background-color: #ECFDF5;
  color: #16A34A;
}
.hdnd-quick-icon.icon-cyan {
  background-color: #E0F2FE;
  color: #0284C7;
}
.hdnd-quick-icon.icon-purple {
  background-color: #F3E8FF;
  color: #7C3AED;
}
.hdnd-quick-icon.icon-emerald {
  background-color: #D1FAE5;
  color: #059669;
}
.hdnd-quick-label {
  font-size: 12px;
  font-weight: 600;
  color: #1E293B;
  line-height: 1.3;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .hdnd-banner-content {
    max-width: 100%;
  }
  .hdnd-banner-art {
    opacity: 0.25;
  }
  .hdnd-quick-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 767px) {
  .hdnd-banner-art {
    display: none;
  }
  .hdnd-donut-layout {
    flex-direction: column;
    text-align: center;
  }
  .hdnd-donut-legend {
    padding-left: 0;
    width: 100%;
  }
  .hdnd-quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ==========================================================================
   Announcements / Bảng tin List (Task 5)
   ========================================================================== */

/* Breadcrumb */
.hdnd-announcements-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 16px;
}
.hdnd-announcements-breadcrumb a {
  color: #0284c7 !important;
  font-weight: 500;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hdnd-announcements-breadcrumb a:hover {
  color: #0369a1 !important;
}
.hdnd-announcements-breadcrumb .breadcrumb-sep {
  color: #94a3b8;
  font-size: 13px;
}
.hdnd-announcements-breadcrumb .breadcrumb-current {
  color: #64748b;
  font-weight: 500;
}

/* Page Header & Action Bar */
.hdnd-announcements-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}
.hdnd-announcements-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hdnd-announcements-header .header-icon-box {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: transparent;
  border: 2px solid #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0f172a;
  font-size: 17px;
}
.hdnd-announcements-header .page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1;
}
.hdnd-announcements-header .btn-add-news {
  background: #1677ff !important;
  color: #ffffff !important;
  border: none;
  border-radius: 8px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(22, 119, 255, 0.2);
}
.hdnd-announcements-header .btn-add-news:hover {
  background: #0958d9 !important;
  box-shadow: 0 4px 10px rgba(22, 119, 255, 0.3);
  transform: translateY(-1px);
}

/* Filter Card */
.hdnd-filter-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 18px 22px;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}
.hdnd-filter-form {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.hdnd-filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.hdnd-filter-group label {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
  margin: 0;
}
.hdnd-filter-group-search {
  flex: 1 1 280px;
  min-width: 260px;
}
.hdnd-filter-group-category {
  width: 140px;
}
.hdnd-filter-group-status {
  width: 130px;
}
.hdnd-filter-group-date {
  width: 190px;
}
.hdnd-filter-group-actions {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  padding-bottom: 1px;
}
.hdnd-input-with-icon {
  position: relative;
}
.hdnd-input-with-icon .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 14px;
  pointer-events: none;
  z-index: 2;
}
.hdnd-input-with-icon input.form-control {
  padding-left: 36px !important;
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background: #ffffff !important;
  box-shadow: none !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.hdnd-input-with-icon input.form-control:focus {
  border-color: #1677ff !important;
  box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.1) !important;
}
.hdnd-filter-card .bootstrap-select > .btn {
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 8px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background: #ffffff !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
}
.btn-filter-search {
  height: 38px;
  background: #1677ff;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(22, 119, 255, 0.2);
}
.btn-filter-search:hover {
  background: #0958d9;
  color: #ffffff;
}
.btn-filter-reset {
  height: 38px;
  background: #ffffff;
  color: #1677ff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0 16px;
  font-size: 13.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-filter-reset:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0958d9;
}

/* Table Announcements Card */
.table-announcements-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

/* Table Head */
.table-announcements thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600 !important;
  font-size: 13px !important;
  border-top: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 14px 12px !important;
  vertical-align: middle !important;
  white-space: nowrap;
}
.table-announcements thead th:first-child {
  border-top-left-radius: 8px;
}
.table-announcements thead th:last-child {
  border-top-right-radius: 8px;
}

/* Table Body */
.table-announcements tbody td {
  padding: 12px !important;
  vertical-align: middle !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: none !important;
  font-size: 13.5px;
  color: #1e293b;
}
.table-announcements tbody tr:hover td {
  background-color: #f8fafc !important;
}

/* Title & Thumbnail */
.announcement-title-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.announcement-thumb {
  width: 52px;
  height: 36px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}
.announcement-title-link {
  color: #1677ff !important;
  font-weight: 600;
  font-size: 13.5px;
  line-height: 1.4;
  text-decoration: none !important;
}
.announcement-title-link:hover {
  color: #0958d9 !important;
  text-decoration: underline !important;
}

/* STT & Author */
.announcement-stt {
  color: #64748b;
  font-weight: 500;
  font-size: 13px;
}
.announcement-author {
  color: #334155;
  font-size: 13px;
}
.announcement-date {
  color: #64748b;
  font-size: 13px;
}

/* Category Pill Badges */
.badge-cat {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.badge-cat-thongbao {
  background: #e0f2fe;
  color: #0284c7;
}
.badge-cat-kehoach {
  background: #f3e8ff;
  color: #9333ea;
}
.badge-cat-ketqua {
  background: #dcfce7;
  color: #16a34a;
}
.badge-cat-huongdan {
  background: #ffedd5;
  color: #ea580c;
}
.badge-cat-hoatdong {
  background: #e0f2fe;
  color: #2563eb;
}
.badge-cat-default {
  background: #f1f5f9;
  color: #475569;
}

/* Status Badges */
.badge-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.badge-status-published {
  background: #dcfce7;
  color: #16a34a;
}
.badge-status-hidden {
  background: #f1f5f9;
  color: #64748b;
}

/* Actions Column */
.announcement-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.btn-action-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  text-decoration: none !important;
  transition: all 0.2s ease;
}
.btn-action-view,
.btn-action-edit {
  color: #1677ff !important;
  border-color: #e2e8f0;
}
.btn-action-view:hover,
.btn-action-edit:hover {
  background: #f0f7ff;
  border-color: #1677ff;
  color: #0958d9 !important;
}
.btn-action-delete {
  color: #ef4444 !important;
  border-color: #fee2e2;
}
.btn-action-delete:hover {
  background: #fef2f2;
  border-color: #ef4444;
  color: #dc2626 !important;
}

/* Checkbox alignment */
.table-announcements .checkbox {
  margin: 0 !important;
  display: inline-block;
}

/* Hide DataTables default controls */
.table-announcements-card .dataTables_filter,
.table-announcements-card .dt-buttons {
  display: none !important;
}

/* DataTables Footer: Info, Length & Pagination */
.table-announcements-card .dataTables_wrapper {
  margin-top: 0;
}
/* DataTables Footer: Info, Length & Pagination */
.table-announcements-card .hdnd-dt-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  margin-top: 18px !important;
  padding-top: 4px !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
}
.table-announcements-card .hdnd-dt-info {
  font-size: 13.5px !important;
  color: #64748b !important;
}
.table-announcements-card .hdnd-dt-info .dataTables_info {
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
  font-size: 13.5px !important;
  color: #64748b !important;
}
.table-announcements-card .hdnd-dt-actions {
  display: flex !important;
  align-items: center !important;
  gap: 16px !important;
  margin-left: auto !important;
}
.table-announcements-card .hdnd-dt-actions .dataTables_length {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.table-announcements-card .hdnd-dt-actions .dataTables_length label {
  margin: 0 !important;
  font-weight: normal !important;
}
.table-announcements-card .hdnd-dt-actions .dataTables_length select {
  height: 34px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0 12px !important;
  font-size: 13px !important;
  color: #1e293b !important;
  background: #ffffff !important;
  cursor: pointer;
  outline: none;
}
.table-announcements-card .hdnd-dt-actions .dataTables_paginate {
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}
.table-announcements-card .pagination {
  margin: 0 !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}
.table-announcements-card .pagination > li > a,
.table-announcements-card .pagination > li > span {
  border-radius: 6px !important;
  margin: 0 !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  min-width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  padding: 0 !important;
  text-align: center !important;
  background-color: #ffffff;
  transition: all 0.15s ease;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.table-announcements-card .pagination > .active > a,
.table-announcements-card .pagination > .active > span {
  background-color: #1677ff !important;
  border-color: #1677ff !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.table-announcements-card .pagination > li > a:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
.table-announcements-card .pagination > .disabled > a,
.table-announcements-card .pagination > .disabled > span {
  color: #cbd5e1 !important;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed;
}




/* ==========================================================================
   Complaints / Đơn thư phản ánh List (Task 6)
   ========================================================================== */

/* Breadcrumb */
.hdnd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: #64748b;
  margin-top: 4px;
  margin-bottom: 16px;
}
.hdnd-breadcrumb a {
  color: #0284c7 !important;
  font-weight: 500;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.hdnd-breadcrumb a:hover {
  color: #0369a1 !important;
}
.hdnd-breadcrumb .breadcrumb-sep {
  color: #94a3b8;
  font-size: 13px;
}
.hdnd-breadcrumb .breadcrumb-current {
  color: #64748b;
  font-weight: 500;
}

/* Page Header & Action Bar */
.hdnd-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.hdnd-page-header .header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}
.hdnd-page-header .header-icon-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1d4ed8;
  font-size: 18px;
  flex-shrink: 0;
}
.hdnd-page-header .header-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hdnd-page-header .page-title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.hdnd-page-header .page-subtitle {
  font-size: 13px;
  color: #64748b;
}
.hdnd-page-header .header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-filter-toggle {
  height: 38px !important;
  background: #ffffff !important;
  color: #475569 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 8px !important;
  padding: 0 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  transition: all 0.2s ease;
}
.btn-filter-toggle:hover,
.btn-filter-toggle:focus {
  background: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* Summary KPI Cards */
.hdnd-summary-wrapper {
  margin-bottom: 20px;
}
@media (max-width: 1199px) {
  .hdnd-summary-wrapper .col-md-3 {
    width: 50% !important;
    float: left !important;
    margin-bottom: 12px !important;
  }
}
@media (max-width: 767px) {
  .hdnd-summary-wrapper .col-md-3 {
    width: 100% !important;
    float: none !important;
  }
}
.hdnd-summary-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease-in-out;
  margin-bottom: 15px;
}
.hdnd-summary-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px -2px rgba(0, 0, 0, 0.07), 0 3px 6px -2px rgba(0, 0, 0, 0.04);
  border-color: #cbd5e1;
}
.hdnd-summary-card.active {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.15), 0 4px 8px -1px rgba(0, 0, 0, 0.06);
}
.hdnd-summary-card.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #3b82f6;
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}
.hdnd-summary-card.status-card-1.active {
  border-color: #f59e0b !important;
  box-shadow: 0 0 0 2px rgba(245, 158, 11, 0.2);
}
.hdnd-summary-card.status-card-1.active::before {
  background: #f59e0b;
}
.hdnd-summary-card.status-card-2.active {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 2px rgba(2, 132, 199, 0.2);
}
.hdnd-summary-card.status-card-2.active::before {
  background: #0284c7;
}
.hdnd-summary-card.status-card-5.active {
  border-color: #16a34a !important;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
.hdnd-summary-card.status-card-5.active::before {
  background: #16a34a;
}
.hdnd-summary-card .kpi-icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}
.hdnd-summary-card .kpi-content {
  flex: 1;
  min-width: 0;
}
.hdnd-summary-card .kpi-count {
  font-size: 22px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.hdnd-summary-card .kpi-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hdnd-summary-card .kpi-pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.hdnd-summary-card .kpi-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  display: inline-block;
}

/* Filter Box Card */
.complaints-filter-card,
.tickets-filter-card,
.hdnd-adv-filter {
  border-radius: 12px !important;
  margin-bottom: 20px;
}
.complaints-filter-card .panel-body,
.tickets-filter-card .panel-body,
.hdnd-adv-filter .panel-body {
  padding: 18px 22px !important;
}
.complaints-filter-card .filter-header,
.tickets-filter-card .filter-header,
.hdnd-adv-filter .filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
}
.complaints-filter-card .filter-header-title,
.complaints-filter-card .filter-title,
.tickets-filter-card .filter-header-title,
.hdnd-adv-filter .filter-header-title,
.tickets-filter-card .filter-title,
.hdnd-adv-filter .filter-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
}
.complaints-filter-card .filter-header-title i,
.complaints-filter-card .filter-title i,
.tickets-filter-card .filter-header-title i,
.hdnd-adv-filter .filter-header-title i,
.tickets-filter-card .filter-title i,
.hdnd-adv-filter .filter-title i {
  color: #3b82f6;
  font-size: 16px;
}
.complaints-filter-card .btn-filter-reset,
.tickets-filter-card .btn-filter-reset,
.hdnd-adv-filter .btn-filter-reset {
  height: 32px;
  background: #ffffff;
  color: #64748b;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  cursor: pointer;
}
.complaints-filter-card .btn-filter-reset:hover,
.tickets-filter-card .btn-filter-reset:hover,
.hdnd-adv-filter .btn-filter-reset:hover {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}
.complaints-filter-card .form-group,
.tickets-filter-card .form-group,
.hdnd-adv-filter .form-group {
  margin-bottom: 10px;
}
.complaints-filter-card label.control-label,
.tickets-filter-card label.control-label,
.hdnd-adv-filter label.control-label {
  font-size: 12.5px;
  font-weight: 500;
  color: #475569;
  margin-bottom: 6px;
  display: block;
}
.complaints-filter-card .bootstrap-select > .btn,
.tickets-filter-card .bootstrap-select > .btn,
.hdnd-adv-filter .bootstrap-select > .btn {
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background: #ffffff !important;
  padding: 8px 12px !important;
  box-shadow: none !important;
}
.complaints-filter-card .bootstrap-select > .btn:hover,
.complaints-filter-card .bootstrap-select > .btn:focus,
.tickets-filter-card .bootstrap-select > .btn:hover,
.hdnd-adv-filter .bootstrap-select > .btn:hover,
.tickets-filter-card .bootstrap-select > .btn:focus,
.hdnd-adv-filter .bootstrap-select > .btn:focus {
  border-color: #3b82f6 !important;
  outline: none !important;
}
.complaints-filter-card .input-group.date,
.tickets-filter-card .input-group.date,
.hdnd-adv-filter .input-group.date {
  width: 100%;
}
.complaints-filter-card .input-group.date input.form-control,
.tickets-filter-card .input-group.date input.form-control,
.hdnd-adv-filter .input-group.date input.form-control {
  border-top-right-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  height: 38px !important;
  border: 1px solid #cbd5e1 !important;
  border-right: none !important;
}
.complaints-filter-card .input-group.date .input-group-addon,
.tickets-filter-card .input-group.date .input-group-addon,
.hdnd-adv-filter .input-group.date .input-group-addon {
  background-color: #f8fafc;
  border: 1px solid #cbd5e1;
  border-left: none;
  border-top-right-radius: 6px;
  border-bottom-right-radius: 6px;
  color: #64748b;
  padding: 6px 12px;
}

/* Complaints & Tickets Table Card */
.complaints-table-card,
.tickets-table-card {
  border-radius: 12px !important;
  margin-bottom: 24px;
}
.complaints-table-card .panel-body,
.tickets-table-card .panel-body {
  padding: 20px 24px !important;
}
.complaints-table-responsive,
.tickets-table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* DataTable Customization for Complaints & Tickets */
.complaints-table,
.table-tickets,
.tickets-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin-top: 8px !important;
  margin-bottom: 16px !important;
}
.complaints-table thead th,
.table-tickets thead th,
.tickets-table thead th {
  background-color: #F8FAFC !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  padding: 13px 14px !important;
  border-top: none !important;
  border-bottom: 1px solid #E2E8F0 !important;
  white-space: nowrap;
  vertical-align: middle !important;
}
.complaints-table thead th:first-child,
.table-tickets thead th:first-child,
.tickets-table thead th:first-child {
  border-top-left-radius: 8px;
}
.complaints-table thead th:last-child,
.table-tickets thead th:last-child,
.tickets-table thead th:last-child {
  border-top-right-radius: 8px;
}
.complaints-table tbody td,
.table-tickets tbody td,
.tickets-table tbody td {
  padding: 12px 14px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  border-top: 1px solid #f1f5f9 !important;
  border-bottom: none !important;
  vertical-align: middle !important;
}
.complaints-table tbody tr:hover td,
.table-tickets tbody tr:hover td,
.tickets-table tbody tr:hover td {
  background-color: #F8FAFC !important;
}

/* Submitter & Subject Links */
.complaints-table a.valign,
.table-tickets a.valign,
.tickets-table a.valign {
  color: #1677ff !important;
  font-weight: 500;
  text-decoration: none !important;
  line-height: 1.4;
  display: inline-block;
}
.complaints-table a.valign:hover,
.table-tickets a.valign:hover,
.tickets-table a.valign:hover {
  color: #0958d9 !important;
  text-decoration: underline !important;
}

/* Row options */
.complaints-table .row-options,
.table-tickets .row-options,
.tickets-table .row-options {
  font-size: 12px;
  padding-top: 4px;
  color: #94a3b8;
}
.complaints-table .row-options a,
.table-tickets .row-options a,
.tickets-table .row-options a {
  color: #1677ff !important;
  font-weight: 500;
  text-decoration: none !important;
}
.complaints-table .row-options a:hover,
.table-tickets .row-options a:hover,
.tickets-table .row-options a:hover {
  text-decoration: underline !important;
}
.complaints-table .row-options a._delete,
.table-tickets .row-options a._delete,
.tickets-table .row-options a._delete {
  color: #ef4444 !important;
}
.complaints-table .row-options a._delete:hover,
.table-tickets .row-options a._delete:hover,
.tickets-table .row-options a._delete:hover {
  color: #dc2626 !important;
}

/* Status Badges */
.complaints-table .label,
.table-tickets .label,
.tickets-table .label {
  padding: 5px 12px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}
.complaints-table .label::before,
.table-tickets .label::before,
.tickets-table .label::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}
/* Status 1: Đang xử lý / Vừa tiếp nhận */
.complaints-table .label[style*="#ff9f0a"],
.complaints-table .label[style*="rgb(255, 159, 10)"],
.complaints-table .label[style*="#f59e0b"],
.table-tickets .label[style*="#ff9f0a"],
.table-tickets .label[style*="rgb(255, 159, 10)"],
.table-tickets .label[style*="#f59e0b"],
.tickets-table .label[style*="#ff9f0a"],
.tickets-table .label[style*="rgb(255, 159, 10)"],
.tickets-table .label[style*="#f59e0b"] {
  background-color: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #d97706 !important;
}
/* Status 2: Đã xử lý / Đã chuyển */
.complaints-table .label[style*="#007aff"],
.complaints-table .label[style*="rgb(0, 122, 255)"],
.complaints-table .label[style*="#0284c7"],
.table-tickets .label[style*="#007aff"],
.table-tickets .label[style*="rgb(0, 122, 255)"],
.table-tickets .label[style*="#0284c7"],
.tickets-table .label[style*="#007aff"],
.tickets-table .label[style*="rgb(0, 122, 255)"],
.tickets-table .label[style*="#0284c7"] {
  background-color: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #0284c7 !important;
}
/* Status 5: Đã phản hồi / Đã trả lời */
.complaints-table .label[style*="#f40303"],
.complaints-table .label[style*="rgb(244, 3, 3)"],
.complaints-table .label[style*="#16a34a"],
.table-tickets .label[style*="#f40303"],
.table-tickets .label[style*="rgb(244, 3, 3)"],
.table-tickets .label[style*="#16a34a"],
.tickets-table .label[style*="#f40303"],
.tickets-table .label[style*="rgb(244, 3, 3)"],
.tickets-table .label[style*="#16a34a"] {
  background-color: #f0fdf4 !important;
  border: 1px solid #bbf7d0 !important;
  color: #16a34a !important;
}

/* DataTable Length & Pagination */
.complaints-table-card .dataTables_info,
.tickets-table-card .dataTables_info {
  font-size: 13.5px !important;
  color: #64748b !important;
  padding-top: 12px !important;
}
.complaints-table-card .dataTables_paginate,
.tickets-table-card .dataTables_paginate {
  padding-top: 8px !important;
}
.complaints-table-card .pagination > li > a,
.complaints-table-card .pagination > li > span,
.tickets-table-card .pagination > li > a,
.tickets-table-card .pagination > li > span {
  border-radius: 6px !important;
  margin: 0 2px !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  min-width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  padding: 0 !important;
  text-align: center !important;
  background-color: #ffffff;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease;
}
.complaints-table-card .pagination > .active > a,
.complaints-table-card .pagination > .active > span,
.tickets-table-card .pagination > .active > a,
.tickets-table-card .pagination > .active > span {
  background-color: #1677ff !important;
  border-color: #1677ff !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}
.complaints-table-card .pagination > li > a:hover,
.tickets-table-card .pagination > li > a:hover {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
}
.complaints-table-card .pagination > .disabled > a,
.complaints-table-card .pagination > .disabled > span,
.tickets-table-card .pagination > .disabled > a,
.tickets-table-card .pagination > .disabled > span {
  color: #cbd5e1 !important;
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  cursor: not-allowed;
}


/* ==========================================================================
   HDND SESSIONS & VOTING MODULE REFINEMENTS
   ========================================================================== */

/* Breadcrumb extra touches */
.hdnd-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #64748b;
  margin-bottom: 12px;
}
.hdnd-breadcrumb a {
  color: #1976d2;
  text-decoration: none;
  font-weight: 500;
}
.hdnd-breadcrumb a:hover {
  color: #1565c0;
}
.hdnd-breadcrumb .breadcrumb-sep {
  color: #cbd5e1;
}
.hdnd-breadcrumb .breadcrumb-current {
  color: #1e293b;
  font-weight: 600;
}

/* Page Header extra touches */
.hdnd-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 12px;
}
.hdnd-page-header .header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hdnd-page-header .header-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eaf3ff;
  color: #1976d2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.hdnd-page-header .header-title-wrap .page-title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.25;
}
.hdnd-page-header .header-title-wrap .page-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
  display: block;
}
.btn-hdnd-primary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 18px !important;
  background-color: #1976d2 !important;
  color: #ffffff !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(25, 118, 210, 0.2) !important;
  transition: all 0.2s ease !important;
}
.btn-hdnd-primary:hover,
.btn-hdnd-primary:focus {
  background-color: #1565c0 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(25, 118, 210, 0.3) !important;
  text-decoration: none !important;
}

/* Card Wrappers */
.sessions-table-card,
.voting-table-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
.sessions-table-card .panel-body,
.voting-table-card .panel-body {
  padding: 20px 24px !important;
}

/* Data Tables Styling for Sessions & Voting */
.hdnd-table.sessions-table,
.hdnd-table.voting-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin-bottom: 16px !important;
}
.hdnd-table.sessions-table thead th,
.hdnd-table.voting-table thead th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  border-top: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;
}
.hdnd-table.sessions-table tbody td,
.hdnd-table.voting-table tbody td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  border-top: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.hdnd-table.sessions-table tbody tr:hover,
.hdnd-table.voting-table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Links inside tables */
.session-link-title,
.voting-link-title {
  color: #1976d2 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
  line-height: 1.4 !important;
  display: inline-block !important;
}
.session-link-title:hover,
.voting-link-title:hover {
  color: #1565c0 !important;
  text-decoration: underline !important;
}

/* Live & QR badges */
.session-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #16a34a;
  border: 1px solid #a7f3d0;
  border-radius: 20px;
  padding: 2px 8px;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 4px;
}
.session-live-tag .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
  display: inline-block;
  box-shadow: 0 0 0 2px rgba(22, 163, 74, 0.2);
}
.session-qr-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #0284c7 !important;
  font-weight: 500;
  margin-top: 4px;
  text-decoration: none !important;
}
.session-qr-badge:hover {
  color: #0369a1 !important;
  text-decoration: underline !important;
}

/* Codes & IDs */
.font-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
}
.hdnd-code-badge {
  display: inline-block;
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  letter-spacing: 0.02em;
}

/* Session Status Pills */
.hdnd-status-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 10px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  border-radius: 20px !important;
  line-height: 1.4 !important;
  text-transform: none !important;
}
.hdnd-status-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: currentColor;
}
.hdnd-status-pill.label-success {
  background-color: #ecfdf5 !important;
  border: 1px solid #a7f3d0 !important;
  color: #16a34a !important;
}
.hdnd-status-pill.label-info {
  background-color: #eff6ff !important;
  border: 1px solid #bfdbfe !important;
  color: #0284c7 !important;
}
.hdnd-status-pill.label-default {
  background-color: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
}
.hdnd-status-pill.label-warning {
  background-color: #fffbeb !important;
  border: 1px solid #fde68a !important;
  color: #d97706 !important;
}
.hdnd-status-pill.label-danger {
  background-color: #fef2f2 !important;
  border: 1px solid #fecaca !important;
  color: #dc2626 !important;
}

/* Action Icon Buttons Group */
.hdnd-action-btn-group {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}
.btn-table-action {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 13.5px !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
  border: 1px solid transparent !important;
}
.btn-table-action:hover {
  text-decoration: none !important;
  transform: translateY(-1px);
}
.btn-table-action.action-amber {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
  color: #d97706 !important;
}
.btn-table-action.action-amber:hover {
  background-color: #fde68a !important;
  color: #b45309 !important;
}
.btn-table-action.action-cyan {
  background-color: #f0fdf4 !important;
  border-color: #bbf7d0 !important;
  color: #16a34a !important;
}
.btn-table-action.action-cyan:hover {
  background-color: #dcfce7 !important;
  color: #15803d !important;
}
.btn-table-action.action-slate {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}
.btn-table-action.action-slate:hover {
  background-color: #e2e8f0 !important;
  color: #1e293b !important;
}
.btn-table-action.action-purple {
  background-color: #f5f3ff !important;
  border-color: #ddd6fe !important;
  color: #7c3aed !important;
}
.btn-table-action.action-purple:hover {
  background-color: #ede9fe !important;
  color: #6d28d9 !important;
}
.btn-table-action.action-red {
  background-color: #fef2f2 !important;
  border-color: #fecaca !important;
  color: #dc2626 !important;
}
.btn-table-action.action-red:hover {
  background-color: #fee2e2 !important;
  color: #b91c1c !important;
}
.btn-table-action.action-emerald {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #059669 !important;
}
.btn-table-action.action-emerald:hover {
  background-color: #d1fae5 !important;
  color: #047857 !important;
}
.btn-table-action.action-blue {
  background-color: #eff6ff !important;
  border-color: #bfdbfe !important;
  color: #1976d2 !important;
}
.btn-table-action.action-blue:hover {
  background-color: #dbeafe !important;
  color: #1565c0 !important;
}

/* Voting Toolbar */
.voting-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.bulk-action-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.bulk-count-badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
  padding: 7px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
}
.bulk-count-badge #selected-count {
  font-weight: 700;
  color: #1976d2;
  margin-right: 3px;
}
.voting-toolbar .bootstrap-select {
  width: 220px !important;
}
.voting-toolbar .bootstrap-select .btn {
  height: 38px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 13px !important;
  color: #334155 !important;
  background: #ffffff !important;
}
.btn-apply-action {
  height: 38px !important;
  padding: 0 16px !important;
  background-color: #1976d2 !important;
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: none !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}
.btn-apply-action:hover:not(:disabled) {
  background-color: #1565c0 !important;
  color: #ffffff !important;
}
.btn-apply-action:disabled {
  background-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  cursor: not-allowed !important;
}
.voting-search-wrap {
  width: 280px;
}
.search-input-group .input-group-addon {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-right: none !important;
  border-radius: 6px 0 0 6px !important;
  color: #94a3b8 !important;
}
.search-input-group .form-control {
  border-left: none !important;
  border-radius: 0 6px 6px 0 !important;
  height: 38px !important;
}

/* Reminded status tag */
.reminded-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: #eff6ff;
  border: 1px solid #bfdbfe;
  color: #0284c7;
  font-size: 11px;
  font-weight: 500;
  padding: 2px 7px;
  border-radius: 12px;
  margin-top: 4px;
}

/* Modern iOS Toggle Switch */
.onoffswitch {
  position: relative;
  width: 44px !important;
  height: 24px !important;
  display: inline-block;
  user-select: none;
}
.onoffswitch-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.onoffswitch-label {
  display: block !important;
  overflow: hidden !important;
  cursor: pointer !important;
  height: 24px !important;
  padding: 0 !important;
  line-height: 24px !important;
  border: none !important;
  border-radius: 24px !important;
  background-color: #cbd5e1 !important;
  transition: background-color 0.2s ease !important;
  margin-bottom: 0 !important;
}
.onoffswitch-checkbox:checked + .onoffswitch-label {
  background-color: #1976d2 !important;
}
.onoffswitch-inner {
  display: none !important;
}
.onoffswitch-switch {
  display: block !important;
  width: 18px !important;
  height: 18px !important;
  margin: 3px !important;
  background: #ffffff !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.onoffswitch-checkbox:checked + .onoffswitch-label .onoffswitch-switch {
  left: 20px !important;
}

/* DataTables Global Controls inside card */
.sessions-table-card .dataTables_wrapper,
.voting-table-card .dataTables_wrapper {
  padding: 0 !important;
}
.sessions-table-card .dataTables_length,
.voting-table-card .dataTables_length {
  margin-bottom: 14px !important;
  color: #64748b !important;
  font-size: 13px !important;
}
.sessions-table-card .dataTables_length select,
.voting-table-card .dataTables_length select {
  height: 32px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 2px 8px !important;
  color: #334155 !important;
}
.sessions-table-card .dataTables_filter,
.voting-table-card .dataTables_filter {
  margin-bottom: 14px !important;
  color: #64748b !important;
  font-size: 13px !important;
}
.sessions-table-card .dataTables_filter input,
.voting-table-card .dataTables_filter input {
  height: 34px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
}
.sessions-table-card .dataTables_info,
.voting-table-card .dataTables_info {
  font-size: 13px !important;
  color: #64748b !important;
  padding-top: 14px !important;
}
.sessions-table-card .dataTables_paginate,
.voting-table-card .dataTables_paginate {
  padding-top: 10px !important;
}
.sessions-table-card .pagination > li > a,
.sessions-table-card .pagination > li > span,
.voting-table-card .pagination > li > a,
.voting-table-card .pagination > li > span {
  border-radius: 6px !important;
  margin: 0 2px !important;
  border: 1px solid #e2e8f0 !important;
  color: #334155 !important;
  font-size: 13px !important;
  min-width: 32px !important;
  height: 32px !important;
  line-height: 30px !important;
  padding: 0 !important;
  text-align: center !important;
  background-color: #ffffff;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: all 0.15s ease;
}
.sessions-table-card .pagination > .active > a,
.sessions-table-card .pagination > .active > span,
.voting-table-card .pagination > .active > a,
.voting-table-card .pagination > .active > span {
  background-color: #1976d2 !important;
  border-color: #1976d2 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Modals */
.hdnd-modal {
  border-radius: 12px !important;
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
  overflow: hidden;
}
.hdnd-modal .modal-header {
  background: #ffffff !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 16px 20px !important;
}
.hdnd-modal .modal-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  color: #1e293b !important;
}
.hdnd-modal .modal-body {
  padding: 20px !important;
}
.hdnd-modal .modal-footer {
  background: #f8fafc !important;
  border-top: 1px solid #e2e8f0 !important;
  padding: 14px 20px !important;
}


/* ==========================================================================
   HDND DOCUMENT & OPINIONS MODULE REFINEMENTS
   ========================================================================== */

/* Secondary Button (Ghost/Outline style) */
.btn-hdnd-secondary {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 38px !important;
  padding: 0 16px !important;
  background-color: #ffffff !important;
  color: #334155 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 6px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
  transition: all 0.2s ease !important;
}
.btn-hdnd-secondary:hover,
.btn-hdnd-secondary:focus {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  text-decoration: none !important;
}

/* Document & Opinions Card Wrappers */
.document-table-card,
.opinions-table-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 10px !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}
.document-table-card .panel-body,
.opinions-table-card .panel-body {
  padding: 20px 24px !important;
}
.document-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.document-toolbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.btn-hdnd-disabled {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #94a3b8 !important;
}
.document-toolbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  flex: 1;
  max-width: 680px;
}
.document-toolbar-right .bootstrap-select .btn {
  height: 38px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 13px !important;
  color: #334155 !important;
  background: #ffffff !important;
}
.document-search-group {
  width: 100%;
}

/* Document & Opinions Tables */
.hdnd-table.document-table,
.hdnd-table.opinions-table {
  border-collapse: separate !important;
  border-spacing: 0 !important;
  width: 100% !important;
  margin-bottom: 16px !important;
}
.hdnd-table.document-table thead th,
.hdnd-table.opinions-table thead th {
  background-color: #f8fafc !important;
  color: #475569 !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  border-top: none !important;
  border-bottom: 1px solid #e2e8f0 !important;
  padding: 12px 14px !important;
  vertical-align: middle !important;
}
.hdnd-table.document-table tbody td,
.hdnd-table.opinions-table tbody td {
  padding: 12px 14px !important;
  vertical-align: middle !important;
  font-size: 13.5px !important;
  color: #334155 !important;
  border-top: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
}
.hdnd-table.document-table tbody tr:hover,
.hdnd-table.opinions-table tbody tr:hover {
  background-color: #f8fafc !important;
}

/* Folder Item Styling */
.folder-item-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.folder-icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.folder-item-wrap:hover .folder-icon-link {
  transform: scale(1.05);
}
.folder-svg-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background-color: #eaf3ff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.folder-item-wrap:hover .folder-svg-box {
  transform: scale(1.05);
  background-color: #dbeafe;
}
.folder-title-link {
  color: #1e293b !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}
.folder-title-link:hover {
  color: #1976d2 !important;
  text-decoration: underline !important;
}

/* Opinions Toolbar & Filters */
.opinions-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}
.opinions-filters-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.opinions-filters-wrap .filter-item {
  display: flex;
  align-items: center;
  gap: 8px;
}
.opinions-filters-wrap .filter-item label {
  margin-bottom: 0;
  white-space: nowrap;
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}
.opinions-filters-wrap .filter-select-wrap {
  width: 140px;
}
.opinions-filters-wrap .filter-select-wrap .bootstrap-select .btn {
  height: 38px !important;
  border-radius: 6px !important;
  border: 1px solid #cbd5e1 !important;
  font-size: 13px !important;
  color: #334155 !important;
  background: #ffffff !important;
}
.btn-filter-reset {
  height: 38px !important;
  padding: 0 14px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border-radius: 6px !important;
  border: 1px solid #e2e8f0 !important;
  color: #64748b !important;
  font-size: 13px !important;
  background: #ffffff !important;
  transition: all 0.15s ease !important;
}
.btn-filter-reset:hover {
  background: #f1f5f9 !important;
  color: #1e293b !important;
}

/* Opinion Title & Date Cells */
.opinion-link-title {
  color: #1976d2 !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  text-decoration: none !important;
  line-height: 1.4 !important;
  display: inline-block !important;
}
.opinion-link-title:hover {
  color: #1565c0 !important;
  text-decoration: underline !important;
}
.opinion-time-cell {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
}
.opinion-time-cell .time-item {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.opinion-time-cell .time-item:not(:last-child) {
  margin-bottom: 3px;
}

/* DataTables Action Buttons in HDND */
.dt-buttons .dt-button,
.dt-buttons .buttons-html5,
.dt-buttons .buttons-print {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 34px !important;
  padding: 0 14px !important;
  background-color: #ffffff !important;
  color: #475569 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  margin-bottom: 12px !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
}
.dt-buttons .dt-button:hover {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  border-color: #94a3b8 !important;
}

/* ==========================================================================
   DataTables toolbar — đồng bộ ô số dòng/trang + nút Xuất ra file / Điều chỉnh hàng loạt / Tải lại
   ========================================================================== */
.dataTables_wrapper .dataTables_length {
  display: inline-block;
  vertical-align: middle;
  margin-right: 8px;
}
.dataTables_wrapper .dataTables_length label {
  margin: 0;
}
.dataTables_wrapper .dataTables_length select.form-control {
  height: 38px !important;
  min-width: 112px;
  padding: 0 12px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  font-size: 13.5px !important;
  color: #1e293b !important;
  background-color: #ffffff !important;
  box-shadow: none !important;
}
.dataTables_wrapper .dataTables_length select.form-control:focus {
  border-color: #3b82f6 !important;
}
.dataTables_wrapper .dt-buttons.btn-group {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  float: none !important;
  vertical-align: middle;
}
.dataTables_wrapper .dt-buttons.btn-group > .btn.btn-default-dt-options {
  float: none !important;
  margin: 0 !important;
  height: 38px;
  padding: 0 14px !important;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 13px !important;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.dataTables_wrapper .dt-buttons.btn-group > .btn.btn-default-dt-options i {
  color: #1976d2;
  font-size: 14px;
}
.dataTables_wrapper .dt-buttons.btn-group > .btn.btn-default-dt-options:hover,
.dataTables_wrapper .dt-buttons.btn-group > .btn.btn-default-dt-options:focus {
  background: #eff6ff !important;
  border-color: #1976d2 !important;
  color: #1976d2 !important;
}
.dataTables_wrapper .dt-buttons.btn-group > .btn.btn-dt-reload {
  width: 38px;
  padding: 0 !important;
  justify-content: center;
}
.dataTables_wrapper .dt-buttons.btn-group > .btn.btn-dt-reload i {
  color: #64748b;
}

/* ==========================================================================
   Nút thao tác trong bảng — chuẩn chung toàn hệ thống
   Nền trắng, viền xám, icon giữ màu theo ý nghĩa; hover: viền theo màu icon.
   Áp dụng cho: .btn-table-action, .btn-action-icon, nút icon_btn (.btn-icon) trong bảng.
   ========================================================================== */
body .btn-table-action[class],
body .btn-action-icon[class],
body table .btn.btn-icon[class] {
  width: 32px !important;
  height: 32px !important;
  padding: 0 !important;
  margin: 0 2px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 14px !important;
  line-height: 1 !important;
  text-decoration: none !important;
  transform: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}
body .btn-table-action[class]:hover,
body .btn-table-action[class]:focus,
body .btn-action-icon[class]:hover,
body .btn-action-icon[class]:focus,
body table .btn.btn-icon[class]:hover,
body table .btn.btn-icon[class]:focus {
  background: #f8fafc !important;
  border-color: currentColor !important;
  transform: none !important;
}
body .btn-table-action[class] i,
body .btn-action-icon[class] i,
body table .btn.btn-icon[class] i {
  color: inherit !important;
}
.hdnd-action-btn-group .btn-table-action[class] {
  margin: 0 !important;
}

/* Màu icon theo ý nghĩa */
body .btn-table-action.action-blue,
body .btn-action-icon.btn-action-view,
body .btn-action-icon.btn-action-edit,
body table .btn.btn-icon.btn-default,
body table .btn.btn-icon.btn-primary { color: #1976d2 !important; }

body .btn-table-action.action-slate { color: #475569 !important; }
body .btn-table-action.action-amber,
body table .btn.btn-icon.btn-warning { color: #d97706 !important; }
body .btn-table-action.action-cyan,
body .btn-table-action.action-emerald,
body table .btn.btn-icon.btn-success { color: #16a34a !important; }
body table .btn.btn-icon.btn-info { color: #0891b2 !important; }
body .btn-table-action.action-purple { color: #7c3aed !important; }
body .btn-table-action.action-red,
body .btn-action-icon.btn-action-delete,
body table .btn.btn-icon.btn-danger { color: #dc2626 !important; }

/* Nhóm nút thao tác: không xuống dòng, menu "Thêm thao tác" */
.hdnd-action-btn-group > .dropdown {
  display: inline-block;
}
.hdnd-action-btn-group .btn-icon.is-active {
  background: #eaf3ff !important;
  border-color: #93c5fd !important;
}
.forum-more-menu {
  min-width: 190px;
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
}
.forum-more-menu > li > a {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 8px 14px !important;
  font-size: 13.5px;
  color: #1e293b;
}
.forum-more-menu > li > a > i {
  width: 16px;
  text-align: center;
  color: #64748b;
}
@media (min-width: 992px) {
  .forum-table-wrap.table-responsive {
    overflow: visible;
  }
}

/* Ô chứa nút thao tác: giữ các nút trên một dòng */
table tbody td:has(> .btn-icon),
table tbody td:has(> .btn-table-action),
table tbody td:has(> .btn-action-icon),
table tbody td:has(> .hdnd-action-btn-group),
table tbody td:last-child:has(.btn, .btn-table-action, .btn-action-icon, .vc-row-action) {
  white-space: nowrap;
}
table tbody td:last-child .hdnd-action-btn-group,
table tbody td:last-child .btn-group,
table tbody td:last-child .vc-row-actions,
table tbody td:last-child .announcement-actions {
  flex-wrap: nowrap !important;
  white-space: nowrap;
}

/* Thẻ thống kê Kiến nghị / Đơn thư — tối giản: chỉ nhãn + số, số mang màu trạng thái */
.hdnd-summary-card {
  padding: 14px 18px !important;
  box-shadow: none !important;
}
.hdnd-summary-card:hover {
  transform: none !important;
  box-shadow: none !important;
  border-color: #cbd5e1;
}
.hdnd-summary-card.active,
.hdnd-summary-card[class*="status-card-"].active {
  border-color: #1976d2 !important;
  box-shadow: 0 0 0 1px #1976d2 !important;
}
.hdnd-summary-card.active::before {
  display: none !important;
}
.hdnd-summary-card .kpi-label {
  margin: 0 0 4px !important;
  font-size: 13.5px !important;
}
.hdnd-summary-card .kpi-count {
  font-size: 26px !important;
}
