.weekly-reports { min-width: 0; color: #21344b; }
.weekly-tabs { display: flex; align-items: center; gap: 0; min-height: 40px; margin: 3px 0 12px; border-bottom: 1px solid #e7e1db; }
.weekly-tab.button { min-width: 132px; min-height: 39px; padding: 8px 17px; border: 0; border-bottom: 2px solid transparent; border-radius: 0; background: transparent; color: #5c6c7d; font-size: 12px; }
.weekly-tab[aria-selected="true"] { border-bottom-color: #99704e; color: #8b6345; }
.weekly-toolbar.collection-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 14px; margin-bottom: 0; }
.weekly-week-control { display: flex; align-items: center; flex: 0 0 auto; gap: 7px; }
.weekly-week-control > .button { width: 30px; height: 33px; min-height: 33px; padding: 6px; border: 1px solid #e0dbd5; border-radius: 5px; background: #fff; }
.weekly-week-control .icon { width: 15px; height: 15px; }
.weekly-week-control .weekly-prev .icon { transform: rotate(180deg); }
.weekly-week-label { position: relative; display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; min-width: 270px; padding: 6px 10px; border: 1px solid #e1dcd6; border-radius: 5px; background: white; color: #677b96; font-size: 11px; line-height: 20px; cursor: pointer; }
.weekly-week-label strong { color: #2c405b; font-size: 12px; font-weight: 650; }
.weekly-week-label input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.weekly-week-label:focus-within { outline: 2px solid #a4856a80; outline-offset: 2px; }
.weekly-author-name { margin-left: auto; color: #7d8da2; font-size: 12px; }
.weekly-team-filters { display: flex; align-items: center; gap: 8px; }
.weekly-team-filters select, #weekly-history-year, .weekly-version-control select { min-height: 34px; height: 34px; padding: 6px 25px 6px 10px; font-size: 11px; }
.weekly-team-filters select { width: 122px; }
.weekly-submit-summary { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.weekly-submit-summary > span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 6px 11px; border: 1px solid #dbe5ef; border-radius: 5px; background: #f7fafc; color: #6c86a4; font-size: 11px; }
.weekly-submit-summary > span:last-child { border-color: #f0dfc5; background: #fffaf1; color: #b38950; }
.weekly-submit-summary strong { color: #2c4664; font-size: 13px; }
.weekly-submit-summary > span:last-child strong { color: #946b35; }
.weekly-status-slot { display: flex; align-items: center; min-height: 25px; height: 25px; margin-bottom: 2px; color: #8b98a8; font-size: 11px; }
.weekly-loading { display: inline-flex; align-items: center; gap: 8px; }
.weekly-loading .spinner { width: 13px; height: 13px; }
.weekly-error { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin-bottom: 12px; padding: 9px 12px; border: 1px solid #ead9c5; border-radius: 6px; background: #fff7ed; color: #a77742; font-size: 12px; line-height: 20px; }
.weekly-error .button { min-height: 25px; padding: 2px 7px; font-size: 11px; }
.weekly-card { min-width: 0; border: 1px solid #e5dfd8; border-radius: 7px; background: #fff; }
.weekly-card h2 { color: #243c58; font-size: 16px; line-height: 24px; font-weight: 700; }
.weekly-card h3 { color: #2c425d; font-size: 13px; line-height: 21px; font-weight: 650; }
.weekly-own-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); align-items: start; gap: 16px; min-width: 0; }
.weekly-history-column, .weekly-editor-column { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.weekly-history { padding: 16px; }
.weekly-history > h2 { margin-bottom: 12px; }
#weekly-history-year { width: 100%; margin-bottom: 12px; }
.weekly-history-list { display: flex; flex-direction: column; gap: 8px; max-height: 510px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d1bfad transparent; }
.weekly-history-item.button { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 5px 8px; width: 100%; min-width: 0; padding: 12px; border-color: #e5e0da; border-radius: 6px; background: #fff; text-align: left; white-space: normal; }
.weekly-history-item.is-selected { border-color: #c8ad95; background: #faf7f3; box-shadow: inset 2px 0 #a77b58; }
.weekly-history-item > strong { color: #2b405a; font-size: 13px; line-height: 21px; }
.weekly-history-item > span:not(.weekly-badge) { color: #8c99aa; font-size: 11px; font-weight: 400; line-height: 19px; }
.weekly-history-item > small { justify-self: end; color: #8592a2; font-size: 10px; font-weight: 450; }
.weekly-badge { display: inline-flex; align-items: center; justify-content: center; gap: 4px; min-height: 21px; padding: 2px 7px; border-radius: 5px; background: #f5f0e7; color: #a58458; font-size: 10px; line-height: 17px; font-weight: 550; white-space: nowrap; }
.weekly-badge.submitted { background: #eaf2ff; color: #6390be; }
.weekly-badge.acknowledged { background: #e4f5eb; color: #429269; }
.weekly-badge.missing, .weekly-badge.draft { background: #fff3d9; color: #bb8c3d; }
.weekly-writing-help { padding: 15px; }
.weekly-writing-help h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.weekly-writing-help .icon { width: 16px; height: 16px; color: #a18160; }
.weekly-writing-help p { color: #8997aa; font-size: 11px; line-height: 20px; }
.weekly-writing-help p + p { margin-top: 8px; }
.weekly-source { padding: 16px; }
.weekly-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 14px; min-width: 0; }
.weekly-section-heading p { margin-top: 5px; color: #8d9aac; font-size: 11px; line-height: 19px; }
.weekly-section-heading .button { min-height: 32px; padding: 6px 11px; font-size: 11px; }
.weekly-source-list { margin-top: 14px; border: 1px solid #ede8e2; border-radius: 6px; max-height: 236px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #d1bfad transparent; }
.weekly-source-row { display: grid; grid-template-columns: 18px 90px minmax(0, 1fr) 70px minmax(45px, 120px) 37px; align-items: center; gap: 10px; min-height: 42px; padding: 8px 10px; color: #768ba3; font-size: 11px; line-height: 18px; cursor: pointer; }
.weekly-source-row + .weekly-source-row { border-top: 1px solid #eee9e3; }
.weekly-source-row > input { width: 16px; height: 16px; margin: 0; accent-color: #a17a58; }
.weekly-source-row > strong { min-width: 0; overflow: hidden; color: #314760; font-size: 12px; font-weight: 550; text-overflow: ellipsis; white-space: nowrap; }
.weekly-source-row > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.weekly-project-tag { display: inline-block; justify-self: start; max-width: 100%; overflow: hidden; padding: 2px 6px; border-radius: 4px; background: #e6f1fb; color: #5c91bb; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.weekly-project-tag.tone-1 { background: #e6f5ec; color: #55916d; }
.weekly-project-tag.tone-2 { background: #fff0cc; color: #b38c3d; }
.weekly-project-tag.tone-3 { background: #f0eafa; color: #977abb; }
.weekly-task-status { display: inline-flex; justify-content: center; min-height: 22px; padding: 2px 6px; border-radius: 5px; background: #e9f2ff; color: #598dba; font-size: 10px; white-space: nowrap; }
.weekly-task-status.completed { background: #e4f5eb; color: #4d946d; }
.weekly-task-status.external { background: #fff1d0; color: #ac8139; }
.weekly-source-progress { display: block; height: 6px; overflow: hidden; border-radius: 4px; background: #e8e8e8; }
.weekly-source-progress > i { display: block; height: 100%; border-radius: inherit; background: #93acbc; }
.weekly-source-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; color: #939ead; font-size: 10px; line-height: 18px; }
.weekly-source-actions .button { min-height: 28px; padding: 4px 9px; font-size: 11px; }
.weekly-source-empty { margin-top: 12px; padding: 9px 0; color: #98a1ae; font-size: 11px; line-height: 20px; }
.weekly-editor > .weekly-section-heading { padding: 16px 16px 8px; }
.weekly-editor-state { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.weekly-version-control { min-width: 0; max-width: 230px; }
.weekly-version-control select { max-width: 230px; width: 100%; }
#weekly-report-form { display: flex; flex-direction: column; gap: 12px; padding: 6px 16px 16px; }
.weekly-report-field { display: grid; grid-template-columns: 118px minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; }
.weekly-report-field > span { padding-top: 8px; color: #30455f; font-size: 12px; line-height: 20px; font-weight: 600; }
.weekly-report-field > textarea { min-height: 74px; padding: 9px 10px; border-color: #dcdedc; font-size: 12px; line-height: 21px; }
.weekly-editor-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 14px; min-height: 64px; padding: 12px 16px; border-top: 1px solid #eee8e1; }
.weekly-editor-footer > div:first-child { min-width: 0; color: #7f91a7; font-size: 11px; line-height: 19px; }
.weekly-editor-footer p { margin-top: 2px; color: #9aa5b1; font-size: 10px; }
.weekly-editor-footer .actions { gap: 7px; }
.weekly-editor-footer .button { min-width: 91px; min-height: 34px; padding: 7px 11px; font-size: 11px; }
.weekly-read-content { padding: 0 18px; }
.weekly-read-content > section { padding: 16px 0; }
.weekly-read-content > section + section { border-top: 1px solid #eee9e3; }
.weekly-read-content h3 { margin-bottom: 8px; }
.weekly-read-content p { color: #526981; font-size: 12px; line-height: 23px; white-space: pre-wrap; overflow-wrap: anywhere; }
.weekly-team-layout { display: grid; grid-template-columns: minmax(440px, .87fr) minmax(0, 1.13fr); align-items: start; gap: 16px; }
.weekly-team-table-card { padding: 16px; }
.weekly-team-table-card > h2 { margin-bottom: 16px; }
.weekly-team-table-wrap { min-width: 0; overflow-x: auto; scrollbar-width: thin; scrollbar-color: #d1bfad transparent; }
.weekly-team-table { width: 100%; min-width: 430px; border-collapse: collapse; font-size: 11px; line-height: 20px; }
.weekly-team-table th { padding: 9px 7px; border-bottom: 1px solid #e9e4de; background: #f8f7f5; color: #7589a1; font-size: 10px; font-weight: 550; text-align: left; }
.weekly-team-table td { padding: 7px; border-bottom: 1px solid #eee9e3; color: #8696a9; white-space: nowrap; }
.weekly-team-table tr.is-selected td { background: #f6efe7; }
.weekly-team-person { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 3px 0; border: 0; background: transparent; text-align: left; }
.weekly-team-person:disabled { opacity: 1; cursor: default; }
.weekly-team-person .avatar { width: 31px; height: 31px; min-width: 31px; font-size: 13px; }
.weekly-team-person > span:last-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 7px; min-width: 0; }
.weekly-team-person strong { color: #314963; font-size: 11px; font-weight: 650; }
.weekly-team-person small { color: #98a4b2; font-size: 9px; }
.weekly-previous-weeks { padding-top: 17px; }
.weekly-previous-weeks h3 { margin-bottom: 8px; }
.weekly-previous-week.button { display: flex; justify-content: flex-start; gap: 8px; width: 100%; min-width: 0; min-height: 39px; padding: 8px 2px; border: 0; border-bottom: 1px solid #eee8e2; border-radius: 0; background: transparent; text-align: left; white-space: normal; }
.weekly-previous-week > span { flex: 1; min-width: 0; color: #72859f; font-size: 11px; font-weight: 450; line-height: 19px; }
.weekly-previous-week > .icon { width: 14px; height: 14px; color: #8c9cb0; }
.weekly-previous-weeks > p { margin-top: 11px; color: #99a5b4; font-size: 10px; line-height: 19px; }
.weekly-team-reader { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.weekly-report-reader-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; padding: 17px 18px; border-bottom: 1px solid #eee8e1; }
.weekly-report-reader-heading h2 { font-size: 18px; line-height: 26px; }
.weekly-report-reader-heading p { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 5px; color: #8d9caf; font-size: 11px; line-height: 20px; }
.weekly-report-reader-heading .actions { flex: 0 0 auto; flex-wrap: wrap; gap: 7px; }
.weekly-report-reader-heading .button { min-height: 34px; padding: 7px 10px; font-size: 11px; }
.weekly-reader-empty { padding: 50px 24px; color: #93a0b1; text-align: center; }
.weekly-reader-empty > .icon { width: 28px; height: 28px; margin-bottom: 13px; color: #b09a84; }
.weekly-reader-empty p { max-width: 350px; margin: 10px auto 0; font-size: 12px; line-height: 22px; }
.weekly-team-ack { padding: 15px 18px; }
.weekly-team-ack h3 { margin-bottom: 9px; }
#weekly-ack-form textarea { min-height: 64px; font-size: 12px; line-height: 21px; }
#weekly-ack-form > div { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: #9ba6b3; font-size: 10px; line-height: 18px; }
#weekly-ack-form .button { min-height: 29px; padding: 5px 9px; font-size: 11px; }
.weekly-team-ack > p { margin-top: 10px; color: #9da7b5; font-size: 10px; line-height: 18px; }
.weekly-acknowledgement { padding: 15px 18px; }
.weekly-acknowledgement h3 { margin-bottom: 10px; }
.weekly-acknowledgement > div { display: flex; align-items: flex-start; gap: 8px; }
.weekly-acknowledgement > div > p { flex: 1; min-width: 0; padding: 9px; border-radius: 5px; background: #f6f7fa; color: #6a7e98; font-size: 12px; line-height: 21px; white-space: pre-wrap; overflow-wrap: anywhere; }
.weekly-acknowledgement > small { display: block; margin: 8px 0 0 36px; color: #98a5b5; font-size: 10px; }
.weekly-empty { padding: 18px 5px; color: #96a3b3; font-size: 11px; line-height: 20px; }
.weekly-initial-empty { padding: 30px 18px; color: #a0a7af; font-size: 12px; text-align: center; }
.weekly-copy-fallback { margin-top: 16px; padding: 15px; }
.weekly-copy-fallback p { margin: 6px 0 9px; color: #8998ab; font-size: 11px; }
.weekly-copy-fallback textarea { font-size: 12px; line-height: 21px; }
@media (max-width: 1200px) {
  .weekly-team-layout { grid-template-columns: minmax(0, 1fr); }
  .weekly-team-reader { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); align-items: start; }
  .weekly-team-table { min-width: 0; }
}
@media (max-width: 950px) {
  .weekly-own-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 12px; }
  .weekly-report-field { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .weekly-report-field > span { padding-top: 0; }
  .weekly-source-row { grid-template-columns: 17px 75px minmax(0, 1fr) 60px 32px; gap: 7px; }
  .weekly-source-progress { display: none; }
  .weekly-team-reader { display: flex; }
}
@media (max-width: 650px) {
  .weekly-own-layout { grid-template-columns: minmax(0, 1fr); }
  .weekly-history-column { display: grid; grid-template-columns: minmax(0, 1fr); }
  .weekly-writing-help { display: none; }
  .weekly-history { padding: 12px; }
  .weekly-history > h2 { margin-bottom: 8px; font-size: 14px; }
  #weekly-history-year { width: 125px; margin-bottom: 8px; }
  .weekly-history-list { flex-direction: row; gap: 8px; max-height: none; overflow-x: auto; overflow-y: hidden; padding-bottom: 3px; }
  .weekly-history-item.button { flex: 0 0 165px; width: 165px; padding: 10px; }
  .weekly-tabs { margin-bottom: 9px; }
  .weekly-tab.button { min-width: 115px; padding: 7px 12px; font-size: 11px; }
  .weekly-toolbar.collection-toolbar { gap: 8px; }
  .weekly-week-control { width: 100%; gap: 7px; }
  .weekly-week-label { flex: 1; min-width: 0; gap: 5px; padding: 6px; font-size: 10px; }
  .weekly-week-label strong { font-size: 11px; }
  .weekly-author-name { display: none; }
  .weekly-team-filters { flex: 1; gap: 7px; }
  .weekly-team-filters select { width: 120px; }
  .weekly-submit-summary { width: 100%; margin-left: 0; }
  .weekly-source, .weekly-editor > .weekly-section-heading { padding: 13px; }
  .weekly-card h2 { font-size: 14px; line-height: 22px; }
  .weekly-section-heading { gap: 7px; }
  .weekly-section-heading p { font-size: 10px; line-height: 18px; }
  .weekly-section-heading .button { min-height: 29px; padding: 5px 9px; font-size: 10px; }
  .weekly-source-row { grid-template-columns: 17px minmax(0, 1fr) 58px 32px; min-height: 46px; gap: 6px; padding: 7px; }
  .weekly-source-row > .weekly-project-tag { grid-column: 2; justify-self: start; max-width: 110px; font-size: 9px; }
  .weekly-source-row > strong { grid-column: 2; grid-row: auto; font-size: 11px; }
  .weekly-source-row > input { grid-column: 1; grid-row: span 2; }
  .weekly-source-row > .weekly-task-status { grid-column: 3; grid-row: span 2; }
  .weekly-source-row > span:last-child { grid-column: 4; grid-row: span 2; }
  .weekly-source-actions { align-items: flex-start; gap: 8px; font-size: 9px; }
  .weekly-source-actions > span { flex: 1; }
  #weekly-report-form { gap: 10px; padding: 0 13px 13px; }
  .weekly-report-field > textarea { font-size: 11px; line-height: 20px; }
  .weekly-editor-footer { padding: 12px 13px; }
  .weekly-editor-footer > .actions { width: 100%; justify-content: flex-end; }
  .weekly-editor-footer .button { min-height: 32px; padding: 6px 9px; font-size: 10px; }
  .weekly-team-table-card { padding: 12px; }
  .weekly-team-table { min-width: 400px; }
  .weekly-team-table td, .weekly-team-table th { padding-left: 5px; padding-right: 5px; }
  .weekly-report-reader-heading { padding: 13px; gap: 9px; }
  .weekly-report-reader-heading > .actions { width: 100%; justify-content: flex-end; }
  .weekly-read-content { padding: 0 13px; }
  .weekly-read-content p { font-size: 11px; line-height: 22px; }
  .weekly-team-ack { padding: 13px; }
  .weekly-error { font-size: 11px; }
}

.weekly-reports .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.weekly-initial-placeholder { min-height: 110px; }

.weekly-team-reader > .weekly-card { width: 100%; min-width: 0; }

.weekly-badge.personal { background: #f0eee9; color: #8c7965; }
