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

:root {
  --primary-color: #0d5c3a;
  --primary-hover: #0a472c;
  --primary-light: #e8f4ee;
  --accent-color: #d4af37;
  --success-color: #10b981;
  --error-color: #da3224;
  --bg-color: #f4f8f6;
  --card-bg: #ffffff;
  --card-shadow: 0 10px 30px rgba(13, 92, 58, 0.05), 0 1px 8px rgba(0, 0, 0, 0.04);
  --border-radius: 12px;
  --text-primary: #2c3e50;
  --text-secondary: #5a738e;
  --text-muted: #8fa0b3;
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset and Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow-x: hidden;
  overflow-y: auto;
  position: relative;
  line-height: 1.5;
}

/* Privacy Terms Banner */
.privacy-banner {
  width: 100%;
  background: linear-gradient(135deg, #2c3e50, #1a252f);
  color: #ffffff;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  animation: slideDown 0.5s ease-out;
}

.privacy-banner p {
  margin: 0;
}

.privacy-banner a {
  color: #3498db;
  text-decoration: none;
  font-weight: 600;
  margin-left: 5px;
  transition: var(--transition-smooth);
}

.privacy-banner a:hover {
  color: #5dade2;
  text-decoration: underline;
}

/* Main Logo Section */
.payx-logo {
  margin-top: 40px;
  margin-bottom: 20px;
  text-align: center;
  animation: fadeIn 0.8s ease-out;
}

.payx-logo img {
  height: 48px;
  max-width: 100%;
  transition: transform 0.3s ease;
}

.payx-logo img:hover {
  transform: scale(1.03);
}

/* Layout Wrapper */
.outer-wrapper {
  width: 100%;
  max-width: 440px;
  padding: 0 20px;
  margin-bottom: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 10;
}

/* Downtime Maintenance Card */
#downtime-message-card {
  display: none; /* Controlled dynamically */
  background: #fff5e6;
  border-left: 4px solid var(--accent-color);
  padding: 16px;
  border-radius: var(--border-radius);
  align-items: center;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(255, 152, 0, 0.08);
  animation: fadeIn 0.4s ease-out;
}

.downtime-message-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.downtime-message-section {
  flex-grow: 1;
}

.maintenance-message {
  font-size: 0.85rem;
  color: #8a5a00;
}

.maintenance-message-style {
  font-weight: 700;
  display: block;
  margin-bottom: 2px;
}

#downtime-message-close-button {
  background: none;
  border: none;
  font-size: 1.1rem;
  color: #8a5a00;
  cursor: pointer;
  padding: 4px;
  opacity: 0.6;
  transition: var(--transition-smooth);
}

#downtime-message-close-button:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Main Login Card */
.mdc-card {
  background-color: var(--card-bg);
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  position: relative;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mdc-card:hover {
  transform: translateY(-2px);
}

/* Progress Bar */
.mdc-linear-progress {
  height: 4px;
  width: 100%;
  background-color: rgba(3, 105, 177, 0.1);
  position: relative;
  overflow: hidden;
  display: none; /* Triggered during async actions */
}

.mdc-linear-progress--indeterminate {
  display: block;
}

.mdc-linear-progress__bar {
  height: 100%;
  background-color: var(--primary-color);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  animation: indeterminateProgress 1.5s infinite linear;
  transform-origin: 0% 50%;
}

/* Card Content & Sections */
.card-content {
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mdc-card__primary {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Floating Label Text Field */
.mdc-text-field {
  position: relative;
  width: 100%;
  height: 56px;
  background-color: var(--primary-light);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 2px solid #ccc;
  transition: var(--transition-smooth);
}

.mdc-text-field:focus-within {
  border-bottom-color: var(--primary-color);
  background-color: #f0f6fc;
}

.mdc-text-field__input {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40px;
  padding: 0 16px 8px 16px;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1rem;
  color: var(--text-primary);
  font-weight: 500;
}

.mdc-floating-label {
  position: absolute;
  left: 16px;
  top: 18px;
  color: var(--text-secondary);
  font-size: 1rem;
  pointer-events: none;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s;
  transform-origin: left top;
}

/* Floating Label Animation States */
.mdc-floating-label.float-above {
  transform: translateY(-12px) scale(0.75);
  color: var(--primary-color);
}

.mdc-floating-label.required::after {
  content: ' *';
  color: var(--error-color);
}

/* Error/Helper Text */
.mdc-text-field-helper-text {
  font-size: 0.75rem;
  color: var(--error-color);
  margin-top: 4px;
  margin-left: 16px;
  display: none;
  font-weight: 500;
  animation: fadeIn 0.2s ease-out;
}

.mdc-text-field-helper-text.show {
  display: block;
}

/* Continue Button */
.mdc-card__actions {
  margin-top: 8px;
}

.mdc-button--raised {
  width: 100%;
  height: 48px;
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 24px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  box-shadow: 0 4px 12px rgba(3, 105, 177, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mdc-button--raised:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 6px 18px rgba(3, 105, 177, 0.35);
  transform: translateY(-1px);
}

.mdc-button--raised:active {
  transform: translateY(0);
}

/* Sub Actions */
.sub-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
  font-size: 0.85rem;
  text-align: center;
}

.sub-actions-container {
  display: flex;
  justify-content: center;
}

.sub-action-link a, #new_to_matchecks a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition-smooth);
}

.sub-action-link a:hover, #new_to_matchecks a:hover {
  color: var(--primary-hover);
  text-decoration: underline;
}

#new_to_matchecks {
  color: var(--text-secondary);
}

/* Terms Dialog */
.mdc-dialog {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 500;
  backdrop-filter: blur(4px);
  animation: fadeIn 0.3s ease-out;
}

.mdc-dialog.show {
  display: flex;
}

.mdc-dialog__surface {
  background-color: #ffffff;
  border-radius: var(--border-radius);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  animation: zoomIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.mdc-dialog__header {
  padding: 24px;
  border-bottom: 1px solid #eaeff2;
}

.mdc-dialog__header__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mdc-dialog__body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.mdc-dialog__footer {
  padding: 16px 24px;
  border-top: 1px solid #eaeff2;
  display: flex;
  justify-content: flex-end;
}

#close-terms {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 8px 24px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

#close-terms:hover {
  background-color: var(--primary-hover);
}

/* Cookie Notification */
.cookie-notification {
  width: 100%;
  max-width: 600px;
  background-color: #ffffff;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  padding: 18px 24px;
  font-size: 0.85rem;
  color: #1e293b;
  line-height: 1.5;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 24px;
  margin-bottom: 24px;
  align-self: center;
  transition: opacity 0.4s ease, transform 0.4s ease;
  animation: slideUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.cookie-notification p,
.cookie-notification span {
  color: #1e293b;
  font-weight: 500;
}

.cookie-notification a {
  color: #0284c7;
  text-decoration: underline;
  font-weight: 700;
}

.cookie-notification a:hover {
  color: #0369a1;
}

#accept-cookies {
  color: #094a2b !important;
  font-weight: 800 !important;
}

/* Footer Section */
.footer {
  width: 100%;
  padding: 24px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid #e1e8ed;
  background-color: #ffffff;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer a:hover {
  color: var(--primary-color);
  text-decoration: underline;
}

/* Success Toast Notification */
.toast-notification {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background-color: var(--success-color);
  color: #ffffff;
  padding: 14px 24px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 25px rgba(38, 130, 64, 0.25);
  z-index: 10010; /* Put on top of modal backdrops */
  transform: translateY(150%);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.error {
  background-color: #ef4444;
  box-shadow: 0 10px 25px rgba(239, 68, 68, 0.3);
}

.toast-notification.show {
  transform: translateY(0);
}

.toast-notification-icon {
  width: 20px;
  height: 20px;
}

/* Chat Assistant Widget */
#chatFabContainer {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 400;
}

.fab {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  border: none;
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(3, 105, 177, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  animation: pulseFab 2s infinite;
}

.fab:hover {
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 12px 30px rgba(3, 105, 177, 0.45);
}

#unreadMsgBadge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--accent-color);
  border: 2px solid #ffffff;
  animation: scaleUp 0.3s ease-out;
}

#unreadMsgBadge.hide {
  display: none;
}

/* Chat Window interface */
.chatWindow {
  position: fixed;
  bottom: 96px;
  right: 24px;
  width: 360px;
  height: 500px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  display: none; /* Controlled dynamically */
  flex-direction: column;
  overflow: hidden;
  z-index: 399;
  border: 1px solid #eaeff2;
  transform-origin: bottom right;
  animation: openChat 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.chatWindow.show {
  display: flex;
}

.chat-header {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-hover));
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.chat-header-title {
  font-size: 0.95rem;
  font-weight: 600;
}

.chat-close-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.8;
  transition: var(--transition-smooth);
}

.chat-close-btn:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Chat Messages Area */
.chatBot {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background-color: #f8fafc;
}

.chat-msg {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  line-height: 1.4;
  animation: bubblePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.chat-msg.bot {
  background-color: #ffffff;
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  border: 1px solid #eaeff2;
}

.chat-msg.user {
  background-color: var(--primary-color);
  color: #ffffff;
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.ai-tasks-card {
  margin-top: 8px;
  font-size: 0.8rem;
  background-color: #f1f5f9;
  border-left: 3px solid var(--primary-color);
  padding: 8px 12px;
  border-radius: 6px;
  color: #1e293b;
  text-align: left;
}
.ai-tasks-card strong,
.ai-tasks-card li {
  color: #0f172a;
}
.ai-tasks-empty {
  margin-top: 8px;
  font-size: 0.8rem;
  color: #64748b;
  text-align: left;
}

/* Chat Quick Replies */
.chat-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.chat-suggest-btn {
  background-color: var(--primary-light);
  color: var(--primary-color);
  border: 1px solid rgba(3, 105, 177, 0.15);
  border-radius: 16px;
  padding: 6px 12px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* Chat Input Bar */
.chat-input-bar {
  padding: 12px 16px;
  background-color: #ffffff;
  border-top: 1px solid #eaeff2;
  display: flex;
  gap: 8px;
}

.chat-input {
  flex-grow: 1;
  border: 1px solid #cbd5e1;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 0.85rem;
  outline: none;
  font-family: inherit;
  transition: var(--transition-smooth);
}

.chat-input:focus {
  border-color: var(--primary-color);
}

.chat-send-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.chat-send-btn:hover {
  background-color: var(--primary-hover);
  transform: scale(1.05);
}

/* Chatbot Error Panel (shown on trigger) */
#chatbot_error_card {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  display: none; /* Managed dynamically */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
  z-index: 2;
  animation: fadeIn 0.3s ease-out;
}

#chatbot_close_btn {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--text-secondary);
}

#chatbot_err_logo img {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
}

#chatbot_error-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

#chatbot_err_button {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 16px;
  transition: var(--transition-smooth);
}

#chatbot_err_button:hover {
  background-color: var(--primary-hover);
}

/* Animations */
@keyframes indeterminateProgress {
  0% {
    left: -35%;
    right: 100%;
    transform: scaleX(0.35);
  }
  60% {
    left: 100%;
    right: -90%;
    transform: scaleX(0.9);
  }
  100% {
    left: 100%;
    right: -90%;
    transform: scaleX(0.9);
  }
}

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

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

@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

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

@keyframes pulseFab {
  0% {
    box-shadow: 0 8px 24px rgba(3, 105, 177, 0.3);
  }
  50% {
    box-shadow: 0 8px 30px rgba(3, 105, 177, 0.6);
  }
  100% {
    box-shadow: 0 8px 24px rgba(3, 105, 177, 0.3);
  }
}

@keyframes openChat {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes bubblePop {
  from { transform: scale(0.9) translateY(5px); opacity: 0; }
  to { transform: scale(1) translateY(0); opacity: 1; }
}

@keyframes scaleUp {
  from { transform: scale(0); }
  to { transform: scale(1); }
}

/* Responsive adjustments */
@media (max-width: 480px) {
  .outer-wrapper {
    padding: 0 16px;
  }
  .card-content {
    padding: 32px 20px;
  }
  .chatWindow {
    width: calc(100% - 32px);
    right: 16px;
    left: 16px;
    bottom: 96px;
    height: 450px;
  }
}

/* Dashboard Layout and Sidebar CSS */
.dashboard-layout {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #eaeff2;
  display: flex;
  z-index: 200;
  overflow: hidden;
  animation: fadeIn 0.4s ease-out;
}

/* Sidebar styling */
.sidebar {
  width: 240px;
  background-color: #eef7f3; /* Elegant light sage green */
  border-right: 1px solid #cce3d8;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar.collapsed {
  transform: translateX(-100%);
  position: absolute;
  height: 100%;
  z-index: 210;
}

.sidebar-brand {
  height: 64px;
  background-color: #06311e; /* Darker green banner for the logo brand */
  display: flex;
  align-items: center;
  padding: 0 16px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.sidebar-brand img {
  height: 32px;
}

.sidebar-menu {
  flex-grow: 1;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
}

.menu-section {
  font-family: 'Outfit', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 6px 14px 2px 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  margin: 1.5px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  border: 1px solid rgba(10, 71, 44, 0.04);
  border-radius: 6px;
  background-color: rgba(10, 71, 44, 0.01);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.menu-item:hover {
  background: linear-gradient(135deg, rgba(10, 71, 44, 0.06) 0%, rgba(10, 71, 44, 0.12) 100%) !important;
  color: #0a472c !important;
  border-color: rgba(10, 71, 44, 0.2) !important;
  box-shadow: 0 2px 5px rgba(10, 71, 44, 0.04) !important;
}

.menu-item.active {
  background: linear-gradient(135deg, #0a472c 0%, #115e3b 100%) !important;
  color: #ffffff !important;
  border-color: #0a472c !important;
  box-shadow: 0 3px 8px rgba(10, 71, 44, 0.15) !important;
  font-weight: 600;
}

/* Collapsible sidebar submenu */
.sidebar-submenu {
  display: none;
  padding-left: 0;
  background-color: transparent;
  transition: all 0.3s ease-in-out;
}

.submenu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px 4px 32px;
  margin: 1px 12px 1px 18px;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: 'Outfit', sans-serif;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.submenu-item:hover {
  background-color: rgba(10, 71, 44, 0.08) !important;
  color: #0a472c !important;
  border-color: rgba(10, 71, 44, 0.15) !important;
}

.submenu-item.active {
  background-color: rgba(10, 71, 44, 0.15) !important;
  color: #0a472c !important;
  border-color: rgba(10, 71, 44, 0.25) !important;
  font-weight: 600;
}

.menu-icon {
  font-size: 1rem;
}

.sidebar-footer {
  padding: 8px 12px;
  border-top: 1px solid #eaeff2;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-chat-btn {
  width: 100%;
  background-color: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 14px;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: var(--transition-smooth);
}

.sidebar-chat-btn:hover {
  background-color: var(--primary-light);
}

.sidebar-footer-links {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

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

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

.sidebar-copyright {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
}

/* Main Content Area */
.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header Bar */
.main-header {
  height: 64px;
  background-color: #0a472c; /* Match premium dark green header bar */
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  flex-shrink: 0;
}

.menu-toggle-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  display: none; /* Only show on mobile */
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: auto;
}

.header-icon-btn {
  font-size: 1.25rem;
  cursor: pointer;
  opacity: 0.85;
  transition: var(--transition-smooth);
  position: relative;
}

.header-icon-btn:hover {
  opacity: 1;
  transform: scale(1.05);
}

.header-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.2);
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  position: relative;
  cursor: pointer;
}

.avatar-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background-color: var(--accent-color);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1.5px solid #0a472c;
}

.dashboard-logout-btn {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 6px 14px;
  border-radius: 14px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

/* Workspace Area */
.workspace-area {
  height: calc(100vh - 64px);
  box-sizing: border-box;
  padding: 16px 20px;
  background-color: #edf2f7; /* High contrast modern light grey background */
  overflow-y: auto;
}

.welcome-text {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

/* Main Grid Cards */
.dashboard-grid-cards {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.promo-banner-card {
  grid-column: span 12;
  background: linear-gradient(135deg, #0d5c3a, #10b981);
  color: #ffffff;
  border-radius: var(--border-radius);
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(13, 92, 58, 0.15);
  position: relative;
  overflow: hidden;
}

.promo-banner-card::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
}

.promo-content h3 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.promo-content p {
  font-size: 0.95rem;
  opacity: 0.9;
}

.refer-btn {
  background-color: #ffffff;
  color: var(--primary-color);
  border: none;
  padding: 10px 24px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.08);
  transition: var(--transition-smooth);
}

.refer-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
  color: var(--primary-hover);
}

/* Standard Grid Card */
.grid-card {
  grid-column: span 4;
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 1px 2px rgba(0,0,0,0.02);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 160px;
  border: 1px solid #e2e8f0;
  transition: var(--transition-smooth);
}

.grid-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.grid-card-header {
  border-bottom: 1px solid #eaeff2;
  padding-bottom: 10px;
}

.grid-card-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Shortcuts styles */
.analytics-actions, .employees-actions {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.action-shortcut {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 8px;
  background-color: #f8fafc;
  border: 1px solid #eaeff2;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
  text-align: center;
}

.action-shortcut:hover {
  background-color: var(--primary-light);
  border-color: rgba(3, 105, 177, 0.2);
}

.shortcut-icon {
  font-size: 1.5rem;
}

.action-shortcut span:last-child {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.card-action-link {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
  margin-top: auto;
  font-weight: 600;
}

/* Tasks Styles */
.tasks-count {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-grow: 1;
  padding: 10px 0;
}

.tasks-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--primary-color);
  line-height: 1;
}

.tasks-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 4px;
}

/* Employee Registration Stats */
.reg-stats {
  display: flex;
  gap: 24px;
  background-color: #f8fafc;
  padding: 12px;
  border-radius: 8px;
}

.stat-title {
  font-size: 0.75rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.stat-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 2px;
}

.reg-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.reg-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.75rem;
  margin-top: auto;
}

.reg-links a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

/* Support Card Content */
.support-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-intro {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.support-intro a {
  color: var(--primary-color);
  font-weight: 600;
}

.support-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  background-color: #f8fafc;
  border: 1px solid #eaeff2;
  border-radius: 8px;
  padding: 16px;
  font-size: 0.8rem;
}

.support-details strong {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.support-details span {
  color: var(--text-secondary);
}

/* Demographics/Chart Styles */
.demographics-card {
  grid-column: span 4;
}

.chart-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}

.chart-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 1px solid #eaeff2;
  padding-bottom: 4px;
}

.chart-bars {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px 0;
}

.chart-bar-group {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
}

.bar-lbl {
  width: 50px;
  color: var(--text-secondary);
  font-weight: 500;
}

.bar-track {
  flex-grow: 1;
  height: 12px;
  background-color: #f1f5f9;
  border-radius: 6px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), #29bdbc);
  border-radius: 6px;
}

.bar-val {
  width: 15px;
  text-align: right;
  font-weight: 600;
  color: var(--text-primary);
}

/* Responsive breakdowns for grid */
@media (max-width: 1024px) {
  .grid-card {
    grid-column: span 6;
  }
}

@media (max-width: 768px) {
  .menu-toggle-btn {
    display: block;
  }
  .sidebar {
    transform: translateX(-100%);
    position: absolute;
    height: 100%;
    z-index: 210;
  }
  .sidebar.active {
    transform: translateX(0);
  }
  .workspace-area {
    padding: 24px 20px;
  }
  .grid-card, .promo-banner-card {
    grid-column: span 12;
  }
  .promo-banner-card {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
}

/* Hiring Company Selector Dropdown */
.hiring-company-selector-container {
  position: relative;
  display: inline-block;
}

.hiring-company-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 290px;
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);
  z-index: 1000;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 4px 0;
}

[data-theme="dark"] .hiring-company-dropdown-menu {
  background-color: #121212;
  border-color: #262626;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
}

.hiring-company-dropdown-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
}

.hiring-company-dropdown-row:hover {
  background-color: #f1f5f9;
}

[data-theme="dark"] .hiring-company-dropdown-row:hover {
  background-color: #1e1e1e;
}

.hiring-company-dropdown-row.selected {
  background-color: #f0f7ff;
}

[data-theme="dark"] .hiring-company-dropdown-row.selected {
  background-color: #0f2d4a;
}

.hiring-company-avatar {
  width: 38px;
  height: 38px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.hiring-company-avatar.add-btn {
  border: 1.5px dashed #cbd5e1;
  background-color: #f8fafc;
  color: #0284c7;
}

[data-theme="dark"] .hiring-company-avatar.add-btn {
  border-color: #404040;
  background-color: #1a1a1a;
  color: #38bdf8;
}

.hiring-company-avatar.letter {
  background-color: #93a8b7;
  color: #ffffff;
}

.hiring-company-avatar.checked {
  background-color: #0066b3;
  color: #ffffff;
}

.hiring-company-info {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.hiring-company-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}

[data-theme="dark"] .hiring-company-title {
  color: #e2e8f0;
}

.hiring-company-subtitle {
  font-size: 0.75rem;
  color: #64748b;
}

[data-theme="dark"] .hiring-company-subtitle {
  color: #94a3b8;
}
/* Clock Badge and Button Styles */
.clock-badge-out {
  background-color: #ffebe6;
  color: var(--error-color);
  border: 1px solid rgba(218, 50, 36, 0.2);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition-smooth);
}

.clock-badge-in {
  background-color: #e6f7eb;
  color: var(--success-color);
  border: 1px solid rgba(38, 130, 64, 0.2);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-block;
  transition: var(--transition-smooth);
}

.close-clock-btn {
  background-color: transparent;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.close-clock-btn:hover {
  background-color: #f1f5f9;
  border-color: #94a3b8;
}

.clock-punch-in-log {
  border-left: 3px solid var(--success-color);
  background-color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  animation: slideUp 0.3s ease-out;
}

.clock-punch-out-log {
  border-left: 3px solid var(--error-color);
  background-color: #ffffff;
  padding: 6px 12px;
  border-radius: 4px;
  font-weight: 500;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  animation: slideUp 0.3s ease-out;
}

/* Company Dropdown Styles */
.company-dropdown-btn {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: var(--transition-smooth);
}

.company-dropdown-btn:hover {
  background-color: #f8fafc;
  border-color: #94a3b8;
}

.company-dropdown-menu {
  position: absolute;
  top: 42px;
  left: 0;
  width: 260px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  z-index: 220;
  padding: 8px 0;
  animation: openChat 0.2s ease-out;
}

.dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition-smooth);
}

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

.dropdown-item input[type="checkbox"] {
  margin-top: 3px;
  cursor: pointer;
}

.dropdown-item div {
  display: flex;
  flex-direction: column;
}

.dropdown-item span {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.dropdown-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px 2px 16px;
  border-top: 1px solid #eaeff2;
  margin-top: 8px;
  font-size: 0.75rem;
}

.dropdown-actions span {
  color: var(--text-muted);
}

.dropdown-cancel-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}

.dropdown-apply-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 5px 12px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.dropdown-apply-btn:hover {
  background-color: var(--primary-hover);
}

/* Onboarding Card styling */
.onboarding-summary-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.review-onboarding-btn {
  background-color: #ffffff;
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.review-onboarding-btn:hover {
  background-color: var(--primary-light);
}

/* Employee Rows List */
.employees-list-container {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background-color: #eaeff2; /* creates border line between rows */
  border: 1px solid #eaeff2;
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
}

.employee-row {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background-color: #ffffff;
  transition: var(--transition-smooth);
}

.employee-row.hide {
  display: none;
}

.employee-row:hover {
  background-color: #f8fafc;
}

.emp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-right: 16px;
}

.bg-blue { background-color: #0d5c3a; }
.bg-teal { background-color: #588f72; }
.bg-green { background-color: #268240; }
.bg-gray { background-color: #94a3b8; }
.bg-orange { background-color: #d4af37; }

.emp-identity {
  width: 30%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emp-name-link {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary-color);
  text-decoration: none;
}

.emp-name-link:hover {
  text-decoration: underline;
}

.emp-id {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.emp-company {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.emp-job-details {
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emp-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
}

.emp-location {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.emp-contact-details {
  width: 35%;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
}

.emp-email {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

.emp-email:hover {
  text-decoration: underline;
}

.emp-phone {
  color: var(--text-secondary);
  text-decoration: none;
}

.filter-settings-btn {
  background-color: #ffffff;
  color: var(--text-secondary);
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-settings-btn:hover {
  border-color: #94a3b8;
  background-color: #f8fafc;
}

.add-worker-btn {
  background-color: var(--primary-color);
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(3, 105, 177, 0.2);
  transition: var(--transition-smooth);
  display: flex;
  align-items: center;
}

.add-worker-btn:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 4px 8px rgba(3, 105, 177, 0.3);
}

@media (max-width: 768px) {
  .onboarding-summary-wrapper {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  .employee-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    position: relative;
    padding: 16px;
  }
  .emp-avatar {
    position: absolute;
    top: 16px;
    right: 16px;
    margin-right: 0;
  }
  .emp-identity, .emp-job-details, .emp-contact-details {
    width: 100%;
  }
}

/* Dashboard Table and Company Actions Styling */
.dashboard-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0;
}

.dashboard-table th {
  text-align: left;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  border-bottom: 2px solid #cbd5e1;
  padding: 8px 12px;
}

.dashboard-table td {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-primary);
  border-bottom: 1px solid #eaeff2;
  vertical-align: middle;
}

.dashboard-table tr {
  transition: var(--transition-smooth);
}

.dashboard-table tr:hover {
  background-color: #f8fafc;
}

.company-action-btn {
  background: none;
  border: none;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 12px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.company-action-btn.edit {
  color: var(--primary-color);
}

.company-action-btn.edit:hover {
  background-color: var(--primary-light);
}

.company-action-btn.delete {
  color: var(--error-color);
  margin-left: 8px;
}

.company-action-btn.delete:hover {
  background-color: #ffebe6;
}

/* Billing Status Badges */
.billing-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
}

.billing-badge.pending {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid rgba(217, 119, 6, 0.2);
}

.billing-badge.charged {
  background-color: #dcfce7;
  color: #15803d;
  border: 1px solid rgba(21, 128, 61, 0.2);
}

/* Monospaced License Key Display */
.license-key-display {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  background-color: #f1f5f9;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
  letter-spacing: 0.5px;
  display: inline-block;
}

/* Global License Banner Card */
.global-license-card {
  border-radius: var(--border-radius);
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  animation: slideUp 0.4s ease-out;
  border: 1px solid transparent;
}

.global-license-card.active {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.2);
}

.global-license-card.inactive {
  background: #ffffff;
  color: var(--text-primary);
  border-color: #cbd5e1;
}

.global-license-content h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.global-license-content p {
  font-size: 0.8rem;
  opacity: 0.9;
}

.license-progress-bar-track {
  width: 150px;
  height: 8px;
  background-color: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 6px;
}

.license-progress-bar-fill {
  height: 100%;
  background-color: var(--primary-color);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.global-license-card.active .license-progress-bar-fill {
  background-color: #ffffff;
}

/* Chatbot configuration gear animation */
.chat-config-btn:hover {
  transform: rotate(45deg);
  opacity: 1;
}

/* AI Typing Indicator dots animation */
.typing-dots {
  display: flex;
  gap: 4px;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.typing-dots span {
  width: 6px;
  height: 6px;
  background-color: var(--text-secondary);
  border-radius: 50%;
  display: inline-block;
  animation: bounceDot 1.4s infinite ease-in-out both;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

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

/* Employee Detail Views & Tab Controls */
.emp-tab-btn {
  background: none;
  border: none;
  padding: 8px 4px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  transition: var(--transition-smooth);
  outline: none;
}

.emp-tab-btn:hover {
  color: var(--primary-color);
}

.emp-tab-btn.active {
  font-weight: 700;
  color: var(--primary-color);
  border-bottom: 3px solid var(--primary-color);
}

.emp-overview-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  width: 100%;
}

@media (max-width: 1024px) {
  .emp-overview-grid {
    grid-template-columns: 1fr;
  }
}

/* Enhancements for Overview Cards */
.emp-overview-grid .grid-card {
  transition: var(--transition-smooth);
}

.emp-overview-grid .grid-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(13, 92, 58, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Timeline Custom Nodes styling */
.timeline-change-node {
  background-color: #ffffff;
  border: 1px solid #eaeff2;
  border-radius: 8px;
  padding: 16px;
  position: relative;
  transition: var(--transition-smooth);
}

.timeline-change-node:hover {
  border-color: var(--primary-light);
  box-shadow: 0 4px 12px rgba(13, 92, 58, 0.03);
}

/* Badge specific style overrides if any */
.timeline-status-badge {
  font-size: 0.7rem;
  border-radius: 12px;
  padding: 4px 12px;
}


/* Sidebar Menu Items */
.sidebar-menu-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 14px 18px;
  cursor: pointer;
  transition: var(--transition-smooth);
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
}

.sidebar-menu-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 92, 58, 0.06);
  border-color: var(--primary-color);
}

.sidebar-menu-item:active {
  transform: translateY(0);
}

.sidebar-menu-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  font-weight: 700;
}

.sidebar-menu-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-grow: 1;
  min-width: 0;
}

.sidebar-menu-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-menu-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-menu-arrow {
  font-size: 1.25rem;
  color: var(--text-muted);
  font-weight: 600;
  margin-left: auto;
  line-height: 1;
  transition: var(--transition-smooth);
}

.sidebar-menu-item:hover .sidebar-menu-arrow {
  color: var(--primary-color);
  transform: translateX(2px);
}

/* Role Badges */
.role-badge {
  display: inline-block;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: var(--transition-smooth);
}

.role-badge.worker {
  background-color: #f1f5f9;
  color: #475569;
  border-color: #cbd5e1;
}

.role-badge.manager {
  background-color: #e0f2fe;
  color: #0369a1;
  border-color: #bae6fd;
}

.role-badge.hr {
  background-color: #fef3c7;
  color: #b45309;
  border-color: #fde68a;
}

/* Responsiveness for Employee Details Layout */
@media (max-width: 1024px) {
  .employee-detail-layout {
    flex-direction: column !important;
  }
  .employee-detail-sidebar {
    width: 100% !important;
  }
}

.employees-filters-btn-apply {
  background-color: #cbd5e1;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 24px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: not-allowed;
  transition: var(--transition-smooth);
}

.employees-filters-btn-apply.active {
  background-color: #0d5c3a;
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(13, 92, 58, 0.15);
}

/* Toggle Switch Switcher */
.switch input:checked + .slider {
  background-color: #0d5c3a; /* Match green brand theme */
}

.switch input:focus + .slider {
  box-shadow: 0 0 1px #0d5c3a;
}

.switch .slider::before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

.switch input:checked + .slider::before {
  transform: translateX(20px);
}

/* Right-Hand slide-out Drawer navigation */
.employee-detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 480px;
  background-color: #ffffff;
  z-index: 600;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.employee-detail-drawer.show {
  transform: translateX(0);
}

.drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.45);
  z-index: 550;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.drawer-backdrop.show {
  display: block;
  opacity: 1;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid #eaeff2;
  background-color: #ffffff;
}

.drawer-header h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-primary);
}

.close-drawer-btn {
  background: none;
  border: none;
  font-size: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.close-drawer-btn:hover {
  color: var(--error-color);
  background-color: #f1f5f9;
}

.drawer-body {
  flex-grow: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-color: #f8fafc;
}

.drawer-mini-profile-card {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background-color: #ffffff;
  position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.mini-profile-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mini-profile-info h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}

.mini-profile-info span {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.reports-to-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.reports-to-text span {
  color: var(--text-secondary);
  font-weight: 500;
}

.mini-profile-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 16px;
}

.drawer-org-link {
  font-size: 0.8rem;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 600;
}

.drawer-org-link:hover {
  text-decoration: underline;
}

.drawer-dots-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-secondary);
  outline: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: var(--transition-smooth);
}

.drawer-dots-btn:hover {
  color: var(--primary-color);
  background-color: #f1f5f9;
}

.drawer-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.drawer-profile-grid div {
  display: flex;
  flex-direction: column;
}

.grid-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.grid-val {
  font-size: 0.85rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.drawer-sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

@media (max-width: 480px) {
  .employee-detail-drawer {
    width: 100% !important;
  }
}

/* Job postings & recruitment styles */
.job-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.job-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s, box-shadow 0.2s;
  min-height: 180px;
}
.job-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.job-title {
  font-size: 1rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 8px;
}
.job-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 4px;
}
.job-salary {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-color);
  margin-top: 8px;
}

/* Screening and candidate status badges */
.badge-pending {
  background-color: #fef3c7;
  color: #d97706;
  border: 1px solid #fde68a;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-passed {
  background-color: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-failed {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}
.badge-hired {
  background-color: #dbeafe;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
}

/* App Hub clock styles */
.clock-widget-card {
  background: linear-gradient(135deg, #0d5c3a 0%, #073822 100%);
  color: white;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 8px 16px rgba(13,92,58,0.15);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}
.clock-widget-time {
  font-size: 3rem;
  font-weight: 800;
  font-family: monospace;
  letter-spacing: 2px;
  margin: 12px 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
.clock-widget-date {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Invoicing card styling */
.b2b-invoice-card {
  border-left: 4px solid var(--accent-color) !important;
}

/* Hiring Dashboard Styles */
.hiring-jobs-panel {
  background-color: white;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  overflow: hidden;
}
.hiring-job-row {
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.hiring-job-row:hover {
  background-color: #f8fafc !important;
}
.hiring-menu-card {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  transition: all 0.2s ease-in-out;
}
.hiring-menu-card:hover {
  background-color: #f8fafc !important;
  border-color: #cbd5e1 !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.05);
}

/* Lock scroll on HTML and Body when logged in to prevent duplicate/broken browser scrollbars */
html.logged-in, body.logged-in {
  overflow: hidden !important;
  height: 100% !important;
  width: 100% !important;
}

/* Custom Checkboxes in Jobs Filter Popover to match user mockup */
#hiring-jobs-filter-popover input[type="checkbox"],
#hiring-candidates-filter-popover input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #556376; /* Dark-grey/charcoal border */
  border-radius: 3px;
  outline: none;
  background-color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.15s, border-color 0.15s;
  box-sizing: border-box;
}

#hiring-jobs-filter-popover input[type="checkbox"]:checked,
#hiring-candidates-filter-popover input[type="checkbox"]:checked {
  background-color: #0056b3; /* Premium blue background */
  border-color: #0056b3;
}

#hiring-jobs-filter-popover input[type="checkbox"]:checked::after,
#hiring-candidates-filter-popover input[type="checkbox"]:checked::after {
  content: "";
  display: block;
  width: 5px;
  height: 9px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  position: absolute;
  top: 1px;
  left: 5px;
}

/* ==========================================
   Dark Theme Overrides (Elegant Black)
   ========================================== */
[data-theme="dark"] {
  --bg-color: #000000;       /* True Black background */
  --card-bg: #121212;        /* Dark grey cards */
  --text-primary: #ffffff;   /* Crisp white text */
  --text-secondary: #a3a3a3; /* Muted light grey text */
  --text-muted: #525252;     /* Muted grey */
  --primary-light: #161616;
  --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

[data-theme="dark"] body {
  background-color: #000000 !important;
  color: #ffffff !important;
}

/* Header & Sidebar Dark adjustments */
[data-theme="dark"] .main-header {
  background-color: #121212 !important;
  border-bottom: 1px solid #262626 !important;
}
[data-theme="dark"] .sidebar-brand {
  background-color: #000000 !important;
  border-bottom: 1px solid #262626 !important;
}
[data-theme="dark"] .sidebar {
  background-color: #121212 !important;
  border-right: 1px solid #262626 !important;
}
[data-theme="dark"] .sidebar-menu-item {
  background-color: #161616 !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-menu-title {
  color: #ffffff !important;
}
[data-theme="dark"] .sidebar-menu-desc {
  color: #a3a3a3 !important;
}
[data-theme="dark"] .sidebar-footer {
  border-top-color: #262626 !important;
}

[data-theme="dark"] .menu-item {
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.05) !important;
  background-color: rgba(255, 255, 255, 0.02) !important;
}
[data-theme="dark"] .menu-item:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.2) 100%) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.3) !important;
}
[data-theme="dark"] .menu-item.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25) !important;
}

[data-theme="dark"] .submenu-item {
  color: #94a3b8 !important;
}
[data-theme="dark"] .submenu-item:hover {
  background-color: rgba(16, 185, 129, 0.08) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.2) !important;
}
[data-theme="dark"] .submenu-item.active {
  background-color: rgba(16, 185, 129, 0.15) !important;
  color: #10b981 !important;
  border-color: rgba(16, 185, 129, 0.25) !important;
}

/* Workspace Panels and Cards */
[data-theme="dark"] .workspace-area {
  background-color: #000000 !important;
}
[data-theme="dark"] .dashboard-layout {
  background-color: #000000 !important;
}
[data-theme="dark"] .grid-card,
[data-theme="dark"] .hiring-jobs-panel,
[data-theme="dark"] .hiring-menu-card,
[data-theme="dark"] .employee-card,
[data-theme="dark"] #hiring-jobs-filter-popover,
[data-theme="dark"] .drawer-content,
[data-theme="dark"] .mdc-dialog__surface,
[data-theme="dark"] .dialog-surface {
  background-color: #121212 !important;
  color: #ffffff !important;
  border: 1px solid #262626 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

/* Overriding inline backgrounds for white panels/cards */
[data-theme="dark"] [style*="background-color: white"],
[data-theme="dark"] [style*="background-color: #ffffff"],
[data-theme="dark"] [style*="background-color:#ffffff"],
[data-theme="dark"] [style*="background-color: rgb(255, 255, 255)"],
[data-theme="dark"] [style*="background-color:rgb(255, 255, 255)"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background: #ffffff"],
[data-theme="dark"] [style*="background:#ffffff"],
[data-theme="dark"] [style*="background:white"] {
  background: #121212 !important;
  background-color: #121212 !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}

/* Dynamic colors for specific elements */
[data-theme="dark"] h2,
[data-theme="dark"] h3,
[data-theme="dark"] h4,
[data-theme="dark"] p,
[data-theme="dark"] label,
[data-theme="dark"] .faq-question,
[data-theme="dark"] .faq-question span,
[data-theme="dark"] .faq-answer {
  color: #ffffff !important;
}
[data-theme="dark"] span:not([style*="color:"]):not([class*="badge"]) {
  color: #ffffff !important;
}
[data-theme="dark"] [style*="color: #1e293b"],
[data-theme="dark"] [style*="color:#1e293b"],
[data-theme="dark"] [style*="color: #334155"],
[data-theme="dark"] [style*="color:#334155"],
[data-theme="dark"] [style*="color: #475569"],
[data-theme="dark"] [style*="color:#475569"],
[data-theme="dark"] [style*="color: #64748b"],
[data-theme="dark"] [style*="color:#64748b"] {
  color: #cbd5e1 !important;
}
[data-theme="dark"] [style*="color: #94a3b8"] {
  color: #94a3b8 !important;
}

/* Tables in Dark Mode */
[data-theme="dark"] table {
  background-color: #121212 !important;
}
[data-theme="dark"] tr,
[data-theme="dark"] tr[style*="border-bottom"] {
  border-bottom: 1px solid #262626 !important;
}
[data-theme="dark"] tr[style*="background-color: #f8fafc"],
[data-theme="dark"] tr[style*="background-color:#f8fafc"],
[data-theme="dark"] tr[style*="background: #f8fafc"] {
  background-color: #0a0a0a !important;
}
[data-theme="dark"] th {
  background-color: #0a0a0a !important;
  color: #a3a3a3 !important;
  border-bottom: 1px solid #262626 !important;
}
[data-theme="dark"] td {
  border-bottom: 1px solid #262626 !important;
  color: #ffffff !important;
}
[data-theme="dark"] span[style*="color: #1e293b"] {
  color: #ffffff !important;
}
[data-theme="dark"] .hiring-job-row:hover {
  background-color: #1a1a1a !important;
}

/* Borders overrides */
[data-theme="dark"] div[style*="border: 1px solid #cbd5e1"],
[data-theme="dark"] div[style*="border-bottom: 1px solid #eaeff2"],
[data-theme="dark"] div[style*="border-top: 1px solid #eaeff2"],
[data-theme="dark"] div[style*="border-top: 1px solid #eaeff2;"],
[data-theme="dark"] div[style*="border: 1px solid #e2e8f0"],
[data-theme="dark"] div[style*="border-bottom: 1px solid #f1f5f9"] {
  border-color: #262626 !important;
}

/* Forms, Inputs and Selectors in Dark Mode */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] select,
[data-theme="dark"] textarea {
  background-color: #1a1a1a !important;
  background: #1a1a1a !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
  color: #94a3b8 !important;
}
[data-theme="dark"] select option {
  background-color: #121212 !important;
  color: #ffffff !important;
}

/* Workspace background override */
[data-theme="dark"] .workspace-area,
[data-theme="dark"] div[style*="background-color: #f8fafc"],
[data-theme="dark"] div[style*="background-color:#f8fafc"],
[data-theme="dark"] div[style*="background: #f8fafc"],
[data-theme="dark"] div[style*="background:#f8fafc"] {
  background-color: #000000 !important;
  background: #000000 !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}

/* Prime AI Advisor Classes for Light & Dark Mode */
.ai-coverage-alert-item {
  padding: 10px 12px;
  border-radius: 6px;
  background-color: #fef7e0;
  border-left: 4px solid #b06000;
  font-size: 0.8rem;
  line-height: 1.3;
  margin-bottom: 8px;
}
.ai-coverage-header {
  font-weight: 700;
  color: #b06000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}
.ai-coverage-title {
  color: #b06000;
  font-weight: 700;
}
.ai-coverage-severity {
  font-size: 0.7rem;
  background: rgba(0,0,0,0.05);
  padding: 1px 6px;
  border-radius: 4px;
  color: #78350f;
  font-weight: 600;
}
.ai-coverage-desc {
  color: #1e293b;
  margin-bottom: 6px;
  font-size: 0.8rem;
}
.ai-coverage-success {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #0d5c3a;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 20px;
  text-align: center;
  border-radius: 6px;
  background-color: #e6f4ea;
}
.ai-turnover-success {
  text-align: center;
  color: #137333;
  font-weight: 600;
  padding: 30px;
  background-color: #e6f4ea;
  border-radius: 8px;
}
.ai-badge-warning {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: #fca5a5;
  color: #7f1d1d;
}
.ai-badge-success {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  background-color: #e6f4ea;
  color: #137333;
}

/* Audit Logs Action Badges */
.audit-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}
.audit-badge-default {
  background-color: #f1f5f9;
  color: #334155;
  border: 1px solid #cbd5e1;
}
.audit-badge-success {
  background-color: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.audit-badge-warning {
  background-color: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}
.audit-badge-danger {
  background-color: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

/* Dark Mode Overrides for AI Advisor */
[data-theme="dark"] .ai-coverage-alert-item {
  background-color: #2a1b08 !important;
  background: #2a1b08 !important;
  border-left: 4px solid #f59e0b !important;
  border-right: 1px solid #451a03 !important;
  border-top: 1px solid #451a03 !important;
  border-bottom: 1px solid #451a03 !important;
}
[data-theme="dark"] .ai-coverage-title {
  color: #fbbf24 !important;
}
[data-theme="dark"] .ai-coverage-severity {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #fef08a !important;
}
[data-theme="dark"] .ai-coverage-desc {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .ai-coverage-success,
[data-theme="dark"] .ai-turnover-success {
  background-color: #052e16 !important;
  background: #052e16 !important;
  color: #4ade80 !important;
  border: 1px solid #166534 !important;
}
[data-theme="dark"] .ai-badge-warning {
  background-color: #7f1d1d !important;
  color: #fca5a5 !important;
}
[data-theme="dark"] .ai-badge-success {
  background-color: #052e16 !important;
  color: #4ade80 !important;
}

/* Dark Mode Overrides for Audit Log Badges */
[data-theme="dark"] .audit-badge-default {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
  border: 1px solid #475569 !important;
}
[data-theme="dark"] .audit-badge-success {
  background-color: #052e16 !important;
  color: #4ade80 !important;
  border: 1px solid #166534 !important;
}
[data-theme="dark"] .audit-badge-warning {
  background-color: #451a03 !important;
  color: #fbbf24 !important;
  border: 1px solid #78350f !important;
}
[data-theme="dark"] .audit-badge-danger {
  background-color: #450a0a !important;
  color: #f87171 !important;
  border: 1px solid #7f1d1d !important;
}
[data-theme="dark"] .btn-ai-checkin {
  background-color: #1e293b !important;
  color: #ffffff !important;
  border: 1px solid #475569 !important;
}
[data-theme="dark"] .btn-ai-excuse-points {
  background-color: #166534 !important;
  color: #ffffff !important;
}

/* Dark Mode Overrides for AI Assistant Floating Chatbot */
[data-theme="dark"] .chat-window {
  background-color: #121212 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .chat-body {
  background-color: #121212 !important;
}
[data-theme="dark"] .chat-msg.bot {
  background-color: #1e293b !important;
  background: #1e293b !important;
  color: #f8fafc !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .chat-msg.bot * {
  color: #f8fafc !important;
}
[data-theme="dark"] .ai-tasks-card {
  background-color: #0f172a !important;
  background: #0f172a !important;
  border-left: 3px solid #38bdf8 !important;
  border-right: 1px solid #1e293b !important;
  border-top: 1px solid #1e293b !important;
  border-bottom: 1px solid #1e293b !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .ai-tasks-card strong,
[data-theme="dark"] .ai-tasks-card li {
  color: #f8fafc !important;
}
[data-theme="dark"] .ai-tasks-empty {
  color: #94a3b8 !important;
}
[data-theme="dark"] .chat-suggest-btn {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
  border-color: #0369a1 !important;
}
[data-theme="dark"] .chat-suggest-btn:hover {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .chat-input-bar {
  background-color: #1a1a1a !important;
  border-top-color: #262626 !important;
}
[data-theme="dark"] .chat-input {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #333333 !important;
}

/* Dark Mode Cookie Notification Overrides */
[data-theme="dark"] .cookie-notification {
  background-color: #1e293b !important;
  background: #1e293b !important;
  border: 1px solid #334155 !important;
  color: #f8fafc !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

[data-theme="dark"] .cookie-notification p,
[data-theme="dark"] .cookie-notification span,
[data-theme="dark"] #cookie-notification-txt {
  color: #f8fafc !important;
  font-weight: 500 !important;
}

[data-theme="dark"] .cookie-notification a {
  color: #38bdf8 !important;
  font-weight: 700 !important;
}

[data-theme="dark"] #accept-cookies {
  color: #4ade80 !important;
  font-weight: 800 !important;
}

/* Payroll Exception Queue Badges */
.btn-resolve-exception {
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  background-color: #0d5c3a;
  color: #ffffff !important;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.2s ease;
}
.btn-resolve-exception:hover {
  background-color: #094a2b;
}

.exc-badge-resolved {
  padding: 2px 8px;
  border-radius: 12px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  font-size: 0.75rem;
}
.exc-badge-pending {
  padding: 2px 8px;
  border-radius: 12px;
  background: #fef3c7;
  color: #b45309;
  font-weight: 700;
  font-size: 0.75rem;
}
.exc-badge-severity {
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.7rem;
}
.exc-severity-critical {
  background: #fee2e2;
  color: #b91c1c;
}
.exc-severity-warning {
  background: #fef3c7;
  color: #b45309;
}
.exc-severity-resolved {
  background: #f1f5f9;
  color: #64748b;
  border: 1px solid #cbd5e1;
}

/* Dark Mode Exceptions Overrides */
[data-theme="dark"] .btn-resolve-exception {
  background-color: #166534 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .exc-badge-resolved {
  background: #052e16 !important;
  color: #4ade80 !important;
}
[data-theme="dark"] .exc-badge-pending {
  background: #451a03 !important;
  color: #fbbf24 !important;
}
[data-theme="dark"] .exc-severity-critical {
  background: #450a0a !important;
  color: #f87171 !important;
}
[data-theme="dark"] .exc-severity-resolved {
  background: #1e293b !important;
  color: #94a3b8 !important;
  border: 1px solid #334155 !important;
}

[data-theme="dark"] .preset-note-btn {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
  border-color: #475569 !important;
}
[data-theme="dark"] .preset-note-btn:hover {
  background-color: #0284c7 !important;
  color: #ffffff !important;
}

/* Premium Contrast Rules for Dark Mode */
[data-theme="dark"] .badge-passed,
[data-theme="dark"] .clock-badge-in,
[data-theme="dark"] .badge-success,
[data-theme="dark"] span[style*="background-color:#dcfce7"],
[data-theme="dark"] span[style*="background-color: #dcfce7"],
[data-theme="dark"] span[style*="background-color:#e6f4ea"],
[data-theme="dark"] span[style*="background-color: #e6f4ea"],
[data-theme="dark"] span[style*="background-color:#e8f4ee"],
[data-theme="dark"] span[style*="background-color: #e8f4ee"],
[data-theme="dark"] span[style*="background-color:#ecfdf5"],
[data-theme="dark"] span[style*="background-color: #ecfdf5"],
[data-theme="dark"] span[style*="background-color:#d1fae5"],
[data-theme="dark"] span[style*="background-color:#dcfce7"],
[data-theme="dark"] span[style*="background-color: #dcfce7"] {
  background-color: #15803d !important;
  background: #15803d !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #16a34a !important;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.3) !important;
}

[data-theme="dark"] .badge-pending,
[data-theme="dark"] .badge-progress,
[data-theme="dark"] .avatar-badge,
[data-theme="dark"] span[class*="badge"][style*="background"],
[data-theme="dark"] span[style*="background-color:#fef3c7"],
[data-theme="dark"] span[style*="background-color: #fef3c7"],
[data-theme="dark"] span[style*="background-color:#fef7e0"],
[data-theme="dark"] span[style*="background-color: #fef7e0"],
[data-theme="dark"] span[style*="background-color:#feebc8"],
[data-theme="dark"] span[style*="background-color: #feebc8"] {
  background-color: #d97706 !important;
  background: #d97706 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #f59e0b !important;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.3) !important;
}

[data-theme="dark"] .badge-failed,
[data-theme="dark"] .clock-badge-out,
[data-theme="dark"] span[class*="badge"][style*="background"],
[data-theme="dark"] span[style*="background-color:#fee2e2"],
[data-theme="dark"] span[style*="background-color: #fee2e2"],
[data-theme="dark"] span[style*="background-color:#fce8e6"],
[data-theme="dark"] span[style*="background-color: #fce8e6"] {
  background-color: #dc2626 !important;
  background: #dc2626 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #ef4444 !important;
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3) !important;
}

[data-theme="dark"] .badge-hired,
[data-theme="dark"] span[class*="badge"][style*="background"],
[data-theme="dark"] span[style*="background-color:#dbeafe"],
[data-theme="dark"] span[style*="background-color: #dbeafe"] {
  background-color: #2563eb !important;
  background: #2563eb !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid #3b82f6 !important;
  box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3) !important;
}

/* Preserve vibrant text colors for standalone numbers/metrics without background blocks */
[data-theme="dark"] span[style*="color: #ef4444"],
[data-theme="dark"] span[style*="color:#ef4444"],
[data-theme="dark"] span[style*="color: #f87171"] {
  color: #f87171 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="dark"] span[style*="color: #f59e0b"],
[data-theme="dark"] span[style*="color:#f59e0b"],
[data-theme="dark"] span[style*="color: #fbbf24"] {
  color: #fbbf24 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="dark"] span[style*="color: #22c55e"],
[data-theme="dark"] span[style*="color:#22c55e"],
[data-theme="dark"] span[style*="color: #4ade80"] {
  color: #4ade80 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}
[data-theme="dark"] span[style*="color: #38bdf8"],
[data-theme="dark"] span[style*="color:#38bdf8"] {
  color: #38bdf8 !important;
  background: transparent !important;
  background-color: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

/* Employee detail slide-out drawer */
[data-theme="dark"] .drawer-header {
  background-color: #0a0a0a !important;
  border-bottom-color: #262626 !important;
}
[data-theme="dark"] .drawer-body {
  background-color: #121212 !important;
}

/* Links color */
[data-theme="dark"] a[style*="color: #0056b3"],
[data-theme="dark"] a[style*="color:#0056b3"],
[data-theme="dark"] a[style*="color: #0284c7"],
[data-theme="dark"] a[style*="color:#0284c7"] {
  color: #38bdf8 !important; /* Sky Blue */
}

/* Employees List Container & Row Overrides */
[data-theme="dark"] .employees-list-container {
  background-color: #262626 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .employee-row {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-bottom: 1px solid #262626 !important;
}
[data-theme="dark"] .employee-row:hover {
  background-color: #1a1a1a !important;
}

/* Employee detail drawer card overrides */
[data-theme="dark"] .employee-detail-drawer,
[data-theme="dark"] .drawer-mini-profile-card,
[data-theme="dark"] .drawer-profile-grid {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
}

/* Chatbot container & message overrides */
[data-theme="dark"] .chatWindow,
[data-theme="dark"] .chat-msg.bot,
[data-theme="dark"] .chat-input-bar,
[data-theme="dark"] #chatbot_error_card {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
}

/* Helper buttons and tabs */
[data-theme="dark"] .sidebar-chat-btn,
[data-theme="dark"] .refer-btn,
[data-theme="dark"] .review-onboarding-btn,
[data-theme="dark"] .filter-settings-btn {
  background-color: #161616 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .sidebar-chat-btn:hover,
[data-theme="dark"] .refer-btn:hover,
[data-theme="dark"] .review-onboarding-btn:hover,
[data-theme="dark"] .filter-settings-btn:hover {
  background-color: #262626 !important;
}

/* Clock logs overrides */
[data-theme="dark"] .clock-punch-in-log,
[data-theme="dark"] .clock-punch-out-log {
  background-color: #161616 !important;
  color: #ffffff !important;
}

/* Company Dropdown overrides */
[data-theme="dark"] .company-dropdown-btn {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .company-dropdown-menu {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .company-dropdown-menu select,
[data-theme="dark"] .company-dropdown-menu option {
  background-color: #121212 !important;
  color: #ffffff !important;
}

/* Timeline nodes */
[data-theme="dark"] .timeline-change-node {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
}

/* Filter checkbox overrides */
[data-theme="dark"] #hiring-jobs-filter-popover input[type="checkbox"],
[data-theme="dark"] #hiring-candidates-filter-popover input[type="checkbox"] {
  background-color: #0a0a0a !important;
  border-color: #404040 !important;
}

[data-theme="dark"] #hiring-candidates-filter-popover {
  background-color: #121212 !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}

/* Additional support, stats, chatbot, and shortcut card overrides for dark mode */
[data-theme="dark"] .support-details {
  background-color: #0a0a0a !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}

[data-theme="dark"] .support-intro,
[data-theme="dark"] .support-intro a {
  color: #a3a3a3 !important;
}

[data-theme="dark"] .chatBot,
[data-theme="dark"] .action-shortcut,
[data-theme="dark"] .reg-stats {
  background-color: #121212 !important;
  color: #ffffff !important;
  border-color: #262626 !important;
}

[data-theme="dark"] .company-dropdown-btn:hover {
  background-color: #1a1a1a !important;
}

[data-theme="dark"] .dashboard-table tr:hover {
  background-color: #1a1a1a !important;
}

[data-theme="dark"] .hiring-menu-card:hover {
  background-color: #1a1a1a !important;
}

/* Primary color link override for dark mode readability */
[data-theme="dark"] [style*="color: var(--primary-color)"],
[data-theme="dark"] span[style*="color: var(--primary-color)"] {
  color: #38bdf8 !important; /* Elegant sky blue */
}

/* Job Options Dropdown styling */
#hiring-job-options-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  width: 180px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  padding: 4px 0;
  box-sizing: border-box;
}

.hiring-job-options-item {
  width: 100%;
  padding: 10px 16px;
  border: none;
  background: none;
  text-align: left;
  font-size: 0.85rem;
  font-weight: 500;
  color: #334155;
  cursor: pointer;
  display: block;
  font-family: inherit;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.hiring-job-options-item:hover {
  background-color: #f1f5f9;
  color: #0f172a;
}

.hiring-job-options-item.deactivate,
.hiring-job-options-item.delete {
  color: #ef4444;
}

.hiring-job-options-item.deactivate:hover,
.hiring-job-options-item.delete:hover {
  background-color: #fef2f2;
  color: #b91c1c;
}

/* Dark mode styling for job options dropdown */
[data-theme="dark"] #hiring-job-options-dropdown {
  background-color: #121212 !important;
  border: 1px solid #262626 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6) !important;
}

[data-theme="dark"] .hiring-job-options-item {
  color: #cbd5e1 !important;
}

[data-theme="dark"] .hiring-job-options-item:hover {
  background-color: #1e1e1e !important;
  color: #ffffff !important;
}

[data-theme="dark"] .hiring-job-options-item.deactivate,
[data-theme="dark"] .hiring-job-options-item.delete {
  color: #f87171 !important;
}

[data-theme="dark"] .hiring-job-options-item.deactivate:hover,
[data-theme="dark"] .hiring-job-options-item.delete:hover {
  background-color: #2d1a1a !important;
  color: #fca5a5 !important;
}

/* Preferences Drawer & Cards */
.hiring-preferences-drawer {
  background-color: #ffffff;
  padding: 0;
}

[data-theme="dark"] .hiring-preferences-drawer {
  background-color: #121212 !important;
}

.preferences-card-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
}

.preferences-card {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

[data-theme="dark"] .preferences-card {
  background-color: #1a1a1a;
  border-color: #262626;
}

.preferences-card:hover {
  border-color: #0056b3;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

[data-theme="dark"] .preferences-card:hover {
  border-color: #38bdf8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.preferences-card-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.preferences-card-content {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  line-height: 1.35;
}

.preferences-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

[data-theme="dark"] .preferences-card-title {
  color: #f8fafc;
}

.preferences-card-desc {
  font-size: 0.8rem;
  color: #64748b;
}

[data-theme="dark"] .preferences-card-desc {
  color: #94a3b8;
}

.preferences-card-arrow {
  font-size: 1.1rem;
  color: #cbd5e1;
  font-weight: 700;
  margin-left: 8px;
  flex-shrink: 0;
}

[data-theme="dark"] .preferences-card-arrow {
  color: #404040;
}

/* Reports Drawer & Card Styles */
.hiring-reports-drawer {
  background-color: #ffffff;
  padding: 0;
}
[data-theme="dark"] .hiring-reports-drawer {
  background-color: #121212 !important;
}

.hiring-report-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid #eaeff2;
  cursor: pointer;
  transition: background-color 0.2s;
  box-sizing: border-box;
}
.hiring-report-row:hover {
  background-color: #f8fafc;
}
[data-theme="dark"] .hiring-report-row {
  border-bottom-color: #262626 !important;
}
[data-theme="dark"] .hiring-report-row:hover {
  background-color: #1a1a1a !important;
}

.hiring-report-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px 0;
}
[data-theme="dark"] .hiring-report-title {
  color: #f8fafc;
}

.hiring-report-desc {
  font-size: 0.75rem;
  color: #64748b;
  margin: 0;
}
[data-theme="dark"] .hiring-report-desc {
  color: #94a3b8;
}

/* Questionnaires View Dark Mode overrides */
[data-theme="dark"] .hiring-questionnaire-banner-card {
  background-color: #121212 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .hiring-questionnaire-list-card {
  background-color: #121212 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] #questionnaires-list-header {
  background-color: #1a1a1a !important;
  border-bottom-color: #262626 !important;
  color: #f8fafc !important;
}
[data-theme="dark"] #hiring-questionnaires-view h2 {
  color: #f8fafc !important;
}
[data-theme="dark"] #hiring-questionnaires-view p {
  color: #94a3b8 !important;
}
[data-theme="dark"] #hiring-questionnaires-view h4 {
  color: #f8fafc !important;
}
[data-theme="dark"] #questionnaire-name-input {
  background-color: #0a0a0a !important;
  border-color: #262626 !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .question-row-input {
  background-color: #0a0a0a !important;
  border-color: #262626 !important;
  color: #f8fafc !important;
}

/* Direct Deposit Paystub Detail Modal Dark Mode */
[data-theme="dark"] #paystub-detail-dialog {
  background-color: #121212 !important;
  border: 1px solid #262626 !important;
}
[data-theme="dark"] .paystub-info-grid {
  background-color: #0a0a0a !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .paystub-table thead tr {
  border-bottom-color: #262626 !important;
}
[data-theme="dark"] .paystub-table tbody tr {
  border-bottom-color: #1a1a1a !important;
}
[data-theme="dark"] .paystub-net-highlight {
  background-color: #052e16 !important;
  border-color: #14532d !important;
}
[data-theme="dark"] .paystub-net-highlight strong {
  color: #4ade80 !important;
}
[data-theme="dark"] .paystub-net-highlight span {
  color: #86efac !important;
}

/* Company Dropdown Styles */
.company-dropdown-item:hover {
  background-color: #f1f5f9 !important;
}
[data-theme="dark"] .company-dropdown-item {
  background-color: #121212 !important;
}
[data-theme="dark"] .company-dropdown-item:hover {
  background-color: #1e293b !important;
}
[data-theme="dark"] #company-dropdown-trigger {
  background-color: #121212 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] #employees-company-dropdown-menu,
[data-theme="dark"] #company-assignments-dropdown-menu {
  background-color: #121212 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] #company-details-container .grid-card,
[data-theme="dark"] #company-details-container .grid-card > div {
  background-color: #121212 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] #edit-company-details-btn {
  border-color: #262626 !important;
  color: #f8fafc !important;
}

/* Settings Items Hover & Drag and Drop Styles */
.settings-item {
  transition: background-color 0.2s ease;
}
.settings-item:hover {
  background-color: #f8fafc;
}
#company-edit-logo-dropzone {
  transition: all 0.2s ease;
}
#company-edit-logo-dropzone:hover,
#company-edit-logo-dropzone.dragover {
  border-color: var(--primary-color) !important;
  background-color: #f0f7ff;
}

/* Dark theme overrides */
[data-theme="dark"] #company-edit-profile-container .grid-card,
[data-theme="dark"] #company-edit-profile-container .grid-card > div,
[data-theme="dark"] #company-settings-container .grid-card,
[data-theme="dark"] #company-settings-container .grid-card > div {
  background-color: #121212 !important;
  border-color: #262626 !important;
  color: #f8fafc !important;
}
[data-theme="dark"] #company-edit-display-name {
  background-color: #1a1a1a !important;
  border-color: #333333 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .settings-item:hover {
  background-color: #1e293b !important;
}
[data-theme="dark"] #company-edit-logo-dropzone {
  border-color: #333333 !important;
  background-color: #1a1a1a !important;
}
[data-theme="dark"] #company-edit-logo-dropzone:hover,
[data-theme="dark"] #company-edit-logo-dropzone.dragover {
  border-color: #3b82f6 !important;
  background-color: #1e293b !important;
}
[data-theme="dark"] #company-edit-cancel-btn {
  border-color: #262626 !important;
  color: #f8fafc !important;
}
[data-theme="dark"] #company-edit-save-btn {
  background-color: #1e3a8a !important;
}

/* Collapsible Accordion & Roles Row styling */
.accordion-header {
  transition: background-color 0.2s ease;
}
.accordion-header:hover {
  background-color: #f8fafc !important;
}
.role-row {
  cursor: pointer;
  transition: background-color 0.2s ease;
}
.role-row:hover {
  background-color: #f8fafc;
}
[data-theme="dark"] .accordion-item {
  background-color: #121212 !important;
  border-color: #262626 !important;
}
[data-theme="dark"] .accordion-header {
  background-color: #121212 !important;
  color: #f8fafc !important;
}
[data-theme="dark"] .accordion-header:hover {
  background-color: #1e293b !important;
}
[data-theme="dark"] .accordion-body {
  background-color: #1a1a1a !important;
  border-color: #262626 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .role-row:hover {
  background-color: #1e293b !important;
}

/* Global Header Company Selector styling */
#global-company-dropdown-btn {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  box-shadow: none !important;
}

#global-company-dropdown-btn:hover {
  background-color: rgba(255, 255, 255, 0.22) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* ========================================== */
/* Human Resources Workspace Styles          */
/* ========================================== */
.hr-dashboard-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 24px;
}
@media (max-width: 1024px) {
  .hr-dashboard-grid {
    grid-template-columns: 1fr;
  }
}
.hr-report-link {
  color: var(--primary-color);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-smooth);
}
.hr-report-link:hover {
  text-decoration: underline;
  color: var(--primary-hover);
}
.hr-action-btn {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 16px 12px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  background-color: #ffffff;
  transition: var(--transition-smooth);
}
.hr-action-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 92, 58, 0.08);
  border-color: var(--primary-color);
}
.hr-row-link-card {
  transition: var(--transition-smooth);
}
.hr-row-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(13, 92, 58, 0.08);
  border-color: var(--primary-color) !important;
}
/* Dark mode support */
[data-theme="dark"] .hr-action-btn {
  background-color: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .hr-action-btn:hover {
  background-color: #273549;
  border-color: var(--primary-color);
}
[data-theme="dark"] .hr-row-link-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .hr-row-link-card:hover {
  background-color: #273549 !important;
  border-color: var(--primary-color) !important;
}
[data-theme="dark"] #hr-val-gen-x,
[data-theme="dark"] #hr-val-gen-y,
[data-theme="dark"] #hr-val-gen-z {
  color: #f1f5f9;
}

[data-theme="dark"] #hr-library-dropzone {
  background-color: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] #hr-library-dropzone:hover {
  background-color: #273549;
  border-color: var(--primary-color);
}

/* ==========================================
   ANALYTICS & REPORTS WORKSPACE STYLES
   ========================================== */

/* Header & Tabs */
.analytics-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1.5px solid #cbd5e1;
  padding-bottom: 8px;
  margin-bottom: 24px;
}
.analytics-title-area {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.analytics-tabs {
  display: flex;
  gap: 16px;
  margin-bottom: -10px; /* aligns to the bottom border line */
}
.analytics-tab {
  background: none;
  border: none;
  padding: 8px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  transition: all 0.2s ease;
  font-family: inherit;
}
.analytics-tab:hover {
  color: #1e293b;
}
.analytics-tab.active {
  color: #0056b3;
  border-bottom-color: #0056b3;
}
.analytics-header-actions {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 6px;
}
.action-link-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0056b3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  font-family: inherit;
}
.action-link-btn:hover {
  text-decoration: underline;
}

/* Grid layout */
.analytics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.analytics-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Tiles structure */
.analytics-tile {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  box-sizing: border-box;
}
.analytics-tile:hover {
  box-shadow: 0 4px 6px -1px rgba(0,0,0,0.08), 0 2px 4px -1px rgba(0,0,0,0.04);
  transform: translateY(-1px);
}

.tile-header h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  margin: 0 0 16px 0;
}
.tile-header-with-icon {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.tile-header-with-icon h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  margin: 0;
}

/* Icon colors matching Matchecks dashboard */
.header-icon-wrapper,
.tile-icon-wrapper {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}
.green-icon { background-color: #f0fdf4; color: #166534; }
.blue-icon { background-color: #eff6ff; color: #1e40af; }
.purple-icon { background-color: #faf5ff; color: #6b21a8; }
.red-icon { background-color: #fff5f5; color: #c53030; }
.cyan-icon { background-color: #ecfeff; color: #0891b2; }
.pink-icon { background-color: #fdf2f8; color: #be185d; }

/* Split Report library tile */
.report-library-split {
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  padding: 12px;
  justify-content: space-around;
}
.split-btn {
  background: none;
  border: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-grow: 1;
  font-family: inherit;
  transition: opacity 0.2s ease;
}
.split-btn:hover {
  opacity: 0.85;
}
.split-icon {
  font-size: 1.5rem;
}
.star-icon {
  color: #f59e0b;
}
.split-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1e293b;
}
.split-divider {
  width: 1px;
  height: 48px;
  background-color: #cbd5e1;
}

/* Info tile with horizontal icon layout */
.tile-content-with-icon {
  display: flex;
  align-items: center;
  gap: 16px;
}
.tile-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tile-info h3 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #475569;
  margin: 0;
}
.tile-link {
  font-size: 0.8rem;
  font-weight: 700;
  color: #0056b3;
  text-decoration: none;
}
.tile-link:hover {
  text-decoration: underline;
}

/* Registration metrics */
.registration-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  background-color: #f8fafc;
  border: 1px solid #eaeff2;
  border-radius: 6px;
  padding: 12px;
  margin-bottom: 12px;
}
.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.metric-lbl {
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
}
.primary-tile-btn {
  background-color: #0056b3;
  color: #ffffff;
  border: none;
  border-radius: 18px;
  padding: 10px 16px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  width: 100%;
  text-align: center;
  transition: background-color 0.2s ease;
  font-family: inherit;
}
.primary-tile-btn:hover {
  background-color: #004094;
}

/* Lists cards inside tiles */
.tile-list {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}
.tile-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
}
.tile-list li:last-child {
  border-bottom: none;
}
.list-item-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0056b3;
  text-decoration: none;
  font-family: inherit;
}
.list-item-link:hover {
  text-decoration: underline;
}
.icon-list li {
  gap: 10px;
}
.list-item-icon {
  font-size: 1rem;
}
.tile-footer {
  border-top: 1px solid #f1f5f9;
  padding-top: 12px;
  margin-top: auto;
}
.footer-link-btn {
  background: none;
  border: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: #0056b3;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  font-family: inherit;
}
.footer-link-btn:hover {
  text-decoration: underline;
}

/* Responsiveness */
@media (max-width: 1024px) {
  .analytics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .analytics-grid {
    grid-template-columns: 1fr;
  }
  .analytics-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .analytics-header-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* Dark mode overrides */
[data-theme="dark"] .analytics-tile {
  background-color: #1e293b;
  border-color: #334155;
}
[data-theme="dark"] .tile-header h3,
[data-theme="dark"] .tile-header-with-icon h3,
[data-theme="dark"] .tile-info h3 {
  color: #cbd5e1;
}
[data-theme="dark"] .report-library-split {
  background-color: #0f172a;
  border-color: #334155;
}
[data-theme="dark"] .split-text {
  color: #cbd5e1;
}
[data-theme="dark"] .split-divider {
  background-color: #334155;
}
[data-theme="dark"] .registration-metrics {
  background-color: #0f172a;
  border-color: #334155;
}
[data-theme="dark"] .metric-lbl {
  color: #94a3b8;
}
[data-theme="dark"] .registration-desc {
  color: #94a3b8 !important;
}
[data-theme="dark"] .tile-list li {
  border-bottom-color: #334155;
}
[data-theme="dark"] .tile-footer {
  border-top-color: #334155;
}
[data-theme="dark"] .analytics-tab:hover {
  color: #e2e8f0;
}
[data-theme="dark"] .analytics-tab.active {
  color: #38bdf8;
  border-bottom-color: #38bdf8;
}
[data-theme="dark"] .action-link-btn,
[data-theme="dark"] .tile-link,
[data-theme="dark"] .list-item-link,
[data-theme="dark"] .footer-link-btn {
  color: #38bdf8;
}
[data-theme="dark"] .primary-tile-btn {
  background-color: #0284c7;
}
[data-theme="dark"] .primary-tile-btn:hover {
  background-color: #0369a1;
}
[data-theme="dark"] .library-container {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .library-search-bar input {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}

[data-theme="dark"] .analytics-header {
  border-bottom-color: #334155;
}

/* Document delete button styles */
.btn-doc-row-delete {
  padding: 4px 8px;
  font-size: 0.75rem;
  border: 1px solid #ef4444;
  color: #ef4444;
  background: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.btn-doc-row-delete:hover {
  background-color: #ef4444;
  color: #ffffff;
}
.btn-bulk-delete {
  background-color: #ef4444;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: none;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  transition: background-color 0.2s;
}
.btn-bulk-delete:hover {
  background-color: #dc2626;
}

/* Mailbox styles */
.mailbox-sidebar-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
  font-size: 0.9rem;
  font-weight: 500;
  color: #5f6368;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all 0.2s ease;
}
.mailbox-sidebar-btn:hover {
  background-color: #f1f3f4;
  color: var(--text-primary);
}
.mailbox-sidebar-btn.active {
  background-color: #e8f0fe;
  color: #1a73e8;
  font-weight: 600;
  border-left: 3px solid #1a73e8;
}
.mailbox-msg-item {
  padding: 16px;
  border-bottom: 1px solid #eaeff2;
  cursor: pointer;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  transition: background-color 0.2s ease;
  position: relative;
}
.mailbox-msg-item:hover {
  background-color: #f8fafc;
}
.mailbox-msg-item.active {
  background-color: #e8f0fe;
}
.mailbox-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: #7c4dff;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.mailbox-msg-item.unread .msg-subject {
  font-weight: 700;
  color: #000000;
}
.mailbox-msg-item.unread .unread-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1a73e8;
  position: absolute;
  right: 16px;
  top: 20px;
}

/* Dark Mode support for Mailbox */
[data-theme="dark"] .mailbox-container {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .mailbox-sidebar {
  background-color: #0f172a !important;
  border-right-color: #334155 !important;
}
[data-theme="dark"] .mailbox-sidebar-btn {
  color: #94a3b8 !important;
}
[data-theme="dark"] .mailbox-sidebar-btn:hover {
  background-color: #1e293b !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .mailbox-sidebar-btn.active {
  background-color: #1e293b !important;
  color: #38bdf8 !important;
  border-left-color: #38bdf8 !important;
}
[data-theme="dark"] .mailbox-list-pane {
  border-right-color: #334155 !important;
}
[data-theme="dark"] .mailbox-list-pane div {
  border-bottom-color: #334155 !important;
}
[data-theme="dark"] .mailbox-list-pane input {
  background-color: #0f172a !important;
  border-color: #334155 !important;
  color: #f1f5f9 !important;
}
[data-theme="dark"] .mailbox-msg-item {
  border-bottom-color: #334155 !important;
}
[data-theme="dark"] .mailbox-msg-item:hover {
  background-color: #1e293b !important;
}
[data-theme="dark"] .mailbox-msg-item.active {
  background-color: #334155 !important;
}
[data-theme="dark"] .mailbox-detail-pane {
  background-color: #0f172a !important;
}
[data-theme="dark"] .mailbox-msg-item.unread .msg-subject {
  color: #ffffff;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* App Hub launchpad styles */
.apphub-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}
.apphub-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-color, #0a472c) !important;
  box-shadow: 0 12px 20px -8px rgba(0, 0, 0, 0.15) !important;
}
[data-theme="dark"] .apphub-card {
  background-color: #1e293b !important;
  border-color: #334155 !important;
}
[data-theme="dark"] .apphub-card h3 {
  color: #f1f5f9 !important;
}
[data-theme="dark"] .apphub-card p {
  color: #94a3b8 !important;
}

/* Role Assignments buttons native CSS hover styles */
.save-role-assignment-btn {
  background-color: transparent !important;
  color: var(--primary-color) !important;
  transition: all 0.2s ease-in-out !important;
}
.save-role-assignment-btn:hover {
  background-color: var(--primary-color) !important;
  color: #ffffff !important;
}

.remove-role-assignment-btn {
  background-color: transparent !important;
  color: #ef4444 !important;
  transition: all 0.2s ease-in-out !important;
}
.remove-role-assignment-btn:hover {
  background-color: #ef4444 !important;
  color: #ffffff !important;
}

/* Custom grid styles for Lumperlink reports format */
.grid-group-bar {
  background-color: #2e353f;
  color: #ffffff;
  padding: 6px 12px;
  font-size: 11px;
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  font-weight: 500;
}

.grid-table-scrollable {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid #b5b5b5;
  border-top: none;
  background-color: #ffffff;
}

.grid-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
}

.grid-table th {
  background: linear-gradient(to bottom, #f2f2f2, #dcdcdc) !important;
  color: #333333 !important;
  padding: 8px 6px !important;
  border-right: 1px solid #b5b5b5 !important;
  border-bottom: 1px solid #b5b5b5 !important;
  font-weight: bold !important;
  text-align: left !important;
  white-space: nowrap !important;
}

.grid-table th:last-child {
  border-right: none !important;
}

.grid-table td {
  padding: 6px 8px !important;
  border-right: 1px solid #d3d3d3 !important;
  border-bottom: 1px solid #d3d3d3 !important;
  color: #000000 !important;
  background-color: #ffffff !important;
  white-space: nowrap !important;
}

.grid-table td:last-child {
  border-right: none !important;
}

.grid-table tr:nth-child(even) td {
  background-color: #f9f9f9 !important;
}

.grid-table tr:hover td {
  background-color: #eaf7ec !important;
}

.grid-summary-footer {
  background-color: #ffeb9c;
  color: #000000;
  padding: 8px 15px;
  font-size: 11px;
  font-weight: bold;
  border: 1px solid #ffd351;
  border-top: none;
  border-bottom-left-radius: 4px;
  border-bottom-right-radius: 4px;
}

.grid-pagination-bar {
  background-color: #e5e7eb;
  border: 1px solid #b5b5b5;
  border-top: none;
  padding: 6px 12px;
  font-size: 10px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.grid-filter-row td {
  padding: 3px !important;
  background-color: #f2f2f2 !important;
  border-right: 1px solid #b5b5b5 !important;
  border-bottom: 1px solid #b5b5b5 !important;
}

.grid-filter-row td:last-child {
  border-right: none !important;
}

.filter-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #ccc;
  padding: 2px 4px;
  font-size: 10px;
  height: 18px;
}

/* Force Concentra Authorization modal to always render in clean light paper theme, even when the application is in dark mode */
#mdc-dialog-concentra-auth,
[data-theme="dark"] #mdc-dialog-concentra-auth {
  color: #000000 !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__surface,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__surface {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #94a3b8 !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__body,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body {
  background-color: #ffffff !important;
  color: #000000 !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__body *,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body * {
  color: #000000 !important;
  border-color: #000000 !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__body div[style*="background-color:"],
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body div[style*="background-color:"] {
  background-color: #f8fafc !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__body input[type="text"],
#mdc-dialog-concentra-auth .mdc-dialog__body input[type="date"],
#mdc-dialog-concentra-auth .mdc-dialog__body textarea,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body input[type="text"],
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body input[type="date"],
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body textarea {
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 1px solid #000000 !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__body input[type="checkbox"],
#mdc-dialog-concentra-auth .mdc-dialog__body input[type="radio"],
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body input[type="checkbox"],
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body input[type="radio"] {
  accent-color: #000000 !important;
  filter: invert(0) !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__body #concentra-signature-pad,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__body #concentra-signature-pad {
  background-color: #f8fafc !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__footer,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__footer {
  background-color: #f1f5f9 !important;
  border-top: 1px solid #cbd5e1 !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__footer button,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__footer button {
  color: inherit !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__footer #concentra-btn-save-send,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__footer #concentra-btn-save-send {
  background-color: #0d5c3a !important;
  color: #ffffff !important;
  border: none !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__footer #concentra-btn-cancel,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__footer #concentra-btn-cancel {
  background-color: #ffffff !important;
  color: #64748b !important;
  border: 1px solid #cbd5e1 !important;
}

#mdc-dialog-concentra-auth .mdc-dialog__footer #concentra-btn-print,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__footer #concentra-btn-print {
  background-color: #ffffff !important;
  color: #0d5c3a !important;
  border: 1px solid #0d5c3a !important;
}
#mdc-dialog-concentra-auth .mdc-dialog__footer #concentra-btn-print *,
[data-theme="dark"] #mdc-dialog-concentra-auth .mdc-dialog__footer #concentra-btn-print * {
  color: #0d5c3a !important;
}

/* Print Styles for Concentra Authorization Form */
@media print {
  body {
    background-color: #ffffff !important;
    color: #000000 !important;
  }
  body * {
    visibility: hidden;
  }
  #mdc-dialog-concentra-auth,
  #mdc-dialog-concentra-auth * {
    visibility: visible;
  }
  #mdc-dialog-concentra-auth {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: auto;
    display: block !important;
    background-color: transparent !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
    z-index: 99999;
  }
  #mdc-dialog-concentra-auth .mdc-dialog__surface {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    max-width: 100% !important;
    height: auto;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  #concentra-print-footer,
  #concentra-close-x,
  .mdc-dialog__header button {
    display: none !important;
  }
}

/* Hyper-V and Remote Server Display Optimization */
@media screen and (max-height: 850px), screen and (max-width: 1024px) {
  body {
    overflow-y: auto !important;
    justify-content: flex-start !important;
    padding-top: 15px;
    padding-bottom: 25px;
  }
  .payx-logo {
    margin-top: 15px !important;
    margin-bottom: 12px !important;
  }
  .payx-logo img {
    height: 44px !important;
  }
  .outer-wrapper {
    max-width: 480px !important;
    width: 95% !important;
    gap: 16px !important;
    margin-top: 5px !important;
  }
  .card-content {
    padding: 24px 20px !important;
    gap: 18px !important;
  }
  .mdc-text-field {
    height: 52px !important;
  }
  .next-button {
    height: 44px !important;
  }
}


