/* The mobile workspace uses daily planning and a native modal navigation drawer. */
.menu-trigger,.bottom-nav{display:none}
.mobile-menu:not([open]){display:none}
body.app-has-overlay{overflow:hidden}
/* Shared action dialogs are used on desktop and mobile. */
.plan-action-list{display:grid;gap:10px}
.plan-action-list>button{display:flex;align-items:center;gap:13px;min-height:78px;padding:15px;background:#f3f8fc;border:1px solid #e4edf4;border-radius:11px;text-align:left;color:#285a7b}
.plan-action-list>button>svg{width:20px;height:20px;flex-shrink:0}
.plan-action-list>button>svg:last-child{width:15px;height:15px;color:#88a6ba}
.plan-action-list>button>span{flex:1;font-size:13px;min-width:0}
.plan-action-list small{display:block;font-size:10px;color:#839aaa;line-height:1.7;margin-top:5px}
.plan-action-list>button:hover{background:#eaf3fa;border-color:#bad2e3}
.plan-action-list>button:focus-visible{outline:3px solid #e4a724;outline-offset:3px}
.plan-action-list>button>span{overflow-wrap:anywhere}
@media(max-width:760px){
 :root{--app-header:70px;--app-bottom:68px}
 html{scroll-padding-top:calc(var(--app-header) + env(safe-area-inset-top) + 12px);-webkit-text-size-adjust:100%}
 body{overscroll-behavior-y:none}
 button,a,input,select,summary{touch-action:manipulation}
 button,input,select,a{ -webkit-tap-highlight-color:transparent}
 .layout{min-height:100dvh;display:block}
 .layout>.sidebar{display:none}
 .main{min-width:0}
 .topbar{position:sticky;top:0;z-index:12;height:calc(var(--app-header) + env(safe-area-inset-top));padding:env(safe-area-inset-top) max(12px,env(safe-area-inset-right)) 0 max(12px,env(safe-area-inset-left));gap:8px;box-shadow:0 2px 10px #005a8c04;justify-content:flex-start;background:#fff}
 .menu-trigger{display:grid;flex-shrink:0;border:0;background:#edf5fb;color:var(--ink)}
 .icon-btn,.user .icon-btn{width:44px;height:44px;min-width:44px;border-radius:12px}
 .icon-btn svg{width:19px;height:19px}
 .topbar .mobile-logo{width:79px;min-width:79px;height:auto;display:block}
 .topbar .site-switch{flex:1;min-width:0;gap:0;margin-left:3px}
 .site-switch>div:last-child{min-width:0;width:100%}
 .site-switch select{width:100%;min-width:0;max-width:none;font-size:12px;line-height:1.6;text-overflow:ellipsis;white-space:nowrap;padding:3px 0;min-height:32px}
 .site-switch small{font-size:8px;line-height:1.2;letter-spacing:.3px;white-space:nowrap;margin:0}
 .topbar .user{margin-left:auto;gap:0}
 .topbar .user-name,.topbar .avatar,.topbar .desktop-logout{display:none}
 .topbar .user>.icon-btn{border:0;background:transparent}
 .content{padding:22px max(16px,env(safe-area-inset-right)) calc(var(--app-bottom) + env(safe-area-inset-bottom) + 28px) max(16px,env(safe-area-inset-left));max-width:none}
 .bottom-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;bottom:0;left:0;right:0;z-index:14;height:calc(var(--app-bottom) + env(safe-area-inset-bottom));padding:5px max(8px,env(safe-area-inset-right)) calc(5px + env(safe-area-inset-bottom)) max(8px,env(safe-area-inset-left));background:#fffffff5;backdrop-filter:blur(15px);border-top:1px solid #dce7f0;box-shadow:0 -4px 20px #005a8c04}
 .bottom-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;min-height:52px;border-radius:12px;color:#708495;background:transparent;position:relative;font-size:10px;line-height:1.2;padding:5px 2px}
 .bottom-nav button svg{width:21px;height:21px}
 .bottom-nav button[aria-current=page]{color:var(--ink);background:#eaf4fc}
 .bottom-nav button[aria-current=page]:before{content:"";position:absolute;top:1px;width:19px;height:3px;background:#009cd8;border-radius:2px}
 .mobile-menu[open]{position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;width:min(340px,90vw);height:100dvh;max-height:100dvh;max-width:90vw;margin:0;border:0;border-radius:0 22px 22px 0;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);box-shadow:10px 0 55px #00365428;background:#fff;overflow:auto;animation:drawer-arrive .2s ease-out}
 .mobile-menu::backdrop{background:#00365475;backdrop-filter:blur(3px)}
 .drawer-head{display:flex;align-items:center;justify-content:space-between;padding:23px 18px 19px 23px;gap:16px}
 .drawer-head>img{width:135px;height:auto}
 .drawer-head .icon-btn{border:0;background:#f0f5f9;color:#36566c}
 .drawer-account{margin:0 18px;padding:16px 13px;display:flex;align-items:center;gap:12px;border-radius:13px;background:#edf5fb}
 .drawer-avatar{display:grid;place-items:center;flex-shrink:0;width:41px;height:41px;background:#d7eaf8;border-radius:50%;font-size:13px;color:var(--ink)}
 .drawer-account>div:last-child{min-width:0}
 .drawer-account strong{font-size:13px;font-weight:500;display:block;overflow-wrap:anywhere;color:#153c55}
 .drawer-account span{display:block;font-size:10px;margin-top:4px;color:#678196}
 .drawer-label{font-size:10px;letter-spacing:1.4px;text-transform:uppercase;color:#8498a7;margin:24px 27px 10px;font-weight:400}
 .drawer-nav{display:grid;gap:4px;padding:0 14px 22px}
 .drawer-nav button{display:flex;align-items:center;gap:14px;min-height:52px;padding:12px 15px;border-radius:10px;text-align:left;background:white;color:#39596f;font-size:12px}
 .drawer-nav button>svg{width:20px;height:20px;flex-shrink:0;color:#60869f}
 .drawer-nav button>span{flex:1}
 .drawer-nav button>svg:last-child{width:15px;height:15px;color:#a1b5c3}
 .drawer-nav button[aria-current=page]{background:#e7f3fc;color:#005a8c}
 .drawer-nav button[aria-current=page]>svg{color:#009cd8}
 .drawer-footer{margin-top:auto;border-top:1px solid #e8eef3;padding:17px 24px 14px}
 .drawer-footer>span{color:#8a9da9;font-size:9px}
 .drawer-logout{display:flex;align-items:center;gap:12px;background:transparent;color:#536e80;min-height:48px;padding:6px 0;margin-top:7px;font-size:12px}
 .drawer-logout svg{width:18px;height:18px}
 .mobile-page-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:18px}
 .mobile-page-heading .actions{gap:6px;flex-wrap:nowrap}
 .mobile-kicker{font-size:10px;color:#7291a5;display:block;margin-bottom:7px}
 .mobile-page-heading h1{font-size:26px;line-height:1.3;letter-spacing:-.9px;margin:0}
 .mobile-page-heading .icon-btn{border:1px solid var(--line);background:white}
 .mobile-page-heading .primary-icon{background:var(--ink);color:white;border-color:var(--ink)}
 .mobile-month-row{display:flex;align-items:center;gap:8px;margin-bottom:16px;min-width:0}
 .mobile-month-row .month-input{flex:1;min-width:0;max-width:170px;height:44px;font-size:14px;background:#fff;border-radius:10px;padding:8px}
 .mobile-month-row>.btn{min-height:44px;font-size:12px;border-radius:10px;padding:9px 12px}
 .mobile-jump-date{height:44px;flex-shrink:0;position:relative;display:grid;place-items:center;width:44px;background:#fff;border:1px solid var(--line);border-radius:10px;color:var(--ink);overflow:hidden;cursor:pointer;margin-left:auto}
 .mobile-jump-date>svg{width:19px;height:19px;pointer-events:none}
 .mobile-jump-date>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .mobile-jump-date>input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;font-size:16px;min-width:0}
 .mobile-jump-date:focus-within{outline:2px solid #429edd;outline-offset:2px}
 .mobile-week{border:1px solid var(--line);border-radius:15px;padding:10px 8px 12px;background:white;margin-bottom:21px}
 .mobile-week-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;padding:0 2px}
 .mobile-week-head>span{font-size:11px;color:#648096}
 .mobile-week-head .icon-btn{border:0;width:40px;min-width:40px;height:36px}
 .mobile-day-strip{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:3px}
 .mobile-day-strip>button{min-width:0;min-height:72px;border-radius:11px;background:transparent;color:#6d8799;padding:8px 0 6px;display:flex;align-items:center;flex-direction:column;gap:6px;font-size:10px}
 .mobile-day-strip>button strong{font-weight:500;font-size:16px;line-height:1.2;color:#294e66}
 .mobile-day-strip>button i{display:block;width:4px;height:4px;border-radius:50%;background:#d7a95d}
 .mobile-day-strip>button i.is-covered{background:#009cd8}
 .mobile-day-strip>button i.no-duties{background:transparent}
 .mobile-day-strip>button[aria-pressed=true]{background:var(--ink);color:#d0ecfc}
 .mobile-day-strip>button[aria-pressed=true] strong{color:white}
 .mobile-day-strip>button[aria-pressed=true] i.is-covered{background:#8cdcff}
 .mobile-day-strip>button.is-today:not([aria-pressed=true]){background:#edf6fc}
 .mobile-day-strip>button:disabled{opacity:.3}
 .mobile-day-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:16px}
 .mobile-day-heading h2{font-size:17px;line-height:1.5;letter-spacing:-.5px;margin:0 0 5px;color:#1a405a}
 .mobile-day-heading p{font-size:10px;color:#7890a1;line-height:1.7;margin:0}
 .mobile-open-badge,.mobile-covered-badge{display:inline-block;flex-shrink:0;background:#fff1d9;color:#a17320;border-radius:7px;font-size:10px;padding:6px 9px;white-space:nowrap}
 .mobile-covered-badge{color:#33708b;background:#e4f3fb}
 .mobile-plan-filters{margin-bottom:22px}
 .status-segments{display:flex;padding:4px;gap:3px;background:#e8eef4;border-radius:11px;min-width:0}
 .status-segments button{flex:1;min-width:0;background:transparent;border-radius:8px;min-height:38px;font-size:11px;color:#6c8295;padding:6px 4px;white-space:nowrap}
 .status-segments button[aria-pressed=true]{background:#fff;color:#005a8c;box-shadow:0 2px 5px #0036540a}
 .mobile-role-select{display:flex;justify-content:space-between;align-items:center;margin-top:12px;padding:0 2px;gap:12px}
 .mobile-role-select>span{font-size:10px;color:#7c94a5}
 .mobile-role-select select{min-height:44px;max-width:210px;padding:8px 10px;border:1px solid var(--line);background:#fff;border-radius:9px;font-size:12px;color:var(--ink)}
 .mobile-agenda{display:grid;gap:22px}
 .agenda-group>h3{display:flex;align-items:center;gap:8px;color:#33566f;font-size:12px;margin:0 0 10px;font-weight:500}
 .agenda-group>h3>span{font-size:9px;border:1px solid #dce6ee;border-radius:6px;padding:1px 6px;color:#7791a3;background:transparent}
 .agenda-card{width:100%;display:block;text-align:left;border:1px solid var(--line);border-radius:14px;background:#fff;color:#244a65;margin-bottom:10px;padding:16px;box-shadow:0 2px 6px #005a8c03}
 .agenda-card:last-child{margin-bottom:0}
 .agenda-time>strong{display:flex;align-items:center;gap:10px;font-size:19px;font-weight:500;letter-spacing:-.4px;line-height:1.4}
 .agenda-time>strong span{font-size:13px;color:#94aabb}
 .agenda-time>small{display:block;font-size:10px;color:#7c93a5;margin-top:4px}
 .agenda-besetzung{margin:15px 0 13px;display:grid;gap:10px}
 .agenda-person{display:flex;align-items:center;gap:8px;min-width:0}
 .agenda-person>i{display:grid;place-items:center;width:19px;height:19px;border-radius:50%;background:#e9f5fc;color:#288ab9;flex-shrink:0}
 .agenda-person>i.pending{background:#fff3dd;color:#b58631}
 .agenda-person>i svg{width:12px;height:12px}
 .agenda-person>span{font-size:12px;min-width:0;overflow-wrap:anywhere;color:#36576e}
 .agenda-person>small{margin-left:auto;flex-shrink:0;font-size:9px;color:#8497a5}
 .agenda-vacancy{display:flex;align-items:center;gap:7px;font-size:11px;color:#a3782d;line-height:1.6}
 .agenda-vacancy>svg{width:16px;height:16px}
 .agenda-card-footer{border-top:1px solid #edf2f6;display:flex;justify-content:space-between;gap:10px;align-items:center;padding-top:11px;font-size:9px;color:#8b9dab}
 .agenda-card-footer>span:last-child{display:flex;align-items:center;gap:4px;color:#4f86aa;white-space:nowrap}
 .agenda-card-footer svg{width:13px;height:13px}
 .mobile-plan-footer{display:grid;gap:5px;font-size:9px;color:#90a2ae;margin-top:20px;line-height:1.7}
 .mobile-add-duty{display:flex;align-items:center;justify-content:center;gap:9px;min-height:48px;background:#e5f2fb;color:var(--ink);border:1px solid #cce3f3;border-radius:11px;width:100%;font-size:12px;padding:12px;margin-top:16px}
 .mobile-add-duty svg{height:18px;width:18px}
 .mobile-empty{background:white;border:1px dashed #d5e1eb;border-radius:14px;padding:29px 18px;text-align:center;color:#7991a4;margin:10px 0}
 .mobile-empty>div>svg{width:27px;height:27px;color:#75a9c9;margin-bottom:14px}
 .mobile-empty h3{font-size:15px;color:#33586f;margin:0 0 8px}
 .mobile-empty p{font-size:11px;line-height:1.8;margin:0 auto 17px;max-width:260px}
 .mobile-empty .btn{min-height:44px}
 .page-head{margin-bottom:21px}.page-head .eyebrow{display:none}.page-head h1{font-size:26px;line-height:1.4;letter-spacing:-.9px}
 .page-head .subtitle{font-size:11px;line-height:1.8;margin-top:4px}
 .page-head>.actions{gap:8px;margin-top:16px}.page-head .month-input{min-height:44px;font-size:14px;min-width:0;max-width:180px;flex:1}
 .btn,.btn.small{min-height:44px;border-radius:9px;font-size:12px;padding:10px 13px}
 .btn.ghost{min-height:44px}
 .field input,.field select{font-size:16px;min-height:48px;border-radius:9px}
 .field span{font-size:12px}
 .mobile-team-list{display:grid;gap:13px}
 .team-card{display:block;width:100%;border:1px solid var(--line);border-radius:14px;padding:16px;background:#fff;text-align:left;color:#33566f}
 .team-card-head{display:flex;align-items:center;gap:11px;margin-bottom:15px;min-width:0}
 .team-avatar{width:40px;height:40px;background:#e7f3fc;color:#29739c;border-radius:12px;display:grid;place-items:center;flex-shrink:0;font-size:12px}
 .team-card-head>div{flex:1;min-width:0}
 .team-card h2{font-size:14px;margin:0 0 3px;font-weight:500;overflow-wrap:anywhere;letter-spacing:-.3px}
 .team-card-head p{font-size:10px;color:#8499a8;margin:0}
 .team-card-head>svg{height:16px;width:16px;flex-shrink:0;color:#85a4b8}
 .team-contract{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:#8a9dab;margin-bottom:16px;flex-wrap:wrap}
 .team-hours{display:flex;justify-content:space-between;gap:10px;align-items:center;font-size:10px;color:#7d94a4}
 .team-hours strong{font-weight:400;color:#2e729a}
 .team-card .progress{max-width:none;height:5px;margin-top:9px}
 .mobile-template-groups{display:grid;gap:12px}
 .template-day{background:white;border:1px solid var(--line);border-radius:13px;overflow:hidden}
 .template-day summary{list-style:none;display:flex;align-items:center;justify-content:space-between;padding:16px;min-height:70px;gap:12px;color:#244e68;cursor:pointer}
 .template-day summary::-webkit-details-marker{display:none}
 .template-day summary>span{display:block;font-size:14px}
 .template-day summary small{display:block;color:#8b9eac;font-size:10px;margin-top:5px}
 .template-day summary>svg{width:17px;height:17px;color:#7f9fb6;transition:transform .15s}
 .template-day[open] summary>svg{transform:rotate(90deg)}
 .template-item{border-top:1px solid #edf2f7;padding:15px 16px;display:flex;align-items:center;justify-content:space-between;gap:12px}
 .template-item>div{min-width:0;flex:1}
 .template-item strong{display:block;font-size:13px;font-weight:500}
 .template-item span{display:block;color:#6c889b;font-size:11px;margin-top:5px}
 .template-item small{display:block;color:#95a5b1;font-size:9px;margin-top:5px}
 .template-item>.icon-btn{border:0;background:#f3f7fa}
 .stats{gap:10px;margin-bottom:24px}.stat{border-radius:13px;padding:16px}.stat-label{font-size:10px;line-height:1.7;margin-bottom:12px}.stat-value{font-size:28px}.stat-foot{font-size:9px;line-height:1.8;margin-top:10px}.stat-icon{right:13px;top:16px}.stat-icon svg{width:16px;height:16px}
 .mobile-report-section{margin-bottom:22px}.mobile-report-section>h2{font-size:16px;line-height:1.6;margin-bottom:12px;letter-spacing:-.4px;color:#31566f}
 .mobile-role-reports{display:grid;gap:11px}
 .role-report-card{display:block;width:100%;background:white;border:1px solid var(--line);border-radius:13px;padding:16px;text-align:left;color:#34576e}
 .role-report-card>div:first-child{display:flex;justify-content:space-between;align-items:center;gap:12px}
 .role-report-card h3{font-size:13px;margin:0;font-weight:500}
 .role-report-card strong{display:flex;align-items:center;gap:9px;font-weight:400;font-size:13px;color:#3886b3}
 .role-report-card strong svg{width:14px;height:14px;color:#83a1b6}
 .role-report-card .progress{max-width:none;height:6px;margin:15px 0 11px}
 .role-report-card p{display:flex;justify-content:space-between;gap:10px;margin:0;font-size:10px;color:#879baa;line-height:1.7}
 .mobile-contract-report h2{font-size:16px;letter-spacing:-.3px}
 .mobile-hours-total{font-size:32px;margin:20px 0 22px;color:#005a8c;line-height:1.3}
 .mobile-hours-total>span{display:block;color:#8299aa;font-size:10px;margin-top:5px}
 .mobile-report-line{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid #edf2f7;min-height:44px;font-size:11px;color:#708b9d}
 .mobile-report-line>strong{font-size:13px;font-weight:400;color:#315c79}
 .full-width{width:100%}
 .mobile-site-comparison{display:grid;gap:11px}.compare-site-card{padding:14px;background:#f8fbfd;border:1px solid #e3edf4;border-radius:11px}.compare-site-card>div{display:flex;justify-content:space-between;align-items:center;gap:9px}.compare-site-card h3{font-size:13px;margin:0;font-weight:500}.compare-site-card p{font-size:10px;line-height:1.8;color:#6f889b;margin:11px 0 6px}.compare-site-card>small{font-size:9px;color:#8b9fac}
 .panel{border-radius:13px}
 .list-item{border-radius:11px;padding:15px;gap:12px}.list-item h3{font-size:13px;line-height:1.7}.list-item p{font-size:11px;line-height:1.8}.list-item>.actions{width:100%}.list-item>.actions>.btn{flex:1}
 .card-list{gap:12px}
 .notice{font-size:11px;border-radius:10px;line-height:1.9;padding:14px}
 .bottom-note{font-size:10px;line-height:1.9;overflow-wrap:anywhere}
 #modal{position:fixed;inset:auto 0 0;width:100%;max-width:100%;max-height:calc(100dvh - max(12px,env(safe-area-inset-top)));margin:0;border-radius:21px 21px 0 0;padding:0;overflow:auto;overscroll-behavior:contain;animation:sheet-arrive .18s ease-out}
 #modal>.modal-head{position:sticky;top:0;z-index:2;background:#fff;padding:16px 17px 14px;min-height:73px;gap:14px}
 .modal-head h2{font-size:16px;line-height:1.6;letter-spacing:-.4px}
 .modal-head>.icon-btn{flex-shrink:0;background:#f1f6fa;border:0}
 .modal-body{padding:20px 17px calc(20px + env(safe-area-inset-bottom));font-size:13px;overflow-wrap:anywhere}
 .modal-body>.actions{gap:7px}.modal-body h3{font-size:13px;line-height:1.8;color:#355d77}
 .modal-body .badge{font-size:10px;padding:6px 8px}
 .modal-body .list-item>span.badge{margin-left:auto}
 .modal-body .list-item>.btn.ghost{background:#f4f7fa;width:100%;margin-top:2px}
 .modal-body .tiny{font-size:10px;line-height:1.9}
 .modal-body .candidate{padding:16px 0}.candidate strong{font-weight:500;font-size:13px}.candidate p{font-size:11px;line-height:1.9;margin:8px 0}
 .form-footer{position:sticky;bottom:calc(-20px - env(safe-area-inset-bottom));background:#fff;padding:14px 0 calc(10px + env(safe-area-inset-bottom));border-top:1px solid #edf1f5;gap:9px;z-index:1;margin-top:22px}
 .form-footer .btn{flex:1;white-space:normal;line-height:1.5;min-height:48px}
 .location-toolbar select,.location-search input{min-height:44px;font-size:13px}
 .location-card .btn{min-height:44px}.location-website{min-height:44px;display:flex;align-items:center;font-size:11px}
 #toast{bottom:calc(var(--app-bottom) + env(safe-area-inset-bottom) + 12px);font-size:12px;line-height:1.9;border-radius:12px;z-index:40}
 @keyframes drawer-arrive{from{transform:translateX(-24px);opacity:.6}to{transform:translateX(0);opacity:1}}
 @keyframes sheet-arrive{from{transform:translateY(20px);opacity:.6}to{transform:translateY(0);opacity:1}}
}
@media(max-width:359px){
 .topbar{gap:5px;padding-left:8px;padding-right:8px}.topbar .mobile-logo{width:65px;min-width:65px}.topbar .site-switch{margin-left:0}.site-switch select{font-size:11px}.site-switch small{font-size:7px}
 .content{padding-left:12px;padding-right:12px}.mobile-day-strip{gap:1px}.mobile-week{padding-left:5px;padding-right:5px}.mobile-day-strip>button{font-size:9px}.mobile-day-heading h2{font-size:15px}.mobile-page-heading h1{font-size:23px}.status-segments button{font-size:10px}.mobile-month-row .month-input{font-size:12px}.agenda-person>small{font-size:8px}
}
@media(prefers-reduced-motion:reduce){.mobile-menu[open],#modal{animation:none!important}.template-day summary>svg{transition:none}}

/* Standortbezogener Wochenbaukasten, mit Tastatur-/Touch-Alternative. */
.builder-layout{display:grid;grid-template-columns:230px minmax(0,1fr);gap:20px;margin-top:20px;align-items:start}.builder-palette{padding:18px;position:sticky;top:20px}.builder-palette h2,.builder-settings h2{font-size:18px;margin:0 0 12px}.builder-palette select{width:100%;margin:8px 0 16px;padding:10px;border:1px solid #ccdbe5;border-radius:8px;background:white}.builder-windows{display:grid;gap:10px}.builder-window{display:grid;gap:5px;text-align:left;border:1px solid #d3e1ea;background:#fff;border-radius:10px;padding:14px;color:#17435e;cursor:grab;font:inherit;min-width:0}.builder-window span,.builder-window small{font-size:12px}.builder-window.selected{border:2px solid #005a8c;background:#edf7fc;padding:13px}.builder-window:disabled{opacity:.8;cursor:default}.builder-week{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;min-width:0}.builder-day{border:1px solid #d5e1e9;border-radius:12px;padding:12px;background:#f6f9fb;min-width:0;min-height:180px}.builder-day header{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px;margin-bottom:14px}.builder-day header h2{font-size:16px;margin:0}.builder-day header span{font-size:11px;color:#53718a}.builder-day.drag-over{outline:3px dashed #005a8c;background:#e6f3fa}.builder-position{display:grid;gap:7px;background:white;border:1px solid #dce5ec;border-left:4px solid #005a8c;padding:12px;border-radius:8px;margin:10px 0;min-width:0;overflow-wrap:anywhere}.builder-position[draggable=true]{cursor:grab}.builder-position.role-assistant{border-left-color:#008b93}.builder-position.role-reception{border-left-color:#da8b28}.builder-position.role-steri{border-left-color:#9565b3}.builder-position strong{font-size:13px}.builder-position span,.builder-position small{font-size:12px}.builder-card-actions{display:flex;gap:4px;align-items:center;justify-content:space-between;flex-wrap:wrap}.builder-card-actions .btn{white-space:normal;padding:5px 0;font-size:11px}.builder-insert{display:flex;flex-wrap:wrap;gap:6px;align-items:center;justify-content:center;border:1px dashed #a7bfce;background:transparent;border-radius:8px;width:100%;padding:12px 6px;color:#005a8c;font:inherit;font-size:12px;cursor:pointer;min-height:48px}.builder-insert svg{width:16px;height:16px}.builder-insert span{width:100%;font-size:11px}.builder-settings{display:grid;grid-template-columns:minmax(220px,1fr) minmax(0,2fr);gap:20px}.builder-settings .panel{padding:20px;min-width:0}.builder-check{display:flex;align-items:center;gap:12px;margin:16px 0;min-height:30px}.builder-check input{width:20px;height:20px;accent-color:#005a8c}.builder-setting-row{display:flex;justify-content:space-between;align-items:center;gap:10px;border-bottom:1px solid #e1e9ef;padding:16px 0;flex-wrap:wrap}.builder-setting-row p{font-size:12px;margin:6px 0}.builder-settings-head{display:flex;justify-content:space-between;gap:10px;align-items:center;flex-wrap:wrap}.builder-window:focus-visible,.builder-insert:focus-visible,.builder-position:focus-visible{outline:3px solid #e4a724;outline-offset:3px}
@media(min-width:1500px){.builder-week{grid-template-columns:repeat(7,minmax(0,1fr))}}
@media(max-width:1050px){.builder-layout{grid-template-columns:190px minmax(0,1fr)}.builder-week{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.builder-layout,.builder-settings{grid-template-columns:minmax(0,1fr);gap:14px}.builder-palette{position:static;padding:16px}.builder-windows{display:flex;overflow-x:auto;padding:3px 3px 9px;scroll-snap-type:x proximity}.builder-window{flex:0 0 170px;scroll-snap-align:start}.builder-week{grid-template-columns:minmax(0,1fr)}.builder-day{min-height:110px;padding:14px}.builder-position{padding:14px}.builder-card-actions .btn{font-size:12px;min-height:44px}.builder-settings .panel{padding:16px}.builder-insert{min-height:56px}.builder-palette .tiny{line-height:1.6}.builder-settings input:not([type=checkbox]){max-width:100%}}
.builder-drag-ghost{position:fixed;z-index:9999;pointer-events:none;max-width:230px;padding:16px;border:2px solid #005a8c;border-radius:10px;background:#edf7fc;color:#17435e;box-shadow:0 8px 24px #143b5933;font-size:12px;white-space:normal;opacity:.95}.builder-position,.builder-window{user-select:none}
.employee-role-fields{border:1px solid #d3e1ea;border-radius:10px;padding:12px 16px;min-width:0}.employee-role-fields legend{padding:0 6px;font-size:13px;color:#17435e}.employee-role-fields .builder-check{margin:10px 0}.builder-settings .builder-check{overflow-wrap:anywhere}.builder-settings form[data-form=builder_roles]>.btn.ghost{margin-top:-10px;margin-bottom:12px}
#modal .actions{flex-wrap:wrap}#modal .badge{max-width:100%;white-space:normal;overflow-wrap:anywhere}.team-card-head p{overflow-wrap:anywhere}
.template-set-panel{padding:20px;margin:0 0 20px}.template-set-controls{display:flex;align-items:end;gap:16px;flex-wrap:wrap}.template-set-controls>.field{min-width:220px;flex:1}.template-set-controls select{width:100%;padding:12px;border:1px solid #cbdce7;background:#fff;border-radius:8px}.template-week-head{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;border-top:1px solid #e0e8ee;margin-top:18px;padding-top:10px}.template-week-head h3{font-size:15px}.template-week-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e0e8ee;flex-wrap:wrap}.template-week-row>div{display:grid;gap:6px;overflow-wrap:anywhere}.template-week-row strong,.template-week-row span{font-size:13px}.template-week-list{max-height:280px;overflow-y:auto}@media(max-width:760px){.template-set-panel{padding:16px}.template-set-controls>.field{min-width:0;width:100%;flex-basis:100%}.template-set-controls .actions{flex-wrap:wrap}.template-week-row .btn{white-space:normal}.template-set-panel .tiny{line-height:1.6}}
.template-staff-preview{display:grid;gap:5px}.template-staff-preview span{font-size:11px;display:flex;gap:5px;align-items:center;overflow-wrap:anywhere}.template-staff-preview svg{width:13px;height:13px;flex-shrink:0}.template-staff-editor{border-top:1px solid #dce5ec;margin-top:20px;padding-top:10px}.review-banner{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#edf7fc;border:1px solid #bad6e7;border-radius:10px;padding:16px;margin:0 0 20px;flex-wrap:wrap}.review-banner strong{font-size:14px}.review-banner small{display:block;margin-top:5px;color:#536e80}.review-list{padding:0 18px}.review-request{display:flex;align-items:center;justify-content:space-between;gap:16px;border:0;border-bottom:1px solid #dae5ed;background:white;width:100%;padding:18px 4px;text-align:left;color:#17435e;font:inherit;cursor:pointer;overflow-wrap:anywhere}.review-request h3{font-size:16px;margin:9px 0}.review-request p{font-size:12px;margin:6px 0}.review-request>svg{width:20px;height:20px;flex-shrink:0}.review-request:focus-visible{outline:3px solid #e5a624;outline-offset:-3px}.review-request:hover{background:#f5f9fc}@media(max-width:760px){.review-banner{padding:14px;gap:12px}.review-banner strong{font-size:13px}.review-list{padding:0 12px}.review-request{min-height:100px}.template-staff-editor .list-item{flex-wrap:wrap}}

.my-duty-list{padding:0 20px}.my-duty{gap:20px;align-items:flex-start}.my-duty h3{margin-top:10px}.my-duty .actions{justify-content:flex-end;flex-wrap:wrap}.my-duty .badge{white-space:normal}@media(max-width:760px){.my-duty-list{padding:0 14px}.my-duty{flex-direction:column;gap:10px}.my-duty .actions{justify-content:flex-start;width:100%}.my-duty .actions .btn{flex:1 1 auto;white-space:normal}}

.absence-list{padding:0 20px}.absence-card{gap:20px;align-items:flex-start}.absence-card h3{margin-top:10px}.absence-card .actions{flex-wrap:wrap;justify-content:flex-end}@media(max-width:760px){.absence-list{padding:0 14px}.absence-card{flex-direction:column;gap:10px}.absence-card .actions{width:100%;justify-content:flex-start}.absence-card .btn{flex:1 1 auto;white-space:normal}}

.month-navigation{display:flex;align-items:center;gap:4px;min-width:0}
.month-navigation .month-input{min-width:0;max-width:180px}
@media(max-width:700px){.mobile-month-row{flex-wrap:wrap}.month-navigation .month-input{max-width:155px}.month-navigation .icon-btn{flex-shrink:0}.page-actions .month-navigation{max-width:100%}}
