/* ==========================================================================
   Makety obrazovek systému (ilustrační náhledy pro web).
   Nejsou to screenshoty – jde o věrnou reprodukci rozvržení v HTML/CSS.
   ========================================================================== */

.app {
    display: grid;
    grid-template-columns: 208px 1fr;
    background: #f4f6fa;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 13px;
    color: #1e293b;
}

/* ---------- Postranní panel ---------- */
.app__side {
    background: #0f1b2d;
    color: #94a3b8;
    padding: 14px 10px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.app__brand {
    color: #fff; font-weight: 800; font-size: 13px;
    padding: 6px 10px 14px; display: flex; align-items: center; gap: 8px;
}
.app__brand span { color: #64748b; font-weight: 500; font-size: 10.5px; display: block; }
.app__nav { padding: 7px 10px; border-radius: 7px; display: flex; gap: 9px; align-items: center; }
.app__nav.is-active { background: var(--brand); color: #fff; font-weight: 700; }
.app__nav--group { color: #475569; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding-top: 12px; }

/* ---------- Horní lišta ---------- */
.app__top {
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 10px 16px; display: flex; align-items: center; gap: 12px;
}
.app__title { font-weight: 800; font-size: 15px; }
.app__crumb { color: #64748b; font-size: 11.5px; }
.app__spacer { margin-left: auto; }
.app__pill {
    background: #eef2f7; border-radius: 999px; padding: 4px 11px;
    font-size: 11px; font-weight: 600; color: #475569;
}
.app__bell { position: relative; font-size: 15px; }
.app__bell::after {
    content: "24"; position: absolute; top: -6px; right: -9px;
    background: #dc3545; color: #fff; font-size: 8.5px; font-weight: 800;
    padding: 1px 5px; border-radius: 999px;
}

/* ---------- Obsah ---------- */
.app__main { padding: 16px; }
.app__grid { display: grid; gap: 12px; }
.app__grid--4 { grid-template-columns: repeat(4, 1fr); }
.app__grid--3 { grid-template-columns: repeat(3, 1fr); }
.app__grid--2 { grid-template-columns: 1.6fr 1fr; }

.tile { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px; }
.tile__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: #64748b; font-weight: 700; }
.tile__value { font-size: 22px; font-weight: 800; line-height: 1.2; }
.tile__value small { font-size: 11px; font-weight: 600; color: #64748b; }
.tile--ok .tile__value { color: var(--ok); }
.tile--warn .tile__value { color: var(--warn); }
.tile--brand .tile__value { color: var(--brand); }

.panel { background: #fff; border: 1px solid var(--border); border-radius: 10px; }
.panel__head {
    padding: 11px 14px; border-bottom: 1px solid var(--border);
    font-weight: 700; font-size: 12.5px; display: flex; align-items: center; gap: 8px;
}
.panel__body { padding: 12px 14px; }

/* ---------- Mini tabulka ---------- */
.mini { width: 100%; border-collapse: collapse; }
.mini th {
    text-align: left; font-size: 10px; text-transform: uppercase; letter-spacing: .05em;
    color: #64748b; padding: 7px 10px; background: #f8fafc; border-bottom: 1px solid var(--border);
}
.mini td { padding: 7px 10px; border-bottom: 1px solid #f1f5f9; font-size: 12px; vertical-align: middle; }
.mini tr:last-child td { border-bottom: 0; }
.mini .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Grafy ---------- */
.bars { display: flex; align-items: flex-end; gap: 10px; height: 108px; padding-top: 8px; }
.bars div {
    flex: 1; background: linear-gradient(180deg, #4f9bff, var(--brand));
    border-radius: 5px 5px 0 0; position: relative; min-height: 8px;
}
.bars div span {
    position: absolute; bottom: -19px; left: 0; right: 0; text-align: center;
    font-size: 9.5px; color: #64748b;
}
.bars div::after {
    content: attr(data-v); position: absolute; top: -15px; left: 0; right: 0;
    text-align: center; font-size: 9.5px; font-weight: 700; color: #334155;
}

/* ---------- Průběh / progress ---------- */
.meter { height: 6px; background: #eef2f7; border-radius: 999px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--brand); }
.meter i.ok { background: var(--ok); }
.meter i.warn { background: var(--warn); }

/* ---------- Stavové odznaky v maketě ---------- */
.chip {
    display: inline-block; padding: 2px 8px; border-radius: 999px;
    font-size: 10px; font-weight: 700; white-space: nowrap;
}
.chip--ok { background: var(--ok-bg); color: #15803d; }
.chip--warn { background: var(--warn-bg); color: #c2410c; }
.chip--info { background: var(--brand-light); color: var(--brand-dark); }
.chip--muted { background: #eef2f7; color: #64748b; }
.chip--danger { background: #fdecec; color: #b02a37; }

/* ---------- Formulářové pole v maketě ---------- */
.mfield { margin-bottom: 10px; }
.mfield label { display: block; font-size: 10.5px; font-weight: 700; color: #475569; margin-bottom: 3px; }
.mfield .box {
    border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px;
    background: #fff; font-size: 12px; min-height: 32px;
}
.mfield .box--muted { color: #94a3b8; }

/* ---------- Podpis ---------- */
.signature {
    border: 1px dashed var(--brand); border-radius: 10px; background: #f7faff;
    padding: 14px; text-align: center;
}
.signature .line {
    font-family: "Segoe Script", "Comic Sans MS", cursive; font-size: 20px;
    color: #1e40af; transform: rotate(-3deg); display: inline-block;
}
.signature small { display: block; color: #64748b; font-size: 10px; margin-top: 6px; }

/* ---------- Přihlášení ---------- */
.login-mock {
    max-width: 360px; margin: 0 auto; background: #fff; border: 1px solid var(--border);
    border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
}

/* ---------- Responzivita maket ---------- */
@media (max-width: 860px) {
    .app { grid-template-columns: 1fr; }
    .app__side { flex-direction: row; flex-wrap: wrap; }
    .app__nav--group { display: none; }
    .app__grid--4, .app__grid--3, .app__grid--2 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
    .app__grid--4, .app__grid--3, .app__grid--2 { grid-template-columns: 1fr; }
}
