/* =============================================================================
   AFNETWORK HELPDESK — Design System
   Stylesheet master unificato per admin area, portale clienti, auth.
   ========================================================================== */

/* ----- Font ----- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* =============================================================================
   1. DESIGN TOKENS
   ========================================================================== */
:root {
  /* Palette brand AFNetwork */
  --af-blue:         #206bb3;
  --af-blue-hover:   #1a5a9a;
  --af-blue-light:   #4791db;
  --af-blue-soft:    #eaf4ff;
  --af-blue-bg:      #f3f8fd;
  --af-blue-border:  #c7ddf2;
  --af-blue-glow:    rgba(32, 107, 179, 0.14);

  /* Neutri */
  --bg:              #f6f8fb;
  --bg-card:         #ffffff;
  --bg-subtle:       #f8fafc;
  --bg-input:        #ffffff;

  /* Sidebar (admin) */
  --sidebar-bg:      #0e1b2d;
  --sidebar-bg-elev: #162538;
  --sidebar-text:    #c9d3e2;
  --sidebar-text-m:  #7b8aa3;
  --sidebar-border:  #1d2d44;
  --sidebar-active:  #1b3558;

  /* Bordi */
  --border:          #e2e8f0;
  --border-strong:   #cbd5e1;
  --border-subtle:   #edf1f6;

  /* Testo */
  --text:            #1e293b;
  --text-strong:     #0b1e38;
  --text-muted:      #64748b;
  --text-dim:        #94a3b8;

  /* Stati */
  --success:         #059669;
  --success-bg:      #ecfdf5;
  --success-border:  #a7f3d0;
  --error:           #dc2626;
  --error-bg:        #fef2f2;
  --error-border:    #fecaca;
  --warning:         #d97706;
  --warning-bg:      #fffbeb;
  --warning-border:  #fde68a;
  --info:            #0284c7;
  --info-bg:         #f0f9ff;
  --info-border:     #bae6fd;
  --purple:          #0f766e;
  --purple-bg:       #f0fdfa;
  --purple-border:   #99f6e4;

  /* Ombre */
  --shadow-xs:       0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm:       0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md:       0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-lg:       0 12px 36px rgba(15, 23, 42, 0.12), 0 4px 8px rgba(15, 23, 42, 0.06);
  --shadow-focus:    0 0 0 3px var(--af-blue-glow);

  /* Radius */
  --radius-sm:       6px;
  --radius:          8px;
  --radius-lg:       12px;
  --radius-xl:       16px;

  /* Timing */
  --ease:            cubic-bezier(0.22, 1, 0.36, 1);

  /* Font */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Monaco, 'Cascadia Code', Menlo, 'Courier New', monospace;

  /* Layout */
  --sidebar-w:       256px;
  --header-h:        64px;
}

/* =============================================================================
   2. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  letter-spacing: -0.005em;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.25;
}
h1 { font-size: 1.5rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }
h4 { font-size: 0.95rem; font-weight: 600; }

p { margin: 0; }

a {
  color: var(--af-blue);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}
a:hover { color: var(--af-blue-hover); }
a:focus-visible {
  outline: 2px solid var(--af-blue);
  outline-offset: 2px;
  border-radius: 3px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 20px 0;
}

small { font-size: 0.82rem; color: var(--text-muted); }
code, kbd, pre { font-family: var(--font-mono); font-size: 0.88em; }
code {
  background: var(--bg-subtle);
  padding: 1px 6px;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--text-strong);
  font-size: 0.82em;
}

::selection { background: var(--af-blue-soft); color: var(--text-strong); }

/* Scrollbar sottile */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--text-dim); }

/* =============================================================================
   3. LAYOUT ADMIN — sidebar + main
   ========================================================================== */
.admin-container {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
  border-right: 1px solid var(--sidebar-border);

  background-image:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(71, 145, 219, 0.08), transparent 60%);
}

.sidebar-header {
  padding: 22px 22px 20px;
  border-bottom: 1px solid var(--sidebar-border);
  background: rgba(0, 0, 0, 0.15);
}

.sidebar-header .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.sidebar-header .brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: linear-gradient(135deg, var(--af-blue) 0%, var(--af-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(32, 107, 179, 0.3), inset 0 1px 0 rgba(255,255,255,0.15);
  flex-shrink: 0;
}

.sidebar-header .brand-mark svg {
  width: 16px;
  height: 16px;
  color: #fff;
}

.sidebar-header h1 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.sidebar-header .subtitle {
  font-size: 11px;
  color: var(--sidebar-text-m);
  margin-top: 4px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 500;
}

.sidebar-nav {
  padding: 14px 10px 40px;
}

.nav-section {
  margin-bottom: 18px;
}

.nav-section-title {
  padding: 8px 12px 6px;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sidebar-text-m);
  font-weight: 600;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  color: var(--sidebar-text);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 7px;
  margin-bottom: 1px;
  transition: background 0.15s var(--ease), color 0.15s var(--ease);
  position: relative;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
}

.nav-item.active {
  background: var(--sidebar-active);
  color: #fff;
  font-weight: 600;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: var(--af-blue-light);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 8px rgba(71, 145, 219, 0.5);
}

.nav-item-icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.85;
}

.nav-item.active .nav-item-icon { opacity: 1; }

/* Main content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-w);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Header */
.header {
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 12px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: var(--header-h);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  background-color: rgba(255, 255, 255, 0.85);
}

.header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.015em;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.15s var(--ease);
}

.user-menu:hover {
  border-color: var(--border-strong);
  background: var(--bg-card);
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--af-blue) 0%, var(--af-blue-light) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.15);
}

.user-info {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.user-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-strong);
}

.user-email {
  font-size: 11px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.logout-btn {
  padding: 8px 14px;
  background: var(--bg-card);
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.15s var(--ease);
}

.logout-btn:hover {
  background: var(--error-bg);
  color: var(--error);
  border-color: var(--error-border);
}

/* Content area */
.content {
  flex: 1;
  padding: 24px 28px 60px;
  max-width: 1400px;
  width: 100%;
}

/* =============================================================================
   4. CARDS
   ========================================================================== */
.content-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

.content-card + .content-card { margin-top: 20px; }

.card-section {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 18px;
}

.card-section h3,
.card-section h4 {
  margin-bottom: 14px;
}

.card-inline {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
}

/* =============================================================================
   5. FORMS
   ========================================================================== */
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.002em;
}

.form-group { margin-bottom: 16px; }

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="datetime-local"],
input[type="search"],
input[type="url"],
input:not([type]):not([class*="nav"]),
select,
textarea {
  width: 100%;
  padding: 10px 13px;
  background: var(--bg-input);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 13.5px;
  color: var(--text);
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}

input[type="number"] { font-family: var(--font-mono); }

input::placeholder,
textarea::placeholder { color: var(--text-dim); }

input:hover:not(:focus):not([readonly]):not([disabled]),
select:hover:not(:focus):not([disabled]),
textarea:hover:not(:focus):not([readonly]):not([disabled]) { border-color: var(--text-dim); }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--af-blue);
  box-shadow: var(--shadow-focus);
}

input[readonly],
input[disabled] {
  background: var(--bg-subtle);
  color: var(--text-muted);
  cursor: not-allowed;
}

select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%2364748b' d='M6 7.5L0 1.5 1.5 0 6 4.5 10.5 0 12 1.5z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

textarea {
  min-height: 100px;
  resize: vertical;
  line-height: 1.55;
}

input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--af-blue);
  cursor: pointer;
}

.hint, .form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 6px;
  line-height: 1.45;
}

.required-mark { color: var(--error); }

/* Grid di form */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  align-items: flex-start;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-span-2 { grid-column: span 2; }

@media (max-width: 720px) {
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-span-2 { grid-column: span 1; }
}

/* Password field with toggle */
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 78px;
}
.password-field .toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  font-size: 12px;
  color: var(--af-blue);
  cursor: pointer;
  padding: 4px 8px;
  font-weight: 500;
  font-family: var(--font-sans);
}
.password-field .toggle-password:hover { color: var(--af-blue-hover); }

/* =============================================================================
   6. BUTTONS
   ========================================================================== */
.btn,
button.btn,
a.btn,
input[type="submit"].btn,
input[type="button"].btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.15s var(--ease);
  user-select: none;
  -webkit-appearance: none;
  appearance: none;
}

.btn-primary,
.btn.primary {
  background: linear-gradient(180deg, var(--af-blue-light), var(--af-blue));
  color: #fff;
  border-color: var(--af-blue-hover);
  box-shadow: 0 1px 2px rgba(32, 107, 179, 0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-primary:hover,
.btn.primary:hover {
  background: linear-gradient(180deg, #5aa1df, var(--af-blue-light));
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(32, 107, 179, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-primary:active,
.btn.primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 2px rgba(32, 107, 179, 0.25);
}

.btn-secondary,
.btn.secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-xs);
}
.btn-secondary:hover,
.btn.secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--af-blue);
  color: var(--text-strong);
}

.btn-success,
.btn.success {
  background: linear-gradient(180deg, #10b981, var(--success));
  color: #fff;
  border-color: #047857;
  box-shadow: 0 1px 2px rgba(5, 150, 105, 0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-success:hover,
.btn.success:hover {
  background: linear-gradient(180deg, #34d399, #10b981);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(5, 150, 105, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}

.btn-danger,
.btn.danger {
  background: linear-gradient(180deg, #ef4444, var(--error));
  color: #fff;
  border-color: #991b1b;
  box-shadow: 0 1px 2px rgba(220, 38, 38, 0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-danger:hover,
.btn.danger:hover {
  background: linear-gradient(180deg, #f87171, #ef4444);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(220, 38, 38, 0.35);
}

.btn-warning,
.btn.warning {
  background: linear-gradient(180deg, #f59e0b, var(--warning));
  color: #fff;
  border-color: #b45309;
  box-shadow: 0 1px 2px rgba(217, 119, 6, 0.25), inset 0 1px 0 rgba(255,255,255,0.18);
}
.btn-warning:hover,
.btn.warning:hover {
  background: linear-gradient(180deg, #fbbf24, #f59e0b);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px -4px rgba(217, 119, 6, 0.35);
}

.btn-ghost,
.btn.ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover,
.btn.ghost:hover {
  background: var(--bg-subtle);
  color: var(--text-strong);
}

.btn-sm {
  padding: 7px 12px;
  font-size: 12.5px;
}

.btn-xs {
  padding: 4px 10px;
  font-size: 11.5px;
  gap: 5px;
}

.btn-block { display: flex; width: 100%; }

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

/* Row di bottoni */
.btn-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

/* =============================================================================
   7. TABELLE
   ========================================================================== */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

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

.data-table thead th {
  text-align: left;
  padding: 10px 14px;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table thead th .th-sort {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.data-table thead th .th-sort:hover {
  color: var(--af-blue);
}

.data-table thead th .th-sort.is-active {
  color: var(--af-blue);
  font-weight: 700;
}

.data-table tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text);
  vertical-align: middle;
}

.data-table tbody tr { transition: background 0.12s var(--ease); }
.data-table tbody tr:hover { background: var(--af-blue-bg); }
.data-table tbody tr:last-child td { border-bottom: none; }

.data-table td.mono,
.data-table td .mono {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
}

.data-table td.num {
  font-family: var(--font-mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.data-table th.num {
  text-align: right;
  white-space: nowrap;
}

.data-table td.actions {
  white-space: nowrap;
}

.data-table a.row-link {
  color: var(--af-blue);
  font-weight: 500;
  text-decoration: none;
}
.data-table a.row-link:hover { text-decoration: underline; }

.data-table a.ticket-code {
  color: var(--af-blue);
  font-weight: 600;
  font-family: var(--font-mono);
  font-size: 12.5px;
  text-decoration: none;
}
.data-table a.ticket-code:hover { text-decoration: underline; }

/* =============================================================================
   8. BADGES & PILLS
   ========================================================================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--text-muted);
  border: 1px solid var(--border);
  white-space: nowrap;
  line-height: 1.5;
}

.badge-info { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.badge-success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.badge-danger, .badge-error { background: var(--error-bg); color: var(--error); border-color: var(--error-border); }
.badge-purple { background: var(--af-blue-bg); color: var(--af-blue-hover); border-color: var(--af-blue-border); }
.badge-neutral { background: var(--bg-subtle); color: var(--text-muted); border-color: var(--border); }

/* Status badges (ticket lifecycle) */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.5;
  white-space: nowrap;
  border: 1px solid transparent;
}
.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.8;
}

.status-open              { background: #dbeafe; color: #1e40af; border-color: #bfdbfe; }
.status-in_progress       { background: #ecfeff; color: #0e7490; border-color: #a5f3fc; }
.status-waiting_customer  { background: var(--af-blue-bg); color: var(--af-blue-hover); border-color: var(--af-blue-border); }
.status-answered          { background: #fffbeb; color: #b45309; border-color: #fde68a; }
.status-closed            { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.status-resolved          { background: #dcfce7; color: #14532d; border-color: #86efac; }

/* Author badge (message) */
.author-badge {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.author-badge.customer { background: var(--info-bg); color: var(--info); }
.author-badge.admin    { background: var(--warning-bg); color: var(--warning); }
.author-badge.system   { background: var(--bg-subtle); color: var(--text-muted); }

/* =============================================================================
   9. ALERT / MESSAGE BOXES
   ========================================================================== */
.alert {
  position: relative;
  padding: 12px 16px 12px 44px;
  border-radius: var(--radius);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 16px;
  border: 1px solid transparent;
}

.alert::before {
  content: '';
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  background-size: contain;
  background-repeat: no-repeat;
}

.alert-error, .msg.err, .err {
  background: var(--error-bg);
  color: #991b1b;
  border-color: var(--error-border);
}
.alert-error::before,
.msg.err::before,
.err::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='9' stroke='%23dc2626' stroke-width='1.5'/><path d='M10 6v5M10 13.3v.4' stroke='%23dc2626' stroke-width='1.8' stroke-linecap='round'/></svg>");
}

.alert-success, .msg.ok, .ok {
  background: var(--success-bg);
  color: #065f46;
  border-color: var(--success-border);
}
.alert-success::before,
.msg.ok::before,
.ok::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='9' stroke='%23059669' stroke-width='1.5'/><path d='M6 10.5l2.5 2.5L14 7.5' stroke='%23059669' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/></svg>");
}

.alert-info {
  background: var(--info-bg);
  color: #075985;
  border-color: var(--info-border);
}
.alert-info::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><circle cx='10' cy='10' r='9' stroke='%230284c7' stroke-width='1.5'/><path d='M10 9v5M10 6.3v.4' stroke='%230284c7' stroke-width='1.8' stroke-linecap='round'/></svg>");
}

.alert-warning {
  background: var(--warning-bg);
  color: #78350f;
  border-color: var(--warning-border);
}
.alert-warning::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none'><path d='M10 2L1 18h18L10 2z' stroke='%23d97706' stroke-width='1.5' stroke-linejoin='round'/><path d='M10 8v4M10 14.3v.4' stroke='%23d97706' stroke-width='1.8' stroke-linecap='round'/></svg>");
}

/* =============================================================================
   10. PAGE HEADER (admin content pages)
   ========================================================================== */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-header-left h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-strong);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.page-header-left .page-subtitle {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
}

.page-header-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 14px;
  transition: color 0.15s var(--ease);
}
.back-link:hover { color: var(--af-blue); }

/* =============================================================================
   11. STATS GRID (dashboard)
   ========================================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

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

.stat-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--af-blue);
}
.stat-card.stat-warning::before { background: var(--warning); }
.stat-card.stat-success::before { background: var(--success); }
.stat-card.stat-info::before    { background: var(--info); }
.stat-card.stat-purple::before  { background: var(--af-blue); }

.stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-strong);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-meta {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

/* =============================================================================
   12. TAB BAR (view mode switcher)
   ========================================================================== */
.tab-bar {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 18px;
  width: fit-content;
}

.tab-link {
  padding: 7px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: all 0.15s var(--ease);
}

.tab-link:hover { color: var(--text-strong); }

.tab-link.active {
  background: var(--bg-card);
  color: var(--af-blue);
  box-shadow: var(--shadow-xs);
  font-weight: 600;
}

/* =============================================================================
   13. MESSAGE THREAD (ticket conversation)
   ========================================================================== */
.message-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin-bottom: 12px;
  transition: border-color 0.15s var(--ease);
}

.message-card.from-admin {
  border-color: #fde68a;
  background: #fffbeb;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

.message-author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-strong);
  font-size: 13.5px;
}

.message-meta {
  color: var(--text-muted);
  font-size: 11.5px;
  font-family: var(--font-mono);
  text-align: right;
  white-space: nowrap;
}

.message-body {
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-wrap: break-word;
}

.message-attachments {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.attachments-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.attachment-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--af-blue);
  font-size: 12.5px;
  font-weight: 500;
  margin-right: 6px;
  margin-bottom: 6px;
  transition: all 0.15s var(--ease);
}
.attachment-link:hover {
  background: var(--af-blue-bg);
  border-color: var(--af-blue-border);
  color: var(--af-blue-hover);
}
.attachment-link .att-size {
  color: var(--text-dim);
  font-size: 10.5px;
  font-family: var(--font-mono);
}

/* =============================================================================
   14. INFO GRID (ticket info sections)
   ========================================================================== */
.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
}

.info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-label {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.info-value {
  font-size: 13.5px;
  color: var(--text-strong);
  font-weight: 500;
}

/* Pills (worklog summary) */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  background: var(--bg-subtle);
  color: var(--text);
  border: 1px solid var(--border);
}
.pill strong { font-weight: 700; color: var(--text-strong); }
.pill.pill-info    { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.pill.pill-success { background: var(--success-bg); color: var(--success); border-color: var(--success-border); }
.pill.pill-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-border); }
.pill.pill-accent  { background: var(--af-blue-bg); color: var(--af-blue-hover); border-color: var(--af-blue-border); font-weight: 600; }

/* Totals (invoice summary) */
.totals-card {
  margin-left: auto;
  max-width: 340px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 18px;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text);
}

.totals-row strong { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.totals-row.total {
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text-strong);
}

/* =============================================================================
   15. PAGINATION
   ========================================================================== */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
}

.pagination a,
.pagination span {
  padding: 8px 14px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  text-decoration: none;
}

.pagination a {
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--af-blue);
  font-weight: 500;
  transition: all 0.15s var(--ease);
}
.pagination a:hover {
  border-color: var(--af-blue);
  background: var(--af-blue-bg);
}

.pagination span.pagination-info {
  color: var(--text-muted);
  font-weight: 500;
}

/* =============================================================================
   16. EMPTY STATE
   ========================================================================== */
.empty-state {
  background: var(--bg-subtle);
  border: 1px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 28px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.empty-state p { margin-bottom: 12px; }
.empty-state p:last-child { margin-bottom: 0; }

/* =============================================================================
   17. AUTH PAGES (login / register / reset)
   ========================================================================== */
body.auth-body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(32, 107, 179, 0.08), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(71, 145, 219, 0.05), transparent 50%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 20px;
  animation: fade-up 0.4s var(--ease) both;
}

.auth-wider { max-width: 500px; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-brand {
  text-align: center;
}
.auth-brand img.logo {
  height: 48px;
  width: auto;
  display: inline-block;
  margin-bottom: 18px;
  filter: drop-shadow(0 2px 8px rgba(32, 107, 179, 0.12));
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px 34px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.auth-card::before {
  content: '';
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--af-blue-border), transparent);
}

.auth-card h1 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
  text-align: center;
  color: var(--text-strong);
}

.auth-card .subtitle {
  color: var(--text-muted);
  font-size: 13.5px;
  text-align: center;
  margin-bottom: 24px;
  line-height: 1.5;
}

.auth-card .auth-links {
  text-align: center;
  margin-top: 18px;
  font-size: 13px;
  color: var(--text-muted);
}

.auth-card .auth-links a {
  color: var(--af-blue);
  font-weight: 500;
  margin: 0 6px;
}

.auth-footer {
  text-align: center;
  font-size: 11.5px;
  color: var(--text-dim);
  letter-spacing: 0.03em;
}
.auth-footer .dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--af-blue);
  border-radius: 50%;
  margin: 0 8px 2px;
  vertical-align: middle;
  opacity: 0.6;
}

/* =============================================================================
   18. PORTAL (public area cliente)
   ========================================================================== */
body.portal-body {
  min-height: 100vh;
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(32, 107, 179, 0.06), transparent 60%);
}

.portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.portal-header {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--border);
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 20;
}

.portal-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.portal-brand img {
  height: 40px;
  width: auto;
  display: block;
}

.portal-brand .portal-brand-text {
  font-weight: 700;
  font-size: 15px;
  color: var(--af-blue);
  letter-spacing: -0.01em;
}

.portal-header-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.portal-header-nav a {
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  border-radius: var(--radius-sm);
  transition: all 0.15s var(--ease);
}
.portal-header-nav a:hover {
  background: var(--af-blue-bg);
  color: var(--af-blue);
}

.portal-header-nav a.primary {
  background: linear-gradient(180deg, var(--af-blue-light), var(--af-blue));
  color: #fff;
  border: 1px solid var(--af-blue-hover);
  box-shadow: 0 4px 12px rgba(32, 107, 179, 0.2), inset 0 1px 0 rgba(255,255,255,0.15);
}
.portal-header-nav a.primary:hover {
  background: linear-gradient(180deg, #5aa1df, var(--af-blue-light));
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(32, 107, 179, 0.3);
}

.portal-hero {
  padding: 56px 24px 32px;
  text-align: center;
}

.portal-hero-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--af-blue-bg);
  color: var(--af-blue-hover);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid var(--af-blue-border);
}

.portal-hero h1 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text-strong);
  letter-spacing: -0.03em;
}

.portal-hero .lead {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.55;
}

.portal-home-main {
  position: relative;
}

.portal-home-hero {
  position: relative;
  margin: 8px auto 20px;
  max-width: 1120px;
  border-radius: 20px;
  background: linear-gradient(135deg, #f7fbff 0%, #eaf4ff 58%, #f7fbff 100%);
  border: 1px solid var(--af-blue-border);
  box-shadow: 0 24px 44px -30px rgba(32, 107, 179, 0.48);
  padding: 58px 26px 38px;
}

.portal-home-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 10%, rgba(32, 107, 179, 0.17), transparent 28%),
    radial-gradient(circle at 88% 18%, rgba(71, 145, 219, 0.17), transparent 28%);
}

.portal-home-hero-actions {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.portal-home-content {
  margin-top: 0;
}

.portal-home-content .portal-cards {
  margin-top: 4px;
}

.portal-card-open {
  border-color: #bcd9f5;
  background: linear-gradient(180deg, #ffffff 0%, #f5faff 100%);
}

.portal-card-track {
  border-color: #c5e8d6;
  background: linear-gradient(180deg, #ffffff 0%, #f2fbf7 100%);
}

.portal-card-area {
  border-color: #f5d6ae;
  background: linear-gradient(180deg, #ffffff 0%, #fffbf5 100%);
}

.portal-home-section .portal-section-item {
  border-color: #d7e7f7;
}

.portal-content {
  max-width: 1160px;
  margin: 0 auto 40px;
  padding: 0 20px 24px;
  width: 100%;
}

.portal-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 32px;
}

.portal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), border-color 0.18s var(--ease);
  display: block;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.portal-card::after {
  content: '→';
  position: absolute;
  right: 22px;
  bottom: 20px;
  font-size: 18px;
  color: var(--af-blue);
  opacity: 0;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  transform: translateX(-6px);
}

.portal-card:hover {
  transform: translateY(-3px);
  border-color: var(--af-blue-border);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.portal-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.portal-card .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af-blue);
  margin-bottom: 10px;
}

.portal-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-strong);
  padding-right: 24px;
}

.portal-card p {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.portal-section {
  margin-bottom: 28px;
}

.portal-section h2 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 14px;
  color: var(--text-strong);
}

.portal-section-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 8px;
  font-size: 13.5px;
  color: var(--text);
  box-shadow: var(--shadow-xs);
}

.portal-section-item .item-title {
  font-weight: 600;
  color: var(--text-strong);
  margin-bottom: 2px;
}

.portal-section-item .item-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.portal-footer {
  margin-top: auto;
  padding: 20px 24px;
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.02em;
  border-top: 1px solid var(--border);
}

.portal-main {
  max-width: 960px;
  margin: 28px auto 36px;
  padding: 0 20px;
  width: 100%;
  flex: 1;
}

.portal-main .page-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-strong);
  letter-spacing: -0.02em;
}

.portal-main .page-lead {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

.portal-new-ticket-main {
  max-width: 980px;
}

.portal-new-ticket-hero {
  margin: 6px auto 18px;
  text-align: center;
}

.portal-new-ticket-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f0f7ff, var(--af-blue-bg));
  color: var(--af-blue);
  border: 1px solid var(--af-blue-border);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.portal-new-ticket-card {
  border-radius: 14px;
  border: 1px solid var(--af-blue-border);
  box-shadow: 0 18px 34px -24px rgba(32, 107, 179, 0.5), var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.portal-new-ticket-card::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--af-blue-light), var(--af-blue));
}

.portal-new-ticket-tip {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--af-blue-bg);
  border: 1px solid var(--af-blue-border);
  color: var(--af-blue-hover);
  font-size: 13px;
}

.portal-upload-block {
  padding: 10px 12px;
  border: 1px dashed var(--af-blue-border);
  border-radius: var(--radius);
  background: #fbfdff;
}

.portal-new-ticket-actions .btn-primary {
  min-width: 180px;
}

/* Ticket code display */
.ticket-code-display {
  display: inline-block;
  padding: 6px 12px;
  background: var(--af-blue-bg);
  color: var(--af-blue-hover);
  border: 1px solid var(--af-blue-border);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
}

/* =============================================================================
   19. PUBLIC TICKET SHOW (link diretto email)
   ========================================================================== */
.public-ticket-container {
  max-width: 900px;
  margin: 28px auto;
  padding: 0 20px;
}

.public-ticket-header {
  background: linear-gradient(180deg, var(--text-strong), #1e3a5f);
  color: #fff;
  padding: 22px 26px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  border: 1px solid var(--text-strong);
  border-bottom: none;
}

.public-ticket-header h1 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

.public-ticket-header h1 .code-part {
  font-family: var(--font-mono);
  font-weight: 600;
  opacity: 0.75;
  font-size: 18px;
}

.public-ticket-header .subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
}

.public-ticket-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}

/* =============================================================================
   20. UTILITIES
   ========================================================================== */
.text-right { text-align: right; }
.text-center { text-align: center; }
.mono { font-family: var(--font-mono); }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }
.mb-0  { margin-bottom: 0; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none !important; }

/* =============================================================================
   21. RESPONSIVE
   ========================================================================== */
@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
  }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; }

  .header { padding: 12px 16px; }
  .content { padding: 18px 16px 60px; }

  .user-info { display: none; }
  .user-menu { padding: 4px; }

  .page-header { flex-direction: column; }

  .portal-header { padding: 12px 18px; }
  .portal-hero { padding: 40px 18px 22px; }
  .portal-home-hero { border-radius: 14px; padding: 34px 16px 24px; }
}

@media (max-width: 560px) {
  body { font-size: 13.5px; }
  .content-card { padding: 18px 16px; border-radius: var(--radius); }
  .auth-card { padding: 24px 22px; }
  .portal-brand .portal-brand-text { display: none; }
  .portal-brand img { height: 34px; }
  .data-table { font-size: 12px; }
  .data-table thead th,
  .data-table tbody td { padding: 9px 10px; }
}

/* =============================================================================
   22. REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* =============================================================================
   23. PRINT (for invoice/billing print page)
   ========================================================================== */
@media print {
  body {
    background: #fff !important;
    color: #000;
  }
  .sidebar, .header, .btn, button, .no-print { display: none !important; }
  .main-content { margin-left: 0 !important; }
  .content { padding: 0 !important; }
  .content-card {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
  }
  .data-table { font-size: 11pt; }
  .data-table thead th { background: #f0f0f0 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .billing-print-table {
    table-layout: fixed;
    width: 100%;
  }
  .billing-print-table .col-date { width: 9%; }
  .billing-print-table .col-ticket { width: 12%; }
  .billing-print-table .col-desc { width: auto; }
  .billing-print-table .col-ore { width: 7%; }
  .billing-print-table .col-money { width: 10%; }
  .billing-print-table td.desc {
    white-space: normal;
    word-break: break-word;
  }
  .billing-print-table td.num,
  .billing-print-table th.num {
    white-space: nowrap !important;
  }
}

/* =============================================================================
   19. TEMA "A F NETWORK PREMIUM"  (append — override mirato)
   Aree d'impatto scure (auth + hero portale + apertura/stato ticket) con rete
   animata e vetro; aree di lavoro (tabelle, dashboard) restano chiare.
   Tutto basato sui token sotto: per tornare indietro, rimuovere questa sezione.
   ========================================================================== */
:root {
  /* Palette brand allineata ad afnetwork.net */
  --af-blue:         #3F94C2;
  --af-blue-hover:   #2C6F94;
  --af-blue-light:   #67B8E3;
  --af-blue-soft:    #e8f4fc;
  --af-blue-bg:      #f1f8fd;
  --af-blue-border:  #c4ddee;
  --af-blue-glow:    rgba(63, 148, 194, 0.16);

  /* Fondali scuri (aree d'impatto) — "più aperta" */
  --afp-navy:        #14263E;
  --afp-navy-deep:   #0f1d30;
  --afp-navy-elev:   #1b3252;
  --afp-line:        rgba(103, 184, 227, 0.16);
  --afp-text:        #e8f1f8;
  --afp-text-dim:    #95acc4;
  --afp-text-faint:  #647e99;

  --afp-card-grad:   linear-gradient(160deg, rgba(27,50,82,.78), rgba(20,38,62,.72));
  --afp-input-bg:    rgba(15,29,48,.55);
  --afp-ease:        cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Animazioni condivise ---------- */
@keyframes afp-rise { to { opacity: 1; transform: translateY(0) scale(1); } }

/* ---------- Canvas rete (iniettato via JS in body scuri) ---------- */
.afp-net {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block; pointer-events: none;
}

/* =========================================================================
   AUTH — login / register / reset  →  scuro premium
   ========================================================================= */
body.auth-body {
  background: var(--afp-navy-deep);
  background-image: none;
  color: var(--afp-text);
  position: relative;
  overflow: hidden;
}
body.auth-body::after {
  content: ''; position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 50% -10%, rgba(63,148,194,.26), transparent 64%),
    radial-gradient(1200px 800px at 50% 120%, rgba(15,29,48,.55), transparent 60%),
    linear-gradient(180deg, rgba(15,29,48,.10) 0%, rgba(15,29,48,.40) 100%);
}
body.auth-body .auth-container { position: relative; z-index: 2; }

/* Logo: usa la versione bianca sulle pagine scure (senza toccare il PHP) */
body.auth-body .auth-brand img.logo,
body.portal-body .afp-dark .portal-brand img,
body.portal-body.afp-dark-page .portal-brand img {
  content: url("logo-afnetwork-white.png");
  filter: drop-shadow(0 6px 20px rgba(63,148,194,.35));
}
body.auth-body .auth-brand img.logo { height: 54px; margin-bottom: 0; }

.auth-card {
  background: var(--afp-card-grad);
  border: 1px solid rgba(103,184,227,.18);
  border-radius: 20px;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06) inset;
}
.auth-card::before {
  left: 24px; right: 24px;
  background: linear-gradient(90deg, transparent, var(--af-blue-light), transparent);
  opacity: .7;
}
.auth-card h1 { color: #fff; }
.auth-card .subtitle { color: var(--afp-text-dim); }
.auth-card .auth-links { color: var(--afp-text-dim); }
.auth-card .auth-links a { color: var(--afp-text-dim); }
.auth-card .auth-links a:hover { color: var(--af-blue-light); }
.auth-footer { color: var(--afp-text-faint); }

/* Form sui fondali scuri (auth + card portale scure + pagina nuovo ticket) */
body.auth-body label,
body.portal-body .afp-dark label,
.afp-dark-page label {
  color: var(--afp-text);
}
.afp-dark-page .hint {
  color: var(--afp-text-dim);
}
body.auth-body input[type="text"],
body.auth-body input[type="email"],
body.auth-body input[type="password"],
body.auth-body input[type="tel"],
body.auth-body input[type="number"],
body.auth-body input[type="search"],
body.auth-body input[type="url"],
body.auth-body select,
body.auth-body textarea,
.afp-dark input[type="text"],
.afp-dark input[type="email"],
.afp-dark input[type="password"],
.afp-dark input[type="tel"],
.afp-dark input[type="number"],
.afp-dark input[type="search"],
.afp-dark input[type="url"],
.afp-dark select,
.afp-dark textarea,
.afp-dark-page input[type="text"],
.afp-dark-page input[type="email"],
.afp-dark-page input[type="password"],
.afp-dark-page input[type="tel"],
.afp-dark-page input[type="number"],
.afp-dark-page input[type="search"],
.afp-dark-page input[type="url"],
.afp-dark-page input[type="file"],
.afp-dark-page select,
.afp-dark-page textarea {
  background: var(--afp-input-bg);
  border: 1px solid rgba(103,184,227,.2);
  border-radius: 12px;
  color: var(--afp-text);
}
body.auth-body input::placeholder,
body.auth-body textarea::placeholder,
.afp-dark input::placeholder,
.afp-dark textarea::placeholder,
.afp-dark-page input::placeholder,
.afp-dark-page textarea::placeholder { color: var(--afp-text-faint); }

body.auth-body input:hover:not(:focus):not([readonly]),
body.auth-body select:hover:not(:focus),
body.auth-body textarea:hover:not(:focus),
.afp-dark input:hover:not(:focus):not([readonly]),
.afp-dark select:hover:not(:focus),
.afp-dark textarea:hover:not(:focus),
.afp-dark-page input:hover:not(:focus):not([readonly]),
.afp-dark-page select:hover:not(:focus),
.afp-dark-page textarea:hover:not(:focus) {
  border-color: rgba(103,184,227,.36);
  background: rgba(15,29,48,.7);
}
body.auth-body input:focus,
body.auth-body select:focus,
body.auth-body textarea:focus,
.afp-dark input:focus,
.afp-dark select:focus,
.afp-dark textarea:focus,
.afp-dark-page input:focus,
.afp-dark-page select:focus,
.afp-dark-page textarea:focus {
  border-color: var(--af-blue);
  background: rgba(15,29,48,.8);
  box-shadow: 0 0 0 4px rgba(63,148,194,.18);
}
body.auth-body input[readonly],
.afp-dark input[readonly],
.afp-dark-page input[readonly] {
  background: rgba(15,29,48,.4);
  color: var(--afp-text-dim);
  cursor: default;
}
/* freccia select chiara su fondo scuro */
body.auth-body select,
.afp-dark select,
.afp-dark-page select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2395acc4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}

/* Bottone primario premium (gradiente + riflesso) — vale ovunque */
.btn-primary, .btn.primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--af-blue-light) 0%, var(--af-blue) 45%, var(--af-blue-hover) 100%);
  border-color: transparent;
  box-shadow: 0 10px 30px -8px rgba(63,148,194,.5), 0 2px 6px rgba(0,0,0,.18);
}
.btn-primary::after, .btn.primary::after {
  content: ''; position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.32), transparent);
  transform: skewX(-18deg);
  transition: left .6s var(--afp-ease);
}
.btn-primary:hover, .btn.primary:hover {
  background: linear-gradient(135deg, #7cc3ea 0%, var(--af-blue-light) 45%, var(--af-blue) 100%);
  transform: translateY(-1px);
  box-shadow: 0 16px 40px -8px rgba(63,148,194,.7), 0 3px 8px rgba(0,0,0,.22);
  filter: saturate(108%);
}
.btn-primary:hover::after, .btn.primary:hover::after { left: 130%; }
.btn-primary:active, .btn.primary:active { transform: translateY(0) scale(.99); }

/* Alert sui fondali scuri */
body.auth-body .alert,
.afp-dark .alert {
  border-radius: 12px;
  border: 1px solid;
  background-clip: padding-box;
}
body.auth-body .alert-error, .afp-dark .alert-error {
  background: rgba(220,38,38,.12); border-color: rgba(248,113,113,.35); color: #fca5a5;
}
body.auth-body .alert-success, .afp-dark .alert-success {
  background: rgba(5,150,105,.12); border-color: rgba(52,211,153,.35); color: #6ee7b7;
}
body.auth-body .alert-info, .afp-dark .alert-info {
  background: rgba(63,148,194,.12); border-color: rgba(103,184,227,.32); color: #9fd2ee;
}
body.auth-body .alert-warning, .afp-dark .alert-warning {
  background: rgba(217,119,6,.14); border-color: rgba(251,191,36,.35); color: #fcd34d;
}
body.auth-body .alert::before, .afp-dark .alert::before { filter: none; }

/* =========================================================================
   PORTALE PUBBLICO — hero scuro, contenuto chiaro
   La home e le pagine ticket pubbliche montano la rete su un hero scuro.
   ========================================================================= */
body.portal-body {
  background: var(--bg);
  background-image: none;
}

/* Header del portale: vetro scuro quando la pagina è "dark", chiaro altrove.
   Default lo teniamo chiaro/elevato come prima ma con palette nuova. */
.portal-header {
  background: rgba(255,255,255,0.82);
}

/* --- Variante pagina scura: aggiunta classe .afp-dark-page sul portal-page
   via JS per home, nuovo ticket, stato, login cliente --- */
.afp-dark-page {
  position: relative;
}
/* Fondo scuro reale sul body quando la pagina portale è "dark"
   (senza questo, gli hero col testo bianco resterebbero su fondo chiaro). */
body.portal-body:has(.afp-dark-page) {
  background: var(--afp-navy-deep);
  background-image: none;
  color: var(--afp-text);
}
/* Fallback per browser senza :has() — il JS aggiunge .afp-dark-body al <body> */
body.portal-body.afp-dark-body {
  background: var(--afp-navy-deep);
  background-image: none;
  color: var(--afp-text);
}
.afp-dark-page .portal-header {
  background: rgba(15,29,48,.55);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--afp-line);
}
.afp-dark-page .portal-header-nav a { color: var(--afp-text-dim); }
.afp-dark-page .portal-header-nav a:hover { color: var(--afp-text); background: rgba(103,184,227,.1); }
.afp-dark-page .portal-header-nav a.primary {
  color: #ffffff;
  font-weight: 600;
  background: linear-gradient(135deg, var(--af-blue-light) 0%, var(--af-blue) 50%, var(--af-blue-hover) 100%);
  border: 1px solid rgba(103,184,227,.5);
  box-shadow: 0 4px 14px rgba(63,148,194,.35), inset 0 1px 0 rgba(255,255,255,.2);
}
.afp-dark-page .portal-header-nav a.primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #7cc3ea 0%, var(--af-blue-light) 50%, var(--af-blue) 100%);
  box-shadow: 0 6px 18px rgba(63,148,194,.45), inset 0 1px 0 rgba(255,255,255,.25);
}
.afp-dark-page .portal-brand img { content: url("logo-afnetwork-white.png"); }
.afp-dark-page .portal-footer { color: var(--afp-text-faint); border-top-color: var(--afp-line); }

/* Hero scuro */
.afp-dark-page .portal-hero h1,
.afp-dark-page .portal-home-hero h1,
.afp-dark-page .page-title,
.afp-dark-page .portal-main .page-title,
.afp-dark-page .portal-new-ticket-hero .page-title {
  color: #ffffff;
  text-shadow: 0 2px 18px rgba(0,0,0,.35);
}
.afp-dark-page .portal-hero .lead,
.afp-dark-page .page-lead,
.afp-dark-page .portal-main .page-lead { color: var(--afp-text-dim); }
.afp-dark-page .portal-hero-badge,
.afp-dark-page .portal-new-ticket-badge,
.afp-dark-page .portal-home-hero .portal-hero-badge {
  color: var(--af-blue-light);
  background: rgba(63,148,194,.1);
  border: 1px solid rgba(103,184,227,.28);
}

/* La home hero box: da chiara a vetro scuro */
.afp-dark-page .portal-home-hero {
  background: var(--afp-card-grad);
  border: 1px solid rgba(103,184,227,.18);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06) inset;
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
}
.afp-dark-page .portal-home-hero::before {
  background:
    radial-gradient(circle at 12% 10%, rgba(63,148,194,.18), transparent 30%),
    radial-gradient(circle at 88% 18%, rgba(103,184,227,.16), transparent 30%);
}

/* La card del nuovo ticket: vetro scuro */
.afp-dark-page .content-card,
.afp-dark-page .portal-new-ticket-card {
  background: var(--afp-card-grad);
  border: 1px solid rgba(103,184,227,.18);
  border-radius: 22px;
  backdrop-filter: blur(18px) saturate(120%);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  box-shadow: 0 30px 80px -24px rgba(0,0,0,.6), 0 1px 0 rgba(255,255,255,.06) inset;
}
.afp-dark-page .portal-new-ticket-card::before {
  height: 1px; left: 28px; right: 28px;
  background: linear-gradient(90deg, transparent, var(--af-blue-light), transparent);
}
.afp-dark-page .portal-new-ticket-tip {
  background: rgba(63,148,194,.1);
  border: 1px solid rgba(103,184,227,.28);
  color: var(--afp-text-dim);
}

/* Le 3 card scelta (apri / stato / area) sul fondo scuro */
.afp-dark-page .portal-card {
  background: rgba(27,50,82,.5);
  border: 1px solid rgba(103,184,227,.16);
  box-shadow: 0 10px 30px -16px rgba(0,0,0,.5);
}
.afp-dark-page .portal-card:hover {
  border-color: rgba(103,184,227,.4);
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6);
  transform: translateY(-3px);
}
.afp-dark-page .portal-card-open,
.afp-dark-page .portal-card-track,
.afp-dark-page .portal-card-area { background: rgba(27,50,82,.5); }
.afp-dark-page .portal-card h3 { color: #fff; }
.afp-dark-page .portal-card p { color: var(--afp-text-dim); }
.afp-dark-page .portal-card .eyebrow { color: var(--af-blue-light); }
.afp-dark-page .portal-card::after { color: var(--af-blue-light); }

/* Comunicazioni / item su fondo scuro */
.afp-dark-page .portal-section h2 { color: #fff; }
.afp-dark-page .portal-section-item {
  background: rgba(27,50,82,.45);
  border: 1px solid rgba(103,184,227,.14);
  color: var(--afp-text);
}
.afp-dark-page .portal-section-item .item-title { color: #fff; }
.afp-dark-page .portal-section-item .item-meta { color: var(--afp-text-dim); }

/* Upload block (dropzone) su scuro */
.afp-dark-page .portal-upload-block {
  border: none; background: transparent; padding: 0;
}
.afp-dark-page .afp-dropzone {
  border: 1.5px dashed rgba(103,184,227,.35);
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  background: rgba(15,29,48,.4);
  transition: border-color .2s var(--afp-ease), background .2s var(--afp-ease);
}
.afp-dark-page .afp-dropzone:hover,
.afp-dark-page .afp-dropzone.drag {
  border-color: var(--af-blue);
  background: rgba(63,148,194,.08);
}
.afp-dark-page .afp-dropzone .dz-ic { width: 32px; height: 32px; color: var(--af-blue-light); margin: 0 auto 10px; display: block; }
.afp-dark-page .afp-dropzone .dz-title { font-size: .92rem; font-weight: 600; color: var(--afp-text); }
.afp-dark-page .afp-dropzone .dz-title b { color: var(--af-blue-light); font-weight: 600; }
.afp-dark-page .afp-dropzone .dz-hint { font-size: .78rem; color: var(--afp-text-faint); margin-top: 6px; }

/* Pulsante ghost / secondary su scuro */
.afp-dark-page .btn-ghost, .afp-dark-page .btn.ghost,
.afp-dark-page .btn-secondary, .afp-dark-page .btn.secondary {
  color: var(--afp-text-dim);
  background: transparent;
  border: 1px solid rgba(103,184,227,.22);
}
.afp-dark-page .btn-ghost:hover, .afp-dark-page .btn.ghost:hover,
.afp-dark-page .btn-secondary:hover, .afp-dark-page .btn.secondary:hover {
  color: var(--afp-text);
  border-color: rgba(103,184,227,.4);
  background: rgba(103,184,227,.06);
}

/* Ticket code display su scuro */
.afp-dark-page .ticket-code-display {
  background: rgba(63,148,194,.12);
  border: 1px solid rgba(103,184,227,.3);
  color: var(--af-blue-light);
}

/* z-index del contenuto sopra la rete */
.afp-dark-page > * { position: relative; z-index: 2; }
.afp-dark-page .portal-header { z-index: 20; }

/* =========================================================================
   AREE DI LAVORO CHIARE (dashboard admin, tabelle) — solo rifinitura blu
   Restano com'erano: cambia solo il blu del brand grazie ai token sopra.
   ========================================================================= */

/* reduce motion: nessuna animazione d'ingresso */
@media (prefers-reduced-motion: reduce) {
  .auth-container,
  .afp-dark-page .portal-home-hero,
  .afp-dark-page .content-card { animation: none; opacity: 1; transform: none; }
  .btn-primary::after, .btn.primary::after { display: none; }
  .critical-priority-modal__panel { animation: none; }
}

/* --- Avviso priorità Critica (portale clienti) --- */
.critical-priority-banner {
  margin-top: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 2px solid #f87171;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.22), rgba(127, 29, 29, 0.35));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(248, 113, 113, 0.25), 0 10px 30px rgba(220, 38, 38, 0.18);
}

.critical-priority-banner__title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fecaca;
  margin-bottom: 6px;
}

.critical-priority-banner p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #fee2e2;
}

.critical-priority-banner strong {
  color: #fff;
  font-weight: 800;
}

body.critical-priority-modal-open {
  overflow: hidden;
}

.critical-priority-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.critical-priority-modal[hidden] {
  display: none !important;
}

.critical-priority-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 8, 23, 0.78);
  backdrop-filter: blur(4px);
}

.critical-priority-modal__panel {
  position: relative;
  width: min(100%, 520px);
  padding: 28px 28px 24px;
  border-radius: 18px;
  border: 2px solid #ef4444;
  background: linear-gradient(180deg, #3f1218 0%, #1a0b10 100%);
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(248, 113, 113, 0.35),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 40px rgba(220, 38, 38, 0.25);
  animation: criticalModalIn 0.22s ease-out;
}

@keyframes criticalModalIn {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.critical-priority-modal__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 900;
  color: #fff;
  background: #dc2626;
  box-shadow: 0 0 0 6px rgba(220, 38, 38, 0.22);
}

.critical-priority-modal__title {
  margin: 0 0 12px;
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: #fecaca;
}

.critical-priority-modal__message {
  margin: 0 0 10px;
  text-align: center;
  font-size: 17px;
  line-height: 1.55;
  color: #fee2e2;
}

.critical-priority-modal__message strong {
  color: #fff;
  font-size: 18px;
}

.critical-priority-modal__highlight {
  display: block;
  margin-top: 10px;
  font-size: 19px;
  font-weight: 800;
  color: #fff;
}

.critical-priority-modal__hint {
  margin: 0 0 22px;
  text-align: center;
  font-size: 13px;
  color: #fca5a5;
}

.critical-priority-modal__actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.critical-priority-modal__actions .btn {
  min-width: 160px;
  font-weight: 700;
}

.critical-priority-modal__actions .btn-danger {
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.critical-priority-modal__actions .btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
}
