/* === CARDS & WIDGETS === */
.card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  animation: staggerFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-fill-mode: both;
}

/* Staggered card animations */
.card:nth-child(1) { animation-delay: 0.05s; }
.card:nth-child(2) { animation-delay: 0.1s; }
.card:nth-child(3) { animation-delay: 0.15s; }
.card:nth-child(4) { animation-delay: 0.2s; }
.card:nth-child(5) { animation-delay: 0.25s; }

/* Card content fills available space */
.card > *:last-child {
  margin-bottom: 0;
}

/* Compact card variant for nested grids */
.card-compact {
  padding: 1.25rem;
}

/* Card that fills parent height with flex layout */
.card-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card-flex .card-body {
  flex: 1;
}

.card-flex .card-footer {
  margin-top: auto;
  padding-top: 1rem;
}

.stat-card {
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  animation: staggerFadeIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card .stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.25rem;
}

.stat-card .stat-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.stat-card .stat-trend {
  font-size: 0.75rem;
  font-weight: 600;
}

.stat-card .icon {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  color: var(--color-primary);
  opacity: 0.1;
  width: 32px;
  height: 32px;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-text-main);
  margin-bottom: 0.25rem;
}

.stat-trend {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.trend-up {
  color: var(--color-success);
}

/* STAT CARD VARIANTS */
.stat-card-accent {
  background: var(--color-primary);
  color: white;
  border: none;
}

.stat-card-accent .stat-label {
  color: rgba(255, 255, 255, 0.7);
}

.stat-card-accent .stat-value {
  color: white;
}

.stat-card-accent .icon {
  color: white;
  opacity: 0.15;
}

.stat-card-danger {
  border-left: 4px solid var(--color-danger);
}

.stat-card-danger .stat-value {
  color: var(--color-danger);
}

.stat-card-danger .icon {
  color: var(--color-danger);
}

.stat-card-warning {
  border-left: 4px solid var(--color-warning);
}

.stat-card-warning .stat-value {
  color: var(--color-warning);
}

.stat-card-warning .icon {
  color: var(--color-warning);
}

/* === BUTTONS === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-primary {
  background: var(--color-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--color-primary-light);
  box-shadow: var(--shadow-md);
}

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

.btn-secondary:hover {
  background: var(--color-border);
}

/* === TABLES === */
.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive {
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  text-align: left;
  padding: 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--color-border);
}

td {
  padding: 1rem;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--color-bg-light);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1;
}

.badge-done {
  background: var(--color-success-bg);
  color: var(--color-success);
}

.badge-pending {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-processing {
  background: var(--color-info-bg);
  color: var(--color-info);
  animation: pulseSlow 2.5s infinite ease-in-out;
}

.badge-error {
  background: var(--color-danger-bg-soft);
  color: var(--color-danger);
}

.badge-canceled {
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
}

.badge-queued {
  background: var(--color-warning-bg);
  color: var(--color-warning);
}

.badge-default,
.badge-secondary {
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
}

/* === ICON BUTTONS === */
.action-buttons {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
}

.btn-icon {
  padding: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-main);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon i {
  width: 16px;
  height: 16px;
}

.btn-icon:hover {
  background: var(--color-bg-light);
  transform: translateY(-1px);
}

.btn-icon-primary {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

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

.btn-icon-danger {
  color: var(--color-danger);
  border-color: var(--color-danger);
}

.btn-icon-danger:hover {
  background: var(--color-danger);
  color: white;
}

.btn-icon-disabled {
  color: var(--color-text-muted);
  background: var(--color-bg-light);
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
}

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

.btn-danger:hover {
  background: var(--color-danger-hover);
}

/* === CARD LINK & HOVER === */
.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.card-hover {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* === COMPACT TABLE === */
.table-compact {
  width: 100%;
}

.bce-sync-history-table {
  min-width: 1080px;
}

.bce-sync-history-error {
  overflow-wrap: anywhere;
  word-break: break-word;
  max-width: 26rem;
}

.table-compact th,
.table-compact td {
  padding: 0.75rem 1rem;
}

.table-compact th {
  font-size: 0.75rem;
}

.table-compact td {
  font-size: 0.9rem;
}

.recent-processes-group-row td {
  padding: 0.3rem 1rem;
  background: var(--color-bg-light);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* === THEME DROPDOWN === */
.theme-dropdown {
  position: relative;
}

.theme-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 130px;
  background: var(--theme-bg-panel);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 300;
  overflow: hidden;
}

.theme-dropdown-menu.is-open {
  display: block;
}

.theme-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--theme-text-primary);
  text-align: left;
  white-space: nowrap;
}

.theme-option:hover {
  background: var(--color-hover-primary-02);
}

.theme-option.is-active {
  color: var(--color-accent);
  font-weight: 600;
}

/* === PROCESSES TABLE === */
.table-processes {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.table-processes th {
  padding: 1rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--color-border);
  background: var(--color-bg-light);
  vertical-align: middle;
}

.table-processes th:first-child {
  border-radius: var(--radius-sm) 0 0 0;
  padding-left: 1rem;
}

.table-processes th:last-child {
  border-radius: 0 var(--radius-sm) 0 0;
  padding-right: 1rem;
}

.table-processes td {
  padding: 1rem 0.75rem;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-bg-light);
  vertical-align: middle;
}

.table-processes td:first-child {
  padding-left: 1rem;
}

.table-processes td:last-child {
  padding-right: 1rem;
}

.table-processes tbody tr:hover {
  background: var(--color-hover-primary-02);
}

/* === PROGRESS BAR === */
.progress-bar-small {
  width: 60px;
  height: 6px;
  background: var(--color-bg-subtle);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 0.25rem;
}

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

/* === FORM ELEMENTS === */
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  background: var(--color-white);
  color: var(--color-text-main);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-control:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-focus-ring);
}

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

/* === INPUT GROUP === */
.input-group {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon {
  position: absolute;
  left: 1rem;
  color: var(--color-text-muted);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.input-group .form-control {
  padding-left: 2.75rem;
}

/* === ALERTS (dashboard flash messages) === */
.alert {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: 1rem;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.alert > * {
  min-width: 0;
}

.alert-danger {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
  color: var(--color-danger-ink);
}

.alert-success {
  background: var(--color-success-bg);
  border-color: var(--color-success);
  color: var(--color-success-ink);
}

/* === FLASH CARD COMPONENT === */
.card-flash {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.875rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  margin-bottom: 1rem;
}

.card-flash__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-flash__icon i {
  width: 20px;
  height: 20px;
}

.card-flash__content {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.card-flash__close {
  flex-shrink: 0;
  background: none;
  border: none;
  padding: 0.25rem;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity 0.2s;
  color: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-flash__close:hover {
  opacity: 1;
}

.card-flash__close i {
  width: 16px;
  height: 16px;
}

.card-flash--success {
  background: var(--color-success-bg);
  border-color: var(--color-success);
  color: var(--color-success-ink);
}

.card-flash--success .card-flash__icon {
  color: var(--color-success);
}

.card-flash--danger,
.card-flash--error {
  background: var(--color-danger-bg);
  border-color: var(--color-danger);
  color: var(--color-danger-ink);
}

.card-flash--danger .card-flash__icon,
.card-flash--error .card-flash__icon {
  color: var(--color-danger);
}

.card-flash--warning {
  background: var(--color-warning-bg);
  border-color: var(--color-warning);
  color: var(--color-warning-ink);
}

.card-flash--warning .card-flash__icon {
  color: var(--color-warning);
}

.card-flash--info {
  background: var(--color-info-bg);
  border-color: var(--color-info);
  color: var(--color-info-ink);
}

.card-flash--info .card-flash__icon {
  color: var(--color-info);
}

/* === GLOBAL TOASTS === */
.app-toast-host {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1300;
  width: min(360px, calc(100vw - 2rem));
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.app-toast {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  color: var(--color-text-main);
  pointer-events: auto;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.app-toast.is-dismissing {
  opacity: 0;
  transform: translateY(-4px);
}

.app-toast__icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.app-toast__icon i {
  width: 18px;
  height: 18px;
}

.app-toast__content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.app-toast__message {
  margin: 0;
  line-height: 1.4;
  font-size: 0.92rem;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.app-toast__action {
  background: transparent;
  border: none;
  color: inherit;
  padding: 0;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.app-toast__close {
  border: none;
  background: transparent;
  color: inherit;
  opacity: 0.75;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.app-toast__close:hover {
  opacity: 1;
}

.app-toast__close i {
  width: 14px;
  height: 14px;
}

.app-toast--success {
  border-color: var(--color-success);
  background: var(--color-success-bg);
  color: var(--color-success-ink);
}

.app-toast--error {
  border-color: var(--color-danger);
  background: var(--color-danger-bg);
  color: var(--color-danger-ink);
}

.app-toast--warning {
  border-color: var(--color-warning);
  background: var(--color-warning-bg);
  color: var(--color-warning-ink);
}

.app-toast--info {
  border-color: var(--color-info);
  background: var(--color-info-bg);
  color: var(--color-info-ink);
}

.toast-noscript-fallback {
  max-width: 680px;
  margin: 1rem auto;
  padding: 0 1rem;
}

.section-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.section-switcher .btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

@media (max-width: 768px) {
  .app-toast-host {
    left: 1rem;
    right: 1rem;
    width: auto;
  }
}

/* === MODAL === */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: var(--color-backdrop);
  backdrop-filter: blur(4px);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  width: 90%;
  max-width: 480px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
}

.modal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
}

.modal-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.1rem;
  margin: 0;
}

.modal-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-text-muted);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  transition: background 0.2s;
}

.modal-close:hover {
  background: var(--color-bg-light);
}

.modal-body {
  padding: 1.5rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg-light);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.modal--lg {
  max-width: 600px;
}

.modal--lg .modal-body {
  max-height: 60vh;
  overflow-y: auto;
}

/* === SHARE MODAL SECTIONS === */
.share-modal-section {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 1rem;
}

.share-modal-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--color-text-muted);
}

.shared-users-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.shared-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: var(--color-bg-light);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
}

.shared-user-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.shared-user-name {
  font-weight: 500;
}

.btn-danger-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--color-danger);
  border: 1px solid var(--color-danger);
  background: transparent;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-danger-outline:hover {
  background: var(--color-danger);
  color: var(--color-white);
}

/* === FORM GROUP === */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

/* === BUTTON SIZE VARIANTS === */
.btn-icon-padding {
  padding: 0.35rem 0.55rem;
  min-width: 36px;
  min-height: 36px;
}

.btn-icon-padding-sm {
  padding: 0.35rem 0.5rem;
}

.btn-inline-xs {
  padding: 0.2rem 0.35rem;
  min-width: auto;
  line-height: 1;
}

.btn-inline-md {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

/* === MISC COMPONENTS === */
.card-accent-left {
  border-left: 4px solid var(--color-accent);
}

.invite-url-code {
  display: block;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  word-break: break-all;
}

.badge-neutral {
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
}

.team-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-white);
  padding: 1rem;
}

.user-avatar-sm {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

/* === TREATMENT MODAL === */
.treatment-modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: var(--color-backdrop-soft);
  z-index: 1100;
  padding: 1rem;
}

.treatment-modal-overlay.is-open {
  display: flex;
}

.treatment-modal-body {
  width: min(560px, 100%);
  background: var(--color-white);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  padding: 1.25rem;
}

.treatment-modal-name {
  margin: 0 0 1rem;
  color: var(--color-text-muted);
}

.disabled {
  pointer-events: none;
  opacity: 0.6;
}

/* Button disabled states */
.btn.disabled,
.btn:disabled {
  background: var(--color-bg-subtle);
  color: var(--color-text-muted);
  border-color: var(--color-border);
  cursor: not-allowed;
  transform: none;
}

.btn-primary.disabled,
.btn-primary:disabled {
  background: var(--color-primary);
  opacity: 0.5;
}

/* File path text styling */
.file-path {
  display: block;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  max-width: 250px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === SUPERADMIN FILES TABLE === */
.table-superadmin-files {
  table-layout: fixed;
}

.table-superadmin-files .w-treatment {
  width: 140px;
}

.table-superadmin-files .w-status {
  width: 100px;
}

.table-superadmin-files .w-date {
  width: 90px;
}

.table-superadmin-files .w-actions {
  width: 80px;
}

.table-superadmin-files td {
  vertical-align: middle;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.file-info .font-weight-600 {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-arrow {
  color: var(--color-text-muted);
  font-size: 0.85rem;
}

/* Small icon button variant */
.btn-icon-sm {
  width: 28px;
  height: 28px;
}

.btn-icon-sm i {
  width: 14px;
  height: 14px;
}

/* Responsive: stack file info on very small screens */
@media (max-width: 768px) {
  .table-superadmin-files .w-treatment,
  .table-superadmin-files .w-status,
  .table-superadmin-files .w-date,
  .table-superadmin-files .w-actions {
    width: auto;
  }
  
  .file-info .font-weight-600 {
    max-width: 120px;
  }
}

/* === CARD VARIANTS (error, warning, info) === */
.card-error {
  border-left: 4px solid var(--color-danger);
}

.card-warning {
  border-left: 4px solid var(--color-warning);
}

.card-info {
  border-left: 4px solid var(--color-info);
}

.card-error__header,
.card-warning__header,
.card-info__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-error__icon,
.card-warning__icon,
.card-info__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.card-error__icon i,
.card-warning__icon i,
.card-info__icon i {
  width: 20px;
  height: 20px;
}

.card-error__close,
.card-warning__close {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text-muted);
}

.card-error__title,
.card-warning__title,
.card-info__title {
  margin: 0.75rem 0 0.35rem;
}

.card-error__message,
.card-warning__message,
.card-info__message {
  margin: 0;
  color: var(--color-text-muted);
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.card-warning__actions,
.card-info__actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
}

.card-info__icon {
  color: var(--color-info);
}

.card-info__header {
  justify-content: flex-start;
  gap: 0.65rem;
}

.card-info__body {
  margin-top: 0.5rem;
}

.card-info__content {
  margin-top: 0.75rem;
}

.card-info--compact {
  padding: 1rem;
}

.card-info--mise_en_avant {
  background: var(--color-info-bg);
}

/* === RESPONSIVE === */
@media (max-width: 480px) {
  .card {
    padding: 1rem;
  }
}
