/* Личный кабинет Renoir Coffee — стиль как на renoir.coffee:
   кнопка #e5f82c, рамка #0d0d10, скругление 3px, текст кнопок заглавными, шрифт Onest. */

:root {
  --ink: #0d0d10;
  --muted: #6a6a74;
  --light: #9e9ea0;
  --line: #e6e6ea;
  --accent: #e5f82c;
  --bg: #ffffff;
  --card: #f7f7f8;
  --danger: #c23a2b;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.5 "Onest", system-ui, sans-serif; }
[hidden] { display: none !important; }

.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 24px; border-bottom: 1px solid var(--line);
}
.logo { font-weight: 600; color: var(--ink); text-decoration: none; letter-spacing: -0.3px; }
.top-right { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who { color: var(--muted); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wrap { max-width: 760px; margin: 0 auto; padding: 40px 24px 64px; }
@media (max-width: 640px) { .wrap { padding: 28px 16px 48px; } .top { padding: 14px 16px; } }

.label {
  display: flex; align-items: center; gap: 10px;
  font: 600 13px "JetBrains Mono", monospace; letter-spacing: 1px; text-transform: uppercase;
}
.label .bar { width: 32px; height: 3px; background: var(--accent); }

h1 { font-size: 40px; line-height: 1.1; font-weight: 600; letter-spacing: -1.5px; margin: 14px 0 12px; }
h2 { font-size: 22px; font-weight: 600; margin: 40px 0 12px; }
@media (max-width: 640px) { h1 { font-size: 30px; letter-spacing: -1px; } }
p { margin: 0 0 14px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

form { margin-top: 20px; max-width: 420px; }
.input {
  width: 100%; padding: 14px 16px; font: inherit; color: var(--ink);
  border: 1px solid var(--ink); border-radius: 3px; background: #fff; outline: none;
}
.input:focus { box-shadow: 0 0 0 3px var(--accent); }
.input.code { font: 600 28px "JetBrains Mono", monospace; letter-spacing: 10px; text-align: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 12px; padding: 14px 24px; min-height: 48px;
  font: 600 14px "Onest", sans-serif; letter-spacing: 0.5px; text-transform: uppercase;
  color: var(--ink); background: var(--accent); border: 1px solid var(--ink); border-radius: 3px;
  cursor: pointer; text-decoration: none;
}
form .btn { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: default; }
.btn.ghost { background: #fff; }
.btn.small { margin: 0; padding: 8px 14px; min-height: 0; font-size: 12px; }

.link {
  background: none; border: 0; padding: 0; font: inherit; font-size: 14px;
  color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.link:disabled { color: var(--light); text-decoration: none; cursor: default; }
.row { display: flex; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.contacts { display: flex; gap: 12px; flex-wrap: wrap; }

.err { color: var(--danger); font-size: 14px; min-height: 0; margin-top: 8px; }
.err:empty { margin: 0; }

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 8px 0 20px; }

/* карточка заказа */
.order { border: 1px solid var(--line); border-radius: 3px; margin-bottom: 12px; background: #fff; }
.order summary {
  list-style: none; cursor: pointer; padding: 16px 18px;
  display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center;
}
.order summary::-webkit-details-marker { display: none; }
.order .num { font: 500 14px "JetBrains Mono", monospace; color: var(--muted); }
.order .sum { font-weight: 600; text-align: right; white-space: nowrap; }
.order .pill { justify-self: end; }
.order .what { color: var(--muted); font-size: 14px; min-width: 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order .body { padding: 0 18px 18px; border-top: 1px solid var(--line); }

.pill {
  display: inline-block; padding: 2px 10px; border-radius: 3px; font-size: 13px; font-weight: 500;
  background: var(--card); color: var(--ink); white-space: nowrap;
}
.pill.await_pay, .pill.partial { background: var(--accent); }
.pill.sent, .pill.supply, .pill.paid, .pill.accepted, .pill.in_work, .pill.repair { background: #eef0ff; color: #2c3590; }
.pill.received { background: #edf6e6; color: #2f5a12; }
.pill.unpaid, .pill.cancelled { background: var(--card); color: var(--muted); }

.lines { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.lines td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.lines td.r { text-align: right; white-space: nowrap; padding-left: 12px; }
.lines tr.svc td { color: var(--muted); }
.lines tr.total td { border-bottom: 0; font-weight: 600; }

.kv { display: grid; grid-template-columns: 140px 1fr; gap: 6px 12px; font-size: 14px; margin: 10px 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kv { grid-template-columns: 1fr; } .kv dt { margin-top: 6px; } }

.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.empty { padding: 24px; border: 1px dashed var(--line); border-radius: 3px; color: var(--muted); }
.foot { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); }
