@charset "UTF-8";
/**
 * Accounting Hub Admin Styles - Main Entry Point
 * 
 * This file imports all core admin SCSS components that provide
 * the foundation styling for all admin tools in the ecosystem.
 * 
 * Compiled to: assets/css/admin.css
 */
/* Core Foundation */
/**
 * Font Face Declarations
 * 
 * DM Sans (for titles) and Barlow (for body text) are loaded from Google Fonts CDN.
 * 
 * The fonts are enqueued in src/Admin/Menu/Assets/AssetEnqueuer.php using wp_enqueue_style().
 * This approach provides better performance, global CDN caching, and eliminates
 * the need to store font files in the repository.
 * 
 * Google Fonts URL:
 * https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Barlow:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap
 */
/* No @font-face declarations needed - fonts are loaded via Google Fonts CDN */
/**
 * Design System Variables
 * 
 * SCSS variables for compile-time operations (functions, math, etc.)
 * CSS custom properties for runtime theming and browser compatibility
 */
/**
 * SCSS Mixins
 * 
 * Reusable mixins for media queries, common patterns, and utilities
 * Shared across accounting-hub and vsme-plugin
 */
:root {
  /* Color Palette ######################################################### */
  /* System */
  --color-black: #1f2227;
  --color-white: #fff;
  --color-bg-dark: #1f2227;
  --color-bg-light: #f7f7f7;
  --color-error: #e62d2d;
  --color-success: #187c34;
  --color-validation: #f08e2c;
  --color-reviewed: #0A9DB7;
  /* Green */
  --color-green-50: #fafff5;
  --color-green-100: #abeb68;
  --color-green-200: #85c83e;
  --color-green-300: #69b518;
  --color-green-400: #417b03;
  --color-green-500: #324c16;
  --color-green-600: #21330f;
  --color-green-700: #111907;
  /* Orange */
  --color-orange-50: #FBF2EF;
  --color-orange-100: #ECC3B4;
  --color-orange-200: #E2A68F;
  --color-orange-300: #D57D5C;
  --color-orange-400: #CD643D;
  --color-orange-500: #C13D0C;
  --color-orange-600: #B0380B;
  --color-orange-700: #892B09;
  --color-orange-800: #6A2207;
  --color-orange-900: #511A05;
  /* Neutral */
  --color-neutral-50: #d6d7d9;
  --color-neutral-100: #b8bbbf;
  --color-neutral-200: #898f98;
  --color-neutral-300: #484d57;
  --color-neutral-400: #2e323a;
  --color-neutral-500: #1a1c21;
  /* Semantic Colors */
  --color-bg: var(--color-bg-light);
  --color-bg-secondary: var(--color-white);
  /* Fields - Default Orange Palette (admin & dossier de travail) */
  --color-form: var(--color-orange-50);
  --color-form-disabled: var(--color-neutral-50);
  --color-form-text-disabled: var(--color-neutral-200);
  --color-stroke: var(--color-orange-400);
  --color-stroke-hover: var(--color-orange-200);
  --color-stroke-focused: var(--color-orange-400);
  --color-stroke-loading: var(--color-orange-100);
  --color-form-validation: var(--color-orange-50);
  --color-primary: var(--color-orange-500);
  --color-primary-hover: var(--color-orange-300);
  --color-primary-active: var(--color-orange-700);
  --color-stroke-subtle-bg: rgb(205 100 61 / 5%);
  --color-stroke-subtle-shadow: rgb(205 100 61 / 10%);
  /* Additional semantic colors that don't vary by palette */
  --color-stroke-validation: var(--color-validation);
  --color-title-description: var(--color-neutral-200);
  --color-stroke-error: var(--color-error);
  --color-form-error: #ffefef;
  --color-stroke-success: var(--color-success);
  /* Border Radius */
  --border-radius-sm: 4px;
  --border-radius-md: 8px;
  --border-radius-lg: 16px;
  --border-radius-xl: 24px;
  --border-radius-xxl: 32px;
  /* Typography ######################################################### */
  --font-family-titles: 'DM Sans', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, sans-serif;
  --font-family-body: 'Barlow', -apple-system, blinkmacsystemfont, 'Segoe UI', roboto, sans-serif;
  --font-size-base: 16px;
  --font-weight-thin: 300;
  --font-weight-bold: 700;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  /* Headlines */
  --font-h1: var(--font-weight-bold) 3.5rem/1.2 var(--font-family-titles);
  --font-h2: var(--font-weight-normal) 2.5rem/1.2 var(--font-family-titles);
  --font-h3: var(--font-weight-normal) 1.75rem/1.2 var(--font-family-titles);
  --font-h4: var(--font-weight-normal) 1.25rem/1.2 var(--font-family-titles);
  /* Body */
  --font-body-1: var(--font-weight-normal) 1.125rem/1.4 var(--font-family-body);
  --font-body-1-bold: var(--font-weight-bold) 1.125rem/1.4 var(--font-family-body);
  --font-body-2: var(--font-weight-normal) 1rem/1.4 var(--font-family-body);
  --font-body-2-bold: var(--font-weight-bold) 1rem/1.4 var(--font-family-body);
  --font-body-3: var(--font-weight-normal) 0.875rem/1.4 var(--font-family-body);
  --font-body-3-bold: var(--font-weight-bold) 0.875rem/1.4 var(--font-family-body);
  /* Buttons */
  --font-button: var(--font-weight-medium) 1.25rem/24px var(--font-family-body);
  --font-button-small: var(--font-weight-medium) 1rem/24px var(--font-family-body);
  /* Field */
  --font-field-placeholder: var(--font-weight-normal) 1rem/24px var(--font-family-body);
  --font-field-title: var(--font-weight-bold) 0.75rem/1 var(--font-family-body);
  --font-field-description: var(--font-weight-normal) 0.75rem/1 var(--font-family-body);
  /* Breakpoints */
  --breakpoint-md: 1024px;
}

/* Mobile Typography Adjustments */
@media (width <= 767px) {
  :root {
    --font-h1: var(--font-weight-bold) 2rem/1.2 var(--font-family-titles);
    --font-h2: var(--font-weight-bold) 1.75rem/1.2 var(--font-family-titles);
    --font-h3: var(--font-weight-bold) 1.5rem/1.2 var(--font-family-titles);
    --font-h4: var(--font-weight-bold) 1.25rem/1.2 var(--font-family-titles);
    --font-body-1: var(--font-weight-normal) 1rem/1.4 var(--font-family-body);
    --font-body-1-bold: var(--font-weight-bold) 1rem/1.4 var(--font-family-body);
    --font-body-2: var(--font-weight-normal) 0.875rem/1.4 var(--font-family-body);
    --font-body-2-bold: var(--font-weight-bold) 0.875rem/1.4 var(--font-family-body);
    --font-body-3: var(--font-weight-normal) 0.75rem/1.4 var(--font-family-body);
    --font-body-3-bold: var(--font-weight-bold) 0.75rem/1.4 var(--font-family-body);
    --font-button: var(--font-weight-medium) 1rem/24px var(--font-family-body);
  }
}
/* Green Palette Theme - For VSME Form */
.vsme-form-theme {
  --color-form: var(--color-green-50);
  --color-form-disabled: var(--color-neutral-50);
  --color-form-text-disabled: var(--color-neutral-200);
  --color-stroke: var(--color-green-400);
  --color-stroke-hover: var(--color-green-200);
  --color-stroke-focused: var(--color-green-400);
  --color-stroke-loading: var(--color-green-100);
  --color-form-validation: var(--color-green-50);
  --color-primary: var(--color-green-400);
  --color-primary-hover: var(--color-green-300);
  --color-primary-active: var(--color-green-600);
  --color-stroke-subtle-bg: rgb(65 123 3 / 5%);
  --color-stroke-subtle-shadow: rgb(65 123 3 / 10%);
}

/**
 * Design System Variables
 * 
 * SCSS variables for compile-time operations (functions, math, etc.)
 * CSS custom properties for runtime theming and browser compatibility
 */
html.wp-toolbar {
  padding-top: 0;
}

#wpcontent, #wpfooter {
  margin-left: 0;
}

/* Hide WordPress admin bar */
#wpadminbar {
  display: none !important;
}

html {
  margin-top: 0 !important;
}

body {
  margin: 0;
}
body.admin-bar {
  padding-top: 0 !important;
}

p {
  margin: 0;
}

ul {
  padding: 0;
}

/* Shared Components */
/**
 * Shared Typography primitives (headings and body)
 */
h1,
.h1,
h2,
.h2,
h3,
.h3,
h4,
.h4 {
  font-family: var(--font-family-titles);
  color: var(--color-black);
  margin: 0;
}

h1,
.h1 {
  font: var(--font-h1);
}

h2,
.h2 {
  font: var(--font-h2);
}

h3,
.h3 {
  font: var(--font-h3);
}

h4,
.h4 {
  font: var(--font-h4);
}

/* Body */
body, p, span, label, input, textarea, select, option, button, td, th, a {
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  color: var(--color-black);
}

/* Fields */
input::placeholder {
  font: var(--font-field-placeholder);
}

/**
 * Shared Button Components (used by admin tools and VSME frontend)
 */
/* Reset button styles */
button {
  background-color: transparent;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
button:hover {
  border-color: initial;
}

/* Primary Button */
.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-white);
  border-radius: var(--border-radius-xxl);
  padding: 0.6rem 1.5rem;
  border: 2px solid var(--color-primary);
  display: inline-block;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
  text-decoration: none;
}
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border: 2px solid var(--color-primary-hover);
  color: var(--color-black);
}
.btn-primary:active {
  background-color: var(--color-primary-active);
  border: 2px solid var(--color-primary-active);
  color: var(--color-white);
}
.btn-primary:focus {
  background-color: var(--color-primary-hover);
  border: 2px solid var(--color-primary-active);
  color: var(--color-black);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Secondary Button */
.btn-secondary {
  background-color: var(--color-bg);
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--border-radius-xxl);
  padding: 0.6rem 1.5rem;
  transition: background-color 0.2s ease-out, border-color 0.2s ease-out, color 0.2s ease-out;
  text-decoration: none;
  display: inline-block;
}
.btn-secondary > span {
  color: var(--color-primary);
}
.btn-secondary:hover {
  border: 2px solid var(--color-primary);
  background-color: var(--color-primary-hover);
  color: var(--color-black);
}
.btn-secondary:hover > span {
  color: var(--color-black);
}
.btn-secondary:active {
  border: 2px solid var(--color-primary);
  color: var(--color-primary-active);
}
.btn-secondary:focus {
  border: 2px solid var(--color-primary);
  color: var(--color-primary);
}
.btn-secondary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-secondary {
  /* Loading state for secondary buttons */
}
.btn-secondary.btn-loading {
  color: var(--color-bg); /* Make text invisible */
  position: relative;
}
.btn-secondary.btn-loading::after {
  content: "";
  position: absolute;
  top: calc(50% - 10px);
  left: calc(50% - 10px);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid var(--color-stroke-loading);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

/* Tertiary Button */
.btn-tertiary {
  background-color: transparent;
  color: var(--color-primary);
  border: none;
  padding: 0.6rem 1.5rem;
  transition: color 0.2s ease-out;
  cursor: pointer;
}
.btn-tertiary.--small {
  padding: 0.5rem;
}
.btn-tertiary:hover {
  color: var(--color-primary-active);
}
.btn-tertiary:active {
  color: var(--color-primary-active);
}
.btn-tertiary:focus {
  color: var(--color-primary-active);
  outline: 2px solid var(--color-primary-active);
}
.btn-tertiary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-icon {
  transition: transform 0.2s ease-out;
}
.btn-icon:hover {
  transform: scale3d(0.9, 0.9, 0.9);
}
.btn-icon {
  /* Icon slide animation variant - translates icon 4px to the right on hover */
}
.btn-icon-slide {
  transform: none;
  /* Target direct icon children */
}
.btn-icon-slide > svg, .btn-icon-slide > i, .btn-icon-slide > .icon, .btn-icon-slide::before {
  transition: transform 0.2s ease-out;
}
.btn-icon-slide:hover {
  transform: none;
}
.btn-icon-slide:hover > svg, .btn-icon-slide:hover > i, .btn-icon-slide:hover > .icon, .btn-icon-slide:hover::before {
  transform: translate3d(2px, 0, 0);
}
.btn-icon-slide {
  /* WordPress admin menu icon support */
}
.btn-icon-slide .wp-menu-image {
  transition: transform 0.2s ease-out;
}
.btn-icon-slide:hover .wp-menu-image {
  transform: translate3d(4px, 0, 0);
}

.vsme-table-add-button {
  border-radius: 50%;
  border: 3px solid;
  border-color: var(--color-success);
  padding: 0 0 4px;
  width: 24px;
  height: 24px;
  font-size: 25px;
  line-height: 0px;
  background-color: transparent;
}
.vsme-table-add-button:hover {
  background-color: var(--color-success);
}

.vsme-table-add-button > .vsme-add-icon {
  color: var(--color-black);
}

.vsme-table-add-button:hover > .vsme-add-icon {
  color: var(--color-white);
}

/* Tabs buttons */
.vsme-tab-button {
  padding: 8px 16px;
  background-color: transparent;
  border: 1px solid var(--color-stroke);
  border-bottom: none;
  border-radius: 8px 8px 0 0;
  color: var(--color-stroke);
}
.vsme-tab-button.active {
  background-color: var(--color-stroke);
  color: var(--color-white);
}

/* Loading animation */
@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
/**
 * Design System Variables
 * 
 * SCSS variables for compile-time operations (functions, math, etc.)
 * CSS custom properties for runtime theming and browser compatibility
 */
/**
 * THN Universal Modal System
 * 
 * Clean, simple modal dialogs for Thirteen platform
 * With semi-transparent overlay backdrop
 */
/**
 * Modal Overlay
 * Semi-transparent backdrop that covers the entire viewport
 */
.thn-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background-color: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.2s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
/**
 * Main Modal Dialog
 * 
 * Structure:
 * .thn-modal-overlay
 *   .thn-modal
 *     .thn-modal__close
 *     .thn-modal__header
 *     .thn-modal__body
 *     .thn-modal__footer (optional)
 */
.thn-modal {
  position: relative;
  z-index: 100000;
  background-color: var(--color-white);
  border-radius: var(--border-radius-md);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
.thn-modal--small {
  max-width: 400px;
}
.thn-modal--medium {
  max-width: 600px;
}
.thn-modal--large {
  max-width: 900px;
}
.thn-modal--full {
  max-width: 95vw;
  max-height: 95vh;
}
.thn-modal {
  /**
   * Close Button
   * Positioned at top-right corner
   */
}
.thn-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 1;
  background: none;
  border: none;
  padding: 0.25rem;
  font-size: 1.5rem;
  line-height: 1;
  color: #484d57;
  cursor: pointer;
  transition: color 150ms ease;
}
.thn-modal__close:hover {
  color: #1f2227;
}
.thn-modal__close:focus {
  outline: 2px solid #417b03;
  outline-offset: 2px;
}
.thn-modal__close > span {
  font-size: 2rem;
}
.thn-modal {
  /**
   * Header Section
   */
}
.thn-modal__header {
  padding: 1.5rem;
  border-bottom: 1px solid #b8bbbf;
  flex-shrink: 0;
}
.thn-modal__header h3, .thn-modal__header .h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
}
.thn-modal {
  /**
   * Body Section
   * Scrollable content area
   */
}
.thn-modal__body {
  padding: 1.5rem;
  overflow-y: auto;
  flex: 1 1 auto;
}
.thn-modal {
  /**
   * Footer Section (Optional)
   * Typically used for action buttons
   */
}
.thn-modal__footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid #b8bbbf;
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  flex-shrink: 0;
}

/**
 * Responsive Adjustments
 */
@media (width <= 768px) {
  .thn-modal {
    width: 95%;
    max-height: 95vh;
  }
  .thn-modal--small, .thn-modal--medium, .thn-modal--large, .thn-modal--full {
    max-width: 95vw;
  }
}
/**
 * @deprecated Legacy modal styles
 * These are kept for backwards compatibility but should not be used in new code
 * Use .thn-modal instead
 */
.vsme-modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid #b8bbbf;
}
.vsme-modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}
.vsme-modal-content {
  background-color: #fff;
}
.vsme-modal-close {
  background: none;
  border: none;
  cursor: pointer;
}

.vsme-company {
  /* Company Search */
}
.vsme-company-search {
  margin-bottom: 1.5rem;
}
.vsme-company {
  /* Company Item */
}
.vsme-company-item {
  padding: 1rem;
  border-bottom: 1px solid #b8bbbf;
  display: flex;
  align-items: center;
}
.vsme-company-item:last-child {
  border-bottom: none;
}
.vsme-company-item label {
  display: flex;
  align-items: center;
  width: 100%;
  margin: 0;
  cursor: pointer;
}
.vsme-company-item input[type=checkbox] {
  margin-right: 1rem;
}
.vsme-company {
  /* Company Name */
}
.vsme-company-name {
  font-weight: 500;
}
.vsme-company {
  /* Company Info */
}
.vsme-company-info {
  color: #484d57;
  font-size: 0.875rem;
  margin-left: auto;
}

/* Companies List */
.vsme-companies-list {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid #417b03;
  border-radius: 8px;
}

/* No Companies State */
.vsme-no-companies {
  text-align: center;
  padding: 2.5rem;
  color: #484d57;
  font-style: italic;
}

/* Selected Summary */
.vsme-selected-summary {
  margin-top: 1rem;
  padding: 1rem;
  background: #f7f7f7;
  border-radius: 8px;
}

/**
 * Shared Table Components
 * 
 * Table styles, report items, status badges, and statistics cards
 */
.vsme-report {
  /* Report Items */
}
.vsme-report-item {
  margin: 0.5rem 0;
  padding: 0.5rem;
  background: #f7f7f7;
  border-radius: 4px;
  font-size: 0.875rem;
}
.vsme-report {
  /* Report Period */
}
.vsme-report-period {
  font-weight: 500;
  display: block;
}
.vsme-report {
  /* Report Status Badges */
}
.vsme-report-status {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  text-transform: uppercase;
  font-weight: 500;
}
.vsme-report {
  /* Report Actions */
}
.vsme-report-actions {
  margin-top: 0.5rem;
}
.vsme-report {
  /* Action Link */
}
.vsme-report-action-link {
  font-size: 0.75rem;
  text-decoration: none;
}

/* No Reports State */
.vsme-no-reports td {
  opacity: 0.7;
}

.vsme-status-draft {
  background: #fff3cd;
  color: #856404;
}
.vsme-status-generated {
  background: #d1edff;
  color: #0c5460;
}
.vsme-status-archived {
  background: #f8d7da;
  color: #721c24;
}

.vsme-action-link {
  font-size: 0.75rem;
  text-decoration: none;
}

/* Create Report Button */
.vsme-create-report {
  margin-top: 1rem;
}

/* Statistics Cards */
.vsme-stats-cards {
  display: flex;
  gap: 1.5rem;
  margin: 1.5rem 0;
}
.vsme-stats-cards .card {
  flex: 1;
  padding: 1rem;
  background: #fff;
  border: 1px solid #417b03;
  box-shadow: 0 1px 1px rgba(31, 34, 39, 0.04);
}
.vsme-stats-cards .card h3 {
  font-size: 0.875rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.vsme-stats-cards .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #417b03;
  margin: 1rem 0;
}
.vsme-stats-cards .stat-number.vsme-error {
  color: #e62d2d;
}

.thn-table-footer {
  display: flex;
  padding: 10px;
}
.thn-table-footer__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.thn-table-footer__page {
  font: var(--font-body-3);
}
.thn-table-footer button {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}
.thn-table-footer button:disabled {
  opacity: 0.4;
  cursor: default;
}
.thn-table-footer button img {
  display: block;
}

/* Table action icon buttons (shared with VSME reports pattern) */
.table-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}
.table-actions__icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.table-actions__icon-btn img {
  display: block;
  width: 24px;
  height: 24px;
}
.table-actions__icon-btn:hover:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
}
.table-actions__icon-btn:active:not(:disabled) {
  background-color: rgba(0, 0, 0, 0.1);
}
.table-actions__icon-btn:focus {
  outline: 2px solid var(--color-primary, #007bff);
  outline-offset: 2px;
}
.table-actions__icon-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.table-actions__icon-btn--darken img {
  filter: brightness(0);
}
.table-actions__icon-btn--delete:hover:not(:disabled) {
  background-color: rgba(220, 53, 69, 0.1);
  border-color: rgba(220, 53, 69, 0.2);
}
.table-actions__icon-btn--delete:hover:not(:disabled) img {
  filter: brightness(0) saturate(100%) invert(27%) sepia(95%) saturate(1352%) hue-rotate(332deg) brightness(92%) contrast(87%);
}
.table-actions__spinner {
  display: inline-block;
  font-size: 0.875rem;
  line-height: 1;
}
.table-actions .is-loading {
  opacity: 0.6;
  cursor: wait;
}

/** Admin tables styles **/
table.thn-table {
  width: 100%;
  table-layout: fixed;
}
table.thn-table thead th {
  font: var(--font-body-3);
  text-align: start;
  padding: 10px;
}
table.thn-table tbody tr {
  position: relative;
}
table.thn-table tbody tr::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  height: 1px;
  width: 100%;
  background: var(--color-neutral-100);
}
table.thn-table tbody td {
  font: var(--font-body-3);
  padding: 10px;
}

/* WordPress Table Enhancements */
.wp-list-table .column-actions {
  width: 150px;
}
.wp-list-table .approve-btn:hover {
  background: #008a20;
  border-color: #008a20;
}
.wp-list-table .reject-btn:hover {
  background: #b32d2e;
  border-color: #b32d2e;
}

/* Notice Styles */
.notice.inline {
  margin: 1.5rem 0;
  padding: 1rem;
}

/* Postbox Styles */
.postbox .inside {
  margin: 0;
  padding: 1rem;
}

.form-table th {
  width: 200px;
}

/**
 * Profile Page Customization
 * 
 * Styles for logout button and profile page cleanup for non-administrators
 */
/* Logout Section */
.accounting-hub-logout-section {
  background: #fff;
  border: 1px solid #b8bbbf;
  border-left: 4px solid #e62d2d;
  box-shadow: 0 1px 1px rgba(31, 34, 39, 0.04);
  margin: 2rem 0 1.5rem;
  padding: 1rem;
}
.accounting-hub-logout-section h2 {
  margin: 0 0 1rem;
  padding: 0;
  font-size: 1rem;
}
.accounting-hub-logout-section p {
  margin: 0 0 1rem;
}
.accounting-hub-logout-button {
  display: inline-block;
  padding: 10px 24px;
  background: #e62d2d;
  color: #fff !important;
  text-decoration: none;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 150ms ease;
}
.accounting-hub-logout-button:hover {
  background: rgb(200.170212766, 23.829787234, 23.829787234);
  color: #fff !important;
}
.accounting-hub-logout-button:focus {
  box-shadow: 0 0 0 2px rgba(230, 45, 45, 0.5);
  outline: 2px solid transparent;
}
.accounting-hub-logout-card {
  background: #fff;
  border: 1px solid #b8bbbf;
  border-left: 4px solid #2271b1;
  box-shadow: 0 1px 1px rgba(31, 34, 39, 0.04);
  padding: 1.5rem;
  margin: 1.5rem 0;
  max-width: 600px;
}
.accounting-hub-logout-card h2 {
  margin: 0 0 10px;
  font-size: 1.125rem;
}
.accounting-hub-logout-card p {
  margin: 0 0 1rem;
}
.accounting-hub-logout-card .button-primary {
  background: #e62d2d;
  border-color: #e62d2d;
}

/* Hide unwanted profile sections for non-administrators */
body.profile-php,
body.user-edit-php {
  /* Hide admin color scheme picker */
}
body.profile-php .user-admin-color-wrap,
body.profile-php .user-comment-shortcuts-wrap,
body.profile-php .show-admin-bar,
body.profile-php .user-language-wrap,
body.profile-php .application-passwords,
body.profile-php .user-application-passwords-wrap,
body.user-edit-php .user-admin-color-wrap,
body.user-edit-php .user-comment-shortcuts-wrap,
body.user-edit-php .show-admin-bar,
body.user-edit-php .user-language-wrap,
body.user-edit-php .application-passwords,
body.user-edit-php .user-application-passwords-wrap {
  display: none !important;
}

/**
 * Unified Form Component Styles
 * 
 * Reusable form layout classes for both PHP templates and React components
 * Matches the clean design from the profile page
 */
/* Form Container - wraps all form fields */
.form-container,
.user-profile-info {
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 0 auto;
}

/* Single Form Field */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.form-field label {
  font-weight: var(--font-weight-medium, 500);
  color: var(--color-black, #000);
  font-size: var(--font-size-base, 1rem);
}
.form-field label .required {
  color: var(--color-error, #dc3545);
  margin-left: 0.25rem;
}
.form-field select {
  background-color: var(--color-form, #fff);
  border: 1px solid var(--color-stroke, #e5e7eb);
  border-radius: var(--border-radius-md, 4px);
  padding: 12px;
  width: 100%;
  min-height: 56px;
  outline: none;
  font-family: var(--font-family-body, inherit);
  font-size: var(--font-size-base, 1rem);
  color: var(--color-black, #000);
  cursor: pointer;
}
.form-field select:hover {
  border: 1px solid var(--color-stroke-hover, #d1d5db);
}
.form-field select:focus {
  border: 1px solid var(--color-stroke-focused, #3b82f6);
}
.form-field select:disabled {
  background-color: var(--color-form-disabled, #f3f4f6);
  color: var(--color-form-text-disabled, #9ca3af);
  cursor: not-allowed;
}
.form-field .description {
  font-size: 0.875rem;
  color: var(--color-neutral-500, #6b7280);
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* Form Row - for side-by-side fields */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (width <= 600px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}
.form-row .form-field {
  margin: 0;
}

/* Form Actions - button container (accounting-hub-form-actions matches for Pennylane) */
.form-actions,
.accounting-hub-form-actions {
  display: flex;
  gap: 1rem;
  justify-content: flex-end;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-stroke, #e5e7eb);
}
.form-actions button,
.accounting-hub-form-actions button {
  min-width: 120px;
}
@media (width <= 600px) {
  .form-actions,
  .accounting-hub-form-actions {
    flex-direction: column-reverse;
  }
  .form-actions button,
  .accounting-hub-form-actions button {
    width: 100%;
  }
}

/* Form Error Messages */
.form-error,
.notice.notice-error {
  background-color: var(--color-error-bg, #fee);
  border-left: 4px solid var(--color-error, #dc3545);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md, 4px);
}
.form-error p,
.notice.notice-error p {
  margin: 0;
  color: var(--color-error, #dc3545);
}

/* Form Success Messages */
.notice.notice-success {
  background-color: var(--color-success-bg, #d4edda);
  border-left: 4px solid var(--color-success, #28a745);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md, 4px);
}
.notice.notice-success p {
  margin: 0;
  color: var(--color-success, #28a745);
}

/* Form Warning Messages (dashboard subscription, etc.) */
.notice.notice-warning {
  background-color: var(--color-orange-50, #FBF2EF);
  border-left: 4px solid var(--color-validation, #f08e2c);
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: var(--border-radius-md, 4px);
}
.notice.notice-warning p {
  margin: 0;
  color: var(--color-orange-700, #892B09);
}

/* Text Input Styles */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=tel],
input[type=url],
input[type=search] {
  background-color: var(--color-form);
  border: 1px solid var(--color-stroke);
  border-radius: var(--border-radius-md);
  padding: 12px;
  width: 100%;
  min-height: 56px;
  outline: none;
}
input[type=text]:hover,
input[type=email]:hover,
input[type=password]:hover,
input[type=number]:hover,
input[type=tel]:hover,
input[type=url]:hover,
input[type=search]:hover {
  border: 1px solid var(--color-stroke-hover);
}
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=number]:focus,
input[type=tel]:focus,
input[type=url]:focus,
input[type=search]:focus {
  border: 1px solid var(--color-stroke-focused);
}
input[type=text]:disabled,
input[type=email]:disabled,
input[type=password]:disabled,
input[type=number]:disabled,
input[type=tel]:disabled,
input[type=url]:disabled,
input[type=search]:disabled {
  background-color: var(--color-form-disabled);
  color: var(--color-form-text-disabled);
}
input[type=text]::placeholder,
input[type=email]::placeholder,
input[type=password]::placeholder,
input[type=number]::placeholder,
input[type=tel]::placeholder,
input[type=url]::placeholder,
input[type=search]::placeholder {
  color: var(--color-neutral-200);
  font: var(--font-field-placeholder);
}
input[type=text]:invalid,
input[type=email]:invalid,
input[type=password]:invalid,
input[type=number]:invalid,
input[type=tel]:invalid,
input[type=url]:invalid,
input[type=search]:invalid {
  border: 1px solid var(--color-stroke-validation);
}
input[type=text]:success,
input[type=email]:success,
input[type=password]:success,
input[type=number]:success,
input[type=tel]:success,
input[type=url]:success,
input[type=search]:success {
  border: 1px solid var(--color-stroke-success);
}
input[type=text]:error,
input[type=email]:error,
input[type=password]:error,
input[type=number]:error,
input[type=tel]:error,
input[type=url]:error,
input[type=search]:error {
  border: 1px solid var(--color-stroke-error);
}
input[type=text]:loading,
input[type=email]:loading,
input[type=password]:loading,
input[type=number]:loading,
input[type=tel]:loading,
input[type=url]:loading,
input[type=search]:loading {
  border: 1px solid var(--color-stroke-loading);
}
input[type=text].icon::after,
input[type=email].icon::after,
input[type=password].icon::after,
input[type=number].icon::after,
input[type=tel].icon::after,
input[type=url].icon::after,
input[type=search].icon::after {
  content: "";
  position: absolute;
  right: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

/* Unit indicators for number inputs */
.vsme-number-input[data-unit] {
  position: relative;
}

.vsme-number-input[data-unit]::after {
  content: attr(data-unit);
  position: absolute;
  right: 1.25rem;
  top: 50%;
  color: var(--color-neutral-500);
  font-size: 0.875rem;
  font-weight: 500;
  pointer-events: none;
}

/* Textarea Styles */
textarea {
  background-color: var(--color-form);
  border: 1px solid var(--color-stroke-focused);
  border-radius: var(--border-radius-md);
  padding: 12px;
  width: 100%;
  min-height: 60px;
  resize: vertical;
}
textarea:hover {
  border: 1px solid var(--color-stroke-hover);
}
textarea:focus {
  border: 1px solid var(--color-stroke-focused);
  outline: none;
}
textarea:disabled {
  background-color: var(--color-black);
  opacity: 0.6;
  cursor: not-allowed;
}
textarea::placeholder {
  color: var(--color-neutral-200);
}
textarea:invalid {
  border: 1px solid var(--color-stroke-validation);
}
textarea:success {
  border: 1px solid var(--color-stroke-success);
}
textarea:error {
  border: 1px solid var(--color-stroke-error);
}
textarea:loading {
  border: 1px solid var(--color-stroke-loading);
}

/* Textarea label and tooltip container */
.vsme-form-label-container {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 12px;
}

.vsme-form-label {
  display: block;
}

/* Select/Dropdown Styles */
.vsme-select-trigger {
  background-color: var(--color-form);
  border: 1px solid var(--color-stroke);
  border-radius: var(--border-radius-md);
  padding: 12px;
  cursor: pointer;
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  color: var(--color-black);
  outline: none;
}
.vsme-select-trigger:hover {
  border: 1px solid var(--color-stroke-hover);
}
.vsme-select-trigger:focus {
  border: 1px solid var(--color-stroke-focused);
}
.vsme-select-trigger.disabled {
  background-color: var(--color-form-disabled);
  color: var(--color-form-text-disabled);
  cursor: not-allowed;
}
.vsme-select-trigger.readonly {
  background-color: var(--color-form-disabled);
  cursor: default;
}

.vsme-select-placeholder {
  color: var(--color-neutral-200);
  font: var(--font-field-placeholder);
}

.vsme-select-arrow {
  color: var(--color-neutral-300);
  font-size: 12px;
  margin-left: 8px;
  flex-shrink: 0;
}

.vsme-select-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: var(--color-form);
  border: 1px solid var(--color-stroke);
  border-radius: var(--border-radius-md);
  border-top: none;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  min-width: fit-content;
  overflow-y: auto;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.vsme-select-options {
  max-height: 200px;
}

.vsme-select-multiselect .vsme-select-dropdown {
  background-color: var(--color-white);
  border: none;
  box-shadow: none;
}

.vsme-select-multiselect .vsme-select-search {
  padding: 0;
  border: none;
}

.vsme-select-multiselect .vsme-select-search > input {
  background-color: var(--color-white);
  border: none;
}

.vsme-select-multiselect .vsme-select-option {
  border-top: 1px solid var(--color-neutral-100);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.vsme-select-option-checkbox {
  height: 24px;
  width: 24px;
  margin-right: 0.5rem;
  border: 1px solid var(--color-stroke);
  border-radius: 3px;
  background-color: var(--color-green-50);
  position: relative;
}
.vsme-select-option-checkbox.selected {
  background-color: var(--color-stroke);
}
.vsme-select-option-checkbox.selected::after {
  content: "✓";
  color: var(--color-green-50);
  font-size: 20px;
  font-weight: var(--font-weight-bold);
  position: absolute;
  top: 46%;
  left: 47%;
  transform: translate(-50%, -50%);
}

.vsme-select-option {
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  color: var(--color-black);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
}
.vsme-select-option:hover {
  background-color: var(--color-stroke-hover);
  color: var(--color-white);
}
.vsme-select-option.selected:not(:has(.vsme-select-option-checkbox)) {
  background-color: var(--color-stroke-focused);
  color: var(--color-white);
}
.vsme-select-option.disabled {
  color: var(--color-form-text-disabled);
  cursor: not-allowed;
}
.vsme-select-option.disabled:hover {
  background-color: transparent;
  color: var(--color-form-text-disabled);
}

.vsme-select-search {
  padding: 0.5rem;
  border-bottom: 1px solid var(--color-stroke);
}

.vsme-select-search-input {
  width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--color-stroke);
  border-radius: var(--border-radius-sm);
  background-color: var(--color-form);
  color: var(--color-black);
  font-family: var(--font-family-body);
  font-size: var(--font-size-base);
  outline: none;
}
.vsme-select-search-input:focus {
  border-color: var(--color-stroke-focused);
}
.vsme-select-search-input::placeholder {
  color: var(--color-neutral-200);
}

.vsme-select-clear {
  background: none;
  border: none;
  color: var(--color-neutral-300);
  cursor: pointer;
  padding: 0;
  margin-left: 8px;
  font-size: 18px;
  line-height: 1;
}
.vsme-select-clear:hover {
  color: var(--color-stroke-error);
}

.vsme-select-no-results {
  padding: 0.75rem 1.25rem;
  color: var(--color-neutral-200);
  font-style: italic;
  text-align: center;
}

.vsme-custom-select {
  position: relative;
  width: 100%;
}

.vsme-select-selected-items-persistent {
  display: flex;
  flex-wrap: wrap;
}

.vsme-select-multiselect .vsme-select-value-item {
  width: fit-content;
  padding: 12px 24px;
  border-radius: var(--border-radius-lg);
  background-color: var(--color-green-200);
  margin: 8px;
  display: flex;
  align-items: center;
}

.vsme-select-multiselect .vsme-select-value-item-remove {
  margin-right: 8px;
}

.vsme-select.has-error .vsme-select-trigger {
  border-color: var(--color-stroke-error);
}

.vsme-select.success .vsme-select-trigger {
  border-color: var(--color-stroke-success);
}

.vsme-select.loading .vsme-select-trigger {
  border-color: var(--color-stroke-loading);
}

.vsme-native-select {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* Radio Button Styles */
input[type=radio] {
  appearance: none;
  background-color: var(--color-form);
  border: 1px solid var(--color-stroke);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  outline: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
input[type=radio]:hover {
  border: 1px solid var(--color-stroke-hover);
  background-color: var(--color-form);
}
input[type=radio] {
  /* CRITICAL FIX: Make focus VERY visible for keyboard navigation */
}
input[type=radio]:focus, input[type=radio]:focus-visible {
  border: 3px solid var(--color-stroke-focused);
  box-shadow: 0 0 0 2px rgba(105, 181, 24, 0.1);
  outline: 2px solid var(--color-stroke-focused);
  outline-offset: 3px;
}
input[type=radio]:disabled {
  background-color: var(--color-form-disabled);
  border-color: var(--color-neutral-100);
  cursor: not-allowed;
  opacity: 0.6;
}
input[type=radio]:checked {
  border-color: var(--color-stroke);
}
input[type=radio]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  background-color: var(--color-stroke);
  border-radius: 50%;
}
input[type=radio]:checked:hover {
  border-color: var(--color-stroke-hover);
}
input[type=radio]:checked:hover::before {
  background-color: var(--color-stroke-hover);
}
input[type=radio]:checked {
  /* CRITICAL FIX: Make checked + focused VERY visible for keyboard navigation */
}
input[type=radio]:checked:focus, input[type=radio]:checked:focus-visible {
  border: 3px solid var(--color-stroke-focused);
  box-shadow: 0 0 0 2px rgba(105, 181, 24, 0.1);
  outline: 2px solid var(--color-stroke-focused);
  outline-offset: 3px;
}
input[type=radio]:checked:disabled {
  border-color: var(--color-neutral-100);
}
input[type=radio]:checked:disabled::before {
  background-color: var(--color-neutral-200);
}
input[type=radio].error, input[type=radio]:invalid {
  border: 1px solid var(--color-stroke-error);
}
input[type=radio].error:checked, input[type=radio]:invalid:checked {
  border-color: var(--color-error);
}
input[type=radio].error:checked::before, input[type=radio]:invalid:checked::before {
  background-color: var(--color-error);
}
input[type=radio].success {
  border: 1px solid var(--color-stroke-success);
}
input[type=radio].success:checked {
  border-color: var(--color-success);
}
input[type=radio].success:checked::before {
  background-color: var(--color-success);
}
input[type=radio].loading {
  border: 1px solid var(--color-stroke-loading);
}
input[type=radio].loading:checked {
  border-color: var(--color-stroke-loading);
}
input[type=radio].loading:checked::before {
  background-color: var(--color-stroke-loading);
}

.radio-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.radio-container input[type=radio] {
  margin: 0;
}

.radio-container label {
  cursor: pointer;
  font: var(--font-body-2);
  color: var(--color-neutral-300);
  user-select: none;
}

.radio-container.disabled {
  cursor: not-allowed;
}

.radio-container.disabled label {
  color: var(--color-form-text-disabled);
  cursor: not-allowed;
}

.radio-group {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  gap: 48px;
}

.radio-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: none;
}

.radio-field .field-label {
  display: block;
  margin-bottom: 0.5rem;
  font: var(--font-field-title);
  color: var(--color-neutral-300);
}

.radio-field .field-description {
  font: var(--font-field-description);
  color: var(--color-title-description);
  margin-bottom: 0.5rem;
}

.radio-field .field-error {
  color: var(--color-error);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.radio-field .error-message {
  margin-bottom: 0.25rem;
}

.radio-field.has-error input[type=radio] {
  border-color: var(--color-stroke-error);
}

/* Checkbox Styles */
input[type=checkbox] {
  appearance: none;
  background-color: var(--color-form);
  border: 1px solid var(--color-stroke);
  border-radius: var(--border-radius-sm);
  width: 16px;
  height: 16px;
  outline: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
input[type=checkbox]:hover {
  border: 1px solid var(--color-stroke-hover);
  background-color: var(--color-green-50);
}
input[type=checkbox]:focus {
  border: 1px solid var(--color-stroke-focused);
  box-shadow: 0 0 0 2px rgba(105, 181, 24, 0.1);
}
input[type=checkbox]:disabled {
  background-color: var(--color-form-disabled);
  border-color: var(--color-neutral-100);
  cursor: not-allowed;
  opacity: 0.6;
}
input[type=checkbox]:checked {
  background-color: var(--color-green-300);
  border-color: var(--color-green-300);
}
input[type=checkbox]:checked::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%) rotate(-45deg);
  width: 8px;
  height: 6px;
  border: 2px solid var(--color-white);
  border-top: none;
  border-right: none;
}
input[type=checkbox]:checked:hover {
  background-color: var(--color-green-200);
  border-color: var(--color-green-200);
}
input[type=checkbox]:checked:focus {
  background-color: var(--color-green-400);
  border-color: var(--color-green-400);
  box-shadow: 0 0 0 2px rgba(105, 181, 24, 0.2);
}
input[type=checkbox]:checked:disabled {
  background-color: var(--color-neutral-100);
  border-color: var(--color-neutral-100);
}
input[type=checkbox]:checked:disabled::before {
  border-color: var(--color-neutral-200);
}
input[type=checkbox].error, input[type=checkbox]:invalid {
  border: 1px solid var(--color-stroke-error);
}
input[type=checkbox].error:checked, input[type=checkbox]:invalid:checked {
  background-color: var(--color-error);
  border-color: var(--color-error);
}
input[type=checkbox].success {
  border: 1px solid var(--color-stroke-success);
}
input[type=checkbox].success:checked {
  background-color: var(--color-success);
  border-color: var(--color-success);
}
input[type=checkbox].loading {
  border: 1px solid var(--color-stroke-loading);
}
input[type=checkbox].loading:checked {
  background-color: var(--color-green-100);
  border-color: var(--color-green-100);
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.checkbox-container input[type=checkbox] {
  margin: 0;
}

.checkbox-container label {
  cursor: pointer;
  font: var(--font-body-2);
  color: var(--color-neutral-300);
  user-select: none;
}

.checkbox-container.disabled {
  cursor: not-allowed;
}

.checkbox-container.disabled label {
  color: var(--color-form-text-disabled);
  cursor: not-allowed;
}

.checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.checkbox-group.horizontal {
  flex-flow: row wrap;
  gap: 1rem;
}

.checkbox-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.checkbox-field .field-label {
  font: var(--font-field-title);
  color: var(--color-neutral-300);
}

.checkbox-field .field-description {
  font: var(--font-field-description);
  color: var(--color-title-description);
  margin-bottom: 0.25rem;
}

.checkbox-field .field-error {
  color: var(--color-error);
  font-size: 0.75rem;
  margin-top: 0.25rem;
}

.checkbox-field.has-error input[type=checkbox] {
  border-color: var(--color-stroke-error);
}

/* Switch/Toggle Styles */
input[type=checkbox].switch {
  appearance: none;
  border-radius: 50px;
  width: 42px;
  height: 24px;
  outline: none;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  border: none;
  background-color: var(--color-neutral-50);
  transition: all 0.3s ease;
}
input[type=checkbox].switch::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 16px;
  height: 16px;
  background-color: var(--color-white);
  border: none;
  border-radius: 50%;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
input[type=checkbox].switch:hover {
  background-color: var(--color-neutral-200);
}
input[type=checkbox].switch:focus {
  background-color: var(--color-neutral-100);
}
input[type=checkbox].switch:disabled {
  background-color: var(--color-form-disabled);
  cursor: not-allowed;
  opacity: 0.6;
}
input[type=checkbox].switch:disabled::before {
  background-color: var(--color-neutral-200);
}
input[type=checkbox].switch:checked {
  background-color: var(--color-stroke);
}
input[type=checkbox].switch:checked::before {
  transform: translateX(17px);
  background-color: var(--color-white);
}
input[type=checkbox].switch:checked:hover {
  background-color: var(--color-stroke-hover);
}
input[type=checkbox].switch:checked:focus {
  background-color: var(--color-stroke-focused);
}
input[type=checkbox].switch:checked:disabled {
  background-color: var(--color-neutral-100);
}
input[type=checkbox].switch:checked:disabled::before {
  background-color: var(--color-neutral-200);
}
input[type=checkbox].switch.error:checked, input[type=checkbox].switch:invalid:checked {
  background-color: var(--color-error);
}
input[type=checkbox].switch.success:checked {
  background-color: var(--color-success);
}
input[type=checkbox].switch.loading:checked {
  background-color: var(--color-stroke-loading);
}

.switch-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.switch-container input[type=checkbox].switch {
  margin: 0;
  cursor: pointer;
}

.switch-container label {
  font: var(--font-body-2);
  color: var(--color-neutral-300);
  user-select: none;
}

.switch-container.disabled {
  cursor: not-allowed;
}

.switch-container.disabled label {
  color: var(--color-form-text-disabled);
  cursor: not-allowed;
}

.switch-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.switch-group.horizontal {
  flex-flow: row wrap;
  gap: 1.5rem;
}

.switch-field {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.switch-field .field-error {
  color: var(--color-error);
  font-size: 0.75rem;
  margin-top: 0.5rem;
}

.switch-field .error-message {
  margin-bottom: 0.25rem;
}

.switch-field.has-error input[type=checkbox].switch {
  border-color: var(--color-stroke-error);
}

.switch-field.hidden {
  display: none;
}

.vsme-table-switch-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* File Upload Styles */
.file-upload {
  position: relative;
  width: 100%;
  margin-bottom: 1.5rem;
}

.file-upload input[type=file] {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}

.dropzone {
  background-color: var(--color-form);
  border: 1px solid var(--color-stroke);
  border-radius: var(--border-radius-md);
  padding: 12px;
  cursor: pointer;
  width: 100%;
  min-height: 56px;
  outline: none;
  transition: border-color 0.2s ease;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
}

.dropzone:hover {
  border: 1px solid var(--color-stroke-hover);
}

/* CRITICAL FIX: Make dropzone focus visible for keyboard navigation */
.dropzone:focus,
.dropzone:focus-visible {
  border: 3px solid var(--color-stroke-focused);
  box-shadow: 0 0 0 2px var(--color-stroke-subtle-shadow);
  outline: 2px solid var(--color-stroke-focused);
  outline-offset: 3px;
}

.dropzone.dragging {
  border: 2px dashed var(--color-stroke-focused);
  background-color: var(--color-stroke-subtle-bg);
}

.dropzone.disabled {
  background-color: var(--color-form-disabled);
  color: var(--color-form-text-disabled);
  cursor: not-allowed;
}

.dropzone.readonly {
  cursor: default;
  opacity: 0.7;
}

.dropzone-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  text-align: left;
  width: 100%;
}

.dropzone-icon {
  margin-right: 1rem;
  color: var(--color-stroke);
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dropzone-icon svg {
  width: 24px;
  height: 24px;
}

.dropzone-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex-grow: 1;
}

.dropzone-primary {
  font-weight: var(--font-weight-medium);
  color: var(--color-neutral-300);
  font-size: 1rem;
}

.dropzone-secondary {
  font-size: 0.875rem;
  color: var(--color-neutral-200);
  display: none;
}

.file-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--color-neutral-300);
  flex-grow: 1;
  font-weight: var(--font-weight-medium);
}

.placeholder {
  color: var(--color-neutral-200);
  font: var(--font-field-placeholder);
}

.upload-button {
  display: flex;
  align-items: center;
  margin-left: 1rem;
  color: var(--color-stroke);
  font-weight: var(--font-weight-medium);
}

.upload-icon {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2369b518' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'%3e%3c/path%3e%3cpolyline points='17 8 12 3 7 8'%3e%3c/polyline%3e%3cline x1='12' y1='3' x2='12' y2='15'%3e%3c/line%3e%3c/svg%3e");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.file-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.file-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  background-color: transparent;
  border: none;
  border-bottom: 1px solid var(--color-neutral-50);
  border-radius: 0;
  margin-bottom: 0.5rem;
}

.file-item.uploading {
  border-color: var(--color-stroke-loading);
}

.file-item.error {
  border-color: var(--color-stroke-error);
  background-color: var(--color-form-error);
}

.file-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  flex-grow: 1;
  overflow: hidden;
  gap: 1rem;
}

.file-size {
  font-size: 0.75rem;
  color: var(--color-neutral-200);
}

.file-checkbox-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  margin-right: 1rem;
}

.file-checkbox-label {
  font-size: 0.875rem;
  color: var(--color-neutral-300);
  cursor: pointer;
  white-space: nowrap;
}

.file-progress {
  width: 100%;
  height: 4px;
  background-color: var(--color-neutral-50);
  border-radius: 2px;
}

.file-progress-bar {
  height: 100%;
  background-color: var(--color-stroke);
  border-radius: 2px;
  transition: width 0.3s ease;
}

.file-remove {
  background: none;
  border: none;
  color: var(--color-stroke-error);
  cursor: pointer;
  margin-left: 1rem;
  font-size: 0.875rem;
}
.file-remove:hover {
  text-decoration: underline;
}

.file-upload-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.5rem;
}

.file-upload-secondary-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.file-upload-hint {
  font-size: 0.875rem;
  color: var(--color-neutral-200);
}

.file-upload-error {
  color: var(--color-error);
  font-size: 0.875rem;
}

.file-upload-success {
  color: var(--color-success);
  font-size: 0.875rem;
}

li.file-item {
  display: flex;
  justify-content: space-between;
}

/* Little indicator start */
.required-indicator {
  color: var(--color-error);
  margin-left: 0.25rem;
}

.dilig-breadcrumb__list {
  display: flex;
  gap: 1.5rem;
}

/**
 * Global Scrollbar Styles
 *
 * Site-wide scrollbar styling. Uses design system CSS variables.
 */
/* Firefox scrollbar styling */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--color-stroke, #ccc) var(--color-form, #fff);
}

/* WebKit scrollbar styling for all elements */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

*::-webkit-scrollbar-track {
  background: var(--color-form, #fff);
  border: 1px solid var(--color-stroke, #e5e7eb);
}

*::-webkit-scrollbar-thumb {
  background-color: var(--color-stroke, #ccc);
  border-radius: 50%;
}

*::-webkit-scrollbar-thumb:hover {
  background-color: var(--color-stroke-hover, #b8bbbf);
}

*::-webkit-scrollbar-corner {
  background: var(--color-form, #fff);
}

/* Pages */
#adminmenumain,
#wpcontent,
#wpbody,
#wpbody-content {
  min-height: 0;
  height: 100%;
}

#accounting-hub-portal-root {
  display: grid;
  grid-template-columns: calc(275px + 1rem) 1fr;
  grid-template-rows: 85dvh;
  gap: 32px;
  transition: grid-template-columns 300ms ease;
  height: 100dvh;
  width: 100%;
  align-content: center;
  align-items: stretch;
  max-width: 1800px;
  margin-inline: auto;
}

.container-style {
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius-xl);
  box-shadow: 0 4px 8px 0 rgba(31, 34, 39, 0.0784313725);
  padding: 1rem 1.25rem;
  margin-bottom: 2rem;
}

body {
  background-color: var(--color-bg);
}

#custom-profile-page > form > div {
  max-width: 800px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin: 32px auto;
}

.user-profile-picture {
  position: relative;
  width: fit-content;
  display: block;
  margin: 0 auto;
}
.user-profile-picture > img {
  border-radius: 50%;
  width: 108px;
  height: 108px;
  object-fit: cover;
}
.user-profile-info-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.user-profile-password-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.profile_picture_upload_icon {
  cursor: pointer;
  position: absolute;
  bottom: 2px;
  right: 10px;
  padding: 4px;
  background-color: var(--color-white);
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  height: 30px;
  width: 30px;
}

.wrap {
  padding: 0 1.5rem;
  max-width: 1600px;
}

.wp-heading-inline {
  font: var(--font-h4);
  margin-bottom: 1rem;
  display: inline-block;
}

.accounting-hub-dashboard {
  margin-top: 1.5rem;
}

.accounting-hub-tools {
  margin-bottom: 2rem;
}
.accounting-hub-tools h2 {
  font: var(--font-h4);
  margin-bottom: 1rem;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.tool-card {
  background: var(--color-bg-secondary);
  border-radius: var(--border-radius-lg);
  box-shadow: 0 4px 8px 0 rgba(31, 34, 39, 0.0784313725);
  padding: 1.5rem;
}
.tool-card h3 {
  font: var(--font-h4);
  margin: 0 0 0.5rem;
}
.tool-card p {
  margin: 0 0 1rem;
  font: var(--font-body-2);
  color: var(--color-neutral-500);
}
.tool-card a.button {
  display: inline-block;
}

.accounting-hub-dashboard-content {
  margin-top: 1.5rem;
}

.acchub-button-group {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.api-connections-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.api-connection-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
  padding: 1.5rem;
}
.api-connection-card__logo {
  width: 130px;
  height: 130px;
  object-fit: contain;
}
.api-connection-card__name {
  font: var(--font-h4);
  margin: 0;
}
.api-connection-card__coming-soon {
  font: var(--font-body-2);
  color: var(--color-neutral-500);
}
.api-connection-card--disabled {
  opacity: 0.85;
}

.connection-wizard-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.connection-wizard-modal {
  width: min(560px, 100vw - 2rem);
  padding: 1.5rem;
}

.connection-wizard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.connection-wizard-header h3 {
  margin: 0;
  font: var(--font-h4);
}

.connection-wizard-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.connection-wizard-actions {
  display: flex;
  gap: 1rem;
}

.connection-wizard-error {
  color: var(--color-error);
  margin: 0;
}

.accounting-hub-notice {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: var(--border-radius-md);
  border-left: 4px solid var(--color-neutral-300);
}
.accounting-hub-notice p {
  margin: 0;
}

.accounting-hub-notice-success {
  background-color: var(--color-green-50);
  border-left-color: var(--color-success);
}

.accounting-hub-notice-error {
  background-color: var(--color-form-error);
  border-left-color: var(--color-error);
}

#acchub-beta-register-form {
  max-width: 600px;
  margin: 0 auto;
}

.acchub-login-body {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-bg);
}

.acchub-login-wrapper {
  width: 100%;
  max-width: 420px;
  padding: 1rem;
}

.acchub-login-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
}

.acchub-login-logo {
  max-height: 48px;
  width: auto;
}

.acchub-login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.acchub-login-field input {
  width: 100%;
}

.acchub-login-remember {
  margin: 0;
}

.acchub-login-submit {
  margin: 0.5rem 0 0;
}

.acchub-login-submit .btn-primary {
  width: 100%;
}

.acchub-login-lost {
  margin: 0;
  text-align: center;
  font-size: 0.875rem;
}

.acchub-login-lost a {
  color: var(--color-primary);
  text-decoration: none;
}

.acchub-login-lost a:hover {
  text-decoration: underline;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.acchub-reset-title {
  margin: 0 0 1rem;
  font: var(--font-h4);
  text-align: center;
}

.acchub-reset-error {
  margin: 0 0 1rem;
  padding: 0.75rem;
  background-color: var(--color-form-error);
  border-radius: var(--border-radius-md);
  color: var(--color-error);
  font-size: 0.875rem;
}

.acchub-reset-success,
.acchub-reset-error-block {
  text-align: center;
}
.acchub-reset-success p,
.acchub-reset-error-block p {
  margin: 0 0 1rem;
}

/* Layout */
body.acchub-portal-body .acchub-portal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body.acchub-portal-body .acchub-portal-header {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-neutral-50);
  flex-shrink: 0;
}
body.acchub-portal-body .acchub-portal-header h1 {
  margin: 0;
  font: var(--font-h4);
}
body.acchub-portal-body .acchub-sidebar-wrapper {
  min-height: 0;
  overflow: hidden;
  max-height: 80dvh;
  margin: auto 0;
  margin-left: 16px;
  height: 100%;
}
body.acchub-portal-body .acchub-portal-main {
  min-height: 0;
  overflow: auto;
}

body.acchub-sidebar-mode-react #adminmenuback,
body.acchub-sidebar-mode-react #adminmenuwrap {
  display: none;
}
body.acchub-sidebar-mode-react #adminmenumain {
  margin-left: 1rem;
  height: 100%;
}

#acchub-sidebar-shell {
  height: 100%;
  min-height: 0;
}

.acchub-sidebar-shell {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 1rem;
  padding: 20px 12px;
  border-radius: var(--border-radius-xl);
  background: linear-gradient(to bottom, var(--color-orange-500) 0%, var(--color-orange-600) 57%, var(--color-orange-700) 100%);
}
.acchub-sidebar-shell > * {
  min-width: 0;
}

.acchub-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.acchub-sidebar-brandIcon {
  width: 40px;
  height: 40px;
  border-radius: var(--border-radius-md);
  background-color: var(--color-white);
  padding: 4px;
}

.acchub-sidebar-brandName {
  color: var(--color-white);
  font: var(--font-h4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.acchub-sidebar-nav {
  overflow-y: auto;
}

.acchub-sidebar-menuGroups {
  display: grid;
  gap: 32px;
  min-height: 100%;
  grid-template-rows: auto 1fr auto;
}

.acchub-sidebar-menu,
.acchub-sidebar-submenu {
  list-style: none;
  margin: 0;
  padding: 0;
}

.acchub-sidebar-menu--group-account {
  padding-top: 32px;
  border-top: 1px solid #fff;
}

.acchub-sidebar-item {
  margin-bottom: 4px;
}
.acchub-sidebar-item--active .acchub-sidebar-link, .acchub-sidebar-item:hover .acchub-sidebar-link {
  background: rgba(255, 255, 255, 0.14);
}

.acchub-sidebar-itemHeader {
  display: flex;
  align-items: center;
  gap: 4px;
}

.acchub-sidebar-link,
.acchub-sidebar-link span,
.acchub-sidebar-sublink span,
.acchub-sidebar-sublink {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--color-white);
  padding: 2px 5px;
  border-radius: 6px;
}

.acchub-sidebar-link {
  flex: 1;
}
.acchub-sidebar-link:focus {
  box-shadow: none;
}

.acchub-sidebar-expandButton {
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--color-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-left: auto;
}
.acchub-sidebar-expandButton:hover, .acchub-sidebar-expandButton:focus {
  background: rgba(255, 255, 255, 0.14);
}
.acchub-sidebar-expandButton--static {
  cursor: default;
  pointer-events: none;
}

.acchub-sidebar-expandIcon {
  width: 12px;
  height: 12px;
  transition: transform 160ms ease;
}
.acchub-sidebar-expandIcon.is-up {
  transform: rotate(180deg);
}

.acchub-sidebar-submenu {
  margin-left: 32px;
  margin-top: 4px;
}

.acchub-sidebar-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  object-fit: contain;
}

.acchub-sidebar-label {
  font: var(--font-body-2);
}

.acchub-sidebar-sublink {
  justify-content: space-between;
  background: transparent;
}

.acchub-sidebar-sublink:hover,
.acchub-sidebar-sublink:focus {
  background: rgba(255, 255, 255, 0.14);
}

.acchub-sidebar-subitemIndicator {
  width: 11px;
  height: 11px;
  transform: rotate(-90deg);
  flex: 0 0 11px;
}

.acchub-sidebar-profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid var(--color-white);
  border-radius: var(--border-radius-lg);
  padding: 8px;
}

.acchub-sidebar-profileAvatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
}

.acchub-sidebar-profileText {
  color: var(--color-white);
  min-width: 0;
}

.acchub-sidebar-profileName,
.acchub-sidebar-profileEmail {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.acchub-sidebar-profileName {
  font: var(--font-body-2-bold);
}

.acchub-sidebar-profileEmail {
  font: var(--font-body-3);
}

* {
  box-sizing: border-box;
}

/*# sourceMappingURL=admin.css.map */
