.initial-documents-card{
    margin:18px 0;
    border:1px solid #d8e0e8;
    border-radius:12px;
    background:#fff;
    overflow:hidden;
}

.initial-documents-summary{
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:16px;
    padding:16px 18px;
    cursor:pointer;
    list-style:none;
    background:#f8fafc;
}

.initial-documents-summary::-webkit-details-marker{
    display:none;
}

.initial-documents-summary > span:first-child{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.initial-documents-summary strong{
    font-size:1.08rem;
}

.initial-documents-summary small{
    color:var(--muted);
}

.initial-documents-chevron{
    width:12px;
    height:12px;
    border-right:2px solid #52606d;
    border-bottom:2px solid #52606d;
    transform:rotate(45deg);
    transition:transform .18s ease;
}

.initial-documents-card[open] .initial-documents-chevron{
    transform:rotate(225deg);
}

.initial-documents-body{
    padding:18px;
    border-top:1px solid #e2e8f0;
}

.initial-documents-toolbar{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(210px,280px);
    gap:14px;
    align-items:end;
}

.initial-document-input{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    white-space:nowrap;
}

.initial-document-picker{
    display:flex;
    align-items:center;
    gap:13px;
    min-height:78px;
    padding:14px 16px;
    border:2px dashed #9db2c5;
    border-radius:11px;
    background:#f8fbfe;
    cursor:pointer;
    transition:border-color .16s ease, background .16s ease;
}

.initial-document-picker:hover{
    border-color:#0b5790;
    background:#f0f7fc;
}

.initial-document-picker > span:last-child{
    display:flex;
    flex-direction:column;
    gap:4px;
}

.initial-document-picker small{
    color:var(--muted);
    line-height:1.35;
}

.initial-document-picker-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:40px;
    height:40px;
    flex:0 0 auto;
    border-radius:10px;
    background:#0b5790;
    color:#fff;
    font-size:1.5rem;
}

.initial-default-visibility{
    margin:0;
}

.initial-document-list{
    display:grid;
    gap:9px;
    margin-top:16px;
}

.initial-document-empty{
    padding:20px;
    border:1px dashed #cbd5df;
    border-radius:10px;
    background:#fafbfd;
    color:#64748b;
    text-align:center;
}

.initial-document-row{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(180px,230px) auto;
    align-items:center;
    gap:12px;
    padding:12px;
    border:1px solid #dce3ea;
    border-radius:10px;
    background:#fff;
}

.initial-document-file{
    display:flex;
    align-items:center;
    gap:10px;
    min-width:0;
}

.initial-document-file > span:last-child{
    display:flex;
    flex-direction:column;
    gap:3px;
    min-width:0;
}

.initial-document-file strong{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
}

.initial-document-file small{
    color:var(--muted);
}

.initial-document-file-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    flex:0 0 auto;
    border-radius:8px;
    background:#e8f2fb;
}

.initial-document-row-visibility{
    display:grid;
    gap:4px;
    margin:0;
}

.initial-document-row-visibility > span{
    font-size:.8rem;
    font-weight:750;
    color:#52606d;
}

.initial-document-row-visibility select{
    margin:0;
}

.initial-document-remove{
    min-height:40px;
    padding:8px 12px;
    border:1px solid #efb5b0;
    border-radius:8px;
    background:#fff5f4;
    color:#b42318;
    font-weight:750;
    cursor:pointer;
}

.initial-document-help{
    margin:13px 0 0;
}

@media(max-width:760px){
    .initial-documents-toolbar{
        grid-template-columns:1fr;
    }

    .initial-document-row{
        grid-template-columns:minmax(0,1fr) auto;
    }

    .initial-document-row-visibility{
        grid-column:1 / -1;
        grid-row:2;
    }

    .initial-document-remove{
        grid-column:2;
        grid-row:1;
    }
}

@media(max-width:480px){
    .initial-documents-summary,
    .initial-documents-body{
        padding:14px;
    }

    .initial-document-picker{
        align-items:flex-start;
        min-height:0;
    }

    .initial-document-row{
        grid-template-columns:1fr;
    }

    .initial-document-remove,
    .initial-document-row-visibility{
        grid-column:1;
        grid-row:auto;
        width:100%;
    }
}


/* Version 5.6.1 — Officer participant selector */
.create-ticket-officer-grid{
    align-items:start;
}

.participant-selector-card{
    min-width:0;
}

.participant-selector-heading{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:9px;
}

.participant-selector-heading > div:first-child{
    display:flex;
    flex-direction:column;
    gap:3px;
}

.participant-selector-actions{
    display:flex;
    gap:6px;
    flex:0 0 auto;
}

.participant-selector-actions .button{
    min-height:34px;
    padding:7px 10px;
    font-size:.8rem;
}

.participant-search{
    margin:0 0 8px;
}

.participant-checkbox-list{
    max-height:252px;
    overflow-y:auto;
    border:1px solid #cbd5df;
    border-radius:9px;
    background:#fff;
}

.participant-checkbox-row{
    display:flex;
    align-items:center;
    gap:10px;
    margin:0;
    padding:10px 11px;
    border-bottom:1px solid #edf0f3;
    cursor:pointer;
}

.participant-checkbox-row:last-child{
    border-bottom:0;
}

.participant-checkbox-row:hover{
    background:#f6f9fc;
}

.participant-checkbox-row:has(input:checked){
    background:#eaf4fc;
}

.participant-checkbox-row input{
    width:19px;
    height:19px;
    flex:0 0 auto;
    margin:0;
}

.participant-checkbox-row > span{
    display:flex;
    flex-direction:column;
    gap:2px;
    min-width:0;
}

.participant-checkbox-row strong{
    line-height:1.2;
}

.participant-checkbox-row small{
    color:var(--muted);
}

@media(max-width:760px){
    .participant-selector-heading{
        flex-direction:column;
    }

    .participant-selector-actions{
        width:100%;
    }

    .participant-selector-actions .button{
        flex:1 1 0;
    }

    .participant-checkbox-list{
        max-height:310px;
    }
}


/* Version 5.6.3 — mobile participant checkbox repair */
@media(max-width:760px){
    .participant-checkbox-list{
        display:block !important;
        width:100% !important;
        max-height:320px !important;
        overflow-y:auto !important;
        overflow-x:hidden !important;
        -webkit-overflow-scrolling:touch;
    }

    .participant-checkbox-row{
        display:grid !important;
        grid-template-columns:24px minmax(0,1fr) !important;
        align-items:center !important;
        gap:10px !important;
        width:100% !important;
        min-height:58px !important;
        margin:0 !important;
        padding:10px 12px !important;
        box-sizing:border-box !important;
    }

    .participant-checkbox-row input[type="checkbox"]{
        display:block !important;
        width:20px !important;
        min-width:20px !important;
        max-width:20px !important;
        height:20px !important;
        min-height:20px !important;
        margin:0 !important;
        padding:0 !important;
        flex:none !important;
        appearance:auto !important;
    }

    .participant-checkbox-row > span{
        display:flex !important;
        flex-direction:column !important;
        align-items:flex-start !important;
        justify-content:center !important;
        gap:3px !important;
        width:100% !important;
        min-width:0 !important;
        max-width:100% !important;
        margin:0 !important;
        padding:0 !important;
        color:#1f2937 !important;
        opacity:1 !important;
        visibility:visible !important;
    }

    .participant-checkbox-row strong,
    .participant-checkbox-row small{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        white-space:normal !important;
        overflow:visible !important;
        text-overflow:clip !important;
        overflow-wrap:anywhere !important;
        opacity:1 !important;
        visibility:visible !important;
    }

    .participant-checkbox-row strong{
        color:#1f2937 !important;
        font-size:.96rem !important;
        line-height:1.25 !important;
    }

    .participant-checkbox-row small{
        color:#667085 !important;
        font-size:.82rem !important;
        line-height:1.25 !important;
    }

    .participant-checkbox-row[hidden]{
        display:none !important;
    }
}


/* Version 5.6.5 — Create Ticket button spacing */
#create-ticket-form .create-ticket-submit-row{
    display:flex;
    justify-content:flex-start;
    width:100%;
    margin-top:22px;
    padding-top:4px;
}

#create-ticket-form .create-ticket-submit-row button{
    margin:0;
}

@media(max-width:700px){
    #create-ticket-form .create-ticket-submit-row{
        margin-top:20px;
    }

    #create-ticket-form .create-ticket-submit-row button{
        width:100%;
    }
}
