/* Shared admin + dealer dropdown skin. Native select remains the real form control. */
.tm-select{display:inline-block;position:relative;vertical-align:middle;width:100%;min-width:0;max-width:100%;font:inherit;box-sizing:border-box}
.tm-select>select{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;pointer-events:none!important;z-index:-1!important}
.tm-select-button{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:10px!important;width:100%!important;min-height:36px!important;margin:0!important;padding:9px 12px!important;border:1px solid #d5e3e9!important;border-radius:9px!important;background:var(--panel-surface, #fff)!important;color:light-dark(#19374c, #aecbff)!important;text-align:left!important;font:inherit!important;font-size:inherit!important;font-weight:400!important;line-height:1.35!important;box-shadow:none!important;cursor:pointer!important;transition:border-color .16s,box-shadow .16s,background .16s!important}
.tm-select-value{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}.tm-select-button svg{flex-shrink:0;transition:transform .16s}
.tm-select-button:hover{background:light-dark(#f2faf8, #17382f)!important;border-color:#69bdb1!important}.tm-select-button:focus-visible,.tm-select-button[aria-expanded="true"]{outline:none!important;border-color:#0d887b!important;box-shadow:0 0 0 3px rgba(13,136,123,.13)!important}.tm-select-button[aria-expanded="true"] svg{transform:rotate(180deg)}.tm-select-button:disabled{opacity:.55;cursor:not-allowed!important}.tm-select-button.tm-placeholder .tm-select-value{color:light-dark(#62788a, #abc0d6)}
.tm-select-menu{position:fixed;z-index:2147483640;box-sizing:border-box;overflow-y:auto;overscroll-behavior:contain;padding:5px;background:var(--panel-surface, #fff);border:1px solid #cbdedc;border-radius:11px;box-shadow:0 15px 40px rgba(14,37,53,.18);animation:tmDropdownIn .13s ease-out}
.tm-select-option{display:block!important;width:100%!important;min-height:32px!important;margin:0!important;padding:8px 10px!important;border:0!important;border-radius:7px!important;background:transparent!important;color:light-dark(#203b4f, #aecbff)!important;text-align:left!important;font:inherit!important;font-size:12px!important;font-weight:400!important;line-height:1.35!important;white-space:normal;overflow-wrap:anywhere;cursor:pointer!important}
.tm-select-option:hover,.tm-select-option:focus-visible{background:light-dark(#e8f6f2, #17382f)!important;color:light-dark(#087e72, #8fe6cd)!important;outline:none!important}.tm-select-option.selected{background:light-dark(#f0f8f6, #17382f)!important;color:light-dark(#087e72, #8fe6cd)!important;font-weight:600!important}.tm-select-option:disabled{opacity:.45;cursor:not-allowed!important}
@keyframes tmDropdownIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.tm-select-menu{animation:none}.tm-select-button,.tm-select-button svg{transition:none}}
@media(max-width:600px){.tm-select-menu{max-width:calc(100vw - 16px)}.tm-select-option{min-height:40px!important}}

/* Preserve the original horizontal admin/dealer filter layout. */
.management-filters>.tm-select,.toolbar>.tm-select{flex:0 1 230px;width:auto;min-width:120px;max-width:270px}
.management-filters>.tm-select .tm-select-button,.toolbar>.tm-select .tm-select-button{min-width:0}
@media(max-width:600px){.management-filters>.tm-select,.toolbar>.tm-select{flex:1 1 150px;width:auto;max-width:100%}}

.tm-select-button {font-weight:600!important}
.tm-select-value {display:flex;align-items:center;gap:9px}
.tm-select-option {display:flex!important;align-items:center;gap:10px;font-weight:600!important;min-height:44px!important}
.tm-option-label {min-width:0;overflow-wrap:anywhere}
.tm-option-icon {display:inline-grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border-radius:8px;background:#087f7812;color:#087f78}
.tm-select :is(.market-logo),.tm-select-menu .market-logo {width:26px;height:26px;flex:0 0 26px}
.tm-select-option[aria-selected=true] {background:light-dark(#dff5ef,#173d37)!important;box-shadow:inset 3px 0 #087f78;font-weight:750!important}
.tm-select-option:hover:not(:disabled),.tm-select-option:focus-visible {background:light-dark(#eaf8f4,#21483f)!important}
.tm-select-option:hover .tm-option-icon,.tm-select-option:focus-visible .tm-option-icon {box-shadow:0 0 10px #087f7845}
.tm-select-option[aria-selected=true] .tm-option-icon {color:#fff;background:#087f78}
/* Last-loaded dropdown rules for every admin, dealer and site select. */
.tm-select-button[aria-expanded=true] {
 border-color:#00c5d3!important;box-shadow:0 0 0 3px #00c5d326!important;
}
.tm-select-value .tm-option-icon,.tm-select-option .tm-option-icon {background:#00c5d318;color:#007f91}
.tm-select-option.selected,
.tm-select-option[aria-selected=true] {
 background:var(--siasoft-cyan-gloss,linear-gradient(155deg,#72f8ef,#00c5d3,#00a7bd))!important;
 color:#06364a!important;font-weight:750!important;
 box-shadow:inset 3px 0 #009bb0,inset 0 1px #ffffff90;
}
.tm-select-option.selected .tm-option-icon,
.tm-select-option[aria-selected=true] .tm-option-icon {background:#ffffff60;color:#06364a}
.tm-select-option:hover:not(:disabled),
.tm-select-option:focus-visible {
 background:light-dark(#ddfafd,#164451)!important;color:light-dark(#07596c,#a2fff4)!important;
 outline:2px solid #00c5d360!important;outline-offset:-2px;
}
.tm-select-option.selected:hover,
.tm-select-option[aria-selected=true]:hover {background:var(--siasoft-cyan-gloss)!important;color:#06364a!important}
.tm-select-option:hover .tm-option-icon {box-shadow:0 0 10px #00c5d350}
.tm-select-option.selected:focus-visible,
.tm-select-option[aria-selected=true]:focus-visible {background:var(--siasoft-cyan-gloss)!important;color:#06364a!important}

.tm-date{display:inline-flex;position:relative;min-width:0;max-width:100%;width:100%;vertical-align:middle}
.tm-date>input[type=date]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;pointer-events:none!important;margin:0!important}
.tm-date-button{position:relative;display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:9px!important;width:100%!important;min-height:44px!important;margin:0!important;padding:10px 12px!important;background:var(--panel-surface,#fff)!important;border:1px solid #cbdfe7!important;border-radius:10px!important;color:light-dark(#17364b,#dcebf7)!important;font:inherit!important;white-space:nowrap}
.tm-date-button svg{color:#00899c;flex:none}.tm-date-button[aria-expanded=true],.tm-date-button:focus-visible{outline:2px solid #00c5d360!important;border-color:#00afc2!important}
.tm-date-button:disabled{opacity:.55;cursor:not-allowed}
.tm-date-panel{position:fixed;z-index:2147483630;box-sizing:border-box;max-height:calc(100dvh - 20px);overflow:auto;padding:16px;background:var(--panel-surface,#fff);color:light-dark(#17364b,#dcebf7);border:1px solid #8edee8;border-radius:14px;box-shadow:0 12px 36px #12384b30}
.tm-date-fields{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.3fr) minmax(0,1fr);gap:9px}
.tm-date-fields>label{display:grid!important;gap:7px!important;min-width:0!important;margin:0!important;font-size:12px;font-weight:650}
.tm-date-fields input{width:100%!important;min-width:0!important;min-height:42px!important;margin:0!important;padding:8px!important;box-sizing:border-box;font:inherit;font-size:16px;border:1px solid #cbdfe7;border-radius:9px;background:var(--panel-surface,#fff);color:inherit}
.tm-date-panel>p{font-size:12px;line-height:1.5;color:inherit}.tm-date-panel>p:empty{display:none}
.tm-date-actions{display:flex;justify-content:flex-end;gap:7px;margin-top:14px}
.tm-date-actions>button{min-height:40px;padding:8px 10px;border:1px solid #a6dce5;border-radius:9px;background:var(--panel-surface,#fff);color:inherit;font:inherit;font-size:12px}
.tm-date-actions>.tm-date-apply{background:linear-gradient(145deg,#78f7ef,#00bdcf);color:#073b50;border-color:#00a9bd;font-weight:700}
