:root {
    --label-color: #1a1927;
    --default-border: #cfcfcfb4;

    /* status color section */
    --success-color: #00bb4e;
    --warnning-color: #FF9500;
    --danger-color: #cf3939;
    --blocked-color: #cfcfcf;
    --edit-color: #00B5FF;
    --default-color: #FFFFFF;
    --info-color: #02668F;
    --pendding-color: #ffc4005e;
}

.hidden {
    display: none;
}

.main-page .partner-details,
.main-page .new-proposal {
    display: flex;
    justify-content: center;
}

.main-page .partner-details .containe,
.main-page .new-proposal .container {
    margin-top: 1em;
    background-color: var(--bg-surface);
    width: 95%;
    border-radius: var(--default-radius);
}

.main-page .partner-details .partner-data {
    display: flex;
    flex-direction: column;
    margin: 1em 2em;
    padding: 0.5em 1em;
}

.main-page .partner-details .document-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.main-page .partner-details .document-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.main-page .partner-details .partner-action {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.main-page .partner-details .btn-section {
    display: flex;
    gap: 15px;
}

.main-page .partner-details .partner-action button,
.main-page .partner-details .btn-section button {
    height: 28px;
    width: 80px;
    padding: 5px 10px;
    border: none;
    border-radius: var(--default-radius);
    box-shadow: 2px 2px 4px -1px rgba(0, 0, 0, 0.28);
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-page .partner-details .partner-action button:hover,
.main-page .partner-details .btn-section button:hover {
    transform: scale(1.1);
}

.main-page .partner-details .partner-action .btn-save {
    background-color: var(--success-color);
    color: #FFF;
}

.main-page .partner-details .btn-save {
    background-color: var(--success-color);
    color: #FFF;
}

.main-page .partner-details .btn-cancel {
    background-color: var(--danger-color);
    color: #FFF;
}

.main-page .partner-details .btn-section .btn-edit {
    background-color: var(--edit-color);
    color: #FFF;
}

.main-page .partner-details .document-wrapper img,
.main-page .partner-details .btn-download-float img {
    width: 25px;
    height: 25px;
}

.main-page .partner-details .btn-doc {
    padding: 14px 22px;
    background: #fff;
    border: 1px solid #cfd8dc;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.main-page .partner-details .btn-doc:hover {
    border-color: #2196f3;
    background: #e3f2fd;
}

.main-page .partner-details .modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.main-page .partner-details .modal.active {
    display: flex;
    opacity: 1;
}

.main-page .partner-details .modal-content {
    background: #fff;
    width: 90%;
    max-width: 1100px;
    height: 90vh;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.main-page .partner-details .modal-header {
    padding: 15px 25px;
    border-bottom: 1px solid #eceff1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.main-page .partner-details #modal-filename {
    font-size: 16px;
    font-weight: 600;
    color: #263238;
}

.main-page .partner-details .close-x {
    font-size: 30px;
    cursor: pointer;
    border: none;
    background: none;
    color: #90a4ae;
}

.main-page .partner-details .btn-download-float {
    position: absolute;
    right: 30px;
    bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    z-index: 1001;
}

.main-page .partner-details #viewer-container {
    flex: 1;
    width: 100%;
    background: #fdfdfd;
}

.main-page .partner-details iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
}

.main-page .partner-details .sticky-action-bar {
    display: flex;
    align-items: center;
    justify-content: end;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1000;
    margin: 1em;
}

.main-page .partners-list .company-short-name {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    width: 50px;
    height: 50px;
    border-radius: 15px;
    background-color: #97e4ee;
}


.main-page .partners-list .person-short-name {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    width: 50px;
    height: 50px;
    border-radius: 50px;
    background-color: #97a4ee;
}

.main-page .partners-list .content-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.main-page .partners-list .content-group img {
    width: 30px;
}

.main-page .partners-list .pendding {
    background-color: var(--pendding-color);
}

.main-page .partners-list .view-details {
    height: 30px;
    width: 100px;
    border-radius: 10px;
    border: 1px solid var(--edit-color);
    color: var(--edit-color);
    background-color: var(--default-color);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.main-page .partners-list .view-details:hover {
    background-color: var(--edit-color);
    color: var(--default-color);
    transform: scale(1.1);
}


.main-page .new-proposal .proposal-data {
    display: flex;
    flex-direction: column;
    margin: 1em 2em;
    padding: 2em 2.5em;
}

/* GENERIC */
.container {
    margin-bottom: 1em;
    /* display: flex; */
    /* justify-content: center;
    gap: 20px; */
    width: 100%;
}

.row-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.content {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin: 1em;
    padding: 1em;
    width: 95%;
    background-color: var(--default-color);
    border-radius: var(--default-radius);
}

.data-group {
    display: flex;
    flex-direction: row;
    gap: 20px;
    margin-bottom: 1.5em;
}

.item-group {
    display: flex;
    flex-direction: column;
}

.item-group input,
.item-group select {
    height: 25px;
    padding: 5px;
    border-radius: var(--input-radius);
    background-color: var(--bg-input);
    border: 1px solid var(--input-border);
}

.item-group select {
    height: auto;  
    padding: 9px;
}

.section {
    border: 1px solid var(--default-border);
    border-radius: var(--default-radius);
    margin-bottom: 1em;
    margin: 1em;
}

.flex-size-one {
    flex: 1;
}

.flex-size-two {
    flex: 2;
}

.flex-size-three {
    flex: 3;
}

.flex-size-four {
    flex: 4;
}

.flex-size-max {
    flex: 12;
}


label:has(+ input[required])::after {
    content: " *";
    color: red;
    font-weight: bold;
}

.section-title {
    font-weight: 600;
    color: var(--default-black);
    margin: 2em 2em 1em 2em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-title img {
    height: 30px;
    width: 30px;
}

.section-subtitle {
    margin-bottom: 1em;
    font-size: 18px;
    font-weight: 400;
    color: var(--black-ambar);
}

.section-decription {
    font-size: 12px;
    font-weight: 400;
    font-style: italic;
    color: var(--text-main);

}

label {
    color: var(--label-color);
    font-size: 15px;
    margin-bottom: 2px;
}

.disabled {
    pointer-events: none;
    opacity: 0.6;
    user-select: none;
}


.checkbox-group {
    display: flex;
    gap: 6px;
}

.btn-area {
    display: flex;
    justify-content: end;
    margin: 1em;
}

.btn-proposta {
    background-color: #10b981;
    /* Verde Emerald */
    color: white;
    border: none;
    padding: 10px 28px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
    transition: transform 0.1s, box-shadow 0.1s;
}

.btn-proposta:hover {
    background-color: #059669;
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

.btn-proposta:active {
    transform: translateY(1px);
}

/* Botao de upload, ajustar */
.form-row {
    width: 350px;
    margin-bottom: 20px;

}

.label-title {
    display: block;
    margin-bottom: 2px;
}

.upload-block {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 4px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #6b7280;
    position: relative;
}

.upload-block:hover {
    border-color: #6366f1;
    background-color: #eef2ff;
    color: #6366f1;
}

.upload-block.success {
    border-style: solid;
    border-color: #10b981;
    /* Verde */
    background-color: #ecfdf5;
    color: #047857;
}

.upload-icon {
    width: 24px;
    height: 24px;
}

.upload-block input[type="file"] {
    display: none;
}



/* EXCLUSIVO NOVA PROPOSTA */
    .loading-overlay {
        position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(255, 255, 255, 0.6); backdrop-filter: blur(4px);
        display: flex; align-items: center; justify-content: center;
        opacity: 0; visibility: hidden; transition: all 0.3s ease; z-index: 99999;
    }
    .loading-overlay.active { opacity: 1; visibility: visible; }
    
    .loading-card {
        background: white; width: 380px; padding: 40px 30px;
        border-radius: 8px; text-align: center;
        box-shadow: 0 10px 30px rgba(0, 43, 73, 0.15);
        transform: translateY(20px); transition: transform 0.4s ease;
        border-top: 4px solid #F39C12; /* ANPTEC Orange */
    }
    .loading-overlay.active .loading-card { transform: translateY(0); }
    
    .icon-container {
        width: 60px; height: 60px; background: #fdf6ec; border-radius: 50%;
        display: flex; align-items: center; justify-content: center;
        margin: 0 auto 20px auto; color: #F39C12; position: relative;
    }
    .icon-container svg { width: 30px; height: 30px; }
    
    .spinner-ring {
        position: absolute; width: 100%; height: 100%;
        border: 3px solid transparent; border-top-color: #F39C12;
        border-radius: 50%; animation: spin 1s linear infinite;
    }
    
    .loading-title { font-size: 18px; font-weight: 600; color: #002B49; margin-bottom: 8px; }
    .loading-status { font-size: 14px; color: #777; margin-bottom: 25px; min-height: 20px; }
    
    .progress-container { width: 100%; height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; }
    .progress-bar { height: 100%; width: 0%; background: #002B49; transition: width 0.2s linear; }

    /* Success State */
    .loading-card.success { border-top-color: #28a745; }
    .loading-card.success .icon-container { background: #d4edda; color: #28a745; }
    .loading-card.success .spinner-ring { display: none; }
    .loading-card.success .progress-bar { background: #28a745; }

    @keyframes spin { to { transform: rotate(360deg); } }


    .loading-card {
    position: relative; /* Necessário para o X se posicionar em relação ao card */
    /* ... seus outros estilos do card ... */
}

.close-loader {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 10; /* Garante que fique acima do spinner se sobrepor */
}

.close-loader:hover {
    color: #333; /* Cor ao passar o mouse */
}

.btn-loader-action {
    margin-top: 15px;
    display: inline-block;
    padding: 10px 20px;
    background-color: #28a745; /* Verde Sucesso */
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    text-align: center;
}

.btn-loader-action:hover {
    background-color: #218838;
}