
/* ======================================================
   Fontes
====================================================== */
@font-face {
    font-family: 'SFRounded-Thin';
    src: url('../../fonts/SFRounded-Thin.ttf');
}

@font-face {
    font-family: 'SFProText-Regular';
    src: url('../../fonts/SFProText-Regular.ttf');
}

@font-face {
    font-family: 'SFProText-Semibold';
    src: url('../../fonts/SFProText-Semibold.ttf');
}

@font-face {
    font-family: 'SFRounded-Medium';
    src: url('../../fonts/SFRounded-Medium.ttf');
}

@font-face {
    font-family: 'SFRounded-Regular';
    src: url('../../fonts/SFRounded-Regular.ttf');
}

/* ======================================================
   Base
====================================================== */
html, body, .container-fluid {
    background-color: #e1e6e1 !important;
    -webkit-font-smoothing: antialiased !important;
}

a {
    text-decoration: none !important;
    color: rgba(40,49,49,0.75) !important;
    font-family: SFProText-Regular, sans-serif !important;
}

.text-regular {
    font-family: SFRounded-Regular, sans-serif !important;
    color: rgba(40, 49, 49, 0.75);
    margin: 0;
}

/* ======================================================
   Layout / Container
====================================================== */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: SFProText-Regular, sans-serif;
    padding: 20px 40px 10px 40px !important;
    margin: 0 auto;
    width: 100%;
    max-width: 1180px;
}

.container .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.container > .row,
.container.spacetop20 > .row.marginTopBot {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
    width: 100%;
    max-width: 880px;
}

/* ======================================================
   Cabeçalho
====================================================== */
header {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
}

.h1-header {
    font-size: 1.35rem;
    min-width: 200px;
    font-family: SFProText-Semibold, sans-serif !important;
    color: rgb(86, 96, 103) !important;
    text-align: center;
}

.container-div-titulo {
    width: 100%;
    max-width: 880px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.container-div-titulo .text-xs-center {
    text-align: center !important;
}

/* ======================================================
   Filtros / campos do formulário
====================================================== */
.filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    max-width: 880px;
    margin: 22px auto 0;
    padding: 0;
}

.filter-item {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
    width: 100% !important;
    height: auto !important;
}

.filter-item p {
    font-size: 13px;
    font-family: SFProText-Regular, sans-serif !important;
    color: rgba(40,49,49,0.75);
}

.required-label::after {
    content: " *";
    color: #dc3545;
}

.filter-item .text-danger {
    display: block;
    font-size: 0.78rem;
    line-height: 1.2;
    font-family: SFProText-Regular, sans-serif !important;
}

#ContentPlaceHolder1_divButtons {
    display: flex;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 16px 0;
    width: 100%;
    max-width: 880px;
    margin-left: auto;
    margin-right: auto;
}


#btnValidaDados {
    height: 32px;
    padding: 6.4px 20px;
    font-size: 0.75rem !important;
    font-family: SFProText-Semibold, sans-serif !important;
    border-radius: 40px;
    border: none;
    color: rgb(255, 255, 255);
    background-color: rgb(0, 113, 45);
    cursor: pointer;
}

#ContentPlaceHolder1_ddlDepartamento,
#ContentPlaceHolder1_ddlMotivo {
    padding: 4px 12px;
    height: 32px;
    margin-bottom: 5px;
    width: 100% !important;
    font-size: 0.8rem !important;
    font-family: SFRounded-Medium, sans-serif !important;
    color: rgba(0, 0, 0, 0.65);
    background-color: rgba(255,255,255,0.4);
    border: 0.5px rgba(0, 0, 0, 0.2) solid !important;
    outline: none !important;
    scroll-behavior: smooth !important;
    border-radius: 4px;
}

#ContentPlaceHolder1_divResposta,
.resposta {
    width: 100% !important;
    padding: 0 !important;
}

.field-label {
    display: block;
    font-size: 13px;
    font-family: SFProText-Regular, sans-serif !important;
    color: rgba(40, 49, 49, 0.75);
}

.field-label span {
    color: #dc3545;
}

.mensagem-textarea {
    width: 100% !important;
    height: 130px !important;
    min-height: 100px !important;
    padding: 4px 12px;
    border: 1px solid rgba(40, 49, 49, 0.16);
    border-radius: 6px;
    resize: vertical;
    color: #283131;
    outline: none;
    background-color: #ffffff66;
    font-size: 0.8rem;
}

.mensagem-textarea::placeholder {
    color: #a8b0b3;
    opacity: 1;
}

.mensagem-textarea:focus,
#ContentPlaceHolder1_ddlDepartamento:focus,
#ContentPlaceHolder1_ddlMotivo:focus {
    border-color: rgba(0, 113, 45, 0.65) !important;
    box-shadow: 0 0 0 3px rgba(0, 113, 45, 0.12) !important;
}

#msgtexto {
    display: block;
    font-size: 0.8rem;
}

[id^="ContentPlaceHolder1_divUpdatePanel"] {
    width: 100%;
}

/* ======================================================
   Drop zone de upload
====================================================== */
.file-upload-wrapper {
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
}

.file-drop-zone {
    border: 1px dashed rgba(40, 49, 49, 0.3);
    border-radius: 6px;
    padding: 1.75rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background-color: #ffffff66;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    position: relative;
    text-align: center;
}

.file-drop-zone.drag-active {
    border-color: #87c500;
    background: rgba(135, 197, 0, 0.05);
}

.file-upload-icon {
    width: 35px;
    height: 39px;
    opacity: 0.85;
}

.file-browse-btn {
    background: transparent !important;
    width: 165px;
    border: 1px solid #00712d;
    color: #00712d;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: SFRounded-Medium, sans-serif !important;
    font-weight: 600;
}

.file-browse-btn:hover {
    background: rgba(135, 197, 0, 0.07);
}

.file-upload-hint {
    font-size: 0.78rem;
    font-family: SFProText-Regular, sans-serif !important;
    font-weight: 600;
    color: rgba(40, 49, 49, 0.55);
}

.file-upload-name {
    font-size: 0.78rem;
    font-family: SFProText-Regular, sans-serif !important;
    color: rgba(40, 49, 49, 0.75);
    word-break: break-all;
}

.file-uploader-hidden {
    display: none !important;
}

.add-file-btn-wrapper {
    display: flex;
    justify-content: flex-end;
    margin-top: 8px;
}

/* ======================================================
   Lista de arquivos
====================================================== */
#fileListDisplay {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.file-upload-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px 4px 12px;
    background-color: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(0, 39, 16, 0.15);
    border-radius: 6px;
    max-width: 260px;
}

.file-upload-name {
    font-size: 0.75rem;
    font-family: SFProText-Regular, sans-serif !important;
    color: rgba(40, 49, 49, 0.85);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.file-remove-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: rgb(239, 68, 68);
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.file-remove-btn:hover {
    color: red;
}

/* ======================================================
   Custom Select
====================================================== */
.custom-select-wrapper {
    position: relative;
    display: block;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 0 12px;
    height: 32px;
    width: 100%;
    font-size: 0.8rem;
    font-family: SFRounded-Medium, sans-serif;
    color: rgba(0, 0, 0, 0.65);
    background-color: rgba(255, 255, 255, 0.4);
    border: 0.5px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    box-sizing: border-box;
}

.custom-select-trigger .cs-arrow {
    flex-shrink: 0;
    transition: transform 0.15s ease;
}

.custom-select-wrapper.open .custom-select-trigger .cs-arrow {
    transform: rotate(180deg);
}

.custom-select-options {
    display: none;
    padding: 8px;
    min-width: 100%;
    max-height: 260px;
    position: absolute;
    left: 0;
    z-index: 100;
    top: 100%;
    margin-top: 0.25rem;
    overflow: hidden auto;
    box-sizing: border-box;
    border-radius: 6px;
    cursor: pointer;
    color: rgba(0, 16, 7, 0.75);
    border: 1px solid rgba(0, 39, 16, 0.25);
    background-color: rgb(243, 243, 243);
    scrollbar-color: rgba(0, 39, 16, 0.25) transparent;
    scrollbar-width: thin;
}

.custom-select-wrapper.open .custom-select-options {
    display: block;
}

.custom-select-option {
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.1s;
    padding: 0.5rem;
    font-size: 0.8125rem;
    font-family: SFRounded-Regular, sans-serif;
    background-color: rgb(243, 243, 243);
    color: rgba(0, 16, 7, 0.75);
    border-bottom: 1px solid rgba(0, 39, 16, 0.25);
}

.custom-select-option:last-child {
    border-bottom: none;
}

.custom-select-option:hover {
    background-color: rgba(0, 113, 45, 0.08);
}

.custom-select-option.selected {
    background-color: rgba(0, 113, 45, 0.06);
}

/* ======================================================
   Responsividade
====================================================== */
@media (min-width: 1500px) {
    .h1-header {
        font-size: 1.5vw;
    }
}

@media (max-width: 1000px) {
    .h1-header {
        font-size: 1.4rem;
    }
}


@media (max-width: 992px) {
    html body {
        margin-top: 0px !important;
        margin-right: 0px !important;
        margin-left: 0px !important;
    }

    .container {
        font-family: SFProText-Regular, sans-serif;
        padding: 20px 8px 8px 8px !important;
    }

    .filters {
        grid-template-columns: 1fr;
        padding: 0;
        gap: 8px;
    }

    .select {
        height: 40px;
        font-size: 0.8rem;
    }
}
