/* Visual Systems CRM — vzhled prevzaty z Anabixu (barvy a rozmisteni prvku
   odpovidaji puvodni aplikaci, aby byl prechod bez uceni). */

:root {
    --bg:            #f0f0e8;  /* pozadi stranky */
    --page:          #ffffff;  /* bily panel aplikace */
    --sidebar:       #c2d26e;  /* zelena leva lista */
    --sidebar-dark:  #b2c165;
    --sidebar-light: #d2dd9e;
    --text:          #444444;
    --text-dark:     #282828;
    --muted:         #888880;
    --muted-2:       #737373;
    --link:          #0a639b;
    --green:         #79990a;
    --green-dark:    #5d6630;
    --green-soft:    #e7eec3;
    --orange:        #e5a811;
    --red:           #d63726;
    --red-soft:      #fee9e9;
    --border:        #e6e3ed;
    --border-2:      #dcd9d3;
    --cream:         #f7f7eb;
    --cream-2:       #f5f4f1;
    --radius:        16px;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1.45;
}

a { color: var(--link); text-decoration: underline; }
a:hover { color: #084e7a; }
h1, h2, h3 { font-weight: normal; margin: 0; }

/* ---------- celkovy ramec ---------- */
.app-shell { max-width: 1440px; margin: 0 auto; padding: 0 12px 40px; }

.topbar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 6px;
    height: 34px;
    font-size: 13px;
}
.topbar a {
    color: #393939;
    text-decoration: none;
    padding: 4px 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}
.topbar a:hover { color: #000; }
.topbar .ico { opacity: .75; }

.page {
    display: flex;
    background: var(--page);
    border-radius: var(--radius);
    min-height: 620px;
    position: relative;
    overflow: hidden;
}

/* ---------- leva lista ---------- */
.leftbar {
    width: 226px;
    flex: 0 0 226px;
    background: var(--sidebar);
    border-right: 1px solid var(--sidebar-dark);
    padding-bottom: 24px;
}
.logo-box {
    margin: 18px 20px 12px;
    background: #fff;
    border: 1px solid var(--sidebar-dark);
    border-radius: 3px;
    height: 68px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    letter-spacing: .28em;
    font-size: 11px;
    color: #222;
}
.logo-box img { max-width: 100%; height: auto; display: block; }
.sidebar-search { margin: 0 20px 14px; position: relative; }
.sidebar-search input {
    width: 100%;
    background: var(--sidebar-light);
    border: 1px solid var(--sidebar-dark);
    border-radius: 3px;
    padding: 5px 26px 5px 8px;
    font-size: 12px;
    color: #3a3a30;
}
.sidebar-search input::placeholder { color: #7d8a52; }
.sidebar-search button {
    position: absolute; right: 5px; top: 3px;
    background: none; border: none; cursor: pointer;
    color: var(--green-dark); font-size: 13px;
}

.nav { list-style: none; margin: 0; padding: 0; }
.nav li { position: relative; }
.nav > li > a.nav-main {
    display: block;
    padding: 11px 34px 11px 40px;
    color: var(--text-dark);
    font-size: 15px;
    text-decoration: none;
    border-bottom: 1px solid rgba(255,255,255,.28);
}
.nav > li > a.nav-main .ico {
    position: absolute; left: 15px; top: 11px;
    width: 16px; text-align: center; opacity: .8; font-size: 14px;
}
.nav > li:hover > a.nav-main { background: var(--sidebar-dark); }
.nav > li.active > a.nav-main { background: #fff; font-weight: bold; }
.nav .add {
    position: absolute; right: 10px; top: 9px;
    width: 19px; height: 19px; line-height: 17px; text-align: center;
    border-radius: 50%; background: var(--sidebar-light);
    border: 1px solid var(--sidebar-dark);
    color: var(--green-dark); font-size: 13px; text-decoration: none;
}
.nav .add:hover { background: #fff; }

.sidebar-section { padding: 18px 20px 0; }
.sidebar-section h2 { color: var(--green-dark); font-size: 13px; font-weight: bold; margin-bottom: 6px; }
.recent { list-style: none; margin: 0; padding: 0; }
.recent li { padding: 6px 0 6px 28px; position: relative; line-height: 1.25; }
.recent li .ico { position: absolute; left: 2px; top: 7px; opacity: .65; color: var(--green-dark); }
.recent a { color: #33361f; text-decoration: none; font-size: 12.5px; }
.recent a:hover { text-decoration: underline; }
.recent .kind { display: block; color: #6f7a45; font-size: 11px; }

/* ---------- obsah ---------- */
.main { flex: 1 1 auto; padding: 22px 26px 40px; min-width: 0; }

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.page-header h1 { font-size: 23px; color: #3d3d3d; }
.page-header .subtitle { color: var(--muted); font-size: 12px; }
.title-add {
    display: inline-block; width: 21px; height: 21px; line-height: 19px;
    text-align: center; border-radius: 50%;
    border: 1px solid var(--border-2); color: var(--green-dark);
    background: var(--cream); text-decoration: none; font-size: 14px;
    margin-left: 8px; vertical-align: middle;
}
.title-add:hover { background: var(--green-soft); }

/* ---------- filtracni karta (jako v Anabixu) ---------- */
.filterbar {
    background: var(--cream);
    border: 1px solid var(--border-2);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 14px;
}
.filterbar .row1 { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.filterbar label { color: var(--muted-2); font-size: 12px; }
.filterbar input[type=text], .filterbar input[type=search] {
    border: 1px solid var(--border-2); border-radius: 3px; padding: 4px 8px; font-size: 12px; min-width: 200px;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
    display: inline-block; padding: 4px 11px; font-size: 12px;
    background: #fff; border: 1px solid var(--border-2); border-radius: 3px;
    color: var(--text); text-decoration: none; white-space: nowrap;
}
.chip:hover { background: var(--green-soft); color: var(--text); }
.chip.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: bold; }
.chip.clear { color: var(--red); }

/* ---------- tabulky / seznamy ---------- */
.listmeta {
    display: flex; justify-content: space-between; align-items: center;
    gap: 10px; flex-wrap: wrap; margin: 4px 0 8px; font-size: 12px; color: var(--muted-2);
}
.table-wrap { border: 1px solid var(--border); border-top: none; background: #fff; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; font-size: 12px; vertical-align: top; }
thead th {
    background: var(--cream-2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border-2);
    color: #55524b; font-weight: bold; font-size: 11.5px; white-space: nowrap;
}
tbody tr { border-bottom: 1px solid #eeece6; }
tbody tr:nth-child(even) { background: #faf9f4; }
tbody tr:hover { background: var(--green-soft); }
tbody tr.clickable { cursor: pointer; }
.empty-state { padding: 26px 14px; text-align: center; color: var(--muted); font-size: 12.5px; background: #fff; border: 1px solid var(--border); }

th.sortable { padding: 0; }
th.sortable a { display: flex; align-items: center; gap: 4px; padding: 8px 10px; color: inherit; text-decoration: none; }
th.sortable a:hover { color: var(--green-dark); }
th.sortable.sorted { background: #efeee7; }
.sort-arrow { font-size: 9px; color: var(--green); }
.sort-arrow-idle { opacity: .3; color: var(--muted); }
th.text-right a { justify-content: flex-end; }

/* ---------- strankovani ---------- */
.pagination {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; flex-wrap: wrap; padding: 8px 10px;
    border: 1px solid var(--border); border-top: none; background: var(--cream-2);
    font-size: 12px; color: var(--muted-2);
}
.pagination-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.pagination-nav a, .pagination-nav span.btn {
    padding: 3px 9px; border: 1px solid var(--border-2); background: #fff;
    border-radius: 3px; color: var(--text); text-decoration: none; font-size: 12px;
}
.pagination-nav a:hover { background: var(--green-soft); }
.pagination-nav .disabled { opacity: .4; pointer-events: none; }
.pagination-page { padding: 0 6px; }
.pagination-size { display: flex; align-items: center; gap: 5px; }
.pagination-size-link {
    padding: 2px 7px; border: 1px solid var(--border-2); background: #fff;
    border-radius: 3px; color: var(--text); text-decoration: none;
}
.pagination-size-link.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: bold; }

/* ---------- tlacitka ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 6px; justify-content: center;
    background: var(--green); border: 1px solid #6c8a09; color: #fff;
    padding: 6px 14px; border-radius: 3px; font-size: 12.5px; cursor: pointer;
    text-decoration: none; font-family: inherit;
}
.btn:hover { background: #6c8a09; color: #fff; }
.btn-secondary { background: #fff; border-color: var(--border-2); color: var(--text); }
.btn-secondary:hover { background: var(--cream); color: var(--text); }
.btn-danger { background: var(--red); border-color: #b62d1f; color: #fff; }
.btn-danger:hover { background: #b62d1f; color:#fff; }
.btn-sm { padding: 3px 9px; font-size: 11.5px; }
.btn.disabled, span.btn.disabled { opacity: .4; pointer-events: none; }

/* pilulkova tlacitka v hlavicce detailu (DETAILY / UPRAVIT / TISK) */
.pill-btn {
    display: block; text-align: center; text-transform: uppercase;
    background: var(--cream); border: 1px solid var(--border-2); border-radius: 13px;
    color: var(--green-dark); font-size: 10.5px; letter-spacing: .04em;
    padding: 5px 16px; margin-bottom: 6px; text-decoration: none; min-width: 108px;
}
.pill-btn:hover { background: var(--green-soft); color: var(--green-dark); }

.btn-save {
    background: #fff; border: 1px solid #b6c566; border-radius: 14px;
    color: #4d5a1c; padding: 6px 22px; font-size: 13px; cursor: pointer;
    display: inline-flex; align-items: center; gap: 7px; font-family: inherit;
}
.btn-save:hover { background: var(--green-soft); }
.btn-save .check { color: var(--green); font-weight: bold; }

.btn-link {
    background: none; border: none; padding: 0; cursor: pointer;
    color: var(--link); font-size: 12px; text-decoration: underline; font-family: inherit;
}

/* segmentovany prepinac (otevreny / odlozeny / dokonceny) */
.segmented { display: inline-flex; border-radius: 3px; overflow: hidden; border: 1px solid var(--border-2); }
.segmented label { padding: 5px 16px; font-size: 12.5px; cursor: pointer; background: #fff; border-right: 1px solid var(--border-2); }
.segmented label:last-child { border-right: none; }
.segmented input { display: none; }
.segmented input:checked + span { background: var(--green); color: #fff; font-weight: bold; }
.segmented label span { display: block; margin: -5px -16px; padding: 5px 16px; }

/* ---------- panely / widgety ---------- */
.card, .widget {
    background: #fff; border: 1px solid var(--border); margin-bottom: 16px;
}
.card { padding: 14px; }
.widget-head {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 7px 10px; border-bottom: 1px solid var(--border); background: #fff;
}
.widget-head h2 { font-size: 14px; color: var(--text); font-weight: bold; }
.widget-head .tools { display: flex; gap: 4px; align-items: center; }
.widget-head .tools a { color: var(--muted); text-decoration: none; padding: 2px 5px; border-radius: 3px; font-size: 13px; }
.widget-head .tools a:hover, .widget-head .tools a.on { background: var(--green-soft); color: var(--green-dark); }
/* pocet polozek v nadpisu widgetu (ukoly na nastence) */
.widget-count {
    display: inline-block; min-width: 16px; padding: 0 5px; margin-left: 5px;
    background: var(--green-soft); color: var(--green-dark);
    border-radius: 9px; font-size: 11px; font-weight: bold; text-align: center;
    vertical-align: 1px;
}
.widget-count.count-warn { background: #fbe3e0; color: #b02e1f; }

.widget-foot { padding: 6px 10px; text-align: right; border-top: 1px solid var(--border); background: var(--cream-2); }
.widget-foot a { font-size: 12px; }

.widget table { border-collapse: collapse; }
.widget tbody tr { border-bottom: 1px solid #f0efe9; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .two-col { grid-template-columns: 1fr; } }

.dash-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 1100px) { .dash-grid { grid-template-columns: 1fr; } }

/* radky aktivit/ukolu ve widgetu */
.feed { width: 100%; }
.feed tr { cursor: pointer; }
.feed td { padding: 7px 8px; font-size: 12px; }
.feed td.ico { width: 26px; color: var(--muted); text-align: center; padding-top: 9px; }
.feed td.meta { width: 130px; text-align: right; color: var(--text); white-space: nowrap; }
.feed td.meta .date { display: block; color: var(--muted-2); font-style: italic; font-size: 11px; }
.feed td.who { width: 130px; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed td.who a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.feed .txt { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 520px; }
.feed .overdue { color: var(--red); font-weight: bold; }
.feed .today { color: var(--green); font-weight: bold; }
/* datum v meta sloupci ma vlastni barvu - po terminu a dnesek musi prebit */
.feed td.meta .date.overdue { color: var(--red); font-weight: bold; font-style: normal; }
.feed td.meta .date.today { color: var(--green-dark); font-weight: bold; font-style: normal; }

/* ---------- detail zaznamu (hlavicka jako v Anabixu) ---------- */
.detail-head {
    display: flex; gap: 18px; align-items: flex-start;
    background: var(--cream); border: 1px solid var(--border-2); border-radius: 8px;
    padding: 14px 16px; margin-bottom: 14px; flex-wrap: wrap;
}
.detail-head .avatar {
    width: 88px; height: 88px; flex: 0 0 88px; background: #fff;
    border: 1px solid var(--border-2); border-radius: 3px;
    display: flex; align-items: center; justify-content: center; font-size: 42px; color: #c9c7bd;
}
.detail-head .ident { flex: 1 1 320px; min-width: 240px; }
.detail-head .ident h1 { font-size: 22px; color: #333; letter-spacing: .01em; }
.detail-head .ident .position { font-style: italic; font-size: 12.5px; color: #5c5c55; margin: 4px 0 6px; }
.detail-head .ident .contactline a { font-size: 13px; }
.detail-head .org { flex: 0 1 240px; font-size: 13px; }
.detail-head .org .orgname { font-weight: bold; color: #333; margin-bottom: 8px; display: block; }
.detail-head .org .label { color: var(--muted-2); font-size: 12px; }
.detail-head .actions { flex: 0 0 auto; margin-left: auto; }

/* vertikalni zalozky u "Pridat aktivitu / Pridat ukol" */
.vtabs-wrap { display: flex; gap: 0; border: 1px solid var(--border); background: #fff; margin-bottom: 16px; }
.vtabs { flex: 0 0 96px; border-right: 1px solid var(--border); background: var(--cream-2); padding-top: 8px; }
.vtab {
    display: block; padding: 8px 8px; font-size: 12px; color: var(--text);
    text-decoration: none; border-bottom: 1px solid var(--border); background: var(--cream-2);
    cursor: pointer; line-height: 1.2;
}
.vtab.active { background: #fff; border-right: 1px solid #fff; margin-right: -1px; font-weight: bold; }
.vtab-panels { flex: 1 1 auto; padding: 14px 16px; min-width: 0; }
.vtab-panel { display: none; }
.vtab-panel.active { display: block; }
.vtab-panel h3 { font-size: 14px; margin-bottom: 10px; color: #3d3d3d; }

.quick-dates { font-size: 12px; }
.quick-dates a { margin: 0 3px; }

/* prepinac Kontakt / Firma */
.scope-switch { display: flex; justify-content: flex-end; margin-bottom: 6px; }
.scope-switch a {
    padding: 4px 14px; font-size: 12px; background: var(--cream-2);
    border: 1px solid var(--border-2); color: var(--text); text-decoration: none;
}
.scope-switch a:first-child { border-radius: 3px 0 0 3px; }
.scope-switch a:last-child { border-radius: 0 3px 3px 0; border-left: none; }
.scope-switch a.active { background: #dcd9d3; font-weight: bold; }

/* ---------- formulare ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
@media (max-width: 800px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12px; color: var(--muted-2); }
.frow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.frow > label { flex: 0 0 120px; font-size: 12.5px; color: var(--text); }

input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], input[type=number], input[type=search], select, textarea {
    border: 1px solid #cfcdc5; border-radius: 3px; background: #fff;
    padding: 5px 8px; font-size: 12.5px; font-family: inherit; color: var(--text);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #a8bb5e; box-shadow: 0 0 0 2px rgba(194,210,110,.35); }
textarea { resize: vertical; min-height: 80px; width: 100%; }
.form-actions { display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form textarea { flex: 1 1 100%; min-height: 70px; }
.search-bar { margin-bottom: 12px; }
.search-bar input { min-width: 280px; }
.hint { font-size: 11.5px; color: var(--muted); }

/* naseptavac firem/kontaktu */
.ac-wrap { position: relative; }
.ac-list {
    position: absolute; z-index: 60; left: 0; right: 0; top: 100%;
    background: #fff; border: 1px solid var(--border-2); border-top: none;
    max-height: 260px; overflow-y: auto; display: none; box-shadow: 0 6px 16px rgba(0,0,0,.12);
}
.ac-list.open { display: block; }
.ac-item { padding: 6px 9px; font-size: 12.5px; cursor: pointer; border-bottom: 1px solid #f2f1ea; }
.ac-item:hover, .ac-item.sel { background: var(--green-soft); }
.ac-item .sub { color: var(--muted); font-size: 11px; }
.ac-chosen { font-size: 12px; color: var(--green-dark); margin-top: 3px; }

/* ---------- stitky / stavy ---------- */
.pill {
    display: inline-block; padding: 2px 9px; border-radius: 10px; font-size: 11px;
    border: 1px solid var(--border-2); background: var(--cream-2); color: var(--muted-2); white-space: nowrap;
}
.pill-otevreny, .pill-vystavena { background: var(--green); border-color: var(--green); color: #fff; }
.pill-vyhrany, .pill-hotovo, .pill-uhrazena { background: #e7eec3; border-color: #c2d26e; color: #4d5a1c; }
.pill-prohrany, .pill-po_splatnosti { background: var(--red-soft); border-color: #ebc1c1; color: var(--red); }
.pill-odlozeny, .pill-navrh { background: #fdf3dd; border-color: #efd9a8; color: #8a6410; }
.pill-stornovana { background: #eee; color: var(--muted); text-decoration: line-through; }
.pill-vysoka { background: var(--red-soft); border-color: #ebc1c1; color: var(--red); }
.pill-normalni { color: var(--muted-2); }
.pill-nizka { color: var(--muted); }
.prio-dash { color: var(--orange); font-weight: bold; }

.filters { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.filters a { padding: 4px 12px; font-size: 12px; background: #fff; border: 1px solid var(--border-2); border-radius: 3px; color: var(--text); text-decoration: none; }
.filters a:hover:not(.active) { background: var(--green-soft); }
.filters a.active { background: var(--green); border-color: var(--green); color: #fff; font-weight: bold; }

.alert-error { background: var(--red-soft); border: 1px solid #ebc1c1; color: var(--red); padding: 8px 11px; border-radius: 3px; font-size: 12.5px; margin-bottom: 12px; }
.alert-info { background: #eaf2f9; border: 1px solid #b6d4ec; color: #0a639b; padding: 8px 11px; border-radius: 3px; font-size: 12.5px; margin-bottom: 12px; }
.alert-ok { background: var(--green-soft); border: 1px solid #c2d26e; color: #4d5a1c; padding: 8px 11px; border-radius: 3px; font-size: 12.5px; margin-bottom: 12px; }

/* ---------- seznamy udaju ---------- */
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid #f0efe9; font-size: 12.5px; }
.info-list li:last-child { border-bottom: none; }
.info-list .k { color: var(--muted-2); }
.info-list .v { text-align: right; }

.section-title { font-size: 13px; font-weight: bold; color: #3d3d3d; margin: 18px 0 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 9px 0; border-bottom: 1px solid #f0efe9; }
.timeline li:last-child { border-bottom: none; }
.timeline .meta { color: var(--muted-2); font-size: 11px; margin-bottom: 3px; }
.timeline .content { font-size: 12.5px; white-space: pre-wrap; }
.timeline li.ai-note { background: var(--cream); padding: 9px 11px; border-bottom: none; margin-bottom: 6px; border: 1px solid var(--border-2); }

/* ---------- kanban ---------- */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
@media (max-width: 1000px) { .board { grid-template-columns: 1fr 1fr; } }
.board-col { background: var(--cream-2); border: 1px solid var(--border); padding: 10px; min-height: 120px; }
.board-col h3 { font-size: 12px; font-weight: bold; color: var(--muted-2); margin-bottom: 10px; display: flex; justify-content: space-between; }
.board-card { background: #fff; border: 1px solid var(--border-2); padding: 9px; margin-bottom: 8px; font-size: 12px; }
.board-card .title { font-weight: bold; margin-bottom: 3px; }
.board-card .meta { color: var(--muted); font-size: 11px; }
.board-card .amount { color: var(--text); font-size: 11.5px; margin-top: 4px; }
.board-card select { width: 100%; margin-top: 6px; font-size: 11.5px; }

/* ---------- modal (detail aktivity/ukolu jako v Anabixu) ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(40,40,30,.35); display: none; z-index: 200; }
.modal-back.open { display: block; }
.modal {
    position: fixed; z-index: 201; display: none;
    background: #fff; border: 1px solid var(--border-2); border-radius: 4px;
    box-shadow: 0 10px 34px rgba(0,0,0,.28); width: 460px; max-width: calc(100vw - 30px);
    max-height: 80vh; overflow: auto;
}
.modal.open { display: block; }
.modal .modal-tools { display: flex; justify-content: flex-end; gap: 10px; padding: 8px 12px 0; }
.modal .modal-tools a, .modal .modal-tools button {
    background: none; border: none; cursor: pointer; font-size: 14px; text-decoration: none; padding: 0;
}
.modal .t-edit { color: #5aa02c; }
.modal .t-del { color: var(--red); }
.modal .t-close { color: var(--red); }
.modal .modal-body { padding: 4px 16px 16px; font-size: 12.5px; }
.modal .modal-text { white-space: pre-wrap; margin-bottom: 12px; line-height: 1.5; }
.modal .kv { margin-top: 4px; }
.modal .kv b { color: #333; }
.modal .sig { margin-top: 12px; font-style: italic; color: var(--muted-2); font-size: 11.5px; }
.modal textarea { width: 100%; }

/* ---------- prihlaseni ---------- */
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--bg); }
.login-box { width: 100%; max-width: 330px; background: #fff; border: 1px solid var(--border-2); border-radius: 8px; padding: 30px 28px; }
.login-box .brand { text-align: center; font-weight: 800; font-size: 20px; letter-spacing: .2em; margin-bottom: 20px; color: #222; }
.login-box .error { background: var(--red-soft); border: 1px solid #ebc1c1; color: var(--red); padding: 8px 11px; border-radius: 3px; font-size: 12.5px; margin-bottom: 12px; }
.login-box .field { margin-bottom: 14px; }
.login-box input { width: 100%; }
.login-box .btn { width: 100%; }

/* ---------- faktura ---------- */
.invoice-paper { max-width: 900px; margin: 0 auto; }
.invoice-paper-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid #333; margin-bottom: 14px; }
.invoice-paper-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; font-size: 12.5px; }
@media (max-width: 700px) { .invoice-paper-parties { grid-template-columns: 1fr; } }

@media print {
    .leftbar, .topbar, .no-print, .filters, .form-actions, .filterbar { display: none !important; }
    .page { display: block; border-radius: 0; }
    .main { padding: 0; }
    body { background: #fff; }
    .card, .invoice-paper { border: none; padding: 0; }
}

.muted { color: var(--muted); }
.text-right { text-align: right; }
.nowrap { white-space: nowrap; }

/* ============================================================
   TISKOVÝ DOKLAD (rozvržení podle faktury z iDokladu)
   ============================================================ */
.paper {
    --navy: #002364;
    background: #fff;
    color: #111;
    font-size: 11.5px;
    line-height: 1.35;
    max-width: 820px;
    margin: 0 auto;
    padding: 0;
    position: relative;
    border: 1px solid var(--border);
}
.paper .lbl { font-weight: bold; margin-bottom: 3px; }
.paper .strong { font-weight: bold; }
.paper .ids { margin-top: 3px; }
.paper .ids span { margin-right: 18px; }

/* svislé navigační pásy vlevo - kazda sekce ma svuj pas */
.prow { display: flex; align-items: stretch; }
.prow > .pbody { flex: 1 1 auto; min-width: 0; }
.pband {
    flex: 0 0 26px; width: 26px;
    color: var(--navy);
    display: flex; align-items: flex-start; justify-content: center;
}
.pband.navy { background: var(--navy); color: #fff; }
.pband span {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: 8.5px;
    letter-spacing: .12em;
    font-weight: bold;
    padding: 10px 0;
    white-space: nowrap;
}
.prow-recap .pband span { padding-top: 26px; }

.paper-top { display: flex; gap: 26px; padding: 14px 16px 0; }
.paper-supplier { flex: 0 0 46%; border-right: 1px solid #d8d8d8; padding-right: 22px; }
.paper-right { flex: 1 1 54%; min-width: 0; }
.paper-logo { margin: 16px 0 12px; }
.paper-logo img { max-width: 210px; height: auto; display: block; }
.paper-contact .k { display: inline-block; width: 74px; color: #333; }
.paper-contact .registry { margin-top: 6px; font-size: 9.5px; color: #444; max-width: 340px; }

.paper-title { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.paper-title h2 { font-size: 15px; font-weight: bold; color: #111; }
.paper-title .numbox {
    border: 1px solid #b9b9b9; border-radius: 3px; padding: 5px 16px;
    font-size: 15px; font-weight: bold; letter-spacing: .04em;
}
.paper-barcode { text-align: right; margin-top: 6px; }
.paper-barcode svg { height: 26px; }
.paper-customer { margin-top: 96px; max-width: 360px; }

.paper-dates {
    display: flex; flex-wrap: wrap; gap: 22px;
    padding: 12px 16px 14px; font-size: 11px;
}

.paper-payment { display: flex; align-items: stretch; gap: 12px; padding: 0 16px 0 0; }
.pay-navy {
    flex: 1 1 auto; background: var(--navy); color: #fff;
    display: flex; gap: 20px; padding: 12px 18px;
}
.pay-col { flex: 1 1 auto; }
.pay-lbl { color: #9fb2d4; font-size: 10.5px; margin-bottom: 4px; }
.pay-val { font-weight: bold; font-size: 11.5px; }
.pay-row { display: flex; gap: 10px; font-size: 11.5px; }
.pay-row span { color: #9fb2d4; min-width: 66px; }
.pay-amount { text-align: right; flex: 0 0 auto; }
.pay-method { font-size: 11px; margin-bottom: 10px; }
.pay-total { font-size: 16px; font-weight: bold; }
.pay-qr { flex: 0 0 auto; text-align: center; align-self: center; background: #fff; padding: 4px; }
.pay-qr svg { width: 104px; height: 104px; display: block; }
.pay-qr-label { font-size: 9px; font-weight: bold; margin-top: 2px; color: #111; }

.paper-items { padding: 12px 16px 0; }
.items-intro { margin-bottom: 8px; }
table.items { width: 100%; border-collapse: collapse; font-size: 11px; }
table.items thead th {
    background: none; border: none; border-bottom: 1px solid #333;
    font-size: 10px; font-weight: bold; text-transform: none;
    color: #111; padding: 3px 5px; letter-spacing: 0;
}
table.items tbody td { border-bottom: 1px solid #e6e6e6; padding: 6px 5px; }
table.items tbody tr { background: none !important; }
table.items .last { background: #f0f0f0; font-weight: bold; }

.paper-recap { padding: 26px 16px 0; }
table.recap { width: 58%; margin-left: auto; border-collapse: collapse; font-size: 11px; }
table.recap thead th {
    background: none; border: none; border-bottom: 1px solid #333;
    font-size: 10px; color: #111; padding: 3px 5px; text-transform: none; letter-spacing: 0;
}
table.recap td { padding: 5px; border-bottom: 1px solid #e6e6e6; }
table.recap tbody tr { background: none !important; }
table.recap tr.sum td { border-top: 1px solid #333; border-bottom: none; }

.paper-grandtotal {
    margin: 18px 0 0 auto; width: 58%;
    background: var(--navy); color: #fff;
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 14px; font-size: 13px; font-weight: bold;
}
.paper-note { margin-top: 12px; font-size: 10.5px; white-space: pre-wrap; }
.paper-footer {
    display: flex; justify-content: space-between;
    margin-top: 34px; padding: 8px 16px 12px;
    border-top: 1px solid #ddd; font-size: 9.5px; color: #555;
}

@media print {
    .paper { border: none; max-width: none; min-height: 26.2cm; display: flex; flex-direction: column; }
    .paper-footer { margin-top: auto; }
    .paper-band span { font-size: 8px; }
}

/* ============================================================
   PANELY S CISLY (Přehledy), sloupcovy graf, hromadne akce
   ============================================================ */
.panels { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.panel {
    flex: 1 1 200px; background: var(--cream, #f7f7eb);
    border: 1px solid var(--border, #e6e3ed); border-radius: 6px;
    padding: 12px 14px;
}
.panel-label { font-size: 11.5px; color: #666; }
.panel-value { font-size: 20px; font-weight: bold; color: #5d6630; margin: 3px 0 2px; }
.panel-note { font-size: 11.5px; color: #777; }
.panel-warn .panel-value { color: #d63726; }

.head-sum { font-size: 12.5px; color: #555; }

table.chart-table td { vertical-align: middle; }
.bar { background: #e9e9dd; border-radius: 2px; height: 10px; width: 100%; }
.bar span { display: block; background: #a8bd55; height: 10px; border-radius: 2px; }

/* zaskrtavatka u radku a lista hromadnych akci */
td.pick, th.pick { width: 26px; text-align: center; padding-left: 8px; padding-right: 0; }
th.pick input, td.pick input { margin: 0; cursor: pointer; }
.bulkbar {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    background: var(--cream, #f7f7eb); border: 1px solid var(--border, #e6e3ed);
    border-radius: 6px; padding: 7px 10px; margin-bottom: 8px;
    font-size: 12.5px;
}
.bulkbar .count { color: #666; }
.bulkbar select { min-width: 190px; }
.bulkbar .spacer { flex: 1 1 auto; }
.bulkbar[hidden] { display: none; }

label.checkline { display: block; font-size: 12.5px; margin-bottom: 4px; cursor: pointer; font-weight: normal; }
label.checkline input { margin-right: 6px; }
.paper-ref { text-align: right; font-size: 10.5px; color: #555; margin-top: 4px; }
.board-sum { font-size: 11.5px; color: #666; margin: -4px 0 8px 2px; }
.board-more { font-size: 11.5px; padding: 6px 2px; }

/* polozky faktury: tabulka se musi vejit do karty */
#items-table { width: 100%; table-layout: fixed; }
#items-table input, #items-table select { width: 100%; box-sizing: border-box; min-width: 0; }
#items-table td { padding: 4px 4px; }

/* ---------- koláčový graf stavů obchodních případů (jako v Anabixu) ---------- */
.donut-wrap { display: flex; align-items: center; gap: 14px; padding: 12px; }
svg.donut { width: 132px; height: 132px; flex: 0 0 auto; }
.donut circle { fill: transparent; stroke-width: 5.4; }
.donut-ring { stroke: #ecece2; }
.donut-seg { transform: rotate(-90deg); transform-origin: 50% 50%; }
.seg-otevreny { stroke: #79990a; }
.seg-odlozeny { stroke: #e5a811; }
.seg-vyhrany { stroke: #5d6630; }
.seg-prohrany { stroke: #d63726; }
.donut-number { font-size: 6px; font-weight: bold; text-anchor: middle; fill: #444; }
.donut-label { font-size: 2.6px; text-anchor: middle; fill: #888; letter-spacing: .06em; }
.donut-legend { list-style: none; margin: 0; padding: 0; font-size: 12.5px; flex: 1 1 auto; }
.donut-legend li { display: flex; align-items: center; gap: 7px; padding: 3px 0; }
.donut-legend .n { margin-left: auto; font-weight: bold; }
.donut-legend .pct { color: #888; width: 42px; text-align: right; }
.donut-legend .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-otevreny { background: #79990a; }
.dot-odlozeny { background: #e5a811; }
.dot-vyhrany { background: #5d6630; }
.dot-prohrany { background: #d63726; }

/* chipy pro výběr filtrů */
.filter-chips { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }
.chip.filter-chip.on { background: #79990a; border-color: #5d6630; color: #fff; }
.filter-fields { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
.filter-fields .ff { display: inline-flex; align-items: center; gap: 6px; }
.filter-fields .ff[hidden] { display: none; }

/* přepínač Kontakt | Firma a filtr typů aktivit v hlavičce widgetu */
.scope-switch { display: inline-flex; border: 1px solid #cfcfc0; border-radius: 3px; overflow: hidden; margin-right: 10px; }
.scope-switch a { padding: 1px 9px; font-size: 11.5px; text-decoration: none; color: #555; background: #fff; }
.scope-switch a.on { background: #c2d26e; color: #34401a; font-weight: bold; }
.type-filter { display: inline-flex; gap: 2px; margin-right: 8px; }
.type-filter a {
    display: inline-block; min-width: 19px; text-align: center; padding: 1px 3px;
    border: 1px solid transparent; border-radius: 3px; text-decoration: none; color: #7a7a68;
    font-size: 12px; line-height: 16px;
}
.type-filter a:hover { border-color: #cfcfc0; }
.type-filter a.on { background: #eef0dd; border-color: #c2d26e; color: #4b5a17; }
.feed .who-mini { display: block; color: #0a639b; }

/* hlaska po akci (stazeni vypisu, parovani...) */
.flash {
    background: #eef3d6; border: 1px solid #c2d26e; border-radius: 6px;
    padding: 8px 12px; margin-bottom: 12px; font-size: 12.5px; color: #3f4a16;
}
.flash-error { background: #fbeceb; border-color: #e9b0aa; color: #8d2018; }

/* chipy uvnitr hlavicky widgetu si musi udrzet vlastni barvy
   (jinak je prebije obecne pravidlo .widget-head .tools a) */
.widget-head .tools a.chip { color: var(--text); font-size: 11.5px; padding: 2px 9px; }
.widget-head .tools a.chip.active { background: var(--green); border-color: var(--green); color: #fff; }
.widget-head .tools a.chip:hover { background: var(--green-soft); color: var(--text); }
.widget-head .tools a.chip.active:hover { background: var(--green); color: #fff; }

/* odznak s poctem (napr. platby cekajici na potvrzeni) */
.badge {
    display: inline-block; min-width: 15px; padding: 0 4px; margin-left: 3px;
    background: #d63726; color: #fff; border-radius: 9px;
    font-size: 10.5px; line-height: 15px; text-align: center; font-weight: bold;
}

/* ============================================================
   PŘIJATÉ DOKLADY A PODKLADY PRO DPH
   ============================================================ */
.period-nav { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.period-nav a { text-decoration: none; font-size: 15px; padding: 0 4px; }

.checklist { list-style: none; margin: 0; padding: 0; font-size: 12.5px; }
.checklist li { padding: 4px 0 4px 24px; position: relative; }
.checklist li::before { position: absolute; left: 0; top: 3px; font-size: 13px; }
.checklist li.done::before { content: "\2714"; color: #79990a; }
.checklist li.todo::before { content: "\2718"; color: #d63726; }

/* nahrávání dokladu */
.upload-card { max-width: 640px; }
.drop-zone {
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    border: 2px dashed #c2d26e; border-radius: 10px; background: var(--cream, #f7f7eb);
    padding: 26px 18px; text-align: center; cursor: pointer;
}
.drop-zone.over { background: #eef3d6; border-color: #79990a; }
.drop-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.drop-icon { font-size: 30px; line-height: 1; }
.drop-title { font-weight: bold; font-size: 14px; }
.drop-hint { font-size: 12px; color: #777; max-width: 380px; }
.file-list { font-size: 12px; color: #555; margin-top: 8px; }
.file-list div { padding: 2px 0; }

/* náhled dokladu */
.doc-preview { padding: 8px; }
.doc-preview img { max-width: 100%; border: 1px solid var(--border, #e6e3ed); border-radius: 4px; }
.doc-preview iframe { width: 100%; height: 520px; border: 1px solid var(--border, #e6e3ed); border-radius: 4px; }

table.vat-grid { width: 100%; border-collapse: collapse; }
table.vat-grid th { font-size: 10.5px; }
table.vat-grid td { padding: 3px 4px; }
table.vat-grid input { width: 100%; text-align: right; box-sizing: border-box; }
table.vat-grid tr.sum td { border-top: 1px solid #ccc; }

.mailbox-box { border-bottom: 1px solid var(--border, #e6e3ed); padding-bottom: 10px; margin-bottom: 10px; }

/* na mobilu ať je nahrávání pohodlné */
@media (max-width: 760px) {
    .leftbar { display: none; }
    .page { padding: 0; }
    .main { padding: 10px; }
    .upload-card { max-width: none; }
    .drop-zone { padding: 40px 16px; }
    .drop-icon { font-size: 42px; }
    .two-col { grid-template-columns: 1fr; }
}

/* tlacitko v hlavicce widgetu si drzi vlastni barvy */
.widget-head .tools a.btn { color: #fff; background: var(--green); border-color: var(--green); }
.widget-head .tools a.btn:hover { background: var(--green-dark, #5d6630); color: #fff; }
.widget-head .tools a.btn-secondary { color: var(--text); background: #fff; }

/* rozbalovaci blok "starsi doklad" na strance nahravani */
.older-box {
    border: 1px solid #e6e3ed;
    border-radius: 8px;
    padding: 8px 10px;
    background: #fbfbf7;
}
.older-box > summary {
    cursor: pointer;
    font-size: 12.5px;
    color: #0a639b;
    list-style: none;
}
.older-box > summary::-webkit-details-marker { display: none; }
.older-box > summary::before { content: "+ "; font-weight: bold; }
.older-box[open] > summary::before { content: "− "; }

/* ---------- návrh realizace (tisková podoba podle vzorů z Pages) ---------- */
.nav-paper {
    background: #fff;
    color: #000;
    font-size: 11.5px;
    line-height: 1.4;
    max-width: 820px;
    margin: 0 auto;
    padding: 24px 52px 18px;
    position: relative;
    border: 1px solid var(--border);
}
/* cerny roh s logem - vyriznuty primo z jejich PDF */
.nav-corner { position: absolute; top: 0; left: 0; width: 176px; height: auto; }
.nav-corner-bottom { position: absolute; bottom: 0; right: 0; width: 92px; height: auto; }
.nav-clientlogo { position: absolute; top: 16px; right: 44px; }
.nav-clientlogo img { max-height: 58px; max-width: 250px; }

.nav-head { text-align: center; margin: 6px 0 14px; padding: 0 40px 0 126px; min-height: 130px; }
.nav-title { font-weight: bold; font-size: 12.5px; }
.nav-subtitle { font-weight: bold; font-size: 12px; margin-top: 3px; }
.nav-object { font-weight: bold; text-decoration: underline; margin-top: 12px; font-size: 12.5px; }

.nav-greeting { margin: 34px 0 8px; }
.nav-intro { text-align: justify; margin: 0 0 14px; }

.nav-block-title { font-weight: bold; margin: 16px 0 5px; }
.nav-sub-title { font-weight: bold; margin: 12px 0 5px 22px; }

.nav-photos { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 12px; }
.nav-photos figure { flex: 1 1 calc(50% - 16px); margin: 0; min-width: 0; }
.nav-photos img { width: 100%; height: auto; display: block; border: 1px solid #ddd; }
.nav-photos figcaption { font-size: 11px; margin-top: 3px; }

table.nav-table { width: 100%; border-collapse: collapse; margin-bottom: 14px; table-layout: fixed; }
table.nav-table td { border: 1px solid #b9b9b9; padding: 5px 8px; vertical-align: top; }
table.nav-table tr.bar td {
    background: #000; color: #fff; font-weight: bold; text-align: center; border-color: #000;
}
table.nav-table tr.price td.amount { text-align: right; font-weight: bold; width: 33%; }
table.nav-table tr.result td { font-weight: bold; }
.nav-total.discount { font-weight: normal; font-size: 12px; margin: 2px 0; }
table.nav-table tr.bar td.amount { text-align: center; width: 33%; }

.nav-total { text-align: center; font-weight: bold; font-size: 12.5px; margin: 18px 0 2px; }
.nav-vat { text-align: center; margin-bottom: 14px; }
.nav-note { text-align: center; font-size: 11px; margin-bottom: 2px; }

.nav-footer {
    display: flex; justify-content: space-between; gap: 20px;
    margin-top: 38px; padding-top: 10px; font-size: 10px; color: #333;
}
.nav-footer .strong { font-weight: bold; }
.nav-footer .right { text-align: right; white-space: nowrap; }
.nav-footer a { color: var(--link); }

.nav-page2 { position: relative; padding-bottom: 28px; }
.nav-more-title { font-weight: bold; margin: 10px 0 10px; }
ul.nav-more { margin: 0 0 8px 18px; padding: 0; }
ul.nav-more li { margin-bottom: 12px; text-align: justify; }
ul.nav-more.links li { text-align: left; }
ul.nav-more .strong { font-weight: bold; }
.nav-link-row { margin-top: 1px; }
.nav-link-row a { color: var(--link); text-decoration: underline; }

.nav-signrow { display: flex; align-items: center; justify-content: flex-end; gap: 26px; margin-top: 26px; }
.nav-stamp { width: 132px; height: auto; }
.nav-sign { text-align: right; line-height: 1.5; }
.nav-sign a { color: var(--link); }

/* strany dokumentu: paticka vzdy dole, jako v jejich vzorech */
.nav-page1, .nav-page2 { display: flex; flex-direction: column; position: relative; }
.nav-page1 > .nav-footer, .nav-page2 > .nav-footer { margin-top: auto; }

@media print {
    /* pri tisku o neco sevrenejsi sazba, aby se prvni strana vesla na A4
       presne jako v jejich vzorech z Pages */
    .nav-paper { border: none; max-width: none; padding: 0; font-size: 10.5px; }
    .nav-page1 { min-height: 262mm; }
    .nav-page2 { page-break-before: always; padding-top: 2px; min-height: 262mm; }
    .nav-head { min-height: 118px; margin-bottom: 10px; padding: 0 34px 0 126px; }
    .nav-greeting { margin: 22px 0 6px; }
    .nav-intro { margin-bottom: 10px; }
    .nav-block-title { margin: 9px 0 4px; }
    .nav-sub-title { margin: 9px 0 4px 20px; }
    table.nav-table { margin-bottom: 9px; }
    table.nav-table td { padding: 2px 7px; }
    .nav-total { margin: 9px 0 2px; }
    .nav-vat { margin-bottom: 10px; }
    .nav-footer { margin-top: auto; padding-top: 8px; font-size: 9px; }
    .nav-page2 > .nav-footer .left { max-width: 62%; }
    .nav-corner-bottom { bottom: 0; right: 0; width: 86px; }
    .nav-page2 > .nav-footer .right { padding-right: 96px; }
    table.nav-table, .nav-photos figure, .nav-signrow { page-break-inside: avoid; }
}

/* výběr položek při zakládání návrhu realizace */
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; }
.check-row {
    display: flex; gap: 8px; align-items: flex-start;
    border: 1px solid var(--border-2); border-radius: 6px; padding: 8px 10px;
    background: #fff; cursor: pointer; font-size: 12.5px;
}
.check-row:hover { background: var(--green-soft); }
.check-row input { margin-top: 2px; }
.check-row .muted { display: block; font-size: 11.5px; }

/* editor návrhu realizace */
.nav-section-box { border: 1px solid var(--border-2); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; background: #fff; }
.nav-section-box > header { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.nav-section-box > header input.title { flex: 1 1 auto; font-weight: bold; }
.nav-price-row { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.nav-price-row input.label { flex: 1 1 auto; }
.nav-price-row input.amount { width: 130px; text-align: right; }
.nav-price-row input.note { width: 110px; }
.nav-photo-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.nav-photo-grid figure { margin: 0; width: 160px; }
.nav-photo-grid img { width: 100%; height: 110px; object-fit: cover; border: 1px solid var(--border-2); border-radius: 4px; }
.nav-photo-grid figcaption { font-size: 11.5px; display: flex; justify-content: space-between; align-items: center; }
.check-inline { display: flex; gap: 7px; align-items: center; font-size: 12.5px; margin: 4px 0; }

/* řádky tlačítek, kde je každé tlačítko ve vlastním formuláři
   (stavy návrhu, akce v hlavičce) - aby zůstaly vedle sebe */
.page-header .tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.page-header .tools form.inline-form { display: inline-flex; width: auto; margin: 0; }
.filterbar.actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.filterbar.actions form.inline-form { display: inline-flex; width: auto; margin: 0; }
.filterbar.actions button.chip { cursor: pointer; font-family: inherit; }
