.activity-report-panel { padding: clamp(16px, 3vw, 32px); background: #eef1f4; color: #1a3040; }
#warehouse-demo .activity-report-panel > :not(dialog) { max-width: 1240px; box-sizing: border-box; }
#warehouse-demo .activity-heading { margin: 0 0 18px; padding: 0; border: 0; background: transparent; box-shadow: none; }
.activity-heading, .activity-dialog-head, .activity-lines-head, .activity-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.activity-heading h2 { margin: 0 0 6px; color: #18563f; font-size: 25px; }
.activity-heading p { margin: 0; color: #607886; }
.activity-message { color: #587087; margin: 18px 0 10px; }
.activity-report-panel .activity-primary, .activity-card button { border: 0; border-radius: 8px; background: #11876a; color: #fff; padding: 10px 15px; font: inherit; font-weight: 700; cursor: pointer; }
.activity-report-panel .activity-primary:hover, .activity-card button:hover { background: #0d7259; color: #fff; }
#warehouse-demo .activity-report-panel button { border: 1px solid #176b4d; background: #176b4d; color: #fff !important; }
#warehouse-demo .activity-report-panel button:hover:not(:disabled) { background: #0e6144; color: #fff; }
#warehouse-demo .activity-report-panel [data-remove-line], #warehouse-demo .activity-report-panel [data-decision="reject"] { border-color: #a52b24; background: #a52b24; color: #fff !important; }
#warehouse-demo .activity-report-panel [data-remove-line]:hover:not(:disabled), #warehouse-demo .activity-report-panel [data-decision="reject"]:hover:not(:disabled) { background: #8f211c; }
.activity-report-panel button:disabled { opacity: .55; cursor: wait; }
.activity-history { display: grid; gap: 10px; }
.activity-history > p { margin: 0; padding: 16px; border: 1px solid #d4dfe4; border-bottom: 1.5px solid #a9bdc5; border-radius: 7px; background: #fff; color: #667d8a; }
.activity-card { border: 1px solid #d4dfe4; border-bottom: 1.5px solid #a9bdc5; border-radius: 7px; background: #fff; box-shadow: none; padding: 14px 17px; }
.activity-card > div { display: grid; gap: 4px; }
.activity-card small { color: #587087; }
.activity-status { border: 1px solid #d6b84f; border-radius: 999px; background: #fff2c7; color: #705500; padding: 6px 10px; font-size: 12px; font-weight: 800; text-transform: capitalize; }
.activity-form-dialog, .activity-detail-dialog, .activity-sign-dialog { width: min(900px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); overflow: auto; box-sizing: border-box; border: 1px solid #c5d5dc; border-bottom: 3px solid #a9bdc5; border-radius: 8px; background: #fff; color: #1a3040; box-shadow: 0 18px 42px #17304730; padding: 0; }
.activity-detail-dialog { width: min(1120px, calc(100vw - 24px)); }
.activity-form-dialog::backdrop, .activity-detail-dialog::backdrop, .activity-sign-dialog::backdrop { background: #092c2ab3; }
.activity-dialog-head { border-bottom: 1px solid #e2e8eb; margin: 0; padding: 14px 16px; }
.activity-dialog-head h3 { margin: 0; }
.activity-dialog-head small { display: block; margin-top: 4px; color: #5f7483; font-size: 12px; }
.activity-dialog-head button, .activity-lines-head button, .activity-actions button:not(.activity-primary) { border: 1px solid #9fcbb6; border-radius: 8px; background: #ecf6f0; color: #145841; padding: 9px 12px; font: inherit; font-weight: 700; cursor: pointer; }
.activity-form-dialog > form, .activity-detail-body { margin: 0; padding: 16px; }
.activity-sign-dialog > p, .activity-sign-dialog > label, .activity-sign-dialog > canvas, .activity-sign-dialog > .activity-actions { margin-left: 16px; margin-right: 16px; }
.activity-sign-dialog > p:first-of-type { margin-top: 16px; }
.activity-sign-dialog > .activity-error { margin-bottom: 0; }
.activity-sign-dialog > .activity-actions { margin-bottom: 16px; }
.activity-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.activity-fields label, .activity-form-dialog label, .activity-sign-dialog label, .activity-filter label, .activity-decision label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.activity-wide { grid-column: 1 / -1; }
.activity-report-panel input, .activity-report-panel textarea, .activity-report-panel select, .activity-sign-dialog input { width: 100%; box-sizing: border-box; min-width: 0; border: 1px solid #b7cec2; border-radius: 8px; background: #fff; color: #173047; padding: 10px; font: inherit; }
.activity-report-panel textarea { resize: vertical; }
.activity-report-panel input[readonly] { background: #f4f7f5; }
.activity-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.activity-error { min-height: 1.4em; color: #a32b2b; }
.activity-daily-items { display: grid; gap: 9px; }
.activity-daily-item { display: grid; grid-template-columns: minmax(150px, 2fr) minmax(75px, .7fr) minmax(110px, 1fr) minmax(110px, 1fr) 42px; align-items: end; gap: 8px; }
.activity-daily-item output { display: block; min-height: 42px; box-sizing: border-box; padding: 10px; border: 1px solid #b7cec2; border-radius: 8px; background: #f4f7f5; }
.activity-daily-item button { min-height: 42px; }
.activity-daily-total { text-align: right; font-weight: 700; }
.activity-print-stage { position: relative; width: 100%; overflow: hidden; }
.activity-print-sheet { position: absolute; inset: 0 auto auto 0; width: 1000px; box-sizing: border-box; transform-origin: top left; border: 0; background: #fff; box-shadow: none; color: #142b3f; padding: 0 4px 24px; }
.activity-detail-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 16px; padding: 0 0 12px; border-bottom: 1px solid #e2e8eb; color: #557080; font-size: 12px; }
.activity-print-sheet h4 { margin: 0 0 20px; border-bottom: 2px solid #173047; padding-bottom: 10px; font-size: 22px; }
.activity-print-sheet h5 { margin: 26px 0 8px; font-size: 16px; }
.activity-print-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px 52px; margin-bottom: 24px; }
.activity-print-fields span { display: flex; align-items: baseline; gap: 6px; }
.activity-print-fields b { color: #587087; font-weight: 500; }
.activity-long-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-signature-block { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; min-height: 125px; margin-top: 28px; border-top: 1px solid #d9e6e0; padding-top: 15px; }
.activity-signature-block img { display: block; max-width: 300px; max-height: 100px; object-fit: contain; }
.activity-sign-dialog canvas { width: 100%; height: auto; margin: 15px 0; border: 1px solid #a5bdb1; border-radius: 8px; background: #fff; touch-action: none; }
.activity-filter { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; padding: 16px; border: 1px solid #d4dfe4; border-bottom: 1.5px solid #a9bdc5; border-radius: 7px; background: #fff; box-shadow: none; }
.activity-filter label { flex: 1 1 150px; }
.activity-weekly-exports { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.activity-weekly-exports[hidden] { display: none; }
.activity-weekly-exports a { display: inline-block; border-radius: 8px; background: #176b4d; color: #fff; padding: 10px 15px; font-weight: 700; text-decoration: none; }
.activity-weekly-results { display: grid; gap: 16px; }
.activity-weekly-totals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-weekly-totals > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #c9ded5; border-radius: 7px; background: #eef8f3; padding: 12px 14px; color: #18563f; }
.activity-weekly-totals span, .activity-box-title span { color: #587087; font-size: 13px; }
.activity-day { border: 1px solid #d4dfe4; border-bottom: 1.5px solid #a9bdc5; border-radius: 7px; background: #fff; padding: 18px; box-shadow: none; }
.activity-day h3 { margin: 0; }
.activity-day-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 14px; padding: 0 0 12px; border-bottom: 1px solid #e2e8eb; }
.activity-day-head button { flex: none; }
.activity-all-users .activity-day-head span { color: #587087; font-size: 13px; }
.activity-all-users button { white-space: nowrap; }
.activity-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.activity-summary-grid > div { border: 1px solid #e2e8eb; border-radius: 6px; background: #f5f8f9; padding: 12px; }
.activity-summary-grid h4 { margin: 0 0 9px; }
.activity-box-title { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 9px; }
.activity-box-title h4, .activity-box-title h5 { margin: 0; }
.activity-summary-grid ul { margin: 0; padding-left: 20px; }
.activity-summary-grid li { margin-bottom: 7px; overflow-wrap: anywhere; }
.activity-draft-actions { display: inline-flex; gap: 5px; margin-left: 6px; vertical-align: middle; }
.activity-draft-actions button { padding: 3px 8px; border: 1px solid #a8c8b8; border-radius: 5px; background: #fff; color: #18563f; font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.activity-draft-actions button[data-weekly-entry-action="void"] { border-color: #d5afa8; color: #9a3f12; }
#warehouse-demo .activity-report-panel .activity-draft-actions button { padding: 3px 8px; border-color: #176b4d; border-radius: 5px; background: #176b4d; color: #fff !important; font-size: 12px; }
#warehouse-demo .activity-report-panel .activity-draft-actions button[data-weekly-entry-action="void"] { border-color: #a52b24; background: #a52b24; }
.activity-draft-actions button:disabled { opacity: .5; cursor: wait; }
.activity-weekly-void-dialog { width: min(440px, calc(100vw - 32px)); border: 1px solid #cbd9d2; border-radius: 8px; padding: 20px; }
.activity-weekly-void-dialog form { display: grid; gap: 12px; }
.activity-weekly-void-dialog h3,.activity-weekly-void-dialog p { margin: 0; }
.activity-weekly-void-dialog label { display: grid; gap: 6px; font-weight: 700; }
.activity-weekly-void-dialog textarea { min-height: 80px; padding: 8px; font: inherit; }
@media print { .activity-draft-actions { display: none !important; } }
.activity-empty { margin: 0; color: #587087; }
.activity-lines-head { margin: 20px 0 10px; }
.activity-outlet-help { margin: -3px 0 10px; color: #587087; font-size: 13px; }
.activity-plan-lines { display: grid; gap: 9px; overflow-x: auto; margin-bottom: 16px; }
.activity-plan-line { display: grid; grid-template-columns: 140px 140px minmax(160px, .9fr) minmax(180px, 1.2fr) 38px; gap: 8px; min-width: 760px; align-items: start; border: 1px solid #d4dfe4; border-radius: 6px; background: #f5f8f9; padding: 10px; }
.activity-plan-outlets { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.activity-plan-outlet-list { display: grid; gap: 6px; }
.activity-plan-outlet-entry { display: grid; grid-template-columns: minmax(0, 1fr) 32px; gap: 5px; }
.activity-plan-outlet-entry--single { grid-template-columns: minmax(0, 1fr); }
.activity-plan-outlet-entry [data-remove-outlet] { min-height: 40px; border: 1px solid #dbb5b5; border-radius: 8px; background: #fff; color: #9b3a3a; cursor: pointer; }
#warehouse-demo .activity-report-panel [data-remove-outlet] { border-color: #a52b24; background: #a52b24; color: #fff !important; }
.activity-plan-outlets [data-add-outlet] { justify-self: start; border: 1px solid #9fcbb6; border-radius: 8px; background: #ecf6f0; color: #145841; padding: 7px 9px; font: inherit; font-weight: 700; cursor: pointer; }
.activity-plan-line [data-remove-line] { height: 40px; border: 1px solid #dbb5b5; border-radius: 8px; background: #fff; color: #9b3a3a; cursor: pointer; }
.activity-table-wrap { overflow-x: auto; }
.activity-table-wrap table { width: 100%; border-collapse: collapse; }
.activity-table-wrap th, .activity-table-wrap td { border-bottom: 1px solid #d9e6e0; padding: 10px; text-align: left; vertical-align: top; white-space: pre-wrap; }
.activity-table-wrap th { background: #e9f3ed; }
.activity-decision { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin-top: 20px; border-top: 1px solid #d9e6e0; padding-top: 16px; }
.activity-decision label { flex: 1 1 100%; }
.activity-decision button:not(.activity-primary) { border: 1px solid #b7cec2; border-radius: 8px; background: #fff; padding: 9px 12px; cursor: pointer; }
/* Record details use the same readable document structure as Finance. */
.activity-detail-dialog { width: min(760px, calc(100vw - 24px)); }
.activity-detail-body { padding: 0; }
.activity-detail-body > .activity-detail-meta { min-height: 46px; margin: 0; padding: 9px 16px; background: #fff; }
.activity-detail-body > .activity-print-sheet { position: static; width: 100%; padding: 16px; transform: none; }
.activity-detail-body .activity-print-fields { gap: 13px 22px; margin: 0; }
.activity-detail-body .activity-print-fields span { display: grid; gap: 4px; min-width: 0; }
.activity-detail-body .activity-print-fields b { font-size: 12px; color: #5f7483; }
.activity-detail-body .activity-print-fields strong { overflow-wrap: anywhere; }
.activity-detail-body .activity-print-sheet h5 { margin: 18px 0 8px; padding-bottom: 8px; border-bottom: 1px solid #e2e8eb; color: #1a3040; font-size: 15px; }
.activity-detail-body .activity-signature-block { min-height: 0; margin-top: 18px; padding: 15px 0 0; border: 0; border-top: 1px solid #e2e8eb; border-radius: 0; background: #fff; }
.activity-detail-footer { display: flex; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid #e2e8eb; background: #fff; }
.activity-detail-footer .activity-decision { width: 100%; margin: 0; padding: 0; border: 0; }
.activity-detail-body .activity-table-wrap { margin-top: 12px; }
.activity-detail-body .activity-table-wrap th { background: #fff; }
.activity-detail-body .activity-summary-grid > div { background: #fff; }
@media (max-width: 700px) { .activity-report-panel { padding: 14px 12px 96px; } .activity-heading { align-items: flex-start; flex-direction: column; } .activity-card { flex-wrap: wrap; } .activity-fields, .activity-summary-grid, .activity-weekly-totals { grid-template-columns: 1fr; } .activity-weekly-totals > div { align-items: flex-start; flex-direction: column; gap: 3px; } .activity-detail-dialog { padding: 14px; } }
@media (max-width: 700px) { .activity-detail-dialog { padding: 0; } .activity-detail-body .activity-print-fields { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .activity-daily-item { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 10px; border: 1px solid #d4dfe4; border-radius: 8px; } .activity-daily-item label:first-child { grid-column: 1 / -1; } }
