/* Update 1.0.25: clearer admin lists and redesigned About page */
.admin-shell{min-height:100vh;background:#f4f7fb;color:#1a3868;display:grid;grid-template-columns:280px 1fr}
.admin-sidebar{position:sticky;top:0;height:100vh;overflow:auto;background:#fff;border-right:1px solid #dbe5f0;padding:22px;display:flex;flex-direction:column;gap:22px}
.admin-sidebar nav{display:block}.admin-menu-group{display:grid;gap:8px}.admin-menu-label{font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#6b7d94;margin-bottom:5px}.admin-menu-group button{width:100%;border:0;border-radius:16px;background:transparent;color:#1a3868;text-align:left;padding:13px 15px;font-family:Kanit,Arial,sans-serif;font-weight:600;cursor:pointer}.admin-menu-group button:hover,.admin-menu-group button:focus{background:#eef5ff;outline:3px solid transparent}.admin-menu-group button.active{background:#1a3868;color:#fff}.admin-content{min-width:0;padding:34px}.admin-card{border-radius:30px;background:#fff;padding:28px;box-shadow:0 16px 45px rgba(26,56,104,.08)}.admin-top{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:22px}.admin-top h1{font-size:38px;margin:.1em 0;font-weight:700}.admin-save{border:0;border-radius:999px;background:#ffd862;color:#1a3868;padding:14px 22px;font-weight:700;font-family:Kanit,Arial,sans-serif;cursor:pointer}.admin-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:22px}.admin-stats>div{background:#fff;border:1px solid #dbe5f0;border-radius:22px;padding:18px}.admin-stats b{display:block;font-size:30px}.admin-stats span{color:#65758b}.admin-section-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:24px}.admin-section-head h3{font-size:30px;margin:.05em 0;font-weight:700}.admin-section-head p{max-width:760px;color:#596d86}.admin-actions,.admin-card-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.admin-list-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:18px}.admin-list-card{border:1px solid #dbe5f0;border-radius:24px;padding:20px;background:#fff;display:flex;flex-direction:column;gap:16px;min-height:220px;box-shadow:0 10px 30px rgba(26,56,104,.05)}.admin-list-card h4{font-size:22px;margin:10px 0 8px;font-weight:700;color:#1a3868}.admin-list-card p{color:#5b6f86;line-height:1.55}.admin-list-card small{display:block;color:#7b8aa0;margin-top:8px}.admin-list-icon{width:54px;height:54px;border-radius:18px;background:#edf6ff;color:#1a3868;display:grid;place-items:center}.admin-list-icon svg{width:28px;height:28px}.announcement-overview-card>img{width:100%;height:150px;object-fit:cover;border-radius:18px}.announcement-chip{display:inline-flex;border-radius:999px;background:#fff5cc;color:#1a3868;padding:5px 11px;font-weight:700;font-size:13px}.page-editor-single,.announcement-editor-detail{border:1px solid #dbe5f0;border-radius:26px;padding:24px;background:#fbfdff}.page-editor-head{display:flex;justify-content:space-between;gap:16px;border-bottom:1px solid #e4edf7;padding-bottom:16px;margin-bottom:20px}.admin-form-grid{display:grid;gap:16px;margin-bottom:16px}.admin-form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.admin-form-grid.three{grid-template-columns:repeat(3,minmax(0,1fr))}.field{display:grid;gap:8px;margin-bottom:16px}.field>span{font-weight:700;color:#1a3868}.field input,.field textarea{width:100%;box-sizing:border-box;border:1px solid #cbd8e8;border-radius:16px;padding:12px 14px;font-family:Kanit,Arial,sans-serif;font-size:16px}.field textarea{min-height:140px;resize:vertical}.rich-field textarea{min-height:300px}.btn.compact{padding:10px 15px;border-radius:999px}.btn.secondary{background:#edf6ff;color:#1a3868}.btn.danger{background:#fee2e2;color:#991b1b}.admin-subcard{border:1px solid #dbe5f0;border-radius:22px;padding:20px;background:#fff}.wide{grid-column:1/-1}.admin-gallery-preview{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:12px;margin-top:14px}.admin-gallery-preview>div{position:relative}.admin-gallery-preview img{width:100%;height:105px;object-fit:cover;border-radius:14px}.admin-gallery-preview button{position:absolute;right:6px;top:6px;border:0;border-radius:999px;background:#fff;color:#991b1b;width:30px;height:30px;font-weight:700}.upload-field{display:block;border:1px dashed #b8c8da;border-radius:18px;padding:16px;margin:12px 0;background:#f8fbff}.upload-field span{display:block;font-weight:700;margin-bottom:8px}.admin-side-bottom{margin-top:auto;display:grid;gap:10px}.admin-back,.admin-logout{border:0;border-radius:14px;padding:12px 14px;background:#eef5ff;color:#1a3868;text-decoration:none;font-weight:600;text-align:center}.admin-logout{cursor:pointer;font-family:Kanit,Arial,sans-serif}
@media(max-width:980px){.admin-shell{grid-template-columns:1fr}.admin-sidebar{position:relative;height:auto;max-height:none}.admin-content{padding:18px}.admin-stats,.admin-form-grid.two,.admin-form-grid.three{grid-template-columns:1fr}.admin-section-head,.admin-top{display:grid}.admin-card{padding:18px}}

.about-redesign{background:linear-gradient(135deg,#f7fbff,#fff7dc);padding-top:70px}.about-redesign-grid{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(320px,.95fr);gap:32px;align-items:stretch}.about-lead-card{background:#fff;border-radius:36px;padding:42px;box-shadow:0 20px 60px rgba(26,56,104,.1);position:relative;overflow:hidden}.about-lead-card:after{content:"";position:absolute;right:-70px;top:-70px;width:210px;height:210px;border-radius:50%;background:#ffe27a;opacity:.45}.about-lead-card h2{font-size:clamp(34px,4.2vw,58px);line-height:1.05;margin:.15em 0;color:#1a3868;font-weight:700}.about-lead-text{font-size:20px;line-height:1.65;color:#334e72;max-width:760px}.about-facts{display:flex;gap:10px;flex-wrap:wrap;margin-top:28px}.about-facts span{border-radius:999px;background:#eaf5ff;color:#1a3868;padding:10px 14px;font-weight:700}.about-image-panel{border-radius:36px;overflow:hidden;background:#1a3868;color:#fff;box-shadow:0 20px 60px rgba(26,56,104,.13);display:grid;grid-template-rows:1fr auto}.about-image-panel img{width:100%;height:100%;min-height:390px;object-fit:cover}.about-image-caption{padding:22px 26px;display:grid;gap:4px}.about-image-caption strong{font-size:22px}.about-image-caption span{color:#e7eef9}.about-content-section{background:#fff}.about-content-grid{display:grid;grid-template-columns:330px minmax(0,1fr);gap:28px;align-items:start}.about-mini-cards{display:grid;gap:16px;position:sticky;top:110px}.about-mini-cards>div{border-radius:26px;background:#f7fbff;border:1px solid #dce8f4;padding:22px}.about-mini-cards span{width:48px;height:48px;border-radius:17px;background:#1a3868;color:#fff;display:grid;place-items:center;margin-bottom:14px}.about-mini-cards svg{width:26px;height:26px}.about-mini-cards strong{display:block;font-size:20px;color:#1a3868}.about-mini-cards p{color:#5a6d84;line-height:1.55}.about-copy-card{border-radius:32px;background:#fff;padding:34px;border:1px solid #dce8f4;box-shadow:0 14px 45px rgba(26,56,104,.06)}.about-copy-card .rich-content{font-size:18px;line-height:1.85;color:#29415f}.about-copy-card .rich-content p{margin:0 0 1.25em}.about-copy-card .rich-content p:first-child,.about-copy-card .rich-content h2:first-child{font-size:clamp(28px,3vw,40px);line-height:1.15;color:#1a3868;font-weight:700;margin-bottom:.65em}.about-gallery-section{background:#f7fbff}.about-gallery .gallery-thumb{border:0;background:transparent;padding:0;border-radius:22px;overflow:hidden;cursor:pointer}.about-gallery .gallery-thumb:focus{outline:4px solid #ffd862;outline-offset:4px}.about-gallery .gallery-thumb img{width:100%;height:auto;display:block;border-radius:22px}
@media(max-width:900px){.about-redesign-grid,.about-content-grid{grid-template-columns:1fr}.about-mini-cards{position:static}.about-lead-card{padding:28px}.about-image-panel img{min-height:260px}}

/* Update 1.0.44: About page text size and contrast fixes. */
.about-copy-card .rich-content{
  font-size:18px !important;
  line-height:1.75 !important;
  color:#29415f !important;
}
.about-copy-card .rich-content p,
.about-copy-card .rich-content li{
  font-size:18px !important;
  line-height:1.75 !important;
}
.about-copy-card .rich-content p:first-child,
.about-copy-card .rich-content h2:first-child{
  font-size:18px !important;
  line-height:1.75 !important;
  color:#29415f !important;
  font-weight:400 !important;
  margin-bottom:1.25em !important;
}
.about-copy-card .rich-content h2,
.about-copy-card .rich-content h3{
  color:#1a3868 !important;
  font-weight:700 !important;
  line-height:1.25 !important;
  margin:1.5em 0 .65em !important;
}
.about-copy-card .rich-content h2{font-size:28px !important;}
.about-copy-card .rich-content h3{font-size:23px !important;}
.about-mini-cards span{
  background:#1a3868 !important;
  color:#fff !important;
}
.about-mini-cards span svg,
.about-mini-cards span svg *,
.about-mini-cards .roundicon svg,
.about-mini-cards .roundicon svg *{
  color:#fff !important;
  stroke:#fff !important;
}
.about-mini-cards span svg [fill]:not([fill="none"]){
  fill:#fff !important;
}
.about-mini-cards span svg [fill="none"]{
  fill:none !important;
}
[data-theme="dark"] .about-copy-card .rich-content,
[data-theme="dark"] .about-copy-card .rich-content p,
[data-theme="dark"] .about-copy-card .rich-content li,
[data-theme="dark"] .about-copy-card .rich-content p:first-child{
  color:#d8e5f7 !important;
}
[data-theme="dark"] .about-copy-card .rich-content h2,
[data-theme="dark"] .about-copy-card .rich-content h3{
  color:#fff !important;
}
@media(max-width:720px){
  .about-copy-card .rich-content,
  .about-copy-card .rich-content p,
  .about-copy-card .rich-content li,
  .about-copy-card .rich-content p:first-child{
    font-size:16px !important;
    line-height:1.72 !important;
  }
}

/* Update 1.0.45 - sprava verejneho menu */
.menu-editor-list {
  display: grid;
  gap: 14px;
}
.menu-editor-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid #d8e0ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(26,56,104,.06);
}
.menu-editor-item.is-dragging {
  opacity: .55;
}
.menu-editor-item.is-drop-target {
  outline: 3px solid rgba(246,185,59,.85);
  outline-offset: 2px;
}
.menu-drag-handle {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #eef3fb;
  color: #1a3868;
  font-size: 22px;
  cursor: grab;
}
.menu-editor-main strong {
  display: block;
  color: #10213f;
  font-weight: 700;
}
.menu-editor-main small {
  display: block;
  margin: 2px 0 10px;
  color: #586579;
}
.menu-editor-actions {
  display: grid;
  gap: 8px;
  justify-items: end;
  min-width: 150px;
}
.menu-editor-actions .field {
  margin: 0;
}
@media (max-width: 760px) {
  .menu-editor-item {
    grid-template-columns: 38px 1fr;
  }
  .menu-editor-actions {
    grid-column: 1 / -1;
    justify-items: start;
    display: flex;
    flex-wrap: wrap;
  }
}

/* Update 1.0.47 - prehladnejsi editor menu v stlpcoch */
.menu-editor-table{
  width:100%;
  overflow-x:auto;
  border:1px solid #dbe5f0;
  border-radius:24px;
  background:#fff;
  box-shadow:0 12px 35px rgba(26,56,104,.06);
}
.menu-editor-header,
.menu-editor-row{
  display:grid;
  grid-template-columns:92px minmax(150px,1.1fr) minmax(180px,1.3fr) minmax(180px,1.3fr) minmax(170px,1fr) 120px 120px;
  gap:14px;
  align-items:center;
  min-width:1080px;
}
.menu-editor-header{
  padding:14px 18px;
  background:#f3f7fc;
  color:#4f647e;
  font-size:13px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.05em;
  border-bottom:1px solid #dbe5f0;
}
.menu-editor-list-table{
  gap:0;
}
.menu-editor-row{
  border:0;
  border-radius:0;
  border-bottom:1px solid #e5edf6;
  padding:16px 18px;
  box-shadow:none;
  background:#fff;
}
.menu-editor-row:last-child{border-bottom:0;}
.menu-editor-row:hover{background:#fbfdff;}
.menu-order-cell{
  display:flex;
  align-items:center;
  gap:10px;
  color:#1a3868;
  font-weight:700;
}
.menu-order-cell .menu-drag-handle{
  border:0;
  width:40px;
  height:40px;
  border-radius:14px;
  background:#eef5ff;
  color:#1a3868;
  font-size:22px;
  cursor:grab;
  display:grid;
  place-items:center;
  font-family:Kanit,Arial,sans-serif;
}
.menu-order-cell .menu-drag-handle:focus{
  outline:3px solid #ffd862;
  outline-offset:2px;
}
.menu-page-cell strong{display:block;color:#10213f;font-size:16px;font-weight:700;}
.menu-page-cell small{display:block;color:#667891;margin-top:3px;}
.menu-label-cell .field{margin:0;gap:5px;}
.menu-label-cell .field>span{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}
.menu-label-cell input{
  min-height:44px;
  border-radius:14px;
  background:#fff;
}
.menu-url-cell{display:grid;gap:6px;}
.menu-url-cell code{
  display:block;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  border-radius:999px;
  background:#eef5ff;
  color:#1a3868;
  padding:7px 10px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  font-size:12px;
}
.menu-visible-cell .field{margin:0;display:flex;align-items:center;gap:8px;}
.menu-visible-cell .field>span{font-weight:700;color:#1a3868;}
.menu-editor-actions{
  display:flex;
  gap:8px;
  justify-content:flex-end;
  min-width:auto;
}
.menu-editor-actions .btn[disabled]{opacity:.45;cursor:not-allowed;}
.menu-editor-row.is-dragging{opacity:.55;background:#f8fbff;}
.menu-editor-row.is-drop-target{outline:3px solid rgba(255,216,98,.95);outline-offset:-3px;background:#fffdf2;}

@media(max-width:920px){
  .menu-editor-table{overflow:visible;border:0;box-shadow:none;background:transparent;}
  .menu-editor-header{display:none;}
  .menu-editor-row{
    min-width:0;
    grid-template-columns:1fr;
    gap:12px;
    border:1px solid #dbe5f0;
    border-radius:22px;
    margin-bottom:14px;
    box-shadow:0 8px 22px rgba(26,56,104,.06);
  }
  .menu-order-cell{justify-content:space-between;}
  .menu-page-cell,
  .menu-label-cell,
  .menu-url-cell,
  .menu-visible-cell,
  .menu-editor-actions{width:100%;}
  .menu-label-cell .field>span{
    position:static;
    width:auto;
    height:auto;
    margin:0;
    clip:auto;
    white-space:normal;
  }
  .menu-editor-actions{justify-content:flex-start;}
}

/* Update 1.0.48 - hard fix admin Menu table layout */
.admin-card .menu-editor-table{
  display:block !important;
  width:100% !important;
  overflow-x:auto !important;
  overflow-y:visible !important;
  border:1px solid #dbe5f0 !important;
  border-radius:24px !important;
  background:#fff !important;
  box-shadow:0 12px 35px rgba(26,56,104,.06) !important;
}
.admin-card .menu-editor-header,
.admin-card .menu-editor-row{
  display:grid !important;
  grid-template-columns:86px minmax(150px,1fr) minmax(180px,1.25fr) minmax(180px,1.25fr) minmax(190px,1.1fr) 110px 116px !important;
  column-gap:16px !important;
  row-gap:10px !important;
  align-items:center !important;
  min-width:1120px !important;
  box-sizing:border-box !important;
}
.admin-card .menu-editor-header{
  padding:14px 18px !important;
  background:#f3f7fc !important;
  color:#4f647e !important;
  font-size:12px !important;
  font-weight:700 !important;
  text-transform:uppercase !important;
  letter-spacing:.05em !important;
  border-bottom:1px solid #dbe5f0 !important;
}
.admin-card .menu-editor-header span{
  display:block !important;
  white-space:nowrap !important;
}
.admin-card .menu-editor-list-table{
  display:block !important;
}
.admin-card .menu-editor-row{
  padding:16px 18px !important;
  border:0 !important;
  border-bottom:1px solid #e5edf6 !important;
  border-radius:0 !important;
  background:#fff !important;
  box-shadow:none !important;
}
.admin-card .menu-editor-row:last-child{border-bottom:0 !important;}
.admin-card .menu-order-cell,
.admin-card .menu-page-cell,
.admin-card .menu-label-cell,
.admin-card .menu-url-cell,
.admin-card .menu-visible-cell,
.admin-card .menu-editor-actions{
  min-width:0 !important;
}
.admin-card .menu-order-cell{
  display:flex !important;
  align-items:center !important;
  gap:10px !important;
  color:#1a3868 !important;
  font-weight:700 !important;
}
.admin-card .menu-order-cell .menu-drag-handle{
  flex:0 0 40px !important;
  width:40px !important;
  height:40px !important;
  border:0 !important;
  border-radius:14px !important;
  background:#eef5ff !important;
  color:#1a3868 !important;
  display:grid !important;
  place-items:center !important;
  cursor:grab !important;
}
.admin-card .menu-page-cell strong{
  display:block !important;
  color:#10213f !important;
  font-size:16px !important;
  font-weight:700 !important;
  line-height:1.25 !important;
}
.admin-card .menu-page-cell small{
  display:block !important;
  color:#667891 !important;
  margin-top:3px !important;
  line-height:1.35 !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
}
.admin-card .menu-label-cell .field{
  display:block !important;
  margin:0 !important;
}
.admin-card .menu-label-cell .field>span{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  padding:0 !important;
  margin:-1px !important;
  overflow:hidden !important;
  clip:rect(0,0,0,0) !important;
  white-space:nowrap !important;
  border:0 !important;
}
.admin-card .menu-label-cell input{
  width:100% !important;
  min-height:44px !important;
  border:1px solid #cbd8e8 !important;
  border-radius:14px !important;
  background:#fff !important;
  color:#10213f !important;
  padding:10px 12px !important;
  box-sizing:border-box !important;
}
.admin-card .menu-url-cell{
  display:grid !important;
  gap:6px !important;
}
.admin-card .menu-url-cell code{
  display:block !important;
  max-width:100% !important;
  overflow:hidden !important;
  text-overflow:ellipsis !important;
  white-space:nowrap !important;
  border-radius:999px !important;
  background:#eef5ff !important;
  color:#1a3868 !important;
  padding:7px 10px !important;
  font-size:12px !important;
}
.admin-card .menu-visible-cell .field{
  display:flex !important;
  align-items:center !important;
  gap:8px !important;
  margin:0 !important;
}
.admin-card .menu-visible-cell input[type="checkbox"]{
  width:20px !important;
  height:20px !important;
  accent-color:#1a3868 !important;
}
.admin-card .menu-visible-cell .field>span{
  color:#1a3868 !important;
  font-weight:700 !important;
}
.admin-card .menu-editor-actions{
  display:flex !important;
  gap:8px !important;
  justify-content:flex-end !important;
  align-items:center !important;
}
.admin-card .menu-editor-actions .btn{
  white-space:nowrap !important;
}
@media(max-width:900px){
  .admin-card .menu-editor-table{
    overflow:visible !important;
    border:0 !important;
    box-shadow:none !important;
    background:transparent !important;
  }
  .admin-card .menu-editor-header{display:none !important;}
  .admin-card .menu-editor-row{
    min-width:0 !important;
    grid-template-columns:1fr !important;
    padding:16px !important;
    border:1px solid #dbe5f0 !important;
    border-radius:22px !important;
    margin-bottom:14px !important;
    box-shadow:0 8px 22px rgba(26,56,104,.06) !important;
  }
  .admin-card .menu-label-cell .field>span{
    position:static !important;
    width:auto !important;
    height:auto !important;
    margin:0 0 6px !important;
    clip:auto !important;
    white-space:normal !important;
  }
  .admin-card .menu-editor-actions{justify-content:flex-start !important;}
}

/* Update 1.0.49 - document list/detail and editable why section */
.document-admin-table{
  display:grid;
  gap:0;
  border:1px solid #e4e8f0;
  border-radius:22px;
  overflow:hidden;
  background:#fff;
}
.document-admin-head,
.document-admin-row{
  display:grid;
  grid-template-columns:minmax(260px,2fr) 110px 100px 150px 180px;
  gap:18px;
  align-items:center;
  padding:16px 18px;
}
.document-admin-head{
  background:#f5f8fc;
  color:#1a3868;
  font-size:.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.04em;
}
.document-admin-row{
  border-top:1px solid #edf1f6;
}
.document-admin-row:hover{background:#fbfdff;}
.document-title-cell strong{display:block;color:#172033;font-size:1rem;}
.document-title-cell small{display:block;margin-top:4px;color:#667085;line-height:1.4;}
.document-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end;}
.document-editor-detail{max-width:980px;margin:0 auto;}
.why-benefits-editor .benefit-admin-item{border-left:5px solid #1a3868;}
.why-benefits-editor .field input[type="file"]{padding:12px;background:#f8fafc;}
@media(max-width:980px){
  .document-admin-head{display:none;}
  .document-admin-table{border:0;background:transparent;gap:14px;}
  .document-admin-row{display:grid;grid-template-columns:1fr;border:1px solid #e4e8f0;border-radius:20px;background:#fff;}
  .document-actions{justify-content:flex-start;}
}


/* Update 1.0.51 - hard contrast fix for admin menu/navigation */
html body .admin-shell,
html body .admin-shell *{
  text-shadow:none;
}
html body .admin-shell{
  background:#f4f7fb !important;
  color:#10213f !important;
}
html body .admin-sidebar{
  background:#ffffff !important;
  color:#10213f !important;
  border-right:1px solid #dbe5f0 !important;
}
html body .admin-sidebar a,
html body .admin-sidebar button,
html body .admin-sidebar .admin-menu-label,
html body .admin-sidebar span,
html body .admin-sidebar strong,
html body .admin-sidebar small{
  color:#1a3868 !important;
}
html body .admin-sidebar .admin-menu-label{
  color:#5f7188 !important;
}
html body .admin-menu-group button,
html body .admin-side-bottom a,
html body .admin-side-bottom button,
html body .admin-back,
html body .admin-logout{
  background:#eef5ff !important;
  color:#1a3868 !important;
  border:1px solid #dbe5f0 !important;
}
html body .admin-menu-group button:hover,
html body .admin-menu-group button:focus,
html body .admin-side-bottom a:hover,
html body .admin-side-bottom button:hover,
html body .admin-side-bottom a:focus,
html body .admin-side-bottom button:focus{
  background:#ddeeff !important;
  color:#10213f !important;
  outline:3px solid #ffd862 !important;
  outline-offset:2px !important;
}
html body .admin-menu-group button.active,
html body .admin-menu-group button[aria-current="page"],
html body .admin-menu-group button.is-active{
  background:#1a3868 !important;
  color:#ffffff !important;
  border-color:#1a3868 !important;
}
html body .admin-menu-group button.active *,
html body .admin-menu-group button[aria-current="page"] *,
html body .admin-menu-group button.is-active *{
  color:#ffffff !important;
}
html body .admin-card,
html body .admin-stats>div,
html body .admin-subcard,
html body .admin-list-card,
html body .menu-editor-table,
html body .document-admin-table{
  background:#ffffff !important;
  color:#10213f !important;
}
html body .admin-card h1,
html body .admin-card h2,
html body .admin-card h3,
html body .admin-card h4,
html body .admin-content h1,
html body .admin-content h2,
html body .admin-content h3,
html body .admin-content h4,
html body .admin-content strong,
html body .field>span{
  color:#10213f !important;
}
html body .admin-content p,
html body .admin-content small,
html body .admin-content span{
  color:inherit;
}
html body .field input,
html body .field textarea,
html body .admin-card input,
html body .admin-card textarea,
html body .admin-card select{
  background:#ffffff !important;
  color:#10213f !important;
  border-color:#cbd8e8 !important;
}
html body .menu-editor-header,
html body .document-admin-head{
  background:#f3f7fc !important;
  color:#1a3868 !important;
}
html body .menu-editor-row,
html body .document-admin-row{
  background:#ffffff !important;
  color:#10213f !important;
}
html body .menu-page-cell strong,
html body .document-title-cell strong{
  color:#10213f !important;
}
html body .menu-page-cell small,
html body .document-title-cell small,
html body .menu-url-cell code{
  color:#53657d !important;
}
html body .menu-url-cell code{
  background:#eef5ff !important;
  color:#1a3868 !important;
}

/* Update 1.0.57: meal plan admin and logo upload fields */
.meal-admin-table .document-admin-head,
.meal-admin-table .document-admin-row{grid-template-columns:140px 120px minmax(240px,1fr) 120px 180px}
.meal-editor-detail textarea{min-height:130px}
.admin-upload-field input[type="file"]{margin-top:8px;display:block;width:100%}
@media(max-width:900px){.meal-admin-table .document-admin-head{display:none}.meal-admin-table .document-admin-row{display:grid;grid-template-columns:1fr;gap:10px}}

/* Update 1.0.64 - cache, users and permissions admin UI */
.ms-login{margin-top:.8rem;display:inline-flex}
.users-admin-list{display:grid;gap:1rem;margin-top:1rem}
.user-admin-card{border:1px solid #d8e2ef;border-radius:18px;background:#fff;padding:1rem;box-shadow:0 8px 24px rgba(26,56,104,.06)}
.user-admin-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:1rem;color:#1a3868}
.user-admin-head span{border-radius:999px;background:#eef5ff;color:#1a3868;padding:.25rem .7rem;font-weight:700;font-size:.85rem}
.compact-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.permission-grid{border:1px solid #d8e2ef;border-radius:16px;padding:1rem;margin:1rem 0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.6rem;color:#1a3868}
.permission-grid legend{font-weight:700;padding:0 .4rem;color:#1a3868}
.permission-grid label{display:flex;gap:.45rem;align-items:center;font-weight:500;color:#1a3868}
.field select{width:100%;border:1px solid #ccd7e5;border-radius:12px;padding:.75rem;background:#fff;color:#1a3868;font:inherit}
@media (max-width:900px){.compact-grid,.permission-grid{grid-template-columns:1fr}.user-admin-head{align-items:flex-start;flex-direction:column}}


/* Update 1.0.65 - Microsoft whitelist and user permissions */
.admin-notice{background:#eef6ff;border:1px solid #b9d7ff;color:#15345f;border-radius:16px;padding:1rem 1.15rem;margin:1rem 0;line-height:1.55}
.user-admin-card .permission-grid small{display:block;grid-column:1/-1;color:#5d6b7a;margin-top:.35rem;line-height:1.45}
.user-admin-card .user-admin-head span{background:#1a3868;color:#fff;border-radius:999px;padding:.25rem .65rem;font-size:.82rem;font-weight:600}
.admin-page .check-field input{accent-color:#1a3868}

/* Update 1.0.72 - meal plan admin */
.meal-admin-table .document-admin-head,.meal-admin-table .document-admin-row{grid-template-columns:1fr 1fr 1fr 2fr 1fr 1.2fr;align-items:center}
.meal-status-badge{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:#eef4fb;color:#1a3868;border:1px solid #d7e2ef;padding:.35rem .7rem;font-weight:700;font-size:.88rem}
.meal-special-note{display:none;margin:1rem 0;padding:1rem;border-radius:18px;background:#fff7da;border:1px solid #f0c84b;color:#1a3868;line-height:1.5}
.meal-special-note.is-visible{display:grid;gap:.25rem}
.meal-special-note strong{font-size:1.05rem}
.meal-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1rem}
.meal-edit-card{background:#f7fafc;border:1px solid #dbe5f0;border-radius:22px;padding:1rem}
.meal-edit-card h4{margin:0 0 .8rem;color:#1a3868;font-weight:700}
.field select{width:100%;min-height:44px;border:1px solid #cfd9e6;border-radius:14px;background:#fff;color:#1a3868;padding:.7rem .85rem;font:inherit}
@media(max-width:980px){.meal-admin-table .document-admin-head{display:none}.meal-admin-table .document-admin-row{grid-template-columns:1fr}.meal-edit-grid{grid-template-columns:1fr}}


/* Update 1.0.73 - admin toast notifications and accessible delete modal */
.admin-toast{
  position:fixed;
  right:24px;
  bottom:24px;
  z-index:9999;
  max-width:min(440px,calc(100vw - 32px));
  border-radius:20px;
  padding:16px 20px;
  background:#10305f;
  color:#fff;
  box-shadow:0 18px 55px rgba(16,48,95,.28);
  border:1px solid rgba(255,255,255,.22);
  font-weight:600;
  line-height:1.45;
  opacity:1;
  transform:translateY(0);
  animation:adminToastIn .22s ease-out both;
}
.admin-toast-error{background:#7f1d1d;color:#fff;}
.admin-toast.is-hiding{opacity:0;transform:translateY(12px);transition:opacity .4s ease,transform .4s ease;}
@keyframes adminToastIn{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}
.admin-modal-backdrop{
  position:fixed;
  inset:0;
  z-index:9998;
  display:grid;
  place-items:center;
  padding:24px;
  background:rgba(9,24,45,.62);
  backdrop-filter:blur(5px);
}
.admin-confirm-modal{
  width:min(520px,100%);
  border-radius:30px;
  background:#fff;
  color:#1a3868;
  box-shadow:0 26px 90px rgba(0,0,0,.35);
  padding:30px;
  border:1px solid #dbe5f0;
}
.admin-confirm-modal h2{margin:0 0 12px;font-size:28px;font-weight:700;color:#1a3868;}
.admin-confirm-modal p{margin:0;color:#435872;line-height:1.65;font-size:17px;}
.admin-confirm-actions{display:flex;justify-content:flex-end;gap:12px;flex-wrap:wrap;margin-top:28px;}
.admin-confirm-actions .btn{border:0;cursor:pointer;font-family:Kanit,Arial,sans-serif;}
.admin-confirm-actions .btn.secondary{background:#edf6ff;color:#1a3868;}
.admin-confirm-actions .btn.danger{background:#b91c1c;color:#fff;}
.admin-confirm-actions .btn:focus{outline:4px solid #ffd862;outline-offset:3px;}
@media(max-width:640px){.admin-toast{left:16px;right:16px;bottom:16px}.admin-confirm-modal{padding:22px;border-radius:24px}.admin-confirm-actions{display:grid}.admin-confirm-actions .btn{width:100%;}}

/* Update 1.0.75: väčšia stredová notifikácia */
.admin-toast{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  top:50% !important;
  transform:translate(-50%,-50%) scale(1) !important;
  z-index:99999 !important;
  min-width:min(520px, calc(100vw - 32px)) !important;
  max-width:min(720px, calc(100vw - 32px)) !important;
  padding:24px 30px !important;
  border-radius:24px !important;
  box-shadow:0 24px 70px rgba(15,23,42,.28) !important;
  font-size:22px !important;
  line-height:1.45 !important;
  text-align:center !important;
}
.admin-toast span{display:block;font-weight:700;}
.admin-toast.is-hiding{
  opacity:0 !important;
  transform:translate(-50%,-50%) scale(.96) !important;
  transition:opacity .45s ease, transform .45s ease !important;
}
.admin-toast-error{background:#7f1d1d !important;color:#fff !important;}
@media(max-width:640px){
  .admin-toast{
    top:50% !important;
    left:16px !important;
    right:16px !important;
    transform:translateY(-50%) scale(1) !important;
    min-width:0 !important;
    max-width:none !important;
    font-size:19px !important;
    padding:22px !important;
  }
  .admin-toast.is-hiding{transform:translateY(-50%) scale(.96) !important;}
}

/* Update 1.0.78: širší editor stravy a alergény ako textarea */
.meal-editor-detail.document-editor-detail{width:100%;max-width:none;}
.meal-editor-detail .meal-edit-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;width:100%;}
.meal-editor-detail .meal-edit-card{min-width:0;}
.meal-editor-detail textarea{min-height:120px;resize:vertical;}
.meal-editor-detail .meal-edit-card textarea[data-edit$="Allergens"]{min-height:92px;}
@media(max-width:1100px){.meal-editor-detail .meal-edit-grid{grid-template-columns:1fr;}}

/* update 1.0.84 - dvojstlpcovy editor oznamov */
.announcement-lang-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.25rem;margin-bottom:1.5rem;align-items:start}
.announcement-lang-card{background:#f8fafc;border:1px solid #dbe4f0;border-radius:18px;padding:1.1rem;min-width:0}
.announcement-lang-card h4{margin:0 0 1rem;color:#1a3868;font-size:1.1rem;font-weight:700}
.announcement-lang-card .field,.announcement-lang-card label{min-width:0}
.announcement-lang-card input,.announcement-lang-card textarea{width:100%}
@media (max-width:980px){.announcement-lang-grid{grid-template-columns:1fr}}
[data-theme="dark"] .announcement-lang-card{background:#10213a;border-color:#334967;color:#fff}
[data-theme="dark"] .announcement-lang-card h4{color:#ffd45c}
