/* V265 — readable timesheet workspace and weekly group report. */
#appView #timesheetPanel[data-timesheet-workspace] { display: block; width: 100%; min-width: 0; }
#appView #timesheetPanel.hidden { display: none !important; }
#appView .timesheet-workspace-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; margin: 0 0 14px; background: #0b3559; border-radius: 12px; color: #fff; }
#appView .timesheet-workspace-heading h2 { margin: 4px 0 0; color: #fff; font-size: 1.5rem; }
#appView .timesheet-workspace-heading .eyebrow { color: #c5e1f4; margin: 0; }
#appView .timesheet-workspace-heading .report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#appView .timesheet-workspace-heading button { min-height: 44px; white-space: normal; }
#appView .timesheet-workspace-period { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 14px 18px; margin: 0 0 14px; }
#appView .timesheet-workspace-period label { display: grid; gap: 6px; color: #214b69; font-weight: 800; }
#appView .timesheet-workspace-period input { min-height: 42px; }
#appView .timesheet-workspace-period p { flex: 1 1 300px; margin: 0; color: #5c7183; font-size: .85rem; }
#appView .timesheet-workspace-period > span { color: #245677; font-weight: 800; }
#appView .timesheet-workspace-tabs { display: flex; flex-wrap: wrap; gap: 5px; padding: 6px; border: 1px solid #d6e3ed; border-radius: 12px; background: #fff; }
#appView .timesheet-workspace-tabs button { flex: 1 1 125px; min-width: 0; min-height: 44px; padding: 10px; border: 0; border-radius: 8px; color: #345770; background: #f2f7fb; font: inherit; font-size: .85rem; font-weight: 800; cursor: pointer; }
#appView .timesheet-workspace-tabs button[aria-selected="true"] { color: #fff; background: #006bc9; }
#appView .timesheet-workspace-tabs button:focus-visible { outline: 3px solid #70bdf6; outline-offset: 2px; }
#appView .timesheet-workspace-navigation { margin-bottom: 16px; }
#appView .timesheet-mobile-section { display: none; }
#appView .timesheet-workspace-pane { display: grid; gap: 16px; align-content: start; grid-template-columns: minmax(0, 1fr); min-width: 0; width: 100%; }
#appView .timesheet-workspace-pane[hidden] { display: none !important; }
#appView .timesheet-workspace-pane > * { min-width: 0; max-width: 100%; }
#appView .timesheet-workspace-pane > .tool-panel { margin: 0; }
#appView .timesheet-workspace-pane:focus { outline: none; }
#appView #timesheetPanel[data-timesheet-workspace] #timesheetFormPanel:not(.hidden) {
  position: static !important; inset: auto !important; transform: none !important;
  width: 100% !important; max-width: 100% !important; max-height: none !important;
  overflow: visible !important; margin: 0 !important; box-shadow: none; z-index: auto;
}
#appView #timesheetPanel[data-timesheet-workspace] #timesheetFormPanel::before { display: none !important; }
#appView .timesheet-workspace-pane .timesheet-header-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#appView .timesheet-workspace-pane .timesheet-header-form label { min-width: 0; }
#appView .timesheet-workspace-pane .timesheet-header-form :is(input,select) { min-width: 0; width: 100%; }
#appView .timesheet-payroll-filters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
#appView .timesheet-payroll-filters label { display: grid; gap: 6px; font-weight: 800; color: #254e6b; min-width: 0; }
#appView .timesheet-payroll-filters select { width: 100%; min-width: 0; min-height: 44px; }
#appView .timesheet-payroll-period { padding: 12px; background: #eff8fc; border-radius: 8px; line-height: 1.6; }
#appView .timesheet-payroll-warning { padding: 12px; border-left: 4px solid #e5a533; background: #fff5df; color: #7d4b14; border-radius: 7px; }
#appView .timesheet-payroll-panel .report-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
#appView .timesheet-payroll-panel .report-actions button { min-height: 46px; white-space: normal; }
#appView .timesheet-payroll-summary { width: 100%; border-collapse: collapse; min-width: 870px; }
#appView .timesheet-payroll-summary :is(th,td) { padding: 10px; border-bottom: 1px solid #dce6ee; text-align: left; vertical-align: top; }
#appView .timesheet-payroll-summary th { background: #edf5fb; color: #204d6c; }
#appView .timesheet-payroll-summary small { display: block; margin-top: 4px; color: #607485; }
#appView .timesheet-payroll-summary .num { text-align: right; white-space: nowrap; }
#appView .timesheet-payroll-summary tfoot th { background: #e9f7ee; }
#appView #timesheetWorkspaceBudget .timesheet-budget-panel { margin: 0; padding: 18px; background: #fff; border-radius: 12px; border: 1px solid #d6e3ed; }
@media (max-width: 900px) {
  #appView .timesheet-workspace-pane .timesheet-header-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  #appView .timesheet-workspace-heading { padding: 16px; }
  #appView .timesheet-workspace-heading .report-actions { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  #appView .timesheet-workspace-heading button { width: 100%; }
  #appView .timesheet-workspace-period { display: grid; grid-template-columns: minmax(0, 1fr); padding: 14px; gap: 8px; }
  #appView .timesheet-workspace-period input { width: 100%; min-width: 0; font-size: 16px; }
  #appView .timesheet-workspace-tabs { display: none; }
  #appView .timesheet-mobile-section { display: grid; gap: 6px; padding: 12px; background: #fff; border: 1px solid #d6e3ed; border-radius: 10px; }
  #appView .timesheet-mobile-section > span { color: #4f6d81; font-size: .8rem; font-weight: 800; }
  #appView .timesheet-mobile-section select { width: 100%; min-width: 0; min-height: 48px; font-size: 16px; }
  #appView .timesheet-workspace-pane .timesheet-header-form, #appView .timesheet-payroll-filters { grid-template-columns: minmax(0, 1fr); }
  #appView #timesheetPanel .timesheet-entry-table,
  #appView #timesheetPanel .timesheet-entry-table tbody { display: block; width: 100% !important; min-width: 0 !important; max-width: 100%; }
  #appView #timesheetPanel .timesheet-entry-table tr { min-width: 0; max-width: 100%; }
  #appView .timesheet-workspace-pane .table-wrap, #appView .timesheet-workspace-pane .timesheet-template-wrap { display: block; width: 100%; max-width: 100%; overflow-x: auto !important; overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  #appView .timesheet-payroll-panel .report-actions { display: grid; grid-template-columns: minmax(0, 1fr); }
  #appView .timesheet-workspace-pane .timesheet-dashboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
