:root {
        --azul: #192C53;
        --cinza: #f3f3f3;
        --borda: #d8d8d8;
        --texto: #1f1f1f;
    }

    .rnct-page {
        padding: 15px 0 30px 0;
    }

    .rnct-header-box {
        background: var(--azul);
        border-radius: 12px 12px 0 0;
        padding: 18px 24px;
        display: flex;
        align-items: center;
        gap: 18px;
        color: #fff;
        min-height: 84px;
    }

    .rnct-header-title-wrap {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }

    .rnct-header-title {
        font-size: 26px;
        font-weight: 800;
        color: #fff;
        margin: 0;
        line-height: 1.1;
    }

    .rnct-header-sub {
        font-size: 13px;
        opacity: .9;
    }

    .voltar-btn {
        background: #eeeeee;
        color: #000000;
        padding: 10px 22px;
        border-radius: 14px;
        font-weight: bold;
        border: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
        text-decoration: none !important;
        display: inline-flex;
        align-items: center;
        gap: 8px;
        white-space: nowrap;
    }

    .ibox {
        position: relative;
        margin-bottom: 22px;
        background-color: #fff;
        border-radius: 12px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .ibox-head {
        background-color: var(--azul);
        color: white;
        padding: 14px 20px;
        font-size: 17px;
        font-weight: 600;
    }

    .ibox-title {
        font-size: 16px;
        font-weight: 600;
        margin: 0;
    }

    .ibox-body {
        padding: 20px;
    }

    .form-control,
    .form-select {
        border-radius: 10px;
        border: 1px solid var(--borda);
        min-height: 42px;
        box-shadow: none !important;
    }

    .form-control:focus,
    .form-select:focus {
        border-color: var(--azul);
    }

    .form-control[readonly],
    .form-control:disabled,
    .form-select:disabled {
        background: #eef1f5;
    }

    label {
        font-weight: 600;
        color: var(--texto);
        margin-bottom: 6px;
    }

    .btn-rnct-primary {
        background: var(--azul);
        color: #fff;
        border: none;
        padding: 10px 22px;
        border-radius: 12px;
        font-weight: bold;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    }

    .btn-rnct-light {
        background: #eeeeee;
        color: #000;
        border: none;
        padding: 10px 18px;
        border-radius: 12px;
        font-weight: bold;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    }

    .btn-rnct-clear-small {
        background: #eeeeee;
        color: #000;
        border: none;
        padding: 6px 12px;
        border-radius: 10px;
        font-weight: 700;
        font-size: 12px;
        line-height: 1.2;
        box-shadow: 0 6px 16px rgba(0, 0, 0, .10);
    }

    .nota-fiscal-actions {
        display: flex;
        justify-content: flex-end;
        margin-top: 12px;
    }

    .acoes-rodape {
        display: flex;
        justify-content: flex-end;
        gap: 12px;
        flex-wrap: wrap;
        margin-top: 25px;
    }

    .preview-container {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 16px;
    }

    .preview-item,
    .existing-file-card {
        position: relative;
        display: inline-block;
        text-align: center;
    }

    .preview-item img,
    .existing-file-card img {
        width: 120px;
        height: 120px;
        object-fit: cover;
        border-radius: 10px;
        border: 1px solid #ddd;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
        display: block;
    }

    .existing-file-card {
        margin-top: 12px;
    }

    .preview-remove-btn {
        position: absolute;
        top: 6px;
        right: 6px;
        width: 24px;
        height: 24px;
        border: none;
        border-radius: 50%;
        background: #dc3545;
        color: #fff;
        font-size: 14px;
        font-weight: bold;
        line-height: 24px;
        text-align: center;
        cursor: pointer;
        box-shadow: 0 2px 8px rgba(0, 0, 0, .25);
        padding: 0;
    }

    .preview-remove-btn:hover {
        background: #b02a37;
    }

    .alert-rnct {
        border-radius: 10px;
    }

    .loading-overlay {
        position: fixed;
        inset: 0;
        background: rgba(25, 44, 83, 0.45);
        z-index: 9999;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .loading-box {
        background: #fff;
        border-radius: 16px;
        padding: 26px 28px;
        min-width: 280px;
        text-align: center;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    }

    .loading-spinner {
        width: 46px;
        height: 46px;
        border: 4px solid #d9e2f1;
        border-top: 4px solid var(--azul);
        border-radius: 50%;
        animation: girar 0.9s linear infinite;
        margin: 0 auto 14px auto;
    }

    .loading-title {
        font-size: 18px;
        font-weight: 700;
        color: var(--azul);
        margin-bottom: 6px;
    }

    .loading-sub {
        font-size: 13px;
        color: #555;
    }

    .rnct-modal-overlay {
        position: fixed;
        inset: 0;
        background: rgba(25, 44, 83, 0.45);
        z-index: 10000;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }

    .rnct-modal-box {
        background: #fff;
        border-radius: 16px;
        width: 100%;
        max-width: 460px;
        overflow: hidden;
        box-shadow: 0 15px 40px rgba(0, 0, 0, 0.25);
    }

    .rnct-modal-head {
        background: var(--azul);
        color: #fff;
        padding: 16px 20px;
        font-size: 18px;
        font-weight: 700;
    }

    .rnct-modal-body {
        padding: 22px 20px 16px 20px;
        color: #333;
        font-size: 14px;
        line-height: 1.5;
    }

    .rnct-modal-actions {
        display: flex;
        justify-content: flex-end;
        gap: 10px;
        padding: 0 20px 20px 20px;
        flex-wrap: wrap;
    }

    .btn-rnct-danger {
        background: #dc3545;
        color: #fff;
        border: none;
        padding: 10px 18px;
        border-radius: 12px;
        font-weight: bold;
        box-shadow: 0 8px 20px rgba(0, 0, 0, .12);
    }

    @keyframes girar {
        0% {
            transform: rotate(0deg);
        }

        100% {
            transform: rotate(360deg);
        }
    }

    @media (max-width: 768px) {
        .rnct-header-box {
            flex-direction: column;
            align-items: flex-start;
        }

        .acoes-rodape button {
            width: 100%;
        }

        .rnct-modal-actions button {
            width: 100%;
        }
    }