/* EPP daily workspace. All tables remain available; mobile rows are concise cards. */
.epp-manager-confirmation { padding:16px;background:#f1f6fb;border:1px solid #d6e3ef;border-radius:12px;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:end; }
.epp-manager-confirmation label { display:grid;gap:8px; }.epp-manager-confirmation p { grid-column:1/-1;margin:0;line-height:1.5; }
.epp-life-warning { padding:14px 18px;border-left:4px solid #a45900;background:#fff5e4;color:#714413;border-radius:10px;line-height:1.6; }
.epp-inventory-notice { padding:12px;background:#eef6fc;border-radius:10px;line-height:1.5; }
.epp-delivery-context { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;padding:18px;background:#fff8e9;border:1px solid #ebd6a9;border-radius:14px; }
.epp-delivery-context .full { grid-column:1/-1; }.epp-delivery-context p { margin:6px 0 0;color:#6d5936;line-height:1.5; }
.epp-delivery-context label { position:relative;align-content:start; }
@media(max-width:680px){.epp-delivery-context{grid-template-columns:minmax(0,1fr);}}
#eppHistoryResults td,#eppHistoryResults th { text-align:center;vertical-align:middle; }
@media(max-width:860px){.epp-manager-confirmation{grid-template-columns:minmax(0,1fr);}.epp-manager-confirmation input{font-size:16px;}}
.epp-admin-context #eppSubnav { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); }
@media(max-width:860px) { .epp-admin-context #eppSubnav { grid-template-columns:repeat(3,minmax(0,1fr)); } }
.epp-context .main-panel { max-width:1800px; width:100%; margin-inline:auto; }
.epp-context .topbar { background:#fff; border:1px solid #dfe7ef; }
.epp-context .topbar h2 { font-size:clamp(1.1rem,1.5vw,1.55rem); }
.epp-context .topbar-actions { display:flex; justify-content:flex-end; align-items:end; }
.epp-context #view-dashboard .section-header { margin-bottom:4px; }
.epp-header-tools { display:flex; gap:8px; }
.epp-mobile-logout,.epp-table-toggle { display:none; }
.epp-file-actions { position:relative; }
.epp-file-actions > summary { cursor:pointer; list-style:none; border:1px solid #dbe5ec; border-radius:10px; padding:12px 16px; min-height:44px; color:#174869; font-weight:600; font-size:.88rem; background:#fff; }
.epp-file-actions[open] > div { position:absolute; right:0; z-index:30; top:calc(100% + 8px); min-width:220px; display:grid; gap:8px; border:1px solid #dbe5ec; border-radius:12px; background:#fff; padding:12px; box-shadow:0 10px 30px #10283d22; }
#eppSubnav { display:flex; flex-wrap:wrap; padding:8px; background:#fff; border:1px solid #dfe7ef; border-radius:14px; gap:4px; }
#eppSubnav .module-subnav-btn { flex:0 1 auto; padding:10px 14px; font-size:.88rem; min-height:44px; }
#eppSubnav .module-subnav-btn.active { color:#fff; background:#123d60; }
.epp-home { border:1px solid #d7e4ea; background:linear-gradient(115deg,#fff 55%,#eef6f7); }
.epp-home-heading { display:flex; align-items:center; justify-content:space-between; gap:24px; }
.epp-home-heading h3 { margin:8px 0; font-size:clamp(1.4rem,2vw,2rem); line-height:1.25; color:#13364c; }
.epp-home-heading p { margin:0; color:#60738b; line-height:1.6; max-width:66ch; }
.epp-quick-links { display:flex; gap:8px; flex-wrap:wrap; margin:24px 0; }
.epp-signal-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.epp-signal { display:grid; gap:8px; padding:18px; text-align:left; border:1px solid #dbe5ec; background:#fff; color:#1e3c50; border-radius:12px; cursor:pointer; }
.epp-signal:hover { border-color:#3c748a; background:#f5fafb; }
.epp-signal > span { font-size:.85rem; font-weight:650; }
.epp-signal > strong { font-size:2rem; line-height:1.2; font-variant-numeric:tabular-nums; }
.epp-signal > small { color:#60738b; line-height:1.5; }
.epp-analytics { border:1px solid #dfe7ef; background:#fff; border-radius:14px; padding:20px; }
.epp-analytics > summary,.epp-alert-settings > summary { cursor:pointer; font-weight:700; min-height:44px; align-content:center; color:#23465b; }
.epp-analytics-content { display:grid; gap:22px; margin-top:20px; }
.epp-context #view-assignments > .content-grid,.epp-context #view-deliveries > .content-grid { grid-template-columns:minmax(0,1fr); }
.epp-context .section-header .inline-actions { align-items:center; }
.epp-context .data-table th { white-space:nowrap; }
.epp-context .data-table td { vertical-align:middle; }
.epp-context .table-actions { display:flex; flex-wrap:wrap; gap:6px; }
.epp-context .table-actions .text-btn { padding:6px 8px; min-height:40px; }
.epp-danger { color:#a33432 !important; }
.epp-editor-dialog { width:min(760px,calc(100% - 32px)); max-height:calc(100dvh - 32px); border:1px solid #d8e3ec; border-radius:18px; padding:24px; color:#20374b; overflow:auto; box-shadow:0 20px 80px #10283d33; }
.epp-editor-dialog::backdrop { background:#10283d99; backdrop-filter:blur(3px); }
.epp-editor-head { display:flex; align-items:start; justify-content:space-between; gap:16px; margin-bottom:24px; }
.epp-editor-head h2 { font-size:1.4rem; margin:8px 0 0; }
.epp-editor-dialog .form-grid { margin:0; }
.epp-editor-dialog .form-grid { align-items:start; }
.epp-editor-dialog .form-grid > label { align-content:start; min-width:0; }
.epp-editor-dialog .form-grid :is(input:not([type=hidden]),select,.smart-select-trigger) { min-height:46px; height:46px; font-size:16px; }
.epp-editor-dialog input[readonly] { background:#f3f6fa; color:#4c6278; }
.epp-editor-dialog .combo-host { position:relative; }
.epp-editor-dialog .combo-suggestion-option { min-height:44px; flex-shrink:0; }
.epp-editor-dialog .combo-suggestion-option:focus-visible { outline:2px solid #185bb9; outline-offset:-2px; }
.epp-technical-sheet:disabled { opacity:.65; cursor:not-allowed; box-shadow:none; }
.epp-editor-dialog .smart-select-panel { position:relative; inset:auto; max-height:280px; width:100%; margin-top:6px; }
.epp-editor-dialog .smart-select-options { max-height:210px; overflow:auto; overscroll-behavior:contain; }
.epp-editor-dialog .combo-suggestion-panel { position:relative; inset:auto; width:100%; max-height:220px; margin-top:6px; overflow:auto; overscroll-behavior:contain; }
.epp-editor-dialog .form-actions { padding-top:16px; border-top:1px solid #e2eaf0; }
.epp-confirm-dialog { max-width:540px; }
.epp-confirm-dialog p { line-height:1.6; }
.epp-delete-confirm { background:#a33432 !important; }
.epp-history-filters { display:grid; grid-template-columns:minmax(230px,2fr) repeat(2,minmax(145px,1fr)) auto; gap:14px; align-items:end; }
.epp-history-filters label { display:grid; gap:8px; font-size:.85rem; font-weight:600; }
.epp-history-filters :is(input,select) { width:100%; min-height:44px; padding:10px 12px; border:1px solid #cbd9e5; border-radius:8px; background:#fff; color:#20374b; }
.epp-history-summary { font-weight:600; line-height:1.5; margin:20px 0; }
.epp-delivery-steps { grid-column:1/-1; display:flex; flex-wrap:wrap; gap:8px; margin-bottom:8px; }
.epp-delivery-steps span { padding:9px 14px; background:#ecf4f6; color:#244a5b; border-radius:8px; font-size:.85rem; }
.epp-alert-settings p { max-width:90ch; color:#60738b; line-height:1.6; }
.epp-context .filters-row { flex-wrap:wrap; }
.epp-context #view-employees .filters-row { display:grid; grid-template-columns:minmax(0,2fr) minmax(170px,1fr); }
.epp-context #view-employees .filters-row .full { grid-column:auto; }
@media(max-width:860px) {
  .epp-context .topbar-actions > .hse-top-actions,.epp-context .topbar-actions > .epp-header-tools { width:auto; flex:0 1 auto; }
  .epp-context[data-epp-view=inventory] .topbar-actions .search-field,.epp-context[data-epp-view=employees] .topbar-actions .search-field { display:none; }
  .epp-context .inventory-kpi-grid .hint { display:none; }
  .epp-context .inventory-kpi-grid .kpi-card { padding:14px; min-height:0; }
  .epp-mobile-logout { display:flex; align-items:center; text-decoration:none; }
  .epp-table-toggle { display:flex; flex-wrap:wrap; align-items:center; gap:8px; padding:8px 12px; border-bottom:1px solid #e2eaf0; font-size:.8rem; background:#f8fafc; }
  .epp-context .topbar { padding:12px; grid-template-columns:minmax(0,1fr); gap:8px; }
  .epp-context .topbar-utility { display:none; }
  .epp-context .topbar-actions { display:flex; flex-direction:row; flex-wrap:wrap; justify-content:space-between; gap:8px; }
  .epp-context .topbar-actions .search-field { flex:1 1 100%; }
  .epp-context #view-inventory .section-description,.epp-context #view-employees .section-description { font-size:.85rem; }
  .epp-context .section-header .inline-actions > * { flex:1 1 140px; }
  .epp-context .section-header .inline-actions .epp-file-actions { flex-basis:100%; }
  .epp-file-actions > summary { text-align:center; }
  .epp-file-actions[open] > div { position:static; margin-top:8px; width:100%; }
  .epp-context .topbar-actions:has(.search-field.hidden) { justify-content:flex-end; }
  .epp-context .slh-avatar-widget { display:none; }
  #eppSubnav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:4px; }
  #eppSubnav .module-subnav-btn { white-space:normal; padding:8px 4px; font-size:.78rem; text-align:center; }
  .epp-home-heading { flex-direction:column; align-items:stretch; gap:18px; }
  .epp-quick-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); margin:18px 0; }
  .epp-quick-links button { white-space:normal; }
  .epp-signal-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
  .epp-signal { padding:14px; }
  .epp-signal > strong { font-size:1.6rem; }
  .epp-signal > small { font-size:.75rem; }
  .epp-context .table-scroll { overflow-x:hidden; }
  .epp-context .data-table,.epp-context .data-table tbody { display:block; min-width:0; width:100%; }
  .epp-context .data-table thead,.epp-context .table-scroll-rail { display:none !important; }
  .epp-context .data-table tbody { display:grid; gap:12px; padding:8px; }
  .epp-context .data-table tr { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); border:1px solid #dbe5ec; border-radius:12px; background:#fff; overflow:hidden; }
  .epp-context .data-table td { display:block; min-width:0; width:auto !important; padding:10px; border:0; white-space:normal; overflow-wrap:anywhere; }
  .epp-context .data-table td::before { content:attr(data-label); display:block; color:#60738b; font-size:.68rem; letter-spacing:.02em; font-weight:700; margin-bottom:4px; }
  .epp-context .data-table td:last-child { grid-column:1/-1; border-top:1px solid #e6edf3; background:#f8fafc; }
  #inventoryTable td:nth-child(2),#employeesTable td:nth-child(2),#historyTable td:nth-child(2) { font-weight:700; color:#193e57; }
  #inventoryTable td:nth-child(3),#inventoryTable td:nth-child(9),#inventoryTable td:nth-child(10),#employeesTable td:nth-child(6),#employeesTable td:nth-child(7) { display:none; }
  #inventoryTable td:nth-child(7) { font-size:1.25rem; font-weight:750; color:#1a5e49; }
  .epp-history-filters { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
  .epp-history-filters > label:first-child,.epp-history-filters > button { grid-column:1/-1; }
  .epp-context #view-employees .filters-row { grid-template-columns:minmax(0,1fr); }
  .epp-editor-dialog { width:calc(100% - 16px); max-height:calc(100dvh - 16px); padding:18px; border-radius:14px; }
  .epp-editor-dialog .form-grid { grid-template-columns:minmax(0,1fr); }
  .epp-editor-dialog :is(input,select,textarea),.epp-history-filters :is(input,select) { font-size:16px; }
  .epp-editor-head h2 { font-size:1.2rem; }
  .epp-context .section-header { flex-direction:column; }
  .epp-analytics { padding:16px; }
  .epp-delivery-steps { display:grid; grid-template-columns:1fr; }
}
@media(max-width:860px) {
  .epp-context.epp-table-mode .table-scroll { overflow-x:auto; }
  .epp-context.epp-table-mode .data-table { display:table; min-width:1000px; width:auto; }
  .epp-context.epp-table-mode .data-table thead { display:table-header-group !important; }
  .epp-context.epp-table-mode .data-table tbody { display:table-row-group; }
  .epp-context.epp-table-mode .data-table tr { display:table-row; }
  .epp-context.epp-table-mode .data-table td,.epp-context.epp-table-mode .data-table th { display:table-cell !important; padding:12px; font-size:.85rem; border-bottom:1px solid #e2eaf0; }
  .epp-context.epp-table-mode .data-table td::before { display:none; }
}
@media(max-width:360px) { .epp-signal { padding:10px; } .epp-signal > span { font-size:.78rem; } }
