/* Shared, simple controls for Weranek V46. */
.ev46-dialog [hidden],.ev46-tools [hidden]{display:none!important}
.ev46-pdf-scroll{max-height:65dvh;overflow:auto;border:1px solid #e5dfed;background:#edeaf1;padding:2px}.ev46-pdf-scroll canvas{display:block;margin:auto;background:white}
#ev46CreateOrder{margin:0 0 20px;border:1px solid #e3deed;border-radius:13px;background:#fff}#ev46CreateOrder>summary{padding:16px 20px;font-weight:800;color:#40217c;cursor:pointer;min-height:48px}#ev46CreateOrder>.card{margin:0;border:0;box-shadow:none}
.project-folder-card{border:3px solid #dca923!important;box-sizing:border-box}
.project-folder-card.priority-high{border:4px solid #d32d3b!important;box-shadow:0 4px 17px #d32d3b18;background:#fffafb}
.project-folder-card.priority-normal{border-color:#d6a31b!important}
.project-folder-card.priority-low{border-color:#288750!important}
.priority-label{display:inline-block;font-size:12px;font-weight:800;border-radius:6px;padding:3px 8px;margin:0 0 7px;background:#fff1bc;color:#6e4d00}
.priority-high .priority-label{background:#ffe0e4;color:#a71525}.priority-low .priority-label{background:#e3f4e8;color:#176536}
.ev46-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin:14px 0}.ev46-tools button,.ev46-tools a,.ev46-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;width:auto;min-height:44px;margin:0;border:1px solid #ded8ee;border-radius:11px;padding:10px 15px;background:#f5f2fb;color:#39216e;font:700 14px system-ui;text-decoration:none;cursor:pointer}
.ev46-tools select{width:auto;min-width:145px;min-height:44px;margin:0}.ev46-toolbar{padding:18px 20px;background:#fff;border:1px solid #e4def0;border-radius:18px;margin:0 0 18px}.ev46-toolbar label{display:block;font-weight:800;font-size:14px;margin:0 0 8px;color:#382068}.ev46-search{width:100%;margin:0!important;min-height:48px;border-radius:12px!important;font-size:16px!important}.ev46-results{display:grid;gap:8px;margin-top:10px;max-height:420px;overflow:auto}.ev46-results:empty{display:none}.ev46-result{display:block;text-align:left;width:100%;padding:12px;border:1px solid #e4def0;border-radius:10px;background:#faf9fd;color:#2d224c;cursor:pointer}.ev46-result strong,.ev46-result small{display:block}.ev46-result small{color:#70677d;margin-top:4px;overflow-wrap:anywhere}
.ev46-dialog{padding:0;border:1px solid #ded8ed;border-radius:20px;width:min(820px,calc(100vw - 24px));max-height:90dvh;background:#fff;color:#28203c;box-shadow:0 20px 90px #190d4b44;overflow:auto}.ev46-dialog::backdrop{background:#160e30a6}.ev46-dialog>header{position:sticky;top:0;background:#fff;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 22px;border-bottom:1px solid #ece7f2}.ev46-dialog h2{font-size:23px;color:#34216e;margin:0}.ev46-dialog header button{width:auto;min-width:44px;min-height:44px;margin:0;border:1px solid #e3ddee;border-radius:10px;background:#f7f4fc;color:#3f286d;font-size:22px;cursor:pointer}.ev46-body{padding:22px}.ev46-body p{line-height:1.6;color:#6e637c}.ev46-body .ev46-error{color:#aa2439;background:#fff0f2;padding:12px;border-radius:9px}.ev46-body button:disabled{opacity:.55;cursor:wait}.ev46-dialog button:focus-visible,.ev46-result:focus-visible,.ev46-tools a:focus-visible{outline:3px solid #9877da;outline-offset:3px}.ev46-day{border:1px solid #e8e1f0;padding:14px;border-radius:12px;margin:10px 0}.ev46-day b{display:block;margin-bottom:5px}.ev46-day small{display:block;color:#6d6479}.ev46-day a{display:inline-block;margin-top:9px;color:#49258c}.ev46-weekrow{display:grid;grid-template-columns:minmax(105px,1fr) 100px 120px;gap:8px;align-items:center;margin:9px 0}.ev46-weekrow strong small{display:block;font-size:11px;font-weight:500;color:#766b81}.ev46-weekrow button{margin:0;min-height:48px;padding:9px 6px;background:#f7f5fa;border:1px solid #ddd5e9;border-radius:10px;color:#514367;font-weight:700;cursor:pointer}.ev46-weekrow button[aria-pressed=true]{background:#3f2587;border-color:#3f2587;color:#fff}.ev46-weeknav{display:flex;gap:12px;justify-content:space-between;align-items:center}.ev46-weeknav button{width:auto;margin:0;min-height:44px}.ev46-weekstrip{font-size:13px;line-height:1.7;color:#5e5471;margin-top:12px}.ev46-undo{position:fixed;bottom:calc(88px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);z-index:1500;display:flex;align-items:center;gap:15px;width:max-content;max-width:calc(100vw - 24px);padding:12px 16px;border-radius:13px;background:#302044;color:#fff;box-shadow:0 5px 25px #0003;font:14px system-ui}.ev46-undo button{width:auto;margin:0;min-height:40px;border:1px solid #ffffff77;border-radius:8px;background:#fff;color:#34224e;padding:8px 12px;font-weight:800;cursor:pointer}.ev46-preview{width:100%;height:65dvh;border:0;border-radius:10px;background:#eeeaf3}.ev46-preview-image{display:block;max-width:100%;max-height:65dvh;margin:auto;object-fit:contain}.ev46-scan-canvas{display:block;max-width:100%;max-height:52dvh;margin:auto;touch-action:none;background:#ede8f2;border-radius:8px}.ev46-pages{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0}.ev46-pages figure{margin:0;width:95px}.ev46-pages img{width:95px;height:120px;object-fit:contain;background:#f1edf6;border:1px solid #ddd6e6}.ev46-pages button{width:95px;min-height:36px;margin:4px 0;font-size:12px}.ev46-hint{font-size:13px;color:#766c83}.ev46-form-fields{display:grid;gap:10px;grid-template-columns:1fr 1fr;margin:12px 0}.ev46-form-fields label{margin:0;font-weight:700}.ev46-form-fields input,.ev46-form-fields select{font-weight:400}
@media(max-width:600px){.ev46-body{padding:16px}.ev46-dialog>header{padding:12px 16px}.ev46-dialog h2{font-size:20px}.ev46-weekrow{grid-template-columns:minmax(85px,1fr) 84px 105px}.ev46-toolbar{padding:14px}.ev46-undo{gap:9px;font-size:12px}.ev46-form-fields{grid-template-columns:1fr}.folder-main h3{overflow-wrap:anywhere}}
@media(prefers-reduced-motion:reduce){.ev46-dialog{scroll-behavior:auto}}
.dashboard-header-inner{grid-template-columns:220px 250px minmax(20px,1fr) 44px auto auto auto}
.ev47-header-search{display:inline-flex!important;align-items:center;justify-content:center;width:44px!important;min-width:44px;height:44px;margin:0!important;padding:9px!important;border:1px solid #ffffff70;border-radius:12px;background:#ffffff16;color:white;cursor:pointer}
.ev47-header-search:hover{background:#ffffff30}.ev47-header-search svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.ev47-header-search:focus-visible{outline:3px solid white;outline-offset:3px}
.ev47-today{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 20px;background:#fff;border:1px solid #e0daf0;border-radius:16px;margin:16px 0}
.ev47-today strong{font-size:20px;color:#281f78}.ev47-today small{display:block;color:#706783;margin-top:4px}
.ev47-calendar-filter{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:12px 0 18px}.ev47-calendar-filter>span{font-weight:750;margin-right:4px;color:#39216e}
.ev47-calendar-filter button{width:auto;min-height:44px;margin:0;padding:9px 14px;border:1px solid #d8d1eb;background:#fff;color:#39216e;border-radius:10px;font-weight:700;cursor:pointer}
.ev47-calendar-filter button[aria-pressed=true]{background:#281f78;color:#fff;border-color:#281f78}
.ev47-week-tools [hidden]{display:none!important}.ev47-week-tools:has([hidden]){display:none}
.calendar-legend .legend-measurement{background:#c17116}.calendar-legend .legend-site{background:#225ecc}.calendar-legend .legend-workshop{background:#7947b5}.calendar-legend .legend-office{background:#248261}.calendar-legend .legend-home{background:#bc476f}
.dash-event.measurement,.full-cal-entry.measurement,.month-event.measurement,.agenda-entry.measurement{background:#fff0da;border-left:5px solid #c17116;color:#63420b}
.dash-event.site,.full-cal-entry.site,.month-event.site,.agenda-entry.site{background:#e9f0ff;border-left:5px solid #225ecc;color:#203d77}
.dash-event.workshop,.full-cal-entry.workshop,.month-event.workshop,.agenda-entry.workshop{background:#f1eafa;border-left:5px solid #7947b5;color:#58317b}
.dash-event.office,.full-cal-entry.office,.month-event.office,.agenda-entry.office{background:#e5f5ed;border-left:5px solid #248261;color:#1b5e46}
.dash-event.home,.full-cal-entry.home,.month-event.home,.agenda-entry.home{background:#ffeaf1;border-left:5px solid #bc476f;color:#7f2c4c}
@media(max-width:1100px){.dashboard-header-inner{grid-template-columns:160px minmax(0,1fr) 44px auto auto auto;gap:8px}.dash-header-spacer{display:none}.dash-heading{min-width:0}.dash-heading h1{font-size:22px}}
@media(max-width:900px){.dashboard-header-inner{grid-template-columns:150px minmax(0,1fr) 44px auto auto}}
@media(max-width:760px) and (orientation:portrait){.dashboard-header-inner{grid-template-columns:minmax(0,1fr) 44px 42px 44px!important}.ev47-header-search{grid-column:2}.ev47-today{padding:14px;gap:10px}.ev47-today strong{font-size:18px}.ev47-today .ev46-button{font-size:13px;padding:10px}.ev47-calendar-filter{gap:6px}.ev47-calendar-filter>span{width:100%}}

.weranek-stable-event.measurement{background:#fff0da!important;border-left-color:#c17116!important;color:#63420b}
.weranek-stable-event.site{background:#e9f0ff!important;border-left-color:#225ecc!important;color:#203d77}
.weranek-stable-event.workshop{background:#f1eafa!important;border-left-color:#7947b5!important;color:#58317b}
.weranek-stable-event.office{background:#e5f5ed!important;border-left-color:#248261!important;color:#1b5e46}
.weranek-stable-event.home{background:#ffeaf1!important;border-left-color:#bc476f!important;color:#7f2c4c}
