/* Administrace SM Auto Group: věcný pracovní vzhled ve stylu webu */
:root { --bg: #F2F3F5; --line: #E1E4E8; --ink: #1A1D21; --ink2: #555D66; --or: #EE6A12; --or-h: #F57B26; --or-t: #B4470A; --dark: #1D2125; --ok: #1E7B45; --bad: #B42318; --r: 10px; --ease: cubic-bezier(.23,1,.32,1); }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1rem/1.5 "Barlow", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
h1 { font-size: 1.7rem; font-weight: 600; margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.ab { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 20px; height: 64px; padding: 0 clamp(1rem, 3vw, 2rem); background: var(--dark); color: #fff; }
.ab__brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ab__brand img { width: 46px; height: auto; }
[hidden] { display: none !important; }
.ab__brand span { font: 700 1.25rem "Barlow Condensed", sans-serif; }
.ab__nav { display: flex; gap: 4px; }
.ab__nav a { text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; color: #C9CED3; }
.ab__nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.ab__nav a[aria-current="page"] { color: #fff; background: rgba(255,255,255,.14); box-shadow: inset 0 -3px 0 var(--or); }
.ab__badge { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--or); color: var(--ink); font-size: .8rem; text-align: center; }
.ab__right { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: .92rem; }
.ab__link { font-weight: 600; }
.ab .ab__link { color: #E6E9EC; }
.ab__user { color: #A9B0B6; }
.ab__btn { font: 600 .92rem "Barlow", sans-serif; background: rgba(255,255,255,.12); color: #fff; border: 0; border-radius: 6px; padding: 8px 12px; cursor: pointer; }
.ab__btn:hover { background: rgba(255,255,255,.22); }
.am { max-width: 72rem; margin: 0 auto; padding: 28px clamp(1rem, 3vw, 2rem) 80px; }
.am__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.am__count { color: var(--ink2); margin: 0 0 12px; }
.am__loading, .am__empty { color: var(--ink2); padding: 20px 0; list-style: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: 600 1rem "Barlow", sans-serif; padding: 11px 18px; border-radius: 6px; border: 0; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background-color 150ms var(--ease); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn--main { background: var(--or); color: var(--ink); }
.btn--main:hover:not(:disabled) { background: var(--or-h); }
.btn--line { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #C5CAD0; }
.btn--line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--del { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px #F1C3BE; }
.btn--del:hover { background: #FEF3F2; }
.btn--s { padding: 7px 11px; font-size: .9rem; }
input, select, textarea { font: inherit; color: var(--ink); background: #fff; border: 1px solid #C9CED4; border-radius: 6px; padding: 9px 10px; width: 100%; min-height: 42px; }
textarea { resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--or); outline-offset: 0; border-color: var(--ink); }
input:disabled, select:disabled { background: #F2F3F5; color: #8A939C; }
label > span { display: block; font-size: .85rem; font-weight: 600; color: var(--ink2); margin-bottom: 4px; }
.login { max-width: 26rem; margin: 6vh auto 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 14px; box-shadow: 0 16px 32px -18px rgba(26,29,33,.3); border-top: 4px solid var(--or); }
.login__p { color: var(--ink2); margin: -6px 0 4px; }
.login__err { color: var(--bad); font-weight: 500; margin: 0; min-height: 1.2em; }
.login__forgot { background: none; border: 0; color: var(--ink2); text-decoration: underline; cursor: pointer; font: inherit; justify-self: start; padding: 0; }
.tools { display: grid; grid-template-columns: 1fr 12rem 12rem; gap: 10px; margin-bottom: 12px; }
.rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 92px minmax(0, 1fr) 9.5rem auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 10px; }
.row img, .row__nofoto { width: 92px; height: 69px; object-fit: cover; border-radius: 6px; background: var(--bg); display: grid; place-items: center; font-size: .75rem; color: var(--ink2); }
.row__t { font-weight: 600; text-decoration: none; }
.row__t:hover { text-decoration: underline; }
.row__m { margin: 2px 0 0; color: var(--ink2); font-size: .9rem; }
.row__a { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.row__stav { font-weight: 600; }
.stav--active { border-color: #9BD3B0; background: #EEF8F2; }
.stav--draft { border-color: #C9CED4; background: #F2F3F5; }
.stav--sold { border-color: #F1C3BE; background: #FEF3F2; }
.row--u { grid-template-columns: minmax(0, 1fr) auto auto; }
.pill { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--bg); color: var(--ink2); }
.pill--new { background: var(--or); color: var(--ink); }
.pill--adm { background: var(--dark); color: #fff; }
.ed { display: grid; gap: 16px; }
.ed__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: end; }
.ed__g--sw { grid-template-columns: repeat(2, max-content); gap: 24px; }
.ed__w small { display: block; color: var(--ink2); margin-top: 6px; font-size: .88rem; }
.ed__chk { display: flex; align-items: center; gap: 9px; min-height: 42px; cursor: pointer; }
.ed__chk input { width: 20px; min-height: 20px; height: 20px; accent-color: var(--or); }
.ed__chk span { margin: 0; font-size: 1rem; color: var(--ink); font-weight: 500; }
.ed__box { border: 1px solid var(--line); border-radius: var(--r); padding: 16px; margin: 0; background: #fff; }
.ed__box legend { font-weight: 600; padding: 0 6px; }
.ed__sleva { grid-column: 1 / -1; margin: 0; font-weight: 600; color: var(--or-t); min-height: 1.2em; }
.ed__save { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; position: sticky; bottom: 0; background: var(--bg); padding: 12px 0; border-top: 1px solid var(--line); }
.ph { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ph li { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--bg); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph__n { position: absolute; left: 6px; top: 6px; background: rgba(26,29,33,.8); color: #fff; font-size: .78rem; font-weight: 600; padding: 1px 7px; border-radius: 4px; }
.ph li:first-child .ph__n { background: var(--or); color: var(--ink); }
.ph__a { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(16,18,20,.75)); }
.ph__a button { font: 600 .82rem "Barlow", sans-serif; border: 0; border-radius: 4px; background: rgba(255,255,255,.92); color: var(--ink); padding: 4px 8px; cursor: pointer; }
.ph__a button:disabled { opacity: .35; cursor: default; }
.ph__a [data-rm] { color: var(--bad); }
.ph__none { aspect-ratio: auto !important; background: none !important; color: var(--ink2); }
.ph__up { display: inline-flex; cursor: pointer; }
.ph__up input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ph__up span { margin: 0; display: inline-flex; padding: 10px 16px; border: 2px dashed #B9C0C6; border-radius: 8px; font-weight: 600; color: var(--ink); font-size: 1rem; }
.ph__up:hover span { border-color: var(--or); }
.ph__up input:focus-visible + span { outline: 3px solid var(--or); outline-offset: 2px; }
.ph__st { color: var(--ink2); margin: 8px 0 0; }
.msgs { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.msg { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.msg.is-new { border-left: 4px solid var(--or); }
.msg__h { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.msg__h span:not(.pill) { color: var(--ink2); font-size: .9rem; }
.msg__car { margin: 6px 0 0; font-size: .92rem; }
.msg__t { margin: 10px 0; white-space: normal; }
.msg__a { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.msg__mail { color: var(--ink2); font-size: .9rem; margin-right: auto; }
.info { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; display: grid; gap: 10px; max-width: 52rem; }
.info p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 50; background: var(--dark); color: #fff; padding: 12px 18px; border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.25); font-weight: 500; max-width: calc(100vw - 32px); }
.toast.is-bad { background: var(--bad); }
@media (max-width: 860px) {
  .ab { height: auto; flex-wrap: wrap; padding: 10px 14px; gap: 10px; }
  .ab__nav { order: 3; width: 100%; overflow-x: auto; }
  .ab__user { display: none; }
  .tools { grid-template-columns: 1fr 1fr; }
  .tools input { grid-column: 1 / -1; }
  .row { grid-template-columns: 72px minmax(0, 1fr); }
  .row img, .row__nofoto { width: 72px; height: 54px; }
  .row__stav, .row__a { grid-column: 1 / -1; }
  .row__a { justify-content: flex-start; }
  .row--u { grid-template-columns: minmax(0, 1fr) auto; }
  .ed__g { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) { .ed__g { grid-template-columns: 1fr; } .ed__g--sw { grid-template-columns: 1fr; gap: 6px; } }
.btn--google { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #C5CAD0; gap: 10px; }
.btn--google:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--google svg { width: 20px; height: 20px; }
.login__or { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: .88rem; margin: 2px 0; }
.login__or::before, .login__or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
