/* WAYAND Module 05 – archive and retention panels, kept separate from global app styling. */
.time-archive-panel,.time-retention-panel{margin-top:22px}
.time-archive-panel .section-heading,.time-retention-panel .section-heading{margin-bottom:12px}
.time-archive-form,.time-retention-form{gap:11px}
.time-archive-form .time-archive-checkbox,.time-retention-form .time-retention-checkbox{display:flex;align-items:flex-start;gap:10px;padding:11px 13px;border:1px solid var(--line);border-radius:9px;background:#fff;color:var(--ink);font-size:13px;line-height:1.45}
.time-archive-form input[type="checkbox"],.time-retention-form input[type="checkbox"]{width:18px!important;min-width:18px;min-height:18px!important;height:18px;flex:0 0 18px;margin:1px 0 0;accent-color:#ff8400}
.time-retention-summary{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:4px 14px;margin:12px 0 16px;padding:14px 16px;border:1px solid var(--line);border-radius:10px;background:var(--surface-alt)}
.time-retention-summary strong{grid-row:span 2;color:var(--ink);font-size:24px;line-height:1.1;font-variant-numeric:tabular-nums}
.time-retention-summary span{color:var(--ink);font-size:13px;font-weight:700}
.time-retention-summary small{color:var(--muted);font-size:11px}
.time-retention-form select{width:100%;min-height:46px;padding:10px 12px;border:1px solid #cbd6dc;border-radius:9px;background:#fff;color:var(--ink);font:inherit}
.time-archive-panel .field-help,.time-retention-panel .small-note{max-width:850px}
@media(max-width:560px){
 .time-retention-summary{grid-template-columns:1fr;gap:3px}
 .time-retention-summary strong{grid-row:auto;font-size:22px}
 .time-archive-form .time-archive-checkbox,.time-retention-form .time-retention-checkbox{font-size:12px;padding:10px}
}

/* WAYAND Module 05 – core timesheet UI. Scoped to avoid changing other app modules. */
.time-tracking-page { max-width: 1180px; }
.time-tracking-page > .section-heading { align-items: flex-start; }
.time-tracking-page .section-heading h1 { margin: 0 0 6px; color: #252522; }
.time-summary-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:18px 0; }
.time-summary-card { min-width:0; padding:18px 19px; border:1px solid #e1e4e6; border-radius:12px; background:#fff; box-shadow:0 3px 12px rgba(20,35,45,.035); }
.time-summary-card span { display:block; color:#707579; font-size:12px; font-weight:700; }
.time-summary-card strong { display:block; margin:5px 0 2px; color:#252522; font-size:25px; line-height:1.1; font-weight:800; font-variant-numeric:tabular-nums; }
.time-summary-card small { display:block; color:#777d80; font-size:11px; }
.time-tracking-page .admin-panel { margin-top:18px; }
.time-filter-form { display:grid; grid-template-columns:minmax(150px,1fr) minmax(180px,1.4fr) auto; align-items:end; gap:13px; }
.time-filter-form > div { min-width:0; }
.time-filter-form label,.time-field label { display:block; margin:0 0 6px; color:#333633; font-size:12px; font-weight:700; }
.time-filter-form input,.time-filter-form select,.time-field input,.time-entry-form select { width:100%; min-height:43px; padding:9px 11px; border:1px solid #d3d9dc; border-radius:8px; background:#fff; color:#252522; font:inherit; }
.time-filter-form input:focus,.time-filter-form select:focus,.time-field input:focus,.time-entry-form select:focus { outline:2px solid rgba(255,132,0,.2); border-color:#ff8400; }
.time-filter-action { display:flex; justify-content:flex-end; }
.time-month-navigation { display:flex; justify-content:space-between; gap:12px; margin-top:14px; padding-top:12px; border-top:1px solid #e8ebed; }
.time-month-navigation a { color:#4c5559; font-size:12px; font-weight:700; text-decoration:none; }
.time-month-navigation a:hover { color:#d96f00; text-decoration:underline; }
.time-export-actions { display:flex; gap:10px; flex-wrap:wrap; margin:0 0 18px; }
.time-export-actions .button-secondary { border-color:#d8dde0; }
.time-export-hint { margin:0 0 16px; }
.time-entry-form-panel .section-heading { align-items:center; }
.time-entry-form { display:block; }
.time-entry-fields { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:13px; }
.time-field { min-width:0; }
.time-field-wide { grid-column:span 2; }
.time-form-footer { display:flex; align-items:center; justify-content:space-between; gap:14px; margin-top:16px; padding-top:14px; border-top:1px solid #e8ebed; }
.time-form-footer .field-help { max-width:620px; margin:0; }
.time-tracking-page .button-primary,.time-tracking-page .time-archive-panel .button-primary,.time-retention-panel .button-primary { border-color:#ff8400; background:#ff8400; color:#252522; }
.time-tracking-page .button-primary:hover,.time-retention-panel .button-primary:hover { border-color:#e97800; background:#e97800; }
.time-entries-panel { overflow:hidden; }
.time-entries-panel .section-heading { margin-bottom:12px; }
.time-entries-table { width:100%; min-width:830px; border-collapse:collapse; font-size:12px; }
.time-entries-table th { padding:11px 10px; border-bottom:1px solid #dfe4e6; background:#f7f8f8; color:#565f63; text-align:left; font-size:10px; font-weight:800; letter-spacing:.035em; text-transform:uppercase; }
.time-entries-table td { padding:11px 10px; border-bottom:1px solid #edf0f1; color:#333a3d; vertical-align:middle; }
.time-entries-table td strong { color:#252522; }
.time-entries-table td small { display:block; margin-top:2px; color:#7a8083; font-size:10px; }
.time-entries-table tfoot th,.time-entries-table tfoot td { padding:12px 10px; border-top:1px solid #d8dde0; background:#fafafa; font-weight:800; }
.time-entry-actions { white-space:nowrap; }
.time-entry-actions .button-small { min-height:32px; padding:6px 9px; font-size:11px; }
.time-empty-state { padding:24px 18px; border:1px dashed #d6dcdf; border-radius:10px; background:#fbfcfc; text-align:center; }
.time-empty-state strong { display:block; color:#333a3d; }
.time-empty-state p { margin:5px 0 0; color:#747d81; font-size:12px; }
.time-tracking-page .notice { margin-top:14px; }
.time-archive-panel,.time-retention-panel { padding:18px; border:1px solid #e0e4e6; border-radius:12px; background:#fff; }
.time-archive-panel .section-heading,.time-retention-panel .section-heading { align-items:flex-start; }
.time-archive-form,.time-retention-form { display:grid; gap:11px; }
.time-archive-form .time-archive-checkbox,.time-retention-form .time-retention-checkbox { accent-color:#ff8400; }
.time-archive-panel .button-primary,.time-retention-panel .button-primary { justify-self:start; }
.time-retention-summary { border-color:#e4e6e7; background:#fafafa; }
.time-retention-form select { accent-color:#ff8400; }

@media (max-width:800px) {
  .time-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:9px; }
  .time-summary-card { padding:13px 12px; }
  .time-summary-card strong { font-size:21px; }
  .time-filter-form { grid-template-columns:1fr 1fr; }
  .time-filter-action { grid-column:1/-1; justify-content:stretch; }
  .time-filter-action .button { width:100%; }
  .time-entry-fields { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
  .time-summary-grid { grid-template-columns:1fr; }
  .time-summary-card { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; gap:2px 10px; }
  .time-summary-card span { grid-column:1; }
  .time-summary-card strong { grid-column:2; grid-row:1/3; margin:0; font-size:22px; text-align:right; }
  .time-summary-card small { grid-column:1; }
  .time-filter-form { grid-template-columns:1fr; }
  .time-filter-action { grid-column:auto; }
  .time-entry-fields { grid-template-columns:1fr 1fr; gap:11px; }
  .time-field-wide { grid-column:1/-1; }
  .time-form-footer { align-items:stretch; flex-direction:column; }
  .time-form-footer .button { width:100%; }
  .time-month-navigation { font-size:11px; }
  .time-archive-panel,.time-retention-panel { padding:13px; }
}

