/* My day: one person's numbers above their own loads. Builds on the operations board styles. */
.md .md-tiles{margin-bottom:12px}
.md .md-gap{margin-bottom:12px}
.md .md-numbers{display:grid;grid-template-columns:minmax(0,3fr) minmax(260px,2fr);gap:0 12px;align-items:stretch}
.md .md-numbers td,.md .md-numbers thead th{text-align:right}
.md .md-numbers tbody th{font-weight:650;white-space:nowrap}
.md .md-days{padding:10px 12px}
.md .md-bars{display:flex;align-items:flex-end;gap:2px;height:78px;margin:8px 0 0;padding:0;list-style:none}
.md .md-bars li{flex:1 1 0;min-width:8px;max-width:28px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:2px;height:100%}
.md .md-bar{display:block;width:100%;border-radius:4px 4px 0 0;background:var(--lb-green)}
.md .md-bar.md-none{background:var(--lb-border);border-radius:0}
.md .md-bars li:hover .md-bar{background:#2f6b47}
.md .md-bars small{font-size:10px;color:var(--lb-muted);line-height:1}
.md .md-note{grid-column:1/-1;margin:-4px 0 12px;font-size:12px;color:var(--lb-muted)}
.md .md-heading{margin-top:6px}
@media (max-width:900px){.md .md-numbers{grid-template-columns:minmax(0,1fr)}}
.md .md-viewing{margin:0 0 12px;padding:8px 12px;border:1px solid #e7c77d;border-radius:4px;background:var(--lb-warn-soft);color:var(--lb-ink)}
.md .hr-pick{display:flex;align-items:center;gap:6px;font-size:12px;color:var(--lb-muted)}
.md .hr-pick select{height:32px;max-width:240px;padding:4px 8px;border:1px solid #afbeb3;border-radius:3px;background:#fff;font:13px 'Segoe UI',Arial,sans-serif;color:var(--lb-ink)}
.md .md-days-in{display:block;font-weight:400;color:var(--lb-muted)}
/* Six panels, two across, in the order of the owner's layout; the loads sit underneath. */
.md .md-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:14px}
.md .md-panel{padding:10px 12px 12px;border:1px solid var(--lb-border);border-top:3px solid var(--lb-green);border-radius:4px;background:#fff;min-width:0}
.md .md-panel>h2{margin:0 0 8px;font-size:13px;color:var(--lb-ink)}
.md .md-panel .md-numbers{grid-template-columns:minmax(0,1fr)}
.md .md-panel .lb-panel{margin-bottom:8px}
.md .md-dials{display:flex;flex-wrap:wrap;justify-content:space-around;gap:8px 16px;margin-bottom:8px}
.md .md-dial{margin:0;width:170px;text-align:center}
.md .md-gauge{display:block;width:150px;margin:0 auto}
.md .md-gauge path{fill:none;stroke-width:12;stroke-linecap:round}
.md .md-gauge-track{stroke:var(--lb-grid)}
.md .md-gauge-value{stroke:var(--lb-green)}
.md .md-gauge .md-gauge-mark{stroke:#b88b20;stroke-width:3;stroke-linecap:butt}
.md .md-gauge-off .md-gauge-track{stroke-dasharray:3 5;stroke-linecap:butt}
.md .md-dial figcaption{display:flex;flex-direction:column;margin-top:-22px}
.md .md-dial strong{font-size:22px;line-height:1.2;font-variant-numeric:tabular-nums}
.md .md-dial span{font-weight:650}
.md .md-dial small,.md .md-later{font-size:11px;color:var(--lb-muted)}
.md .md-later{margin:8px 0 0}
.md .md-calls{margin:0;padding:0;list-style:none;font-variant-numeric:tabular-nums}
.md .md-calls li{display:grid;grid-template-columns:90px minmax(0,1fr) auto;gap:10px;padding:5px 8px;border-top:1px solid var(--lb-grid);font-weight:650}
.md .md-calls .md-who{font-weight:400;color:var(--lb-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.md .md-calls .md-red{color:var(--lb-alert);animation:md-flash 1.2s steps(2,start) infinite}
.md .md-calls .md-green{color:var(--lb-ok)}
@keyframes md-flash{to{background:var(--lb-alert-soft)}}
@media (prefers-reduced-motion:reduce){.md .md-calls .md-red{animation:none;background:var(--lb-alert-soft)}}
.md .md-carriers td{text-align:right;white-space:nowrap}
.md .md-carriers th{font-weight:650}
@media (max-width:1000px){.md .md-grid{grid-template-columns:minmax(0,1fr)}}
/* Carriers: period picker, lanes under each carrier, phone links. */
.md .md-period{margin:8px 0}
.md .md-scroll{max-height:420px;overflow:auto;border-top:1px solid var(--lb-grid)}
.md .md-carriers{width:100%;border-collapse:collapse}
.md .md-carriers caption{text-align:left;font-size:12px;color:var(--lb-muted);padding:6px 0}
.md .md-carriers thead th{position:sticky;top:0;background:var(--lb-surface,#fff);font-size:11px;text-align:right;color:var(--lb-muted)}
.md .md-carriers thead th:first-child{text-align:left}
.md .md-carriers tbody th{text-align:left;vertical-align:top;padding:5px 8px 5px 0;border-top:1px solid var(--lb-grid)}
.md .md-carriers tbody td{vertical-align:top;padding:5px 0 5px 10px;border-top:1px solid var(--lb-grid)}
.md .md-carriers small{display:block;font-weight:400;font-size:11px;color:var(--lb-muted)}
.md .md-carriers summary{cursor:pointer}
.md .md-carriers a{color:inherit;font-weight:650}
.md .md-repeat{font-size:10px;font-weight:650;text-transform:uppercase;letter-spacing:.04em;color:var(--lb-ok);border:1px solid currentColor;border-radius:8px;padding:0 5px;margin-left:4px}
.md .md-lanes{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:4px 16px;margin:4px 0 6px;font-weight:400;font-size:12px}
.md .md-lanes h3{margin:0 0 2px;font-size:11px;color:var(--lb-muted);font-weight:650}
.md .md-lanes ul{margin:0;padding:0;list-style:none}
.md .md-lanes li small{display:inline}
/* Tracking rows do not flash; red is enough. */
.md .md-track .md-red{animation:none}
.md .md-track .md-amber{color:var(--lb-warn,#8a5a00)}
/* Wide screens: the six panels fit one screen, three across and two down; a panel with more to show scrolls inside itself. */
@media (min-width:1200px) and (min-height:700px){
  .md .md-grid{grid-template-columns:repeat(3,minmax(0,1fr));grid-auto-rows:calc((100vh - var(--md-above,230px))/2);gap:8px;margin-bottom:10px}
  .md .md-panel{padding:6px 10px 8px;overflow:auto;scrollbar-width:thin}
  .md .md-panel>h2{margin-bottom:4px}
  .md .lb-heading{margin-bottom:6px}
  .md .md-viewing{margin-bottom:6px;padding:4px 10px;font-size:12px}
  .md .md-tiles{margin-bottom:6px;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:6px}
  .md .md-tiles .lb-tile{padding:4px 8px}
  .md .md-tiles .lb-tile strong{font-size:17px}
  .md .md-dials{gap:2px 6px;margin-bottom:4px}
  .md .md-dial{width:124px}
  .md .md-gauge{width:96px}
  .md .md-dial figcaption{margin-top:-16px}
  .md .md-dial strong{font-size:16px}
  .md .md-dial span{font-size:12px}
  .md .md-dial small{font-size:10px;line-height:1.2}
  .md .md-calls li{padding:2px 6px;grid-template-columns:70px minmax(0,1fr) auto;gap:6px;font-size:12px}
  .md .md-note{margin:2px 0 6px;font-size:11px}
  .md .md-period{margin:4px 0}
  .md .md-scroll{max-height:none;overflow:visible}
  .md .md-carriers tbody th,.md .md-carriers tbody td{padding-top:2px;padding-bottom:2px;font-size:12px}
  .md .md-bars{height:56px}
  .md .md-numbers table{font-size:11px}
}
/* Gauges with red, yellow and green bands and a needle; the words under each say the same thing. */
.md .md-gauge .md-band{stroke-width:9;stroke-linecap:butt}
.md .md-gauge .md-band-red{stroke:#c8452f}
.md .md-gauge .md-band-yellow{stroke:#e0a81c}
.md .md-gauge .md-band-green{stroke:#2f8a55}
.md .md-gauge .md-needle{stroke:var(--lb-ink);stroke-width:3;stroke-linecap:round}
.md .md-gauge .md-hub{fill:var(--lb-ink)}
.md .md-gauge-off .md-band{opacity:.35}
.md .md-gauge-bands+figcaption{margin-top:2px}
/* Monthly load goals (for the people who set them). */
.md .md-goals{margin:0 0 12px;padding:6px 12px;border:1px solid var(--lb-border);border-radius:4px;background:#fff}
.md .md-goals summary{cursor:pointer;font-weight:650;font-size:13px}
.md .md-goals .md-goals-title{margin:4px 0;font-size:15px;font-weight:700;color:var(--lb-ink);letter-spacing:0}
#userManagementWorkspace>.md.user-goals{margin-top:16px}
.md.user-goals .md-goals .md-scroll{max-height:none;overflow:visible}
.md.user-goals .md-carriers thead th{position:static}
.md .md-goals .md-goals-refresh{float:right;font-size:12px;font-weight:400;padding:2px 10px}
.md .md-goals .md-note{margin:6px 0}
.md .md-goals .md-scroll{max-height:320px;overflow:auto}
.md .md-goals input{width:90px;height:28px;padding:2px 6px;border:1px solid #afbeb3;border-radius:3px;font:13px 'Segoe UI',Arial,sans-serif;text-align:right}
.md .md-goals td{text-align:right;white-space:nowrap;padding:3px 0 3px 10px;border-top:1px solid var(--lb-grid)}
.md .md-goals tbody th{padding:3px 8px 3px 0;border-top:1px solid var(--lb-grid)}
