:root {
  --bg: #F6F5F1; --card: #fff; --line: #E2DFD7; --text: #1C2024; --muted: #565C63;
  --blue: #1D4F91; --blue-bg: #E4EEFA; --amber: #8A4B00; --amber-bg: #FCEFD6;
  --purple: #5B3A99; --purple-bg: #EEE8F8; --red: #A4262C; --red-bg: #FBE5E4; --grey-bg: #EFEDE7;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.screen { max-width: 480px; margin: 0 auto; padding: 24px 16px 32px; }
.header h1 { margin: 0; font-size: 28px; line-height: 34px; }
.muted { color: var(--muted); margin: 2px 0 0; font-size: 15px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.alert { margin-top: 12px; padding: 12px 14px; background: var(--red-bg); color: #7A1A1F;
  border-radius: 14px; display: flex; flex-direction: column; gap: 1px; }
.alert strong { font-size: 17px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0 4px; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px;
  border: 1px solid #CFCBC0; background: #fff; color: var(--text); text-decoration: none; font-weight: 500; }
.chip.on { background: var(--text); color: #fff; border-color: var(--text); font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; }
.case .row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.case h2 { margin: 0; font-size: 17px; line-height: 22px; }
.case p { margin: 6px 0; font-size: 14px; }
.badge { font-size: 13px; font-weight: 600; color: var(--muted); background: var(--grey-bg);
  padding: 3px 9px; border-radius: 10px; white-space: nowrap; }
.badge.late { color: var(--red); background: var(--red-bg); font-weight: 700; }
.status { display: inline-block; font-size: 14px; font-weight: 600; padding: 4px 10px; border-radius: 10px;
  color: var(--blue); background: var(--blue-bg); }
.status.client { color: var(--amber); background: var(--amber-bg); }
.status.customs_agent { color: var(--purple); background: var(--purple-bg); }
.status.office { color: var(--text); background: var(--grey-bg); }
.empty { padding: 24px 0; text-align: center; }
.form { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.form label { font-size: 14px; font-weight: 600; color: var(--muted); }
.form input { height: 48px; padding: 0 12px; font-size: 16px; border: 1px solid #CFCBC0; border-radius: 12px; }
.error { margin: 0; padding: 10px 12px; background: var(--red-bg); color: #7A1A1F; border-radius: 10px; }
button.primary { height: 56px; margin-top: 8px; border: 0; border-radius: 16px; background: var(--blue);
  color: #fff; font: inherit; font-size: 18px; font-weight: 700; }
.footer { margin-top: 24px; text-align: center; }
button.link { background: none; border: 0; color: var(--blue); font: inherit; font-weight: 600;
  min-height: 44px; padding: 0 12px; }
a.case { display: block; text-decoration: none; color: inherit; }
.back { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -8px; padding: 0 8px;
  color: var(--blue); font-weight: 600; text-decoration: none; }
.where { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.where .row, .section-title { display: flex; justify-content: space-between; align-items: baseline; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
progress { width: 100%; height: 8px; border: 0; border-radius: 4px; overflow: hidden; background: var(--grey-bg); }
progress::-webkit-progress-bar { background: var(--grey-bg); }
progress::-webkit-progress-value { background: var(--blue); }
progress::-moz-progress-bar { background: var(--blue); }
.where .status { align-self: flex-start; }
.late-note { margin: 0; color: var(--red); font-weight: 600; }
button.secondary { width: 100%; min-height: 48px; padding: 8px 12px; border: 1px solid var(--blue); border-radius: 12px;
  background: #fff; color: var(--blue); font: inherit; font-weight: 700; }
.section-title { margin-top: 18px; }
.section-title h2 { margin: 0; font-size: 18px; }
.docs { padding: 0; margin-top: 8px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 8px 14px; min-height: 52px; border-bottom: 1px solid #EFEDE7; }
.doc:last-child { border-bottom: 0; }
.doc-name { flex: 1; font-weight: 500; }
.doc:not(.done) .doc-name { font-weight: 600; }
button.small { min-height: 40px; padding: 0 14px; border: 1px solid #CFCBC0; border-radius: 10px; background: #fff;
  color: var(--text); font: inherit; font-size: 14px; font-weight: 600; }
.note { margin-top: 12px; }

/* ---- νέα υπόθεση και αναζήτηση ---- */
.is-hidden { display: none !important; }
.newcase { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
fieldset.card { margin: 0; }
fieldset legend { font-size: 18px; font-weight: 700; padding: 0 4px; }
.newcase label { display: block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--muted); }
.newcase input[type=text], .newcase input:not([type]), .newcase input[type=search] {
  width: 100%; height: 48px; padding: 0 12px; font-size: 16px; border: 1px solid #CFCBC0; border-radius: 12px; background: #fff; }
.chosen { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: var(--blue-bg); border-radius: 12px; padding: 10px 12px; }
.chosen > div { display: flex; flex-direction: column; min-width: 0; }
.small-muted { font-size: 13px; color: var(--muted); font-weight: 400; }
.results { list-style: none; margin: 6px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 12px;
  background: #fff; overflow: hidden; }
.results li + li { border-top: 1px solid #EFEDE7; }
.results button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; width: 100%;
  min-height: 52px; padding: 8px 12px; background: #fff; border: 0; font: inherit; text-align: left; color: var(--text); }
.results button:hover, .results button:focus { background: var(--blue-bg); outline: none; }
.manual { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.check { display: flex !important; align-items: center; gap: 10px; min-height: 44px; color: var(--text) !important;
  font-size: 16px !important; font-weight: 500 !important; }
.check input { width: 22px; height: 22px; }
a.primary-link { display: block; text-align: center; line-height: 56px; height: 56px; border-radius: 16px;
  background: var(--blue); color: #fff; font-size: 18px; font-weight: 700; text-decoration: none; margin-top: 18px; }
button.mini { height: 40px; padding: 0 14px; border: 1px solid #CFCBC0; border-radius: 10px; background: #fff;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--text); flex-shrink: 0; }
