/* Wspólny wygląd strony klienta i panelu salonu: butelkowa zieleń + terakota na kremowym tle */
@import url("/assets/fonts/fonts.css");  /* czcionki z naszego serwera: bez połączeń do Google (polityka cookies) */
:root {
  --brand: #151312; --brand-600: #11100f; --brand-700: #0f0d0d; --brand-50: #ececec; --brand-100: #d0d0d0;
  --ink: #151312; --ink-2: #484746; --muted: #858484; --line: #e9e3dc; --bg: #faf8f6; --card: #ffffff;
  --ok: #2f7d4f; --warn: #b7791f; --err: #b3261e; --accent: #7b2d3a; --accent-50: #f6ecec; --sand: #f1ece6;
  --radius: 10px; --shadow: 0 1px 0 rgba(28,26,23,.04), 0 8px 24px rgba(28,26,23,.07);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: var(--ink);
  background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--brand-600); }
h1, h2, h3 { line-height: 1.15; margin: 0; letter-spacing: -.01em; }
h1, h2, .serif { font-family: var(--serif); font-weight: 500; letter-spacing: -.015em; font-variant-numeric: lining-nums; }
p { margin: 0 0 10px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-weight: 600;
  padding: 10px 18px; border-radius: 999px; border: 1px solid transparent; background: var(--brand); color: #fff;
  cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.btn:hover { background: var(--brand-600); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { border-color: #cfc6b8; background: #fff; }
.btn.ghost.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn.danger { background: #fff; color: var(--err); border-color: #fecaca; }
.btn.danger:hover { background: #fef2f2; }
.btn.okb { background: var(--ok); }
.btn.accent { background: var(--accent); }
.btn.accent:hover { background: #c45a2e; }
.btn.sm { padding: 6px 13px; font-size: 13px; }
.btn.lg { padding: 13px 22px; font-size: 16px; }
.btn.block { width: 100%; }
.linkbtn { background: none; border: none; padding: 0; font: inherit; color: var(--brand-600); cursor: pointer; font-weight: 600; }

input, select, textarea { font: inherit; color: inherit; padding: 10px 12px; border: 1px solid var(--line);
  border-radius: 8px; background: #fff; width: 100%; }
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--brand-50); border-color: var(--brand); }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin: 0 0 12px; }
label.f > span { display: block; margin-bottom: 4px; }
label.f small { font-weight: 400; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); flex: none; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.err { color: var(--err); }
.ok { color: var(--ok); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 2px 9px; border-radius: 6px; letter-spacing: .01em;
  background: var(--brand-50); color: var(--brand-700); white-space: nowrap; }
.badge.grey { background: var(--sand); color: #5c554c; }
.badge.accent { background: var(--accent-50); color: #9a3f19; }
.badge.green { background: #dcfce7; color: #166534; }
.badge.red { background: #fee2e2; color: #991b1b; }
.badge.amber { background: #fef3c7; color: #92400e; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
@media (max-width: 600px) { .grid2 { grid-template-columns: 1fr; } }

.avatar { width: 36px; height: 36px; border-radius: 30%; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; flex: none; font-size: 14px; }

table.t { width: 100%; border-collapse: collapse; }
table.t th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted);
  font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.t td { padding: 12px 14px; border-bottom: 1px solid #efe9df; vertical-align: middle; }
table.t tr:last-child td { border-bottom: none; }
table.t tr.click { cursor: pointer; }
table.t tr.click:hover td { background: #fbf8f2; }
.tablewrap { overflow-x: auto; }

/* okna dialogowe */
.modal-bg { position: fixed; inset: 0; background: rgba(15,23,42,.45); display: flex; align-items: flex-start;
  justify-content: center; padding: 48px 16px; overflow: auto; z-index: 50; animation: fade .15s; }
.modal { background: var(--card); border-radius: 14px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.25); margin: 0; }
.modal.wide { max-width: 720px; }
.modal > header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); }
.modal > header h3 { font-size: 21px; font-family: var(--serif); font-weight: 500; }
.modal > .body { padding: 20px; }
.modal > footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.x { background: none; border: none; font-size: 24px; cursor: pointer; color: var(--muted); line-height: 1; padding: 0 4px; }
@media (max-width: 600px) {
  .modal-bg { padding: 0; align-items: flex-end; }
  .modal { border-radius: 14px 14px 0 0; max-height: 94vh; overflow: auto; }
}
@keyframes fade { from { opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); background: var(--ink); color: #fff;
  padding: 11px 18px; border-radius: 12px; z-index: 100; font-size: 14px; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.toast.bad { background: var(--err); }
.empty { text-align: center; padding: 44px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
dl.dl { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 14px; }
dl.dl dt { color: var(--muted); }
dl.dl dd { margin: 0; font-weight: 500; }
.stars { color: #f59e0b; letter-spacing: 1px; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%;
  animation: spin .8s linear infinite; margin: 30px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.cap { display: inline-block; }
.cap::first-letter { text-transform: uppercase; }
[hidden] { display: none !important; }

/* marka myritual */
.brandmark { display: inline-flex; align-items: center; gap: 9px; font-family: var(--serif); font-weight: 600; font-size: 25px;
  letter-spacing: -.035em; color: var(--ink); text-decoration: none; line-height: 1; white-space: nowrap; }
.brandmark .mark { flex: none; }
a:hover > .brandmark .mark .tick, .brandmark:hover .mark .tick { animation: ensō .7s ease-out; }
@keyframes ensō { from { stroke-dasharray: 1; stroke-dashoffset: 1; } to { stroke-dasharray: 1; stroke-dashoffset: 0; } }
.brandmark i { font-style: italic; font-weight: 500; color: var(--accent); margin-right: .02em; }
.brandmark em { font-style: italic; font-weight: 500; color: var(--accent); font-size: .72em; margin-left: 2px; }

/* ===== telefony =====
   Safari na iPhonie przybliża stronę po kliknięciu w pole z czcionką < 16 px i już jej nie oddala.
   Dlatego pola formularzy mają na dotykowych ekranach zawsze 16 px. */
@media (max-width: 760px), (pointer: coarse) {
  input, select, textarea { font-size: 16px; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .card { padding: 14px; }
  .btn { padding: 9px 15px; }
  .btn.lg { padding: 11px 18px; font-size: 15px; }
  .modal > .body { padding: 16px; }
  .modal > header { padding: 13px 16px; }
  .modal > footer { padding: 12px 16px; }
  .modal > header h3 { font-size: 17px; }
  label.f { margin-bottom: 10px; }
  table.t td { padding: 10px 10px; } table.t th { padding: 8px 10px; }
}

/* motyw: na ciemnym tle (kolor główny) jasne napisy */
.on-brand { color: rgba(255,255,255,.84); }
.on-brand em { color: var(--accent-50); }
.btn { letter-spacing: .01em; }
.btn.accent:hover { background: var(--accent); filter: brightness(.92); }
a { color: var(--accent); }
.badge { background: var(--accent-50); color: var(--accent); }

/* cyfry równej wysokości przy cenach i statystykach */
[style*='--serif'], .serif, h1, h2, h3 { font-variant-numeric: lining-nums; }
/* przełącznik (wspólny dla strony klienta i paneli) */
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #d6cfc4; border-radius: 99px; cursor: pointer; transition: .2s; }
.switch span::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::before { transform: translateX(18px); }
