.dr-day, .dr-profile { border-top: 1px solid var(--line, #dce5e1); border-bottom: 1px solid var(--line, #dce5e1); padding: 16px 0; margin: 16px 0; }
.dr-day, .dr-head, .dr-actions, .dr-tabs, .dr-pages { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.dr-day > div:first-child, .dr-head > div:first-child { flex: 1; min-width: 160px; }
.dr-day h3, .dr-profile h3, .dr-dialog h2, .dr-dialog h3, #daily-reports-panel h2 { margin: 0 0 6px; font-size: 18px; letter-spacing: 0; }
.dr-day p, .dr-head p { margin: 0; color: var(--muted, #5c6863); }
.dr-tabs { border-bottom: 1px solid var(--line, #dce5e1); margin-bottom: 18px; }
.dr-tabs button { border: 0; border-bottom: 3px solid transparent; padding: 12px 16px; background: transparent; border-radius: 0; color: inherit; font-weight: 700; }
.dr-tabs button[aria-selected="true"] { border-bottom-color: #176b53; color: #176b53; }
.dr-filter, .dr-settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.dr-filter label, .dr-dialog label:not(.dr-check), .dr-settings-grid label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.dr-check { display: flex; align-items: center; gap: 9px; margin: 10px 0; font-size: 14px; }
.dr-check input { width: 17px; height: 17px; flex: 0 0 17px; }
.dr-dialog { padding: 0; width: min(760px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); border: 1px solid #cedbd5; border-radius: 8px; overflow: auto; color: var(--text, #20352b); background: var(--surface, #fff); }
.dr-dialog::backdrop { background: #17271d66; }
.dr-dialog > .dr-content { padding: 22px; }
.dr-dialog .dr-head { align-items: flex-start; border-bottom: 1px solid #dce5e1; padding-bottom: 14px; margin-bottom: 16px; }
.dr-dialog .dr-close, .dr-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 8px; border: 1px solid #dce5e1; border-radius: 4px; background: transparent; }
.dr-dialog .dr-close img, .dr-icon img { width: 18px; height: 18px; }
.dr-dialog input:not([type="checkbox"]), .dr-dialog textarea, .dr-dialog select, .dr-profile input:not([type="checkbox"]), .dr-profile select, .dr-filter input, .dr-filter select { min-width: 0; width: 100%; padding: 9px 10px; border: 1px solid #cbd9d2; border-radius: 4px; background: var(--surface, #fff); color: inherit; font: inherit; }
.dr-dialog textarea { resize: vertical; min-height: 84px; font-weight: 400; }
.dr-dialog fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.dr-fields { display: grid; gap: 16px; }
.dr-dialog .dr-actions { justify-content: flex-end; margin-top: 16px; }
.dr-status { font-size: 13px; color: #58675f; margin: 12px 0; overflow-wrap: anywhere; }
.dr-status:empty { display: none; }
.dr-error { color: #a32232; }
.dr-badge { display: inline-block; padding: 3px 7px; border-radius: 4px; font-size: 12px; font-weight: 700; background: #edf1ef; color: #4f6359; white-space: nowrap; }
.dr-badge.submitted { background: #e1f2e9; color: #14633f; }
.dr-badge.missing { background: #fce8e9; color: #9e293a; }
.dr-badge.awaiting { background: #fff1d1; color: #775616; }
.dr-table-wrap { overflow: auto; max-width: 100%; }
.dr-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dr-table th, .dr-table td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #e1e8e4; vertical-align: middle; }
.dr-table th { font-size: 12px; font-weight: 700; color: #53665d; }
.dr-table td:first-child { min-width: 95px; }
.dr-table td:nth-child(2) { overflow-wrap: anywhere; min-width: 130px; }
.dr-table button { white-space: nowrap; }
.dr-counts { display: flex; flex-wrap: wrap; gap: 16px; padding: 12px 0; border-bottom: 1px solid #e1e8e4; font-size: 14px; }
.dr-pages { justify-content: flex-end; padding: 12px 0; }
.dr-empty { padding: 28px 8px; color: #63736b; text-align: center; }
.dr-history { margin-top: 20px; border-top: 1px solid #dce5e1; padding-top: 18px; }
.dr-version, .dr-comment { border-bottom: 1px solid #e1e8e4; padding: 12px 0; }
.dr-version summary { cursor: pointer; font-weight: 600; }
.dr-report-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.6; }
.dr-history h4 { font-size: 13px; margin: 14px 0 4px; }
.dr-tasks { max-height: 190px; overflow: auto; padding: 4px 2px; }
.dr-tasks label { align-items: flex-start; font-weight: 400; overflow-wrap: anywhere; }
.dr-task-search { margin-top: 10px; }
.dr-absence-list { padding: 0; list-style: none; }
.dr-absence-list li { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid #e1e8e4; }
.dr-absence-list li span { flex: 1; }
.dr-profile details, .dr-role-settings { margin-top: 16px; }
.dr-profile summary { cursor: pointer; font-weight: 600; }
.dr-profile button, .dr-dialog button, #daily-reports-panel button { max-width: 100%; overflow-wrap: anywhere; }
.dr-role-settings label { justify-content: space-between; }
.dr-role-settings label span { flex: 1; }
#analytics-task-panel { display: grid; gap: 20px; }
#analytics-task-panel[hidden], #daily-reports-panel[hidden], .dr-dialog [hidden] { display: none !important; }
@media (max-width: 600px) {
  .dr-dialog > .dr-content { padding: 16px; }
  .dr-filter, .dr-settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dr-filter label:first-child { grid-column: 1 / -1; }
  .dr-day { gap: 10px; }
  .dr-day > div:first-child { flex-basis: 100%; }
  .dr-dialog .dr-actions { justify-content: stretch; }
  .dr-dialog .dr-actions button { flex: 1; }
  .dr-table th, .dr-table td { padding: 10px 6px; }
}
