/* Keep navigation outside the scrolling tab content on every screen size. */
.layout{height:100vh;height:100dvh;min-height:0;overflow:hidden;grid-template-rows:minmax(0,1fr)}
.layout>aside{min-height:0;overflow-y:auto;overscroll-behavior:contain}
.layout>.main{display:flex;flex-direction:column;height:100%;min-height:0;overflow:hidden}
.layout>.main>.topbar{flex:0 0 auto}
.layout>.main>.content{flex:1 1 auto;min-height:0;width:100%;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;-webkit-overflow-scrolling:touch}
@media(max-width:750px){
  .layout{grid-template-rows:auto minmax(0,1fr)}
  .layout>aside{position:relative;top:auto;max-height:40dvh}
  html,body,#app{min-width:320px;width:100%;overflow-x:hidden}
  .layout{grid-template-columns:minmax(0,1fr)}
  aside{position:sticky;top:0;z-index:10;display:block;padding:10px 12px;border-right:0;border-bottom:1px solid var(--line);background:var(--page)}
  .brand{font-size:18px;gap:8px;margin-bottom:8px}
  .brand .companylogo{width:38px;height:38px}
  .navlabel,.sidefoot{display:none}
  .nav{display:flex;flex-direction:row;gap:7px;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-padding-inline:14px;padding:4px 14px 8px;margin:0 -12px;scroll-snap-type:x proximity}
  .nav::-webkit-scrollbar{display:none}
  .nav button{position:relative;flex:0 0 auto;min-height:46px;white-space:nowrap;padding:10px 14px;gap:8px;font-size:13px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:var(--muted);box-shadow:0 2px 8px #0000000a;scroll-snap-align:center;transition:background .18s ease,color .18s ease,border-color .18s ease,transform .18s ease}
  .nav button:active{transform:scale(.97)}
  .nav button.active{background:linear-gradient(135deg,#0c6962,#168579);border-color:#0c6962;color:#fff;box-shadow:0 5px 14px #0c69623b}
  .nav button.active svg{color:#fff}
  .nav button svg{width:18px;height:18px;flex:0 0 auto}
  .nav .notification-count{top:0;left:auto;right:0}
  .nav button:focus-visible{outline:3px solid #f0a23b;outline-offset:2px}
  .main,.content,.grid>*{min-width:0;width:100%}
  .topbar{height:auto;min-height:54px;flex-wrap:nowrap;align-items:center;gap:8px;padding:8px 14px}
  .topbar .crumb{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}
  .user{width:auto;flex:0 0 auto;margin-left:auto}
  .content{padding:17px 13px 28px}
  .heading{align-items:flex-start;flex-wrap:wrap;gap:11px;margin-bottom:18px}
  .heading>div{min-width:0;flex:1 1 100%}
  .heading h1{font-size:23px;line-height:1.2;overflow-wrap:anywhere}
  .heading p{font-size:13px;margin-top:5px}
  .heading>button,.heading>.actions{max-width:100%}
  .stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:0;margin-bottom:16px}
  .stat{min-width:0;padding:11px 9px}
  .stat .label{gap:4px;font-size:11px;flex-wrap:wrap}
  .stat strong{font-size:20px;margin:6px 0 0;overflow-wrap:anywhere}
  .grid{grid-template-columns:minmax(0,1fr);gap:14px}
  .jobs{grid-template-columns:minmax(0,1fr);gap:12px}
  .job{padding:16px}
  .calendar{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .day{min-width:0;min-height:130px;padding:10px;font-size:12px;overflow-wrap:anywhere}
  .day .item{padding:8px;margin-top:8px;white-space:normal;overflow-wrap:anywhere}
  .day .item p{margin:7px 0}
  .tablewrap{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
  table{min-width:max-content;font-size:12px}
  th,td{padding:9px 11px}
  .cardhead{padding:11px 0;flex-wrap:wrap}
  .cardbody{padding:12px 0}
  .tools{gap:8px}
  .tools input,.tools select,.tools button,input[type=search]{min-width:0;max-width:100%}
  input[type=search]{width:100%}
  form{padding:17px}
  dialog{width:calc(100vw - 24px);max-width:520px;max-height:88dvh;overflow:auto}
  dialog form{padding:17px}
  form .actions{flex-wrap:wrap}
  form .actions button{flex:1 1 auto}
  #toast{left:12px;right:12px;bottom:max(12px,env(safe-area-inset-bottom));width:auto;max-width:none;padding:12px 14px;font-size:14px}
  .employment-summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.employment-detail:not(.manager):not(.earnings){grid-column:span 1}.employment-detail.manager,.employment-detail.earnings{grid-column:span 1}
  .employment-detail{min-width:0;padding:12px}
  .employment-detail strong{font-size:17px}
  .notification-filters{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 12px}
  .notification-filters button{flex:1 1 120px}
  .notification-item{min-width:0;padding:14px}
  .notification-item .row{align-items:flex-start;flex-wrap:wrap;gap:8px}
  .notification-item .row small{margin-left:auto;text-align:right}
  .notification-item p{overflow-wrap:anywhere}
  .notification-image{max-height:55vh}
}

.profile-menu{position:relative;z-index:30}
.profile-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;cursor:pointer;padding:0;border:0;border-radius:50%;background:transparent;outline-offset:3px}
.profile-menu>summary::-webkit-details-marker{display:none}
.profile-menu-trigger .avatar{width:42px;height:42px;box-shadow:0 2px 10px #0002}
.profile-menu[open]>.profile-menu-trigger{outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent)}
.profile-menu-panel{position:absolute;top:calc(100% + 10px);right:0;z-index:60;display:grid;gap:11px;width:min(280px,calc(100vw - 24px));padding:14px;border:1px solid color-mix(in srgb,var(--line) 75%,transparent);border-radius:16px;background:color-mix(in srgb,var(--surface) 86%,transparent);box-shadow:0 18px 52px #0003;backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%)}
.profile-menu-heading{display:flex;align-items:center;gap:11px;padding:2px 2px 12px;border-bottom:1px solid var(--line);font-weight:650}
.profile-menu-heading .avatar{flex:none;width:42px;height:42px}
.profile-menu-heading small{display:block;margin-top:3px;color:var(--muted);font-size:12px;font-weight:400}
.profile-menu-status{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:12px}
.profile-menu-status b{padding:4px 8px;border-radius:99px;background:#e6f5eb;color:#267447;font-size:11px;text-transform:uppercase;letter-spacing:.04em}
.profile-menu-panel button{width:100%;min-height:40px;text-align:left;border-radius:10px}
html[data-theme="dark"] .profile-menu-panel{background:rgba(37,39,38,.88);border-color:#ffffff28}
html[data-theme="dark"] .profile-menu-status b{background:#244332;color:#b7efca}
@media(max-width:390px){
  .calendar{grid-template-columns:minmax(0,1fr)}
  .nav button{padding:8px 10px;font-size:12px}
  .heading h1{font-size:21px}
  .stat .label{font-size:10px}
}

/* Clear, responsive data tables shared by both portals. */
.tablewrap{max-height:min(680px,72vh);overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.tablewrap table{width:100%;border-collapse:separate;border-spacing:0;background:transparent}.tablewrap th{padding:12px 15px;background:var(--surface-soft);color:var(--muted);font-size:11px;font-weight:700;letter-spacing:.055em;text-transform:uppercase;white-space:nowrap;border-bottom:1px solid var(--line)}.tablewrap td{padding:13px 15px;border-bottom:1px solid var(--line);vertical-align:middle;line-height:1.45}.tablewrap tbody tr:last-child td{border-bottom:0}.tablewrap tbody tr:nth-child(even){background:color-mix(in srgb,var(--surface-soft),transparent 62%)}.tablewrap tbody tr:hover{background:var(--surface-soft)}.tablewrap td button{min-height:34px;padding:6px 10px;font-size:12px}.tablewrap .empty{color:var(--muted);text-align:center;padding:24px}
/* Calendar days read like a friendly weekly planner. */
.calendar{gap:12px}.day{min-height:154px;padding:12px;border-radius:10px;transition:border-color .15s,background .15s}.day-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;min-height:26px;margin-bottom:7px}.day-heading b{font-size:13px;letter-spacing:.01em}.day-label{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;background:var(--surface-soft);color:var(--muted);font-size:10px;font-weight:700}.day-label.today-label{background:#dff3e5;color:#176b35}html[data-theme="dark"] .day-label.today-label{background:#173b25;color:#a6e4b7}.day.is-today{border-color:#2a8b7f;box-shadow:0 0 0 1px #2a8b7f24}.day.is-weekend{background:color-mix(in srgb,var(--surface),var(--surface-soft) 42%)}.day-content{min-height:96px}.day-empty{margin:16px 2px 0;color:var(--muted);font-size:12px;line-height:1.4}.day .item{margin-top:8px;padding:10px;border:1px solid var(--line);border-left:3px solid #3b8f83;border-radius:8px;background:var(--surface);box-shadow:0 2px 6px #00000008}.day .item>b{display:block;line-height:1.35}.day .item>p{margin:6px 0;font-size:12px;line-height:1.4}.day .item .schedule-job-id{display:inline-block;margin-top:5px;padding:3px 7px;border-radius:999px;background:var(--surface-soft);color:var(--muted);font-size:10px;line-height:1.3}.day-more{width:100%;margin-top:8px;border-radius:7px;text-align:left}
@media(max-width:750px){.tablewrap{max-height:none;overflow:visible;border:0;background:transparent}.tablewrap table,.tablewrap tbody{display:block;width:100%;min-width:0}.tablewrap thead{display:none}.tablewrap tbody>tr{display:block;margin:0 0 10px;padding:5px 12px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 2px 8px #00000008}.tablewrap tbody>tr:nth-child(even),.tablewrap tbody>tr:hover{background:var(--surface)}.tablewrap td{display:grid;grid-template-columns:minmax(0,42%) minmax(0,1fr);align-items:start;gap:10px;min-width:0;padding:10px 2px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.tablewrap td:last-child{border-bottom:0}.tablewrap td::before{min-width:0;overflow-wrap:anywhere;line-height:1.35}.tablewrap td>*{min-width:0;max-width:100%;overflow-wrap:anywhere}.tablewrap td:not([colspan])::before{content:attr(data-label);color:var(--muted);font-size:10px;font-weight:700;letter-spacing:.04em;line-height:1.4;text-transform:uppercase}.tablewrap td[colspan]{display:block;border:0;text-align:center;padding:18px 4px}.tablewrap td[colspan]::before{content:none}.tablewrap td:last-child button{margin:1px 4px 4px 0}.employee-directory .tablewrap{max-height:none;overflow:visible}.employee-directory .tablewrap table{width:100%;min-width:0;table-layout:fixed}.employee-directory .tablewrap td:first-child{display:block}.employee-directory .tablewrap td:first-child::before{display:block;margin-bottom:9px}.employee-directory .tablewrap td:first-child .person{align-items:flex-start;gap:10px}.employee-directory .tablewrap td:first-child .person>div{min-width:0;overflow-wrap:anywhere}.employee-directory .tablewrap td:first-child>small{max-width:calc(100% - 50px);margin:7px 0 0 50px;overflow-wrap:anywhere}.employee-directory .tablewrap td:nth-child(2){white-space:normal;overflow-wrap:anywhere}.employee-directory .tablewrap td:last-child{display:flex;flex-wrap:wrap;gap:6px}.employee-directory .tablewrap td:last-child::before{flex:0 0 100%}.employee-directory .tablewrap td:last-child button{min-width:0;margin:0;flex:1 1 70px}.day{min-height:132px;padding:10px}.day-content{min-height:76px}.day-empty{margin-top:12px;font-size:11px}.calendar{gap:9px}}
@media(max-width:390px){.tablewrap td{grid-template-columns:minmax(0,40%) minmax(0,1fr);gap:7px;padding:9px 1px}.day{min-height:120px}}

/* Lightweight loading status. */
.loading-screen{background:color-mix(in srgb,var(--page),transparent 12%);backdrop-filter:blur(2px)}.loading-panel.loading-simple{display:flex;align-items:center;gap:11px;width:auto;max-width:calc(100vw - 32px);padding:12px 16px;border:1px solid var(--line);border-radius:12px;background:var(--surface);box-shadow:0 8px 28px #00000012}.loading-mark{width:27px;height:27px;object-fit:contain}.loading-panel.loading-simple>strong{font-size:14px;white-space:nowrap}.loading-panel.loading-simple .loading-spinner{flex:none;margin-left:4px}.loading-panel.loading-simple .loading-caption{margin:0;color:var(--muted);font-size:12px;white-space:nowrap}@media(max-width:420px){.loading-panel.loading-simple{gap:8px;padding:11px 12px}.loading-mark{width:24px;height:24px}.loading-panel.loading-simple .loading-caption{font-size:11px}}

/* iPhone-inspired liquid-glass surfaces for prompts and confirmations. */
dialog{background:color-mix(in srgb,var(--surface) 84%,transparent);color:var(--text);border:1px solid color-mix(in srgb,#fff 38%,var(--line));border-radius:20px;box-shadow:0 28px 90px #00000032,inset 0 1px 0 #ffffff66;backdrop-filter:blur(24px) saturate(155%);-webkit-backdrop-filter:blur(24px) saturate(155%);max-height:min(88dvh,880px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}dialog::backdrop{background:rgba(18,26,32,.32);backdrop-filter:blur(15px) saturate(135%);-webkit-backdrop-filter:blur(15px) saturate(135%)}dialog form{background:transparent;padding:28px}dialog form h2{font-size:21px;letter-spacing:-.35px;margin-bottom:20px}dialog input,dialog select,dialog textarea{background:color-mix(in srgb,var(--surface) 72%,transparent);border-color:color-mix(in srgb,var(--line) 78%,transparent);border-radius:11px;min-height:44px}dialog input:focus,dialog select:focus,dialog textarea:focus{outline:2px solid color-mix(in srgb,#318a7f 62%,transparent);outline-offset:1px}dialog .actions{padding-top:16px;border-top:1px solid color-mix(in srgb,var(--line) 78%,transparent)}dialog .actions button{border-radius:10px}html[data-theme="dark"] dialog{background:rgba(39,40,39,.82);border-color:rgba(255,255,255,.22);box-shadow:0 32px 100px #0008,inset 0 1px 0 #ffffff35}html[data-theme="dark"] dialog::backdrop{background:rgba(7,14,17,.42)}html[data-theme="dark"] dialog input,html[data-theme="dark"] dialog select,html[data-theme="dark"] dialog textarea{background:rgba(24,25,24,.52);border-color:rgba(255,255,255,.18)}@supports not (backdrop-filter:blur(1px)){dialog{background:var(--surface)}dialog::backdrop{background:rgba(0,0,0,.48)}}@media(max-width:480px){dialog{border-radius:18px}dialog form{padding:22px 18px}}

.dialog-message{margin:12px 0 0;padding:12px 14px;border:1px solid #c8453b;border-radius:10px;background:#fff1f0;color:#7b1e18;font-size:14px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}html[data-theme=dark] .dialog-message{border-color:#a64a42;background:#3b2221;color:#ffd6d2}
/* Date tiles flip to reveal the day's complete schedule. */
.day-flip-card{perspective:1000px;padding:0;overflow:visible;background:transparent;border:0;box-shadow:none;min-height:180px}.day-flip-card.is-today{border:0;box-shadow:none}.day-flip-inner{position:relative;min-height:180px;height:100%;transform-style:preserve-3d;transition:transform .55s cubic-bezier(.2,.75,.25,1)}.day-flip-card.is-flipped .day-flip-inner{transform:rotateY(180deg)}.day-flip-card .day-face{position:absolute;inset:0;min-height:180px;overflow:auto;padding:12px;border:1px solid var(--line);border-radius:12px;background:var(--surface);backface-visibility:hidden;-webkit-backface-visibility:hidden;box-shadow:0 2px 8px #00000008}.day-flip-card.is-today .day-face{border-color:#2a8b7f;box-shadow:0 0 0 1px #2a8b7f24}.day-flip-card.is-weekend .day-face{background:color-mix(in srgb,var(--surface),var(--surface-soft) 42%)}.day-flip-card .day-back{transform:rotateY(180deg)}.day-date-button{width:100%;height:100%;min-height:154px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;border:0;border-radius:9px;background:transparent;color:var(--text);cursor:pointer}.day-date-button:hover{background:var(--surface-soft)}.day-date-button strong{font-size:46px;line-height:1;letter-spacing:-.05em}.day-date-weekday,.day-date-month{font-size:13px;color:var(--muted);font-weight:650}.day-date-button .day-label{margin-top:4px}.day-flip-hint{margin-top:8px;color:var(--muted);font-size:11px}.day-flip-toggle{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:var(--surface);color:var(--muted);padding:4px 9px;cursor:pointer}.day-flip-card .day-heading{display:flex;align-items:center;justify-content:space-between;gap:6px}.day-flip-card .day-content{max-height:130px;overflow:auto}.day-flip-card .day-content .item{margin-top:7px;padding:8px}.day-flip-card .day-content .item>p{margin:4px 0}.day-flip-card .schedule-day-actions{display:flex;gap:5px;flex-wrap:wrap}.day-flip-card .schedule-day-actions button{font-size:11px;padding:5px 7px}
@media(prefers-reduced-motion:reduce){.day-flip-inner{transition:none}}

/* Keep long audit values, employee IDs, and attendance details inside phone cards. */
@media(max-width:750px){.tablewrap td,.tablewrap td>*{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.tablewrap .person{min-width:0;max-width:100%;gap:8px}.tablewrap .person>div{min-width:0;max-width:100%;flex:1 1 auto;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.tablewrap .person small{display:block;max-width:100%;white-space:normal;overflow-wrap:anywhere;word-break:break-word}.attendance-records .tablewrap td{grid-template-columns:minmax(0,42%) minmax(0,1fr);gap:10px;padding:10px 2px}.attendance-records .tablewrap td .person{align-items:flex-start}.attendance-records .tablewrap td .person>div{flex:1 1 0}}

/* Compact, high-contrast shift actions on the flipped calendar cards. */
.day-flip-card .schedule-day-actions{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:6px;margin-top:9px}.day-flip-card .schedule-day-actions button{min-height:32px;padding:6px 9px;border-radius:8px;font-size:11px;font-weight:700;white-space:nowrap;transition:transform .15s,box-shadow .15s,background .15s}.day-flip-card .schedule-day-actions button[data-action^="shift-"]{border:1px solid #0c6962;background:#0c6962;color:white;box-shadow:0 2px 5px #0c696224}.day-flip-card .schedule-day-actions button[data-action^="shift-"]:hover{background:#095850;box-shadow:0 4px 10px #0c696233;transform:translateY(-1px)}.day-flip-card .schedule-day-actions button[data-action^="unassign-shift-"]{border:1px solid #eed4d5;background:#fff8f8;color:#9a3f49}.day-flip-card .schedule-day-actions button[data-action^="unassign-shift-"]:hover{background:#fdeced;color:#812e39}
html[data-theme="dark"] .day-flip-card .schedule-day-actions button[data-action^="unassign-shift-"]{border-color:#61383c;background:#302426;color:#ffb8be}
.day-flip-card .schedule-day-actions{grid-template-columns:minmax(0,1fr) auto}.day-flip-card .schedule-day-actions button{min-width:0;white-space:normal;line-height:1.15;overflow-wrap:anywhere;text-align:center}.day-flip-card .schedule-day-actions button[data-action^="shift-"]{padding-inline:8px}

/* Keep employee status and controls readable in Admin and HR tables. */
@media(min-width:751px){.employee-directory .tablewrap{overflow-x:auto}.employee-directory .tablewrap table{width:100%;min-width:1260px;table-layout:fixed;white-space:normal}.employee-directory .tablewrap th,.employee-directory .tablewrap td{white-space:normal;overflow-wrap:anywhere}.employee-directory .tablewrap th:last-child,.employee-directory .tablewrap td:last-child{width:235px}}.employee-directory .employee-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.employee-directory .employee-actions button{margin:0;white-space:nowrap}

/* Keep directory labels intact and give the columns room instead of squeezing text. */
@media(min-width:751px){.employee-directory .tablewrap{max-width:100%;overflow-x:auto}.employee-directory .tablewrap table{width:max-content;min-width:1460px;table-layout:auto;white-space:nowrap}.employee-directory .tablewrap th,.employee-directory .tablewrap td{white-space:nowrap;overflow-wrap:normal;word-break:normal}.employee-directory .tablewrap td:first-child small{white-space:normal;overflow-wrap:anywhere}.employee-directory .tablewrap td:last-child{min-width:250px}}.employee-directory .employee-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.employee-directory .employee-actions button{white-space:nowrap}

/* Compact Employee Directory columns to the available page width. */
@media(min-width:751px){.employee-directory .tablewrap{max-width:100%;overflow-x:auto}.employee-directory .tablewrap table{width:100%;min-width:980px;table-layout:fixed;white-space:normal}.employee-directory .tablewrap th,.employee-directory .tablewrap td{padding:12px 10px;white-space:normal;overflow-wrap:normal;word-break:normal}.employee-directory .tablewrap th:nth-child(2),.employee-directory .tablewrap td:nth-child(2),.employee-directory .tablewrap th:nth-child(3),.employee-directory .tablewrap td:nth-child(3),.employee-directory .tablewrap th:last-child,.employee-directory .tablewrap td:last-child{white-space:nowrap}.employee-directory.with-contact-details .tablewrap th:nth-child(1),.employee-directory.with-contact-details .tablewrap td:nth-child(1){width:22%}.employee-directory.with-contact-details .tablewrap th:nth-child(2),.employee-directory.with-contact-details .tablewrap td:nth-child(2){width:15%}.employee-directory.with-contact-details .tablewrap th:nth-child(3),.employee-directory.with-contact-details .tablewrap td:nth-child(3){width:10%}.employee-directory.with-contact-details .tablewrap th:nth-child(4),.employee-directory.with-contact-details .tablewrap td:nth-child(4),.employee-directory.with-contact-details .tablewrap th:nth-child(5),.employee-directory.with-contact-details .tablewrap td:nth-child(5){width:15%}.employee-directory.with-contact-details .tablewrap th:nth-child(6),.employee-directory.with-contact-details .tablewrap td:nth-child(6){width:8%}.employee-directory.with-contact-details .tablewrap th:nth-child(7),.employee-directory.with-contact-details .tablewrap td:nth-child(7){width:15%}.employee-directory.basic-directory .tablewrap th:nth-child(1),.employee-directory.basic-directory .tablewrap td:nth-child(1){width:35%}.employee-directory.basic-directory .tablewrap th:nth-child(2),.employee-directory.basic-directory .tablewrap td:nth-child(2){width:22%}.employee-directory.basic-directory .tablewrap th:nth-child(3),.employee-directory.basic-directory .tablewrap td:nth-child(3){width:14%}.employee-directory.basic-directory .tablewrap th:nth-child(4),.employee-directory.basic-directory .tablewrap td:nth-child(4){width:13%}.employee-directory.basic-directory .tablewrap th:nth-child(5),.employee-directory.basic-directory .tablewrap td:nth-child(5){width:16%}.employee-directory.with-contact-details .tablewrap td:nth-child(4) span,.employee-directory.with-contact-details .tablewrap td:nth-child(5) span{overflow-wrap:anywhere}.employee-directory .tablewrap td:first-child small{white-space:normal;overflow-wrap:anywhere}}.employee-directory .employee-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;min-width:0}.employee-directory .employee-actions button{margin:0;white-space:nowrap}

/* Expand employee management actions only when needed. */
.employee-directory .employee-action-menu{display:inline-block;max-width:100%}.employee-directory .employee-action-menu summary{display:inline-flex;align-items:center;min-height:34px;padding:6px 12px;border:1px solid var(--line);border-radius:7px;background:var(--surface);color:var(--text);font-size:12px;font-weight:650;cursor:pointer;list-style:none}.employee-directory .employee-action-menu summary::-webkit-details-marker{display:none}.employee-directory .employee-action-menu summary::after{content:"▾";margin-left:8px;color:var(--muted)}.employee-directory .employee-action-menu[open] summary::after{content:"▴"}.employee-directory .employee-action-options{position:fixed;left:0;top:0;z-index:10000;min-width:160px;max-width:min(260px,calc(100vw - 16px));display:flex;flex-direction:column;align-items:stretch;gap:6px;margin:0;padding:8px;border:1px solid var(--line);border-radius:10px;background:var(--surface);box-shadow:0 12px 32px #00000024}.employee-directory .employee-action-options button{width:100%;min-height:36px;margin:0;text-align:left;white-space:normal;overflow-wrap:anywhere}
