/* Bizlee's own form controls (bizlee-controls.js): no browser menus, pickers, arrows or boxes.
   :not(#_) only raises the priority over each page's field styles. */
select:not([multiple]):not(#_):not(#_):not(#_),input[data-bz-pick]:not(#_):not(#_):not(#_){-webkit-appearance:none!important;appearance:none!important;padding-right:36px!important;background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:14px!important;cursor:pointer;text-overflow:ellipsis}
select:not([multiple]):not(#_):not(#_):not(#_){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347a8a8' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E")!important}
input[data-bz-pick=date]:not(#_):not(#_):not(#_){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347a8a8' stroke-width='2'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M7 3v5m10-5v5M3 11h18'/%3E%3C/svg%3E")!important;background-size:17px!important}
input[data-bz-pick=time]:not(#_):not(#_):not(#_){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2347a8a8' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")!important;background-size:17px!important}
input[data-bz-pick]{caret-color:transparent}
input[type=number]{-moz-appearance:textfield;appearance:textfield}
input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none;margin:0}

/* Check boxes and radio buttons */
input:is([type=checkbox],[type=radio]):not([role=switch]):not(#_):not(#_){-webkit-appearance:none!important;appearance:none!important;box-sizing:border-box!important;flex:none;width:20px;height:20px;min-width:0;min-height:0;padding:0!important;border:2px solid #6f86a0!important;border-radius:6px!important;background:transparent center/14px no-repeat!important;cursor:pointer;vertical-align:middle}
input[type=radio]:not(#_):not(#_):not(#_){border-radius:50%!important}
input:is([type=checkbox],[type=radio]):not([role=switch]):checked:not(#_):not(#_){border-color:#5ac0bf!important;background-color:#5ac0bf!important}
input[type=checkbox]:not([role=switch]):checked:not(#_):not(#_){background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2304121a' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4L19 7'/%3E%3C/svg%3E")!important}
input[type=radio]:checked:not(#_):not(#_):not(#_){box-shadow:inset 0 0 0 4px #0d1426}
input:is([type=checkbox],[type=radio]):focus-visible{outline:2px solid #8de1dd;outline-offset:2px}
input:is([type=checkbox],[type=radio]):disabled{opacity:.5;cursor:default}

/* Sliders without a style of their own */
:where(input[type=range]){-webkit-appearance:none;appearance:none;height:8px;border-radius:8px;background:rgba(150,170,195,.3);cursor:pointer}
:where(input[type=range])::-webkit-slider-thumb{-webkit-appearance:none;width:22px;height:22px;border-radius:50%;background:#5ac0bf;border:3px solid #fff}
:where(input[type=range])::-moz-range-thumb{width:17px;height:17px;border-radius:50%;background:#5ac0bf;border:3px solid #fff}

/* List, calendar and time */
.bz-pop,.bz-tip{position:fixed;inset:auto;margin:0;box-sizing:border-box;z-index:2147483600;font:500 15px/1.4 Inter,system-ui,sans-serif;text-align:left;letter-spacing:normal;text-transform:none}
.bz-pop{max-width:calc(100vw - 16px);padding:6px!important;border:1px solid rgba(255,255,255,.14);border-radius:14px;background:#0d1426;color:#eef2fb;box-shadow:0 18px 50px rgba(0,0,0,.5);overflow:hidden;animation:bzPop .14s ease}
.bz-pop *{box-sizing:border-box}
.bz-pop button{outline:none!important;margin:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;border-radius:9px;min-height:0;width:auto}
.bz-pop-grid{max-height:min(320px,50vh);overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#3b4a63 transparent}
.bz-pop .bz-opt{display:block;width:100%;min-height:42px;padding:9px 12px;text-align:left}
.bz-pop .bz-opt:hover:not(:disabled),.bz-pop .bz-opt:focus-visible{background:rgba(255,255,255,.09);outline:none}
.bz-pop button:focus-visible{box-shadow:inset 0 0 0 2px #8de1dd}
.bz-pop .bz-opt[aria-selected=true]{background:#5ac0bf;color:#04121a;font-weight:700}
.bz-pop button:disabled{opacity:.3;cursor:default}
.bz-pop-group{padding:10px 12px 4px;color:#9fb0c8;font-size:13px}
.bz-cal-head{display:flex;align-items:center;gap:4px;min-height:44px}
.bz-pop .bz-cal-title{flex:1;padding:10px;font-weight:700;text-align:center}.bz-cal-title::first-letter{text-transform:uppercase}
.bz-pop .bz-cal-nav{width:42px;height:42px;font-size:24px;line-height:1}.bz-pop .bz-cal-nav[hidden]{display:none}
.bz-pop .bz-cal-title:hover,.bz-pop .bz-cal-nav:hover:not(:disabled){background:rgba(255,255,255,.09)}
.bz-pop-grid:is(.is-days,.is-months,.is-years){display:grid;gap:2px;width:308px;max-width:100%}
.bz-pop-grid.is-days{grid-template-columns:repeat(7,1fr);max-height:none}.bz-pop-grid.is-months{grid-template-columns:repeat(3,1fr)}.bz-pop-grid.is-years{grid-template-columns:repeat(4,1fr)}
.bz-pop-grid:is(.is-days,.is-months,.is-years) .bz-opt{padding:8px 0;text-align:center}
.bz-cal-week{padding:6px 0;text-align:center;color:#9fb0c8;font-size:13px}
.bz-pop .is-today:not([aria-selected=true]){color:#8de1dd;font-weight:700}
.bz-clock{display:grid;grid-template-columns:1fr 1fr;gap:6px;min-width:170px}.bz-clock .bz-opt{text-align:center}
.bz-pop .bz-pop-clear{width:100%;min-height:42px;margin-top:4px;color:#8de1dd}
.bz-pop.is-sheet{left:0;right:0;bottom:0;width:100%;max-width:none;padding:12px 12px max(14px,env(safe-area-inset-bottom))!important;border-radius:20px 20px 0 0;box-shadow:0 0 0 100vmax rgba(1,0,20,.6);animation-name:bzSheet}
.bz-pop.is-sheet .bz-opt{min-height:48px;font-size:16px}.bz-pop.is-sheet .bz-pop-grid{width:100%;max-height:55vh}
@keyframes bzPop{from{opacity:0;transform:translateY(-4px)}}@keyframes bzSheet{from{transform:translateY(40%);opacity:0}}

/* Tooltips and form messages */
.bz-tip{max-width:min(280px,calc(100vw - 16px));padding:8px 12px!important;border:1px solid rgba(255,255,255,.14);border-radius:10px;background:#16203a;color:#eef2fb;font-size:14px;pointer-events:none;box-shadow:0 10px 30px rgba(0,0,0,.4);animation:bzPop .14s ease}
.bz-tip.is-error{border-color:#ff8f6b;color:#ffd9cc;font-weight:600}
@media(prefers-reduced-motion:reduce){.bz-pop,.bz-tip{animation:none}}
