/* AYSAM UI katmanı v1.90 — ui-system.css'ten SONRA yüklenir.
   Amaç: tek tasarım dili, içerik odaklı genişlikler, kompakt kart/form, yardım bileşeni,
   zorunlu alan işareti. Çerçeve bağımlılığı yoktur. */
:root {
  --ays-required: #c62828;
  --ays-page-w: 1440px;     /* varsayılan sayfa genişliği */
  --ays-fit-sm: 640px;      /* tek kısa form */
  --ays-fit: 960px;         /* standart form paneli */
  --ays-fit-lg: 1120px;     /* satırlı/çok kolonlu form paneli */
  --ays-s-1: 4px; --ays-s-2: 8px; --ays-s-3: 12px; --ays-s-4: 16px; --ays-s-5: 24px;
  --ays-r-sm: 7px; --ays-r-md: 11px;
  --ays-hairline: 0 1px 2px rgb(20 43 69 / 5%);
}

/* ---- Sayfa genişliği: içeriğe göre ---- */
body.ays-shell main {
  width: min(calc(100% - 40px), var(--ays-page-w)) !important;
  max-width: var(--ays-page-w) !important;
}
body.ays-shell main.ays-page--narrow { --ays-page-w: 1100px; }
body.ays-shell main.ays-page--form   { --ays-page-w: 760px; }
body.ays-shell main.ays-page--wide   { --ays-page-w: 1680px; }

/* Küçük form/bileşen tam genişliğe gerilmesin; sola hizalı kalır */
body.ays-shell .ays-fit,
body.ays-shell .ays-fit--sm,
body.ays-shell .ays-fit--lg { width: 100%; margin-left: 0 !important; margin-right: auto !important; }
body.ays-shell .ays-fit--sm { max-width: var(--ays-fit-sm); }
body.ays-shell .ays-fit     { max-width: var(--ays-fit); }
body.ays-shell .ays-fit--lg { max-width: var(--ays-fit-lg); }
body.ays-shell .ays-fit .grid,
body.ays-shell .ays-fit--lg .grid,
body.ays-shell .ays-fit .formgrid,
body.ays-shell .ays-fit--lg .formgrid {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important;
  gap: var(--ays-s-2) var(--ays-s-4) !important;
  align-items: start;
}
body.ays-shell .ays-fit--sm .grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important; }
body.ays-shell .grid > .full, body.ays-shell .formgrid > .full { grid-column: 1 / -1; }

/* ---- Kart / panel: tek ve kompakt tanım ---- */
body.ays-shell .box,
body.ays-shell .panel {
  padding: var(--ays-s-4) !important;
  border-radius: var(--ays-r-md) !important;
  box-shadow: var(--ays-hairline) !important;
}
body.ays-shell .panel + .panel, body.ays-shell .box + .box { margin-top: var(--ays-s-3); }
body.ays-shell .panel h2, body.ays-shell .box h2 { margin: 0 0 var(--ays-s-3) !important; display: flex; align-items: center; gap: 6px; }
body.ays-shell .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)) !important; gap: var(--ays-s-3) !important; align-items: stretch; }
body.ays-shell .card {
  display: flex; flex-direction: column; justify-content: space-between; gap: 4px;
  padding: var(--ays-s-3) var(--ays-s-4) !important; box-shadow: var(--ays-hairline) !important;
}
body.ays-shell .metric { align-content: start; }
body.ays-shell .summary { align-items: stretch; }
body.ays-shell .box + .cards, body.ays-shell .panel + .cards, body.ays-shell .cards + .box, body.ays-shell .cards + .panel { margin-top: var(--ays-s-3); }

/* ---- Form alanları ---- */
body.ays-shell label.field { display: grid; gap: 5px; align-content: start; min-width: 0; margin: 0; }
body.ays-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
body.ays-shell select,
body.ays-shell textarea {
  transition: border-color .15s ease, box-shadow .15s ease;
}
body.ays-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):hover,
body.ays-shell select:hover, body.ays-shell textarea:hover { border-color: #9fb3c6 !important; }
body.ays-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):focus-visible,
body.ays-shell select:focus-visible, body.ays-shell textarea:focus-visible {
  border-color: var(--ays-brand) !important; box-shadow: var(--ays-focus) !important; outline: none;
}
body.ays-shell input:user-invalid, body.ays-shell select:user-invalid, body.ays-shell textarea:user-invalid,
body.ays-shell [aria-invalid="true"] { border-color: var(--ays-danger) !important; }
body.ays-shell input:disabled, body.ays-shell input[readonly], body.ays-shell select:disabled { background: var(--ays-surface-soft) !important; color: var(--ays-muted) !important; }

/* Zorunlu alan işareti (kırmızı *) */
body.ays-shell label:has(> :is(input,select,textarea)[required]:not([type="checkbox"]):not([type="radio"])) > .label::after,
body.ays-shell .ays-req {
  content: " *"; color: var(--ays-required); font-weight: 700;
}
body.ays-shell .ays-req { margin-left: 2px; text-transform: none; }
body.ays-shell .ays-req-note { grid-column: 1 / -1; margin: 0 0 var(--ays-s-2); color: var(--ays-muted); font-size: .74rem; }
body.ays-shell .ays-req-note .ays-req { margin: 0 3px 0 0; }

/* ---- Yardım bileşeni: bilgi ikonu + açılır kutu ---- */
body.ays-shell button.ays-help-i:not(#ays-x) {
  display: inline-flex !important; align-items: center; justify-content: center; flex: none;
  width: 17px !important; height: 17px !important; min-height: 17px !important; padding: 0 !important;
  margin: 0 0 0 5px; border: 1px solid var(--ays-border-strong) !important; border-radius: 50% !important;
  background: var(--ays-surface-soft) !important; color: var(--ays-brand) !important;
  font: 700 11px/1 Georgia, "Times New Roman", serif !important; text-transform: none; vertical-align: middle;
  cursor: pointer; box-shadow: none !important; transform: none !important;
}
body.ays-shell button.ays-help-i:not(#ays-x):hover, body.ays-shell button.ays-help-i:not(#ays-x)[aria-expanded="true"] {
  background: var(--ays-brand) !important; color: #fff !important; border-color: var(--ays-brand) !important;
}
.ays-help-pop {
  position: fixed; z-index: 3000; width: max-content; max-width: min(320px, calc(100vw - 24px));
  left: var(--ays-help-left, 12px); top: var(--ays-help-top, 12px);
  padding: 9px 12px; border-radius: 9px; background: #17324d; color: #fff;
  font: 400 .78rem/1.5 Inter, "Segoe UI", Roboto, Arial, sans-serif; text-transform: none; letter-spacing: 0;
  box-shadow: 0 10px 28px rgb(10 25 42 / 28%);
}
.ays-help-pop[hidden] { display: none; }
/* v1.174: Bu dosya v1.173 ve öncesinde shell.php'deki tırnak hatası nedeniyle hiç yüklenmiyordu; kullanıcılar
   arayüzü normal yazımla gördü. Dosya artık yükleniyor; ekranların bir anda tamamen büyük harfe dönmemesi için
   görsel büyük harf kuralı yalnızca metin giriş alanlarına uygulanır. Veri normalizasyonu (uppercase.js) aynen sürer. */
.ays-uppercase :is(input[type="text"], input[type="search"], input[type="tel"], input:not([type]), textarea):not([name="username"]):not([name="email"]):not([type="password"]) { text-transform: uppercase; }

/* Uzun açıklamalar için akordeon */
body.ays-shell details.ays-help-acc {
  margin: 0 0 var(--ays-s-3); border: 1px solid var(--ays-border); border-radius: 9px; background: var(--ays-surface-soft);
}
body.ays-shell details.ays-help-acc > summary {
  display: flex; align-items: center; gap: 8px; padding: 8px 12px; list-style: none; font-size: .8rem; font-weight: 600; color: var(--ays-brand);
}
body.ays-shell details.ays-help-acc > summary::-webkit-details-marker { display: none; }
body.ays-shell details.ays-help-acc > summary::before {
  content: "i"; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px;
  border: 1px solid var(--ays-border-strong); border-radius: 50%; background: #fff; font: 700 11px/1 Georgia, serif; text-transform: none;
}
body.ays-shell details.ays-help-acc[open] > summary { border-bottom: 1px solid var(--ays-border); }
body.ays-shell details.ays-help-acc > :not(summary) { margin: 0; padding: 10px 14px; color: var(--ays-ink-soft); font-size: .8rem; line-height: 1.55; text-transform: none; }
body.ays-shell details.ays-help-acc > p + p { padding-top: 0; }

/* Kalan satır içi ipuçları: daha sakin */
body.ays-shell .hint { font-size: .78rem; line-height: 1.45; }

@media (max-width: 760px) {
  body.ays-shell .ays-fit .grid, body.ays-shell .ays-fit--lg .grid, body.ays-shell .ays-fit--sm .grid { grid-template-columns: 1fr !important; }
}
@media print { .ays-help-i, .ays-help-pop, .ays-req-note { display: none !important; } }

/* Styles moved from formerly inline attributes for enforceable CSP. */
[data-width-percent] { width: var(--bar-width); }
.repeat-warning-days { display: none; margin-top: 6px; max-width: 120px; }
.repeat-warning-days.is-visible { display: block; }
.warranty-match-row { background: #fff2ed; }
.warranty-match-item { color: #9b251d; font-weight: bold; }
.vehicle-expiry-expired { color: #b91c1c; }
.vehicle-expiry-soon { color: #92400e; }
.vehicle-deactivate-button { background: #9a3412; }
.vehicle-reactivate-button { background: #166534; }
.days-overdue { color: #a00000; font-weight: bold; }
.days-upcoming { color: #a35b00; font-weight: bold; }
/* Styles moved from formerly inline attributes for enforceable CSP. */
.ayss_0743333099a8 { width:23% }
.ayss_0ae64748d865 { width:100%;border-collapse:collapse }
.ayss_0ee7f66ad9c0 { margin-top:12px }
.ayss_1368fa0d46f3 { width:18% }
.ayss_151f23ae85c5 { width:18%;text-align:right }
.ayss_18774c435538 { text-align:left;padding:8px }
.ayss_1b00cb03473d { display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:16px 0 }
.ayss_1c38e9361acd { display:inline-flex;align-items:center;gap:4px;margin:4px 8px 4px 0 }
.ayss_1fad4b0ae00c { min-width:210px;padding:8px }
.ayss_26b9b5fce92b { width:174px;max-width:174px;height:auto;max-height:44px;object-fit:contain;flex:0 0 174px }
.ayss_2744486a2d33 { font-weight:400;opacity:.75 }
.ayss_2fc44bb7389b { display:block;max-width:560px }
.ayss_3714a2074828 { color:white }
.ayss_3fcf5faf1550 { min-width:240px;padding:8px }
.ayss_4bc6a2509301 { justify-content:space-between;margin:12px 0 }
.ayss_51377a917eb3 { grid-column:1/-1 }
.ayss_5441ee4b6058 { display:flex;gap:12px;align-items:center }
.ayss_55db2416bec8 { justify-content:space-between }
.ayss_5f326564a568 { text-align:right }
.ayss_5fe752e83b05 { border-left:5px solid #b45309 }
.ayss_63ba8c511f6a { min-width:600px }
.ayss_662c8e43345e { width:150px }
.ayss_6968352194b1 { width:16% }
.ayss_6b8b63d565c4 { display:inline }
.ayss_6e19583fd3c2 { margin-top:22px }
.ayss_735cd1f81ae2 { margin:8px 0 }
.ayss_76925ca1cfd4 { width:320px }
.ayss_7c254754fd50 { border:1px solid #cbd5e1;border-radius:6px;padding:10px }
.ayss_7f6ccf45853f { width:auto;margin:0 }
.ayss_7fffc135b5c4 { padding:8px;border-top:1px solid #eee }
.ayss_8aef2a460990 { display:block;max-width:520px }
.ayss_92c18f6bdac1 { margin-top:16px }
.ayss_95cc0869882b { width:20%;text-align:right }
.ayss_97fa7affba29 { border-bottom:1px solid #e5ebf1;padding:12px 0 }
.ayss_a2dde99ad33e { border-left:5px solid #b45309;background:#fff7ed }
.ayss_a49cca52becd { font-size:12px }
.ayss_aeb7cdee9649 { grid-column:span 2 }
.ayss_b8c35b4946cd { margin-top:18px;border-color:#f0b5b5 }
.ayss_bf4a218e05ab { margin-bottom:16px }
.ayss_c53ea1da2385 { margin-top:14px }
.ayss_d108cd5406b2 { margin-top:15px }
.ayss_e05728616495 { width:38px }
.ayss_e2c857d54b4b { overflow:auto }
.ayss_edcd900711b9 { align-self:end }
.ayss_eedb2619ac3e { color:#fff }
.ayss_eee3f850c9f4 { margin-top:20px }
.ayss_f371754dcf84 { position:static;width:auto;max-height:none;overflow:visible;box-shadow:none;border-left:5px solid #a21d28;margin:16px 0 }
.ayss_f53b84a6f539 { margin-left:5px }
.ayss_f6664e8722d8 { display:grid;gap:8px }
.ayss_fe3c94c16fd7 { margin-top:9px }
