/* Leave the other pages' layout intact while bounding the daily workspace. */
.main { min-width: 0; }
.main:has(#daily.active) { padding: 24px; overflow: hidden; }
#daily .assignmentHeader { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 14px; }
#daily .assignmentHeader h1 { margin: 0; color: #172c35; font-size: 22px; line-height: 1.2; font-weight: 650; }
#daily .assignmentTabs { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid #dce6e1; border-radius: 8px; background: #f3f7f5; }
#daily .assignmentTabs button { min-height: 35px; padding: 6px 14px; border: 0; border-radius: 6px; background: transparent; color: #587168; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
#daily .assignmentTabs button[aria-selected="true"] { background: white; color: #165d48; box-shadow: 0 1px 5px #133b301c; }
#daily .assignmentTabs button:focus-visible { outline: 2px solid #2563eb; outline-offset: 2px; }
#daily .assignmentPanel[hidden] { display: none; }
.header .planning-date-control #planning-weekday { margin-left: 3px; color: #286e53; font-size: 9px; font-weight: 700; }
.sidebar { flex-shrink: 0; }
.collapse-navigation { display: block; width: calc(100% - 24px); margin: 0 12px 12px; padding: 8px; border: 1px solid #e2e8f0; border-radius: 6px; color: #64748b; background: white; cursor: pointer; font: inherit; font-size: 11px; text-align: left; }
.collapse-navigation:focus-visible, .nav-item:focus-visible { outline: 2px solid #2563eb; outline-offset: -2px; }
@media (min-width: 769px) {
  .sidebar.collapsed { width: 64px; }
  .sidebar.collapsed .nav-section, .sidebar.collapsed .nav-item span { display: none; }
  .sidebar.collapsed .nav-item { padding: 12px 0; justify-content: center; }
  .sidebar.collapsed .collapse-navigation { text-align: center; }
}
@media (max-width: 768px) {
  .collapse-navigation { display: none; }
  .main:has(#daily.active) { padding: 16px; }
  #daily .assignmentHeader { align-items: flex-start; flex-direction: column; gap: 9px; }
}
/* Button display styles must not override the mailbox controls' hidden state. */
.header [hidden] { display: none !important; }
@media (max-width: 480px) {
  .header-left { gap: 8px; }
  .header-right { gap: 4px; }
  .header .logo { gap: 6px; font-size: 14px; }
  .header .avatar { margin-left: 0; flex-shrink: 0; }
  .header .gmail-actions { gap: 4px; }
  .header .btn-gmail { width: 30px; height: 30px; padding: 0; flex-shrink: 0; }
  .header .btn-gmail span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* Keep the workforce heading clear of the sticky app header on direct links. */
#engineers { scroll-margin-top: 80px; }

#dashboard { scroll-margin-top: 80px; }

#daily { scroll-margin-top: 80px; }

#inbox { scroll-margin-top: 80px; }
schedule-inbox #email-trigger-btn { font-size: 11px; font-weight: 400; border: 1px solid #dce6e1; border-radius: 6px; padding: 7px 11px; color: #4b7162; background: #f4f8f5; }

#reports { scroll-margin-top: 80px; }
