/* ====== Úředně.cz – administrace (moderní design) ====== */
@font-face { font-family: "Euclid Circular A"; src: url("/static/fonts/Euclid Circular A Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Euclid Circular A"; src: url("/static/fonts/Euclid Circular A SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Euclid Circular A"; src: url("/static/fonts/Euclid Circular A Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }

:root {
  --navy: #050190;
  --navy-2: #060375;
  --indigo: #4542A1;
  --cyan: #00B4D5;
  --cyan-bg: #F2FBFD;
  --cyan-border: #B0E8F2;
  --bg: #f4f6fb;
  --card: #ffffff;
  --border: #e6e8f2;
  --text: #1d1d3a;
  --muted: #71738f;
  --green: #1a9e57;
  --orange: #e08a00;
  --red: #c0392b;
  --radius: 14px;
  --shadow: 0 1px 3px rgba(16,24,64,.06), 0 8px 24px rgba(16,24,64,.06);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Euclid Circular A", "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; }

/* ====== Hlavička + karty (taby) ====== */
.admin-header {
  background: linear-gradient(120deg, #050190 0%, #4542A1 60%, #00B4D5 160%);
  border-bottom: none;
  box-shadow: 0 4px 18px rgba(5,1,144,.25);
  display: flex;
  align-items: stretch;
  gap: 18px;
  padding: 0 20px;
  height: 62px;
  position: relative;
  z-index: 10;
}
.admin-header h1 {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  white-space: nowrap;
}
.admin-header h1::before {
  content: "";
  width: 10px; height: 10px; border-radius: 3px; background: var(--cyan);
  margin-right: 10px; display: inline-block;
}

.tab-strip { display: flex; gap: 4px; flex: 1; align-items: flex-end; overflow-x: auto; }
.tab {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.16);
  border-radius: 10px 10px 0 0;
  padding: 8px 12px 7px 14px; cursor: default; white-space: nowrap;
  max-width: 230px; margin-top: 14px;
  transition: background .15s;
}
.tab:hover { background: rgba(255,255,255,.22); }
.tab.active {
  background: var(--bg);
  border-color: rgba(255,255,255,.3);
  border-bottom-color: var(--bg);
  position: relative;
  top: 1px;
}
.tab.active::before {
  content: ""; position: absolute; top: 10px; left: -1px; width: 3px; height: 14px;
  background: var(--cyan); border-radius: 3px;
}
.tab-title { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); cursor: pointer; overflow: hidden; text-overflow: ellipsis; }
.tab.active .tab-title { color: var(--navy); font-weight: 700; }
.tab-close { font-size: 11px; color: rgba(255,255,255,.65); cursor: pointer; padding: 3px 5px; border-radius: 5px; line-height: 1; }
.tab-close:hover { background: rgba(255,255,255,.22); color: #fff; }
.tab.active .tab-close { color: #b0b2c6; }
.tab.active .tab-close:hover { background: #e6e8f2; color: var(--text); }
.tab-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }

.tab-new-wrap { position: relative; }
.tab-new-btn {
  width: 32px; height: 32px; border-radius: 9px;
  border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff;
  font-size: 19px; line-height: 1; cursor: pointer; transition: all .15s;
}
.tab-new-btn:hover { background: rgba(255,255,255,.3); }
.tab-new-menu {
  position: absolute; right: 0; top: 40px; background: #fff; border-radius: 12px;
  border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(16,24,64,.16);
  padding: 6px; z-index: 100; min-width: 200px;
}
.tab-new-menu button {
  display: block; width: 100%; text-align: left;
  border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 10px 12px; border-radius: 8px;
}
.tab-new-menu button:hover { background: var(--cyan-bg); color: var(--navy); }

.admin-userbox { display: flex; align-items: center; gap: 10px; }
.userbox-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--cyan), #fff 220%);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; object-fit: cover;
  border: 2px solid rgba(255,255,255,.7);
}
.userbox-name { color: #fff; font-weight: 600; font-size: 13px; }
.userbox-role { color: rgba(255,255,255,.7); font-weight: 400; font-size: 12px; }

.admin-nav { display: flex; gap: 4px; align-items: center; }
.admin-nav a {
  color: rgba(255,255,255,.85); font-weight: 600; padding: 8px 14px; border-radius: 9px; font-size: 14px;
  transition: all .15s;
}
.admin-nav a:hover { background: rgba(255,255,255,.18); color: #fff; }
.admin-nav a.active { background: rgba(255,255,255,.25); color: #fff; }
.admin-nav a.logout, .tab-actions a.logout {
  color: #fff; background: var(--red); border-radius: 9px; padding: 9px 16px;
  font-weight: 700; font-size: 13px; transition: background .15s;
}
.admin-nav a.logout:hover, .tab-actions a.logout:hover { background: #a93226; }

.tab-frame { width: 100%; height: calc(100vh - 62px); border: 0; display: block; background: var(--bg); }


/* ====== Obsah ====== */
.admin-section {
  background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin: 24px 28px; padding: 24px 28px;
}
.admin-section h2 { margin: 0 0 6px; color: var(--navy); font-size: 19px; }
.admin-section h3 { margin: 24px 0 8px; color: var(--navy); font-size: 15px; }
.hint { color: var(--muted); font-size: 13px; margin: 0 0 16px; line-height: 1.5; }

.flash {
  margin: 18px 28px 0; background: #e8f8ee; border: 1px solid #b9e6ca; border-radius: 10px;
  padding: 11px 16px; color: #166534; font-weight: 600; font-size: 13px;
}

/* tabulky */
.admin-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.admin-table th {
  background: #f7f8fc; color: var(--muted); font-weight: 700; text-align: left;
  padding: 10px 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .4px;
  border-bottom: 1px solid var(--border);
}
.admin-table th:first-child { border-radius: 10px 0 0 0; }
.admin-table th:last-child { border-radius: 0 10px 0 0; }
.admin-table td { padding: 10px 12px; border-bottom: 1px solid #f0f1f8; vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-table tbody tr:hover td { background: #fafbfe; }

.admin-table input, .admin-table select,
.add-form input, .add-form select,
.order-form select, .order-form input {
  padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 13.5px; color: var(--text); background: #fff;
  transition: border-color .15s;
}
.admin-table input:focus, .admin-table select:focus,
.add-form input:focus, .add-form select:focus,
.order-form select:focus, .order-form input:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.14);
}
.admin-table input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--cyan); }

.btn-primary, .btn-danger {
  border: 0; border-radius: 9px; padding: 9px 18px; cursor: pointer;
  font: inherit; font-weight: 700; font-size: 13.5px; color: #fff; transition: all .15s;
}
.btn-primary { background: var(--navy); box-shadow: 0 2px 8px rgba(5,1,144,.25); }
.btn-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #a93226; }

.inline-form { display: contents; }
.add-form { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.chk { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); }
.btn-link { color: var(--navy); font-weight: 700; font-size: 13px; }

/* statistiky */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.stat-card {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 18px;
}
.stat-card:first-child { border-top: 3px solid var(--navy); }
.stat-card:nth-child(2) { border-top: 3px solid var(--green); }
.stat-card:nth-child(3) { border-top: 3px solid var(--cyan); }
.stat-card:nth-child(4) { border-top: 3px solid var(--indigo); }
.stat-card:nth-child(5) { border-top: 3px solid var(--orange); }
.stat-num { font-size: 26px; font-weight: 700; color: var(--navy); margin: 0; }
.stat-label { font-size: 12.5px; color: var(--muted); margin: 4px 0 0; }

/* ====== Stavové štítky ====== */
.status-pill {
  display: inline-block; border-radius: 999px; padding: 4px 12px;
  font-size: 12px; font-weight: 700; color: #fff; white-space: nowrap;
}
.sp-gray   { background: #71738f; }
.sp-blue   { background: #2f6fd6; }
.sp-orange { background: var(--orange); }
.sp-green  { background: var(--green); }
.sp-indigo { background: var(--indigo); }
.sp-teal   { background: #0099b5; }
.sp-red    { background: var(--red); }


/* ====== Přihlášení ====== */
body.admin-login {
  display: flex; align-items: center; justify-content: center; min-height: 100vh;
  background: linear-gradient(150deg, #050190 0%, #4542A1 55%, #00B4D5 130%);
  padding: 24px;
}
.login-card {
  background: #fff; border-radius: 20px; padding: 40px 42px; width: 380px;
  box-shadow: 0 30px 80px rgba(3,0,60,.4); text-align: center;
}
.login-card h1 { color: var(--navy); margin: 0 0 2px; font-size: 26px; }
.login-sub { color: var(--muted); margin: 0 0 26px; font-size: 14px; }
.login-card label { display: block; text-align: left; font-size: 12.5px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.login-card label input {
  width: 100%; padding: 12px 14px; margin-top: 6px; border: 1.5px solid var(--border);
  border-radius: 10px; font: inherit; font-size: 14px; color: var(--text); transition: border-color .15s;
}
.login-card label input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.14); }
.login-card .btn-primary { width: 100%; margin-top: 6px; padding: 13px; font-size: 15px; }
.login-error { color: #b3261e; background: #fdecec; border-radius: 8px; padding: 9px 12px; font-size: 13px; margin: 0 0 16px; }
.login-divider { display: flex; align-items: center; gap: 10px; margin: 20px 0; color: var(--muted); font-size: 12px; }
.login-divider::before, .login-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.google-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border: 1.5px solid var(--border); border-radius: 10px; padding: 12px;
  font-weight: 600; font-size: 14px; color: var(--text); background: #fff;
  transition: all .15s;
}
.google-btn:hover { background: #f4f6ff; border-color: var(--indigo); }

/* ====== Profil (vycentrovaný) ====== */
.profile-page {
  max-width: 620px;
  margin: 40px auto !important;
  padding: 0 0 30px;
  text-align: center;
  overflow: hidden;
}
.profile-page .flash { margin: 16px 0 0; }
.profile-banner {
  position: relative; height: 130px;
  background: linear-gradient(120deg, var(--navy), var(--indigo) 55%, var(--cyan) 150%);
  margin: 0;
}
.profile-avatar-box {
  display: flex; flex-direction: column; align-items: center;
  margin-top: -58px; margin-bottom: 6px; position: relative; z-index: 2;
}
.profile-avatar {
  width: 118px; height: 118px; border-radius: 50%; object-fit: cover;
  border: 5px solid #fff; box-shadow: 0 8px 24px rgba(16,24,64,.22); background: #fff;
}
.profile-avatar.placeholder {
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--cyan), var(--indigo));
  color: #fff; font-size: 42px; font-weight: 700;
}
.profile-name-box { margin-top: 10px; }
.profile-name-box h2 { margin: 0 0 6px; font-size: 22px; color: var(--navy); }
.profile-role-pill {
  display: inline-block; background: var(--cyan-bg); color: var(--navy);
  border: 1px solid var(--cyan-border); border-radius: 999px;
  padding: 4px 14px; font-size: 12.5px; font-weight: 700;
}
.profile-forms {
  display: flex; flex-direction: column; gap: 16px;
  margin: 26px auto 0; max-width: 440px; padding: 0 24px;
  text-align: left;
}
.profile-form {
  background: #fafbff; border: 1px solid var(--border); border-radius: 14px; padding: 22px 24px;
}
.profile-form h3 { margin: 0 0 16px; color: var(--navy); font-size: 15px; text-align: center; }
.profile-form .form-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.profile-form .form-field label { font-size: 12.5px; font-weight: 700; color: var(--text); }
.profile-form .form-field input {
  padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 10px;
  font: inherit; font-size: 14px; color: var(--text); background: #fff; transition: border-color .15s;
}
.profile-form .form-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.14); }
.profile-form .btn-primary { width: 100%; padding: 13px; font-size: 14.5px; }
.avatar-hint { font-size: 12px; color: var(--muted); margin: 6px 0 0; }


/* ====== Detail objednávky ====== */
body.admin-order { padding: 24px 28px 60px; }
.back-link { color: var(--navy); font-weight: 700; font-size: 14px; }
.order-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 20px 24px; margin: 12px 0 18px; flex-wrap: wrap;
}
.order-head h1 { margin: 0 0 6px; color: var(--navy); font-size: 22px; }
.muted { color: var(--muted); font-size: 13px; margin: 0; }
.status-badge { display: inline-block; padding: 7px 16px; border-radius: 999px; font-weight: 700; font-size: 13px; color: #fff; }
.status-green { background: var(--green); }
.status-orange { background: var(--orange); }
.status-red { background: var(--red); }
.status-gray { background: var(--muted); }
.order-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .order-grid { grid-template-columns: 1fr; } }
.order-col { display: flex; flex-direction: column; gap: 18px; }
.order-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 22px;
}
.order-card h2 {
  margin: 0 0 14px; font-size: 13px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .6px; font-weight: 700;
}
.info-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px dashed #ececf6; font-size: 14px; }
.info-row:last-child { border-bottom: 0; }
.info-label { color: var(--muted); min-width: 130px; }
.info-value { color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }
.info-value a { color: var(--navy); }
.info-total { margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--cyan-bg); text-align: right; font-size: 18px; font-weight: 700; color: var(--navy); }
.file-item {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px;
  background: var(--cyan-bg); margin-bottom: 6px; font-size: 14px; color: var(--navy);
  transition: background .15s;
}
.file-item:hover { background: #e3f8fc; }
.file-icon { font-size: 16px; }
.file-name { font-weight: 600; flex: 1; word-break: break-all; }
.file-size { color: var(--muted); white-space: nowrap; }
.order-form { display: flex; gap: 10px; margin: 10px 0 4px; flex-wrap: wrap; }
.order-form select, .order-form button {
  padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 8px; font: inherit; background: #fff;
}
.order-form button { background: var(--navy); color: #fff; border: 0; font-weight: 700; cursor: pointer; }
.order-form button:hover { background: var(--navy-2); }

/* ---- filtr objednávek ---- */
.filter-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:14px 0 18px}
.filter-bar input[type=search],.filter-bar input[type=date],.filter-bar select{padding:8px 10px;border:1px solid #B0E8F2;border-radius:8px;font-size:13px;background:#fff}
.filter-bar input[type=search]{min-width:220px}

/* ---- graf tržeb ---- */
.month-chart{display:flex;gap:10px;align-items:flex-end;padding:10px 0 4px;overflow-x:auto}
.month-col{flex:1;min-width:70px;display:flex;flex-direction:column;align-items:center;gap:4px}
.month-bar-wrap{height:140px;width:100%;display:flex;align-items:flex-end;justify-content:center}
.month-bar{width:60%;background:linear-gradient(180deg,#00B4D5,#050190);border-radius:6px 6px 0 0;min-height:2px}
.month-value{font-size:11px;font-weight:600;color:#050190}
.month-cnt{font-size:11px;color:#7a8ba6}
.month-label{font-size:12px;font-weight:700;color:#2a3a52}

/* ---- audit log ---- */
.audit-list{display:flex;flex-direction:column;gap:4px}
.audit-item{display:flex;gap:10px;align-items:baseline;font-size:12.5px;padding:4px 0;border-bottom:1px dashed #E6F1F6}
.audit-time{color:#7a8ba6;white-space:nowrap}
.audit-who{font-weight:700;color:#050190;min-width:80px}
.audit-action{color:#2a3a52}
.audit-detail{font-size:11.5px}

.order-form{display:flex;gap:8px;align-items:center;margin:10px 0;flex-wrap:wrap}

/* ---- badge objednávek + bulk akce + řazení sloupců ---- */
.nav-badge{display:inline-block;min-width:18px;padding:1px 6px;margin-left:6px;border-radius:10px;background:#ff4d4f;color:#fff;font-size:11px;font-weight:700;text-align:center}
.tab-badge{display:inline-block;min-width:16px;padding:0 5px;margin-left:6px;border-radius:9px;background:#ff4d4f;color:#fff;font-size:10.5px;font-weight:700;text-align:center;line-height:16px}
.bulk-bar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 10px;padding:10px 12px;background:#F2FBFD;border:1px solid #B0E8F2;border-radius:10px}
.bulk-bar select{padding:7px 10px;border:1px solid #B0E8F2;border-radius:8px;font-size:13px}
.th-sort{color:inherit;text-decoration:none;cursor:pointer;white-space:nowrap}
.th-sort:hover{color:#00B4D5}


/* ---- funnel ---- */
.funnel-row{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.funnel-step{background:#F2FBFD;border:1px solid #B0E8F2;border-radius:12px;padding:14px 22px;text-align:center}
.funnel-step .stat-num{margin:0}
.funnel-arrow{font-size:26px;color:#00B4D5;font-weight:700}

/* ---- nastavení AI ---- */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 20px; }
@media (max-width: 900px) { .settings-grid { grid-template-columns: 1fr; } }
.settings-card {
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 18px 20px; background: #fbfcff;
}
.settings-card-icon {
  width: 42px; height: 42px; flex: 0 0 42px;
  display: flex; align-items: center; justify-content: center;
  background: var(--cyan-bg); border: 1px solid var(--cyan-border);
  border-radius: 10px; font-size: 20px;
}
.settings-card-body { flex: 1; min-width: 0; }
.settings-card-title { display: block; font-weight: 700; color: var(--navy); font-size: 14px; margin-bottom: 2px; }
.settings-card .muted { margin: 0 0 10px; }
.settings-select {
  width: 100%; padding: 10px 12px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font: inherit; font-size: 14px; color: var(--text); background: #fff;
  transition: border-color .15s;
}
.settings-select:focus {
  outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.14);
}
.settings-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.settings-status {
  display: flex; gap: 14px; align-items: flex-start;
  border-radius: 12px; padding: 16px 18px;
}
.settings-status.ok { background: #e8f8ee; border: 1px solid #b9e6ca; }
.settings-status.warn { background: #fff7e8; border: 1px solid #f0d9a6; }
.settings-status-icon {
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px; color: #fff;
}
.settings-status.ok .settings-status-icon { background: var(--green); }
.settings-status.warn .settings-status-icon { background: var(--orange); }
.settings-status-title { margin: 0 0 3px; font-weight: 700; color: var(--text); font-size: 14px; }
.settings-status .muted { margin: 0; }
.settings-status code { background: rgba(0,0,0,.06); padding: 1px 6px; border-radius: 5px; font-size: 12px; }
.settings-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.settings-info-card {
  border: 1px solid var(--border); border-radius: 12px;
  padding: 16px 18px; background: #fbfcff;
}
.settings-info-title {
  margin: 0 0 6px; font-weight: 700; color: var(--navy); font-size: 14px;
}
.settings-info-card .muted { margin: 0; line-height: 1.55; }


/* ================================================================
   Dashboard 2.0 – sidebar layout + nový přehled (dle design návrhu)
   ================================================================ */

.shell { display: flex; min-height: 100vh; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 264px; flex: 0 0 264px;
  background: linear-gradient(178deg, #16145a 0%, #100e4a 55%, #0c0a3c 100%);
  color: #fff;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 0 14px 14px;
}
.sidebar::-webkit-scrollbar { width: 0; }

.brand {
  display: flex; align-items: center; gap: 8px;
  color: #fff; font-size: 21px; font-weight: 700;
  padding: 20px 10px 18px;
}
.brand-dot { width: 9px; height: 9px; border-radius: 3px; background: #22d3ee; margin-top: 8px; }

.side-label {
  margin: 14px 10px 8px; font-size: 10.5px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.42);
}

.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 11px;
  color: rgba(255,255,255,.78); font-size: 14px; font-weight: 600;
  padding: 10px 12px; border-radius: 10px; transition: all .15s;
}
.side-nav a svg { width: 19px; height: 19px; flex: 0 0 19px; opacity: .85; }
.side-nav a:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-nav a.active { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.side-nav a.active svg { opacity: 1; }
.side-nav a span { flex: 1; }

.side-badge {
  font-style: normal; font-size: 11px; font-weight: 700; line-height: 1;
  background: #e5486b; color: #fff; border-radius: 999px; padding: 4px 8px;
}

.side-services { display: flex; flex-direction: column; gap: 2px; }
.svc {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; font-size: 13.5px; color: rgba(255,255,255,.78);
}
.svc svg { width: 18px; height: 18px; opacity: .8; }
.svc span { flex: 1; }
.svc i {
  font-style: normal; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.5);
  display: inline-flex; align-items: center; gap: 5px;
}
.svc i::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #5b5e8a; }
.svc i.on { color: #34d399; }
.svc i.on::before { background: #34d399; box-shadow: 0 0 6px rgba(52,211,153,.8); }

.side-user {
  margin-top: auto; display: flex; align-items: center; gap: 11px;
  padding: 12px 10px 8px; border-top: 1px solid rgba(255,255,255,.12);
  color: #fff;
}
.su-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: 0 0 38px;
  background: linear-gradient(135deg, #22d3ee, #4f46e5);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; color: #fff; object-fit: cover;
}
.su-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.su-text b { font-size: 13.5px; }
.su-text small { font-size: 11.5px; color: rgba(255,255,255,.55); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.su-chev { width: 16px; height: 16px; color: rgba(255,255,255,.5); }

/* ---------- Topbar ---------- */
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  height: 62px; flex: 0 0 62px; background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 22px; padding: 0 26px;
  position: sticky; top: 0; z-index: 20;
}
.crumbs { display: flex; align-items: center; gap: 9px; font-size: 13.5px; white-space: nowrap; }
.crumbs svg { width: 17px; height: 17px; color: var(--muted); }
.crumb-root { color: var(--muted); }
.crumb-sep { color: #c4c6d8; }
.crumb-page { font-weight: 700; color: var(--text); }

.top-search {
  flex: 1; max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 9px;
  background: #f2f3f9; border: 1px solid transparent; border-radius: 10px;
  padding: 8px 13px; transition: all .15s;
}
.top-search:focus-within { background: #fff; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.12); }
.top-search svg { width: 16px; height: 16px; color: var(--muted); flex: 0 0 16px; }
.top-search input { flex: 1; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--text); outline: none; }
.top-search input::placeholder { color: #9a9cb5; }
.top-search kbd {
  font: inherit; font-size: 11px; font-weight: 600; color: var(--muted);
  background: #fff; border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px;
}

.top-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.icon-btn {
  position: relative; width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text); border: 1px solid var(--border); transition: all .15s;
}
.icon-btn:hover { background: #f4f5fb; }
.icon-btn svg { width: 19px; height: 19px; }
.icon-btn em {
  position: absolute; top: -7px; right: -7px; font-style: normal;
  min-width: 19px; height: 19px; border-radius: 999px; background: #dc2626;
  color: #fff; font-size: 11px; font-weight: 800; line-height: 15px;
  padding: 0 5px; text-align: center; border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(220,38,38,.45);
}

.user-menu { position: relative; }
.user-menu summary {
  list-style: none; display: flex; align-items: center; gap: 6px; cursor: pointer;
  padding: 3px; border-radius: 12px;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-menu summary svg { width: 15px; height: 15px; color: var(--muted); }
.tm-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #22d3ee);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 13px; font-weight: 700; object-fit: cover;
}
.user-menu-list {
  position: absolute; right: 0; top: 46px; min-width: 170px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 14px 40px rgba(16,24,64,.16); padding: 6px; z-index: 50;
}
.user-menu-list a {
  display: block; padding: 9px 12px; border-radius: 8px;
  font-size: 13px; font-weight: 600; color: var(--text);
}
.user-menu-list a:hover { background: var(--cyan-bg); }
.user-menu-list a.danger { color: var(--red); }

/* ---------- Content ---------- */
.content { flex: 1; padding: 24px 28px 40px; min-width: 0; }
.content .admin-section { margin: 0 0 22px; }
.content .flash { margin: 0 0 18px; }

/* ---------- Hlavička stránky ---------- */
.dash-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.dash-title h1 { margin: 0; font-size: 26px; font-weight: 700; color: var(--navy); letter-spacing: -.02em; }
.dash-title p { margin: 5px 0 0; color: var(--muted); font-size: 13.5px; }
.dash-actions { display: flex; gap: 10px; align-items: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border); background: #fff; border-radius: 10px;
  padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  cursor: pointer; transition: all .15s;
}
.btn-ghost:hover { border-color: #c9cbdf; background: #fafbfe; }
.btn-ghost svg { width: 15px; height: 15px; color: var(--muted); }
.btn-ghost .chev { width: 13px; height: 13px; }

.btn-new {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--navy); color: #fff; border-radius: 10px;
  padding: 10px 16px; font-size: 13.5px; font-weight: 700;
  box-shadow: 0 4px 14px rgba(5,1,144,.28); transition: all .15s;
}
.btn-new:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-new svg { width: 15px; height: 15px; }


/* ---------- Hero banner ---------- */
.hero {
  display: flex; align-items: center; gap: 26px;
  background: linear-gradient(105deg, #0b0985 0%, #1a17a8 55%, #2623b8 100%);
  border-radius: 16px; padding: 24px 28px; color: #fff;
  box-shadow: 0 10px 30px rgba(9,6,120,.3); margin-bottom: 20px;
}
.hero-ico {
  width: 52px; height: 52px; flex: 0 0 52px; border-radius: 14px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.22);
  display: flex; align-items: center; justify-content: center;
}
.hero-ico svg { width: 26px; height: 26px; color: #7de9fc; }
.hero-text { flex: 1; min-width: 0; }
.hero-text h2 { margin: 0; font-size: 20px; font-weight: 700; }
.hero-text p { margin: 6px 0 0; font-size: 13px; color: rgba(255,255,255,.72); max-width: 520px; line-height: 1.45; }

.hero-stats { display: flex; }
.hs { display: flex; flex-direction: column; gap: 5px; padding: 0 22px; }
.hs + .hs { border-left: 1px solid rgba(255,255,255,.18); }
.hs b { font-size: 26px; font-weight: 700; line-height: 1; }
.hs span { font-size: 12px; color: rgba(255,255,255,.75); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.hd { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.hd-purple { background: #c4b5fd; }
.hd-cyan { background: #22d3ee; }
.hd-red { background: #fb7185; }

.hero-btn {
  display: inline-flex; align-items: center; gap: 9px; white-space: nowrap;
  border: 1.5px solid rgba(255,255,255,.5); border-radius: 10px;
  color: #fff; font-size: 13.5px; font-weight: 700; padding: 11px 18px;
  transition: all .15s;
}
.hero-btn:hover { background: rgba(255,255,255,.14); }
.hero-btn svg { width: 16px; height: 16px; }

/* ---------- KPI karty ---------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.kpi {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 18px; display: flex; align-items: flex-start; gap: 13px;
  position: relative; overflow: hidden; box-shadow: var(--shadow);
}
.kpi-ico {
  width: 42px; height: 42px; flex: 0 0 42px; border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
}
.kpi-ico svg { width: 21px; height: 21px; }
.kico-navy { background: #e8e9fb; color: #4f46e5; }
.kico-purple { background: #f3e8ff; color: #9333ea; }
.kico-amber { background: #fef3c7; color: #d97706; }
.kico-blue { background: #e0f2fe; color: #0284c7; }
.kpi-body { min-width: 0; }
.kpi-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi-line { display: flex; align-items: baseline; gap: 8px; margin-top: 3px; }
.kpi-line b { font-size: 24px; font-weight: 700; color: var(--text); letter-spacing: -.02em; }
.kpi-line em { font-style: normal; font-size: 12px; font-weight: 700; }
.kpi-line em.up { color: #16a34a; }
.kpi-line em.down { color: #dc2626; }
.kpi-sub { font-size: 11.5px; color: #9a9cb5; }
.kpi .spark { position: absolute; right: 10px; bottom: 8px; width: 110px; height: 38px; }

/* ---------- Layout hlavní + vedlejší sloupec ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.dash-main { min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dash-side { display: flex; flex-direction: column; gap: 18px; min-width: 0; }

.card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); padding: 18px 20px;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-head h3 { margin: 0; font-size: 16px; font-weight: 700; color: var(--text); }
.card-link { font-size: 12.5px; font-weight: 700; color: #4f46e5; white-space: nowrap; }
.card-link:hover { text-decoration: underline; }
.btn-mini {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  font: inherit; font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 6px 10px; cursor: pointer;
}
.btn-mini svg { width: 12px; height: 12px; }

/* ---------- Tabulka objednávek ---------- */
.orders-card { padding-bottom: 10px; }
.otabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 0 -20px; padding: 0 20px; }
.otab {
  border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); padding: 9px 12px 11px; cursor: pointer;
  border-bottom: 2.5px solid transparent; margin-bottom: -1px;
}
.otab em { font-style: normal; font-size: 11px; font-weight: 700; background: #eef0f8; color: var(--muted); border-radius: 999px; padding: 2px 7px; margin-left: 4px; }
.otab:hover { color: var(--text); }
.otab.active { color: var(--navy); border-bottom-color: var(--navy); font-weight: 700; }
.otab.active em { background: #e8e9fb; color: var(--navy); }

.otoolbar { display: flex; gap: 10px; padding: 14px 0 12px; }
.osearch {
  flex: 1; display: flex; align-items: center; gap: 8px;
  background: #f7f8fc; border: 1px solid var(--border); border-radius: 9px; padding: 8px 12px;
}
.osearch:focus-within { border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 3px rgba(0,180,213,.1); }
.osearch svg { width: 15px; height: 15px; color: var(--muted); }
.osearch input { flex: 1; border: 0; background: none; font: inherit; font-size: 13px; outline: none; color: var(--text); }
.otoolbar select {
  border: 1px solid var(--border); border-radius: 9px; background: #fff;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 8px 10px; cursor: pointer;
}
.otoolbar select:focus { outline: none; border-color: var(--cyan); }

.otable { width: 100%; border-collapse: collapse; font-size: 13px; }
.otable th {
  text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #9a9cb5; padding: 8px 10px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.otable td { padding: 11px 10px; border-bottom: 1px solid #f1f2f8; vertical-align: middle; }
.otable tr:last-child td { border-bottom: 0; }
.otable tr.orow:hover td { background: #fafbfe; }
.ochk { width: 32px; }
.ochk input { width: 15px; height: 15px; accent-color: var(--navy); }

.ono { display: block; font-weight: 700; color: var(--navy); font-size: 13px; }
.ono:hover { text-decoration: underline; }
.ocust { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.olang { display: block; font-weight: 600; color: var(--text); font-size: 13px; }
.osub { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.osub svg { width: 12px; height: 12px; }

/* bodkové stavové štítky */
.dp {
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 700;
}
.dp i { width: 7px; height: 7px; border-radius: 50%; }
.dp-teal   { background: #ccfbf1; color: #0f766e; } .dp-teal i   { background: #14b8a6; }
.dp-purple { background: #ede9fe; color: #6d28d9; } .dp-purple i { background: #8b5cf6; }
.dp-indigo { background: #dbeafe; color: #1d4ed8; } .dp-indigo i { background: #3b82f6; }
.dp-blue   { background: #e0f2fe; color: #0369a1; } .dp-blue i   { background: #0ea5e9; }
.dp-red    { background: #fee2e2; color: #b91c1c; } .dp-red i    { background: #ef4444; }
.dp-gray   { background: #f1f5f9; color: #475569; } .dp-gray i   { background: #94a3b8; }
.dp-green  { background: #dcfce7; color: #15803d; } .dp-green i  { background: #22c55e; }

.odate { font-size: 13px; color: var(--text); white-space: nowrap; }
.od-red { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ef4444; margin-left: 6px; }

.oass { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; }
.oass img, .oass i {
  width: 26px; height: 26px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff; font-size: 11px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}
.onum { text-align: right; font-weight: 700; color: var(--text); white-space: nowrap; }
.ochev { width: 32px; }
.ochev a { display: inline-flex; color: #b6b8cc; }
.ochev svg { width: 16px; height: 16px; }
.ochev a:hover { color: var(--navy); }
.omuted { color: #9a9cb5; font-size: 12.5px; }
.oempty { text-align: center; color: var(--muted); padding: 22px; font-size: 13px; }

.ofoot { display: flex; align-items: center; justify-content: space-between; padding: 12px 0 8px; }
.opager { display: flex; gap: 4px; }
.opg {
  min-width: 30px; height: 30px; border: 1px solid transparent; border-radius: 8px;
  background: none; font: inherit; font-size: 12.5px; font-weight: 600; color: var(--muted);
  cursor: pointer; padding: 0 8px;
}
.opg:hover { background: #f1f2f8; color: var(--text); }
.opg.cur { background: var(--navy); color: #fff; }
.opg.arr { font-size: 15px; line-height: 1; }

/* ---------- Spodní karty ---------- */
.bottom-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 18px; }
.wtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.wtable td { padding: 9px 8px; vertical-align: middle; }
.whead td { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #9a9cb5; padding-top: 0; border-bottom: 1px solid var(--border); }
.wtable tr:not(.whead) td { border-bottom: 1px solid #f3f4fa; }
.wtable tr:last-child td { border-bottom: 0; }
.wlangs b {
  font-size: 10px; font-weight: 700; color: #4f46e5; background: #e8e9fb;
  border-radius: 5px; padding: 2px 5px; margin-right: 3px;
}
.wcount { font-weight: 700; color: var(--text); }
.wflag { font-size: 15px; }
.wbar {
  display: inline-block; width: 90px; height: 7px; border-radius: 999px;
  background: #eceef6; overflow: hidden; vertical-align: middle; margin-right: 9px;
}
.wbar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #4f46e5, #22d3ee); }
.wpct { font-size: 12.5px; font-weight: 700; color: var(--text); }

/* ---------- Dnešní termíny ---------- */
.due-list { display: flex; flex-direction: column; gap: 4px; }
.due {
  display: flex; align-items: flex-start; gap: 13px;
  padding: 11px 10px; border-radius: 11px; transition: background .15s;
  position: relative;
}
.due:hover { background: #f7f8fc; }
.due::before {
  content: ""; position: absolute; left: 0; top: 10px; bottom: 10px;
  width: 3px; border-radius: 3px; background: #3b82f6;
}
.due.over::before { background: #ef4444; }
.due-time { flex: 0 0 42px; font-size: 12.5px; font-weight: 700; color: var(--muted); padding-top: 2px; }
.due-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.due-body b { font-size: 13px; color: var(--navy); }
.due-body span { font-size: 12.5px; color: var(--text); margin-top: 1px; }
.due-body small { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.due-docs { display: flex; align-items: center; gap: 4px; }
.due-docs svg { width: 11px; height: 11px; }
.due-chev { width: 15px; height: 15px; color: #c4c6d8; flex: 0 0 15px; margin-top: 4px; }

/* ---------- Poslední aktivita ---------- */
.act-list { display: flex; flex-direction: column; gap: 4px; }
.act { display: flex; align-items: flex-start; gap: 11px; padding: 9px 8px; border-radius: 11px; transition: background .15s; }
.act:hover { background: #f7f8fc; }
.act-av {
  width: 32px; height: 32px; flex: 0 0 32px; border-radius: 50%;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff; font-size: 12px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}
.act-av.sys { background: #9a9cb5; }
.act-body { flex: 1; min-width: 0; font-size: 12.5px; color: var(--text); line-height: 1.4; }
.act-body b { font-weight: 700; }
.act-body small { display: block; color: var(--muted); font-size: 11.5px; margin-top: 2px; font-weight: 400; }

/* ---------- Rychlé akce ---------- */
.quick { display: flex; flex-direction: column; gap: 8px; }
.qact {
  display: flex; align-items: center; gap: 13px;
  border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px;
  transition: all .15s;
}
.qact:hover { border-color: #c9cbdf; background: #fafbfe; transform: translateY(-1px); }
.qico {
  width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
}
.qico svg { width: 19px; height: 19px; }
.qi-blue { background: #e8e9fb; color: #4f46e5; }
.qi-teal { background: #ccfbf1; color: #0f766e; }
.qi-cyan { background: #cffafe; color: #0e7490; }
.qact span { display: flex; flex-direction: column; }
.qact b { font-size: 13.5px; color: var(--text); }
.qact small { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

/* ---------- Responzivita ---------- */
@media (max-width: 1400px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-side { display: grid; grid-template-columns: repeat(2, 1fr); align-items: start; }
}
@media (max-width: 1000px) {
  .sidebar { width: 74px; flex-basis: 74px; padding: 0 10px 10px; }
  .side-nav a span, .side-label, .svc span, .svc i, .su-text, .su-chev { display: none; }
  .brand { font-size: 0; justify-content: center; }
  .side-nav a { justify-content: center; }
  .svc { justify-content: center; }
  .bottom-grid, .dash-side { grid-template-columns: 1fr; }
  .hero { flex-wrap: wrap; }
}

/* ---------- Notifikační panel ---------- */
.notif-menu { position: relative; }
.notif-menu > summary { list-style: none; cursor: pointer; }
.notif-menu > summary::-webkit-details-marker { display: none; }
.notif-panel {
  position: absolute; right: 0; top: 46px; width: 340px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(16,24,64,.18); padding: 8px; z-index: 60;
  max-height: 480px; overflow-y: auto;
}
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px;
}
.notif-head b { font-size: 14px; color: var(--text); }
.notif-head a { font-size: 12px; font-weight: 700; color: #4f46e5; }
.notif {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 10px; border-radius: 10px; transition: background .15s;
}
.notif:hover { background: #f7f8fc; }
.n-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; margin-top: 5px; }
.nk-overdue { background: #ef4444; }
.nk-new { background: #3b82f6; }
.nk-payment { background: #f59e0b; }
.nk-review { background: #8b5cf6; }
.nk-send { background: #22d3ee; }
.n-body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.n-body b { font-size: 13px; color: var(--text); }
.n-body span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.notif small { font-size: 11px; color: #9a9cb5; white-space: nowrap; padding-top: 2px; }
.notif-empty { text-align: center; color: var(--muted); font-size: 13px; padding: 18px 10px; margin: 0; }

/* ---------- Sazby (dashboard 2.0) ---------- */
.count-chip {
  font-style: normal; font-size: 11px; font-weight: 700; vertical-align: middle;
  background: #e8e9fb; color: var(--navy); border-radius: 999px; padding: 3px 9px;
}
.rate-add { margin-bottom: 18px; border-color: #c9d4f5; }
.rate-add-form { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-end; }
.ra-field { display: flex; flex-direction: column; gap: 5px; min-width: 160px; }
.ra-field label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.ra-field input {
  border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 12px;
  font: inherit; font-size: 13.5px; color: var(--text); background: #fff;
}
.ra-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.12); }
.ra-chk { display: flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text); padding-bottom: 10px; }
.ra-chk input { width: 16px; height: 16px; accent-color: var(--navy); }
.ra-actions { display: flex; gap: 10px; margin-left: auto; }

.rate-search { flex: 0 0 280px; }
.th-sub { display: block; font-size: 10px; font-weight: 600; color: #b6b8cc; text-transform: none; letter-spacing: 0; margin-top: 2px; }

.rp-pair { display: flex; align-items: center; gap: 7px; }
.rp-arrow { color: #b6b8cc; font-weight: 700; }
.rates-table td { padding: 9px 10px; }
.ghost {
  border: 1.5px solid transparent; border-radius: 8px; background: transparent;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 6px 8px; width: 130px; transition: all .15s;
}
.ghost:hover { border-color: var(--border); background: #fff; }
.ghost:focus { outline: none; border-color: var(--cyan); background: #fff; box-shadow: 0 0 0 3px rgba(0,180,213,.12); }
.ghost.num { width: 84px; text-align: right; }
.rp-price { display: inline-flex; align-items: center; gap: 5px; }
.rp-price i { font-style: normal; font-size: 11.5px; color: var(--muted); }

.switch { position: relative; display: inline-block; width: 38px; height: 22px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i {
  position: absolute; inset: 0; border-radius: 999px; background: #d8dae6;
  transition: background .15s; pointer-events: none;
}
.switch i::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25);
  transition: transform .15s;
}
.switch input:checked + i { background: var(--navy); }
.switch input:checked + i::after { transform: translateX(16px); }

.rsave { padding: 7px 14px !important; font-size: 12px !important; opacity: .35; transition: opacity .15s; }
.rsave:not(:disabled) { opacity: 1; }
.rrow.dirty td { background: #fffdf2; }
.rdel {
  border: 0; background: none; color: #b6b8cc; cursor: pointer; padding: 6px;
  border-radius: 8px; vertical-align: middle; transition: all .15s; margin-left: 6px;
}
.rdel:hover { color: var(--red); background: #fdecec; }
.rdel svg { width: 16px; height: 16px; display: block; }

/* ---------- Profil (dashboard 2.0) ---------- */
.prof-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; align-items: start; }
@media (max-width: 900px) { .prof-grid { grid-template-columns: 1fr; } }
.prof-id { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26px 22px; }
.prof-avatar {
  width: 104px; height: 104px; border-radius: 50%; object-fit: cover;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: 38px; font-weight: 700; font-style: normal;
  border: 4px solid #eef0fa; box-shadow: 0 8px 22px rgba(16,24,64,.16);
}
.prof-name { margin: 16px 0 8px; font-size: 19px; color: var(--text); }
.prof-meta { width: 100%; margin-top: 18px; text-align: left; }
.prof-meta .info-label { min-width: 110px; }

.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 18px; margin-bottom: 18px; }
.f-field { display: flex; flex-direction: column; gap: 6px; }
.f-field > label { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.f-field input {
  border: 1.5px solid var(--border); border-radius: 9px; padding: 10px 13px;
  font: inherit; font-size: 13.5px; color: var(--text); background: #fff;
}
.f-field input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.12); }
.f-file {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px dashed #bfc3da; border-radius: 9px; padding: 11px 14px;
  font-size: 13px; font-weight: 600; color: var(--muted); transition: all .15s;
}
.f-file:hover { border-color: var(--cyan); color: var(--navy); background: var(--cyan-bg); }
.f-file svg { width: 17px; height: 17px; }
.f-hint { font-size: 11.5px; color: #9a9cb5; }

.prof-logout { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.prof-logout-btn { display: inline-flex; align-items: center; }
.prof-avatar[hidden] { display: none; }

/* ---------- Modal + výběr jazyků ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(10,8,50,.45); backdrop-filter: blur(3px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 6vh 20px 20px; overflow-y: auto;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: #fff; border-radius: 18px; width: 780px; max-width: 100%;
  box-shadow: 0 30px 80px rgba(5,1,80,.35); padding: 22px 26px;
  animation: modalIn .18s ease-out;
}
@keyframes modalIn { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 700; color: var(--text); }
.modal-x {
  width: 32px; height: 32px; border: 0; border-radius: 9px; background: #f1f2f8;
  color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.modal-x:hover { background: #e6e8f2; color: var(--text); }
.modal-x svg { width: 15px; height: 15px; }

.lang-pickers { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 720px) { .lang-pickers { grid-template-columns: 1fr; } }
.lp-label { display: flex; align-items: baseline; justify-content: space-between; font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.lp-sel { font-size: 12.5px; font-weight: 700; color: var(--navy); text-transform: none; letter-spacing: 0; }
.lp-search input {
  width: 100%; border: 1.5px solid var(--border); border-radius: 9px;
  padding: 8px 12px; font: inherit; font-size: 13px; margin-bottom: 8px;
}
.lp-search input:focus { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.12); }
.lp-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  max-height: 260px; overflow-y: auto; padding: 2px;
  border: 1px solid var(--border); border-radius: 12px; background: #fafbfe;
}
.lp-opt {
  display: flex; align-items: center; gap: 8px; text-align: left;
  border: 1.5px solid transparent; border-radius: 9px; background: none;
  font: inherit; font-size: 12.5px; font-weight: 600; color: var(--text);
  padding: 7px 10px; cursor: pointer; transition: all .12s;
}
.lp-opt:hover { background: #fff; border-color: var(--cyan-border); }
.lp-opt.sel { background: #eef0fd; border-color: var(--navy); color: var(--navy); }
.lp-flag { font-size: 15px; flex: 0 0 20px; text-align: center; }

.modal-prices { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 18px; }
.modal-prices .ra-field { flex: 1; min-width: 180px; }
.modal-foot {
  display: flex; align-items: center; justify-content: space-between;
  border-top: 1px solid var(--border); margin-top: 20px; padding-top: 16px;
}
.btn-primary:disabled { opacity: .4; cursor: default; transform: none !important; box-shadow: none; }
.wflag .fi, .lp-flag .fi { font-size: 15px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }
.lp-flag .fi { display: block; }
.lang-globe { font-size: 14px; }

/* ---------- Uživatelé (dashboard 2.0) ---------- */
.modal-narrow { width: 640px; }
.u-pair { display: flex; align-items: center; gap: 10px; }
.u-names { display: flex; flex-direction: column; gap: 2px; }
.ghost.u-name { width: 150px; font-weight: 700; padding: 4px 8px; }
.ghost.u-user { width: 150px; font-weight: 500; font-size: 11.5px; color: var(--muted); padding: 4px 8px; }
.users-table .ghost { width: 180px; }
.role-select { -webkit-appearance: none; -moz-appearance: none; appearance: none; padding-right: 26px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a7d94' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center; background-size: 13px; cursor: pointer; }
.f-field select.role-select { border: 1.5px solid var(--border); border-radius: 9px; padding: 10px 30px 10px 13px; font-size: 13.5px; background-color: #fff; }
.typy-table .role-select { width: 200px; }

/* ---------- Objednávky (dashboard 2.0) ---------- */
.ofilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px 18px; }
.ofilter-q { flex: 1 1 260px; }
.ofilter .role-select { width: auto; min-width: 130px; }
.ofilter-date { display: inline-flex; align-items: center; gap: 6px; }
.ofilter-date i { font-style: normal; color: var(--muted); }
.ofilter-date input {
  border: 1.5px solid var(--border); border-radius: 9px; padding: 8px 10px;
  font: inherit; font-size: 12.5px; color: var(--text); background: #fff;
}
.ofilter-date input:focus { outline: none; border-color: var(--cyan); }

.bulk-bar {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 10px 14px; margin-bottom: 12px;
  background: #f7f8fd; border: 1px solid var(--border); border-radius: 12px;
}
.bulk-count { font-size: 12.5px; color: var(--muted); }
.bulk-count b { color: var(--navy); }
.bulk-bar .role-select { width: auto; min-width: 180px; background-color: #fff; }

.orders-table td { padding: 11px 10px; }
.ochk { width: 34px; }
.ochk input { width: 16px; height: 16px; accent-color: var(--navy); cursor: pointer; }
.ord-no { font-weight: 700; font-size: 13px; color: var(--navy); }
.ord-name { font-weight: 700; font-size: 13px; color: var(--text); }
.ord-lang { font-size: 12.5px; font-weight: 600; color: var(--text); }
.dblock { display: block; margin-top: 2px; font-size: 11.5px; }
.odue-tag {
  display: block; width: fit-content; margin-top: 3px;
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  color: var(--red); background: #fdecec; border-radius: 999px; padding: 2px 8px;
}
.orow.odead td { background: #fffbfb; }
.oarrow {
  display: inline-flex; width: 30px; height: 30px; border-radius: 9px;
  align-items: center; justify-content: center; color: #b6b8cc;
  border: 1px solid var(--border); transition: all .15s;
}
.oarrow:hover { color: var(--navy); border-color: var(--cyan-border); background: var(--cyan-bg); }
.oarrow svg { width: 15px; height: 15px; }
.otable-wrap { overflow-x: auto; }

/* ---------- Objednávky – stavové záložky ---------- */
.oflt-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.oflt-tabs .otab { background: #fff; }
.ofilter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }

/* ---------- Vlajkový výběr jazyka (filtr objednávek) ---------- */
.lpick { position: relative; }
.lpick-btn {
  display: flex; align-items: center; gap: 8px;
  border: 1.5px solid var(--border); border-radius: 9px; background: #fff;
  padding: 8px 12px; font: inherit; font-size: 12.5px; font-weight: 600;
  color: var(--text); cursor: pointer; min-width: 150px; justify-content: space-between;
}
.lpick-btn:hover { border-color: var(--cyan-border); }
.lpick-btn svg { width: 13px; height: 13px; color: var(--muted); flex: 0 0 13px; }
.lpick-cur { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.lpick-panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 70;
  width: 260px; background: #fff; border: 1px solid var(--border);
  border-radius: 14px; box-shadow: 0 16px 44px rgba(16,24,64,.18); padding: 10px;
}
.lpick-panel[hidden] { display: none; }
.lpick-panel .lp-search input { margin-bottom: 6px; }
.lp-list { display: flex; flex-direction: column; gap: 2px; max-height: 260px; overflow-y: auto; }
.lp-list .lp-opt { width: 100%; }
.lp-list .lp-opt i { font-style: normal; color: var(--muted); }

/* ---------- Detail objednávky 2.0 ---------- */
.od-back {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 12px;
}
.od-back:hover { color: var(--navy); }
.od-back svg { width: 15px; height: 15px; }

.od-hero {
  background: #fff; border: 1px solid var(--border); border-radius: 18px;
  box-shadow: var(--shadow); padding: 20px 24px; margin-bottom: 18px;
}
.od-hero-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.od-hero-id h1 { margin: 0 0 6px; font-size: 24px; font-weight: 800; color: var(--text); }
.od-hero-status .dp { font-size: 13px; padding: 7px 14px; }
.od-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px;
  margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--border);
}
.od-stat {
  display: flex; align-items: flex-start; gap: 11px;
  background: #f7f8fd; border: 1px solid #eeeffa; border-radius: 12px; padding: 12px 14px;
}
.od-stat-ic {
  width: 36px; height: 36px; border-radius: 10px; flex: 0 0 36px;
  display: flex; align-items: center; justify-content: center;
  background: #e8e9fb; color: var(--navy);
}
.od-stat-ic svg { width: 18px; height: 18px; }
.od-stat-body { display: flex; flex-direction: column; min-width: 0; }
.od-stat-body label { font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.od-stat-body b { font-size: 14px; font-weight: 700; color: var(--text); margin-top: 3px; }
.od-stat-body small { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.od-stat.stat-red { background: #fdf2f2; border-color: #f7d4d4; }
.od-stat.stat-red .od-stat-ic { background: #f7dada; color: var(--red); }
.od-stat.stat-red .od-stat-body b, .od-stat.stat-red .od-stat-body small { color: var(--red); }
.od-stat.stat-green .od-stat-ic { background: #d7f5e7; color: #0e9f6e; }
.od-langs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.od-langs i { font-style: normal; color: #b6b8cc; }
.od-langs .fi { font-size: 14px; border-radius: 3px; box-shadow: 0 0 0 1px rgba(0,0,0,.07); }

.order-grid { grid-template-columns: 1.6fr 1fr; }
@media (max-width: 1100px) { .order-grid { grid-template-columns: 1fr; } }
.order-card h2 {
  margin: 0 0 14px; font-size: 12px; color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}

.od-person { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.od-person-av {
  width: 46px; height: 46px; border-radius: 50%; flex: 0 0 46px;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 17px;
}
.od-person-name { font-size: 16px; font-weight: 700; color: var(--text); }
.od-rows { display: flex; flex-direction: column; gap: 8px; }
.od-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text); }
.od-row svg { width: 16px; height: 16px; color: #9a9cb5; flex: 0 0 16px; }
.od-row a { color: var(--navy); font-weight: 600; }
.od-sub { margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--border); }
.od-sub h4 { margin: 0 0 8px; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }

.ofile {
  display: flex; align-items: center; gap: 12px;
  border: 1.5px solid var(--border); border-radius: 12px; padding: 10px 14px;
  margin-bottom: 8px; transition: all .15s;
}
.ofile:hover { border-color: var(--cyan-border); background: var(--cyan-bg); }
.ofile-ic {
  width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px;
  display: flex; align-items: center; justify-content: center;
  background: #e8e9fb; color: var(--navy);
}
.ofile-ic img { background: #fde7d0; color: var(--orange); }
.ofile-ic.img { background: #fde7d0; color: var(--orange); }
.ofile-ic.done { background: #d7f5e7; color: #0e9f6e; }
.ofile-ic svg { width: 18px; height: 18px; }
.ofile-name { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 600; color: var(--text); display: flex; flex-direction: column; }
.ofile-name small { font-size: 11.5px; font-weight: 500; color: var(--muted); }
.ofile-dl { width: 17px; height: 17px; color: #b6b8cc; flex: 0 0 17px; }
.ofile:hover .ofile-dl { color: var(--navy); }

.of-upload { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.of-upload .f-file { flex: 1; min-width: 200px; }
.of-form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.of-form .role-select { width: 100%; }
.btn-block { width: 100%; text-align: center; justify-content: center; display: inline-flex; }

.od-price .info-row { padding: 9px 0; }
.od-total {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-top: 12px; padding: 14px 16px; border-radius: 12px;
  background: linear-gradient(135deg, #eef0fd, #e0f7fb);
}
.od-total span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.od-total b { font-size: 22px; font-weight: 800; color: var(--navy); }

.gopay-state { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #eef0f8; color: var(--muted); }
.gopay-state.st-PAID { background: #d7f5e7; color: #0e9f6e; }
.gopay-state.st-CREATED, .gopay-state.st-PAYMENT_METHOD_CHOSEN { background: #fdeece; color: #b45309; }
.gopay-state.st-REFUNDED { background: #fdecec; color: var(--red); }

/* timeline – protokol akcí */
.tl { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 12px; position: relative; padding-bottom: 14px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: 4px; top: 14px; bottom: 0;
  width: 1.5px; background: var(--border);
}
.tl-item:last-child::before { display: none; }
.tl-dot {
  width: 10px; height: 10px; border-radius: 50%; flex: 0 0 10px; margin-top: 4px;
  background: #fff; border: 2.5px solid var(--cyan);
}
.tl-body { display: flex; flex-direction: column; min-width: 0; }
.tl-body b { font-size: 13px; color: var(--text); }
.tl-meta { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.tl-detail { margin: 3px 0 0; font-size: 12px; color: #7a7d94; }

/* ---------- Custom dropdown (detail zakázky) ---------- */
.csel { position: relative; }
.csel-hidden {
  position: absolute !important; opacity: 0; pointer-events: none;
  width: 1px; height: 1px; margin: 0;
}
.csel-btn {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  width: 100%; border: 1.5px solid var(--border); border-radius: 10px;
  background: #fff; padding: 10px 13px; font: inherit; font-size: 13.5px;
  font-weight: 600; color: var(--text); cursor: pointer; transition: border-color .15s;
}
.csel-btn:hover { border-color: var(--cyan-border); }
.csel-btn:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(0,180,213,.12); }
.csel-btn > svg { width: 14px; height: 14px; color: var(--muted); flex: 0 0 14px; }
.csel-cur { display: flex; align-items: center; gap: 9px; min-width: 0; }
.csel-cur span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.csel-panel {
  position: absolute; top: calc(100% + 5px); left: 0; right: 0; z-index: 80;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 16px 44px rgba(16,24,64,.18); padding: 5px;
  max-height: 240px; overflow-y: auto;
}
.csel-opt {
  display: flex; align-items: center; gap: 9px; width: 100%;
  border: 0; border-radius: 8px; background: none;
  font: inherit; font-size: 13px; font-weight: 600; color: var(--text);
  padding: 9px 10px; cursor: pointer; text-align: left;
}
.csel-opt:hover { background: #f7f8fc; }
.csel-opt.sel { background: #eef0fd; color: var(--navy); }
.csel-dot { width: 9px; height: 9px; border-radius: 50%; flex: 0 0 9px; }
.csel-av {
  width: 24px; height: 24px; border-radius: 50%; flex: 0 0 24px; object-fit: cover;
  background: linear-gradient(135deg, #6366f1, #22d3ee);
  color: #fff; font-size: 9.5px; font-weight: 700; font-style: normal;
  display: inline-flex; align-items: center; justify-content: center;
}
.csel-av.none { background: #eef0f8; color: #9a9cb5; }

/* ---------- Příplatková služba (Sazby) ---------- */

.addon-card { margin-top: 18px; }
.addon-card .admin-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.addon-form { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 0 4px; }
.addon-row-field label { font-weight: 700; color: var(--navy, #050190); font-size: 15px; display: block; }
.addon-row-field small { display: block; margin-top: 3px; }
.addon-row-val { display: flex; align-items: center; gap: 12px; }
.addon-row-val .onum-in { width: 110px; text-align: right; padding: 9px 12px; border: 1.5px solid #dfe7ef; border-radius: 10px; font-size: 15px; }
.addon-row-val .btn-primary { padding: 10px 20px; }

/* varování u nedokončené integrace (papírové/Česká pošta) */
.warn-badge { display: inline-block; margin-top: 6px; padding: 4px 10px; background: #fff3f0; color: #c0392b; border: 1px solid #f3c2b8; border-radius: 8px; font-size: 12px; font-weight: 600; }

/* ---------- Kalendář pracovní doby ---------- */
.cal-grid-months { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.cal-month { background: #fff; border: 1px solid #e6eaf4; border-radius: 16px; padding: 18px; }
.cal-month h3 { margin: 0 0 12px; font-size: 16px; color: var(--navy, #050190); text-transform: capitalize; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 6px; }
.cal-head span { text-align: center; font-size: 11px; font-weight: 700; color: #9a9ab5; text-transform: uppercase; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-cell { position: relative; aspect-ratio: 1; border: 0; border-radius: 8px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; cursor: default; background: #f7f8fc; color: #050190; padding: 2px; overflow: hidden; }
.cal-cell i { font-style: normal; }
.cal-cell em { font-size: 9px; font-weight: 400; line-height: 1.1; margin-top: 1px; text-align: center; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cal-cell.blank { background: transparent; }
.cal-cell.work { background: #E9FAF0; color: #0a7a3d; cursor: pointer; }
.cal-cell.work:hover { background: #d3f3e0; }
.cal-cell.weekend { background: #f1f1f6; color: #a3a3bd; }
.cal-cell.holiday { background: #FFF3E6; color: #b35200; }
.cal-cell.closed { background: #FDECF0; color: #b3251e; cursor: pointer; }
.cal-cell.closed:hover { background: #fadfe3; }
.cal-cell.today { outline: 2px solid #00B4D5; outline-offset: -2px; }
.cal-legend { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13.5px; color: #55557a; align-items: center; }
.cal-li { display: inline-flex; align-items: center; gap: 8px; }
.cal-sw { width: 20px; height: 20px; border-radius: 6px; display: inline-block; flex-shrink: 0; }
.cal-sw.work { background: #E9FAF0; }
.cal-sw.weekend { background: #f1f1f6; }
.cal-sw.holiday { background: #FFF3E6; }
.cal-sw.closed { background: #FDECF0; }
.cal-month h3 { margin: 0 0 12px; font-size: 17px; color: var(--navy, #050190); text-transform: capitalize; font-weight: 700; }
.form-inline .form-field label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; }
.form-inline input[type="time"] { padding: 8px 12px; border: 1.5px solid #dce4f0; border-radius: 10px; font: inherit; }
.cal-nav { display: flex; justify-content: space-between; margin-bottom: 14px; }
.cal-nav .btn-ghost { display: inline-block; padding: 7px 16px; border: 1.5px solid #dce4f0; border-radius: 10px; color: var(--navy, #050190); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.cal-nav .btn-ghost:hover { border-color: #00B4D5; }
