/*
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 * APLIKACE:   MojeKarty
 * SOUBOR:     assets/css/style.css
 * VERZE:      1.0.1
 * DATUM:      30.10.2026
 * AUTOR:      Jan JENKA - Apps & Solutions
 * POPIS:      Responzivni graficky styl
 * ZMENY:      1.0.1 - Filtry, seznam, detail, editace
 * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
 */

:root{font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;color:#1a2944;background:#f5f7fc;font-synthesis:none}
*{box-sizing:border-box}body{margin:0}a{color:#2259d5;text-decoration:none}a:hover{text-decoration:underline}
.topbar{height:76px;background:#fff;border-bottom:1px solid #e5eaf2;display:flex;justify-content:space-between;align-items:center;padding:0 max(24px,calc((100vw - 1200px)/2));gap:16px}
.brand{font-weight:800;font-size:23px;color:#153d95;white-space:nowrap}.brand-icon{color:#fff;background:#2864dd;border-radius:10px;padding:5px 10px;margin-right:5px}
nav{display:flex;align-items:center;gap:18px}nav a{white-space:nowrap}.user-name{color:#65748e;font-size:14px}.inline-form{display:inline}
.nav-button{background:#eaf0ff;border:0;border-radius:9px;padding:10px 14px;color:#2259d5;font-weight:600;cursor:pointer}
.container{max-width:1248px;padding:38px 24px 64px;margin:auto;min-height:calc(100vh - 145px)}
h1{font-size:clamp(26px,3vw,36px);letter-spacing:-.03em;margin:0 0 8px}h2{font-size:19px;margin:0 0 16px}h3{margin:20px 0 30px;font-size:23px}
.muted{color:#728099;line-height:1.6;margin:6px 0 20px}.small{font-size:13px}.eyebrow{font-size:12px;font-weight:800;letter-spacing:.13em;color:#346cda;margin:0 0 10px}
.dashboard-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:32px}
.button{display:inline-block;background:#255dd8;color:white;border:0;border-radius:10px;padding:13px 19px;font:inherit;font-weight:650;cursor:pointer;text-align:center}
.button:hover{background:#1847b5;text-decoration:none}.button.danger{background:#b73748}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:28px}
.section-heading{display:flex;align-items:center;justify-content:space-between}.counter{background:#e8efff;color:#2859b6;font-size:13px;padding:4px 9px;border-radius:20px}
.search-wrap input{width:100%;margin-bottom:22px}.card-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.loyalty-card{background:linear-gradient(145deg,#fff,#f7faff);border:1px solid #e3e9f5;border-radius:17px;padding:24px;box-shadow:0 7px 24px #173e7d0a;min-height:225px;display:flex;flex-direction:column}
.card-top,.card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px}.card-symbol{color:#275cd1;font-size:28px}.card-category{font-size:12px;color:#64738c}
.card-code{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;color:#384a68;overflow-wrap:anywhere}.card-bottom{font-size:12px;color:#75829a;margin-top:auto;padding-top:24px}
.side-panel,.auth-panel,.detail-panel{background:#fff;border:1px solid #e3e9f5;border-radius:17px;padding:28px;box-shadow:0 7px 24px #173e7d08;margin-bottom:18px}
.side-icon{font-size:29px;margin-bottom:12px}.side-panel p{color:#69778f;line-height:1.55}.lock-label{background:#f0edff;color:#6e4fbb;border-radius:8px;padding:11px 13px;font-size:12px;font-weight:750}
.auth-panel{max-width:450px;margin:30px auto}.auth-panel.wide{max-width:620px}.stack{display:flex;flex-direction:column;gap:18px;margin-top:24px}
label{display:block;font-size:14px;font-weight:650}input,select{display:block;width:100%;padding:13px 14px;margin-top:8px;border:1px solid #cdd7e7;border-radius:10px;background:white;font:inherit;color:#1a2944}
input:focus,select:focus{outline:3px solid #dce8ff;border-color:#3c73dd}.error,.notice{border-radius:10px;padding:13px 16px;margin:0 0 20px}.error{background:#fff0f0;color:#8c2530}.notice{background:#eaf8ef;color:#205b3c}
.back-link{display:inline-block;margin-bottom:24px}.detail-panel{max-width:650px}.big-code{background:#f3f6fc;border-radius:12px;padding:25px;font:22px ui-monospace,Consolas,monospace;overflow-wrap:anywhere;margin:24px 0}
.empty-state{background:#fff;border:1px dashed #bdcce5;border-radius:14px;padding:32px;text-align:center;color:#687791}.footer{text-align:center;color:#8995a9;font-size:12px;padding:20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(max-width:900px){.dashboard-grid{grid-template-columns:1fr}.sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.side-panel{margin:0}}
@media(max-width:620px){.topbar{padding:0 16px;height:66px}.brand{font-size:19px}.user-name{display:none}nav{gap:10px}.container{padding:25px 16px 50px}.dashboard-heading{align-items:flex-start;flex-direction:column}.dashboard-heading .button{width:100%}.card-grid,.sidebar{grid-template-columns:1fr}.loyalty-card{min-height:200px}.auth-panel,.side-panel,.detail-panel{padding:22px}h1{font-size:27px}}

/* 1.0.1 – rozšíření seznamu a detailu */
.filters{display:grid;grid-template-columns:minmax(0,1fr) 200px;gap:12px;align-items:start}.filters .search-wrap input{margin-bottom:12px}.filters select{margin-top:8px}.favorite-filter{display:flex;align-items:center;gap:9px;margin:4px 0 18px;color:#566780;font-size:13px}.favorite-filter input,.checkbox-line input{width:18px;height:18px;margin:0}.checkbox-line{display:flex;align-items:center;gap:10px}.view-switch{display:flex;gap:5px}.view-switch button{background:#eaf0ff;color:#315fbd;border:0;border-radius:7px;padding:8px 12px;cursor:pointer}.view-switch button.active{background:#245bd4;color:white}.card-actions{display:flex;gap:16px;align-items:center}.favorite-star{color:#edb22e;font-size:18px}.card-grid.list-view{grid-template-columns:1fr}.card-grid.list-view .loyalty-card{min-height:120px;padding:17px 22px}.card-grid.list-view h3{margin:8px 0}.card-grid.list-view .card-bottom{padding-top:12px}.loyalty-card[hidden]{display:none!important}.detail-head{display:flex;justify-content:space-between;align-items:start;gap:12px}.detail-card-face{background:linear-gradient(135deg,#1554c5,#0b2d77);border-radius:18px;padding:30px;color:white;min-height:175px;display:flex;flex-direction:column;gap:14px;margin:24px 0}.detail-card-face span{font-size:30px}.detail-card-face strong{font-size:24px}.detail-card-face small{opacity:.75}.code-label{font-weight:650;font-size:13px;color:#64738c}.button.secondary{background:#eaf0ff;color:#2054bc}.button.secondary:hover{background:#dce7ff}.form-actions{display:flex;flex-wrap:wrap;gap:12px}.stack textarea{display:block;width:100%;margin-top:8px;padding:13px 14px;border:1px solid #cdd7e7;border-radius:10px;font:inherit;resize:vertical}.notes-text{white-space:normal;overflow-wrap:anywhere}.soft-rule{border:0;border-top:1px solid #e5eaf2;margin:25px 0}
@media(max-width:620px){.filters{grid-template-columns:1fr}.filters select{margin-top:0}.detail-head{flex-direction:column}.card-grid.list-view .loyalty-card{padding:15px}.form-actions .button{flex:1}}
