

[hidden] { display: none !important; }
/* JDM SERVICE — админ-панель */
:root {
  --red: #e01020;
  --orange: #ff7a18;
  --bg: #0b0b0d;
  --panel: #121215;
  --panel-2: #17171b;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f2f2f4;
  --muted: #96969f;
  --ok: #46c97b;
  --warn: #ffb020;
  --font-head: 'Oswald', 'Arial Narrow', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- логин ---------- */
.login {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(55% 55% at 80% 10%, rgba(224, 16, 32, 0.18), transparent 65%),
    radial-gradient(45% 45% at 10% 90%, rgba(255, 122, 24, 0.1), transparent 65%),
    var(--bg);
}
.login__card {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 30px;
  box-shadow: 0 40px 80px -50px #000;
}
.login__logo { display: inline-flex; align-items: baseline; gap: 6px; margin-bottom: 22px; }
.logo__mark { font-family: var(--font-head); font-size: 26px; font-weight: 700; font-style: italic; color: #fff; }
.logo__service { font-family: var(--font-head); font-size: 12px; letter-spacing: 0.3em; color: var(--orange); }
.login h1 { font-family: var(--font-head); font-size: 24px; text-transform: uppercase; margin: 0 0 4px; letter-spacing: 0.02em; }
.login p { color: var(--muted); font-size: 13px; margin: 0 0 22px; }
.login__form label { display: block; margin-bottom: 14px; font-size: 12px; color: #b9b9c3; }
.login__form input {
  width: 100%; margin-top: 6px;
  background: #0c0c0f; border: 1px solid var(--line); border-radius: 9px;
  padding: 11px 13px; color: #fff;
}
.login__form input:focus { outline: none; border-color: rgba(255, 122, 24, 0.6); }
.login__error { color: #ff6b6b; font-size: 12.5px; min-height: 18px; margin-top: 10px; }
.login__hint { margin-top: 18px; font-size: 11.5px; color: #6c6c76; border-top: 1px solid var(--line); padding-top: 14px; }
.login__hint b { color: var(--orange); }

/* ---------- кнопки ---------- */
.abtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  border: 1px solid transparent; border-radius: 9px;
  padding: 10px 16px; font-weight: 600; font-size: 13px;
  cursor: pointer; transition: all 0.16s ease; white-space: nowrap;
}
.abtn:hover { transform: translateY(-1px); }
.abtn--primary { background: linear-gradient(100deg, var(--red), var(--orange)); color: #fff; }
.abtn--ghost { background: rgba(255, 255, 255, 0.05); border-color: var(--line); color: #dedee4; }
.abtn--ghost:hover { background: rgba(255, 255, 255, 0.1); }
.abtn--danger { background: rgba(224, 16, 32, 0.14); border-color: rgba(224, 16, 32, 0.4); color: #ff8080; }
.abtn--sm { padding: 7px 12px; font-size: 12px; }
.abtn--block { width: 100%; }
.abtn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

/* ---------- каркас ---------- */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh;
  background: #0a0a0c;
  border-right: 1px solid var(--line);
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 26px;
}
.side__logo { display: inline-flex; align-items: baseline; gap: 5px; padding: 0 8px; }
.side__logo .logo__mark { font-size: 24px; }
.side__logo .logo__service { font-size: 10px; }
.side__nav { display: grid; gap: 4px; }
.side__link {
  display: flex; align-items: center; gap: 10px;
  background: none; border: 0; color: #a9a9b3;
  padding: 11px 12px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500; cursor: pointer; text-align: left;
}
.side__link i { font-style: normal; width: 18px; text-align: center; color: #7d7d88; }
.side__link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.side__link.is-active { background: linear-gradient(100deg, rgba(224, 16, 32, 0.22), rgba(255, 122, 24, 0.12)); color: #fff; border: 1px solid rgba(255, 122, 24, 0.22); }
.side__link.is-active i { color: var(--orange); }
.side__badge {
  margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 100px; background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.side__badge:empty, .side__badge[data-zero="1"] { display: none; }
.side__foot { margin-top: auto; display: grid; gap: 10px; font-size: 12px; padding: 0 8px; }
.side__foot a { color: var(--orange); }
.side__foot button { background: none; border: 0; color: #7d7d88; cursor: pointer; padding: 0; text-align: left; font-size: 12px; }
.side__foot button:hover { color: #fff; }

.main { padding: 26px 30px 60px; min-width: 0; }
.topbar2 { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 24px; flex-wrap: wrap; }
.topbar2 h1 { font-family: var(--font-head); font-size: 28px; text-transform: uppercase; margin: 0; letter-spacing: 0.02em; }
.topbar2 p { margin: 2px 0 0; color: var(--muted); font-size: 12.5px; }
.topbar2__right { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(70, 201, 123, 0.14); }

.tab-pane { display: none; }
.tab-pane.is-active { display: block; animation: fade 0.25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } }

/* ---------- KPI ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.kpi {
  background: linear-gradient(170deg, var(--panel-2), var(--panel));
  border: 1px solid var(--line); border-radius: 13px; padding: 16px 18px;
}
.kpi span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.kpi b { display: block; font-family: var(--font-head); font-size: 30px; line-height: 1.15; margin-top: 4px; }
.kpi:first-child b { color: var(--orange); }

/* ---------- тулбар ---------- */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  padding: 7px 13px; border-radius: 100px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: #b9b9c3; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chip:hover { color: #fff; border-color: rgba(255, 122, 24, 0.4); }
.chip.is-active { background: linear-gradient(100deg, var(--red), var(--orange)); border-color: transparent; color: #fff; }
.search {
  background: var(--panel); border: 1px solid var(--line); border-radius: 9px;
  padding: 9px 13px; color: #fff; min-width: 250px;
}
.search:focus { outline: none; border-color: rgba(255, 122, 24, 0.55); }
.hint { color: var(--muted); font-size: 12.5px; margin: 0; max-width: 640px; }
.toolbar__actions { display: flex; gap: 8px; }

/* ---------- заявки ---------- */
.bookings { display: grid; gap: 10px; }
.booking {
  display: grid;
  grid-template-columns: 96px 1.1fr 1.4fr auto;
  gap: 18px;
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 3px solid #3a3a42;
  border-radius: 12px;
  padding: 14px 16px;
}
.booking[data-status="new"] { border-left-color: var(--red); }
.booking[data-status="confirmed"] { border-left-color: var(--orange); }
.booking[data-status="done"] { border-left-color: var(--ok); }
.booking[data-status="cancelled"] { border-left-color: #4a4a52; opacity: 0.62; }
.booking__when { text-align: center; }
.booking__when b { display: block; font-family: var(--font-head); font-size: 22px; line-height: 1.05; }
.booking__when span { font-size: 11px; color: var(--muted); }
.booking__who b { font-size: 14px; }
.booking__who a { display: block; color: var(--orange); font-size: 13px; margin-top: 1px; }
.booking__who span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.booking__what { font-size: 12.5px; color: #cfcfd6; min-width: 0; }
.booking__what .svc { color: #fff; font-weight: 500; }
.booking__what .comment { color: var(--muted); font-style: italic; margin-top: 3px; overflow-wrap: anywhere; }
.booking__actions { display: flex; align-items: center; gap: 6px; }
.status-sel {
  background: #0d0d10; border: 1px solid var(--line); border-radius: 8px;
  color: #dcdce2; padding: 7px 9px; font-size: 12px; cursor: pointer;
}
.icon-btn {
  width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03); color: #9a9aa4; cursor: pointer;
  display: grid; place-items: center; font-size: 13px;
}
.icon-btn:hover { color: #ff8080; border-color: rgba(224, 16, 32, 0.5); background: rgba(224, 16, 32, 0.12); }
.empty {
  text-align: center; padding: 60px 20px; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 14px; background: rgba(255, 255, 255, 0.02);
}
.empty b { display: block; color: #dcdce2; font-family: var(--font-head); font-size: 20px; margin-bottom: 6px; text-transform: uppercase; }

/* ---------- прайс-редактор ---------- */
.price-editor { display: grid; gap: 12px; }
.pcat { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.pcat__head {
  display: grid; grid-template-columns: auto 1fr 1fr auto; gap: 10px; align-items: center;
  padding: 12px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line);
}
.pcat__num {
  width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center;
  background: rgba(255, 122, 24, 0.12); color: var(--orange);
  font-family: var(--font-head); font-size: 13px; border: 1px solid rgba(255, 122, 24, 0.2);
}
.pcat__head input {
  background: #0d0d10; border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 11px; color: #fff; width: 100%; font-weight: 600;
}
.pcat__head input.note { font-weight: 400; font-size: 12.5px; color: #c5c5cd; }
.pcat__tools { display: flex; gap: 5px; }
.pcat__body { padding: 6px 14px 12px; }
.pitem {
  display: grid; grid-template-columns: 1fr 120px 120px auto;
  gap: 8px; align-items: center; padding: 6px 0; border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.pitem:last-of-type { border-bottom: 0; }
.pitem input {
  background: #0d0d10; border: 1px solid var(--line); border-radius: 7px;
  padding: 7px 10px; color: #fff; width: 100%; font-size: 13px;
}
.pitem input:focus, .pcat__head input:focus { outline: none; border-color: rgba(255, 122, 24, 0.55); }
.pitem input.num { text-align: right; }
.pitem__tools { display: flex; gap: 4px; }
.pitem__tools .icon-btn { width: 26px; height: 26px; font-size: 11px; }
.padd { margin-top: 8px; }
.pcat__foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.cols-label { display: grid; grid-template-columns: 1fr 120px 120px auto; gap: 8px; padding: 2px 0 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.1em; color: #6f6f79; }

/* ---------- контент ---------- */
.card-form { display: grid; gap: 14px; max-width: 980px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; padding: 20px 22px; display: grid; gap: 12px; }
.card h2 { font-family: var(--font-head); font-size: 18px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 2px; }
.card label { display: block; font-size: 11.5px; color: #a9a9b3; }
.card label small { color: #6f6f79; }
.card input, .card textarea, .card select {
  width: 100%; margin-top: 5px;
  background: #0d0d10; border: 1px solid var(--line); border-radius: 8px;
  padding: 9px 12px; color: #fff; font-size: 13.5px;
}
.card textarea { resize: vertical; }
.card input:focus, .card textarea:focus { outline: none; border-color: rgba(255, 122, 24, 0.55); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adv-editor { display: grid; gap: 10px; }
.adv-row { display: grid; grid-template-columns: 220px 1fr; gap: 10px; }
.save-bar {
  position: sticky; bottom: 0; z-index: 5;
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  padding: 12px 0; background: linear-gradient(180deg, transparent, var(--bg) 40%);
}
.save-bar__msg { font-size: 12.5px; color: var(--ok); }

/* ---------- toast ---------- */
.toast {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  background: #17171b; border: 1px solid var(--line); border-left: 3px solid var(--ok);
  color: #fff; padding: 12px 18px; border-radius: 10px;
  font-size: 13px; box-shadow: 0 20px 40px -20px #000;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: all 0.25s ease;
}
.toast.is-show { opacity: 1; transform: translateY(0); }
.toast.is-error { border-left-color: var(--red); }

/* ---------- адаптив ---------- */
@media (max-width: 1000px) {
  .booking { grid-template-columns: 80px 1fr auto; }
  .booking__what { grid-column: 2 / 3; }
  .kpis { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 780px) {
  .app { grid-template-columns: 1fr; }
  .side {
    position: sticky; top: 0; height: auto; z-index: 40;
    flex-direction: row; align-items: center; gap: 10px;
    padding: 10px 12px; overflow-x: auto;
    border-right: 0; border-bottom: 1px solid var(--line);
  }
  .side__logo { display: none; }
  .side__nav { display: flex; gap: 4px; }
  .side__link { padding: 8px 10px; font-size: 12px; white-space: nowrap; }
  .side__link i { display: none; }
  .side__foot { margin: 0 0 0 auto; display: flex; gap: 10px; align-items: center; white-space: nowrap; }
  .side__foot a { display: none; }
  .main { padding: 18px 14px 50px; }
  .topbar2 h1 { font-size: 22px; }
  .booking { grid-template-columns: 70px 1fr; gap: 10px 12px; }
  .booking__actions { grid-column: 1 / -1; justify-content: flex-end; }
  .pitem { grid-template-columns: 1fr 90px 92px auto; }
  .cols-label { grid-template-columns: 1fr 90px 92px auto; }
  .pcat__head { grid-template-columns: auto 1fr auto; }
  .pcat__head input.note { grid-column: 1 / -1; }
  .grid2, .adv-row { grid-template-columns: 1fr; }
  .search { min-width: 0; width: 100%; }
}
