:root{
  --green:#0b5f35;
  --green2:#073b22;
  --accent:#d6a300;
  --bg:#f6f4ee;
  --panel:#fffdfa;
  --line:#e2dacb;
  --text:#172019;
  --muted:#68736a;
  --danger:#b42318;
  --income:#eef6ff;
  --expense:#effaf1;
  --new:#fff7db;
  --shadow:0 10px 28px #1b351f10;
}
*{box-sizing:border-box}
html{font-size:16px}
body{margin:0;font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;background:linear-gradient(180deg,#f8f6f0 0,#f2f5f0 100%);color:var(--text);font-size:15px;line-height:1.38}
a{color:var(--green);text-decoration:none}a:hover{text-decoration:underline}
.topbar{display:flex;justify-content:space-between;gap:1rem;align-items:center;padding:.55rem 1rem;background:linear-gradient(90deg,#122016,#073b22);color:#fff;position:sticky;top:0;z-index:10;box-shadow:0 4px 18px #0003;border-bottom:3px solid var(--accent)}
.brand{font-weight:850;color:#fff;font-size:1.02rem;letter-spacing:.2px;white-space:nowrap}.brand:hover{text-decoration:none}
.topbar nav{display:flex;gap:.4rem;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.topbar nav a,.linklike{color:#fff;background:#ffffff12;border:1px solid #ffffff22;border-radius:999px;font:inherit;font-weight:750;cursor:pointer;padding:.28rem .56rem;line-height:1.15;min-height:1.8rem}
.topbar nav a:hover,.linklike:hover{background:#ffffff20;text-decoration:none}
.container{max-width:1360px;margin:0 auto;padding:1rem}.view-classic .container{max-width:none}
.page-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin:.15rem 0 1rem}.page-head h1,.panel h1,.panel h2{margin:.05rem 0}.page-head h1{font-size:1.85rem}.panel h2{font-size:1.45rem}.muted{color:var(--muted);font-size:.9rem}.small-note{margin-top:.65rem}
.cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:.75rem;margin-bottom:1rem}.card,.panel{background:var(--panel);border:1px solid var(--line);border-radius:14px;padding:.9rem;box-shadow:var(--shadow)}.card h3{margin:0 0 .3rem;display:flex;justify-content:space-between;gap:.6rem}.card h3 span{color:var(--muted);font-weight:750}.big{font-size:1.5rem;font-weight:850}.pos{color:#087333}.neg{color:#9d5a00}.panel{margin-bottom:1rem}.narrow{max-width:900px}
.button,button{display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--text);padding:.34rem .56rem;font-weight:750;cursor:pointer;min-height:1.85rem;line-height:1.15;font-size:.92rem}button:hover,.button:hover{filter:brightness(.98);text-decoration:none}.primary{background:var(--green);border-color:var(--green);color:#fff}.secondary{background:#faf9f5}.danger{background:#fff4f4;border-color:#efb5b5;color:var(--danger)}button:disabled{opacity:.45;cursor:not-allowed}.small{padding:.23rem .46rem;border-radius:8px;font-size:.84rem;min-height:1.62rem}
.flash{padding:.6rem .8rem;border-radius:11px;margin:0 0 1rem;border:1px solid}.flash-success{background:#edf8ef;border-color:#b9e2c3}.flash-error{background:#fff0f0;border-color:#f1b8b8}
.child-tabs{display:flex;gap:.4rem;flex-wrap:wrap;margin:0 0 1rem}.child-tabs a{padding:.34rem .62rem;border:1px solid var(--line);background:#fff;border-radius:999px;font-weight:750}.child-tabs a.active{background:var(--green);border-color:var(--green);color:#fff}
.grid-form,.filter-form{display:grid;grid-template-columns:repeat(auto-fit,minmax(165px,1fr));gap:.55rem .7rem;align-items:end}.filter-form{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}.full{grid-column:1/-1}
label{display:flex;flex-direction:column;gap:.2rem;font-weight:750;color:#25372b;font-size:.88rem}label.check{display:grid;grid-template-columns:1.05rem 1fr;align-items:start;gap:.45rem;margin-top:.15rem;line-height:1.25}label.check.full{grid-column:1/-1}
input,select,textarea{width:100%;border:1px solid #ccc5b7;border-radius:8px;padding:.33rem .5rem;font:inherit;background:#fff;min-height:1.9rem;font-size:.93rem}textarea{min-height:4.8rem;resize:vertical}input:focus,select:focus,textarea:focus{outline:2px solid #b8d7c4;border-color:#6fa77f}
input[type="checkbox"]{appearance:none;-webkit-appearance:none;width:1rem;height:1rem;min-height:0;margin:.12rem 0 0;border:1.5px solid #9aa895;border-radius:4px;background:#fff;display:inline-grid;place-content:center;flex:0 0 auto}input[type="checkbox"]::before{content:"";width:.52rem;height:.52rem;transform:scale(0);transition:transform .08s ease-in-out;box-shadow:inset 1em 1em var(--green);clip-path:polygon(14% 44%,0 62%,38% 100%,100% 18%,82% 0,34% 67%)}input[type="checkbox"]:checked::before{transform:scale(1)}input[type="checkbox"]:checked{border-color:var(--green);background:#eef8f1}
.form-actions{display:flex;gap:.42rem;flex-wrap:wrap;align-items:center}.inline-form{display:flex;gap:.45rem;flex-wrap:wrap;align-items:end}.inline-form input,.inline-form select{width:auto;min-width:180px}.bulkbar{display:flex;gap:.4rem;flex-wrap:wrap;margin:.3rem 0 .65rem;align-items:center}.bulkbar select{max-width:180px}.bulkbar input{max-width:220px}
.records-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;flex-wrap:wrap;margin-bottom:.45rem}.records-head h2{margin:0}.export-actions{display:flex;align-items:center;gap:.4rem;flex-wrap:wrap}.export-actions .muted{margin-right:.1rem}.table-wrap{width:100%;overflow-x:auto;overflow-y:visible;border:1px solid var(--line);border-radius:12px;background:#fff}.table-wrap table{min-width:980px}
table{width:100%;border-collapse:separate;border-spacing:0;background:#fff}th,td{padding:.48rem .58rem;border-bottom:1px solid var(--line);vertical-align:top;text-align:left}th{background:#eee8dc;font-weight:850;position:static;z-index:auto}tbody tr:last-child td{border-bottom:0}tr.row-expense{background:var(--expense)}tr.row-income{background:var(--income)}tr.row-status-rejected{opacity:.72}.muted-row{opacity:.65}.sort{color:var(--text)}.checkcol{width:34px}.status,.type{display:inline-flex;padding:.16rem .4rem;border-radius:99px;font-size:.78rem;font-weight:850}.status-new{background:var(--new);color:#8a5a00}.status-approved{background:#e8f7ec;color:#12652d}.status-rejected{background:#ffecec;color:#a12018}.type-expense{background:#dff6e6}.type-income{background:#e0f0ff}.reject{color:var(--danger);font-weight:850}.amount{font-weight:850;white-space:nowrap}.actions{display:flex;gap:.3rem;flex-wrap:wrap;min-width:220px;border:0}.actions form{display:inline-flex;gap:.25rem;align-items:center}.reason{max-width:120px;padding:.28rem}.attachment{display:block;font-size:.86rem;margin:.1rem 0}.pagination{display:flex;gap:.35rem;flex-wrap:wrap;margin-top:.85rem}.pagination a{padding:.3rem .52rem;border:1px solid var(--line);border-radius:8px;background:#fff}.pagination a.active{background:var(--green);color:#fff;border-color:var(--green)}code{white-space:pre-wrap;font-size:.85rem}.print-only{display:none!important}
@media(max-width:760px){body{font-size:15px}.topbar{align-items:flex-start;flex-direction:column}.topbar nav{gap:.35rem;justify-content:flex-start}.topbar nav a,.linklike{padding:.28rem .5rem}.page-head{align-items:stretch;flex-direction:column}.container{padding:.7rem}.cards{grid-template-columns:1fr}.filter-form,.grid-form{grid-template-columns:1fr}.inline-form input,.inline-form select{width:100%}.records-head{align-items:flex-start;flex-direction:column}.table-wrap{overflow:visible;border:0;background:transparent}.table-wrap table{min-width:0}table,thead,tbody,tr,th,td{display:block;width:100%}thead{display:none}tr{border:1px solid var(--line);border-radius:12px;margin:.7rem 0;padding:.4rem;background:#fff}td{border:0;padding:.4rem .5rem}td::before{content:attr(data-label);display:block;color:var(--muted);font-size:.75rem;font-weight:850;text-transform:uppercase}.actions{min-width:0}.reason{max-width:100%}.bulkbar input,.bulkbar select{max-width:none;width:100%}}
@media print{*{box-shadow:none!important}body{background:#fff;color:#000;font-size:12px}.topbar,.form-actions,.bulkbar,.child-tabs,.page-head .button,.export-actions,.actions,.pagination,.flash,button,.button,.no-print{display:none!important}.container{max-width:none;padding:0}.panel,.card{border:1px solid #999;border-radius:0;padding:.55rem;margin:0 0 .7rem;background:#fff}.cards{display:block}.card{break-inside:avoid;margin-bottom:.45rem}.table-wrap{overflow:visible;border:0}.table-wrap table{min-width:0}th,td{padding:.25rem .35rem;border-bottom:1px solid #bbb}th{background:#eee!important}.print-only{display:block!important}a{color:#000;text-decoration:none}.page-head{display:block;margin:0 0 .5rem}}

/* v1.2.3 */
.attachment-item{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap;margin:.12rem 0}.attachment-delete{display:inline-flex;margin:0}.attachment-delete button{min-height:1.35rem;padding:.12rem .32rem;font-size:.76rem}.attachment{display:inline-flex;align-items:center;gap:.2rem}
tr.row-status-rejected td:not(.actions){text-decoration:line-through;text-decoration-thickness:1px;text-decoration-color:#9d2b25}tr.row-status-rejected .status, tr.row-status-rejected .type{text-decoration:none}.row-status-rejected .reject{text-decoration:none;display:inline-block}
@media print{.attachment-delete{display:none!important}tr.row-status-rejected td:not(.actions){text-decoration:line-through}}

.compact-check { display: inline-flex; align-items: center; gap: 0.45rem; margin: 0.35rem 0 0.7rem; font-weight: 700; }
.compact-check input[type="checkbox"] { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: #00864b; }

/* v1.2.5 */
.brand-user{font-weight:700;opacity:.88;font-size:.92em}.badge{display:inline-flex;align-items:center;border-radius:999px;padding:.1rem .38rem;font-size:.75rem;font-weight:850;background:#eee8dc;color:#25372b;text-decoration:none}.badge.ok{background:#e8f7ec;color:#12652d}.table-wrap form{margin:0}


/* v1.2.6 - sjednoceni prihlaseni, checkboxu a tabulek tokenu */
.auth-card{max-width:520px;margin:3.2rem auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:1.25rem;box-shadow:var(--shadow)}
.auth-card h1{margin:.1rem 0 1rem;font-size:1.75rem}.auth-card form{display:grid;gap:.65rem}.auth-card .login-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-top:.2rem}.auth-card .remember-line{display:inline-flex;align-items:center;gap:.48rem;font-weight:750;color:#25372b;line-height:1.2;margin:0}.auth-card .remember-line input[type="checkbox"]{margin:0}.auth-card button{min-width:7rem}.auth-card .muted{margin:.9rem 0 0}
.form-card{max-width:1040px}.grid-form.user-form{grid-template-columns:repeat(4,minmax(155px,1fr));align-items:end}.grid-form.user-form label.check{align-self:center;margin-top:1.05rem}.grid-form.user-form textarea{min-height:5.2rem}.checkbox-text{display:block;line-height:1.24}.token-panel{max-width:1320px}.token-table{table-layout:auto}.token-table th:first-child,.token-table td:first-child{min-width:520px;max-width:none;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.token-table th:not(:first-child),.token-table td:not(:first-child){white-space:nowrap}.token-table td{vertical-align:middle}.saved-login-note{max-width:900px}.login-agent{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.82rem;line-height:1.28;color:#26352b}.profile-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:.65rem;margin:.5rem 0 .9rem}.profile-summary div{background:#faf9f5;border:1px solid var(--line);border-radius:10px;padding:.55rem}.profile-summary strong{display:block;font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.02em;margin-bottom:.15rem}
@media(max-width:760px){.auth-card{margin:1rem auto;padding:1rem}.auth-card .login-actions{align-items:flex-start;flex-direction:column}.grid-form.user-form{grid-template-columns:1fr}.grid-form.user-form label.check{margin-top:.15rem}.token-table th:first-child,.token-table td:first-child{min-width:0}.login-agent{font-size:.8rem}}


/* v1.2.7 - prihlasovaci checkbox v jednom radku */
.auth-card .login-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-top:.35rem}
.auth-card .remember-line{display:flex!important;flex-direction:row!important;align-items:center!important;gap:.5rem;margin:0;min-height:2rem;flex:1 1 auto}
.auth-card .remember-line input[type="checkbox"]{margin:0;flex:0 0 auto}
.auth-card .remember-line label{display:block!important;flex:0 1 auto;margin:0;font-weight:750;color:#25372b;line-height:1.2;font-size:.9rem}
.auth-card .login-actions .primary{margin-left:auto}
@media(max-width:520px){.auth-card .login-actions{align-items:stretch;flex-direction:column}.auth-card .login-actions .primary{margin-left:0;width:100%}.auth-card .remember-line{width:100%}}

/* v1.3.0 - prehlednejsi radky, tokeny jako karty, obnova hesla */
.robot-field{position:absolute;left:-9999px;top:auto;width:1px;height:1px;overflow:hidden}
.auth-links{margin:.7rem 0 .2rem;font-weight:750}
.token-list{display:grid;gap:.65rem}.token-card{display:grid;grid-template-columns:minmax(320px,1.8fr) minmax(140px,.6fr) minmax(140px,.6fr) minmax(140px,.6fr) auto;gap:.6rem;align-items:center;border:1px solid var(--line);border-radius:12px;background:#fff;padding:.7rem}.token-card.current{border-color:#7ebf91;background:#f2fbf4}.token-card strong{display:block;font-size:.78rem;color:var(--muted);text-transform:uppercase;letter-spacing:.02em;margin-bottom:.1rem}.token-card span{display:block}.token-device .badge{display:inline-flex;margin-top:.25rem}.token-card form{justify-self:end}.token-panel,.panel.narrow:has(.token-list){max-width:1320px}
.table-wrap tbody tr{transition:background-color .12s ease, box-shadow .12s ease, transform .04s ease}.table-wrap tbody tr:hover{box-shadow:inset 4px 0 0 var(--accent);filter:brightness(.985)}tr.row-status-new{background:#eef6ff!important}tr.row-status-approved{background:#ecf9ef!important}tr.row-status-rejected{background:#f1f1ee!important;color:#666;opacity:1!important}tr.row-status-rejected:hover{background:#ecece7!important}.amount.expense-amount{color:#b42318}.amount.income-amount{color:#172019}.type-expense{background:#ffe9e6;color:#9d2318}.type-income{background:#eeeeee;color:#172019}.row-status-rejected .amount{color:#666!important}.row-status-rejected .status-rejected{background:#e7e0dc;color:#8d2721}.table-wrap tbody tr.row-status-new:hover{background:#e3f0ff!important}.table-wrap tbody tr.row-status-approved:hover{background:#e0f5e6!important}.table-wrap tbody tr.row-status-rejected:hover{background:#e7e7e2!important}
@media(max-width:900px){.token-card{grid-template-columns:1fr}.token-card form{justify-self:start}.token-card{align-items:start}.login-agent{word-break:break-word}}
@media print{.token-card{display:block;border:1px solid #aaa;margin-bottom:.4rem}.table-wrap tbody tr:hover{box-shadow:none;filter:none}}

/* v1.3.2 - udrzba a mazani dat */
.maintenance-form{display:grid;gap:.55rem}.maintenance-warning code{background:#f4efe4;border:1px solid var(--line);border-radius:6px;padding:.05rem .25rem}.danger-zone{border-color:#efb5b5;background:#fffafa}.danger-zone h2{color:var(--danger)}.danger-zone ul,.panel ul{margin:.45rem 0 .9rem;padding-left:1.2rem}.danger-zone li,.panel li{margin:.22rem 0}.bulkbar select option[value="delete"]{color:var(--danger);font-weight:850}

/* v1.3.3 - srozumitelnejsi zustatky a cistsi stavove rozliseni */
.balance-card .balance-label{display:inline-flex;align-items:center;border-radius:999px;padding:.18rem .48rem;font-size:.82rem;font-weight:900;margin:.1rem 0 .25rem;background:#eee8dc;color:#25372b}
.balance-card .balance-help{margin:.1rem 0 .35rem;max-width:34rem}
.balance-card.balance-owe-child{border-left:6px solid #b42318;background:#fff4f2;box-shadow:0 10px 22px rgba(180,35,24,.10)}.balance-card.balance-owe-child .big{color:#b42318}.balance-card.balance-owe-child .balance-label{background:#ffe0dc;color:#9c1c13}.balance-card.balance-owe-child .muted{color:#6d413c}
.balance-card.balance-child-owes{border-left:6px solid #087333;background:#f0fbf3;box-shadow:0 10px 22px rgba(8,115,51,.10)}.balance-card.balance-child-owes .big{color:#087333}.balance-card.balance-child-owes .balance-label{background:#d8f4df;color:#075c2b}.balance-card.balance-child-owes .muted{color:#375b42}
.balance-card.balance-even{border-left:6px solid #748078;background:#f6f7f4;box-shadow:0 10px 22px rgba(37,55,43,.06)}.balance-card.balance-even .big{color:#25372b}.balance-card.balance-even .balance-label{background:#e7ebe5;color:#25372b}
.table-wrap tbody tr.row-status-new{background:#edf6ff!important;border-left:4px solid #3b82c4}.table-wrap tbody tr.row-status-approved{background:#ecf9ef!important;border-left:4px solid #087333}.table-wrap tbody tr.row-status-rejected{background:#eeeeea!important;color:#666;border-left:4px solid #9b9b93;opacity:1!important}
.table-wrap tbody tr:hover{box-shadow:inset 5px 0 0 var(--accent), 0 2px 10px #00000012;filter:none}.table-wrap tbody tr.row-status-new:hover{background:#dfefff!important}.table-wrap tbody tr.row-status-approved:hover{background:#ddf4e4!important}.table-wrap tbody tr.row-status-rejected:hover{background:#e2e2dc!important}
.amount.expense-amount::before{content:"- ";font-weight:900}.amount.income-amount::before{content:"+ ";font-weight:900}.row-status-rejected .amount::before{color:#666}
.password-token-hint{grid-column:1/-1;margin-top:-.2rem}.token-card{overflow:hidden}.token-device{min-width:0}.token-card span{overflow-wrap:anywhere;word-break:break-word}.login-agent{white-space:normal;overflow-wrap:anywhere;word-break:break-word}
@media(max-width:760px){.balance-card{border-left-width:4px}.table-wrap tbody tr.row-status-new,.table-wrap tbody tr.row-status-approved,.table-wrap tbody tr.row-status-rejected{border-left-width:4px}}

/* v1.4.0 - pozvanky, hesla a srozumitelnejsi prehledy */
.inline-action{display:inline-flex;align-items:center;margin:0 .15rem}.action-cell{white-space:nowrap}.invite-panel{border-left:5px solid var(--green)}.invite-panel input[readonly]{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;font-size:.86rem}.password-help{background:#f7f4ec;border:1px solid var(--line);border-radius:10px;padding:.55rem .7rem;color:#25372b;font-size:.88rem}.password-help ul{margin:.35rem 0 0;padding-left:1.2rem}.password-help li{margin:.12rem 0}.amount-expense{color:#087333}.amount-income{color:#b42318}.login-card{max-width:560px;margin:3rem auto;background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:1.25rem;box-shadow:var(--shadow)}.login-form{display:grid;gap:.65rem}@media(max-width:760px){.action-cell{white-space:normal}.inline-action{margin-top:.25rem}.login-card{margin:1rem auto;padding:1rem}}

/* v1.4.2 - presun prumeru do karet, rychly filtr a pozvanka */
.avg-inline{margin-top:.28rem;border-top:1px dashed var(--line);padding-top:.28rem}.avg-inline strong{color:#25372b}.child-tabs a.waiting{border-color:#b8cde6;background:#f1f7ff;color:#174267}.child-tabs a.waiting.active{background:#174267;border-color:#174267;color:#fff}.success-box{background:#edf8ef;border:1px solid #b9e2c3;border-radius:10px;padding:.55rem .7rem;color:#12652d;font-weight:750}.invite-done-card{max-width:760px}.help-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:.65rem;margin:.65rem 0}.help-grid>div{background:#faf9f5;border:1px solid var(--line);border-radius:10px;padding:.65rem}.help-grid strong{color:#172019}.profile-note-help{font-size:.85rem;color:var(--muted);margin-top:-.1rem}
@media print{.child-tabs a.waiting,.success-box,.help-grid>div{border-color:#999;background:#fff;color:#000}}

/* v1.4.6 - rychlé filtry */
.records-title-row{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}.quick-filters{display:flex;align-items:center;gap:.35rem;flex-wrap:wrap}.quick-filters .button.active{background:#174267;border-color:#174267;color:#fff}.quick-filters .button.danger-soft{background:#6b2d2d;border-color:#6b2d2d;color:#fff}
@media(max-width:760px){.records-title-row{align-items:flex-start;flex-direction:column}.quick-filters .button{width:100%;text-align:center}}
@media print{.quick-filters{display:none!important}}


.record-edit-panel { max-width: 980px; }
.subpanel { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.subpanel h2 { margin-top: 0; font-size: 1.25rem; }
.attachment-list { display: grid; gap: .5rem; }
.attachment-row { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--soft); }
.status-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.inline-status-form { display: inline-flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
@media (max-width: 720px) { .attachment-row, .status-actions, .inline-status-form { align-items: stretch; } .inline-status-form input.reason { width: 100%; } }

/* v1.5.1 - editace záznamu a granularni notifikace */
.hidden-form{display:none!important}.notification-options{border:1px solid var(--line);border-radius:10px;padding:.65rem .75rem;background:#fbfaf6}.notification-options legend{font-weight:850;padding:0 .25rem}.notification-options .compact{margin:.28rem 0;display:grid;grid-template-columns:1rem 1fr}.record-form .attachment-upload-block{border:1px solid var(--line);border-radius:10px;background:#fbfaf6;padding:.55rem .65rem}.inline-attachments{margin-top:.55rem;display:grid;gap:.35rem}.inline-attachments>strong{font-size:.95rem}.attachment-row.compact-row{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;padding:.35rem .45rem;border:1px solid var(--line);border-radius:8px;background:#fff}.record-actions{margin-top:.15rem}.record-actions .inline-reason{width:auto;max-width:180px;min-width:150px}.record-edit-panel .small-note{margin-top:.75rem}.record-edit-panel{max-width:1280px}.record-form{align-items:end}.record-form textarea{min-height:5.2rem}
@media(max-width:760px){.record-actions .inline-reason{width:100%;max-width:none}.notification-options .compact{grid-template-columns:1rem 1fr}.record-form .attachment-upload-block{padding:.5rem}.attachment-row.compact-row{align-items:flex-start;flex-direction:column}}
.detail-list{display:grid;gap:.35rem;margin:.75rem 0}.detail-list>div{display:grid;grid-template-columns:minmax(180px,260px) 1fr;gap:.75rem;padding:.35rem 0;border-bottom:1px solid var(--line)}.detail-list dt{font-weight:800;color:var(--muted)}.detail-list dd{margin:0}.detail-list.compact>div{padding:.25rem 0}@media(max-width:720px){.detail-list>div{grid-template-columns:1fr;gap:.1rem}}

/* v1.5.6 - dvourezimove zobrazeni: klasicke / mobilni */
@media(max-width:760px){
  body.view-classic{font-size:15px;min-width:980px;overflow-x:auto}
  body.view-classic .topbar{align-items:center;flex-direction:row}
  body.view-classic .topbar nav{justify-content:flex-end}
  body.view-classic .container{max-width:none;padding:1rem}
  body.view-classic .page-head{align-items:center;flex-direction:row}
  body.view-classic .cards{grid-template-columns:repeat(auto-fit,minmax(230px,1fr))}
  body.view-classic .filter-form{grid-template-columns:repeat(auto-fit,minmax(145px,1fr))}
  body.view-classic .grid-form{grid-template-columns:repeat(auto-fit,minmax(165px,1fr))}
  body.view-classic .inline-form input,
  body.view-classic .inline-form select{width:auto}
  body.view-classic .records-head{align-items:center;flex-direction:row}
  body.view-classic .records-title-row{align-items:center;flex-direction:row}
  body.view-classic .quick-filters .button{width:auto;text-align:left}
  body.view-classic .table-wrap{overflow-x:auto;overflow-y:visible;border:1px solid var(--line);background:#fff}
  body.view-classic .table-wrap table{min-width:980px;width:100%;display:table}
  body.view-classic table{display:table;width:100%}
  body.view-classic thead{display:table-header-group}
  body.view-classic tbody{display:table-row-group}
  body.view-classic tr{display:table-row;width:auto;border:0;border-radius:0;margin:0;padding:0;background:transparent}
  body.view-classic th,
  body.view-classic td{display:table-cell;width:auto;border-bottom:1px solid var(--line);padding:.48rem .58rem;vertical-align:top}
  body.view-classic thead th{display:table-cell}
  body.view-classic td::before{content:none;display:none}
  body.view-classic .actions{min-width:220px}
  body.view-classic .reason{max-width:120px}
  body.view-classic .bulkbar input{max-width:220px;width:auto}
  body.view-classic .bulkbar select{max-width:180px;width:auto}
  body.view-classic .action-cell{white-space:nowrap}
  body.view-classic .inline-action{margin:0 .15rem}
}

/* v1.5.9 */
@media(min-width:761px){.record-form .record-title-field{grid-column:span 2}.record-form label:has(input[name=amount]){max-width:220px}}
.balance-card.balance-child-owes .balance-help{max-width:58rem}
.stats-max-expense-link{font-weight:850;text-decoration:none;border-bottom:1px dotted currentColor}.stats-max-expense-link:hover{text-decoration:underline}

/* v1.5.12 - barvy podle stavu dítěte: červená = dítě čeká na proplacení, zelená = dítě je přeplacené / má vrátit, šedá = vyrovnáno */


/* v1.6.1 - nastaveni: kompaktnejsi notifikace o zustatku a vyraznejsi hover */
.settings-balance-alerts .settings-alert-toolbar{display:flex;align-items:flex-end;gap:.75rem;flex-wrap:wrap;margin:.55rem 0 .7rem}
.settings-balance-alerts .settings-alert-interval{max-width:210px;min-width:190px}
.settings-balance-alerts .settings-alert-interval input{max-width:110px}
.settings-balance-alerts .settings-alert-help{max-width:820px;margin:0 0 .25rem}
.amount-with-symbol{display:inline-flex;align-items:center;gap:.35rem;max-width:220px}
.amount-with-symbol .balance-alert-limit{width:145px;max-width:145px;text-align:right}
.settings-balance-alerts .table-wrap table{min-width:760px}
.settings-balance-alerts th:nth-child(1),.settings-balance-alerts td:nth-child(1){width:13rem}
.settings-balance-alerts th:nth-child(2),.settings-balance-alerts td:nth-child(2){width:8rem}
.settings-balance-alerts th:nth-child(3),.settings-balance-alerts td:nth-child(3){width:10rem}
.settings-balance-alerts th:nth-child(4),.settings-balance-alerts td:nth-child(4){width:16rem}
.table-wrap tbody tr:not(.row-status-new):not(.row-status-approved):not(.row-status-rejected):hover{background:#fff6df!important;box-shadow:inset 5px 0 0 var(--accent), 0 2px 12px #00000016}
@media(max-width:760px){.settings-balance-alerts .settings-alert-toolbar{align-items:stretch}.settings-balance-alerts .settings-alert-interval,.settings-balance-alerts .settings-alert-interval input{max-width:none;width:100%}.amount-with-symbol{max-width:none}.amount-with-symbol .balance-alert-limit{width:12rem;max-width:100%}}

/* v1.7.0 - exporty a tisk sestav */
.section-head-actions{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.35rem}.section-head-actions h2{margin:0}.print-report{max-width:none}.print-report h1.print-only{font-size:1.4rem;margin:0 0 .4rem}.print-report .table-wrap table{min-width:0}.print-report th,.print-report td{font-size:.9rem}
@media(max-width:760px){.section-head-actions{align-items:flex-start;flex-direction:column}.section-head-actions .export-actions{width:100%}.section-head-actions .export-actions .button{flex:1 1 auto}}
@media print{.print-report{border:0!important;padding:0!important}.print-report .table-wrap{border:0!important}.print-report table{font-size:10px}.print-report th,.print-report td{padding:.22rem .3rem}.section-head-actions .export-actions{display:none!important}}

/* v1.7.2 - audit: klikaci ID zaznamu */
.audit-record-link{font-weight:850;text-decoration:none;border-bottom:1px dotted currentColor}.audit-record-link:hover{text-decoration:underline}
/* v1.8.0 - informativni příspěvky/odmeny */
.type-bonus{background:#f3e8ff!important;color:#6b21a8!important}.amount.bonus-amount{color:#6b21a8}.amount.bonus-amount::before{content:""!important}.table-wrap tbody tr.row-bonus{background:#fbf5ff!important;border-left:4px solid #8b5cf6}.table-wrap tbody tr.row-bonus:hover{background:#f3e8ff!important}.row-bonus-soft{background:#fbf5ff}.bonus-inline strong{color:#6b21a8}.row-status-rejected .amount.bonus-amount{color:#666!important}
.table-wrap tbody tr.row-status-rejected.row-bonus{background:#eeeeea!important;border-left-color:#9b9b93}.table-wrap tbody tr.row-status-rejected.row-bonus:hover{background:#e2e2dc!important}

/* v1.8.1 - prehlednejsi mimoradne prispevky a statistiky */
.bonus-inline{margin-top:.45rem;padding-top:.45rem;border-top:1px dashed rgba(107,33,168,.22);line-height:1.35}.bonus-inline strong{white-space:nowrap}.stats-group{background:#f8fafc;border-style:dashed}.stats-group h2{margin-bottom:.25rem}
.stats-year-shortcut{max-width:8rem}

/* v1.8.3 - drobne zprehledneni karet a vyraznejsi mimoradne prispevky */
.pending-inline{margin-top:.22rem}.pending-inline strong{font-weight:900;color:#174267}.balance-card.balance-child-owes .pending-inline strong{color:#0b5f35}.balance-card.balance-parent-owes .pending-inline strong{color:#b42318}
.balance-quick-action{margin-top:.7rem}.balance-quick-action .button{box-shadow:0 1px 0 #00000012}
.bonus-inline{margin-top:.58rem;padding-top:.5rem}.bonus-inline strong{font-weight:900;color:#5b21b6}
.type-bonus{background:#e9d5ff!important;color:#581c87!important;border:1px solid #d8b4fe}.amount.bonus-amount{color:#5b21b6}.table-wrap tbody tr.row-bonus,.table-wrap tbody tr.row-bonus.row-status-approved,.table-wrap tbody tr.row-bonus.row-status-new{background:#f5e8ff!important;border-left:5px solid #7e22ce!important}.table-wrap tbody tr.row-bonus:hover,.table-wrap tbody tr.row-bonus.row-status-approved:hover,.table-wrap tbody tr.row-bonus.row-status-new:hover{background:#ecd7ff!important;box-shadow:inset 5px 0 0 #7e22ce,0 2px 12px #00000016}.table-wrap tbody tr.row-bonus .type-bonus{font-weight:900}

/* v1.8.4 - výraznější odlišení mimořádného příspěvku od nového záznamu */
.table-wrap tbody tr.row-bonus,
.table-wrap tbody tr.row-bonus.row-status-approved,
.table-wrap tbody tr.row-bonus.row-status-new {
  background: #f0dcff !important;
  border-left: 6px solid #6d28d9 !important;
}
.table-wrap tbody tr.row-bonus td {
  border-bottom-color: #d8b4fe;
}
.table-wrap tbody tr.row-bonus:hover,
.table-wrap tbody tr.row-bonus.row-status-approved:hover,
.table-wrap tbody tr.row-bonus.row-status-new:hover {
  background: #e2c2ff !important;
  box-shadow: inset 6px 0 0 #5b21b6, 0 2px 14px #6d28d933 !important;
}
.type-bonus {
  background: #d8b4fe !important;
  color: #3b0764 !important;
  border: 1px solid #a855f7 !important;
  font-weight: 900;
}
.amount.bonus-amount,
.bonus-inline strong {
  color: #4c1d95 !important;
}

/* v1.8.5 - mobilni nastaveni: tabulky limitu zustatku se nesmi roztahovat mimo panel */
@media(max-width:760px){
  body.view-mobile .settings-balance-alerts .table-wrap,
  body:not(.view-classic) .settings-balance-alerts .table-wrap{
    width:100%;
    max-width:100%;
    overflow:visible;
  }
  body.view-mobile .settings-balance-alerts .table-wrap table,
  body:not(.view-classic) .settings-balance-alerts .table-wrap table{
    min-width:0!important;
    width:100%!important;
  }
  body.view-mobile .settings-balance-alerts tr,
  body:not(.view-classic) .settings-balance-alerts tr{
    width:100%;
    max-width:100%;
  }
  body.view-mobile .settings-balance-alerts td,
  body:not(.view-classic) .settings-balance-alerts td{
    width:100%!important;
    max-width:100%;
    overflow-wrap:anywhere;
  }
  body.view-mobile .settings-balance-alerts .amount-with-symbol,
  body:not(.view-classic) .settings-balance-alerts .amount-with-symbol{
    width:100%;
    max-width:100%;
    justify-content:flex-start;
  }
  body.view-mobile .settings-balance-alerts .amount-with-symbol .balance-alert-limit,
  body:not(.view-classic) .settings-balance-alerts .amount-with-symbol .balance-alert-limit{
    width:10rem;
    max-width:calc(100% - 2.5rem);
  }
}

/* v1.8.6 - napoveda a ikona hlavniho odkazu */
.brand{display:inline-flex;align-items:center;gap:.35rem}
.brand-icon{width:1.25rem;height:1.25rem;border-radius:5px;display:inline-block;vertical-align:middle;box-shadow:0 0 0 1px #ffffff33}
.help-panel{max-width:1120px;margin-left:auto;margin-right:auto}
.help-panel h2{border-bottom:1px solid var(--line);padding-bottom:.25rem;margin-bottom:.65rem}
.help-panel h3{font-size:1.05rem;margin:.75rem 0 .25rem;color:#203528}
.help-panel p{margin:.35rem 0 .55rem}
.help-panel ul,.help-panel ol{margin:.4rem 0 .65rem;padding-left:1.35rem}
.help-panel li{margin:.18rem 0}
.help-flow{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:.7rem;margin:.65rem 0}.help-flow>div{background:#faf9f5;border:1px solid var(--line);border-radius:10px;padding:.7rem}
@media(max-width:760px){.brand{white-space:normal}.brand-icon{width:1.15rem;height:1.15rem}.help-panel{margin-left:0;margin-right:0}.help-panel h2{font-size:1.25rem}.help-flow{grid-template-columns:1fr}}
@media print{.brand-icon{display:none}.help-panel{max-width:none;border:0;border-bottom:1px solid #aaa;border-radius:0}.help-flow>div{background:#fff}}
