* {
  box-sizing: border-box;
}

:root {
  --app-font: "Manrope", "Segoe UI", Arial, sans-serif;
  --bg-page: #edf3f7;
  --text-main: #102033;
  --text-soft: #607286;
  --line-soft: rgba(214, 226, 236, 0.96);
  --surface-card: rgba(255, 255, 255, 0.96);
  --surface-alt: #f7fafc;
  --brand-500: #1496cc;
  --brand-600: #0f6f9a;
  --brand-700: #0b5a7e;
  --shadow-card: 0 20px 48px rgba(15, 23, 42, 0.08);
}

body {
  margin: 0;
  font-family: var(--app-font);
  background: var(--bg-page);
  color: var(--text-main);
}

a {
  color: #0d6efd;
}

a:hover {
  color: #0b5ed7;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(15, 23, 42, 0.03), transparent 22%),
    linear-gradient(180deg, #f7f8fa 0%, #f1f4f7 100%);
}

.app-main {
  min-height: calc(100vh - 132px);
}

.app-container {
  width: 100%;
  max-width: 100%;
  padding-inline: 20px;
}

.app-navbar {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

.app-nav-container {
  padding-inline: 24px;
}

.app-brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  border-radius: 12px;
  background: #ffffff;
  padding: 3px;
  border: 1px solid #e5e7eb;
}

.app-brand-text {
  color: #0f172a;
}

.app-brand-title {
  font-size: 1.05rem;
  font-weight: 700;
}

.app-brand-subtitle {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.navbar-user-meta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-nav-link {
  color: #334155 !important;
  font-weight: 600;
  border-radius: 10px;
  padding-inline: 12px !important;
}

.app-nav-link:hover,
.app-nav-link.active {
  color: #0f172a !important;
  background: #eef2f7;
}

.app-user-name {
  color: #334155 !important;
}

.role-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 88px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.role-chip-admin {
  color: #0f172a;
  background: #fef3c7;
}

.role-chip-vendeur {
  color: #0f172a;
  background: #d1fae5;
}

.role-chip-technicien {
  color: #0f172a;
  background: #e2e8f0;
}

.role-chip-ticket {
  color: #0f172a;
  background: #dbeafe;
}

.app-logout-btn {
  color: #0f172a;
  background: #ffffff;
  border: 1px solid #d1d5db;
}

.app-logout-btn:hover {
  background: #f8fafc;
  color: #0f172a;
}

.page {
  padding: 0;
}

.card {
  width: 100%;
  max-width: 100%;
  background: #ffffff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
  border: 1px solid #e5e7eb;
}

.card-wide {
  max-width: 100%;
}

.ticket-workspace {
  max-width: 100%;
  padding-inline: 28px;
}

h1 {
  margin-top: 0;
}

.auth-card {
  max-width: 460px;
}

.login-logo {
  width: min(100%, 280px);
  height: auto;
  object-fit: contain;
}

.login-shell {
  min-height: calc(100vh - 220px);
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 460px);
  gap: 32px;
  align-items: center;
}

.login-brand-panel {
  display: grid;
  gap: 18px;
  align-content: center;
  max-width: 560px;
}

.login-kicker {
  display: inline-block;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.login-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.login-copy {
  max-width: 48ch;
  margin: 0;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.7;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
}

.login-form-head {
  margin-bottom: 8px;
}

.login-form-head h2 {
  margin: 0 0 6px;
  font-size: 1.6rem;
}

.login-form-head p {
  margin: 0;
  color: #64748b;
}

.form-stack {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

label {
  font-weight: 600;
}

input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
}

select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  font-size: 1rem;
  font-family: inherit;
}

.select-small {
  min-width: 170px;
  padding: 9px 12px;
  font-size: 0.92rem;
}

button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #0d6efd;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  background: linear-gradient(180deg, #1f7bff 0%, #0d6efd 100%);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.18);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

button:hover {
  background: linear-gradient(180deg, #3b8cff 0%, #0b5ed7 100%);
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
  transform: translateY(-1px);
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: 1px solid #0d6efd;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.96rem;
  font-weight: 700;
  line-height: 1.2;
  color: #ffffff;
  background: linear-gradient(180deg, #1f7bff 0%, #0d6efd 100%);
  box-shadow: 0 10px 22px rgba(13, 110, 253, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.button-link:hover {
  color: #ffffff;
  background: linear-gradient(180deg, #3b8cff 0%, #0b5ed7 100%);
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.22);
  transform: translateY(-1px);
}

.button-secondary {
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-color: #cbd5e1;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.button-secondary:hover {
  color: #0f172a;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  border-color: #94a3b8;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.button-small {
  min-height: 38px;
  padding: 8px 14px;
  font-size: 0.85rem;
  border-radius: 999px;
  box-shadow: none;
}

.button-danger {
  border-color: #dc2626;
  color: #ffffff;
  background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%);
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.18);
}

.button-danger:hover {
  background: linear-gradient(180deg, #f87171 0%, #b91c1c 100%);
  box-shadow: 0 12px 24px rgba(220, 38, 38, 0.24);
}

.alert {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
}

.alert-error {
  background: #fee2e2;
  color: #991b1b;
}

.hint {
  margin-top: 16px;
  color: #6b7280;
  font-size: 0.95rem;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.dashboard-hero-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  margin: 18px 0 24px;
  padding: 22px 24px;
  border-radius: 24px;
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.22), transparent 28%),
    linear-gradient(135deg, #f6fbff 0%, #eef7ff 48%, #f8fbff 100%);
  border: 1px solid #d6e8f5;
}

.dashboard-hero-banner-content h2 {
  margin: 6px 0 8px;
  font-size: 1.55rem;
}

.dashboard-hero-banner-content p {
  margin: 0;
  color: #5b7085;
  max-width: 58ch;
}

.dashboard-hero-kicker {
  display: inline-flex;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(20, 150, 204, 0.12);
  color: #0f6f9a;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid transparent;
}

.dashboard-hero-badge-blue {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.dashboard-hero-badge-amber {
  background: #fef3c7;
  color: #b45309;
  border-color: #fcd34d;
}

.dashboard-hero-badge-green {
  background: #dcfce7;
  color: #15803d;
  border-color: #86efac;
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.dashboard-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin: 22px 0 24px;
}

.dashboard-kpi-card {
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: none;
}

.dashboard-kpi-card-blue {
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border-color: #bfdbfe;
}

.dashboard-kpi-card-cyan {
  background: linear-gradient(180deg, #ecfeff 0%, #f6feff 100%);
  border-color: #a5f3fc;
}

.dashboard-kpi-card-amber {
  background: linear-gradient(180deg, #fff7ed 0%, #fffaf2 100%);
  border-color: #fed7aa;
}

.dashboard-kpi-card-green {
  background: linear-gradient(180deg, #ecfdf5 0%, #f4fff8 100%);
  border-color: #a7f3d0;
}

.dashboard-kpi-card-red {
  background: linear-gradient(180deg, #fef2f2 0%, #fff7f7 100%);
  border-color: #fecaca;
}

.dashboard-kpi-card-indigo {
  background: linear-gradient(180deg, #eef2ff 0%, #f7f8ff 100%);
  border-color: #c7d2fe;
}

.dashboard-kpi-card-highlight {
  background: #f8fafc;
  border-color: #dbe5f0;
}

.dashboard-kpi-value {
  display: block;
  margin: 8px 0 6px;
  color: #0f172a;
  font-size: 1.8rem;
  font-weight: 800;
}

.dashboard-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.dashboard-priority-panel {
  margin-bottom: 22px;
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.92) 0%, #ffffff 24%);
  border-color: #f6d6aa;
}

.dashboard-priority-list {
  display: grid;
  gap: 12px;
}

.dashboard-priority-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-priority-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.dashboard-priority-item-high {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  border-color: #fecaca;
}

.dashboard-priority-item-medium {
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
  border-color: #fed7aa;
}

.dashboard-priority-main {
  display: grid;
  gap: 4px;
}

.dashboard-priority-main span {
  color: #0f172a;
}

.dashboard-priority-main small {
  color: #64748b;
}

.dashboard-panel {
  min-height: 100%;
}

.dashboard-panel-blue {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.86) 0%, #ffffff 22%);
  border-color: #cfe0fb;
}

.dashboard-panel-amber {
  background:
    linear-gradient(180deg, rgba(255, 247, 237, 0.88) 0%, #ffffff 22%);
  border-color: #f8d6b0;
}

.dashboard-panel-green {
  background:
    linear-gradient(180deg, rgba(236, 253, 245, 0.88) 0%, #ffffff 22%);
  border-color: #b8efd2;
}

.stats-kpi-grid {
  margin-bottom: 28px;
}

.stats-kpi-grid-compact {
  margin-top: 18px;
}

.stats-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(280px, 0.9fr);
  gap: 18px;
  margin-bottom: 20px;
  padding: 22px 24px;
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(13, 110, 253, 0.06), rgba(15, 23, 42, 0.02)),
    #fbfdff;
}

.stats-hero-copy h1 {
  margin-bottom: 10px;
}

.stats-hero-copy p,
.stats-hero-side .muted {
  margin: 0;
}

.stats-hero-badge {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stats-hero-side {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #e2e8f0;
}

.stats-hero-side strong {
  font-size: 1.5rem;
  color: #0f172a;
  line-height: 1.05;
}

.stats-period-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.stats-toolbar {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 18px;
}

.stats-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stats-highlight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.stats-highlight-card {
  display: grid;
  gap: 8px;
  min-height: 100%;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.stats-highlight-card-primary {
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  border-color: transparent;
  color: #ffffff;
}

.stats-highlight-card-primary .stats-highlight-value {
  color: #ffffff;
}

.stats-highlight-card-primary .stats-highlight-kicker,
.stats-highlight-card-primary .stats-highlight-title,
.stats-highlight-card-primary p {
  color: rgba(255, 255, 255, 0.84);
}

.stats-highlight-card-interventions {
  background: linear-gradient(180deg, #ecfdf5 0%, #f7fffb 100%);
  border-color: #a7f3d0;
}

.stats-highlight-card-interventions .stats-highlight-kicker {
  color: #15803d;
}

.stats-highlight-card-workshop {
  background: linear-gradient(180deg, #fff7ed 0%, #fffdf8 100%);
  border-color: #fdba74;
}

.stats-highlight-card-workshop .stats-highlight-kicker {
  color: #c2410c;
}

.stats-highlight-card-performance {
  background: linear-gradient(180deg, #eef2ff 0%, #f8faff 100%);
  border-color: #c7d2fe;
}

.stats-highlight-card-performance .stats-highlight-kicker {
  color: #4338ca;
}

.stats-highlight-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.stats-highlight-value {
  font-size: clamp(1.8rem, 2.8vw, 2.5rem);
  line-height: 1;
  color: #0f172a;
}

.stats-highlight-title {
  font-size: 1rem;
  font-weight: 700;
  color: #334155;
}

.stats-highlight-card p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.stats-panels {
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.stats-chart-panel {
  margin-bottom: 24px;
}

.stats-chart-shell {
  padding: 18px 16px 6px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.stats-chart-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 16px;
  padding: 18px 18px 14px;
  border-radius: 18px;
  border: 1px solid #d9e7f3;
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.08), transparent 26%),
    linear-gradient(180deg, #fbfdff 0%, #f4f9fd 100%);
}

.stats-chart-controls-actions {
  display: flex;
  align-items: end;
}

.stats-chart-range-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 14px;
  padding: 0 4px;
}

.stats-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.stats-chart-grid-line {
  stroke: #dbe5f0;
  stroke-width: 1;
}

.stats-chart-line {
  stroke: #2563eb;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stats-chart-dot {
  fill: #2563eb;
  stroke: #ffffff;
  stroke-width: 3;
}

.stats-chart-axis-label {
  fill: #64748b;
  font-size: 12px;
  font-family: "Segoe UI", Arial, sans-serif;
}

.stats-chart-point-label {
  fill: #0f172a;
  font-size: 11px;
  font-weight: 700;
  font-family: "Segoe UI", Arial, sans-serif;
}

.stats-chart-legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.stats-panels-charts {
  margin-bottom: 24px;
}

.stats-mini-chart-shell {
  padding: 16px 12px 4px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.stats-mini-chart-svg {
  display: block;
  width: 100%;
  height: auto;
}

.stats-chart-legend-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.stats-chart-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.stats-list {
  display: grid;
  gap: 12px;
}

.stats-list-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
}

.ticket-inline-number {
  display: grid;
  gap: 3px;
}

.ticket-inline-number strong,
.ticket-mobile-number {
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.ticket-inline-reference,
.ticket-summary-reference {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.3;
}

.form-hint {
  display: block;
  margin-top: 6px;
  color: #64748b;
  font-size: 0.8rem;
}

.client-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.client-mobile-list {
  display: none;
  gap: 14px;
  margin-top: 18px;
}

.client-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #dbe5f0;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.client-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.client-card-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.client-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.client-card-actions form,
.client-actions form,
.inline-form {
  margin: 0;
}

.client-card-actions form {
  display: contents;
}

.client-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  color: #1d4ed8;
  font-weight: 800;
  font-size: 1.1rem;
  border: 1px solid #bfdbfe;
}

.client-avatar-small {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  font-size: 0.95rem;
}

.client-avatar-large {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  font-size: 1.5rem;
}

.client-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}

.client-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  margin-bottom: 20px;
  border-radius: 20px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  border: 1px solid #dbeafe;
}

.client-hero-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}

.client-hero-identity h2 {
  margin: 4px 0 8px;
}

.client-hero-identity p {
  margin: 0;
  color: #475569;
}

.client-hero-status {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.client-form-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 22px;
  margin-bottom: 20px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.client-form-hero h2 {
  margin: 4px 0 8px;
}

.module-action-zone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.module-action-zone-wide {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.client-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.client-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.client-action-chip-primary {
  color: #ffffff;
  background: #0f6f9a;
}

.client-action-chip-secondary {
  color: #0f172a;
  background: #e2e8f0;
}

.client-action-chip-danger {
  color: #ffffff;
  background: #dc2626;
}

.dashboard-list {
  display: grid;
  gap: 12px;
}

.dashboard-list-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  text-decoration: none;
  color: inherit;
}

.dashboard-list-item:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.dashboard-list-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  text-align: right;
}

.nav-card {
  display: block;
  text-decoration: none;
  color: inherit;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
}

.nav-card strong {
  display: block;
  margin-bottom: 6px;
}

.nav-card span {
  color: #6b7280;
}

.nav-card:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
}

.nav-card:nth-child(5n + 1) {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
}

.nav-card:nth-child(5n + 2) {
  border-color: #fde68a;
  background: linear-gradient(180deg, #fffbeb 0%, #ffffff 100%);
}

.nav-card:nth-child(5n + 3) {
  border-color: #a7f3d0;
  background: linear-gradient(180deg, #ecfdf5 0%, #ffffff 100%);
}

.nav-card:nth-child(5n + 4) {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
}

.nav-card:nth-child(5n + 5) {
  border-color: #fbcfe8;
  background: linear-gradient(180deg, #fdf2f8 0%, #ffffff 100%);
}

.app-footer {
  background: transparent;
  backdrop-filter: none;
}

.tech-home-banner {
  margin: 18px 0 8px;
  padding: 18px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.tech-home-banner h2 {
  margin: 0 0 8px;
}

.tech-large-button {
  min-width: 180px;
  text-align: center;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 18px;
}

.actions-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.inline-status-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.quick-save-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

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

.filters-actions,
.full-width {
  grid-column: 1 / -1;
}

.table-wrapper {
  overflow-x: auto;
  margin-top: 20px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}

.ticket-workspace .data-table {
  min-width: 1180px;
}

.data-table th,
.data-table td {
  padding: 14px 12px;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
  text-align: left;
}

.data-table th {
  background: #f8fafc;
  font-size: 0.95rem;
}

.muted {
  color: #6b7280;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
}

.status-success {
  background: #dcfce7;
  color: #166534;
}

.status-muted {
  background: #e5e7eb;
  color: #374151;
}

.status-info {
  background: #dbeafe;
  color: #1d4ed8;
}

.status-warning {
  background: #fef3c7;
  color: #92400e;
}

.status-danger {
  background: #fee2e2;
  color: #991b1b;
}

.status-neutral {
  background: #e5e7eb;
  color: #374151;
}

.alert-inline-warning {
  margin-top: 8px;
  color: #92400e;
  font-size: 0.88rem;
  font-weight: 700;
}

.empty-state {
  padding: 24px 0 8px;
  color: #6b7280;
}

.error-list {
  margin: 0;
  padding-left: 18px;
}

.form-meta {
  margin-top: -4px;
}

.details-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

.ticket-workspace .details-grid {
  grid-template-columns: 1.45fr 1.1fr;
}

.ticket-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.ticket-summary-grid-extended {
  margin-top: -4px;
}

.ticket-summary-grid-dense {
  align-items: stretch;
}

.ticket-summary-grid-dense .summary-card {
  min-height: 100%;
}

.ticket-summary-grid-dense .summary-value {
  line-height: 1.35;
}

.ticket-action-zone {
  display: grid;
  grid-template-columns: 1.8fr 0.9fr;
  gap: 18px;
  margin-bottom: 20px;
}

.ticket-action-main {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ticket-action-card {
  display: grid;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  background: #ffffff;
  border: 1px solid #dbe5f0;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.ticket-action-card-compact {
  grid-template-columns: auto 1fr;
  grid-template-areas:
    "icon label"
    "icon title"
    "icon text";
  column-gap: 12px;
  row-gap: 4px;
  padding: 16px 18px;
  align-items: start;
}

.ticket-action-icon {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.ticket-action-icon svg {
  width: 20px;
  height: 20px;
}

.ticket-action-card:hover {
  border-color: #bfd0e3;
  background: #f8fbff;
}

.ticket-action-button {
  width: 100%;
  text-align: left;
  appearance: none;
  cursor: pointer;
  font: inherit;
}

.ticket-action-card-compact strong {
  grid-area: title;
  color: #0f172a;
  font-size: 0.98rem;
}

.ticket-action-card-compact span:last-child {
  grid-area: text;
  color: #64748b;
  line-height: 1.5;
  font-size: 0.9rem;
}

.ticket-action-card-primary {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: #bfdbfe;
}

.ticket-action-card-secondary {
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.ticket-action-label {
  grid-area: label;
  display: inline-block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ticket-action-side {
  display: grid;
}

.ticket-action-meta {
  display: grid;
  gap: 12px;
  padding: 18px 20px;
  border-radius: 18px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ticket-action-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #e5e7eb;
}

.ticket-action-meta-row:last-child {
  border-bottom: 0;
}

.summary-card {
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid #dbeafe;
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
}

.summary-label {
  display: block;
  margin-bottom: 6px;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.summary-value {
  display: block;
  color: #0f172a;
  font-size: 1.05rem;
}

.info-card {
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 18px;
  background: #fbfcfd;
}

.info-card h2,
.history-block h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.info-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.info-list dt {
  font-weight: 700;
  margin-bottom: 4px;
}

.info-list dd {
  margin: 0;
  color: #334155;
}

.full-detail {
  grid-column: 1 / -1;
}

.single-column {
  grid-template-columns: 1fr;
}

.ticket-content-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 18px;
}

.ticket-workspace .ticket-content-grid {
  grid-template-columns: 1.6fr 1fr;
}

.ticket-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.ticket-focus-panel {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

.ticket-focus-panel h2 {
  margin-top: 0;
  margin-bottom: 14px;
}

.ticket-focus-stack {
  display: grid;
  gap: 12px;
}

.ticket-focus-item {
  padding: 14px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

.ticket-table-note {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.45;
}

.ticket-table-subnote {
  margin-top: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ticket-list-table {
  min-width: 1420px;
}

.ticket-list-row td {
  white-space: nowrap;
  vertical-align: middle;
}

.ticket-inline-number strong,
.ticket-inline-client,
.ticket-inline-tech {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}

.ticket-inline-main {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.ticket-inline-device {
  font-weight: 700;
  color: #0f172a;
}

.ticket-inline-device,
.ticket-inline-meta,
.ticket-inline-problem {
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticket-inline-meta,
.ticket-inline-problem {
  color: #64748b;
}

.ticket-inline-problem {
  flex: 1 1 auto;
  min-width: 0;
}

.ticket-inline-separator {
  color: #94a3b8;
  flex: 0 0 auto;
}

.ticket-inline-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: #475569;
  font-size: 0.88rem;
}

.ticket-row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: nowrap;
}

.ticket-row-actions .inline-status-form {
  flex-wrap: nowrap;
}

.stock-management-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 18px;
  margin-top: 24px;
}

.sale-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 18px;
}

.sale-add-form {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.sale-add-form input {
  max-width: 84px;
}

.sale-qty-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.sale-cart-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.sale-cart-edit-grid > div {
  display: grid;
  gap: 6px;
  align-content: start;
}

.sale-cart-edit-grid input {
  max-width: 100%;
  min-height: 46px;
}

.sale-cart-edit-hint {
  grid-column: 1 / 2;
  margin-top: -2px;
}

.sale-qty-form .button-small {
  min-height: 46px;
  align-self: end;
}

.sale-cart-card {
  align-self: start;
}

.sale-cart-list {
  display: grid;
  gap: 12px;
}

.sale-cart-item {
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  display: grid;
  gap: 10px;
}

.sale-product-row,
.sale-cart-item-top {
  display: grid;
  grid-template-columns: 64px 1fr;
  column-gap: 16px;
  align-items: start;
}

.sale-product-thumb-shell,
.sale-cart-thumb-shell {
  width: 64px;
  height: 64px;
  min-width: 64px;
  min-height: 64px;
  margin-right: 2px;
}

.sale-product-row > div:last-child,
.sale-cart-item-top > div:last-child {
  min-width: 0;
  padding-top: 2px;
}

.sale-product-row strong,
.sale-cart-item-top strong {
  display: block;
  line-height: 1.35;
  margin-bottom: 4px;
  word-break: break-word;
}

.sale-cart-price-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: 6px;
  color: #607286;
  font-size: 0.84rem;
}

.sale-discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #15803d;
  font-weight: 700;
}

.sale-discount-badge-up {
  background: #fff7ed;
  color: #c2410c;
}

.sale-line-total {
  margin-top: 10px;
}

.sale-history-products {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 340px;
}

.sale-history-product-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #eef6fb;
  border: 1px solid #d7e7f3;
  color: #26435f;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.2;
  word-break: break-word;
}


.sale-total-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  border-radius: 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
}

.sale-checkout-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.stock-kpis {
  display: grid;
  gap: 12px;
}

.movement-history-card {
  margin-top: 18px;
}

.product-cell {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 14px;
  align-items: center;
}

.filters-grid-stock {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.product-table-description {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-width: 520px;
}

.product-thumb-shell {
  width: 78px;
  height: 78px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-thumb-fallback {
  color: #94a3b8;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.product-detail-hero {
  display: grid;
  grid-template-columns: minmax(240px, 320px) 1fr;
  gap: 22px;
  margin-bottom: 22px;
  align-items: stretch;
}

.product-detail-visual,
.product-detail-main {
  min-width: 0;
}

.product-detail-image-shell {
  width: 100%;
  min-height: 280px;
  border-radius: 24px;
  border: 1px solid #dbe4ec;
  background: linear-gradient(180deg, #f8fbff 0%, #eef4f8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.product-detail-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.product-detail-image-fallback {
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.product-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.product-detail-head h2 {
  margin: 4px 0 6px;
}

.product-detail-head p {
  margin: 0;
  color: #64748b;
}

.product-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-paragraph {
  margin: 0;
  color: #334155;
  line-height: 1.7;
  white-space: pre-line;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
  padding: 14px 6px 0;
}

.catalog-pagination-summary {
  color: #64748b;
  font-size: 0.95rem;
}

.catalog-pagination-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.catalog-view-switcher {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.catalog-view-switcher-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid rgba(214, 226, 236, 0.96);
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.05);
}

.product-card-image-shell {
  aspect-ratio: 16 / 10;
  background: linear-gradient(180deg, #f4f8fb 0%, #edf4f8 100%);
  border-bottom: 1px solid rgba(214, 226, 236, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card-image-fallback {
  font-weight: 800;
  color: #94a3b8;
  letter-spacing: 0.12em;
}

.product-card-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.product-card-head h3 {
  margin: 4px 0 0;
  font-size: 1.1rem;
}

.product-card-subtitle {
  margin-top: -6px;
}

.product-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.product-card-stock-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-top: 4px;
}

.product-card-stock-row strong,
.product-card-meta strong {
  display: block;
  margin-top: 4px;
}

.product-card-secondary {
  display: grid;
  gap: 4px;
  color: #64748b;
  font-size: 0.88rem;
}

.product-card-actions {
  padding-top: 6px;
}

.planning-list {
  display: grid;
  gap: 16px;
}

.planning-week-shell {
  margin: 18px 0 22px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(214, 226, 236, 0.96);
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.05), transparent 24%),
    linear-gradient(180deg, #fbfdff 0%, #f6fafe 100%);
}

.planning-week-head {
  margin-bottom: 14px;
}

.planning-week-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.planning-week-column {
  min-width: 180px;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid #dbe7f1;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbfe 100%);
}

.planning-week-column-head {
  display: grid;
  gap: 6px;
}

.planning-week-items {
  display: grid;
  gap: 10px;
}

.planning-week-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  border: 1px solid #dbe7f1;
  background: #ffffff;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.planning-week-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
}

.planning-week-item-urgent {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.planning-week-item-high {
  border-color: #fed7aa;
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
}

.planning-week-item-normal {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%);
}

.planning-week-item-time {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.planning-week-item-time strong {
  font-size: 1rem;
}

.planning-week-item-time span {
  color: #64748b;
  font-size: 0.88rem;
}

.planning-week-item-main {
  display: grid;
  gap: 4px;
}

.planning-week-item-main span {
  color: #0f172a;
  font-size: 0.94rem;
}

.planning-week-item-main small {
  color: #64748b;
}

.planning-week-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed #d8e2ea;
  color: #64748b;
  background: rgba(255, 255, 255, 0.66);
  text-align: center;
}

.planning-list-head {
  margin: 4px 0 14px;
}

.planning-card {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(214, 226, 236, 0.96);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.planning-card-time {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 16px;
  background: linear-gradient(180deg, #eff8ff 0%, #f8fcff 100%);
  border: 1px solid #cfe4fb;
}

.planning-card-main {
  display: grid;
  gap: 12px;
}

.planning-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: start;
}

.planning-card-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.planning-card-head h3 {
  margin: 0 0 4px;
  font-size: 1.05rem;
}

.planning-card-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.planning-meta-card {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(214, 226, 236, 0.88);
  background: #f8fbfe;
}

.planning-meta-label {
  display: inline-flex;
  align-items: center;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
}

.planning-card-notes {
  margin: 0;
  color: #475569;
  line-height: 1.55;
}

.planning-card-actions {
  display: grid;
  gap: 8px;
  align-items: flex-end;
  align-content: start;
}

.planning-action-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.planning-action-chip:hover {
  transform: translateY(-1px);
}

.planning-action-chip-primary {
  background: linear-gradient(180deg, #0f8bd7 0%, #0a74b5 100%);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(14, 116, 180, 0.18);
}

.planning-action-chip-secondary {
  background: #f8fbfe;
  color: #21405d;
  border-color: #d9e4ee;
}

.priority-popup-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.priority-popup {
  width: min(760px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.12), transparent 32%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.22);
}

.priority-popup-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 18px;
}

.priority-popup-head h2 {
  margin: 4px 0 8px;
}

.priority-popup-close {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 14px;
  font-size: 1.6rem;
  line-height: 1;
}

.priority-popup-list {
  display: grid;
  gap: 12px;
}

.priority-popup-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  border: 1px solid rgba(214, 226, 236, 0.96);
  background: #ffffff;
}

.priority-popup-item-high {
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
  border-color: #fecaca;
}

.priority-popup-item-medium {
  background: linear-gradient(180deg, #fffaf2 0%, #ffffff 100%);
  border-color: #fed7aa;
}

.priority-popup-item-main {
  display: grid;
  gap: 4px;
}

.priority-popup-item-main span {
  color: #0f172a;
}

.priority-popup-item-main small {
  color: #64748b;
}

.priority-popup-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.referentials-grid {
  grid-template-columns: 1fr 1.3fr;
}

.referential-inline-form,
.referential-supplier-form,
.referential-model-form {
  display: grid;
  gap: 10px;
  align-items: center;
}

.referential-inline-form {
  grid-template-columns: minmax(160px, 220px) 1fr auto;
}

.referential-supplier-form {
  grid-template-columns: minmax(150px, 180px) repeat(4, minmax(120px, 1fr)) auto;
}

.referential-model-form {
  grid-template-columns: minmax(150px, 180px) minmax(150px, 180px) 1fr auto;
}

.product-form-preview {
  display: grid;
  gap: 10px;
}

.reference-generator-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.reference-generate-btn {
  min-height: 48px;
  white-space: nowrap;
}

.product-form-image {
  width: min(100%, 280px);
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #dbe5f0;
  background: #f8fafc;
}

.compact-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ticket-workspace .form-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ticket-workspace .compact-form-grid {
  grid-template-columns: 2fr 1fr;
}

.ticket-mobile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.ticket-device-quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ticket-device-chip {
  min-height: 40px;
  padding-inline: 14px;
}

.tech-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.quick-action {
  display: block;
  text-decoration: none;
  color: inherit;
  padding: 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.quick-action strong {
  display: block;
  margin-bottom: 6px;
}

.quick-action span {
  color: #64748b;
}

.quick-action:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
}

.ticket-mobile-list {
  display: none;
  gap: 14px;
  margin-top: 18px;
}

.ticket-mobile-card {
  border: 1px solid #dbeafe;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.ticket-mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.ticket-mobile-statuses {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ticket-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 180px));
  gap: 14px;
}

.ticket-photo-upload-form {
  grid-template-columns: minmax(280px, 1.15fr) minmax(240px, 1fr) auto !important;
  align-items: start;
  gap: 14px 16px;
  margin-bottom: 10px;
  padding: 14px 16px;
  border: 1px solid rgba(214, 226, 236, 0.92);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfdff 0%, #f6fbff 100%);
}

.ticket-photo-upload-main,
.ticket-photo-upload-caption,
.ticket-photo-upload-actions {
  min-width: 0;
  display: grid;
  gap: 6px;
}

.ticket-photo-upload-form label {
  margin-bottom: 0;
}

.ticket-photo-upload-form input[type="file"],
.ticket-photo-upload-form input[type="text"] {
  min-height: 44px;
}

.ticket-photo-upload-actions {
  display: flex;
  justify-content: flex-end;
  align-self: start;
  padding-top: 29px;
}

.ticket-photo-upload-actions .button,
.ticket-photo-upload-actions button {
  min-width: 170px;
}

.ticket-photo-card {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(214, 226, 236, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.ticket-photo-link {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  background: #e2e8f0;
  border: 1px solid rgba(214, 226, 236, 0.92);
}

.ticket-photo-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.ticket-photo-comment-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ticket-photo-body {
  display: grid;
  gap: 6px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(214, 226, 236, 0.92);
  background: #f8fbfe;
}

.ticket-photo-comment-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.35;
  color: #17324d;
}

.ticket-photo-body .muted {
  font-size: 0.78rem;
  line-height: 1.45;
}

.ticket-photo-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
}

.ticket-photo-inline-edit {
  position: relative;
}

.ticket-photo-inline-edit summary {
  list-style: none;
}

.ticket-photo-inline-edit summary::-webkit-details-marker {
  display: none;
}

.ticket-photo-inline-edit-form {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 20;
  display: grid;
  gap: 8px;
  min-width: 220px;
  padding: 10px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid rgba(214, 226, 236, 0.92);
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.08);
}

.ticket-photo-inline-edit-form input[type="text"] {
  min-height: 40px;
}


.ticket-mobile-number {
  display: block;
  font-size: 1.05rem;
}

.ticket-mobile-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.ticket-mobile-problem {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.ticket-mobile-problem p {
  margin: 0;
  color: #334155;
}

.mobile-label {
  display: block;
  margin-bottom: 5px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ticket-mobile-status {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 16px;
}

.ticket-mobile-save,
.quick-save-button {
  min-height: 52px;
  padding-inline: 18px;
}

.ticket-piece-delete {
  width: 100%;
  margin-top: 14px;
}

.ticket-mobile-quick-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.ticket-mobile-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.mobile-action-primary,
.mobile-action-secondary {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
}

.mobile-action-primary {
  color: #ffffff;
  background: #0d6efd;
}

.mobile-action-secondary {
  color: #0f172a;
  background: #e2e8f0;
}

.desktop-only-table {
  display: block;
}

.technician-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.quick-filter-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-weight: 700;
}

.quick-filter-chip:hover {
  color: #1d4ed8;
  background: #dbeafe;
}

.quick-filter-chip-active {
  color: #ffffff;
  background: #0d6efd;
  border-color: #0d6efd;
}

.technician-search-bar {
  margin-bottom: 18px;
}

.technician-search-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.tech-mobile-focus {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 14px;
  margin-bottom: 18px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #eff6ff 0%, #f8fbff 100%);
  border: 1px solid #bfdbfe;
}

.tech-mobile-focus h2 {
  margin: 2px 0 8px;
}

.tech-mobile-focus p {
  margin: 0;
  color: #475569;
}

.tech-mobile-focus-actions {
  display: grid;
  gap: 10px;
  align-content: center;
}

.mobile-piece-list {
  display: none;
}

.mobile-piece-card {
  border-color: #dbe5f0;
  box-shadow: none;
}

.mobile-tech-intro {
  margin-top: -4px;
  margin-bottom: 14px;
}

.history-block {
  margin-top: 8px;
}

.status-update-card {
  margin-bottom: 18px;
}

.sub-row td {
  background: #f8fafc;
}

.info-banner {
  padding: 14px 16px;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  border: 1px solid #bfdbfe;
}

.purchase-lines-stack {
  display: grid;
  gap: 14px;
}

.purchase-line-card {
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.55);
  background: rgba(248, 251, 254, 0.8);
}

.guided-expense-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.guided-expense-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(214, 226, 236, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.guided-expense-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.guided-expense-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.guided-expense-meta {
  display: grid;
  gap: 3px;
  margin: 12px 0;
}

.guided-expense-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.guided-expense-note {
  margin: 10px 0 0;
  color: #5f7085;
  line-height: 1.5;
}

.frontdesk-shell {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.45fr);
  gap: 20px;
  margin-top: 22px;
}

.frontdesk-sidebar,
.frontdesk-main {
  display: grid;
  gap: 18px;
  align-content: start;
}

.frontdesk-panel {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(214, 226, 236, 0.96);
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.06), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.04);
}

.frontdesk-selected-panel {
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.1), transparent 28%),
    linear-gradient(180deg, #fafdff 0%, #f4faff 100%);
}

.frontdesk-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
}

.frontdesk-panel-head h2 {
  margin: 4px 0 0;
  font-size: 1.28rem;
}

.frontdesk-search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.frontdesk-results {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.frontdesk-client-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid #dbe5f0;
  background: #ffffff;
}

.frontdesk-client-card-active {
  border-color: #8ccde8;
  box-shadow: 0 0 0 3px rgba(20, 150, 204, 0.12);
}

.frontdesk-client-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.frontdesk-client-card-top > div:first-child,
.frontdesk-selected-card > div:first-child,
.frontdesk-selected-card .client-hero-identity,
.frontdesk-selected-card .client-hero-identity > div {
  min-width: 0;
}

.frontdesk-client-card-top strong {
  display: block;
  margin-bottom: 4px;
  word-break: break-word;
}

.frontdesk-client-card-top small {
  color: #64748b;
  line-height: 1.45;
  display: block;
  word-break: break-word;
}

.frontdesk-client-card .status-chip,
.frontdesk-selected-card .status-chip {
  flex: 0 0 auto;
  max-width: 100%;
}

.frontdesk-client-card-actions,
.frontdesk-selected-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.frontdesk-form-stack {
  display: grid;
  gap: 16px;
}

.frontdesk-autocomplete {
  position: relative;
}

.frontdesk-suggestion-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 25;
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(206, 219, 232, 0.95);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.1);
  max-height: 250px;
  overflow-y: auto;
}

.frontdesk-suggestion-item {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: #f5f9fd;
  color: #17324d;
  padding: 10px 12px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.frontdesk-suggestion-item:hover,
.frontdesk-suggestion-item:focus-visible {
  background: rgba(20, 150, 204, 0.12);
  color: #0f4c81;
  transform: translateY(-1px);
}

.frontdesk-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.frontdesk-selected-card {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  border: 1px solid #dbeafe;
  background: rgba(255, 255, 255, 0.8);
}

.frontdesk-selected-card h3 {
  margin: 0 0 8px;
  word-break: break-word;
}

.frontdesk-selected-card p {
  margin: 0;
  color: #5b7085;
  line-height: 1.5;
  word-break: break-word;
}

.pickup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-top: 18px;
}

.pickup-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  border: 1px solid rgba(214, 226, 236, 0.96);
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.08), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.04);
}

.pickup-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

.pickup-card-number {
  display: block;
  margin-bottom: 4px;
  font-size: 1.06rem;
  color: #0f172a;
}

.pickup-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
}

.pickup-card-problem {
  padding: 14px 16px;
  border-radius: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.pickup-card-problem p {
  margin: 6px 0 0;
  color: #334155;
  line-height: 1.5;
}

.pickup-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.sale-context-banner {
  margin-top: 20px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.1), transparent 28%),
    linear-gradient(180deg, #fafdff 0%, #f4faff 100%);
}

.sale-context-banner-main {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

/* Professional theme pass */
.app-shell {
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.08), transparent 24%),
    radial-gradient(circle at top left, rgba(15, 23, 42, 0.05), transparent 20%),
    linear-gradient(180deg, #f7fafc 0%, #edf3f7 100%);
}

.app-navbar {
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(214, 226, 236, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.app-nav-container {
  min-height: 84px;
  display: flex;
  align-items: center;
}

.app-brand-lockup {
  padding: 8px 12px 8px 0;
  margin-right: 16px;
}

.app-brand-logo {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border-color: rgba(214, 226, 236, 0.92);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.app-brand-title {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.app-brand-subtitle {
  color: var(--text-soft);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.app-nav-pills {
  gap: 4px;
  flex-wrap: wrap;
}

.navbar-collapse {
  align-items: center;
  gap: 12px;
}

.app-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 10px 14px !important;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.app-nav-icon {
  display: inline-flex;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.app-nav-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.app-nav-link:hover,
.app-nav-link.active {
  background: linear-gradient(180deg, #ffffff 0%, #f1f7fb 100%);
  box-shadow: inset 0 0 0 1px rgba(191, 219, 254, 0.95);
}

.app-user-panel {
  padding: 8px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(214, 226, 236, 0.92);
  margin-left: auto;
}

.app-guest-panel {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  padding: 6px 0;
}

.app-logout-btn {
  border-radius: 999px;
  padding-inline: 16px;
  font-weight: 700;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  white-space: nowrap;
}

.card {
  background: var(--surface-card);
  border-radius: 24px;
  border: 1px solid rgba(214, 226, 236, 0.92);
  box-shadow: var(--shadow-card);
}

h1,
h2 {
  color: #0f172a;
}

h1 {
  font-size: clamp(1.8rem, 2.8vw, 2.45rem);
  letter-spacing: -0.04em;
}

h2 {
  letter-spacing: -0.03em;
}

.page-head p,
.dashboard-header p,
.muted {
  color: var(--text-soft);
}

input,
select,
textarea {
  border-color: var(--line-soft);
  border-radius: 14px;
  background: #ffffff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #8ccde8;
  box-shadow: 0 0 0 4px rgba(20, 150, 204, 0.12);
  background: #fcfeff;
}

button,
.button-link {
  border-color: var(--brand-600);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--brand-500) 0%, var(--brand-600) 100%);
  box-shadow: 0 14px 28px rgba(15, 111, 154, 0.18);
}

button:hover,
.button-link:hover {
  background: linear-gradient(180deg, #28a1d6 0%, var(--brand-700) 100%);
  box-shadow: 0 16px 32px rgba(15, 111, 154, 0.22);
}

.button-secondary {
  color: #102033;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  border-color: var(--line-soft);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.button-secondary:hover {
  color: #102033;
}

.dashboard-kpi-card,
.info-card,
.summary-card,
.nav-card,
.dashboard-list-item,
.ticket-action-card,
.stats-highlight-card,
.stats-chart-legend-item,
.stats-list-row {
  border-color: rgba(214, 226, 236, 0.96);
}

.dashboard-kpi-card,
.info-card,
.nav-card {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 14px 28px rgba(15, 23, 42, 0.04);
}

.summary-card {
  background: linear-gradient(180deg, #fbfeff 0%, #f0f8fc 100%);
}

.dashboard-kpi-card-highlight {
  background: linear-gradient(180deg, #eefbff 0%, #f8fdff 100%);
  border-color: #bfe6f5;
}

.summary-label,
.ticket-action-label,
.stats-highlight-kicker,
.data-table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.summary-label,
.ticket-action-label,
.stats-highlight-kicker {
  font-size: 0.78rem;
}

.table-wrapper {
  border: 1px solid rgba(214, 226, 236, 0.96);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.data-table th {
  background: #f3f7fb;
  color: #64748b;
  font-size: 0.8rem;
}

.data-table tr:hover td {
  background: #f9fcfe;
}

.ticket-action-card,
.nav-card,
.dashboard-list-item {
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.04);
}

.app-footer {
  margin-top: 44px;
  border-color: rgba(214, 226, 236, 0.84) !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, rgba(246, 250, 253, 0.82) 100%);
}

.app-footer-inner {
  padding-inline: 8px;
  align-items: center;
}

.app-footer-block {
  padding: 14px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(214, 226, 236, 0.86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.04);
}

.app-footer-title {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #17324d;
}

.app-footer-text {
  color: #5f7288;
  font-size: 0.84rem;
  line-height: 1.55;
}

.page-head {
  padding: 22px 24px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(239, 248, 255, 0.98) 0%, rgba(248, 252, 255, 0.98) 58%, rgba(236, 246, 255, 0.98) 100%);
  border: 1px solid rgba(191, 219, 254, 0.85);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
}

.page-head h1 {
  margin-bottom: 8px;
}

.page-head > div:first-child {
  max-width: 74ch;
}

.filters-grid {
  padding: 20px 22px;
  margin-bottom: 18px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.06), transparent 30%),
    linear-gradient(180deg, #fbfdff 0%, #f5f9fd 100%);
  border: 1px solid rgba(214, 226, 236, 0.96);
}

.module-action-zone .ticket-action-card:nth-child(1):not(.ticket-action-card-primary):not(.ticket-action-card-secondary) {
  background: linear-gradient(180deg, #f7fbff 0%, #ffffff 100%);
  border-color: #cfe4fb;
}

.module-action-zone .ticket-action-card:nth-child(2):not(.ticket-action-card-primary):not(.ticket-action-card-secondary) {
  background: linear-gradient(180deg, #f5fcfb 0%, #ffffff 100%);
  border-color: #c8eee5;
}

.module-action-zone .ticket-action-card:nth-child(3):not(.ticket-action-card-primary):not(.ticket-action-card-secondary) {
  background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
  border-color: #f7dfbb;
}

.module-action-zone .ticket-action-card:nth-child(4):not(.ticket-action-card-primary):not(.ticket-action-card-secondary) {
  background: linear-gradient(180deg, #f8f7ff 0%, #ffffff 100%);
  border-color: #d9d6fe;
}

.client-kpi-grid .summary-card:nth-child(1),
.ticket-mobile-summary .summary-card:nth-child(1),
.product-kpi-grid .summary-card:nth-child(1) {
  background: linear-gradient(180deg, #eef8ff 0%, #f9fdff 100%);
  border-color: #bfdbfe;
}

.client-kpi-grid .summary-card:nth-child(2),
.ticket-mobile-summary .summary-card:nth-child(2),
.product-kpi-grid .summary-card:nth-child(2) {
  background: linear-gradient(180deg, #effcf8 0%, #fbfefc 100%);
  border-color: #bfe8d9;
}

.client-kpi-grid .summary-card:nth-child(3),
.ticket-mobile-summary .summary-card:nth-child(3),
.product-kpi-grid .summary-card:nth-child(3) {
  background: linear-gradient(180deg, #fff8ef 0%, #fffdf8 100%);
  border-color: #f6d6aa;
}

.client-kpi-grid .summary-card:nth-child(4),
.ticket-mobile-summary .summary-card:nth-child(4),
.product-kpi-grid .summary-card:nth-child(4) {
  background: linear-gradient(180deg, #f5f6ff 0%, #fcfcff 100%);
  border-color: #d9d6fe;
}

.details-grid .info-card:nth-child(1),
.sale-layout .info-card:nth-child(1) {
  background:
    radial-gradient(circle at top right, rgba(20, 150, 204, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfeff 0%, #f5fbff 100%);
  border-color: #d5e8f9;
}

.details-grid .info-card:nth-child(2),
.sale-layout .info-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 28%),
    linear-gradient(180deg, #fcfefc 0%, #f6fcf8 100%);
  border-color: #d8ece0;
}

.history-block {
  padding: 22px;
  border: 1px solid rgba(214, 226, 236, 0.96);
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(99, 102, 241, 0.05), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

@media (max-width: 640px) {
  .app-container {
    padding-inline: 14px;
  }

  .card {
    padding: 18px;
  }

  .ticket-workspace {
    padding-inline: 18px;
  }

  .ticket-workspace.card {
    padding: 14px;
  }

  .login-shell {
    grid-template-columns: 1fr;
    gap: 22px;
    min-height: auto;
  }

  .login-brand-panel {
    max-width: none;
  }

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

  .page-head,
  .filters-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .ticket-workspace .form-grid,
  .ticket-workspace .form-grid.form-grid-2,
  .ticket-workspace .compact-form-grid {
    grid-template-columns: 1fr;
  }

  .details-grid,
  .info-list,
  .module-action-zone,
  .module-action-zone-wide,
  .frontdesk-shell,
  .pickup-grid,
  .dashboard-panels,
  .stats-hero,
  .stats-highlight-grid,
  .ticket-action-zone,
  .ticket-action-main,
  .ticket-summary-grid,
  .ticket-photo-upload-form,
  .ticket-content-grid,
  .ticket-focus-grid,
  .ticket-mobile-summary,
  .tech-quick-actions,
  .stock-management-grid,
  .sale-layout,
  .ticket-mobile-body,
  .ticket-mobile-actions,
  .ticket-mobile-status,
  .client-card-grid,
  .client-card-actions,
  .quick-save-form,
  .sale-checkout-form,
  .tech-mobile-focus,
  .technician-search-row {
    grid-template-columns: 1fr;
  }

  .ticket-mobile-list {
    display: grid;
  }

  .sale-qty-form {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .sale-cart-edit-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sale-cart-edit-hint {
    grid-column: auto;
    margin-top: 0;
  }

  .sale-qty-form .button-small {
    width: 100%;
  }

  .client-mobile-list {
    display: grid;
  }

  .mobile-piece-list {
    display: grid;
  }

  .desktop-only-table {
    display: none;
  }

  .page {
    padding: 0;
  }

  .navbar-user-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-brand-logo {
    width: 48px;
    height: 48px;
  }

  .app-brand-lockup {
    margin-right: 0;
  }

  .navbar-collapse {
    padding-top: 12px;
  }

  .app-user-panel,
  .app-guest-panel {
    margin-left: 0;
    width: 100%;
    justify-content: stretch;
  }

  .app-guest-panel .app-logout-btn,
  .app-user-panel .app-logout-btn {
    width: 100%;
  }

  button,
  .button-link,
  .mobile-action-primary,
  .mobile-action-secondary,
  .quick-filter-chip {
    min-height: 52px;
  }

  .ticket-mobile-card,
  .summary-card,
  .quick-action,
  .info-card {
    border-radius: 18px;
  }

  .ticket-mobile-top {
    flex-direction: column;
  }

  .ticket-action-card-compact {
    grid-template-columns: auto 1fr;
  }

  .product-detail-hero {
    grid-template-columns: 1fr;
  }

  .product-kpi-grid {
    grid-template-columns: 1fr 1fr;
  }

  .referentials-grid,
  .referential-inline-form,
  .referential-supplier-form,
  .filters-grid-stock,
  .catalog-pagination {
    grid-template-columns: 1fr;
  }

  .catalog-view-switcher,
  .product-card-stock-row,
  .product-card-head,
  .planning-card-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .product-card-meta {
    grid-template-columns: 1fr;
  }

  .planning-card {
    grid-template-columns: 1fr;
  }

  .planning-week-grid {
    grid-template-columns: repeat(7, minmax(180px, 1fr));
  }

  .planning-card-meta {
    grid-template-columns: 1fr;
  }

  .planning-card-actions {
    align-items: stretch;
  }

  .priority-popup-head,
  .priority-popup-item,
  .priority-popup-actions,
  .dashboard-priority-item {
    flex-direction: column;
    align-items: stretch;
  }

  .catalog-pagination {
    display: grid;
    justify-content: stretch;
  }

  .client-hero,
  .client-card-top,
  .client-form-hero,
  .frontdesk-selected-card,
  .frontdesk-client-card-top,
  .frontdesk-panel-head,
  .pickup-card-head,
  .sale-context-banner-main {
    flex-direction: column;
  }

  .client-hero-status {
    justify-items: start;
  }

  .frontdesk-panel {
    padding: 16px;
    border-radius: 18px;
  }

  .frontdesk-panel-head {
    margin-bottom: 12px;
  }

  .frontdesk-panel-head h2 {
    font-size: 1.12rem;
  }

  .frontdesk-search-form button,
  .frontdesk-form-stack .actions-inline button,
  .frontdesk-client-card-actions .button-link,
  .frontdesk-selected-actions .button-link {
    width: 100%;
  }

  .frontdesk-client-card,
  .frontdesk-selected-card,
  .frontdesk-panel .summary-card {
    padding: 14px 15px;
    overflow: hidden;
  }

  .frontdesk-client-card-top small,
  .frontdesk-selected-card p,
  .frontdesk-form-stack .form-hint,
  .frontdesk-panel .muted {
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .frontdesk-client-card .status-chip {
    align-self: flex-start;
  }

  .frontdesk-selected-card .client-hero-identity {
    width: 100%;
    min-width: 0;
  }

  .ticket-device-quick-picks {
    gap: 8px;
  }

  .ticket-device-chip {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 0.92rem;
  }

  .frontdesk-form-stack input,
  .frontdesk-form-stack select,
  .frontdesk-form-stack textarea,
  .frontdesk-search-form input {
    min-height: 48px;
    font-size: 1rem;
    padding: 12px 14px;
  }

  .frontdesk-form-stack textarea {
    min-height: 110px;
  }

  .frontdesk-selected-panel .summary-card strong,
  .frontdesk-panel .summary-card strong {
    font-size: 1.02rem;
    line-height: 1.35;
  }

  .frontdesk-autocomplete {
    width: 100%;
  }

  .frontdesk-suggestion-list {
    max-height: 220px;
    overflow-y: auto;
  }

  .product-cell {
    grid-template-columns: 1fr;
  }

  .dashboard-list-item,
  .dashboard-list-meta {
    justify-items: start;
    text-align: left;
  }

  .stats-toolbar {
    justify-content: stretch;
  }

  .stats-toolbar-actions {
    width: 100%;
  }

  .stats-toolbar-actions .button-link {
    flex: 1 1 100%;
  }

  .stats-chart-controls {
    grid-template-columns: 1fr;
  }

  .frontdesk-search-form,
  .frontdesk-kpi-grid,
  .pickup-card-meta {
    grid-template-columns: 1fr;
  }

  .stats-chart-controls-actions {
    align-items: stretch;
  }

  .dashboard-list-item {
    flex-direction: column;
  }

  .app-main {
    padding-top: 1rem;
  }
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
}

.print-page {
  background: #eef3f7;
}

.print-sheet {
  max-width: 1100px;
  margin: 24px auto;
  padding: 22px;
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(214, 226, 236, 0.96);
}

.print-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 14px;
}

.print-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.print-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.print-brand h1 {
  margin: 0 0 4px;
  font-size: 1.55rem;
}

.print-brand p {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
}

.print-actions {
  display: flex;
  gap: 10px;
}

.print-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.print-card,
.print-section {
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(214, 226, 236, 0.96);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.print-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 10px;
}

.print-section {
  margin-bottom: 10px;
}

.print-section h2 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.print-list {
  display: grid;
  gap: 8px;
  margin: 0;
}

.print-list-two {
  grid-template-columns: 1fr 1fr;
}

.print-list div {
  display: grid;
  gap: 4px;
}

.print-list dt {
  font-size: 0.72rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.print-list dd {
  margin: 0;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.92rem;
}

.print-note-block + .print-note-block {
  margin-top: 10px;
}

.print-note-block strong {
  display: block;
  margin-bottom: 6px;
}

.print-note-block p {
  margin: 0;
  line-height: 1.4;
  color: #334155;
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.print-section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

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

.print-table th,
.print-table td {
  padding: 7px 8px;
  border: 1px solid #dbe5f0;
  text-align: left;
  font-size: 0.84rem;
}

.print-table th {
  background: #f3f7fb;
  color: #475569;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.print-footer {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #dbe5f0;
}

.print-footer-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
  color: #64748b;
  font-size: 0.82rem;
}

.print-signatures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.print-signature-box {
  min-height: 72px;
  padding: 10px 12px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  background: #fcfdff;
}

.print-signature-box strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.print-signature-box span,
.print-footer-note {
  color: #64748b;
  font-size: 0.8rem;
}

.print-footer-note {
  margin: 10px 0 0;
  text-align: center;
}

.print-sheet-deposit .print-card,
.print-sheet-deposit .print-section {
  background: #ffffff;
}

.print-writing-zone {
  min-height: 72px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  background: #fcfdff;
}

.print-writing-zone-lg {
  min-height: 110px;
}

.print-observation-field {
  width: 100%;
  min-height: 128px;
  padding: 12px 14px;
  border: 1px dashed #94a3b8;
  border-radius: 12px;
  background: #fcfdff;
  color: #334155;
  line-height: 1.5;
  resize: vertical;
}

.print-conditions {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  line-height: 1.5;
  font-size: 0.88rem;
}

@media (max-width: 640px) {
  body.print-page {
    background: #f3f7fb;
  }

  .print-sheet {
    margin: 0;
    padding: 14px;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }

  .print-header,
  .print-brand,
  .print-actions,
  .print-footer-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .print-brand {
    gap: 12px;
  }

  .print-logo {
    width: 52px;
    height: 52px;
  }

  .print-brand h1 {
    font-size: 1.3rem;
  }

  .print-actions {
    gap: 8px;
  }

  .print-actions button {
    width: 100%;
  }

  .print-summary-grid,
  .print-grid,
  .print-signatures,
  .print-list-two {
    grid-template-columns: 1fr;
  }

  .print-card,
  .print-section,
  .print-signature-box {
    padding: 12px;
    border-radius: 12px;
  }

  .print-list dd,
  .print-note-block p,
  .print-observation-field,
  .print-conditions,
  .print-footer-note,
  .print-footer-meta {
    font-size: 0.92rem;
    line-height: 1.5;
  }

  .print-writing-zone-lg {
    min-height: 92px;
  }

  .print-observation-field {
    min-height: 110px;
  }
}

@media print {
  @page {
    size: A4 portrait;
    margin: 8mm;
  }

  body.print-page {
    background: #ffffff;
  }

  .print-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border: none;
    border-radius: 0;
  }

  .no-print {
    display: none !important;
  }

  .print-card,
  .print-section {
    break-inside: avoid;
    box-shadow: none;
  }

  .print-observation-field {
    min-height: 110px;
    padding: 10px 12px;
    border-color: #94a3b8;
    background: #ffffff;
    box-shadow: none;
    resize: none;
  }

  .print-sheet {
    font-size: 11px;
  }
}
