* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #1e40af;
  --primary-light: #3b82f6;
  --accent-blue: #0ea5e9;
  --success-green: #22c55e;
  --danger-red: #ef4444;
  --warning-orange: #f97316;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e2e8f0;
  --text-primary: #1e293b;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --highlight-bg: #eff6ff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

html, body {
  height: 100%;
  width: 100%;
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-light);
}

.d-flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-grow-1 { flex-grow: 1; }
.align-items-center { align-items: center; }
.align-items-start { align-items: flex-start; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }
.hidden { display: none !important; }

.header-panel {
  background: var(--bg-white);
  border-bottom: 1px solid var(--border-color);
}

.header-container {
  width: 100%;
}

.logo-panel {
  padding: 12px 20px;
  min-width: 100px;
  flex-direction: column;
  align-items: center;
}

.logo-panel a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.logo-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-blue);
  margin-top: 4px;
}

.nav-wrapper {
  display: flex;
  flex-direction: column;
}

.nav-top {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
}

.top-search {
  position: relative;
  min-width: 200px;
}

.top-search input {
  width: 100%;
  padding: 8px 16px 8px 36px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  background: var(--bg-white);
}

.top-search input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.top-search .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 14px;
}

.nav-right-links {
  gap: 16px;
}

.module-switcher {
  position: relative;
}

.module-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--primary-blue);
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.module-btn:hover {
  background: #1e3a8a;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 4px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  min-width: 180px;
  display: none;
  z-index: 1000;
}

.dropdown-menu.show {
  display: block;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
}

.dropdown-menu a:hover {
  background: var(--bg-light);
}

.lang-selector {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
}

.lang-btn img {
  width: 18px;
  border-radius: 2px;
}

.top-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 16px;
  border-radius: 50%;
  transition: all 0.2s;
}

.top-link:hover {
  background: var(--bg-light);
  color: var(--primary-blue);
}

.notification-link {
  position: relative;
}

.notification-count {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--danger-red);
  color: white;
  font-size: 9px;
  min-width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
}

.user-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.profile-avatar img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}

.settings-dropdown {
  position: absolute;
  top: 50px;
  right: 100px;
}

.dropdown-header {
  padding: 10px 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--border-color);
  font-size: 13px;
}

.dropdown-item {
  display: block;
  padding: 8px 16px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 13px;
}

.dropdown-item:hover {
  background: var(--bg-light);
}

.dropdown-item.section-label {
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  cursor: default;
  pointer-events: none;
  margin-top: 4px;
  border-top: 1px solid #eee;
  padding-top: 10px;
}

.dropdown-item.section-label:first-child {
  border-top: none;
  margin-top: 0;
  padding-top: 8px;
}

.dropdown-item.sub-item {
  padding-left: 28px;
  font-size: 12px;
  color: var(--text-secondary);
}

.dropdown-item.sub-item.active {
  color: var(--primary-blue);
  font-weight: 500;
}

.top-right-logo {
  margin-left: 16px;
  padding-left: 16px;
  border-left: 1px solid var(--border-color);
}

.brand-g { font-size: 16px; font-weight: 700; color: var(--danger-red); }
.brand-text { font-size: 14px; font-weight: 600; color: var(--primary-blue); }
.brand-pay { font-size: 14px; font-weight: 600; color: var(--danger-red); }
.brand-hr { font-size: 14px; font-weight: 600; color: var(--primary-blue); }

.nav-bottom {
  padding: 0 20px;
}

.navbar {
  width: 100%;
}

.navbar-nav {
  list-style: none;
  gap: 4px;
}

.nav-item .nav-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s;
}

.nav-item .nav-link:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.nav-item .nav-link.active {
  color: var(--primary-blue);
}

.nav-item .nav-link i {
  font-size: 14px;
}

.nav-has-dropdown {
  position: relative;
}

.nav-dd-trigger {
  cursor: pointer;
}

.nav-dd-arrow {
  font-size: 10px !important;
  margin-left: 2px;
  transition: transform 0.2s;
}

.nav-has-dropdown.open .nav-dd-arrow {
  transform: rotate(180deg);
}

.nav-dd-active > .nav-dd-trigger {
  color: var(--primary-blue) !important;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  min-width: 200px;
  z-index: 500;
  overflow: hidden;
  padding: 4px 0;
}

.nav-has-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dd-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.nav-dd-item:hover {
  background: var(--bg-light);
  color: var(--text-primary);
}

.nav-dd-item.active {
  color: var(--primary-blue);
  font-weight: 500;
}

.nav-dd-item i {
  width: 16px;
  text-align: center;
  font-size: 13px;
}

.nav-dd-section-label {
  padding: 8px 16px 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-top: 1px solid #eee;
  margin-top: 4px;
}

.nav-dd-section-label:first-child {
  border-top: none;
  margin-top: 0;
}

section {
  flex: 1;
  display: flex;
}

.main-container {
  width: 100%;
  min-height: calc(100vh - 110px);
}

.left-panel {
  width: 200px;
  background: var(--bg-white);
  border-right: 1px solid var(--border-color);
  position: relative;
  flex-shrink: 0;
}

.left-panel.collapsed {
  width: 24px;
}

.left-panel.collapsed .left-main-nav-panel {
  display: none;
}

.left-panel.collapsed .collapse-arrow-icon i {
  transform: rotate(180deg);
}

.left-main-nav-panel {
  padding: 0;
}

.accordion-item {
  border-bottom: 1px solid var(--border-color);
}

.accordion-button {
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary-blue);
  cursor: pointer;
}

.accordion-body {
  padding: 0 16px 14px;
}

.filter-option {
  padding: 8px 12px;
  font-size: 13px;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: 4px;
}

.filter-option:hover {
  background: var(--bg-light);
}

.filter-option.selected {
  background: var(--highlight-bg);
  color: var(--primary-blue);
}

.collapse-arrow-icon {
  position: absolute;
  right: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 48px;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-left: none;
  border-radius: 0 6px 6px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}

.collapse-arrow-icon i {
  font-size: 10px;
  color: var(--text-muted);
  transition: transform 0.2s;
}

.right-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-white);
}

.page-title {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color);
}

.breadcrumb-links {
  list-style: none;
  gap: 8px;
  font-size: 13px;
}

.breadcrumb-links li {
  color: var(--text-secondary);
}

.breadcrumb-links li::after {
  content: '/';
  margin-left: 8px;
  color: var(--text-muted);
}

.breadcrumb-links li:last-child::after {
  display: none;
}

.breadcrumb-links li:last-child {
  color: var(--text-primary);
}

.breadcrumb-links a {
  color: var(--text-secondary);
  text-decoration: none;
}

.breadcrumb-links a:hover {
  color: var(--primary-blue);
}

.btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--primary-blue);
  color: white;
}

.btn-primary:hover {
  background: #1e3a8a;
}

.btn-success {
  background: var(--success-green);
  color: white;
}

.btn-success:hover {
  background: #16a34a;
}

.btn-outline {
  background: var(--bg-white);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.btn-outline:hover {
  background: var(--bg-light);
}

.main-content-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.main-content-panel-inner {
  flex: 1;
}

.user-list-panel {
  width: 360px;
  border-right: 1px solid var(--border-color);
  flex-shrink: 0;
  overflow: hidden;
}

.list-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  gap: 12px;
  flex-wrap: wrap;
}

.sort-controls {
  gap: 8px;
  flex-shrink: 0;
}

.sort-controls label {
  font-size: 12px;
  color: var(--text-secondary);
  white-space: nowrap;
}

.sort-controls select {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
  background: var(--bg-white);
  cursor: pointer;
  min-width: 90px;
}

.list-header .top-search {
  flex: 1;
  min-width: 120px;
  max-width: 100%;
}

.list-header .top-search input {
  font-size: 11px;
  width: 100%;
}

.user-list-items {
  max-height: calc(100vh - 300px);
  overflow-y: auto;
}

.user-list-block {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
  cursor: pointer;
  transition: all 0.2s;
}

.user-list-block:hover {
  background: var(--bg-light);
}

.user-list-block.active {
  background: var(--primary-blue);
}

.user-list-block.active .user-list-content h3,
.user-list-block.active .status-badge,
.user-list-block.active .status-badge span {
  color: white;
}

.user-list-block.active .user-del-icon a {
  color: white;
}

.user-list-content h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.status-badge {
  font-size: 11px;
  color: var(--text-secondary);
}

.status-badge span {
  color: var(--success-green);
}

.status-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border: 1px solid var(--success-green);
  border-radius: 20px;
  font-size: 11px;
  cursor: pointer;
  transition: all 0.2s;
  background: #dcfce7;
  color: var(--text-secondary);
  font-weight: 500;
}

.status-toggle-btn:hover {
  opacity: 0.85;
  transform: scale(1.02);
}

.status-toggle-btn.status-active {
  background: #dcfce7;
  border-color: var(--success-green);
}

.status-toggle-btn.status-active span {
  color: var(--success-green);
  font-weight: 600;
}

.status-toggle-btn.status-inactive {
  background: #fee2e2;
  border-color: var(--danger-red);
}

.status-toggle-btn.status-inactive span {
  color: var(--danger-red);
  font-weight: 600;
}

.user-list-block.active .status-toggle-btn {
  background: rgba(255, 255, 255, 0.25);
  border-color: rgba(255, 255, 255, 0.6);
  color: white;
}

.user-list-block.active .status-toggle-btn span {
  color: white;
}

.user-list-block.active .status-toggle-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.user-del-icon a,
.user-del-icon .delete-btn {
  color: var(--text-muted);
  text-decoration: none;
  opacity: 0;
  transition: all 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
}

.user-del-icon .delete-btn:hover {
  color: var(--danger-red);
  background: rgba(239, 68, 68, 0.1);
}

.user-list-block:hover .user-del-icon a,
.user-list-block:hover .user-del-icon .delete-btn,
.user-list-block.active .user-del-icon a,
.user-list-block.active .user-del-icon .delete-btn {
  opacity: 1;
}

.user-list-block.active .user-del-icon .delete-btn {
  color: rgba(255, 255, 255, 0.8);
}

.user-list-block.active .user-del-icon .delete-btn:hover {
  color: white;
  background: rgba(255, 255, 255, 0.2);
}

.confirm-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  animation: fadeIn 0.2s ease;
}

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

.confirm-dialog {
  background: var(--bg-white);
  border-radius: 12px;
  padding: 24px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  animation: scaleIn 0.2s ease;
}

@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.confirm-icon {
  width: 56px;
  height: 56px;
  background: #fef3c7;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.confirm-icon i {
  font-size: 24px;
  color: #f59e0b;
}

.confirm-message {
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.confirm-actions .btn {
  min-width: 100px;
}

.user-details-panel {
  padding: 20px;
  overflow-y: auto;
}

.user-profile-details {
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.user-profile-cont h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

.details-actions {
  gap: 12px;
}

.details-actions a {
  color: var(--text-muted);
  font-size: 16px;
  text-decoration: none;
}

.details-actions a:hover {
  color: var(--primary-blue);
}

.user-info-row {
  margin-bottom: 20px;
}

.user-info-heading {
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.user-info-heading i {
  color: var(--text-muted);
  font-size: 16px;
}

.user-info-heading h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.user-info-brief-cont {
  padding-left: 26px;
}

.info-row {
  display: flex;
  gap: 0;
  margin-bottom: 8px;
}

.info-row h5 {
  font-size: 13px;
  font-weight: 400;
  color: var(--primary-blue);
  width: 50%;
  min-width: 200px;
  margin-bottom: 8px;
}

.info-row h5 .info-label {
  color: var(--primary-blue);
}

.info-row h5 span:not(.info-label) {
  color: var(--text-secondary);
}

.user-info-brief-cont p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.table-responsive {
  margin-left: 26px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-light);
  font-weight: 600;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.table td {
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.table .label-column.hidden,
.table th.label-column.hidden,
.table td.label-column.hidden {
  display: none;
}

.user-basicinfo-list {
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  padding-left: 26px;
}

.user-basicinfo-item {
  display: flex;
  gap: 12px;
  width: 50%;
  min-width: 200px;
}

.user-basicinfo-item i {
  color: var(--primary-blue);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.user-basicinfo-right {
  flex: 1;
}

.user-basicinfo-right h5 {
  font-size: 11px;
  color: var(--primary-blue);
  font-weight: 400;
  margin-bottom: 2px;
}

.user-basicinfo-right h6 {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-page {
  padding: 24px;
}

.form-container {
  background: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.form-header {
  gap: 16px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.form-icon {
  width: 44px;
  height: 44px;
  background: var(--highlight-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-blue);
  font-size: 18px;
}

.form-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.form-body {
  padding: 24px;
}

.form-row {
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 150px;
}

.form-group.full-width {
  flex: none;
  width: 100%;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.form-group label .required {
  color: var(--danger-red);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-white);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group textarea {
  resize: vertical;
  min-height: 70px;
}

.form-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 8px;
}

.form-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-light);
  font-weight: 600;
  font-size: 12px;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.form-table td {
  padding: 6px 10px;
  border: 1px solid var(--border-color);
}

.form-table input {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 13px;
}

.form-table input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-table .rate-readonly {
  background: var(--bg-light);
  color: var(--text-secondary);
  cursor: not-allowed;
}

.form-table .label-column.hidden {
  display: none;
}

.form-footer {
  padding: 18px 24px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-light);
  border-radius: 0 0 8px 8px;
}

.notes-panel h4 {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.notes-panel h4 i {
  margin-right: 6px;
}

.notes-panel ul {
  margin-left: 20px;
  font-size: 11px;
  color: var(--text-secondary);
}

.notes-panel li {
  margin-bottom: 3px;
}

.form-actions {
  gap: 10px;
}

.login-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-color);
  background: var(--bg-white);
  font-size: 12px;
}

.login-footer p {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.footer-links {
  list-style: none;
  gap: 20px;
}

.footer-links a {
  color: var(--primary-blue);
  text-decoration: none;
  font-size: 11px;
}

.footer-links a:hover {
  text-decoration: underline;
}

.powered-by {
  gap: 10px;
}

.powered-by p {
  margin: 0;
}

@media (max-width: 1200px) {
  .user-list-panel {
    width: 300px;
  }

  .info-row h5 {
    width: 45%;
    min-width: 160px;
  }
}

@media (max-width: 992px) {
  .left-panel {
    display: none;
  }

  .user-list-panel {
    width: 260px;
  }

  .nav-top .d-flex {
    flex-wrap: wrap;
    gap: 8px;
  }

  .top-search {
    min-width: 150px;
  }

  .top-right-logo {
    display: none;
  }

  .info-row {
    flex-direction: column;
    gap: 2px;
  }

  .info-row h5 {
    width: 100%;
    min-width: unset;
  }

  .user-basicinfo-list {
    flex-direction: column;
    gap: 12px;
  }

  .user-basicinfo-item {
    width: 100%;
    min-width: unset;
  }

  .form-container {
    max-width: 100%;
    margin: 0 8px;
  }
}

@media (max-width: 768px) {
  .header-container {
    flex-direction: column;
  }

  .logo-panel {
    flex-direction: row;
    padding: 8px 16px;
    min-width: unset;
    width: 100%;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-color);
  }

  .logo-panel a {
    flex-direction: row;
    gap: 8px;
  }

  .logo-panel svg {
    width: 28px;
    height: 28px;
  }

  .nav-wrapper {
    width: 100%;
  }

  .nav-top {
    padding: 8px 12px;
  }

  .nav-top .d-flex {
    flex-wrap: wrap;
    gap: 6px;
  }

  .top-search {
    min-width: 120px;
    flex: 1;
  }

  .module-dropdown .btn {
    padding: 6px 12px;
    font-size: 12px;
  }

  .lang-dropdown {
    display: none;
  }

  .top-right-logo {
    display: none;
  }

  .nav-bottom {
    padding: 0 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .navbar-nav {
    flex-wrap: nowrap;
    min-width: max-content;
  }

  .nav-item .nav-link {
    padding: 10px 10px;
    font-size: 12px;
    white-space: nowrap;
  }

  section {
    flex-direction: column;
  }

  .main-container {
    min-height: auto;
  }

  .main-content-panel-inner {
    flex-direction: column;
  }

  .user-list-panel {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    max-height: 300px;
    overflow-y: auto;
  }

  .user-list-items {
    max-height: 200px;
  }

  .user-details-panel {
    padding: 16px;
  }

  .page-title {
    padding: 10px 16px;
    flex-wrap: wrap;
    gap: 8px;
  }

  .breadcrumb-links {
    font-size: 12px;
  }

  .form-page {
    padding: 12px;
  }

  .form-body {
    padding: 16px;
  }

  .form-row {
    flex-direction: column;
    gap: 12px;
  }

  .form-group {
    min-width: 100%;
  }

  .form-header {
    padding: 14px 16px;
    flex-wrap: wrap;
  }

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

  .form-actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .table-responsive {
    margin-left: 0;
    overflow-x: auto;
  }

  .table {
    min-width: 500px;
  }

  .confirm-dialog {
    max-width: 95%;
    padding: 16px;
  }

  .login-footer {
    padding: 10px 12px;
    flex-direction: column;
    gap: 8px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 10px;
  }

  .settings-dropdown {
    right: 10px;
    max-width: calc(100vw - 20px);
  }
}

@media (max-width: 480px) {
  .nav-top {
    padding: 6px 8px;
  }

  .user-btn span {
    display: none;
  }

  .notification-count {
    font-size: 8px;
    min-width: 14px;
    height: 14px;
  }

  .breadcrumb-links {
    font-size: 11px;
    gap: 4px;
  }

  .breadcrumb-links li::after {
    margin-left: 4px;
  }

  .btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .user-list-panel {
    max-height: 250px;
  }

  .user-profile-cont h3 {
    font-size: 15px;
  }

  .user-info-brief-cont {
    padding-left: 10px;
  }

  .form-container {
    margin: 0 4px;
    border-radius: 4px;
  }

  .form-header h2 {
    font-size: 14px;
  }

  .form-body {
    padding: 12px;
  }
}

/* ── Shared Searchable Select Component ─────────────────────────── */
.ss-wrap {
  position: relative;
}

.ss-control {
  position: relative;
  display: flex;
  align-items: center;
}

.ss-input {
  width: 100%;
  padding: 7px 30px 7px 10px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  font-size: 12px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-white);
  box-sizing: border-box;
  cursor: pointer;
}

.ss-input:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.ss-input.error {
  border-color: var(--danger-red);
}

.ss-arrow {
  position: absolute;
  right: 10px;
  color: var(--text-muted);
  font-size: 11px;
  cursor: pointer;
  transition: transform 0.2s;
}

.ss-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  right: 0;
  background: var(--bg-white);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  z-index: 500;
  max-height: 200px;
  overflow-y: auto;
}

.ss-dropdown.ss-open {
  display: block;
}

.ss-option {
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.15s;
}

.ss-option:hover {
  background: #f1f5f9;
}

.ss-option.ss-selected {
  background: #eff6ff;
  color: var(--primary-blue);
  font-weight: 500;
}

.ss-option[data-value=""] {
  color: var(--text-muted);
  font-style: italic;
}
