.employee-consumption-row .employee-consumption-actions {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;grid-column:1/-1;gap:10px;margin-top:2px}
.employee-consumption-actions>button,.employee-consumption-actions>a {display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;margin:0;padding:11px 15px;border:0;border-radius:15px;font:inherit;font-size:14px;font-weight:600;line-height:1.4;text-decoration:none;cursor:pointer;transition:background .18s ease,transform .18s ease}
.employee-consumption-actions>button {background:#e7eeef;color:#3c5c68}
.employee-consumption-actions>button b {display:grid;place-items:center;min-width:23px;min-height:23px;padding:0 5px;border-radius:8px;background:#fff9;font-size:13px;font-variant-numeric:tabular-nums}
.employee-consumption-actions>a {background:linear-gradient(120deg,#e5dff2,#d5eaef);color:#334652}
.employee-consumption-actions>a svg {width:17px;height:17px}
.employee-consumption-actions>button:hover,.employee-consumption-actions>a:hover {transform:translateY(-1px);filter:brightness(.97)}
.employee-consumption-actions :is(button,a):focus-visible {outline:2px solid var(--focus);outline-offset:3px}
.employee-consumption-actions>.employee-products-empty {margin:0;font-size:14px}
html[data-theme="dark"] .employee-consumption-actions>button {background:#2c3c42;color:#d3e7f0}
html[data-theme="dark"] .employee-consumption-actions>button b {background:#ffffff12}
html[data-theme="dark"] .employee-consumption-actions>a {background:linear-gradient(120deg,#47435e,#32515a);color:#eef5f7}
html.employee-materials-open {overflow:hidden}
.employee-materials-dialog {--materials-ink:#263a37;--materials-muted:#63716e;--materials-soft:#eff3f3;--materials-surface:#fcfdfc;width:calc(100% - 40px);max-width:760px;max-height:calc(100dvh - 64px);margin:auto;padding:0;border:0;border-radius:28px;overflow:hidden;background:var(--materials-surface);color:var(--materials-ink);box-shadow:0 28px 100px #18273540;opacity:0;transform:translateY(14px) scale(.985);transition:opacity .22s ease,transform .22s cubic-bezier(.2,.7,.2,1)}
.employee-materials-dialog[open] {display:flex;flex-direction:column}
.employee-materials-dialog[data-state="open"] {opacity:1;transform:translateY(0) scale(1)}
html[data-theme] .employee-materials-dialog::backdrop {background:#10192475;backdrop-filter:blur(6px);opacity:0;transition:opacity .22s ease}
html[data-theme] .employee-materials-dialog[data-state="open"]::backdrop {opacity:1}
.employee-materials-heading {display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex:none;padding:26px 28px 18px}
.employee-materials-heading>div {min-width:0}
.employee-materials-eyebrow {display:block;margin-bottom:7px;font-size:12px;letter-spacing:1.2px;text-transform:uppercase;color:var(--materials-muted)}
.employee-materials-heading h2 {font-size:27px;line-height:1.25;letter-spacing:-.5px;color:inherit}
.employee-materials-close {display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:var(--materials-soft);color:inherit;cursor:pointer}
.employee-materials-close svg {width:20px;height:20px}
.employee-materials-dialog :is(button,a,input):focus-visible {outline:2px solid var(--focus);outline-offset:3px}
.employee-materials-person {display:flex;align-items:center;gap:14px;flex:none;min-width:0;margin:0 28px;padding:17px 18px;border-radius:20px;background:linear-gradient(120deg,#eee9f6,#e3f1f2)}
.employee-materials-person .employee-avatar {width:52px;height:52px;flex:none;font-size:20px}
.employee-materials-person>div {min-width:0}
.employee-materials-person strong {display:block;font-size:18px;line-height:1.4;overflow-wrap:anywhere}
.employee-materials-person p {margin-top:4px;font-size:14px;line-height:1.5;color:var(--materials-muted)}
.employee-materials-person p span {display:block}
.employee-materials-tools {flex:none;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;margin:18px 28px 12px}
.employee-materials-search {position:relative;display:block;min-width:0;margin:0}
.employee-materials-search>svg {position:absolute;top:15px;left:14px;width:19px;height:19px;color:var(--materials-muted);pointer-events:none}
.employee-materials-search input {width:100%;min-width:0;min-height:48px;margin:0;padding:12px 14px 12px 43px;border:1px solid transparent;border-radius:14px;background:var(--materials-soft);color:inherit;font:inherit;font-size:16px;line-height:1.4}
.employee-materials-tools>p {font-size:14px;color:var(--materials-muted);font-variant-numeric:tabular-nums}
.employee-materials-scroll {min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a2b4b6 transparent;padding:0 28px 14px}
.employee-materials-scroll:focus-visible {outline:2px solid var(--focus);outline-offset:-2px}
.employee-materials-scroll .employee-products-list {display:grid;gap:10px;margin:0}
.employee-materials-scroll .employee-products-list>div {display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,auto);align-items:start;gap:14px 22px;margin:0;padding:18px;border:0;border-radius:18px;background:var(--materials-soft)}
.employee-materials-scroll .employee-products-list>div>span {display:grid;gap:6px;min-width:0;text-align:left}
.employee-materials-scroll .employee-products-list>div>span:last-child {text-align:right}
.employee-materials-scroll .employee-products-list strong {font-size:16px;font-weight:600;line-height:1.45;overflow-wrap:anywhere}
.employee-materials-scroll .employee-products-list :is(small,span>span) {font-size:14px;line-height:1.5;color:var(--materials-muted);overflow-wrap:anywhere}
.employee-materials-empty {display:grid;justify-items:center;gap:10px;padding:40px 15px;text-align:center}
.employee-materials-empty strong {font-size:18px}
.employee-materials-empty p {font-size:15px;line-height:1.5;color:var(--materials-muted)}
.employee-materials-footer {display:flex;align-items:center;justify-content:space-between;gap:18px;flex:none;padding:18px 28px 24px;border-top:1px solid #80989620}
.employee-materials-footer>span {max-width:240px;font-size:14px;line-height:1.5;color:var(--materials-muted)}
.employee-materials-footer>a {display:inline-flex;align-items:center;justify-content:center;gap:12px;flex:none;min-height:48px;padding:12px 18px;border-radius:15px;background:linear-gradient(120deg,#e5dff2,#d5eaef);color:#334652;font-size:15px;font-weight:600;text-decoration:none}
.employee-materials-footer>a svg {width:19px;height:19px}
html[data-theme="dark"] .employee-materials-dialog {--materials-ink:#edf4f2;--materials-muted:#b0c0ba;--materials-soft:#26312f;--materials-surface:#18211f;box-shadow:0 28px 100px #0008}
html[data-theme="dark"] .employee-materials-person {background:linear-gradient(120deg,#343347,#233e43)}
html[data-theme="dark"] .employee-materials-footer>a {background:linear-gradient(120deg,#47435e,#32515a);color:#eef5f7}
@media(max-width:600px) {
  .employee-materials-dialog {width:calc(100% - 16px);max-height:calc(100dvh - 24px);border-radius:24px}
  .employee-materials-heading {padding:20px 18px 16px;gap:10px}
  .employee-materials-heading h2 {font-size:24px}
  .employee-materials-person {margin:0 16px;padding:14px;gap:12px}
  .employee-materials-person .employee-avatar {width:44px;height:44px}
  .employee-materials-person strong {font-size:16px}
  .employee-materials-tools {grid-template-columns:minmax(0,1fr);gap:10px;margin:16px}
  .employee-materials-scroll {padding:0 16px 12px}
  .employee-materials-scroll .employee-products-list>div {grid-template-columns:minmax(0,1fr);gap:14px;padding:16px}
  .employee-materials-scroll .employee-products-list>div>span:last-child {text-align:left}
  .employee-materials-footer {padding:14px 16px 18px}
  .employee-materials-footer>span {display:none}
  .employee-materials-footer>a {width:100%;min-width:0}
}
@media(prefers-reduced-motion:reduce) {
  .employee-materials-dialog,html[data-theme] .employee-materials-dialog::backdrop,.employee-consumption-actions>button,.employee-consumption-actions>a {transition:none;transform:none}
}
/* On a shallow viewport, scroll the dialog as one surface instead of squeezing the list. */
@media(max-height:600px) {
  .employee-materials-dialog[open] {display:block;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#a2b4b6 transparent}
  .employee-materials-heading {position:sticky;top:0;z-index:2;align-items:center;padding:12px 18px;background:var(--materials-surface)}
  .employee-materials-eyebrow {display:none}
  .employee-materials-heading h2 {font-size:22px}
  .employee-materials-person {margin-inline:18px;padding:12px}
  .employee-materials-tools {margin:12px 18px}
  .employee-materials-scroll {min-height:150px;overflow:visible;padding-inline:18px}
  .employee-materials-footer {padding:14px 18px}
}
@media(forced-colors:active) {
  .employee-materials-dialog,.employee-materials-person,.employee-materials-search input,.employee-materials-close,.employee-materials-footer>a,.employee-consumption-actions>button,.employee-consumption-actions>a {border:1px solid CanvasText}
}
