/* No sidebar on any screen size (Joro, 2026-11-15): brand in the top bar, the
   bottom navigation from the phone layout is used on desktop too. */
[hidden]{display:none!important}
.sidebar,.menu-toggle{display:none!important}
main{margin-left:0!important}
.mobile-brand{display:flex!important}
.topbar .context{margin-left:18px}
.mobile-nav{display:grid!important;position:fixed;left:50%!important;right:auto!important;bottom:0;transform:translateX(-50%);width:min(760px,100%)}
@media(min-width:761px){
  .mobile-nav{bottom:14px;border:1px solid var(--border)!important;border-radius:20px;padding:6px!important}
  .mobile-nav-item small{font-size:10px!important}
  .content{padding-bottom:120px!important}
}
@media(max-width:760px){.topbar .context{display:none}}
/* Administrator entry in the top bar */
.admin-top-button{position:relative;display:inline-flex;align-items:center;gap:6px;border:1px solid rgba(255,151,103,.35);background:rgba(255,151,103,.08);color:#ffd2bd;border-radius:10px;padding:7px 10px;font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.admin-top-button[hidden]{display:none!important}
.admin-top-button .admin-pending-count{font-style:normal;background:var(--orange);color:#2a1205;border-radius:20px;min-width:18px;height:18px;display:inline-grid;place-items:center;font-size:10px;font-weight:800;padding:0 5px}
@media(max-width:760px){.admin-top-button b{display:none}}
html[data-theme="light"] .admin-top-button{color:#a2461d;background:#fff4ee}
@media(min-width:761px){
  .mobile-nav{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:4px;background:rgba(5,20,32,.94)!important;box-shadow:0 18px 44px rgba(0,5,10,.5);backdrop-filter:blur(18px)}
  .mobile-nav-item{position:relative;min-width:0;min-height:56px;border:1px solid transparent;border-radius:14px;background:transparent;color:#8fa9ba;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;cursor:pointer;font:inherit;transition:.15s}
  .mobile-nav-item:hover{color:var(--white);background:rgba(255,255,255,.04)}
  .mobile-nav-item svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin:0!important}
  .mobile-nav-item small{font-weight:700;white-space:nowrap}
  .mobile-nav-item i{position:absolute;top:6px;right:calc(50% - 22px);font-style:normal;background:var(--cyan);color:#032033;border-radius:20px;min-width:16px;height:16px;display:grid;place-items:center;font-size:9px;font-weight:800}
  html[data-theme="light"] .mobile-nav{background:rgba(255,255,255,.97)!important}
  html[data-theme="light"] .mobile-nav-item{color:#5a7183}
}
@media(max-width:420px){.mobile-brand small{display:none}.admin-top-button{padding:7px 8px}}
/* Modals never wider than the screen (the grid track used to grow to the widest line). */
.modal-backdrop.open{grid-template-columns:minmax(0,1fr);justify-items:center}
.modal{max-width:100%;min-width:0}
.modal *{min-width:0;overflow-wrap:anywhere}
@media(max-width:760px){.modal-backdrop{padding:12px}.modal{padding:22px 18px;max-height:calc(100dvh - 24px);overflow:auto}}

/* Annual leave in green so it never looks like home standby (СД, amber). Joro, 2026-11-15. */
:root{--chip-leave:#1fa874!important}
.code-chip.leave,.calendar-tag.leave{background:#1fa874!important}
.calendar-legend i.leave{background:#1fa874!important}
.detail-item.leave>span{background:rgba(31,168,116,.16)!important;color:#7ee6b8!important}
.today-duty.leave .today-code{color:#6fe0ae!important}
.leave-period-card:not(.active-rest){box-shadow:inset 5px 0 #1fa874,var(--shadow)!important}
.leave-period-card:not(.active-rest) .leave-period-icon{background:rgba(31,168,116,.15)!important;color:#8ef0c3!important}
html[data-theme="light"] .code-chip.leave,html[data-theme="light"] .calendar-tag.leave{background:#178a5e!important}
html[data-theme="light"] .detail-item.leave>span,html[data-theme="light"] .leave-period-card:not(.active-rest) .leave-period-icon{color:#11704b!important}
html[data-theme="light"] .today-duty.leave .today-code{color:#11704b!important}

/* iOS zooms the page when a focused field has text smaller than 16px (Joro 2026-11-16: no zoom while typing).
   Every text field, select and textarea is 16px on touch devices / phones. */
@media (pointer:coarse), (max-width:760px){
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]),select,textarea,.pp-input{font-size:16px!important}
}

/* iCal subscription card (Profile settings) */
.cal-feed-url{width:100%;margin:8px 0;padding:9px 11px;border-radius:10px;border:1px solid var(--border);background:transparent;color:inherit;font:12px ui-monospace,SFMono-Regular,Menlo,monospace}
.cal-feed-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.cal-feed-actions .button-link{display:inline-flex;align-items:center;text-decoration:none;padding:9px 14px;border-radius:10px}
@media (max-width:760px){.cal-feed-url{font-size:16px}}
