/* Shared customer/staff project view. Native details work without JavaScript. */
.edps-position-list {gap:32px}
.edps-position-list .edps-position-card {border:0;border-top:4px solid #335f66;border-radius:6px;padding:24px;background:#f3f6f6;box-shadow:none}
.edps-position-card>.edps-project-head {margin-bottom:16px;align-items:flex-start;gap:16px}
.edps-position-card .edps-position-title {font-size:21px;line-height:1.4;font-weight:650;color:#213d44;margin:0}
.edps-position-card>.edpa-offer {border:0;border-bottom:1px solid #d5dfe0;padding:0 0 14px;margin:0 0 14px}
.edpa-offer>summary {cursor:pointer;font-size:14px;font-weight:600;color:#335f66;padding:8px 0}
.edpa-offer .edpa-offer-text {max-width:85ch;padding-top:10px}
.edps-position-card>.edpa-approval {border:0;padding:0;margin:0 0 24px;font-size:14px}
.edps-position-tasks>strong,.edps-position-uploads>strong,.edps-position-documents>strong {display:block;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#3f5960;margin:22px 0 10px}
.edps-position-tasks .edpt-list {margin:0;gap:0;background:#fff;border-radius:5px;overflow:hidden}
.edpt-list .edpt-card.edpt-card-compact {padding:0;border:0;border-bottom:1px solid #dce4e5;box-shadow:none;background:#fff}
.edpt-list .edpt-card.edpt-card-compact:last-child {border-bottom:0}
.edpt-card .edpt-task-summary {padding:20px;align-items:center;gap:20px;transition:background .15s}
.edpt-card .edpt-task-summary:hover {background:#f5f9f9}
.edpt-card .edpt-task-details[open]>.edpt-task-summary {background:#e7f0f0;border-bottom:0;box-shadow:inset 3px 0 #335f66}
.edpt-card .edpt-title {font-size:18px;font-weight:600;line-height:1.45;margin:0 0 8px;color:#203e45}
.edpt-card .edpt-task-heading .edpt-meta {font-size:12px;line-height:1.5;color:#566b72;margin-top:7px}
.edpt-card .edpt-task-summary .edpt-badges {margin:0}
.edpt-card .edpt-task-toggle {font-size:13px;min-height:44px;white-space:nowrap}
.edpt-card .edpt-task-toggle:after {content:"+";font-size:24px;font-weight:400;margin-left:12px}
.edpt-card .edpt-task-details[open]>.edpt-task-summary .edpt-task-toggle:after {content:"−"}
.edpt-card .edpt-task-body {padding:24px}
.edpt-card .edpt-description {font-size:15px;line-height:1.75;max-width:88ch;margin-bottom:24px}
.edpt-task-body .edpt-thread {border:0;border-top:1px solid #dde5e6;padding:12px 0;margin:16px 0}
.edpt-thread>summary {cursor:pointer;font-size:14px;font-weight:600;padding:8px 0;color:#335f66}
.edpt-count {display:inline-block;border-radius:20px;background:#e8eeee;padding:2px 8px;font-size:12px;margin-left:6px}
.edpt-task-body .edpt-thread-empty {border:0;background:none;padding:0;margin:12px 0;color:#607078;font-size:13px}
.edpt-task-body .edpt-comment {border:0;border-left:3px solid #aac4c7;padding:12px 16px;background:#f5f8f8;margin-top:12px}
.edpt-task-body .edpt-actions {border-top:1px solid #dce4e5;padding-top:18px;margin-top:20px;gap:10px;align-items:flex-start}
.edpt-task-body .edpt-actions>form,.edpt-task-body .edpt-actions>.edpt-task-upload,.edpt-task-body .edpt-actions>.edpt-task-reply {flex:0 1 auto;width:auto;max-width:100%;margin:0}
.edpt-task-body .edpt-actions .edpt-btn {width:auto;min-height:44px;height:auto;padding:11px 16px;font-size:14px;letter-spacing:0;text-transform:none;border-radius:4px}
.edpt-task-body .edpt-actions .edpt-btn-primary {background:#335f66!important;color:#fff!important;border:1px solid #335f66}
.edpt-task-body .edpt-actions .edpt-btn-secondary {background:#fff!important;color:#335f66!important;border:1px solid #b6c9cc}
.edpt-task-reply>summary,.edpt-task-upload>summary {cursor:pointer;list-style:none}
.edpt-task-reply>summary::-webkit-details-marker {display:none}
.edpt-task-reply[open]>summary:after,.edpt-task-upload[open]>summary:after {content:" −";margin-left:12px}
.edpt-task-body .edpt-actions>.edpt-task-reply[open],.edpt-task-body .edpt-actions>.edpt-task-upload[open] {flex:1 1 100%;width:100%}
.edpt-task-body .edpt-task-upload[open]>summary {width:auto}
.edpt-reply-body,.edpt-upload-body {padding:18px 0 8px;max-width:780px}
.edpt-reply-body textarea {box-sizing:border-box;border:1px solid #afc4c8;border-radius:4px;background:#fff;padding:12px;font:inherit;resize:vertical}
.edpt-task-body .edpt-review-help {font-size:13px;color:#526970;max-width:85ch}
.edpt-task-files>strong {display:block;font-size:13px;letter-spacing:.06em;text-transform:uppercase;color:#405a70;margin-top:22px}
.edpt-task-files .edpu-btn,.edps-position-uploads .edpu-btn {border-radius:4px;min-height:44px}
.edpt-task-reply>summary:focus-visible,.edpa-offer>summary:focus-visible,.edpt-thread>summary:focus-visible {outline:3px solid #335f66;outline-offset:3px}
@media(max-width:640px){
 .edps-position-list .edps-position-card{padding:16px 12px}
 .edps-position-card .edps-position-title{font-size:18px}
 .edpt-card .edpt-task-summary{padding:16px;align-items:flex-start;gap:8px;flex-direction:column}
 .edpt-card .edpt-task-body{padding:18px 14px}
 .edpt-card .edpt-task-toggle{min-height:32px}
 .edpt-task-body .edpt-actions>form,.edpt-task-body .edpt-actions>.edpt-task-upload,.edpt-task-body .edpt-actions>.edpt-task-reply{flex:1 1 100%;width:100%}
 .edpt-task-body .edpt-actions .edpt-btn,.edpt-task-body .edpt-task-upload[open]>summary{width:100%}
 .edps-position-uploads .edpu-card,.edpt-task-files .edpu-card{grid-template-columns:minmax(0,1fr);padding:14px}
 .edps-position-uploads .edpu-card .edpu-actions,.edpt-task-files .edpu-card .edpu-actions{grid-column:1;grid-row:auto;margin-top:12px}
}

/* Compact file lists: three visible entries, all others accessible without JS. */
.edpu-list.edpu-list-compact {display:flex;flex-direction:column;gap:0;margin:12px 0;border:1px solid #bccddd;border-left:4px solid #426986;border-radius:5px;background:#fff;overflow:hidden}
.edpu-list-compact>.edpu-card.edpu-file-row {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;padding:13px 16px;margin:0;border:0;border-bottom:1px solid #d7e1ea;border-radius:0;background:#fff;box-shadow:none}
.edpu-list-compact>.edpu-file-row:nth-child(even) {background:#edf3f9}
.edpu-list-compact>.edpu-file-row:last-child {border-bottom:0}
.edpu-file-row .edpu-file-main {min-width:0;overflow-wrap:anywhere}
.edpu-file-row .edpu-title {font-size:16px;line-height:1.4;font-weight:600;color:#23485f;margin:0 0 3px}
.edpu-file-row .edpu-short-meta {font-size:12px;line-height:1.5;color:#526779}
.edpu-list-compact .edpu-file-row>.edpu-actions {grid-column:2;grid-row:1;align-self:start;margin:0;display:flex}
.edpu-file-row .edpu-actions .edpu-btn {font-size:13px;padding:10px 14px;min-height:40px;border-radius:4px;background:#335f7c;color:#fff}
.edpu-file-details {margin-top:4px;font-size:13px}
.edpu-file-details>summary {cursor:pointer;color:#335f7c;padding:4px 0;font-size:12px;font-weight:600}
.edpu-file-details[open]>summary {margin-bottom:8px}
.edpu-file-details .edpu-meta,.edpu-file-details .edpu-file,.edpu-file-details .edpu-note {font-size:13px;line-height:1.5;margin:6px 0}
.edpu-detail-actions {display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.edpu-detail-actions:empty {display:none}
.edpu-more>summary {cursor:pointer;padding:14px 16px;background:#dde9f3;color:#23485f;font-size:14px;font-weight:600}
.edpu-more>.edpu-list-compact {margin:0;border:0;border-radius:0}
.edpu-project-upload {margin:0 0 18px}
.edpu-project-upload>summary {display:list-item;cursor:pointer;width:fit-content;padding:11px 18px;border:1px solid #335f66;border-radius:4px;background:#335f66;color:#fff;font-size:14px;font-weight:600}
.edpu-project-upload[open]>summary {margin-bottom:16px}
.edpu-file-details>summary:focus-visible,.edpu-more>summary:focus-visible,.edpu-project-upload>summary:focus-visible {outline:3px solid #335f7c;outline-offset:-3px}
@media(max-width:640px){
 .edpu-list-compact>.edpu-card.edpu-file-row{grid-template-columns:minmax(0,1fr);gap:8px;padding:12px}
 .edpu-list-compact .edpu-file-row>.edpu-actions{grid-column:1;grid-row:auto;margin:0}
}

/* Project sections follow the established position design. */
.edps-section.edps-accordion {border:0;border-top:4px solid #335f66;border-radius:6px;background:#f3f6f6;box-shadow:none;margin-top:24px}
.edps-section.edps-accordion>.edps-section-toggle {padding:20px 24px;font-size:21px;line-height:1.4;font-weight:650;color:#213d44;gap:16px;border-radius:2px;transition:background .15s}
.edps-section.edps-accordion>.edps-section-toggle:hover {background:#e7efef}
.edps-section.edps-accordion>.edps-section-toggle>span {display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;min-width:0;overflow-wrap:anywhere}
.edps-section.edps-accordion .edps-section-count {margin:0;padding:3px 10px;border-radius:20px;background:#e0eaea;color:#3f5960;font-size:12px;line-height:1.5;font-weight:500}
.edps-section.edps-accordion>.edps-section-toggle:after {width:32px;height:32px;border-radius:4px;background:#e0eaea;color:#335f66;font-size:22px;font-weight:400}
.edps-section.edps-accordion[open]>.edps-section-toggle:after {background:#335f66;color:#fff}
.edps-section.edps-accordion>.edps-section-body {padding:4px 24px 24px}
.edps-section.edps-accordion>.edps-section-toggle:focus-visible {outline:3px solid #335f66;outline-offset:3px}
.edps-section-body .edps-history-list,.edps-section-body .edps-comm-list,.edps-section-body .edba-list {display:flex;flex-direction:column;gap:0;background:#fff;border-radius:5px}
.edps-section-body .edps-history-card,.edps-section-body .edps-comm-card,.edps-section-body .edba-card {border:0;border-bottom:1px solid #dce4e5;border-radius:0;background:#fff;padding:18px 20px;margin:0;box-shadow:none}
.edps-section-body .edps-history-card:last-child,.edps-section-body .edps-comm-card:last-child,.edps-section-body .edba-card:last-child {border-bottom:0}
.edps-section-body .edba-title,.edps-section-body .edps-comm-card h4 {font-size:18px;line-height:1.45;font-weight:600;color:#203e45;margin:0 0 8px}
.edps-section-body .edps-empty,.edps-section-body .edba-empty,.edps-section-body .edpu-empty {border:0;border-radius:4px;background:#fff;padding:16px 18px;font-size:14px;color:#526970}
.edps-section-body .edpc-private-card {border:0;border-left:3px solid #aac4c7;border-radius:4px;background:#fff;padding:18px 20px;margin:14px 0 0}
.edps-section-body .edpc-private-card h4 {font-size:18px;line-height:1.45;color:#203e45}
@media(max-width:640px){
 .edps-section.edps-accordion{margin-top:20px}
 .edps-section.edps-accordion>.edps-section-toggle{padding:16px 14px;font-size:18px;gap:12px}
 .edps-section.edps-accordion>.edps-section-body{padding:2px 14px 16px}
 .edps-section-body .edps-history-card,.edps-section-body .edps-comm-card,.edps-section-body .edba-card,.edps-section-body .edpc-private-card{padding:14px}
}

/* Clearly distinguish editable upload fields from the section background. */
.edpu-form .edpu-field input[type="text"],
.edpu-form .edpu-field select,
.edpu-form .edpu-field textarea,
.edpu-form .edpu-field input[type="file"] {
 box-sizing:border-box;max-width:100%;background:#fff!important;color:#213d44!important;
 border:1px solid #718b94!important;border-radius:4px!important;padding:12px!important;
 box-shadow:0 1px 2px rgba(33,61,68,.06);min-height:44px;
}
.edpu-form .edpu-field input::placeholder,.edpu-form .edpu-field textarea::placeholder {color:#65767c!important;opacity:1}
.edpu-form .edpu-field input:focus,.edpu-form .edpu-field select:focus,.edpu-form .edpu-field textarea:focus {
 border-color:#335f66!important;outline:2px solid #335f66!important;outline-offset:2px;box-shadow:none;
}
.edpu-form .edpu-field input:disabled {
 background:#e4eaea!important;color:#586b70!important;border-color:#b8c6ca!important;box-shadow:none;opacity:1;cursor:default;
}
.edpu-form .edpu-field input[type="file"]::file-selector-button {
 background:#e5eeee;color:#213d44;border:1px solid #718b94;border-radius:3px;padding:8px 12px;margin-right:12px;cursor:pointer;
}

/* Clear open/close controls for long document lists. */
.edpu-more>summary{list-style:none;min-height:48px;box-sizing:border-box;display:flex;align-items:center;border-top:1px solid #abc1d1;border-bottom:1px solid #abc1d1}
.edpu-more>summary::-webkit-details-marker{display:none}
.edpu-more>summary .edpu-more-open{display:none}
.edpu-more[open]>summary .edpu-more-closed{display:none}
.edpu-more[open]>summary .edpu-more-open{display:inline}
.edpu-more[open]>summary,.edpu-more>.edpu-collapse-files{background:#335f66!important;color:#fff!important;font-size:15px;font-weight:700;padding:14px 18px;line-height:1.5}
.edpu-more>.edpu-collapse-files{display:block;width:100%;border:0;border-radius:0;min-height:48px;margin:0;text-align:left;cursor:pointer;text-transform:none;letter-spacing:normal;font-family:inherit}
.edpu-more[open]>summary:hover,.edpu-more>.edpu-collapse-files:hover{background:#244b51!important}
.edpu-more>.edpu-collapse-files:focus-visible{outline:3px solid #fff;outline-offset:-5px}
.edpu-more-open>span,.edpu-more-closed>span,.edpu-collapse-files>span{font-size:20px;margin-right:8px}
