/* ============================= */
/* ===== GLOBAL BASE STYLE ===== */
/* ============================= */

:root {
  --color-bg: #e9eefc;
  --color-panel: #f7f8ff;
  --color-surface: #ffffff;
  --color-surface-soft: #f5f7ff;
  --color-border: #e0e7ff;
  --color-border-strong: #cbd5e1;
  --color-text: #111827;
  --color-muted: #6b7280;

  --color-primary: #16a34a;
  --color-primary-dark: #15803d;
  --color-primary-soft: #e2f3e8;

  --color-accent-blue: #4f46e5;
  --color-danger: #ef4444;

  --radius-lg: 18px;
  --radius-md: 10px;
  --shadow-card: 0 18px 45px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: var(--color-bg);
  color: var(--color-text);
}

a {
  color: var(--color-accent-blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* zvýraznění chybného pole */
.input-error {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.25) !important;
}

/* ============================= */
/* ======== SIDEBAR LAYOUT ===== */
/* ============================= */

.layout {
  display: flex;
  min-height: 100vh;
  background: var(--color-bg);
}

/* Levý panel (sidebar) – pevný na všech zařízeních */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;

  width: 240px;
  background: #1f2d22;
  color: #e5efe8;

  display: flex;
  flex-direction: column;

  padding: 20px 18px;
  border-right: 1px solid rgba(15, 23, 42, 0.25);

  overflow-y: auto; /* když je sidebar delší než okno */
}

.sidebar-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.sidebar-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
}

/* navigace v sidebaru */
.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-link {
  padding: 9px 12px;
  border-radius: 8px;
  color: #d1e7d6;
  font-size: 14px;
  text-decoration: none;
  transition: 0.15s;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  background: #22c55e;
  color: #052e16;
}

/* spodek sidebaru – drží se dole díky flex + margin-top:auto */
.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 16px;
}

.sidebar-user {
  margin-bottom: 10px;
  font-size: 13px;
  color: #c7dbc9;
}

.nav-link-logout {
  color: #fecaca;
}

.nav-link-logout:hover {
  background: rgba(248, 113, 113, 0.15);
}

/* pravá část – hlavní obsah */
.content {
  flex: 1;
  padding: 28px 32px 40px;
  background: var(--color-panel);
  border-radius: 24px 0 0 24px;

  /* necháme místo pro sidebar (240px) */
  margin: 16px 16px 16px 256px; /* 240 + maličký odstup */

  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
  overflow: visible; /* kvůli sticky */
  min-height: calc(100vh - 32px);
}

/* vnitřní šířka obsahu */
.content .main {
  max-width: 1400px;
  margin: 0 auto;
}

/* ============================= */
/* ========= HEADINGS ========= */
/* ============================= */

h1 {
  font-size: 24px;
  margin: 0 0 10px;
  font-weight: 600;
  color: var(--color-text);
}

h2 {
  font-size: 16px;
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--color-text);
}

/* ============================= */
/* ======= CARDS / BLOKY ======= */
/* ============================= */

.main {
  max-width: 1400px;
  margin: 0 auto 40px;
  padding-bottom: 40px;
}

.card,
.row-block {
  background: var(--color-surface);
  padding: 24px 24px 20px;
  margin-top: 20px;
  border-radius: var(--radius-lg);
  border: none;
  box-shadow: var(--shadow-card);
}

.row {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.half { width: 50%; }
.two-thirds { width: 66%; }
.third { width: 34%; }
.full { width: 100%; }

.row.row-4 .input {
  width: auto;
  flex: 1 1 0;
}

/* ============================= */
/* ========= FORM INPUTS ======= */
/* ============================= */

.input,
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  font-size: 14px;
  outline: none;
  background: #ffffff;
  color: var(--color-text);
  transition: border-color 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.20);
  background: #ffffff;
}

/* Moderní select se šedou SVG šipkou */
select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;

  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 8px 34px 8px 12px;
  font-size: 13px;
  color: var(--color-text);

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round' d='M5 8l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 14px 14px;
}

select:hover { border-color: #cbd5e1; }
select:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.20);
  outline: none;
}

/* ============================= */
/* ======== DPH PŘEPÍNAČ ======= */
/* ============================= */

.vat-toggle {
  display: inline-flex;
  width: 100%;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

.vat-btn {
  flex: 1;
  border: none;
  padding: 9px 10px;
  cursor: pointer;
  background: transparent;
  font-size: 13px;
  color: var(--color-muted);
  transition: all 0.15s ease;
}

.vat-btn:hover { background: #e5e7eb; }
.vat-btn.active {
  background: var(--color-primary);
  color: #ffffff;
}

/* ============================= */
/* ========== BUTTONS ========= */
/* ============================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.btn-primary {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(22, 163, 74, 0.35);
}
.btn-primary:hover { background: var(--color-primary-dark); }

.btn-secondary {
  background: #eef2ff;
  color: #1e293b;
  border: 1px solid #d4ddff;
}
.btn-secondary:hover { background: #e0e7ff; }

.btn-danger {
  background: var(--color-danger);
  color: #fef2f2;
}
.btn-danger:hover { background: #dc2626; }

.btn-small { padding: 4px 10px; font-size: 12px; }

.form-actions {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.form-group {
  margin-bottom: 16px;
}

/* ============================= */
/* ========= ALERTY ============ */
/* ============================= */

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  font-size: 13px;
}

.alert-success {
  background: #ecfdf3;
  border: 1px solid #bbf7d0;
  color: #166534;
}

.alert-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

/* ============================= */
/* ========== TABULKY ========= */
/* ============================= */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
  background: #ffffff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.table th,
.table td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
}

.table thead { background: var(--color-surface-soft); }

.table th {
  font-weight: 600;
  color: #6b7280;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover td { background: #f3f6ff; }

.overview-table th,
.overview-table td {
  text-align: left !important;
}

.table-compact {
  margin-top: 6px;
  box-shadow: none;
  border-radius: var(--radius-md);
}

.table-compact th,
.table-compact td {
  padding-top: 6px;
  padding-bottom: 6px;
  vertical-align: middle;
}

.table-compact th {
  width: 220px;
  font-weight: 600;
  color: var(--color-text);
}

.table-compact td { white-space: nowrap; }

/* ============================= */
/* ======== FILTER FORM ======== */
/* ============================= */

.filter-form {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;
  box-shadow: none;
  font-size: 13px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px 20px;
  align-items: flex-end;
}

.filter-form label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #94a3b8;
  margin: 0;
}

.filter-form input[type="text"],
.filter-form input[type="date"],
.filter-form select {
  background-color: #ffffff;
  border-radius: 8px;
  border: 1px solid #dde3fb;
  font-size: 13px;
  padding: 8px 11px;
}

.filter-form input[type="text"]:focus,
.filter-form input[type="date"]:focus,
.filter-form select:focus {
  border-color: var(--color-accent-blue);
  box-shadow: 0 0 0 1px rgba(79, 70, 229, 0.20);
}

.filter-form .btn {
  border-radius: 10px;
  padding: 8px 18px;
  justify-content: center;
}

.filter-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

/* sticky filtr záloh */
.adv-filter-sticky {
  position: sticky;
  top: 10px;
  z-index: 50;
  background: white;
  padding-bottom: 10px;
}

/* ============================= */
/* ========= LOGIN PAGE ======== */
/* ============================= */

.login-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: url("login_bg.png") center/cover no-repeat fixed;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 90, 0, 0.55);
  backdrop-filter: blur(6px);
  z-index: 1;
}

.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-card {
  width: 360px;
  background: rgba(255, 255, 255, 0.20);
  border-radius: 22px;
  padding: 34px 30px 38px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.login-logo {
  width: 120px;
  height: auto;
  object-fit: contain;
  margin-bottom: 16px;
}

.login-card h2 {
  color: #fff;
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.login-sub {
  color: #e8e8e8;
  font-size: 13px;
  margin-top: 6px;
  margin-bottom: 24px;
}

.login-form input {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: none;
  background: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  font-size: 14px;
  color: white;
}

.login-form input::placeholder { color: #f1f1f1; }

.btn-login {
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  background: #97ff97;
  color: #003d00;
  font-weight: 600;
  font-size: 15px;
  transition: 0.2s ease-in-out;
}

.btn-login:hover { background: #aaffaa; }

.login-card .alert-error {
  background: rgba(255, 0, 0, 0.25);
  border: 1px solid rgba(255, 0, 0, 0.35);
  padding: 10px;
  border-radius: 10px;
  margin-bottom: 14px;
  color: #ffe4e4;
  font-size: 13px;
}

/* ============================= */
/* ========= RESPONSIVE ======== */
/* ============================= */

/* Menší úpravy pro menší obrazovky, layout se NEMĚNÍ,
   sidebar zůstává vlevo na všech šířkách. */

@media (max-width: 900px) {
  .content {
    margin: 8px 8px 8px 248px; /* trochu menší okraje, ale stále místo pro sidebar */
    padding: 20px 16px 28px;
    border-radius: 18px 0 0 18px;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .row { flex-direction: column; }
  .half, .two-thirds, .third { width: 100%; }

  .table { font-size: 12px; }

  .content {
    margin: 4px 4px 8px 244px;
    padding: 18px 12px 24px;
  }

  /* Stejné chování v kartách (DPP, stavební deník): inputy na celou šířku */
  .card .input,
  .card form .input,
  .card form input[type="search"],
  .card form input[type="text"] { width: 100%; max-width: 100%; box-sizing: border-box; }
  .card form { max-width: 100%; }

  .login-card {
    width: 100%;
    max-width: 360px;
    margin: 0 16px;
  }
}

@media (max-width: 600px) {
  .content {
    margin: 0 0 8px 240px;
    padding: 16px 10px 20px;
    border-radius: 0;
    box-shadow: none;
  }

  .login-body {
    display: flex;
    justify-content: center;
    align-items: flex-start;
  }

  .login-wrapper { padding-top: 80px; }

  .login-card {
    width: 90%;
    max-width: 340px;
    padding: 20px 18px 24px;
    border-radius: 18px;
  }

  .login-logo { width: 60px; margin-bottom: 12px; }

  .login-card h2 { font-size: 18px; }

  .login-sub {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .login-form input {
    padding: 10px 12px;
    font-size: 14px;
    margin-bottom: 10px;
    border-radius: 10px;
  }

  .btn-login {
    padding: 11px 12px;
    font-size: 14px;
    border-radius: 10px;
  }
}

/* ============================= */
/* Sidebar collapsible "Přehled" */
/* ============================= */

.nav-group {
  display: flex;
  flex-direction: column;
  margin-top: 4px;
}

/* Parent je button – stylově jako nav-link */
.nav-parent {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;

  background: transparent;
  border: none;
  cursor: pointer;

  padding: 9px 12px;
  border-radius: 8px;
  color: #d1e7d6;
  font-size: 14px;
  text-align: left;
  transition: 0.15s;
}

.nav-parent:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-parent.active {
  background: #22c55e;
  color: #052e16;
}

/* caret */
.nav-caret {
  font-size: 12px;
  opacity: .8;
  transition: transform .15s ease;
}

.nav-caret.rotated {
  transform: rotate(180deg);
}

/* children defaultně schované */
.nav-children {
  display: none;
  flex-direction: column;
  gap: 2px;

  margin-top: 4px;
  margin-left: 10px;
  padding-left: 8px;
  border-left: 1px dashed rgba(255,255,255,0.12);
}

/* otevřený stav */
.nav-group.open .nav-children {
  display: flex;
}

/* child linky */
.nav-child {
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 7px;
  color: #cfe7d4;
  opacity: .95;
}

.nav-child:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* active child jemnější než parent */
.nav-child.active {
  background: rgba(34, 197, 94, 0.18);
  color: #eaffef;
}

/* ============================= */
/* ===== COMMERCIAL SECTION ===== */
/* ============================= */

.commercial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

.commercial-card {
  display: block;
  background: var(--color-surface);
  padding: 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border: 1px solid transparent;
}

.commercial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 55px rgba(15, 23, 42, 0.12);
  border-color: var(--color-border);
}

.commercial-card:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.commercial-card-header {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 15px;
}

.commercial-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.commercial-card-icon svg {
  width: 24px;
  height: 24px;
}

.commercial-card-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--color-text);
}

.commercial-card-subtitle {
  margin: 4px 0 0 0;
  font-size: 13px;
  color: var(--color-muted);
}

.commercial-card-description {
  color: var(--color-muted);
  font-size: 14px;
  margin: 0;
  line-height: 1.5;
}

.commercial-intro {
  color: var(--color-muted);
  margin-bottom: 30px;
  font-size: 14px;
  line-height: 1.6;
}

/* Responzivní úpravy pro commercial grid */
@media (max-width: 768px) {
  .commercial-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .commercial-card {
    padding: 20px;
  }
}

/* ============================================================
   CRM MODULE – přidáno do style.css (crm.css se nenačítá).
   Scopováno přes :has(.crm-nav) – nevyžaduje PHP změny,
   funguje jen na stránkách kde je nav.crm-nav v DOM.
   ============================================================ */

/* 1. Vnější wrapper ze sidebar.php – posun od sidebaru, bez boxu */
main.content:has(.crm-nav) {
  margin: 0 0 0 240px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #f8fafc !important;
  min-height: 100vh !important;
  padding: 0 !important;
}
/* 2. .main div ze sidebar.php – reset omezení šířky */
main.content:has(.crm-nav) > .main {
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}
/* 3. Vnitřní .content z CRM souborů */
main.content:has(.crm-nav) div.content {
  margin: 0 !important;
  padding: 24px 32px 40px !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
}
/* 4. Vnitřní .main z CRM souborů – žádné omezení šířky */
main.content:has(.crm-nav) div.content .main {
  max-width: none !important;
  margin: 0 !important;
}

/* 2. Navigace – underline tabs místo pill buttonů */
body.crm-page nav.crm-nav {
  display: flex;
  gap: 0;
  margin-bottom: 24px;
  border-bottom: 2px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: 0;
  box-shadow: none;
}
body.crm-page nav.crm-nav a,
body.crm-page .crm-nav-item {
  display: inline-flex;
  padding: 10px 16px;
  font-size: .82rem;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  margin-bottom: -2px;
  white-space: nowrap;
  transition: color .15s, border-color .15s;
}
body.crm-page nav.crm-nav a:hover,
body.crm-page .crm-nav-item:hover {
  color: #16a34a;
  text-decoration: none;
}
body.crm-page nav.crm-nav a.active,
body.crm-page .crm-nav-item.active {
  color: #16a34a;
  border-bottom-color: #16a34a;
  font-weight: 700;
}

/* 3. Page header */
body.crm-page .crm-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
body.crm-page .crm-page-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 0;
}
body.crm-page .crm-breadcrumb {
  font-size: .78rem;
  color: #94a3b8;
  margin: 3px 0 0;
}
body.crm-page .crm-breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

/* 4. Tabulka */
body.crm-page .crm-table-wrap {
  overflow-x: auto;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}
body.crm-page .crm-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  background: #fff;
}
body.crm-page .crm-table th {
  padding: 10px 14px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #64748b;
  text-align: left;
  white-space: nowrap;
}
body.crm-page .crm-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
  color: #0f172a;
}
body.crm-page .crm-table tbody tr:last-child td { border-bottom: none; }
body.crm-page .crm-table tbody tr:hover td { background: #f8fafc; }

/* 5. Badges */
body.crm-page .crm-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 9999px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
body.crm-page .crm-badge-lead       { background: #fef3c7; color: #92400e; }
body.crm-page .crm-badge-prospect   { background: #dbeafe; color: #1e40af; }
body.crm-page .crm-badge-active     { background: #dcfce7; color: #166534; }
body.crm-page .crm-badge-inactive   { background: #f3f4f6; color: #6b7280; }
body.crm-page .crm-badge-lost       { background: #fee2e2; color: #991b1b; }
body.crm-page .crm-badge-open       { background: #eff6ff; color: #1d4ed8; }
body.crm-page .crm-badge-inprogress { background: #fef9c3; color: #854d0e; }
body.crm-page .crm-badge-done       { background: #dcfce7; color: #166534; }

/* 6. Filter panel */
body.crm-page .crm-filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
}

/* 7. Stat karty */
body.crm-page .crm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
body.crm-page .crm-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px 18px;
}
body.crm-page .crm-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 4px;
}
body.crm-page .crm-stat-label {
  font-size: .72rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .05em;
}
