:root{font-family:system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;background:#f4f7fb;color:#172b45;font-size:15px}
*{box-sizing:border-box}body{margin:0;line-height:1.55}a{color:#1766be;text-decoration:none}a:hover{text-decoration:underline}
.topbar{background:#14345f;color:white;box-shadow:0 2px 9px #12264621}.wrap{max-width:1240px;margin:auto;padding-left:24px;padding-right:24px}
.topbar-inner{display:flex;justify-content:space-between;align-items:center;gap:20px;min-height:72px}.brand{font-size:21px;font-weight:750;color:white;white-space:nowrap}.brand:hover{color:white;text-decoration:none}.mark{display:inline-grid;place-items:center;background:#277fdd;border-radius:10px;width:36px;height:36px;margin-right:8px;font-size:15px}.topbar nav{display:flex;align-items:center;gap:22px;flex-wrap:wrap}.topbar nav a,.navbutton{color:#edf3ff;font-size:14px;background:none;border:0;cursor:pointer;font-weight:600;padding:0}.topbar nav form{margin:0}.navbutton:hover,.topbar nav a:hover{color:white;text-decoration:underline}
.page-title{display:flex;align-items:center;justify-content:space-between;padding:29px 0 12px}h1{font-size:28px;margin:0;font-weight:750;letter-spacing:-.6px}h2{font-size:22px;margin:0}h3{margin:0 0 18px;font-size:18px}p{margin:0 0 16px}.muted,.footer{color:#6d7d93}.footer{padding-top:25px;padding-bottom:25px;font-size:12px}
.card{background:white;border:1px solid #e4eaf2;border-radius:16px;box-shadow:0 3px 15px #14345f0b;padding:23px;margin-bottom:20px}.card:last-child{margin-bottom:0}.login{max-width:440px;margin:20px auto 70px}.login p{color:#637489}
label{display:block;font-weight:650;font-size:13px;margin:15px 0 6px}input:not([type=checkbox]),select,textarea{display:block;width:100%;max-width:100%;border:1px solid #cdd8e5;border-radius:9px;min-height:44px;padding:10px 12px;background:#fff;color:#21354c;font:inherit;outline:none}input:focus,select:focus,textarea:focus{border-color:#2479d1;box-shadow:0 0 0 3px #2479d121}textarea{resize:vertical;min-height:110px}.button{display:inline-flex;justify-content:center;align-items:center;background:#176bbf;color:#fff;border:1px solid #176bbf;border-radius:10px;padding:10px 16px;font:inherit;font-weight:650;cursor:pointer;white-space:nowrap;text-decoration:none;min-height:43px}.button:hover{background:#105ba4;color:#fff;text-decoration:none}.button.secondary{background:#fff;color:#225d98;border-color:#ccdae9}.button.secondary:hover{background:#eef6ff}.actions{display:flex;align-items:center;gap:12px;margin-top:24px}.two{display:grid;grid-template-columns:1fr 1fr;gap:20px}
.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin:14px 0 20px}.stat{background:white;border:1px solid #e4eaf2;border-radius:14px;padding:16px 20px;color:#657690}.stat-number{font-size:30px;color:#173b68;font-weight:780;line-height:1.2}.list-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.list-heading h3{margin:0}.filters{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:20px}.filters input[type=search]{max-width:350px;flex:2 1 210px}.filters select{max-width:200px;flex:1 1 150px}.check{display:flex;align-items:center;gap:8px;font-weight:500;margin:16px 0}.check.inline{margin:0}.check input{width:16px;height:16px;accent-color:#176bbf}
.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:14px}th{background:#f7f9fc;color:#60718a;text-align:left;font-size:12px;font-weight:700;letter-spacing:.3px}th,td{padding:14px 11px;border-bottom:1px solid #e7ecf3}tbody tr:hover{background:#f8fbff}tbody tr:last-child td{border-bottom:0}.ticket-code{font-weight:750;white-space:nowrap}.ticket-subject{font-weight:600;color:#293c53}.empty{text-align:center;padding:34px;color:#8a9aad}.pill{display:inline-block;padding:4px 10px;border-radius:8px;font-size:12px;font-weight:750;white-space:nowrap;background:#edf3fb;color:#3d5b82}.pill.new{background:#eaf1ff;color:#2462b0}.pill.open{background:#ddf4f4;color:#157278}.pill.waiting{background:#fff2d9;color:#92600a}.pill.resolved{background:#e4f5e9;color:#2c7951}.pill.closed{background:#eff1f4;color:#646d78}.pagination{display:flex;gap:16px;align-items:center;justify-content:center;padding-top:22px}
.ticket-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:20px}.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px}.preline{white-space:pre-wrap;overflow-wrap:anywhere}.facts{display:grid;grid-template-columns:1fr 1.2fr;gap:12px 8px;margin:0}.facts dt{color:#718299}.facts dd{margin:0;font-weight:650}.comment{padding:16px 0;border-top:1px solid #e7ecf3}.comment.internal{background:#fff8e8;padding:16px;border-left:3px solid #e8bd56;border-radius:7px;margin:10px 0}.comment-meta{color:#75859a;font-size:12px;margin-bottom:8px}.comment-meta strong{color:#2a3a50}.mini{font-weight:700;color:#996600}.history p{border-bottom:1px solid #edf0f5;padding:9px 0;margin:0;font-size:12px}.history p:last-child{border-bottom:0}.flash{padding:12px 16px;background:#e8f6ec;border:1px solid #bde1c5;border-radius:9px;color:#26643a;margin-bottom:20px}.flash.error{background:#fff1ef;color:#a43c36;border-color:#f1c7c2}code{background:#f0f3f7;border-radius:5px;padding:2px 5px}
@media(max-width:870px){.layout{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}.topbar-inner{align-items:flex-start;padding-top:16px;padding-bottom:16px;flex-direction:column}.topbar nav{gap:14px}}
@media(max-width:560px){.wrap{padding-left:15px;padding-right:15px}.page-title{padding-top:20px}.card{padding:17px}.two{grid-template-columns:1fr;gap:0}.stats{gap:9px}.stat{padding:12px}.stat-number{font-size:25px}.list-heading{align-items:flex-start;flex-direction:column}.ticket-head{flex-direction:column}h1{font-size:24px}}

.sso-panel{background:#f2f7fd;border:1px solid #d8e4f1;border-radius:12px;padding:18px;margin:14px 0}.sso-panel h3{margin:0 0 8px}.sso-panel p{margin:0 0 12px;font-size:13px}.sso-panel button:disabled{opacity:.55;cursor:wait}.login-divider{font-size:12px;text-align:center;text-transform:uppercase;letter-spacing:.07em;margin:18px 0 6px;color:#6f8094}.login .hint{font-size:12px;color:#6e8093;margin-top:12px}

/* IT Helpdesk 1.5 — dashboard and workflow */
.dashboard-intro{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:5px 0 18px}.dashboard-intro h2{font-size:23px}.dashboard-intro p{margin:5px 0 0;color:#687b94}.stats-dashboard{margin-top:0}.stat-link{display:block;transition:box-shadow .15s,transform .15s;text-decoration:none}.stat-link:hover{box-shadow:0 8px 24px #14345f1c;transform:translateY(-2px);text-decoration:none}.stat-go{display:block;font-size:11px;margin-top:8px;color:#1766be;font-weight:650}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.dashboard-grid .card{min-width:0}.dashboard-grid .card table{font-size:13px}.dashboard-grid .card th,.dashboard-grid .card td{padding:10px 8px}.dashboard-empty{padding:15px 0}.subline{display:block;font-size:12px;color:#7a8ca1;margin-top:2px}.workflow-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;border:1px solid #dce7f5;background:#f1f7ff;border-radius:14px;margin-bottom:18px}.workflow-bar strong{font-size:16px}.workflow-bar p{margin:3px 0 0;font-size:12px}.workflow-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}.workflow-actions form{margin:0}.workflow-actions .button{padding:9px 13px;min-height:38px;font-size:13px}.closed-hint{border:1px solid #e3e7ed;background:#f6f8fb;color:#60718b;padding:12px;border-radius:8px;margin-top:12px}.filter-reset{font-size:13px;font-weight:600;white-space:nowrap}.filters{align-items:end}.filters select{max-width:190px;min-width:150px}.filters input[type=search]{max-width:330px}
@media(max-width:1050px){.dashboard-grid{grid-template-columns:1fr}.dashboard-grid .card{margin-bottom:0}.workflow-bar{align-items:flex-start;flex-direction:column}.workflow-actions{justify-content:flex-start}}
@media(max-width:560px){.dashboard-intro{align-items:flex-start;flex-direction:column}.workflow-actions{width:100%}.workflow-actions form{width:100%}.workflow-actions .button{width:100%}.filters select{max-width:none;flex:1 1 100%}}

/* 1.5.1 — čitelný samostatný sloupec Zadavatel na dashboardu. */
.dashboard-grid .card td:nth-child(2){white-space:normal;min-width:150px;max-width:265px}
.dashboard-grid .card th,.dashboard-grid .card td{padding:9px 7px}
.dashboard-grid .card td:nth-child(5){min-width:95px}

/* 1.6 – řaditelné tabulky bez JavaScriptu (ovládání i klávesnicí). */
th[aria-sort]{white-space:nowrap}
.sort-link{display:inline-flex;align-items:center;gap:6px;color:inherit;text-decoration:none;border-radius:5px;padding:3px 2px;margin:-3px -2px;min-height:26px}
.sort-link:hover{color:#176bbf;text-decoration:underline}
.sort-link:focus-visible{outline:2px solid #176bbf;outline-offset:2px}
.sort-arrow{font-size:14px;line-height:1;color:#a7b4c4;font-weight:700}
.sort-link.is-sorted{color:#174e8e}
.sort-link.is-sorted .sort-arrow{color:#176bbf}

/* 1.8 — kontaktní karta AD uživatele */
.profile-hero{display:flex;align-items:center;gap:21px;padding:27px}
.profile-avatar{flex:none;display:grid;place-items:center;width:72px;height:72px;border-radius:18px;background:#e4f0fe;color:#175d9b;font-size:30px;font-weight:800}
.profile-hero-text h2{margin:0 0 3px}.profile-hero-text p{margin:0 0 10px}
.profile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.profile-grid .card{min-width:0;margin-bottom:0}.profile-grid .card:last-child{grid-column:1 / -1}
.profile-facts{display:grid;grid-template-columns:175px minmax(0,1fr);gap:13px 16px;margin:0}
.profile-facts dt{color:#60718a;font-size:13px}.profile-facts dd{margin:0;font-weight:650;overflow-wrap:anywhere}
.profile-note{font-size:12px;margin:18px 0 0}
@media(max-width:760px){.profile-grid{grid-template-columns:1fr}.profile-grid .card:last-child{grid-column:auto}.profile-facts{grid-template-columns:130px minmax(0,1fr)}}
@media(max-width:440px){.profile-hero{align-items:flex-start;gap:13px}.profile-avatar{height:48px;width:48px;font-size:22px}.profile-facts{grid-template-columns:1fr;gap:4px}.profile-facts dd{margin-bottom:9px}}

/* IT Helpdesk 2.0 – Asset Management */
.asset-inline{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.asset-inline .button{font-size:13px;min-height:38px;padding:8px 11px}
.asset-link-row{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:9px 0;border-bottom:1px solid #ebeff5}
.asset-inline-form{display:inline;margin:0}
.button.asset-tiny{min-height:30px;padding:4px 10px;font-size:12px}
.asset-history{padding:13px 0;border-bottom:1px solid #edf0f5;line-height:1.7;font-size:13px}
.asset-history:last-child{border-bottom:0}
@media(max-width:760px){.asset-inline{width:100%}.asset-inline .button{flex:1}}

.asset-stats{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:870px){.asset-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:560px){.asset-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
