/* Base: tokens, page layout, buttons, toolbar, cards, tables, Notes, Users, Teams, sign-in, load form, dropdowns */

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--scroll) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 20px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--border-hover); background-clip: padding-box; border: 2px solid transparent; }
/* Keyboard focus (visible only when navigating by keyboard) */
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.form-control:focus-visible, .ss-search:focus-visible { outline: none; }
/* ---------------------------------------------------------------
   Icons (CSS-mask, colored by currentColor)
   --------------------------------------------------------------- */
.ic { display:inline-block; flex-shrink:0; width:1.1em; height:1.1em; vertical-align:-0.16em; background-color:currentColor; -webkit-mask:var(--i) center/contain no-repeat; mask:var(--i) center/contain no-repeat; }
.ic-route { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27m9.78%2011.16-1.42%201.42a7.3%207.3%200%200%201-1.79-2.94l1.94-.49c.32.89.77%201.5%201.27%202.01M11%206%207%202%203%206h3.02c.02.81.08%201.54.19%202.17l1.94-.49C8.08%207.2%208.03%206.63%208.02%206zm10%200-4-4-4%204h2.99c-.1%203.68-1.28%204.75-2.54%205.88-.5.44-1.01.92-1.45%201.55-.34-.49-.73-.88-1.13-1.24L9.46%2013.6c.93.85%201.54%201.54%201.54%203.4v5h2v-5c0-2.02.71-2.66%201.79-3.63%201.38-1.24%203.08-2.78%203.2-7.37z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-stops { --i:url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Ccircle%20cx=%274.6%27%20cy=%2712%27%20r=%272.5%27/%3E%3Ccircle%20cx=%2712%27%20cy=%2712%27%20r=%272.5%27/%3E%3Ccircle%20cx=%2719.4%27%20cy=%2712%27%20r=%272.5%27/%3E%3C/svg%3E"); }   /* Multiple Stops: three stops on one route */
.ic-archive { --i:url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d=%27M20.54%205.23l-1.39-1.68C18.88%203.21%2018.47%203%2018%203H6c-.47%200-.88.21-1.16.55L3.46%205.23C3.17%205.57%203%206.02%203%206.5V19c0%201.1.9%202%202%202h14c1.1%200%202-.9%202-2V6.5c0-.48-.17-.93-.46-1.27zM12%2017.5L6.5%2012H10v-2h4v2h3.5L12%2017.5zM5.12%205l.81-1h12l.94%201H5.12z%27/%3E%3C/svg%3E"); }   /* Archive */
.ic-unarchive { --i:url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d=%27M20.55%205.22l-1.39-1.68C18.88%203.21%2018.47%203%2018%203H6c-.47%200-.88.21-1.15.55L3.46%205.22C3.17%205.57%203%206.01%203%206.5V19c0%201.1.89%202%202%202h14c1.1%200%202-.9%202-2V6.5c0-.49-.17-.93-.45-1.28zM12%209.5l5.5%205.5H14v2h-4v-2H6.5L12%209.5zM5.12%205l.82-1h12l.93%201H5.12z%27/%3E%3C/svg%3E"); }   /* Restore from the archive */
.ic-dollar { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M11.8%2010.9c-2.27-.59-3-1.2-3-2.15%200-1.09%201.01-1.85%202.7-1.85%201.78%200%202.44.85%202.5%202.1h2.21c-.07-1.72-1.12-3.3-3.21-3.81V3h-3v2.16c-1.94.42-3.5%201.68-3.5%203.61%200%202.31%201.91%203.46%204.7%204.13%202.5.6%203%201.48%203%202.41%200%20.69-.49%201.79-2.7%201.79-2.06%200-2.87-.92-2.98-2.1h-2.2c.12%202.19%201.76%203.42%203.68%203.83V21h3v-2.15c1.95-.37%203.5-1.5%203.5-3.55%200-2.84-2.43-3.81-4.7-4.4%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-zap { --i:url("data:image/svg+xml,%3Csvg%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20d=%27M12%2012.9l-2.13%202.09C9.31%2015.55%209%2016.28%209%2017.06%209%2018.68%2010.35%2020%2012%2020s3-1.32%203-2.94c0-.78-.31-1.52-.87-2.07L12%2012.9zM16%206l-.44.55C14.38%208.02%2012%207.19%2012%205.3V2S4%206%204%2013c0%202.92%201.56%205.47%203.89%206.86-.56-.79-.89-1.76-.89-2.8%200-1.32.52-2.56%201.47-3.5L12%2010.1l3.53%203.47c.95.93%201.47%202.17%201.47%203.5%200%201.02-.31%201.96-.85%202.75%201.89-1.15%203.29-3.06%203.71-5.3.66-3.55-1.08-6.9-3.86-8.52z%27/%3E%3C/svg%3E"); }
.ic-users { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M16%2011c1.66%200%202.99-1.34%202.99-3S17.66%205%2016%205s-3%201.34-3%203%201.34%203%203%203m-8%200c1.66%200%202.99-1.34%202.99-3S9.66%205%208%205%205%206.34%205%208s1.34%203%203%203m0%202c-2.33%200-7%201.17-7%203.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8%200c-.29%200-.62.02-.97.05%201.16.84%201.97%201.97%201.97%203.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-wallet { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M21%2018v1c0%201.1-.9%202-2%202H5a2%202%200%200%201-2-2V5a2%202%200%200%201%202-2h14c1.1%200%202%20.9%202%202v1h-9a2%202%200%200%200-2%202v8a2%202%200%200%200%202%202zm-9-2h10V8H12zm4-2.5c-.83%200-1.5-.67-1.5-1.5s.67-1.5%201.5-1.5%201.5.67%201.5%201.5-.67%201.5-1.5%201.5%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-upload { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M9%2016h6v-6h4l-7-7-7%207h4zm-4%202h14v2H5z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-arrow-right { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27m15%205-1.41%201.41L18.17%2011H2v2h16.17l-4.59%204.59L15%2019l7-7z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-phone { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M6.62%2010.79c1.44%202.83%203.76%205.14%206.59%206.59l2.2-2.2c.27-.27.67-.36%201.02-.24%201.12.37%202.33.57%203.57.57.55%200%201%20.45%201%201V20c0%20.55-.45%201-1%201-9.39%200-17-7.61-17-17%200-.55.45-1%201-1h3.5c.55%200%201%20.45%201%201%200%201.25.2%202.45.57%203.57.11.35.03.74-.25%201.02z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-pin { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%202C8.13%202%205%205.13%205%209c0%205.25%207%2013%207%2013s7-7.75%207-13c0-3.87-3.13-7-7-7m0%209.5a2.5%202.5%200%200%201%200-5%202.5%202.5%200%200%201%200%205%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-file { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M14%202H6c-1.1%200-1.99.9-1.99%202L4%2020c0%201.1.89%202%201.99%202H18c1.1%200%202-.9%202-2V8zm2%2016H8v-2h8zm0-4H8v-2h8zm-3-5V3.5L18.5%209z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-image { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M21%2019V5c0-1.1-.9-2-2-2H5c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h14c1.1%200%202-.9%202-2M8.5%2013.5l2.5%203.01L14.5%2012l4.5%206H5z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-ext { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M19%2019H5V5h7V3H5a2%202%200%200%200-2%202v14a2%202%200%200%200%202%202h14c1.1%200%202-.9%202-2v-7h-2zM14%203v2h3.59l-9.83%209.83%201.41%201.41L19%206.41V10h2V3z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-driver { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M20%208h-3V4H3c-1.1%200-2%20.9-2%202v11h2c0%201.66%201.34%203%203%203s3-1.34%203-3h6c0%201.66%201.34%203%203%203s3-1.34%203-3h2v-5zM6%2018.5c-.83%200-1.5-.67-1.5-1.5s.67-1.5%201.5-1.5%201.5.67%201.5%201.5-.67%201.5-1.5%201.5m13.5-9%201.96%202.5H17V9.5zm-1.5%209c-.83%200-1.5-.67-1.5-1.5s.67-1.5%201.5-1.5%201.5.67%201.5%201.5-.67%201.5-1.5%201.5%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-truck { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M20%208h-3V4H3c-1.1%200-2%20.9-2%202v11h2c0%201.66%201.34%203%203%203s3-1.34%203-3h6c0%201.66%201.34%203%203%203s3-1.34%203-3h2v-5zM6%2018.5c-.83%200-1.5-.67-1.5-1.5s.67-1.5%201.5-1.5%201.5.67%201.5%201.5-.67%201.5-1.5%201.5m13.5-9%201.96%202.5H17V9.5zm-1.5%209c-.83%200-1.5-.67-1.5-1.5s.67-1.5%201.5-1.5%201.5.67%201.5%201.5-.67%201.5-1.5%201.5%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-lock { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M18%208h-1V6c0-2.76-2.24-5-5-5S7%203.24%207%206v2H6c-1.1%200-2%20.9-2%202v10c0%201.1.9%202%202%202h12c1.1%200%202-.9%202-2V10c0-1.1-.9-2-2-2m-6%209c-1.1%200-2-.9-2-2s.9-2%202-2%202%20.9%202%202-.9%202-2%202m3.1-9H8.9V6c0-1.71%201.39-3.1%203.1-3.1s3.1%201.39%203.1%203.1z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-layers { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%2012.75c1.63%200%203.07.39%204.24.9%201.08.48%201.76%201.56%201.76%202.73V18H6v-1.61c0-1.18.68-2.26%201.76-2.73%201.17-.52%202.61-.91%204.24-.91M4%2013c1.1%200%202-.9%202-2s-.9-2-2-2-2%20.9-2%202%20.9%202%202%202m1.13%201.1c-.37-.06-.74-.1-1.13-.1-.99%200-1.93.21-2.78.58A2.01%202.01%200%200%200%200%2016.43V18h4.5v-1.61c0-.83.23-1.61.63-2.29M20%2013c1.1%200%202-.9%202-2s-.9-2-2-2-2%20.9-2%202%20.9%202%202%202m4%203.43c0-.81-.48-1.53-1.22-1.85A6.95%206.95%200%200%200%2020%2014c-.39%200-.76.04-1.13.1.4.68.63%201.46.63%202.29V18H24zM12%206c1.66%200%203%201.34%203%203s-1.34%203-3%203-3-1.34-3-3%201.34-3%203-3%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-building { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%207V3H2v18h20V7zM6%2019H4v-2h2zm0-4H4v-2h2zm0-4H4V9h2zm0-4H4V5h2zm4%2012H8v-2h2zm0-4H8v-2h2zm0-4H8V9h2zm0-4H8V5h2zm10%2012h-8v-2h2v-2h-2v-2h2v-2h-2V9h8zm-2-8h-2v2h2zm0%204h-2v2h2z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-user { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%2012c2.21%200%204-1.79%204-4s-1.79-4-4-4-4%201.79-4%204%201.79%204%204%204m0%202c-2.67%200-8%201.34-8%204v2h16v-2c0-2.66-5.33-4-8-4%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-headset { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M21%2012.22C21%206.73%2016.74%203%2012%203c-4.69%200-9%203.65-9%209.28-.6.34-1%20.98-1%201.72v2c0%201.1.9%202%202%202h1v-6.1c0-3.87%203.13-7%207-7s7%203.13%207%207V19h-8v2h8c1.1%200%202-.9%202-2v-1.22c.59-.31%201-.92%201-1.64v-2.3c0-.7-.41-1.31-1-1.62%27%3E%3C/path%3E%3Ccircle%20cx=%279%27%20cy=%2713%27%20r=%271%27%3E%3C/circle%3E%3Ccircle%20cx=%2715%27%20cy=%2713%27%20r=%271%27%3E%3C/circle%3E%3Cpath%20d=%27M18%2011.03A6.04%206.04%200%200%200%2012.05%206c-3.03%200-6.29%202.51-6.03%206.45a8.07%208.07%200%200%200%204.86-5.89c1.31%202.63%204%204.44%207.12%204.47%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-idcard { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M20%207h-5V4c0-1.1-.9-2-2-2h-2c-1.1%200-2%20.9-2%202v3H4c-1.1%200-2%20.9-2%202v11c0%201.1.9%202%202%202h16c1.1%200%202-.9%202-2V9c0-1.1-.9-2-2-2M9%2012c.83%200%201.5.67%201.5%201.5S9.83%2015%209%2015s-1.5-.67-1.5-1.5S8.17%2012%209%2012m3%206H6v-.75c0-1%202-1.5%203-1.5s3%20.5%203%201.5zm1-9h-2V4h2zm5%207.5h-4V15h4zm0-3h-4V12h4z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-copy { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M16%201H4c-1.1%200-2%20.9-2%202v14h2V3h12zm3%204H8c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h11c1.1%200%202-.9%202-2V7c0-1.1-.9-2-2-2m0%2016H8V7h11z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-link { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M3.9%2012c0-1.71%201.39-3.1%203.1-3.1h4V7H7c-2.76%200-5%202.24-5%205s2.24%205%205%205h4v-1.9H7c-1.71%200-3.1-1.39-3.1-3.1M8%2013h8v-2H8zm9-6h-4v1.9h4c1.71%200%203.1%201.39%203.1%203.1s-1.39%203.1-3.1%203.1h-4V17h4c2.76%200%205-2.24%205-5s-2.24-5-5-5%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-refresh { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M17.65%206.35A7.96%207.96%200%200%200%2012%204c-4.42%200-7.99%203.58-7.99%208s3.57%208%207.99%208c3.73%200%206.84-2.55%207.73-6h-2.08A5.99%205.99%200%200%201%2012%2018c-3.31%200-6-2.69-6-6s2.69-6%206-6c1.66%200%203.14.69%204.22%201.78L13%2011h7V4z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-clock { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M11.99%202C6.47%202%202%206.48%202%2012s4.47%2010%209.99%2010C17.52%2022%2022%2017.52%2022%2012S17.52%202%2011.99%202M12%2020c-4.42%200-8-3.58-8-8s3.58-8%208-8%208%203.58%208%208-3.58%208-8%208%27%3E%3C/path%3E%3Cpath%20d=%27M12.5%207H11v6l5.25%203.15.75-1.23-4.5-2.67z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-repeat { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M6.99%2011%203%2015l3.99%204v-3H14v-2H6.99zM21%209l-3.99-4v3H10v2h7.01v3z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-note { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M19%203H4.99C3.89%203%203%203.9%203%205l.01%2014c0%201.1.89%202%201.99%202h10l6-6V5c0-1.1-.9-2-2-2M7%208h10v2H7zm5%206H7v-2h5zm2%205.5V14h5.5z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-message { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M21%206h-2v9H6v2c0%20.55.45%201%201%201h11l4%204V7c0-.55-.45-1-1-1m-4%206V3c0-.55-.45-1-1-1H3c-.55%200-1%20.45-1%201v14l4-4h10c.55%200%201-.45%201-1%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-package { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M20%202H4c-1%200-2%20.9-2%202v3.01c0%20.72.43%201.34%201%201.69V20c0%201.1%201.1%202%202%202h14c.9%200%202-.9%202-2V8.7c.57-.35%201-.97%201-1.69V4c0-1.1-1-2-2-2m-5%2012H9v-2h6zm5-7H4V4h16z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-finished { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M22%205.18%2010.59%2016.6l-4.24-4.24%201.41-1.41%202.83%202.83%2010-10zm-2.21%205.04c.13.57.21%201.17.21%201.78%200%204.42-3.58%208-8%208s-8-3.58-8-8%203.58-8%208-8c1.58%200%203.04.46%204.28%201.25l1.44-1.44A9.9%209.9%200%200%200%2012%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10c0-1.19-.22-2.33-.6-3.39z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-chart { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M4%209h4v11H4zM16%2013h4v7h-4zM10%204h4v16h-4z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-database { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M2%2020h20v-4H2zm2-3h2v2H4zM2%204v4h20V4zm4%203H4V5h2zm-4%207h20v-4H2zm2-3h2v2H4z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-search { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M15.5%2014h-.79l-.28-.27A6.47%206.47%200%200%200%2016%209.5%206.5%206.5%200%201%200%209.5%2016c1.61%200%203.09-.59%204.23-1.57l.27.28v.79l5%204.99L20.49%2019zm-6%200C7.01%2014%205%2011.99%205%209.5S7.01%205%209.5%205%2014%207.01%2014%209.5%2011.99%2014%209.5%2014%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-filter { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M10%2018h4v-2h-4zM3%206v2h18V6zm3%207h12v-2H6z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-list { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M3%2014h4v-4H3zm0%205h4v-4H3zM3%209h4V5H3zm5%205h13v-4H8zm0%205h13v-4H8zM8%205v4h13V5z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-plus { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M19%2013h-6v6h-2v-6H5v-2h6V5h2v6h6z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-x { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M19%206.41%2017.59%205%2012%2010.59%206.41%205%205%206.41%2010.59%2012%205%2017.59%206.41%2019%2012%2013.41%2017.59%2019%2019%2017.59%2013.41%2012z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-chevron-left { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M15.41%207.41%2014%206l-6%206%206%206%201.41-1.41L10.83%2012z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-chevron-down { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M16.59%208.59%2012%2013.17%207.41%208.59%206%2010l6%206%206-6z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-printer { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M19%208H5c-1.66%200-3%201.34-3%203v6h4v4h12v-4h4v-6c0-1.66-1.34-3-3-3m-3%2011H8v-5h8zm3-7c-.55%200-1-.45-1-1s.45-1%201-1%201%20.45%201%201-.45%201-1%201m-1-9H6v4h12z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-download { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M19%209h-4V3H9v6H5l7%207zM5%2018v2h14v-2z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-pencil { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M3%2017.25V21h3.75L17.81%209.94l-3.75-3.75zM20.71%207.04a.996.996%200%200%200%200-1.41l-2.34-2.34a.996.996%200%200%200-1.41%200l-1.83%201.83%203.75%203.75z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-trash { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M6%2019c0%201.1.9%202%202%202h8c1.1%200%202-.9%202-2V7H6zM19%204h-3.5l-1-1h-5l-1%201H5v2h14z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-paperclip { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M16.5%206v11.5c0%202.21-1.79%204-4%204s-4-1.79-4-4V5a2.5%202.5%200%200%201%205%200v10.5c0%20.55-.45%201-1%201s-1-.45-1-1V6H10v9.5a2.5%202.5%200%200%200%205%200V5c0-2.21-1.79-4-4-4S7%202.79%207%205v12.5c0%203.04%202.46%205.5%205.5%205.5s5.5-2.46%205.5-5.5V6z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-check-circle { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0zm0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M16.59%207.58%2010%2014.17l-3.59-3.58L5%2012l5%205%208-8zM12%202C6.48%202%202%206.48%202%2012s4.48%2010%2010%2010%2010-4.48%2010-10S17.52%202%2012%202m0%2018c-4.42%200-8-3.58-8-8s3.58-8%208-8%208%203.58%208%208-3.58%208-8%208%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-x-circle { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M14.59%208%2012%2010.59%209.41%208%208%209.41%2010.59%2012%208%2014.59%209.41%2016%2012%2013.41%2014.59%2016%2016%2014.59%2013.41%2012%2016%209.41zM12%202C6.47%202%202%206.47%202%2012s4.47%2010%2010%2010%2010-4.47%2010-10S17.53%202%2012%202m0%2018c-4.41%200-8-3.59-8-8s3.59-8%208-8%208%203.59%208%208-3.59%208-8%208%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-calendar { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M20%203h-1V1h-2v2H7V1H5v2H4c-1.1%200-2%20.9-2%202v16c0%201.1.9%202%202%202h16c1.1%200%202-.9%202-2V5c0-1.1-.9-2-2-2m0%2018H4V8h16z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-star { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27m22%209.24-7.19-.62L12%202%209.19%208.63%202%209.24l5.46%204.73L5.82%2021%2012%2017.27%2018.18%2021l-1.63-7.03zM12%2015.4l-3.76%202.27%201-4.28-3.32-2.88%204.38-.38L12%206.1l1.71%204.04%204.38.38-3.32%202.88%201%204.28z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-star-fill { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%2017.27%2018.18%2021l-1.64-7.03L22%209.24l-7.19-.61L12%202%209.19%208.63%202%209.24l5.46%204.73L5.82%2021z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-cards { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cg%20fill-rule=%27evenodd%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M3%203v8h8V3zm6%206H5V5h4zm-6%204v8h8v-8zm6%206H5v-4h4zm4-16v8h8V3zm6%206h-4V5h4zm-6%204v8h8v-8zm6%206h-4v-4h4z%27%3E%3C/path%3E%3C/g%3E%3C/svg%3E"); }
.ic-folder { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M10%204H4c-1.1%200-1.99.9-1.99%202L2%2018c0%201.1.9%202%202%202h16c1.1%200%202-.9%202-2V8c0-1.1-.9-2-2-2h-8z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-check { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M9%2016.17%204.83%2012l-1.42%201.41L9%2019%2021%207l-1.41-1.41z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-sun { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%207c-2.76%200-5%202.24-5%205s2.24%205%205%205%205-2.24%205-5-2.24-5-5-5M2%2013h2c.55%200%201-.45%201-1s-.45-1-1-1H2c-.55%200-1%20.45-1%201s.45%201%201%201m18%200h2c.55%200%201-.45%201-1s-.45-1-1-1h-2c-.55%200-1%20.45-1%201s.45%201%201%201M11%202v2c0%20.55.45%201%201%201s1-.45%201-1V2c0-.55-.45-1-1-1s-1%20.45-1%201m0%2018v2c0%20.55.45%201%201%201s1-.45%201-1v-2c0-.55-.45-1-1-1s-1%20.45-1%201M5.99%204.58a.996.996%200%200%200-1.41%200%20.996.996%200%200%200%200%201.41l1.06%201.06c.39.39%201.03.39%201.41%200s.39-1.03%200-1.41zm12.37%2012.37a.996.996%200%200%200-1.41%200%20.996.996%200%200%200%200%201.41l1.06%201.06c.39.39%201.03.39%201.41%200a.996.996%200%200%200%200-1.41zm1.06-10.96a.996.996%200%200%200%200-1.41.996.996%200%200%200-1.41%200l-1.06%201.06c-.39.39-.39%201.03%200%201.41s1.03.39%201.41%200zM7.05%2018.36a.996.996%200%200%200%200-1.41.996.996%200%200%200-1.41%200l-1.06%201.06c-.39.39-.39%201.03%200%201.41s1.03.39%201.41%200z%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-moon { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%203a9%209%200%201%200%209%209c0-.46-.04-.92-.1-1.36a5.39%205.39%200%200%201-4.4%202.26%205.403%205.403%200%200%201-3.14-9.8c-.44-.06-.9-.1-1.36-.1%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-alert { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%205.99%2019.53%2019H4.47zM12%202%201%2021h22z%27%3E%3C/path%3E%3Cpath%20d=%27M13%2016h-2v2h2zM13%2010h-2v5h2z%27%3E%3C/path%3E%3C/svg%3E"); }

/* ---------------------------------------------------------------
   Page frame
   --------------------------------------------------------------- */
main { flex-grow: 1; display: flex; flex-direction: column; overflow: hidden; padding: 18px 24px 14px; min-width: 0; }
.view-panel { display: flex; flex-direction: column; flex: 1; min-height: 0; }
header { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 16px; flex-wrap: wrap; margin-bottom: 16px; flex-shrink: 0; }
.page-title { min-width: 0; }
h1 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; }
.current-date { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.current-date .ic { font-size: 13px; color: var(--text-faint); }
.team-label-value { margin-left: 0; color: var(--text-main); font-weight: 500; }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* Toolbar row (search + filters + view switch) */
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; flex-shrink: 0; }
.toolbar-spacer { flex: 1 1 0; min-width: 0; }
.controls { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; flex-shrink: 0; }
/* ---------------------------------------------------------------
   Buttons
   --------------------------------------------------------------- */
.btn { background-color: var(--primary-fill); color: #fff; border: 1px solid transparent; height: var(--control-h); padding: 0 14px; border-radius: var(--radius-sm); font-weight: 500; cursor: pointer; transition: background 0.12s, border-color 0.12s, color 0.12s; display: inline-flex; align-items: center; gap: 7px; justify-content: center; font-size: 13px; line-height: 1; white-space: nowrap; box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255,255,255,0.1); }
.btn:hover { background-color: var(--primary-fill-hover); }
.btn .ic { font-size: 15px; }
.btn-outline { background-color: var(--bg-card); border: 1px solid var(--border-strong); color: var(--text-main); box-shadow: none; }
.btn-outline:hover { background-color: var(--bg-hover); border-color: var(--border-hover); }
.btn-danger { background-color: transparent; color: var(--danger); border: 1px solid rgba(242,109,109,0.4); box-shadow: none; }
.btn-danger:hover { background-color: var(--danger-bg); border-color: var(--danger); }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12px; gap: 5px; }
.btn-sm .ic { font-size: 13px; }
/* Copy Info buttons swap their own text ("✓ Copied!"), so their icon lives in CSS, not markup. */

.icon-btn { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: transparent; border: 1px solid transparent; color: var(--text-muted); cursor: pointer; font-size: 17px; transition: 0.12s; }
.icon-btn:hover { background: var(--bg-hover); color: var(--text-main); }
/* Segmented view switch */
.view-toggle { display: flex; background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; gap: 2px; height: var(--control-h); }
.view-toggle-btn { background: transparent; border: none; border-radius: 12px; padding: 0 11px; font-size: 12.5px; font-weight: 500; color: var(--text-muted); cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: 0.12s; }
.view-toggle-btn .ic { font-size: 14px; }
.view-toggle-btn:not(.active):hover { color: var(--text-main); background: var(--bg-hover-soft); }
.view-toggle-btn.active { background: var(--bg-hover); color: var(--text-main); box-shadow: 0 1px 2px rgba(0,0,0,0.4), inset 0 0 0 1px var(--border-strong); }
.view-toggle-btn.active .ic { color: var(--primary); }
/* ---------------------------------------------------------------
   Form controls
   --------------------------------------------------------------- */
.form-control { padding: 0 11px; height: var(--control-h); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); font-size: 13px; outline: none; width: 100%; transition: border-color 0.12s, box-shadow 0.12s; background-color: var(--input-bg); color: var(--text-main); }
.form-control:hover { border-color: var(--border-hover); }
.form-control:focus { border-color: var(--primary); box-shadow: var(--focus-ring); }
.form-control.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(242,109,109,0.2); }
.form-control::placeholder { color: var(--text-faint); opacity: 1; }
.form-control:disabled { opacity: 0.45; cursor: not-allowed; }
textarea.form-control { height: auto; min-height: 72px; padding: 9px 11px; resize: vertical; line-height: 1.45; }
select.form-control { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; padding-right: 32px; }
select { cursor: pointer; }
select option { background: var(--bg-card); color: var(--text-main); }
input[type="checkbox"] { accent-color: var(--primary-fill-hover); width: 15px; height: 15px; }
input[type="date"], input[type="time"], input.time12 { font-variant-numeric: tabular-nums; }
input[type="date"]::-webkit-calendar-picker-indicator, input[type="time"]::-webkit-calendar-picker-indicator { opacity: 0.55; cursor: pointer; }
input[type="date"]::-webkit-calendar-picker-indicator:hover, input[type="time"]::-webkit-calendar-picker-indicator:hover { opacity: 0.9; }
input[type="file"].form-control { padding: 6px; height: auto; cursor: pointer; border-style: dashed; background: var(--bg-secondary); color: var(--text-muted); }
input[type="file"].form-control::file-selector-button { font-family: inherit; font-weight: 500; font-size: 12px; color: var(--text-main); background: var(--bg-hover); border: 1px solid var(--border-strong); border-radius: 14px; padding: 6px 12px; margin-right: 10px; cursor: pointer; }
input[readonly] { background-color: var(--bg-secondary); color: var(--text-muted); cursor: not-allowed; }
.search-input { width: 100%; }
/* Search */
.search-wrap { position: relative; display: flex; align-items: center; width: 300px; max-width: 100%; }
.search-wrap-wide { width: 420px; }
.search-wrap > .ic-search { position: absolute; left: 11px; color: var(--text-faint); font-size: 15px; pointer-events: none; }
.search-wrap .form-control { padding-left: 34px; padding-right: 66px; }
.search-wrap-wide .form-control { padding-right: 11px; }
.search-count { position: absolute; right: 32px; font-size: 11px; font-weight: 500; color: var(--text-muted); pointer-events: none; white-space: nowrap; background: var(--bg-secondary); padding: 2px 6px 1px; border-radius: 999px; }
.search-count:empty { display: none; }
.search-clear { position: absolute; right: 6px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 11px; border-radius: 12px; }
.search-clear:hover { color: var(--text-main); background: var(--bg-hover); }
/* Date-range filter (shared: Active Loads, Finished Loads, Statistics) */
.date-range-filter { display: flex; align-items: center; gap: 4px; height: var(--control-h); background: var(--input-bg); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); padding: 0 6px 0 10px; }
.date-range-filter > .ic { color: var(--text-faint); font-size: 14px; margin-right: 2px; }
.date-range-filter:focus-within { border-color: var(--primary); box-shadow: var(--focus-ring); }
.date-range-filter input[type="date"] { border: none; background: none; padding: 0 2px; height: 100%; font-size: 12.5px; width: 124px; color: var(--text-main); font-family: inherit; }
.date-range-filter input[type="date"]:focus { outline: none; }
.date-range-sep { color: var(--text-faint); font-size: 12px; flex-shrink: 0; }
.date-range-filter .search-clear { position: static; margin-left: 2px; }
.date-preset-row { display: flex; gap: 2px; background: var(--input-bg); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 2px; height: var(--control-h); flex-wrap: wrap; }
/* Status show/hide filter (Active Loads) */
.status-filter-dd { position: relative; }
.status-filter-badge { background: var(--primary); color: var(--on-primary); font-size: 10.5px; font-weight: 500; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; margin-left: 2px; line-height: 18px; text-align: center; }
.status-filter-panel { position: absolute; top: calc(100% + 6px); left: 0; z-index: 60; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); padding: 6px; width: 240px; }
.status-filter-actions { display: flex; gap: 6px; padding: 2px 2px 8px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
.status-filter-actions button { flex: 1; height: 28px; background: var(--bg-secondary); border: 1px solid var(--border-strong); color: var(--text-main); font-size: 12px; font-weight: 500; border-radius: 14px; cursor: pointer; }
.status-filter-actions button:hover { background: var(--bg-hover); }
.status-filter-opt { display: flex; align-items: center; gap: 9px; padding: 7px 8px; font-size: 13px; font-weight: 500; color: var(--text-main); cursor: pointer; border-radius: 14px; text-transform: none; letter-spacing: 0; white-space: nowrap; }
.status-filter-opt:hover { background: var(--bg-secondary); }
.status-filter-opt input { width: 15px; height: 15px; cursor: pointer; }
.status-filter-dot { width: 9px; height: 9px; border-radius: 7px; flex-shrink: 0; }
.status-filter-count { margin-left: auto; color: var(--text-muted); font-size: 11.5px; font-weight: 500; }
/* ---------------------------------------------------------------
   Summary band (Active Loads)
   --------------------------------------------------------------- */
.dashboard-summary-container { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) auto; gap: 12px; margin-bottom: 14px; flex-shrink: 0; }
.summary-scope { font-size: 11.5px; font-weight: 500; color: var(--text-muted); background: var(--bg-secondary); border-radius: 999px; padding: 2px 8px 1px; }
.total-pill { margin-left: auto; background: var(--bg-secondary); color: var(--text-muted); font-size: 11.5px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 2px 9px 1px; border-radius: 999px; white-space: nowrap; }
.total-pill strong { font-weight: 500; margin-left: 2px; color: var(--text-main); }
.summary-empty { color: var(--text-muted); font-size: 12.5px; }

/* .badge receives its color inline (border + text); tint the fill from that same color */
.badge { padding: 3px 9px 2px; border-radius: 999px; font-size: 11.5px; font-weight: 500; display: inline-flex; align-items: center; white-space: nowrap; background: color-mix(in srgb, currentColor 12%, transparent); border-color: color-mix(in srgb, currentColor 30%, transparent) !important; }
.asap-badge,.notes-badge,.stale-badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px 1px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: 0; text-transform: none; white-space: nowrap; line-height: 1.45; }
.asap-badge .ic,.notes-badge .ic,.stale-badge .ic { font-size: 11px; }
.asap-badge { background: var(--danger); color: #fff; box-shadow: 0 0 0 1px rgba(242,109,109,0.4); }
.notes-badge { background: rgba(167,139,250,0.14); color: var(--violet); border: 1px solid rgba(167,139,250,0.3); }
.stale-badge { border: 1px solid rgba(240,180,60,0.4); color: var(--warning); background: rgba(240,180,60,0.1); }
/* ---------------------------------------------------------------
   Kanban board
   --------------------------------------------------------------- */
.kanban-board { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: flex-start; flex: 1; min-height: 0; }
.kanban-column-header { padding: 13px 12px 10px 14px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-shrink: 0; cursor: pointer; transition: background 0.12s; color: var(--text-main); background: linear-gradient(180deg, color-mix(in srgb, var(--st) 9%, transparent), transparent); }
.kanban-column-header:hover { background: color-mix(in srgb, var(--st) 12%, transparent); }
.kanban-count { background: var(--bg-secondary); color: var(--text-main); font-size: 11.5px; font-weight: 500; min-width: 24px; text-align: center; padding: 2px 8px 1px; border-radius: 999px; border: 1px solid var(--border-strong); }
.kanban-column-header .kanban-count { background: var(--bg-secondary); color: var(--text-main); }
.stale-count-badge { align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--danger); padding: 2px 7px 1px 6px; border-radius: 999px; white-space: nowrap; }
.stale-count-badge::before { content: ''; width: 11px; height: 11px; background-color: currentColor; -webkit-mask: var(--i) center/contain no-repeat; mask: var(--i) center/contain no-repeat; }
.kanban-empty { font-size: 13px; color: var(--text-muted); text-align: center; padding: 28px 0; }
.board-empty { padding: 56px 0; flex: 1; }
/* Load card */
.load-card { flex-shrink: 0; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 11px 12px 10px; cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; overflow: hidden; display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow-sm); }
.load-card:hover { border-color: var(--border-hover); box-shadow: var(--shadow-md); }
.load-card.stale-highlight { background: linear-gradient(180deg, rgba(242,109,109,0.10), rgba(242,109,109,0.04)) , var(--bg-secondary); border-color: rgba(242,109,109,0.55); box-shadow: inset 3px 0 0 var(--danger); }
.load-card.stale-highlight:hover { border-color: var(--danger); box-shadow: inset 3px 0 0 var(--danger), var(--shadow-md); }
.load-card-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.load-card-syl { display: inline-flex; align-items: center; font-weight: 600; font-size: 14px; color: var(--text-main); overflow: hidden; white-space: nowrap; min-width: 0; letter-spacing: -0.005em; }
/* SYL# copy button: its text swaps to ✓ in the script, so the icon is a pseudo-element */
.load-card-people, .load-card-disp { display: flex; flex-direction: column; gap: 3px; }
.load-card-row { font-size: 12.5px; color: var(--text-main); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 7px; }
.load-card-row > .ic { color: var(--text-faint); font-size: 13px; }
.load-card-muted { color: var(--text-muted); }
.load-card-split-row { justify-content: space-between; gap: 8px; }
.load-card-split-row > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1 1 auto; display: flex; align-items: center; gap: 7px; }
.load-card-split-row > span:first-child .ic { color: var(--text-faint); font-size: 13px; }
.load-card-split-row > span:last-child { flex-shrink: 0; white-space: nowrap; }
/* Route: pickup → delivery as a two-stop line */
.load-card-route { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 8px 10px 8px 26px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 17px; }

/* Status dropdown on cards / rows — its color is set inline from the status palette */
.card-status-select { font-family: inherit; font-size: 12px; font-weight: 500; background-color: var(--input-bg); border: 1px solid; border-width: 1px 1px 1px 4px; border-radius: 15px; height: 30px; padding: 0 28px 0 10px; margin-top: 0; width: 100%; color: var(--text-main); cursor: pointer; outline: none; white-space: nowrap; text-overflow: ellipsis; transition: 0.12s; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238b93a1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 9px center; background-size: 13px; }
.card-status-select:hover { background-color: var(--bg-hover-soft); }
.card-status-select:focus-visible { box-shadow: var(--focus-ring); }
/* ---------------------------------------------------------------
   Status focus view, breadcrumbs, Finished Loads folders
   --------------------------------------------------------------- */
.view-scroll, .stats-container { flex: 1; min-height: 0; overflow-y: auto; }
.breadcrumb-container { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; white-space: nowrap; }
.back-btn { background-color: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); height: 30px; padding: 0 11px 0 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 500; color: var(--text-main); transition: 0.12s; white-space: nowrap; }
.back-btn:hover { background-color: var(--bg-hover); }
.back-btn .ic { font-size: 14px; }
.folder-path { font-size: 13px; color: var(--text-muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-path a { color: var(--primary); cursor: pointer; text-decoration: none; }
.folder-path a:hover { text-decoration: underline; color: var(--primary-hover); }
.status-filter-bar { --st: var(--text-muted); display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 14px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); flex-shrink: 0; box-shadow: inset 3px 0 0 var(--st); }
.status-filter-label { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; color: var(--text-main); padding: 0; background: none; }
.status-filter-label::before { content: ''; width: 10px; height: 10px; border-radius: 7px; background: var(--st); box-shadow: 0 0 0 3px color-mix(in srgb, var(--st) 22%, transparent); }
.status-filter-view { display: flex; flex-direction: column; flex: 1; min-height: 0; width: 100%; align-self: stretch; }
.load-grid { flex: 1 1 100%; align-self: stretch; width: 100%; grid-column: 1 / -1; grid-auto-rows: max-content; }
.load-card[data-status] { border-top: 3px solid var(--st); }

.cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; overflow-y: auto; flex: 1; min-height: 0; align-content: start; padding-bottom: 8px; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.folder-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px; text-align: left; cursor: pointer; transition: border-color 0.12s, background 0.12s; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; }
.folder-card:hover { border-color: var(--border-hover); background: var(--bg-secondary); }
.folder-card-icon { grid-row: 1 / 3; width: 40px; height: 40px; border-radius: 20px; background: var(--primary-soft); color: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 19px; margin: 0; }
.folder-card-label { font-size: 16px; font-weight: 600; color: var(--text-main); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.folder-card-count { font-size: 12px; color: var(--text-muted); white-space: nowrap; }
.month-status-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 280px)); gap: 12px; }
.month-status-tab { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 16px; display: flex; justify-content: space-between; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; font-weight: 500; color: var(--text-main); transition: border-color 0.12s, background 0.12s; white-space: nowrap; }
.month-status-tab:hover { border-color: var(--border-hover); background: var(--bg-secondary); }
.ast-label { display: inline-flex; align-items: center; gap: 10px; }
.ast-icon { width: 32px; height: 32px; border-radius: 19px; display: inline-flex; align-items: center; justify-content: center; font-size: 16px; background: color-mix(in srgb, currentColor 13%, transparent); }
/* ---------------------------------------------------------------
   Tables (List, Compact, Finished, Database)
   --------------------------------------------------------------- */
.table-responsive { overflow-x: auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; text-align: left; white-space: nowrap; font-variant-numeric: tabular-nums; }
.data-table th { background: var(--bg-subtle); color: var(--text-muted); font-weight: 500; text-transform: none; padding: 10px 12px 9px; border-bottom: 1px solid var(--border); letter-spacing: 0; font-size: 12px; white-space: nowrap; }
.data-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; font-size: 12.5px; vertical-align: middle; }
.data-table tbody tr { transition: background 0.1s; cursor: pointer; }
.data-table tbody tr:hover { background: var(--bg-hover-soft); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr.stale-row { background: var(--danger-bg); }
.data-table tbody tr.stale-row > td:first-child { box-shadow: inset 3px 0 0 var(--danger); }
.data-table tbody tr.stale-row:hover { background: rgba(242,109,109,0.13); filter: none; }
.data-table .align-right { text-align: right; }
.data-table td.align-right { font-weight: 500; }

.list-syl { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; font-size: 13px; }
.cell-stop { display: flex; align-items: center; gap: 7px; font-weight: 500; }
.cell-stop::before { content: ''; width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.cell-stop.pick::before { background: var(--success); }
.cell-stop.drop::before { border: 2px solid var(--danger); width: 7px; height: 7px; box-sizing: border-box; }
.cell-when { color: var(--text-muted); font-size: 11.5px; padding-left: 14px; }

.muted-dash { color: var(--text-faint); }
.row-actions { display: inline-flex; gap: 6px; justify-content: flex-end; }
/* Compact table */

.data-table .card-status-select { min-width: 164px; }

/* ---------------------------------------------------------------
   Statistics
   --------------------------------------------------------------- */
.stats-container { padding-bottom: 12px; }
.stats-who { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 500; color: var(--primary); margin-bottom: 4px; }
.stats-who:empty { display: none; }
.disp-income { max-width: 760px; margin: 22px auto 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.disp-income-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.disp-income-head h3 { font-size: 14px; font-weight: 600; }
.disp-income-head span { font-size: 12px; color: var(--text-muted); }
.di-total { margin-left: auto; font-variant-numeric: tabular-nums; }
.di-months { padding: 2px 16px 10px 38px; }
.di-month { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; font-variant-numeric: tabular-nums; }
.di-month:last-child { border-bottom: none; }
.di-month.zero { color: var(--text-faint); }
.di-empty { padding: 16px; text-align: center; font-size: 13px; color: var(--text-muted); }
.stats-divider { border: none; border-top: 1px solid var(--border-strong); max-width: 760px; margin: 28px auto 0; }
.di-count { color: var(--text-muted); font-weight: 500; font-size: 12.5px; }
.di-months .di-month { display: grid; grid-template-columns: 1fr 90px 120px; }
.di-months .di-month > :nth-child(2), .di-months .di-month > :nth-child(3) { text-align: right; }
.di-month-head { font-size: 11.5px !important; font-weight: 500; color: var(--text-muted); border-bottom: 1px solid var(--border) !important; }
.ic-eye { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%204.5C7%204.5%202.73%207.61%201%2012c1.73%204.39%206%207.5%2011%207.5s9.27-3.11%2011-7.5c-1.73-4.39-6-7.5-11-7.5M12%2017c-2.76%200-5-2.24-5-5s2.24-5%205-5%205%202.24%205%205-2.24%205-5%205m0-8c-1.66%200-3%201.34-3%203s1.34%203%203%203%203-1.34%203-3-1.34-3-3-3%27%3E%3C/path%3E%3C/svg%3E"); }
.ic-eye-off { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0zm0%200h24v24H0zm0%200h24v24H0zm0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27M12%207c2.76%200%205%202.24%205%205%200%20.65-.13%201.26-.36%201.83l2.92%202.92c1.51-1.26%202.7-2.89%203.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4%200-2.74.25-3.98.7l2.16%202.16C10.74%207.13%2011.35%207%2012%207M2%204.27l2.28%202.28.46.46A11.8%2011.8%200%200%200%201%2012c1.73%204.39%206%207.5%2011%207.5%201.55%200%203.03-.3%204.38-.84l.42.42L19.73%2022%2021%2020.73%203.27%203zM7.53%209.8l1.55%201.55c-.05.21-.08.43-.08.65%200%201.66%201.34%203%203%203%20.22%200%20.44-.03.65-.08l1.55%201.55c-.67.33-1.41.53-2.2.53-2.76%200-5-2.24-5-5%200-.79.2-1.53.53-2.2m4.31-.78%203.15%203.15.02-.16c0-1.66-1.34-3-3-3z%27%3E%3C/path%3E%3C/svg%3E"); }
.status-on { color: var(--success); font-weight: 500; }
.status-bad { color: var(--danger); font-weight: 500; }
.role-pill.role-extra { margin-left: 4px; font-weight: 500; color: var(--text-muted); }
.extra-roles-group { margin-top: 12px; }
.extra-roles { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-secondary); }
.extra-role { display: inline-flex !important; align-items: center; gap: 6px; font-size: 13px !important; font-weight: 500 !important; color: var(--text-main) !important; cursor: pointer; justify-content: flex-start !important; }

#statsPresetRow, #finishedPresetRow { background: none; border: none; padding: 0; height: auto; }
.stats-preset-select { width: 170px; font-weight: 500; }

#notesOverlay { z-index: 1050; }
#viewModalOverlay { z-index: 1060; }
#modalOverlay { z-index: 1070; }
#appDialogOverlay { z-index: 1400; }
.confirm-icon-danger { color: var(--danger); background: var(--danger-bg); }
.confirm-icon-info { color: var(--primary); background: var(--primary-soft); }
#appDialogText { white-space: pre-line; }
.app-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 1500; background: #111827; color: #fff; padding: 10px 16px; border-radius: 20px; font-size: 13px; font-weight: 500; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; max-width: calc(100vw - 32px); overflow-wrap: anywhere; }
.app-toast.show { opacity: 1; transform: translate(-50%, 0); }
/* Notes & Comments tile on the dashboard */
@keyframes notesGlow { 0%, 100% { box-shadow: 0 6px 18px rgba(77, 70, 200, 0.35), 0 0 0 0 rgba(124, 92, 255, 0.45); } 50% { box-shadow: 0 6px 22px rgba(77, 70, 200, 0.55), 0 0 0 7px rgba(124, 92, 255, 0); } }
/* Notes & Comments window */
.notes-modal { max-width: 1000px !important; height: min(86vh, 900px); }
.notes-modal .modal-header h2 { display: inline-flex; align-items: center; gap: 8px; }
.notes-search { width: 360px; }
.notes-search .form-control { padding-right: 11px; }

/* ===== Notes & Comments — split view ===== */
.notes-modal.nx { max-width: 1080px !important; height: min(86vh, 760px); }
.nx .modal-header { padding: 12px 14px 12px 20px; }
.nx-bd { display: grid; grid-template-columns: 330px minmax(0, 1fr); flex: 1; min-height: 0; }
.nx-ls { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--border); }
.nx-lt { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-bottom: 1px solid var(--border); }
.nx-lt .notes-search { width: 100%; }
.nx-cnt { font-size: 11.5px; color: var(--text-muted); }
.nx-list { flex: 1; overflow-y: auto; }
.nx-it { display: flex; flex-direction: column; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 12px; min-width: 0; }
.nx-it:hover { background: var(--bg-hover); }
.nx-it:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.nx-it.on { background: color-mix(in srgb, var(--primary) 8%, var(--bg-card)); box-shadow: inset 3px 0 var(--primary); }
.nx-it-a { display: flex; align-items: center; gap: 6px; min-width: 0; }
.nx-it-a .st-badge { font-size: 11px; line-height: 16px; padding: 1px 8px 1px 7px; }
.nx-flags { margin-left: auto; display: inline-flex; gap: 4px; }
.nx-fl { width: 20px; height: 20px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-style: normal; }
.nx-fl-n { color: var(--violet); background: color-mix(in srgb, var(--violet) 13%, transparent); }
.nx-fl-c { color: var(--info); background: color-mix(in srgb, var(--info) 13%, transparent); }
.nx-it-r { display: flex; align-items: center; gap: 5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nx-it-r .stop-dot { width: 8px; height: 8px; }
.nx-it-p { color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nx-none, .nx-pick { padding: 40px 16px; text-align: center; color: var(--text-muted); font-size: 13px; }
.nx-pick { display: flex; flex-direction: column; align-items: center; gap: 8px; } .nx-pick .ic { font-size: 22px; color: var(--text-faint); }
.nx-dt { padding: 16px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.nx-back { display: none; align-self: flex-start; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: 600 12.5px var(--font); color: var(--primary); cursor: pointer; }
.nx-dh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.nx-ln { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.nx-open { margin-left: auto; }
.nx-secs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.nx-sec { border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--bg-card); display: flex; flex-direction: column; min-width: 0; }
.nx-sh { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 10px 6px 12px; border-bottom: 1px solid var(--border); font-size: 12.5px; font-weight: 700; color: var(--text-main); }
.nx-n .nx-sh > .ic { color: var(--violet); } .nx-c .nx-sh > .ic { color: var(--info); }
.nx-sh-btn { margin-left: auto; }
.nx-editing { font-size: 11.5px; font-weight: 500; color: var(--text-faint); }
.nx-sb { padding: 12px; }
.nx-sb .nc-text { font-size: 13px; line-height: 1.55; }
.nx-sf { padding: 8px 12px; border-top: 1px solid var(--border); font-size: 11.5px; color: var(--text-faint); }
@media (max-width: 900px) { .nx-secs { grid-template-columns: 1fr; } }\n        @media (max-width: 899px) { .notes-modal.nx { height: 100vh; height: 100dvh; } }
@media (max-width: 760px) {
    .nx-bd { grid-template-columns: minmax(0, 1fr); }
    .nx-ls { border-right: 0; }
    .nx-dt { display: none; padding: 14px; }
    .nx.nx-show-detail .nx-ls { display: none; }
    .nx.nx-show-detail .nx-dt { display: flex; }
    .nx-back { display: inline-flex; }
    .nx-open { margin-left: 0; }
}
.nd-meta { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12.5px; color: var(--text-muted); }
.nd-meta > span { display: inline-flex; align-items: center; gap: 6px; }
.nd-meta .stop-dot { width: 8px; height: 8px; }
.nc-text { font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--text-main); }
.nc-empty { font-size: 12.5px; color: var(--text-faint); font-style: italic; }
.nc-edit-area { width: 100%; min-height: 96px; }
.nc-edit-actions { display: flex; gap: 6px; justify-content: flex-end; margin-top: 6px; }
@media (max-width: 699px) { .notes-search { width: 100%; }  }
.rk-count { margin-left: auto; font-size: 11px; font-weight: 500; color: var(--text-muted); background: var(--bg-secondary); padding: 1px 8px 0; border-radius: 999px; }
/* ---- Statistics (one team): Financial Summary + Brokers / Drivers / Dispatchers rankings ---- */

/* ---------------------------------------------------------------
   Database page
   --------------------------------------------------------------- */
.db-tabs { display: flex; gap: 2px; margin-bottom: 14px; border-bottom: 1px solid var(--border); flex-shrink: 0; flex-wrap: wrap; }
.db-tab-btn { background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-muted); font-size: 13.5px; font-weight: 500; padding: 9px 12px 10px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: color 0.12s; }
.db-tab-btn:hover { color: var(--text-main); }
.db-tab-btn.active { color: var(--text-main); border-bottom-color: var(--primary); }
.db-tab-btn.active .rk-count { background: var(--primary-soft); color: var(--primary); }
.db-tab-btn .rk-count { margin-left: 0; }
.db-name { font-weight: 500; }
.db-search-row { margin-bottom: 12px; flex-shrink: 0; }
/* Users tab: centered, slightly narrower table; roles as plain text */
#usersView .users-search-row, #usersTableContainer { width: 100%; max-width: 1040px; margin-left: auto; margin-right: auto; }
#usersTableContainer .data-table th, #usersTableContainer .data-table td { padding: 7px 10px; }
#usersTableContainer .data-table td:last-child, #usersTableContainer .data-table th:last-child { width: 1%; white-space: nowrap; max-width: none; overflow: visible; }
#usersTableContainer .data-table td:last-child .row-actions { display: flex; width: max-content; margin-left: auto; }
#usersTableContainer .user-roles { font-size: 12.5px; color: var(--text-main); }
#usersTableContainer .db-name { overflow-wrap: anywhere; }
@media (max-width: 599px) { #usersTableContainer .data-table th, #usersTableContainer .data-table td { padding: 6px 8px; } }
/* Users window: one field per line — Full Name, Login, Password, roles */
.user-form-stack { display: flex; flex-direction: column; gap: 10px; }
.extra-roles { flex-direction: column; flex-wrap: nowrap !important; gap: 7px !important; }
/* Database: centered, compact tables */
#databaseView .db-tabs, #databaseView .db-search-row, #dbTableContainer { width: 100%; max-width: 820px; margin-left: auto; margin-right: auto; }
#dbTableContainer .table-responsive { margin: 0 auto; }
#dbTableContainer .data-table th, #dbTableContainer .data-table td { padding: 7px 10px; }
#dbTableContainer .data-table td:last-child, #dbTableContainer .data-table th:last-child { width: 1%; white-space: nowrap; max-width: none; overflow: visible; }
#dbTableContainer .data-table td:last-child .row-actions { display: flex; width: max-content; margin-left: auto; }
#dbTableContainer .data-table .db-name { overflow-wrap: anywhere; }
#dbTableContainer .row-actions .btn-sm { padding: 0 9px; }
@media (max-width: 599px) {
    #dbTableContainer .data-table th, #dbTableContainer .data-table td { padding: 6px 8px; }
    #dbTableContainer .row-actions { gap: 4px; }
}
/* Statistics: Whole Company switch + per-team breakdown */
.wc-toggle { display: inline-flex; align-items: center; gap: 8px; height: var(--control-h); padding: 0 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-card); font-size: 13px; font-weight: 500; color: var(--text-main); cursor: pointer; user-select: none; white-space: nowrap; }
.wc-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.wc-switch { position: relative; width: 30px; height: 17px; border-radius: 999px; background: var(--border-strong); transition: background .15s; flex-shrink: 0; }
.wc-switch::after { content: ''; position: absolute; top: 2px; left: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .15s; }
.wc-toggle input:checked + .wc-switch { background: var(--primary-fill); }
.wc-toggle input:checked + .wc-switch::after { transform: translateX(13px); }
/* ---- Teams page + "no teams yet" state ---- */
.nt-state:empty { display: none; }
body.single-team #activeWholeToggle { display: none !important; }
body:not(.cap-createuser) #addUserBtn { display: none !important; }
body.no-teams #loadsView > :not(header):not(.nt-state), body.no-teams #finishedView > :not(header):not(.nt-state), body.no-teams #statsView > :not(header):not(.nt-state),
body.no-teams #addLoadBtn, body.no-teams #finishedView .header-actions, body.no-teams #statsView .header-actions { display: none !important; }
.nt-card { max-width: 520px; margin: 48px auto; text-align: center; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px 28px; }
.nt-card h2 { font-size: 18px; margin: 10px 0 6px; } .nt-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin: 0 0 16px; }

.nt-icon { width: 46px; height: 46px; margin: 0 auto; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: var(--primary-soft); color: var(--primary); font-size: 22px; }
.tm-empty { margin-top: 24px; }
#teamsView #teamsTableContainer { width: 100%; max-width: 1040px; margin: 0 auto; }
.tm-table td, .tm-table th { padding: 8px 10px; }
.tm-table td:last-child { width: 1%; white-space: nowrap; max-width: none; overflow: visible; }
.tm-table td:last-child .row-actions { display: flex; width: max-content; margin-left: auto; }
.tm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.tm-code { font: 600 12.5px var(--font); font-variant-numeric: tabular-nums; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: 12px; padding: 1px 6px; }
.tm-type { font-size: 12px; font-weight: 500; padding: 2px 8px; border-radius: 999px; background: var(--bg-secondary); white-space: nowrap; }
.tm-type.tm-company { background: color-mix(in srgb, var(--warning) 15%, transparent); color: var(--warning); }
.tm-off td { color: var(--text-muted); }
.tm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tm-upper { letter-spacing: .02em; font-weight: 600; }
.tm-preview { font-size: 12px; color: var(--text-muted); margin: -2px 0 2px; min-height: 16px; }
.tm-types { display: flex; flex-direction: column; gap: 6px; }
.tm-type-opt { display: flex !important; justify-content: flex-start !important; gap: 10px; align-items: flex-start !important; padding: 9px 11px; border: 1px solid var(--border); border-radius: var(--radius-sm); cursor: pointer; font-weight: 400 !important; white-space: normal !important; color: var(--text-main) !important; text-align: left; }
.tm-type-opt > span { flex: 1; min-width: 0; }
.tm-type-opt:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.tm-type-opt:has(input:disabled) { cursor: not-allowed; opacity: .75; }
.tm-type-opt input { margin-top: 3px; } .tm-type-opt b { display: block; font-size: 13px; } .tm-type-opt small { display: block; font-size: 12px; color: var(--text-muted); line-height: 1.4; }
@media (max-width: 599px) { .tm-two { grid-template-columns: 1fr; } }
.role-chip { display: inline-block; margin: 1px 4px 1px 0; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--bg-secondary); color: var(--text-main); border: 1px solid var(--border); white-space: nowrap; }
.role-chip.role-admin { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
.extra-role.role-locked { opacity: .55; cursor: not-allowed; }
.team-access-note { font-size: 12px; color: var(--text-muted); line-height: 1.45; margin-top: 6px; }
#userTeamsList .tm-dot { margin-right: 2px; }
#usersTableContainer .user-teams { font-size: 12.5px; color: var(--text-main); white-space: normal; min-width: 120px; }
.ic-logout { --i:url("data:image/svg+xml,%3Csvg%20stroke=%27black%27%20fill=%27black%27%20stroke-width=%270%27%20viewBox=%270%200%2024%2024%27%20xmlns=%27http://www.w3.org/2000/svg%27%3E%3Cpath%20fill=%27none%27%20d=%27M0%200h24v24H0z%27%3E%3C/path%3E%3Cpath%20d=%27m17%207-1.41%201.41L18.17%2011H8v2h10.17l-2.58%202.58L17%2017l5-5zM4%205h8V3H4c-1.1%200-2%20.9-2%202v14c0%201.1.9%202%202%202h8v-2H4z%27%3E%3C/path%3E%3C/svg%3E"); }
/* ---- Sign in ---- */
.auth-screen { display: none; position: fixed; inset: 0; z-index: 3000; background: var(--bg-main); align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
body.auth-locked .auth-screen { display: flex; }
 body.auth-locked > main,body.auth-locked > .dock { visibility: hidden; }
.auth-screen { align-items: safe center; }
.auth-card { margin: auto 0; flex-shrink: 0; }
.auth-card { width: 100%; max-width: 380px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 27px; box-shadow: var(--shadow-lg); padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 12px; }

.auth-card h2 { font-size: 20px; font-weight: 600; }
.auth-sub { font-size: 13px; color: var(--text-muted); line-height: 1.45; margin-top: -6px; }
.auth-sub:empty { display: none; }

.auth-card:not(.change) #authTitle, .auth-card:not(.change) #authSub { display: none; }
.auth-error { font-size: 12.5px; color: var(--danger); min-height: 0; }
.auth-error:empty { display: none; }
.auth-submit { width: 100%; margin-top: 4px; }
   /* name & role now shown in the session strip */
.session-avatar { width: 24px; height: 24px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 10.5px; font-weight: 600; color: #fff; background: var(--primary-fill); }
.session-name { font-weight: 500; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
/* ---- Role-based visibility (the screens; every action is also checked in the code) ---- */
body:not(.cap-db) li:has(#navDatabase), body:not(.cap-stats) li:has(#navStats) { display: none; }
body:not(.cap-edit) #loadsView .header-actions .btn:not(#themeToggleBtn):not(#notesBtn) { display: none; }
body:not(.cap-edit) #viewModalOverlay [onclick="editFromView()"] { display: none; }
body:not(.cap-edit) .card-status-select { pointer-events: none; }

.ss-locked .ss-selected { cursor: not-allowed; }
.btn-signout-yes { background: #d23f3f; }
.btn-signout-yes:hover { background: #b83232; }

/* ---- Users table / window ---- */
.role-pill { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--bg-secondary); border: 1px solid var(--border); }
.role-pill.role-admin { color: var(--primary); border-color: color-mix(in srgb, var(--primary) 35%, transparent); background: var(--primary-soft); }
.status-off { color: var(--text-muted); }
.user-active-row { margin-top: 12px; }
.user-role-note div + div { margin-top: 3px; }
.user-role-note { font-size: 12px; color: var(--text-muted); margin-top: 10px; line-height: 1.45; }
.user-role-note:empty { display: none; }
#userError { margin-top: 10px; }
.ss-locked .ss-selected { cursor: default; background: var(--bg-secondary); border-style: dashed; box-shadow: none; }
.ss-locked .ss-selected:hover { border-color: var(--border-strong); }
.quickadd-newop { display: flex; gap: 6px; align-items: center; }
#quickAddOverlay .modal, #quickAddOverlay .modal-body { overflow: visible; }
.ms-mark { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; height: 18px; padding: 0 7px; margin-left: 6px; border-radius: 10px; background: var(--info); color: #fff; font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0; white-space: nowrap; vertical-align: middle; }
.ms-mark .ic { font-size: 11px; }
:root[data-theme="dark"] .ms-mark { color: #06223a; }

/* ---------------------------------------------------------------
   Modals
   --------------------------------------------------------------- */
.modal-overlay { position: fixed; inset: 0; background: var(--overlay); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); display: flex; justify-content: center; align-items: center; z-index: 1000; opacity: 0; pointer-events: none; transition: opacity 0.16s ease; padding: 16px; }
.modal-overlay.active { opacity: 1; pointer-events: auto; }
.modal { background: var(--bg-card); width: 100%; max-width: 1080px; max-height: calc(100dvh - 32px); border: 1px solid var(--border-strong); border-radius: 27px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; transform: translateY(8px) scale(0.99); transition: transform 0.18s ease; overflow: hidden; }
.modal-overlay.active .modal { transform: none; }
.modal-header { padding: 14px 16px 14px 22px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-shrink: 0; }
.modal-header h2 { font-size: 17px; font-weight: 600; white-space: nowrap; letter-spacing: -0.005em; }
.modal-body { padding: 18px 22px; overflow-y: auto; flex: 1; min-height: 0; }
.modal-footer { padding: 12px 22px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--bg-subtle); flex-shrink: 0; flex-wrap: wrap; }
.footer-left, .footer-right { display: flex; gap: 8px; flex-wrap: wrap; }
/* Load form */
.route-box-solo { grid-column: 1 / -1; }
.stop-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.stop-dot-pick { background: var(--success); box-shadow: 0 0 0 3px rgba(63,207,142,0.2); }
.stop-dot-drop { border: 2.5px solid var(--danger); box-shadow: 0 0 0 3px rgba(242,109,109,0.15); }

.inline-check { display: inline-flex !important; align-items: center; gap: 7px; font-size: 12.5px !important; font-weight: 500 !important; text-transform: none !important; letter-spacing: 0 !important; color: var(--text-main) !important; cursor: pointer; justify-content: flex-start !important; white-space: nowrap; }
.inline-check .ic { color: var(--info); }
.attachment-row { display: flex; align-items: center; gap: 9px; padding: 8px 11px; background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius-sm); font-size: 12.5px; color: var(--text-main); }
.attachment-row > .ic { color: var(--text-muted); }
.attachment-row .att-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-main); font-weight: 500; }
.attachment-row .att-size { color: var(--text-muted); font-size: 11.5px; white-space: nowrap; flex-shrink: 0; }
a.attachment-row:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.attachment-remove { color: var(--text-muted); cursor: pointer; flex-shrink: 0; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; }
.attachment-remove:hover { color: var(--danger); background: var(--danger-bg); }
.form-group { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
label { font-size: 12px; font-weight: 500; color: var(--text-muted); text-transform: none; letter-spacing: 0; display: flex; justify-content: space-between; align-items: center; white-space: nowrap; }
.optional-hint { text-transform: none; font-weight: 500; color: var(--text-faint); }
.flex-1 { flex: 1; min-width: 0; }
.canceled-hint { display: none; font-size: 12px; color: var(--warning); margin-top: 10px; padding: 8px 11px; background: rgba(240,180,60,0.08); border: 1px solid rgba(240,180,60,0.25); border-radius: var(--radius-sm); line-height: 1.45; }
.add-disp-btn { display: inline-flex; align-items: center; gap: 4px; color: var(--primary); cursor: pointer; font-size: 12px; font-weight: 500; text-transform: none; transition: 0.12s; margin-left: auto; white-space: nowrap; padding: 3px 8px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--bg-card); }
.add-disp-btn .ic { font-size: 12px; }
.add-disp-btn:hover { color: var(--primary-hover); background: var(--bg-hover); text-decoration: none; }
.remove-disp-btn { color: var(--danger); }
.remove-disp-btn:hover { color: var(--danger); background: var(--danger-bg); border-color: rgba(242,109,109,0.4); }
.auto-value { font-size: 15px; font-weight: 500; color: var(--text-main); display: flex; align-items: center; height: var(--control-h); white-space: nowrap; padding: 0 11px; background: var(--bg-secondary); border: 1px dashed var(--border-strong); border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; overflow: hidden; }
/* Custom Searchable Dropdown */
.searchable-select { position: relative; width: 100%; }
.ss-selected { padding: 0 10px 0 11px; height: var(--control-h); border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--text-main); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 8px; user-select: none; font-size: 13px; transition: border-color 0.12s, box-shadow 0.12s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-selected > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.ss-selected:hover { border-color: var(--border-hover); }
.searchable-select:has(.ss-dropdown.active) .ss-selected { border-color: var(--primary); box-shadow: var(--focus-ring); }
.ss-selected.error { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(242,109,109,0.2); }
.ss-caret { color: var(--text-muted); font-size: 14px; transition: transform 0.15s; }
.searchable-select:has(.ss-dropdown.active) .ss-caret { transform: rotate(180deg); }
.ss-dropdown { position: absolute; top: 100%; left: 0; right: 0; min-width: 180px; background: var(--bg-card); border: 1px solid var(--border-strong); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); z-index: 1050; display: none; margin-top: 6px; flex-direction: column; overflow: hidden; }
.ss-dropdown.active { display: flex; }
.ss-search-wrapper { padding: 6px; border-bottom: 1px solid var(--border); background: var(--bg-card); }
.ss-search { width: 100%; padding: 0 10px; height: 30px; border: 1px solid var(--border-strong); background: var(--input-bg); color: var(--text-main); border-radius: 14px; outline: none; font-size: 12.5px; }
.ss-search:focus { border-color: var(--primary); }
.ss-options { max-height: 220px; overflow-y: auto; padding: 4px; }
.ss-option { padding: 7px 9px; cursor: pointer; font-size: 13px; transition: background 0.08s; border-radius: 14px; color: var(--text-main); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-option:hover { background: var(--bg-secondary); color: var(--text-main); }
.ss-option.selected { background: var(--primary-soft); color: var(--primary-hover); font-weight: 500; }
.ss-option.highlighted { background: var(--bg-hover); color: var(--text-main); box-shadow: inset 2px 0 0 var(--primary); }
.ss-empty { color: var(--text-muted) !important; cursor: default !important; background: none !important; }
.ss-add-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 9px; margin: 4px -4px -4px; border-top: 1px solid var(--border); background: var(--bg-subtle); cursor: pointer; }
.ss-add-row:hover { background: var(--bg-secondary); }
.ss-add-text { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-add-link { font-size: 12px; font-weight: 500; color: var(--primary); white-space: nowrap; flex-shrink: 0; }
/* ---------------------------------------------------------------
   Responsive
   --------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; }
}
/* online: while a saved sign-in is being opened, the card shows only "Loading…" */
.auth-card.loading > * { visibility: hidden; }
.auth-card.loading { position: relative; }
.auth-card.loading::after { content: 'Loading…'; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; }
