/**
 * Styles front office pour le suivi des dossiers.
 */

.pcm-dossier-badge {
display: inline-flex;
align-items: center;
padding: 2px 10px;
border-radius: 999px;
color: #fff;
font-size: 12px;
line-height: 1.4;
}

.pcm-account-stepper__list {
list-style: none;
margin: 0;
padding: 0;
counter-reset: pcm-step;
display: grid;
gap: 12px;
}

.pcm-account-stepper__item {
display: flex;
gap: 16px;
align-items: flex-start;
padding: 12px;
border: 1px solid #e5e7eb;
border-radius: 8px;
}

.pcm-account-stepper__item.is-complete {
background: #ecfdf5;
border-color: #bbf7d0;
}

.pcm-account-stepper__item.is-current {
border-color: #2563eb;
box-shadow: 0 0 0 1px #2563eb;
}

.pcm-account-stepper__marker {
width: 32px;
height: 32px;
border-radius: 999px;
background: #2563eb;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-weight: 600;
}

.pcm-account-stepper__item.is-complete .pcm-account-stepper__marker {
background: #16a34a;
}

.pcm-account-stepper__body time {
display: block;
font-size: 12px;
color: #6b7280;
}

.pcm-account-attachments__list {
list-style: none;
margin: 0 0 12px;
padding: 0;
display: grid;
gap: 8px;
}

.pcm-account-attachments__list li {
display: flex;
justify-content: space-between;
align-items: center;
padding: 8px 12px;
border: 1px solid #e5e7eb;
border-radius: 6px;
}

.pcm-account-attachments__form {
margin-top: 12px;
}

.pcm-account-attachments__upload {
position: relative;
display: grid;
gap: 12px;
margin-bottom: 12px;
}

.pcm-account-attachments__input {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
top: 0;
left: 0;
}

.pcm-account-attachments__dropzone {
display: grid;
gap: 4px;
padding: 24px;
border: 2px dashed #cbd5f5;
border-radius: 8px;
text-align: center;
background-color: #f8fafc;
color: #1f2937;
cursor: pointer;
transition: border-color 0.2s ease, background-color 0.2s ease;
}

.pcm-account-attachments__dropzone:focus {
outline: none;
box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

.pcm-account-attachments__dropzone:hover,
.pcm-account-attachments__dropzone.is-dragover {
border-color: #2563eb;
background-color: #eff6ff;
}

.pcm-account-attachments__dropzone-title {
font-weight: 600;
}

.pcm-account-attachments__dropzone-hint {
color: #6b7280;
font-size: 14px;
}

.pcm-account-attachments__selected {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 6px;
font-size: 14px;
color: #1f2937;
}

.pcm-account-attachments__selected-empty {
color: #6b7280;
font-style: italic;
}

.pcm-account-attachments__actions {
margin-bottom: 12px;
}

.pcm-account-history__list {
list-style: none;
margin: 0;
padding: 0;
display: grid;
gap: 10px;
}

.pcm-account-history__item {
padding: 12px;
border: 1px solid #e5e7eb;
border-radius: 6px;
}

.pcm-account-history__item strong {
display: inline-block;
margin-right: 8px;
}

.pcm-account-history__item time {
font-size: 12px;
color: #6b7280;
display: inline-block;
}

.pcm-account-dossiers table.shop_table td,
.pcm-account-dossiers table.shop_table th {
text-align: left;
}

.pcm-dossier-details {
    display: grid;
    gap: 24px;
}

.pcm-dossier-details__back {
    margin-bottom: 8px;
}

.pcm-dossier-details__header {
    display: grid;
    gap: 8px;
}

.pcm-dossier-details__title {
    margin: 0;
    font-size: 22px;
}

.pcm-dossier-details__status {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pcm-dossier-details__quota {
    margin: 0;
    color: #4b5563;
}

.pcm-dossier-section {
    display: grid;
    gap: 12px;
}

.pcm-dossier-proposals__grid {
    display: grid;
    gap: 16px;
}

@media (min-width: 768px) {
    .pcm-dossier-proposals__grid {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
}

.pcm-dossier-proposal {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    background-color: #fff;
}

.pcm-dossier-proposal__media {
    width: 96px;
    height: 96px;
    border-radius: 8px;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pcm-dossier-proposal__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pcm-dossier-proposal__placeholder {
    font-size: 32px;
    color: #9ca3af;
}

.pcm-dossier-proposal__title {
    margin: 0 0 4px;
    font-size: 16px;
}

.pcm-dossier-proposal__meta {
    margin: 0 0 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: #6b7280;
    font-size: 13px;
}

.pcm-dossier-proposal__status-label {
    margin: 0 0 12px;
    font-weight: 600;
}

.pcm-dossier-proposal__actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pcm-dossier-proposal__form {
    display: grid;
    gap: 6px;
}

.pcm-dossier-proposal__form textarea {
    width: 100%;
    min-height: 80px;
    resize: vertical;
}

.pcm-dossier-proposal__comment {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb;
    color: #374151;
}

.pcm-dossier-proposal.is-accepted {
    border-color: #16a34a;
    background-color: #ecfdf5;
}

.pcm-dossier-proposal.is-rejected {
    border-color: #f87171;
    background-color: #fef2f2;
}

.pcm-dossier-history {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
}

.pcm-dossier-history__item {
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
}

.pcm-dossier-history__item strong {
    margin-right: 8px;
}

.pcm-dossier-history__item time {
    font-size: 12px;
    color: #6b7280;
}

.pcm-order-dossier {
    margin-top: 32px;
    display: grid;
    gap: 16px;
}

.pcm-order-dossier__title {
    margin: 0;
    font-size: 20px;
}
