@import url('/workflow-colors.css');
.ap-widget{border:1px solid #d2dfd9;border-radius:14px;background:#fbfdfb;padding:18px;margin:14px 0;color:#214947}
.ap-widget-heading{display:flex;gap:10px;justify-content:space-between;align-items:center;flex-wrap:wrap;margin-bottom:12px}.ap-widget-heading>strong{font-size:17px}.ap-widget-heading>span{font-size:13px;color:#627771}
.ap-entry-actions,.ap-half-actions{display:flex;flex-wrap:wrap;gap:8px}.ap-entry-actions .btn,.ap-half-actions .btn{white-space:normal;min-height:44px;text-align:center}
.ap-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:12px 0}.ap-summary>div{display:flex;flex-direction:column;gap:4px;border:1px solid #d5e5dc;border-radius:10px;padding:12px;background:#eff6f1}.ap-summary strong{font-size:16px}.ap-summary span,.ap-summary small{font-size:12px}
.ap-reminder{border-left:4px solid #b47820;border-radius:8px;background:#fff3dd;padding:12px 14px;margin:10px 0;color:#644511}.ap-reminder strong{font-size:15px;line-height:1.6}.ap-reminder p{font-size:13px;line-height:1.6;margin:5px 0 9px}
.ap-error,.ap-dialog-error:not(:empty){border:1px solid #dfb7b2;border-radius:8px;background:#fff1ee;padding:12px;color:#9a3530;font-size:14px;line-height:1.65}.ap-muted{font-size:13px;line-height:1.7;color:#5e746e;margin:10px 0}.ap-empty{padding:20px;background:#f2f4f2;border-radius:10px}
.ap-dialog{border:1px solid #d3e0d8;border-radius:18px;padding:0;color:#214947;width:min(920px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100dvh - 24px);overflow:hidden;background:white;box-shadow:0 16px 60px #173b3b35}.ap-dialog::backdrop{background:#153b3b66}.ap-dialog[open]{display:flex;flex-direction:column}
.ap-dialog-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;border-bottom:1px solid #dfe8e2;flex-shrink:0}.ap-dialog-header h2{font-size:20px;line-height:1.5;margin:0}.ap-close{font-size:26px;line-height:1;width:44px;height:44px;flex-shrink:0;background:transparent;color:#46615c;border:1px solid #d6e1db;border-radius:9px;cursor:pointer}
.ap-dialog-body{overflow:auto;padding:18px 20px;min-height:0;overscroll-behavior:contain}.ap-dialog-footer{padding:12px 20px;border-top:1px solid #dfe8e2;display:flex;gap:10px;justify-content:space-between;align-items:center;flex-shrink:0;background:white}.ap-dialog-footer span{font-size:12px;color:#9b6523}.ap-dialog button:focus-visible,.ap-dialog input:focus-visible,.ap-dialog select:focus-visible{outline:3px solid #427c73;outline-offset:2px}.ap-dialog button:disabled{opacity:.55;cursor:wait}
.ap-dialog-filters,.ap-report-heading{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-bottom:12px}.ap-dialog label{display:flex;flex-direction:column;gap:7px;font-size:13px;font-weight:650;min-width:0;line-height:1.6}.ap-dialog input,.ap-dialog select{min-height:44px;border:1px solid #bacfc4;border-radius:8px;padding:8px 10px;font:inherit;color:inherit;background:white;max-width:100%;min-width:0}.ap-dialog input:disabled{background:#edf0ee;color:#81928a}
.ap-store-list{display:grid;gap:10px;margin:16px 0}.ap-store-row{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:12px;padding:14px;border:1px solid #d9e4dd;border-radius:12px;background:#fff}.ap-store-name{display:flex;flex-direction:column;gap:8px;line-height:1.6;overflow-wrap:anywhere}.ap-store-open{font-size:13px;color:#265f54;text-decoration:underline;text-underline-offset:3px}.ap-half-status{display:flex;flex-direction:column;gap:5px;font-size:12px;align-items:flex-start}.ap-half-status>small{font-size:11px;color:#657c72}.ap-status{display:inline-block;border:1px solid #dbc6a4;border-radius:7px;padding:5px 8px;font-size:12px;font-weight:700;background:#fff5e7;color:#7c561e;line-height:1.5;overflow-wrap:anywhere}.ap-status.is-complete{border-color:#bdd9c8;background:#e8f3eb;color:#246343}.ap-status.is-unknown{border-color:#c8ced3;background:#f0f2f4;color:#52626c}
.ap-report-heading>strong{flex:1;line-height:1.6;overflow-wrap:anywhere}.ap-report-halves{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.ap-report-half,.ap-salary{border:1px solid #d1e0d7;border-radius:12px;padding:16px;background:#fafcfa;display:grid;gap:12px}.ap-report-half h3,.ap-salary h3{font-size:18px;margin:0;line-height:1.5}.ap-current-status{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.ap-current-status>small{font-size:11px;color:#718277}.ap-money-input{display:flex;align-items:center;gap:8px}.ap-money-input input{width:100%;font-size:18px;font-weight:600}.ap-half-guidance{font-size:12px;line-height:1.7;margin:0;color:#6b7d70}.ap-salary{margin-top:16px}.ap-salary>label{max-width:440px}.ap-salary>.btn{justify-self:start;min-height:44px;white-space:normal}.ap-salary>.ap-muted{margin:0}.ap-external-note{font-size:13px;line-height:1.7;background:#fff6e9;border-radius:8px;padding:12px;color:#796136}.ap-dialog-notice:not(:empty){padding:12px;background:#eaf5ed;border-radius:8px;color:#2a674b;font-size:14px;line-height:1.6}.ap-text-button{border:0;background:none;color:#2c695b;text-decoration:underline;text-underline-offset:3px;font-size:13px;justify-self:start;cursor:pointer;padding:8px 0}.ap-half-actions [hidden]{display:none!important}
@media(max-width:600px){.ap-widget{padding:13px}.ap-entry-actions{flex-direction:column}.ap-entry-actions .btn{width:100%}.ap-summary>div{padding:10px}.ap-summary strong{font-size:14px}.ap-dialog-header{padding:12px 14px}.ap-dialog-header h2{font-size:17px}.ap-dialog-body{padding:14px}.ap-dialog-footer{padding:10px 14px}.ap-dialog-filters>label{flex:1;min-width:120px}.ap-dialog-filters .btn{width:100%;white-space:normal}.ap-store-row{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px}.ap-store-name{grid-column:1/-1}.ap-report-halves{grid-template-columns:1fr}.ap-report-half,.ap-salary{padding:13px}.ap-half-actions .btn{width:100%}.ap-report-heading{align-items:stretch;flex-direction:column}.ap-report-heading input{width:100%}.ap-salary>.btn{width:100%;justify-self:stretch}}

/* Confirmation/progress uses cyan; completed and warning statuses keep their colors. */
.ap-widget,.ap-dialog{border-color:var(--wf-check-border);color:#263943;font-size:16px}
.ap-widget{border-top:4px solid var(--wf-check);background:var(--wf-check-soft)}
.ap-dialog-header{border-top:4px solid var(--wf-check);border-bottom-color:var(--wf-check-border);background:var(--wf-check-soft);color:var(--wf-check-ink)}
.ap-close{border-color:var(--wf-check-border);color:var(--wf-check-ink);background:#fff}
.ap-summary>div{background:#fff;border-color:var(--wf-check-border)}
.ap-entry-actions .btn,.ap-dialog .btn{border-color:var(--wf-check);background:var(--wf-check);color:#fff}
.ap-entry-actions .btn.btn-secondary,.ap-dialog .btn.btn-secondary{background:#fff;border-color:var(--wf-check-border);color:var(--wf-check-ink)}
.ap-dialog .btn.btn-danger{background:#fff1ee;border-color:#dfb7b2;color:#9a3530}
.ap-widget :is(.ap-widget-heading>span,.ap-summary span,.ap-summary small,.ap-reminder p,.ap-muted),.ap-dialog :is(.ap-dialog-footer span,.ap-muted,.ap-store-open,.ap-half-status,.ap-half-status>small,.ap-status,.ap-current-status>small,.ap-half-guidance,.ap-external-note,.ap-text-button){font-size:14px}
.ap-dialog label,.ap-entry-actions .btn,.ap-dialog .btn{font-size:16px}
.ap-store-open,.ap-text-button{color:var(--wf-check-ink)}
.ap-report-half,.ap-salary{border-color:var(--wf-check-border);background:var(--wf-check-soft)}
.ap-dialog-footer{border-color:var(--wf-check-border)}

/* Photos open only when requested; the list never downloads every store's image. */
.ap-report-photos{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--wf-check-border);padding-top:14px;margin-top:2px;flex-wrap:wrap}
.ap-report-photos>strong{font-size:16px}.ap-photo-progress{min-height:44px;margin-top:4px;white-space:normal}
.ap-photo-dialog{width:min(980px,calc(100% - 24px))}.ap-photo-dialog .ap-dialog-header{background:var(--wf-check-soft)}
.ap-photo-context{display:flex;flex-direction:column;gap:6px;font-size:16px;line-height:1.55;margin-bottom:18px;overflow-wrap:anywhere}
.ap-photo-context>span{color:#485c64}.ap-photo-toolbar,.ap-photo-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ap-photo-toolbar{margin-bottom:12px}.ap-photo-toolbar>strong{margin-right:auto}.ap-photo-dialog .btn{min-height:44px;white-space:normal;line-height:1.4;display:inline-flex;align-items:center;justify-content:center;text-align:center;text-decoration:none}
.ap-photo-help{margin:10px 0 18px;border:1px solid var(--wf-check-border);border-radius:10px;padding:10px 13px;background:var(--wf-check-soft);font-size:15px;line-height:1.7}.ap-photo-help summary{min-height:28px;cursor:pointer;font-weight:700}.ap-photo-help p{margin:8px 0 2px}
.ap-photo-pending{border:2px solid var(--wf-check);padding:16px;border-radius:14px;margin:14px 0 20px;background:var(--wf-check-soft)}.ap-photo-pending>strong{font-size:18px}.ap-photo-pending>img{display:block;max-width:100%;max-height:300px;margin:12px auto;background:#fff;object-fit:contain}.ap-photo-pending>p{margin:8px 0 12px;overflow-wrap:anywhere;font-size:14px}
.ap-photo-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:16px}.ap-photo-card{border:1px solid var(--wf-check-border);border-radius:12px;padding:12px;min-width:0;background:#fff}.ap-photo-image-link{display:block;background:#edf2f4;border:1px solid #d9e2e6;border-radius:7px;overflow:hidden}.ap-photo-image-link>img{display:block;width:100%;height:240px;object-fit:contain}.ap-photo-caption{display:flex;flex-direction:column;gap:5px;padding:12px 0;line-height:1.5;overflow-wrap:anywhere}.ap-photo-caption>strong{font-size:15px}.ap-photo-caption>span{font-size:14px;color:#4c626b}.ap-photo-card .ap-photo-actions{align-items:stretch}.ap-photo-card .ap-photo-actions>*{flex:1}.ap-photo-empty{padding:36px 16px;text-align:center;border:1px dashed #aebfc5;border-radius:12px;font-weight:700;color:#405960;background:#f8fafb;margin-top:18px}
.ap-photo-error:not(:empty){padding:12px;margin:16px 0;border:1px solid #dfb7b2;border-radius:9px;color:#9a3530;background:#fff1ee;font-size:16px;line-height:1.6}.ap-photo-notice:not(:empty){padding:12px;margin:16px 0 0;border:1px solid #b8d5c5;border-radius:9px;color:#265b3d;background:#edf7f0;font-size:16px;line-height:1.6}.ap-photo-dialog [hidden]{display:none!important}.ap-photo-dialog a:focus-visible,.ap-photo-help summary:focus-visible{outline:3px solid #427c73;outline-offset:3px}
@media(max-width:600px){.ap-photo-list{grid-template-columns:1fr}.ap-photo-image-link>img{height:200px}.ap-photo-toolbar{gap:8px}.ap-photo-toolbar .btn{padding:10px 12px}.ap-report-photos .btn{width:100%}.ap-photo-pending{padding:12px}.ap-photo-pending .ap-photo-actions>*{width:100%}.ap-photo-card .ap-photo-actions>*{font-size:15px;padding:10px 8px}}
