*{box-sizing:border-box}
:root{--navy:#071321;--navy2:#101f35;--orange:#f47416;--bg:#f4f6f9;--line:#e5e9ef;--muted:#7a8798;--text:#142038;--white:#fff}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",Arial,sans-serif;color:var(--text);background:var(--bg)}
a{text-decoration:none;color:inherit}
button,input,select,textarea{font:inherit}
.sidebar{position:fixed;z-index:20;inset:0 auto 0 0;width:250px;background:var(--navy);color:#dfe6ef;padding:22px 15px;display:flex;flex-direction:column}
.side-brand{height:54px;display:flex;align-items:center;margin:0 8px 28px}
.side-brand img{width:205px;max-height:50px;object-fit:contain;object-position:left center}
.side-nav{display:flex;flex-direction:column;gap:4px}
.side-section{font-size:10px;font-weight:900;letter-spacing:1.6px;color:#68788e;margin:15px 12px 6px;text-transform:uppercase}
.sidebar a{display:flex;align-items:center;gap:12px;padding:12px 13px;border-radius:8px;color:#b9c4d3;font-size:13px;font-weight:650;transition:.18s}
.sidebar a .nav-icon{width:24px;text-align:center;font-size:16px}
.sidebar a:hover{background:#132640;color:#fff}
.sidebar a.active{background:var(--orange);color:#fff;box-shadow:0 8px 20px #f4741630}
.side-bottom{margin-top:auto;padding-top:18px;border-top:1px solid #ffffff12}
.admin-main{margin-left:250px;min-height:100vh;padding:0 34px 50px}
.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);margin:0 -34px;padding:0 34px;background:#fff}
.breadcrumb{font-size:12px;color:var(--muted)}.breadcrumb strong{color:var(--text)}
.top-actions{display:flex;align-items:center;gap:20px}
.public-link{color:var(--orange);font-size:12px;font-weight:850}
.user-chip{display:flex;align-items:center;gap:10px}
.user-avatar{width:34px;height:34px;border-radius:50%;background:#fff0e7;color:var(--orange);display:grid;place-items:center;font-weight:900;font-size:12px}
.user-chip strong{display:block;font-size:12px}.user-chip small{display:block;color:var(--muted);font-size:10px;margin-top:2px}
.page-head{display:flex;justify-content:space-between;align-items:flex-end;margin:35px 0 25px}
.kicker{font-size:11px;font-weight:900;letter-spacing:2px;color:var(--orange);margin-bottom:7px}
.page-head h1{font-size:30px;line-height:1.1;margin:0;letter-spacing:-.5px}
.page-head p{font-size:13px;color:var(--muted);margin:8px 0 0}
.primary-btn{display:inline-flex;align-items:center;gap:8px;background:var(--orange);color:#fff;border:0;border-radius:7px;padding:12px 17px;font-size:12px;font-weight:850;cursor:pointer;box-shadow:0 7px 18px #f4741625}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:22px}
.metric{position:relative;background:#fff;border:1px solid #edf0f4;border-radius:10px;padding:18px 19px;min-height:116px;overflow:hidden}
.metric:after{content:"";position:absolute;right:-25px;bottom:-35px;width:90px;height:90px;border-radius:50%;background:#f4741608}
.metric-top{display:flex;align-items:center;justify-content:space-between}
.metric-label{font-size:11px;color:var(--muted);font-weight:650}.metric-icon{width:34px;height:34px;border-radius:8px;background:#fff1e7;color:var(--orange);display:grid;place-items:center;font-size:16px}
.metric b{display:block;font-size:30px;line-height:1;margin-top:15px;letter-spacing:-1px}.metric-change{font-size:10px;color:#758194;margin-top:8px}.metric-change strong{color:#1b9363}
.content-grid{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(280px,.75fr);gap:18px}
.panel{background:#fff;border:1px solid #e8ecf1;border-radius:10px;overflow:hidden}
.panel-head{padding:18px 20px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.panel-head h2{font-size:16px;margin:0}.panel-head p{font-size:10px;color:var(--muted);margin:4px 0 0}.panel-link{font-size:11px;color:var(--orange);font-weight:800}
table{width:100%;border-collapse:collapse}th,td{text-align:left;padding:13px 18px;border-bottom:1px solid #eef1f4}th{font-size:9px;letter-spacing:.7px;text-transform:uppercase;color:#8792a2;font-weight:850}td{font-size:12px;color:#4e5a6b}td strong{color:var(--text);font-size:12px}td small{display:block;color:#8a94a2;font-size:10px;margin-top:3px}.status{display:inline-flex;align-items:center;gap:6px;border-radius:20px;padding:5px 9px;font-size:10px;font-weight:800}.status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.status.new{color:#d86612;background:#fff1e7}.status.contacted{color:#5573c4;background:#eef3ff}.status.processing{color:#9a7310;background:#fff8dd}.status.completed{color:#23885f;background:#eaf8f1}
.empty{padding:35px 20px;color:var(--muted);font-size:12px;text-align:center}
.quick-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:16px}
.quick{border:1px solid var(--line);border-radius:8px;padding:15px;transition:.18s}.quick:hover{border-color:#ffc49f;transform:translateY(-2px)}.quick-icon{width:35px;height:35px;border-radius:8px;background:#fff1e7;color:var(--orange);display:grid;place-items:center;margin-bottom:10px}.quick strong{font-size:12px;display:block}.quick span{font-size:10px;color:var(--muted);display:block;margin-top:4px;line-height:1.45}
.mini-list{padding:8px 18px 14px}.mini-item{display:flex;gap:11px;padding:12px 0;border-bottom:1px solid #eef1f4}.mini-item:last-child{border-bottom:0}.mini-dot{width:28px;height:28px;flex:0 0 28px;border-radius:50%;background:#fff1e7;color:var(--orange);display:grid;place-items:center;font-size:12px}.mini-item strong{font-size:11px}.mini-item span{display:block;font-size:10px;color:var(--muted);margin-top:3px}
.login{min-height:100vh;display:grid;place-items:center;background:var(--navy)}
.login-box{width:min(420px,92%);background:#fff;padding:38px;border-radius:13px;box-shadow:0 30px 80px #0005;display:grid;gap:13px}.login-logo{width:220px;margin:0 auto 5px}.login-box h1{text-align:center;margin:4px 0 0;font-size:25px}.login-box p{text-align:center;color:var(--muted);font-size:12px;margin:0 0 12px}.login-box input{padding:13px 14px;border:1px solid #dce2e9;border-radius:7px;outline:0}.login-box input:focus{border-color:var(--orange)}.login-box button{padding:14px;border:0;border-radius:7px;background:var(--orange);color:#fff;font-weight:850;font-size:13px;cursor:pointer}.login-box a{text-align:center;color:var(--orange);font-weight:750;font-size:11px;margin-top:7px}.alert{background:#fff0f0;color:#bd3030;padding:11px;border-radius:7px;font-size:12px}
@media(max-width:1050px){.metrics{grid-template-columns:repeat(2,1fr)}.content-grid{grid-template-columns:1fr}}
@media(max-width:800px){.sidebar{position:static;width:100%;height:auto;padding:10px}.side-brand{margin:0 10px 10px}.side-brand img{width:180px}.side-nav{display:grid;grid-template-columns:repeat(2,1fr)}.side-section{display:none}.side-bottom{margin-top:10px}.admin-main{margin-left:0;padding:0 16px 35px}.topbar{margin:0 -16px;padding:0 16px}.user-chip{display:none}.page-head{align-items:flex-start;gap:15px;flex-direction:column}.metrics{grid-template-columns:1fr 1fr}}
@media(max-width:520px){.metrics{grid-template-columns:1fr}.side-nav{grid-template-columns:1fr}.topbar{height:62px}.page-head h1{font-size:25px}.panel{overflow:auto}.panel table{min-width:700px}}
.notice-success,.notice-error{margin:0 0 18px;padding:12px 15px;border-radius:8px;font-size:12px}.notice-success{background:#eaf8f1;color:#207b59}.notice-error{background:#fff0f0;color:#b52e2e}
.form-panel{background:#fff;border:1px solid #e7ebf0;border-radius:10px;padding:24px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:17px}.form-grid label,.form-panel label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800;color:#4c596b}.form-grid .full{grid-column:1/-1}.form-grid input,.form-grid textarea,.form-grid select,.form-panel input,.form-panel textarea,.form-panel select{width:100%;border:1px solid #dce2e9;border-radius:7px;padding:12px 13px;font-size:13px;color:#172238;background:#fff;outline:none}.form-grid input:focus,.form-grid textarea:focus,.form-grid select:focus,.form-panel input:focus,.form-panel textarea:focus,.form-panel select:focus{border-color:#f47416;box-shadow:0 0 0 3px #f4741612}.form-grid small,.form-panel small{font-size:10px;color:#8a95a5;font-weight:500}.check{flex-direction:row!important;align-items:center;gap:9px!important;font-size:12px!important}.check input{width:16px!important;height:16px}.link-button,.link-danger{background:none;border:0;padding:0;cursor:pointer;font-size:11px;font-weight:750}.link-button{color:#f47416}.link-danger{color:#b73737}.filters{display:flex;gap:6px;flex-wrap:wrap}.filter{font-size:10px;font-weight:800;padding:7px 10px;border-radius:20px;background:#f3f5f8;color:#697588}.filter.selected{background:#fff1e7;color:#f47416}.detail-body{padding:20px;display:grid;grid-template-columns:1fr 1fr;gap:18px}.detail-item{display:flex;flex-direction:column;gap:5px}.detail-item.full{grid-column:1/-1}.detail-item span{font-size:10px;color:#8792a2;text-transform:uppercase;letter-spacing:.5px}.detail-item strong,.detail-item a{font-size:13px;color:#172238}.detail-item p{font-size:13px;line-height:1.65;color:#4f5d70;margin:0;background:#f8f9fb;padding:14px;border-radius:7px}.form-panel-inner{padding:20px;display:grid;gap:17px}.form-panel-inner label{display:flex;flex-direction:column;gap:7px;font-size:11px;font-weight:800}.form-panel-inner select,.form-panel-inner textarea{border:1px solid #dce2e9;border-radius:7px;padding:12px;font-size:13px}.attachment-list{padding:16px 20px;display:flex;flex-direction:column;gap:8px}.attachment-list a{color:#f47416;font-size:12px}.photo-grid{padding:20px;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.photo-thumb{border:1px solid #e4e8ed;border-radius:8px;overflow:hidden;background:#fff}.photo-thumb img{display:block;width:100%;height:140px;object-fit:cover}.photo-thumb form{padding:9px}.inline-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
@media(max-width:700px){.form-grid,.detail-body{grid-template-columns:1fr}.form-grid .full,.detail-item.full{grid-column:auto}.photo-grid{grid-template-columns:1fr 1fr}}
.search-row{display:flex;gap:10px;align-items:center;padding:15px 18px;border-bottom:1px solid #eef1f4}.search-row input{flex:1;min-width:160px;border:1px solid #dce2e9;border-radius:7px;padding:10px 12px;font-size:12px}.search-row select{border:1px solid #dce2e9;border-radius:7px;padding:10px 12px;font-size:12px;background:#fff}.secondary-btn{display:inline-flex;align-items:center;gap:7px;border:1px solid #dce2e9;background:#fff;color:#344156;border-radius:7px;padding:10px 13px;font-size:11px;font-weight:800;cursor:pointer}.secondary-btn:hover{border-color:#f47416;color:#f47416}.status.new{font-weight:900}.unread-row{background:#fffaf6}.unread-row td:first-child{border-left:3px solid #f47416}.message-preview{max-width:330px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.danger-btn{background:#fff0f0;border:1px solid #f0c9c9;color:#b73737;border-radius:7px;padding:10px 13px;font-size:11px;font-weight:800;cursor:pointer}.danger-btn:hover{background:#ffe5e5}.detail-actions{display:flex;gap:8px;flex-wrap:wrap}.meta-badge{display:inline-flex;padding:4px 8px;background:#f4f6f8;border-radius:15px;font-size:10px;color:#697588;font-weight:750}
@media(max-width:700px){.search-row{flex-direction:column;align-items:stretch}}
/* V11 – exact visual direction of the approved Poptávky screen */
:root{--navy:#071321;--navy2:#0d1d31;--orange:#ff7414;--bg:#f5f7fa;--line:#e5e9ef;--muted:#7a8798;--text:#142038}
body{font-size:14px;background:var(--bg)}
.sidebar{width:224px;padding:20px 14px}
.side-brand{margin:0 8px 28px;height:58px}.side-brand img{width:205px}
.sidebar a{padding:12px 12px;font-size:13px}
.admin-main{margin-left:224px;padding:0 25px 45px}
.topbar{height:68px;margin:0 -25px;padding:0 25px}
.breadcrumb{font-size:12px}
.page-head{margin:31px 0 22px}.page-head h1{font-size:29px}.page-head p{font-size:13px}
.primary-btn{padding:11px 16px;border-radius:7px;font-size:12px}
.metrics{gap:15px}.metric{min-height:118px;padding:18px}.metric b{font-size:29px}
.content-grid{gap:16px}
.panel{border-radius:9px}
.panel-head{padding:17px 18px}.panel-head h2{font-size:16px}
table th{padding:12px 16px;font-size:9px}table td{padding:12px 16px;font-size:12px}
.search-row{padding:17px 18px;gap:12px}
.search-row input{height:38px;border-radius:7px;padding:0 12px;font-size:12px}
.search-row select{height:38px;border-radius:7px}
.filter{padding:8px 13px;font-size:10px;border:1px solid transparent}.filter.selected{border-color:#ffd7bb}
.status{padding:5px 9px}
/* V12 – Poptávky: filtry vizuálně oddělené od spodní linky */
.inquiry-filter-tabs{
    display:flex;
    align-items:center;
    justify-content:center;
    gap:12px;
    flex-wrap:wrap;
    padding:16px 20px 20px;
    border-top:1px solid #eef1f4;
    background:#fff;
}
.inquiry-filter-tabs .filter{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-height:34px;
    padding:8px 17px;
    border-radius:18px;
    background:#f3f5f8;
    border:1px solid transparent;
    color:#536074;
    font-size:10px;
    font-weight:800;
    line-height:1;
    white-space:nowrap;
}
.inquiry-filter-tabs .filter:hover{
    background:#fff1e7;
    color:#f47416;
}
.inquiry-filter-tabs .filter.selected{
    background:#fff1e7;
    border-color:#ffc9a4;
    color:#f47416;
}
.inquiry-filter-tabs .filter .count{
    margin-left:5px;
    padding:2px 6px;
    border-radius:10px;
    background:#fff;
    color:#f47416;
}
@media(max-width:900px){
    .inquiry-filter-tabs{justify-content:flex-start}
}
.forgot-link{display:block;text-align:center;color:#f47416;font-size:12px;font-weight:800;text-decoration:none;margin:2px 0 5px}.forgot-link:hover{text-decoration:underline}
.auth-note{font-size:12px;line-height:1.55;color:#788598;text-align:center;margin:-4px 0 15px}.auth-success{background:#edf9f3;border:1px solid #ccebdc;color:#237653;border-radius:8px;padding:11px 13px;font-size:12px;line-height:1.5;margin-bottom:15px}.auth-error{background:#fff0f0;border:1px solid #f1caca;color:#a83232;border-radius:8px;padding:11px 13px;font-size:12px;line-height:1.5;margin-bottom:15px}.auth-back{display:block;text-align:center;color:#788598;font-size:12px;text-decoration:none;margin-top:4px}.auth-back:hover{color:#f47416}
/* V15 – jednotné logo Topenáři Morava */
.logo img, .site-logo img, .login-logo, .admin-logo img, .brand img {
    object-fit: contain;
}
/* V16 – logo sizing on authentication */
.login-logo{
    display:block;
    width:250px;
    max-width:82%;
    height:auto;
    margin:0 auto 24px;
}
.side-brand img{
    display:block;
    width:184px;
    max-width:100%;
    height:auto;
    margin:0 auto;
}
/* V17 – výrazné logo v administraci */
.side-brand{
    height:76px !important;
    margin:0 4px 28px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:flex-start !important;
    overflow:visible !important;
}
.side-brand img{
    width:205px !important;
    max-width:none !important;
    max-height:70px !important;
    height:auto !important;
    object-fit:contain !important;
    object-position:left center !important;
}
.login-logo{
    display:block !important;
    width:330px !important;
    max-width:88% !important;
    height:auto !important;
    max-height:none !important;
    margin:0 auto 26px !important;
}
.login-box{
    padding-top:34px !important;
}
@media(max-width:700px){
    .login-logo{width:285px !important;max-width:88% !important}
    .side-brand img{width:185px !important}
}
/* V18 – finální proporce loga */
.side-brand{
    height:92px !important;
    margin:0 0 30px !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    overflow:visible !important;
}
.side-brand img{
    width:225px !important;
    max-width:90% !important;
    max-height:82px !important;
    height:auto !important;
    object-fit:contain !important;
    object-position:center !important;
}
.login-box .login-logo{
    display:block !important;
    width:365px !important;
    max-width:92% !important;
    height:auto !important;
    max-height:none !important;
    margin:0 auto 28px !important;
}
.login-box{
    width:min(480px,92%) !important;
    padding:42px 42px 38px !important;
}
.login-box h1{
    font-size:27px !important;
    margin-top:2px !important;
}
@media(max-width:700px){
    .side-brand{height:78px !important}
    .side-brand img{width:195px !important}
    .login-box{padding:34px 26px 32px !important}
    .login-box .login-logo{width:315px !important}
}
/* V19 – jednotné logo administrace */
.side-brand img{width:235px !important;max-height:86px !important;height:auto !important}
.login-box .login-logo{width:390px !important;max-width:94% !important;height:auto !important}
/* V20 – schválené zjednodušené logo v administraci */
.side-brand{
    justify-content:center !important;
}
.side-brand img{
    width:245px !important;
    max-width:92% !important;
    height:auto !important;
    max-height:90px !important;
}
.login-box .login-logo{
    width:410px !important;
    max-width:94% !important;
    height:auto !important;
}
/* V21 – oprava proporcí loga v administraci */
.side-brand img{width:255px !important;max-width:94% !important;height:auto !important;max-height:82px !important}
.login-box .login-logo{width:420px !important;max-width:94% !important;height:auto !important}
/* Finální velikost loga */
.side-brand img{width:255px !important;max-width:94% !important;height:auto !important;max-height:82px !important}
.login-box .login-logo{width:420px !important;max-width:94% !important;height:auto !important}
/* V23 – schválené PNG logo */
.site-header .brand img,
.footer-brand img,
.side-brand img,
.login-box .login-logo{
    height:auto !important;
    object-fit:contain !important;
}
/* Font Awesome admin icons */
.nav-icon i,.public-link i{font-size:1em;line-height:1}.nav-icon{display:inline-flex;align-items:center;justify-content:center}
/* Mobile administrace – čisté off-canvas menu */
.mobile-menu-btn,.sidebar-overlay{display:none}
@media(max-width:900px){
    html,body{overflow-x:hidden}
    body.menu-open{overflow:hidden}
    .sidebar{
        width:min(300px,84vw);
        transform:translateX(-105%);
        transition:transform .38s cubic-bezier(.22,1,.36,1);
        box-shadow:18px 0 45px rgba(7,19,33,.18);
        padding:18px 14px;
    }
    .sidebar.is-open{transform:translateX(0)}
    .sidebar-overlay{
        display:block;
        position:fixed;
        inset:0;
        z-index:19;
        background:rgba(4,12,22,.48);
        opacity:0;
        visibility:hidden;
        transition:opacity .3s ease,visibility .3s ease;
        backdrop-filter:blur(2px);
    }
    .sidebar-overlay.is-visible{opacity:1;visibility:visible}
    .side-brand{margin-bottom:20px !important}
    .admin-main{
        margin-left:0;
        padding:0 16px 35px;
        min-height:100vh;
    }
    .topbar{
        position:sticky;
        top:0;
        z-index:10;
        height:64px;
        margin:0 -16px;
        padding:0 16px;
        gap:12px;
        box-shadow:0 1px 0 rgba(20,32,56,.05);
    }
    .mobile-menu-btn{
        display:grid;
        place-items:center;
        flex:0 0 40px;
        width:40px;
        height:40px;
        border:1px solid #e2e7ed;
        border-radius:9px;
        background:#fff;
        color:var(--text);
        font-size:16px;
        cursor:pointer;
        transition:background .2s ease,color .2s ease,border-color .2s ease,transform .2s ease;
    }
    .mobile-menu-btn:hover{border-color:#ffc6a0;color:var(--orange);background:#fff8f3}
    .mobile-menu-btn:active{transform:scale(.95)}
    .breadcrumb{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
    .top-actions{margin-left:auto;gap:10px}
    .public-link{display:none}
    .user-chip>div:not(.user-avatar),.user-chip>i{display:none}
    .user-avatar{width:34px;height:34px}
    .page-head{margin:25px 0 20px;align-items:flex-start;gap:16px}
    .page-head h1{font-size:26px}
    .page-head p{font-size:12px;line-height:1.5}
    .metrics{grid-template-columns:1fr 1fr;gap:10px}
    .metric{min-height:105px;padding:15px}
    .metric b{font-size:25px}
    .content-grid{grid-template-columns:1fr;gap:14px}
    .panel{overflow-x:auto}
    .panel-head{padding:15px}
    .panel-head h2{font-size:15px}
    .quick-grid{grid-template-columns:1fr 1fr}
    table{min-width:620px}
}
@media(max-width:520px){
    .metrics{grid-template-columns:1fr 1fr}
    .metric{padding:13px;min-height:98px}
    .metric b{font-size:23px;margin-top:11px}
    .metric-icon{width:30px;height:30px;font-size:14px}
    .page-head{flex-direction:column;align-items:stretch}
    .page-head .primary-btn{align-self:flex-start}
    .quick-grid{grid-template-columns:1fr}
    .search-row{padding:13px}
    .detail-body,.form-panel-inner{padding:15px}
}
/* Font Awesome – jednotné ikony v administraci */
.sidebar .nav-icon i,
.topbar i,
.primary-btn i,
.secondary-btn i,
.danger-btn i,
.panel-link i,
.link-button i,
.auth-back i,
.login-box h1 i {
    margin-right: 6px;
}
.sidebar .nav-icon i { margin-right: 0; }
/* Mobile admin – final fix */
@media (max-width: 900px){
    .sidebar{position:fixed !important;top:0 !important;bottom:0 !important;left:0 !important;right:auto !important;width:min(300px,84vw) !important;height:100dvh !important;transform:translateX(-105%) !important;z-index:1000 !important;overflow-y:auto !important;}
    .sidebar.is-open{transform:translateX(0) !important;}
    .admin-main{margin-left:0 !important;width:100% !important;min-height:100dvh !important;padding:0 16px 35px !important;}
    .topbar{height:64px !important;margin:0 -16px !important;padding:0 16px !important;position:sticky !important;top:0 !important;z-index:100 !important;}
    .mobile-menu-btn{display:grid !important;}
    .sidebar-overlay{display:block !important;}
    .page-head{margin:25px 0 20px !important;}
}
@media (max-width:520px){
    .admin-main{padding-left:12px !important;padding-right:12px !important;}
    .topbar{margin-left:-12px !important;margin-right:-12px !important;padding-left:12px !important;padding-right:12px !important;}
    .page-head h1{font-size:25px !important;}
}
/* Login success loading animation */
.admin-loading-screen {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0b1726;
    opacity: 1;
    visibility: visible;
    transition: opacity .5s ease, visibility .5s ease;
}
.admin-loading-screen.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.admin-loading-card {
    width: min(440px, calc(100% - 40px));
    text-align: center;
}
.admin-loading-success {
    color: #fff;
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 800;
    margin-bottom: 18px;
}
.admin-loading-percent {
    color: #f28a1a;
    font-size: clamp(52px, 10vw, 76px);
    line-height: 1;
    font-weight: 900;
    letter-spacing: -2px;
    margin-bottom: 22px;
}
.admin-loading-track {
    width: 100%;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.14);
}
.admin-loading-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #f28a1a;
    transition: width .08s linear;
}
.admin-loading-label {
    margin-top: 15px;
    color: rgba(255,255,255,.62);
    font-size: 14px;
}
@media (prefers-reduced-motion: reduce) {
    .admin-loading-screen { transition: none; }
}
/* Editor položek služeb */
.service-items-editor{grid-column:1/-1;margin:28px 0 24px;padding-top:24px;border-top:1px solid #e7ebf0}
.service-items-editor-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}
.service-items-editor-head h2{font-size:18px;margin:0 0 6px}
.service-items-editor-head p{font-size:13px;color:#7b8796;margin:0;line-height:1.5}
.service-item-input-row{display:flex;align-items:center;gap:10px;margin-bottom:10px}
.service-item-input-row input{flex:1;min-width:0}
.service-item-grip{color:#9aa5b4;padding:0 3px}
.service-item-remove{width:40px;height:40px;flex:0 0 40px;border:1px solid #f3d4d4;border-radius:9px;background:#fff5f5;color:#d34b4b;cursor:pointer}
.service-item-remove:hover{background:#ffe7e7}
@media(max-width:700px){.service-items-editor-head{align-items:flex-start;flex-direction:column}.service-items-editor-head .secondary-btn{width:100%}.service-item-input-row{gap:6px}}

/* Správa služeb – přehledné rozložení formuláře */
.service-edit-shell{max-width:1120px;margin:0 auto 28px}
.service-edit-form{display:grid;gap:18px}
.service-edit-card{background:#fff;border:1px solid #e4e9f0;border-radius:14px;padding:25px;box-shadow:0 5px 20px #17223805}
.service-edit-card-head{display:flex;align-items:center;gap:14px;margin-bottom:23px}
.service-edit-step{width:42px;height:42px;flex:0 0 42px;display:grid;place-items:center;border-radius:12px;background:#fff1e7;color:var(--orange);font-size:13px;font-weight:900}
.service-edit-card-head h2{margin:0;font-size:18px;letter-spacing:-.3px;color:var(--text)}
.service-edit-card-head p{margin:5px 0 0;color:var(--muted);font-size:12px;line-height:1.5}
.service-edit-card-head>div{flex:1;min-width:0}
.service-basic-grid{grid-template-columns:minmax(0,1.7fr) minmax(180px,.7fr);gap:20px 18px}
.service-basic-grid label{display:flex;flex-direction:column;gap:8px}
.service-basic-grid .service-name-field{grid-column:1}
.service-basic-grid .service-order-field{grid-column:2}
.service-basic-grid .full{grid-column:1/-1}
.service-basic-grid input,.service-basic-grid textarea{min-height:45px;border:1px solid #dce3ec;border-radius:9px;padding:12px 14px;font-size:13px;line-height:1.5;transition:border-color .18s,box-shadow .18s}
.service-basic-grid textarea{resize:vertical;min-height:82px}
.service-basic-grid input:focus,.service-basic-grid textarea:focus{border-color:var(--orange);box-shadow:0 0 0 3px #f4741614}
.required-mark{color:var(--orange)}
.optional-label{font-size:9px;letter-spacing:.8px;color:#8a95a5;background:#f1f4f8;border-radius:4px;padding:3px 5px;margin-left:5px}
.service-icon-input{display:flex;align-items:center;gap:0;border:1px solid #dce3ec;border-radius:9px;overflow:hidden}
.service-icon-input>span{height:45px;width:44px;flex:0 0 44px;display:grid;place-items:center;background:#fff5ee;color:var(--orange);border-right:1px solid #e9edf2}
.service-icon-input input{border:0!important;box-shadow:none!important;flex:1;min-width:0}
.service-icon-field>small,.service-basic-grid small{font-size:10px;color:var(--muted);font-weight:500;line-height:1.5}
.service-publish-toggle{align-self:center;display:flex!important;flex-direction:row!important;align-items:center;gap:12px!important;background:#f8fafc;border:1px solid #e9edf2;border-radius:10px;padding:13px 15px}
.service-publish-toggle>input{appearance:none;width:38px!important;height:22px!important;min-height:22px!important;flex:0 0 38px;padding:0!important;border:0!important;border-radius:20px;background:#cbd3dd;position:relative;cursor:pointer;transition:background .2s}
.service-publish-toggle>input:before{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0002;transition:transform .2s}
.service-publish-toggle>input:checked{background:var(--orange)}
.service-publish-toggle>input:checked:before{transform:translateX(16px)}
.toggle-copy{display:flex;flex-direction:column;gap:4px}
.toggle-copy strong{font-size:12px;color:var(--text)}
.toggle-copy small{font-size:10px;color:var(--muted);font-weight:500}
.service-items-card .service-edit-card-head{margin-bottom:20px}
.service-item-count{white-space:nowrap;padding:7px 10px;border-radius:20px;background:#f2f5f8;color:#69778a;font-size:10px;font-weight:800}
.service-items-toolbar{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px;padding-bottom:14px;border-bottom:1px solid #edf0f4}
.service-items-toolbar>span{font-size:12px;font-weight:850;color:#39475c}
.service-items-toolbar>span i{color:var(--orange);margin-right:7px}
.service-items-list{display:grid;gap:9px}
.service-item-input-row{display:grid;grid-template-columns:38px 24px minmax(0,1fr) 42px;align-items:center;gap:10px;padding:9px 10px;border:1px solid #e4e9f0;border-radius:10px;background:#fff;transition:border-color .15s,background .15s,box-shadow .15s}
.service-item-input-row:hover{border-color:#ffc49f;background:#fffdfa}
.service-item-input-row.is-dragging{opacity:.45;border-color:var(--orange);background:#fff4ec}
.service-item-number{display:grid;place-items:center;width:30px;height:30px;border-radius:8px;background:#f3f5f8;color:#7b8797;font-size:10px;font-weight:900}
.service-item-grip{display:grid;place-items:center;height:38px;color:#9aa5b4;cursor:grab}
.service-item-grip:active{cursor:grabbing}
.service-item-input-row input{width:100%;min-width:0;height:42px;border:1px solid transparent;border-radius:7px;padding:10px 12px;font-size:12px;background:#f8fafc;outline:none}
.service-item-input-row input:focus{background:#fff;border-color:#f6a36b;box-shadow:0 0 0 3px #f4741610}
.service-item-remove{width:36px;height:36px;display:grid;place-items:center;border:1px solid #f1dada;border-radius:8px;background:#fff7f7;color:#c34b4b;cursor:pointer;transition:.15s}
.service-item-remove:hover{background:#c94343;color:#fff;border-color:#c94343}
.service-items-footnote{display:flex;align-items:flex-start;gap:8px;margin-top:14px;color:#7a8798;font-size:11px;line-height:1.5}
.service-items-footnote i{color:var(--orange);margin-top:2px}
.service-edit-actions{display:flex;justify-content:flex-end;align-items:center;gap:10px;padding:3px 0 8px}
.service-edit-actions .secondary-btn{padding:13px 17px;font-size:12px}
.service-edit-actions .primary-btn{padding:14px 20px;font-size:12px}
@media(max-width:700px){.service-edit-card{padding:17px;border-radius:11px}.service-edit-card-head{align-items:flex-start;gap:10px}.service-edit-card-head h2{font-size:16px}.service-edit-card-head p{font-size:11px}.service-basic-grid{grid-template-columns:1fr}.service-basic-grid .service-name-field,.service-basic-grid .service-order-field,.service-basic-grid .full{grid-column:1}.service-item-input-row{grid-template-columns:30px 18px minmax(0,1fr) 34px;gap:5px;padding:7px}.service-item-input-row input{padding:9px 8px;font-size:11px}.service-item-remove{width:32px;height:34px}.service-items-toolbar{align-items:flex-start;flex-direction:column}.service-item-count{margin-left:auto}.service-edit-actions{flex-direction:column-reverse;align-items:stretch}.service-edit-actions>*{justify-content:center;width:100%}}

.services-list-panel .panel-head{gap:14px}
.service-list-total{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border-radius:8px;background:#fff1e7;color:#f47416;font-size:11px;font-weight:850;white-space:nowrap}
.service-list-count{display:inline-flex;align-items:center;gap:4px;padding:6px 9px;border-radius:7px;background:#f3f6f9;color:#344156;font-size:11px;font-weight:850;white-space:nowrap}
.service-list-count small{font-size:10px;color:#7a8798}
.services-list-panel td{vertical-align:middle}
.services-list-panel td:first-child strong{font-size:13px}
.services-list-panel td:first-child small{display:flex;align-items:center;gap:5px;margin-top:6px;color:#8a95a5;font-size:10px}
.services-list-panel td:last-child{white-space:nowrap}
.services-list-panel td:last-child form{margin:0 0 0 9px}
.services-list-panel .panel-link,.services-list-panel .link-button,.services-list-panel .link-danger{font-size:11px}
.services-list-panel .link-danger{margin-left:8px}
@media(max-width:850px){.services-list-panel{overflow:hidden}.services-list-panel table{display:block;min-width:0}.services-list-panel thead{display:none}.services-list-panel tbody,.services-list-panel tr,.services-list-panel td{display:block;width:100%}.services-list-panel tbody{padding:10px}.services-list-panel tr{padding:14px;margin-bottom:10px;border:1px solid #e7ebf0;border-radius:10px;background:#fff}.services-list-panel td{padding:7px 0;border:0;white-space:normal!important}.services-list-panel td:before{display:block;margin-bottom:4px;font-size:9px;font-weight:850;letter-spacing:.6px;text-transform:uppercase;color:#8a95a5}.services-list-panel td:nth-child(2):before{content:"Krátký popis"}.services-list-panel td:nth-child(3):before{content:"Obsah služby"}.services-list-panel td:nth-child(4):before{content:"Pořadí"}.services-list-panel td:nth-child(5):before{content:"Stav"}.services-list-panel td:nth-child(6):before{content:"Akce"}.services-list-panel td:last-child{display:flex;align-items:center;flex-wrap:wrap;gap:10px}.services-list-panel td:last-child form{margin:0}.services-list-panel .panel-head{padding:16px}.service-list-total{font-size:10px}}

/* Moderní editor služeb a vizuální výběr Font Awesome ikon */
.service-edit-shell{max-width:1180px;margin:0 auto 34px}
.service-edit-form{gap:22px}
.service-edit-card{padding:30px;border-radius:18px;border-color:#e5eaf1;box-shadow:0 12px 32px rgba(22,35,55,.045)}
.service-edit-card-head{align-items:flex-start;margin-bottom:26px}
.service-edit-step{width:46px;height:46px;flex-basis:46px;border-radius:14px;font-size:12px;box-shadow:inset 0 0 0 1px #ffe0ca}
.service-edit-card-head h2{font-size:20px;letter-spacing:-.45px}
.service-edit-card-head p{font-size:13px;line-height:1.65}
.service-basic-grid{gap:22px 20px}
.service-basic-grid label,.service-icon-picker-field>label{font-size:12px;font-weight:800;color:#354258;letter-spacing:.05px}
.service-basic-grid input,.service-basic-grid textarea{background:#fbfcfe;border-color:#dfe6ef;border-radius:11px;padding:13px 15px;font-size:13px;color:#172238}
.service-basic-grid input:focus,.service-basic-grid textarea:focus{background:#fff;border-color:#f47416;box-shadow:0 0 0 4px rgba(244,116,22,.1)}
.service-basic-grid textarea{min-height:92px}
.service-icon-picker-field{display:flex;flex-direction:column;gap:10px;min-width:0}
.service-icon-selected{display:flex;align-items:center;gap:12px;padding:13px;border:1px solid #f4d7c4;border-radius:13px;background:linear-gradient(135deg,#fff8f2,#fff)}
.service-icon-preview{display:grid;place-items:center;flex:0 0 50px;width:50px;height:50px;border-radius:13px;background:#fff0e4;color:#f47416;font-size:23px}
.service-icon-selected>div{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.service-icon-selected strong{font-size:12px;color:#172238}
.service-icon-selected small,.service-icon-picker-field>small{font-size:10px;color:#7c8798;line-height:1.5}
.service-icon-reset{padding:9px 12px!important;white-space:nowrap}
.service-icon-search{display:flex;align-items:center;gap:10px;padding:0 13px;border:1px solid #dfe6ef;border-radius:10px;background:#fbfcfe;color:#8a96a7}
.service-icon-search>i{color:#f47416}
.service-icon-search input{width:100%;min-width:0;height:43px;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font-size:12px;padding:0!important}
.service-icon-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:8px;max-height:250px;overflow:auto;padding:2px 3px 5px}
.service-icon-option{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:76px;padding:10px 5px;border:1px solid #e7ebf1;border-radius:11px;background:#fff;color:#6d798b;cursor:pointer;transition:transform .15s,border-color .15s,background .15s,color .15s}
.service-icon-option>i{font-size:20px;color:#f47416}
.service-icon-option span{max-width:100%;font-size:9px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.service-icon-option:hover{transform:translateY(-2px);border-color:#ffc49f;background:#fff8f2}
.service-icon-option.is-selected{border-color:#f47416;background:#fff1e6;box-shadow:0 0 0 2px rgba(244,116,22,.1);color:#172238}
.service-icon-empty{grid-column:1/-1;padding:18px;text-align:center;color:#7c8798;font-size:12px}
.service-publish-toggle{min-height:70px;background:#f8fafc;border-color:#e4eaf1;border-radius:12px}
.service-items-toolbar{padding:13px 15px;border:1px solid #e8edf3;border-radius:12px;background:#f8fafc;margin-bottom:15px}
.service-items-list{gap:10px}
.service-item-input-row{grid-template-columns:38px 24px minmax(0,1fr) 42px;padding:10px 12px;border-radius:12px}
.service-item-input-row input{height:46px;background:#f8fafc;font-size:13px}
.service-item-number{width:32px;height:32px;background:#fff0e4;color:#f47416;font-size:11px}
.service-item-grip{font-size:14px}
.service-item-remove{width:38px;height:38px}
.service-items-footnote{padding:12px 14px;border-radius:10px;background:#f8fafc;font-size:11px}
.service-edit-actions{position:sticky;bottom:12px;z-index:5;padding:12px 14px;background:rgba(255,255,255,.94);backdrop-filter:blur(12px);border:1px solid #e8edf3;border-radius:14px;box-shadow:0 10px 30px rgba(22,35,55,.08)}
@media(max-width:900px){.service-icon-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.service-edit-card{padding:22px}}
@media(max-width:700px){.service-edit-card{padding:17px;border-radius:13px}.service-edit-card-head{gap:10px}.service-edit-card-head h2{font-size:17px}.service-icon-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:220px}.service-icon-selected{flex-wrap:wrap}.service-icon-reset{margin-left:auto}.service-edit-actions{position:static;backdrop-filter:none}.service-item-input-row{grid-template-columns:27px 17px minmax(0,1fr) 34px}.service-item-input-row input{height:42px}}

/* Service editor polish: icon picker controls and responsive card layout */
.service-edit-shell{width:100%;max-width:1240px;margin:0 auto 32px}
.service-edit-form{width:100%;display:grid;gap:20px}
.service-edit-card{min-width:0}
.service-icon-picker-field{grid-column:1/-1;display:grid;gap:12px;padding:17px;border:1px solid #e8edf3;border-radius:12px;background:#fbfcfe}
.service-icon-picker-field>label{font-size:12px;font-weight:850;color:#344156}
.service-icon-selected{display:flex;align-items:center;gap:12px;padding:12px;background:#fff;border:1px solid #e7ebf1;border-radius:11px}
.service-icon-preview{width:48px;height:48px;flex:0 0 48px;display:grid;place-items:center;border-radius:12px;background:#fff0e4;color:var(--orange);font-size:21px}
.service-icon-selected>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:4px}
.service-icon-selected strong{font-size:12px;color:var(--text)}
.service-icon-selected small{font-size:10px;color:var(--muted);line-height:1.45}
.service-icon-reset{flex:0 0 auto}
.service-icon-search{display:flex;align-items:center;gap:10px;padding:0 12px;border:1px solid #dce3ec;border-radius:9px;background:#fff}
.service-icon-search>i{color:var(--orange)}
.service-icon-search input{width:100%;min-width:0;height:43px;border:0!important;outline:0!important;background:transparent!important;box-shadow:none!important;font-size:12px;padding:0!important}
.service-icon-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:9px;max-height:300px;overflow:auto;padding:3px}
.service-icon-option{appearance:none;-webkit-appearance:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-width:0;min-height:78px;padding:10px 6px;border:1px solid #e5eaf0;border-radius:11px;background:#fff;color:#657287;cursor:pointer;transition:transform .15s,border-color .15s,background .15s,color .15s;font:inherit}
.service-icon-option>i{font-size:21px;color:var(--orange)}
.service-icon-option span{max-width:100%;font-size:10px;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.service-icon-option:hover{transform:translateY(-2px);border-color:#ffc49f;background:#fff8f2}
.service-icon-option.is-selected{border-color:var(--orange);background:#fff1e6;box-shadow:0 0 0 2px #f4741615;color:var(--text)}
.service-icon-empty{grid-column:1/-1;padding:22px;text-align:center;color:var(--muted);font-size:12px}
.service-publish-toggle{grid-column:1/-1;justify-self:stretch}
.service-items-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 15px;border:1px solid #e8edf3;border-radius:12px;background:#f8fafc;margin-bottom:15px}
.service-items-list{display:grid;gap:10px}
.service-item-input-row{display:grid;grid-template-columns:38px 24px minmax(0,1fr) 42px;align-items:center;gap:10px;padding:10px 12px;border:1px solid #e4e9f0;border-radius:12px;background:#fff}
.service-item-input-row input{width:100%;min-width:0;height:46px;border:1px solid #e5eaf0;border-radius:8px;padding:10px 12px;background:#f8fafc;font-size:13px}
.service-item-remove{width:38px;height:38px;display:grid;place-items:center;border:1px solid #f3d4d4;border-radius:9px;background:#fff5f5;color:#c34b4b;cursor:pointer}
@media(max-width:1000px){.service-icon-grid{grid-template-columns:repeat(5,minmax(0,1fr))}}
@media(max-width:700px){.service-edit-shell{max-width:none}.service-edit-card{padding:17px}.service-icon-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.service-icon-selected{align-items:flex-start;flex-wrap:wrap}.service-icon-selected>div{flex:1 1 calc(100% - 70px)}.service-icon-reset{margin-left:60px}.service-publish-toggle{grid-column:1}.service-items-toolbar{align-items:stretch;flex-direction:column}.service-items-toolbar .secondary-btn{justify-content:center}.service-item-input-row{grid-template-columns:28px 18px minmax(0,1fr) 34px;gap:5px;padding:7px}.service-item-input-row input{height:40px;padding:8px;font-size:11px}.service-item-remove{width:32px;height:34px}}
