@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap");/*
 * Shared chrome — wrapper + header for both Admin and Client pages.
 * The .wrap CSS variables cascade down to the page content (incl. ClientPage).
 * Display/UI: Archivo; data and numbers: IBM Plex Mono (imported in index.css).
 */

._wrap_1w1nd_3 {
  --ink: #171a1f;
  --paper: #eef0f3;
  --surface: #ffffff;
  --red: #d8232a;
  --red-dark: #b0121b;
  --line: #dde1e7;
  --muted: #636b78;
  --ok: #1f9d55;

  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif;
}

/* ── Header band ───────────────────────────────────────── */

._header_1w1nd_27 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--ink);
  color: #fff;
}

._brand_1w1nd_37 {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

._tick_1w1nd_44 {
  flex: none;
  width: 10px;
  height: 26px;
  background: var(--red);
  transform: skewX(-12deg);
}

._title_1w1nd_52 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

._titleSub_1w1nd_62 {
  display: block;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #aab2bd;
}

._status_1w1nd_71 {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #aab2bd;
}

._statusDot_1w1nd_83 {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #5c6470;
}

._statusOk_1w1nd_90 ._statusDot_1w1nd_83 {
  background: var(--ok);
}

._statusDown_1w1nd_94 ._statusDot_1w1nd_83 {
  background: var(--red);
}

@media (prefers-reduced-motion: reduce) {
  ._wrap_1w1nd_3 * {
    transition: none !important;
  }
}

/* ── Admin page — Carglass brand (black/white/red, hairline, sharp) ─────── */

._adminBody_1w1nd_106 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  overflow-y: auto;
  padding: 1.5rem;
}

._badge_1w1nd_116 {
  align-self: flex-start;
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
}

._badgeAdmin_1w1nd_126 {
  background: var(--ink);
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--red);
}

._badgeClient_1w1nd_132 {
  background: var(--red);
  color: #fff;
}

._adminTitle_1w1nd_137 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--ink);
}

._text_1w1nd_145 {
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  font-size: 0.9rem;
}

._subtitle_1w1nd_152 {
  margin: 0;
  padding: 0.9rem 1.25rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Panel (matches ClientPage control deck) ───────────────────────────── */

._panel_1w1nd_164 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}

._panelHead_1w1nd_170 {
  margin: 0;
  padding: 0.9rem 1.25rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

._panelBody_1w1nd_180 {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── Key/value info list ───────────────────────────────────────────────── */

._list_1w1nd_189 {
  list-style: none;
  margin: 0;
  padding: 0.5rem 0 0.25rem;
}

._list_1w1nd_189 li {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.55rem 1.25rem;
  border-bottom: 1px solid var(--line);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.82rem;
  color: var(--ink);
}

._list_1w1nd_189 li:last-child {
  border-bottom: none;
}

._list_1w1nd_189 strong {
  flex: none;
  min-width: 11rem;
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
/*
 * Client look — Carglass stock prediction.
 * Palette per Carglass brand identity: black/white/red, hairline lines.
 * The CSS variables (--ink, --red, …) are defined on .wrap in CarglassAgent.module.css
 * and cascade down to this content. Display/UI: Archivo; data: IBM Plex Mono.
 */

/* ── Body (two-column layout) ──────────────────────────── */

._body_1xryh_10 {
  flex: 1;
  display: flex;
  min-height: 0;
}

/* ── Sidebar ───────────────────────────────────────────── */

._sidebar_1xryh_18 {
  width: 232px;
  flex: none;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}

._sidebarTop_1xryh_28 {
  padding: 0.875rem;
  border-bottom: 1px solid var(--line);
}

._newPredBtn_1xryh_33 {
  width: 100%;
  padding: 0.55rem 0.875rem;
  border: none;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease;
}

._newPredBtn_1xryh_33:hover {
  background: var(--red-dark);
}

._newPredBtn_1xryh_33:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

._logList_1xryh_57 {
  flex: 1;
  overflow-y: auto;
}

._logItem_1xryh_62 {
  display: block;
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: none;
  border-bottom: 1px solid var(--line);
  border-left: 3px solid transparent;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: background 0.12s ease;
  box-sizing: border-box;
}

._logItem_1xryh_62:hover {
  background: var(--paper);
}

._logItemActive_1xryh_82 {
  background: #f0f1f3;
  border-left-color: var(--red);
}

._logItemDate_1xryh_87 {
  display: block;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--ink);
}

._logItemMeta_1xryh_95 {
  display: block;
  font-size: 0.69rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

._logEmpty_1xryh_102 {
  padding: 1.25rem 0.875rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ── Main content ──────────────────────────────────────── */

._main_1xryh_110 {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
  overflow-y: auto;
  padding: 1.5rem;
}

/* ── Parameters (control deck) ──────────────────────────── */

._panel_1xryh_122 {
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
}

._panelHead_1xryh_128 {
  margin: 0;
  padding: 0.9rem 1.25rem 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

._form_1xryh_138 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  align-items: end;
  padding: 1rem 1.25rem 1.25rem;
}

._field_1xryh_146 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

._field_1xryh_146 input {
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 0;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  background: var(--surface);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

._field_1xryh_146 input:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -1px;
  border-color: var(--red);
}

._segment_1xryh_172 {
  display: flex;
  border: 1px solid var(--line);
}

._segmentBtn_1xryh_177 {
  flex: 1;
  padding: 0.55rem 0.25rem;
  border: none;
  border-right: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

._segmentBtn_1xryh_177:last-child {
  border-right: none;
}

._segmentBtn_1xryh_177:hover {
  color: var(--ink);
}

._segmentBtn_1xryh_177:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -2px;
}

._segmentActive_1xryh_205 {
  background: var(--ink);
  color: #fff;
}

._segmentActive_1xryh_205:hover {
  color: #fff;
}

._submit_1xryh_214 {
  padding: 0.6rem 1.4rem;
  border: none;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.15s ease;
}

._submit_1xryh_214:hover:not(:disabled) {
  background: var(--red-dark);
}

._submit_1xryh_214:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

._submit_1xryh_214:disabled {
  opacity: 0.55;
  cursor: default;
}

/* ── File upload section ────────────────────────────── */

._panelFiles_1xryh_243 {
  margin-top: 1.25rem;
}

._fileGrid_1xryh_247 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  padding: 1rem 1.25rem 0;
}

._fileField_1xryh_254 {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
}

._fileRequired_1xryh_263 {
  color: var(--red);
  margin-left: 0.15rem;
}

._fileHint_1xryh_268 {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}

._fileOptional_1xryh_274 {
  font-weight: 400;
  font-size: 0.72rem;
  color: var(--muted);
}

._fileInput_1xryh_280 {
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  cursor: pointer;
  transition: border-color 0.15s ease;
  width: 100%;
  box-sizing: border-box;
}

._fileInput_1xryh_280::file-selector-button {
  padding: 0.2rem 0.5rem;
  margin-right: 0.5rem;
  border: none;
  border-right: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

._fileInput_1xryh_280::file-selector-button:hover {
  background: var(--line);
}

._fileInput_1xryh_280:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: -1px;
  border-color: var(--red);
}

._formActions_1xryh_317 {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  justify-content: flex-end;
}

/* ── Error / empty state  ────────────────────────────── */

._error_1xryh_325 {
  margin: 0;
  padding: 0.75rem 1.25rem;
  background: #fdeced;
  border: 1px solid #f3c2c5;
  border-left: 3px solid var(--red);
  color: var(--red-dark);
  font-size: 0.85rem;
}

._empty_1xryh_335 {
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line);
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Results ───────────────────────────────────────────── */

._results_1xryh_345 {
  background: var(--surface);
  border: 1px solid var(--line);
}

._toolbar_1xryh_350 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--line);
}

._meta_1xryh_359 {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  color: var(--muted);
}

._meta_1xryh_359 strong {
  color: var(--ink);
  font-weight: 600;
}

._toolbarActions_1xryh_370 {
  margin-left: auto;
  display: flex;
  gap: 0.5rem;
}

._exportBtn_1xryh_376 {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ink);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

._exportBtn_1xryh_376:hover {
  background: var(--ink);
  color: #fff;
}

._exportBtn_1xryh_376:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

._repredictBtn_1xryh_399 {
  padding: 0.4rem 0.9rem;
  border: none;
  background: var(--red);
  color: #fff;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: background 0.15s ease;
}

._repredictBtn_1xryh_399:hover:not(:disabled) {
  background: var(--red-dark);
}

._repredictBtn_1xryh_399:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

._repredictBtn_1xryh_399:disabled {
  opacity: 0.55;
  cursor: default;
}

._tableWrap_1xryh_426 {
  max-height: 420px;
  overflow: auto;
}

._table_1xryh_426 {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.8rem;
}

._table_1xryh_426 th,
._table_1xryh_426 td {
  padding: 0.45rem 0.75rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

._table_1xryh_426 th {
  position: sticky;
  top: 0;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 -2px 0 var(--red);
}

._table_1xryh_426 tbody tr:nth-child(even) {
  background: #f7f8fa;
}

/* ── Log loading / detail ──────────────────────────────── */

._logLoading_1xryh_464 {
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

._logDetail_1xryh_471 {
  padding: 1.25rem;
}

._logDetailGrid_1xryh_475 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

._logDetailItem_1xryh_482 {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

._logDetailItem_1xryh_482 span {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

._logDetailItem_1xryh_482 strong {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
}

._logFiles_1xryh_503 {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

._logFilesTitle_1xryh_508 {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

._logFilesList_1xryh_517 {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

._logFilesTag_1xryh_523 {
  display: inline-flex;
  flex-direction: column;
  padding: 0.25rem 0.5rem;
  background: var(--paper);
  border: 1px solid var(--line);
  min-width: 0;
  max-width: 200px;
  overflow: hidden;
}

._logFilesTagLabel_1xryh_534 {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.1rem;
}

._logFilesTag_1xryh_523 span:last-child {
  font-family: "IBM Plex Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Responsive / motion ───────────────────────────────── */

@media (max-width: 680px) {
  ._body_1xryh_10 {
    flex-direction: column;
  }

  ._sidebar_1xryh_18 {
    width: 100%;
    max-height: 200px;
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  ._logList_1xryh_57 {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
  }

  ._logItem_1xryh_62 {
    flex: none;
    min-width: 140px;
    border-bottom: none;
    border-right: 1px solid var(--line);
    border-left: none;
    border-top: 3px solid transparent;
  }

  ._logItemActive_1xryh_82 {
    border-top-color: var(--red);
    border-left-color: transparent;
  }
}

@media (max-width: 560px) {
  ._main_1xryh_110 {
    padding: 1rem;
  }

  ._form_1xryh_138 {
    grid-template-columns: 1fr;
  }

  ._submit_1xryh_214 {
    width: 100%;
  }
}


:root {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: #1e293b;
  background: #f8fafc;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}
