/* Eagle Bags DPR Prototype — hand-authored CSS (Tailwind 4 CLI fallback)
   Per-tenant CSS variables + shadcn-vue utility subset
   --color-primary: #FF6600 (easyJet) / #1B3A6B (Skybridge) */

/* === Base Reset === */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;line-height:1.5}
img{display:block;max-width:100%}
button{cursor:pointer}
input,select,textarea,button{font-family:inherit;font-size:inherit}
a{color:inherit;text-decoration:none}

/* === Typography Base === */
:root {
  --font-sans: "Inter", system-ui, -apple-system, sans-serif;
  --color-primary: #FF6600;
  --color-primary-foreground: #ffffff;
  --color-accent: #FFA866;
  --color-border: #e5e7eb;
  --color-input: #e5e7eb;
  --color-ring: #FF6600;
  font-family: var(--font-sans);
}

/* === Per-tenant variables === */
[data-tenant="easyjet"] {
  --tenant-primary: #FF6600;
  --tenant-primary-fg: #ffffff;
  --tenant-accent: #FFA866;
  --color-primary: #FF6600;
  --color-primary-foreground: #ffffff;
  --color-accent: #FFA866;
}

[data-tenant="skybridge"] {
  --tenant-primary: #1B3A6B;
  --tenant-primary-fg: #ffffff;
  --tenant-accent: #5C8AC9;
  --color-primary: #1B3A6B;
  --color-primary-foreground: #ffffff;
  --color-accent: #5C8AC9;
}

/* === Layout === */
.mx-auto{margin-left:auto;margin-right:auto}
.max-w-6xl{max-width:72rem}
.max-w-3xl{max-width:48rem}
.px-4{padding-left:1rem;padding-right:1rem}
.py-2{padding-top:0.5rem;padding-bottom:0.5rem}
.py-3{padding-top:0.75rem;padding-bottom:0.75rem}
.py-6{padding-top:1.5rem;padding-bottom:1.5rem}
.py-8{padding-top:2rem;padding-bottom:2rem}
.py-10{padding-top:2.5rem;padding-bottom:2.5rem}
.py-12{padding-top:3rem;padding-bottom:3rem}
.py-0\.5{padding-top:0.125rem;padding-bottom:0.125rem}
.p-3{padding:0.75rem}
.p-4{padding:1rem}
.p-6{padding:1.5rem}
.p-8{padding:2rem}
.px-3{padding-left:0.75rem;padding-right:0.75rem}
.px-2{padding-left:0.5rem;padding-right:0.5rem}
.py-1\.5{padding-top:0.375rem;padding-bottom:0.375rem}
.px-2\.5{padding-left:0.625rem;padding-right:0.625rem}
.mt-1{margin-top:0.25rem}
.mt-2{margin-top:0.5rem}
.mt-3{margin-top:0.75rem}
.mt-4{margin-top:1rem}
.mt-5{margin-top:1.25rem}
.mt-6{margin-top:1.5rem}
.mt-8{margin-top:2rem}
.mt-12{margin-top:3rem}
.mb-4{margin-bottom:1rem}
.mb-6{margin-bottom:1.5rem}

/* === Flexbox === */
.flex{display:flex}
.inline-flex{display:inline-flex}
.flex-wrap{flex-wrap:wrap}
.items-center{align-items:center}
.items-start{align-items:flex-start}
.items-end{align-items:flex-end}
.justify-between{justify-content:space-between}
.justify-center{justify-content:center}
.gap-2{gap:0.5rem}
.gap-3{gap:0.75rem}
.gap-4{gap:1rem}

/* === Grid === */
.grid{display:grid}
.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}
.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.place-items-center{place-items:center}

@media (min-width:768px) {
  .md\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}
  .md\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}
  .md\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* === Sizing === */
.w-full{width:100%}
.h-8{height:2rem}
.h-10{height:2.5rem}
.h-48{height:12rem}
.w-auto{width:auto}
.min-w-0{min-width:0}

/* === Typography === */
.font-sans{font-family:var(--font-sans)}
.text-xs{font-size:0.75rem;line-height:1rem}
.text-sm{font-size:0.875rem;line-height:1.25rem}
.text-base{font-size:1rem;line-height:1.5rem}
.text-lg{font-size:1.125rem;line-height:1.75rem}
.text-xl{font-size:1.25rem;line-height:1.75rem}
.text-2xl{font-size:1.5rem;line-height:2rem}
.text-3xl{font-size:1.875rem;line-height:2.25rem}
.font-medium{font-weight:500}
.font-semibold{font-weight:600}
.font-bold{font-weight:700}
.uppercase{text-transform:uppercase}
.leading-snug{line-height:1.375}
.text-left{text-align:left}
.text-center{text-align:center}

/* === Colors / Text === */
.text-gray-400{color:#9ca3af}
.text-gray-500{color:#6b7280}
.text-gray-600{color:#4b5563}
.text-gray-700{color:#374151}
.text-gray-900{color:#111827}
.text-white{color:#ffffff}
.text-primary{color:var(--color-primary)}
.text-primary-foreground{color:var(--color-primary-foreground)}
.text-amber-800{color:#92400e}
.text-blue-800{color:#1e40af}
.text-purple-800{color:#6b21a8}
.text-green-800{color:#166534}
.text-red-600{color:#dc2626}

/* === Background === */
.bg-white{background-color:#ffffff}
.bg-gray-50{background-color:#f9fafb}
.bg-gray-100{background-color:#f3f4f6}
.bg-primary{background-color:var(--color-primary)}
.bg-primary-foreground{background-color:var(--color-primary-foreground)}
.bg-amber-100{background-color:#fef3c7}
.bg-blue-100{background-color:#dbeafe}
.bg-purple-100{background-color:#f3e8ff}
.bg-green-100{background-color:#dcfce7}
.bg-red-50{background-color:#fef2f2}
.bg-orange-50{background-color:#fff7ed}

/* === Borders === */
.border{border-width:1px;border-style:solid;border-color:#e5e7eb}
.border-b{border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:#e5e7eb}
.border-t{border-top-width:1px;border-top-style:solid;border-top-color:#e5e7eb}
.border-2{border-width:2px;border-style:solid}
.border-gray-100{border-color:#f3f4f6}
.border-gray-200{border-color:#e5e7eb}
.border-gray-300{border-color:#d1d5db}
.border-input{border-color:var(--color-input,#e5e7eb)}
.border-dashed{border-style:dashed}
.border-transparent{border-color:transparent}
.divide-y>*+*{border-top-width:1px;border-top-style:solid}
.divide-gray-100>*+*{border-top-color:#f3f4f6}
.divide-gray-200>*+*{border-top-color:#e5e7eb}

/* === Border Radius === */
.rounded{border-radius:0.25rem}
.rounded-md{border-radius:0.375rem}
.rounded-lg{border-radius:0.5rem}
.rounded-xl{border-radius:0.75rem}
.rounded-full{border-radius:9999px}

/* === Shadows === */
.shadow-sm{box-shadow:0 1px 2px 0 rgb(0 0 0/.05)}
.shadow{box-shadow:0 1px 3px 0 rgb(0 0 0/.1),0 1px 2px -1px rgb(0 0 0/.1)}
.shadow-md{box-shadow:0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1)}

/* === Hover states === */
.hover\:shadow-md:hover{box-shadow:0 4px 6px -1px rgb(0 0 0/.1),0 2px 4px -2px rgb(0 0 0/.1)}
.hover\:text-gray-900:hover{color:#111827}
.hover\:underline:hover{text-decoration:underline}
.hover\:bg-orange-700:hover{background-color:#c2410c}

/* bg-primary hover */
.bg-primary:hover,.hover\:bg-primary\/90:hover{
  background-color: color-mix(in srgb, var(--color-primary) 90%, #000);
}

/* === Overflow === */
.overflow-x-auto{overflow-x:auto}
.overflow-hidden{overflow:hidden}

/* === Spacing utilities === */
.space-y-1>*+*{margin-top:0.25rem}
.space-y-2>*+*{margin-top:0.5rem}
.space-y-4>*+*{margin-top:1rem}
.space-y-6>*+*{margin-top:1.5rem}

/* === List/Table === */
.list-none{list-style:none;padding-left:0;margin:0}
table{border-collapse:collapse}
.w-full{width:100%}

/* === Forms === */
input[type="text"],input[type="email"],input[type="date"],input[type="search"],
input[type="number"],select,textarea {
  appearance:none;
  background-color:#fff;
  border:1px solid var(--color-input,#e5e7eb);
  border-radius:0.375rem;
  padding:0.5rem 0.75rem;
  font-size:0.875rem;
  line-height:1.25rem;
  color:#111827;
  outline:none;
  transition:border-color 0.15s;
}
input[type="text"]:focus,input[type="email"]:focus,input[type="date"]:focus,
input[type="search"]:focus,input[type="number"]:focus,select:focus,textarea:focus {
  border-color:var(--color-primary);
  box-shadow:0 0 0 2px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

/* === Buttons === */
button,a.btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:0.375rem;
}

/* === Transition === */
.transition{transition-property:color,background-color,border-color,box-shadow;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:150ms}

/* === Helpers === */
.block{display:block}
.inline-block{display:inline-block}
.hidden{display:none}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
.opacity-60{opacity:.6}
.italic{font-style:italic}
.underline{text-decoration:underline}
.truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.whitespace-nowrap{white-space:nowrap}

/* === Step breadcrumb === */
ol.steps{display:flex;align-items:center;gap:0.5rem;list-style:none;padding:0;margin:0}
ol.steps li{font-size:0.75rem;color:#6b7280}
ol.steps li.active{color:var(--color-primary);font-weight:600}

/* === Status badges === */
.badge{display:inline-flex;align-items:center;border-radius:9999px;font-size:0.75rem;line-height:1rem;font-weight:500;padding:0.125rem 0.625rem}

/* === SLA gauge bars === */
.gauge-track{background:#e5e7eb;border-radius:9999px;height:8px;width:100%;overflow:hidden}
.gauge-fill{height:100%;border-radius:9999px;background:var(--color-primary);transition:width 0.5s ease}

/* === KPI card accent bar === */
.kpi-card{border-top:3px solid var(--color-primary)}

/* === Claim wizard steps === */
.wizard-step{
  display:flex;
  align-items:center;
  justify-content:center;
  width:2rem;
  height:2rem;
  border-radius:9999px;
  font-size:0.875rem;
  font-weight:600;
}
.wizard-step.done{background:var(--color-primary);color:var(--color-primary-foreground)}
.wizard-step.active{background:var(--color-primary);color:var(--color-primary-foreground);box-shadow:0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent)}
.wizard-step.pending{background:#e5e7eb;color:#6b7280}

/* === Upload dropzone === */
.dropzone{
  border:2px dashed #d1d5db;
  border-radius:0.5rem;
  padding:2rem;
  text-align:center;
  transition:border-color 0.15s;
}
.dropzone:hover,.dropzone:focus-within{border-color:var(--color-primary)}

/* === Claim status timeline === */
.timeline{list-style:none;padding:0;margin:0;position:relative}
.timeline::before{content:'';position:absolute;left:0.875rem;top:0;bottom:0;width:2px;background:#e5e7eb}
.timeline li{position:relative;padding-left:2.5rem;padding-bottom:1.25rem}
.timeline li:last-child{padding-bottom:0}
.timeline-dot{position:absolute;left:0;top:0.125rem;width:1.75rem;height:1.75rem;border-radius:9999px;background:#e5e7eb;border:2px solid #fff;display:flex;align-items:center;justify-content:center}
.timeline-dot.done{background:var(--color-primary)}
.timeline-dot.active{background:var(--color-primary);box-shadow:0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent)}

/* === Navigation highlight === */
.nav-link-active{color:var(--color-primary);font-weight:600}

/* === Print safety === */
@media print{
  .no-print{display:none!important}
  body{background:#fff!important;color:#000!important}
}
