﻿/* ============================================================
   GA FINANCEIRO - ACOES DE LANCAMENTOS
   ============================================================ */

.ga-fin-actions-header {
    min-width: 175px;
    text-align: right !important;
}


.ga-fin-actions-cell {
    min-width: 175px;
    white-space: nowrap;
    text-align: right;
}


.ga-fin-row-action {
    min-height: 34px;
    padding: 0 10px;
    margin-left: 5px;

    border-radius: 9px;
    border: 1px solid rgba(255,255,255,.10);

    font-family: inherit;
    font-size: 11px;
    font-weight: 750;

    cursor: pointer;

    transition:
        border-color .15s ease,
        background .15s ease,
        transform .15s ease;
}


.ga-fin-row-action:hover {
    transform: translateY(-1px);
}


.ga-fin-row-action.ga-fin-edit {
    background: rgba(67,151,215,.08);
    border-color: rgba(67,151,215,.25);
    color: #8bc3eb;
}


.ga-fin-row-action.ga-fin-delete {
    background: rgba(230,76,76,.07);
    border-color: rgba(230,76,76,.23);
    color: #ef8b8b;
}


/* MODAL */

.ga-fin-action-overlay {

    position: fixed;

    inset: 0;

    z-index: 500000;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background: rgba(3,7,10,.78);

    backdrop-filter: blur(8px);
}


.ga-fin-action-modal {

    width: min(680px, 96vw);

    max-height: 92vh;

    overflow-y: auto;

    padding: 24px;

    border-radius: 18px;

    border: 1px solid rgba(255,255,255,.09);

    background: #11161c;

    color: #f5f7f8;

    box-shadow:
        0 30px 100px
        rgba(0,0,0,.55);
}


.ga-fin-action-header {

    display: flex;

    align-items: flex-start;
    justify-content: space-between;

    gap: 16px;

    margin-bottom: 22px;
}


.ga-fin-action-eyebrow {

    display: block;

    margin-bottom: 5px;

    color: #55cfa5;

    font-size: 10px;
    font-weight: 850;

    letter-spacing: .13em;
}


.ga-fin-action-header h2,
.ga-fin-delete-modal h2 {

    margin: 0;

    font-size: 22px;
    line-height: 1.2;
}


.ga-fin-action-header p {

    margin: 6px 0 0;

    color: #8f9aa4;

    font-size: 12px;
}


.ga-fin-action-close {

    width: 36px;
    height: 36px;

    flex: 0 0 36px;

    border: 1px solid rgba(255,255,255,.08);

    border-radius: 9px;

    background: rgba(255,255,255,.03);

    color: #aeb6bd;

    font-size: 20px;

    cursor: pointer;
}


.ga-fin-action-grid {

    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 14px;
}


.ga-fin-span-2 {
    grid-column: 1 / -1;
}


.ga-fin-field {

    display: flex;

    flex-direction: column;

    gap: 7px;
}


.ga-fin-field > span {

    color: #a7b1b9;

    font-size: 11px;
    font-weight: 750;
}


.ga-fin-field input,
.ga-fin-field select,
.ga-fin-field textarea {

    width: 100%;

    box-sizing: border-box;

    border: 1px solid rgba(255,255,255,.09);

    border-radius: 10px;

    background: #0d1217;

    color: #f4f6f7;

    font-family: inherit;

    font-size: 13px;

    outline: none;
}


.ga-fin-field input,
.ga-fin-field select {

    min-height: 42px;

    padding: 0 12px;
}


.ga-fin-field textarea {

    padding: 12px;

    resize: vertical;
}


.ga-fin-field input:focus,
.ga-fin-field select:focus,
.ga-fin-field textarea:focus {

    border-color: rgba(54,207,158,.55);

    box-shadow:
        0 0 0 3px
        rgba(54,207,158,.07);
}


.ga-fin-action-footer {

    display: flex;

    justify-content: flex-end;

    gap: 9px;

    margin-top: 22px;
}


.ga-fin-btn {

    min-height: 41px;

    padding: 0 15px;

    border-radius: 10px;

    font-family: inherit;

    font-size: 12px;

    font-weight: 800;

    cursor: pointer;
}


.ga-fin-btn:disabled {

    opacity: .55;

    cursor: wait;
}


.ga-fin-btn-secondary {

    border:
        1px solid rgba(255,255,255,.10);

    background:
        rgba(255,255,255,.035);

    color:
        #dce1e4;
}


.ga-fin-btn-save {

    border:
        1px solid rgba(48,207,153,.36);

    background:
        rgba(48,207,153,.10);

    color:
        #63ddb3;
}


.ga-fin-btn-danger {

    border:
        1px solid rgba(231,75,75,.38);

    background:
        rgba(231,75,75,.12);

    color:
        #f18e8e;
}


/* CONFIRMACAO */

.ga-fin-delete-modal {

    width: min(480px, 95vw);

    text-align: center;
}


.ga-fin-delete-icon {

    width: 54px;
    height: 54px;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 0 auto 15px;

    border-radius: 14px;

    background: rgba(225,73,73,.10);

    border: 1px solid rgba(225,73,73,.22);

    font-size: 22px;
}


.ga-fin-delete-text {

    margin:
        9px 0 10px;

    color:
        #909ba4;

    font-size:
        12px;
}


.ga-fin-delete-item {

    padding: 12px 14px;

    border-radius: 10px;

    background: rgba(255,255,255,.035);

    border:
        1px solid rgba(255,255,255,.07);

    color: #f0f3f5;

    font-size: 13px;
    font-weight: 800;
}


.ga-fin-delete-warning {

    margin-top: 15px;

    padding: 12px 14px;

    border-radius: 10px;

    background: rgba(229,166,57,.07);

    border:
        1px solid rgba(229,166,57,.16);

    color: #b8a57b;

    font-size: 11px;

    line-height: 1.5;

    text-align: left;
}


.ga-fin-delete-modal
.ga-fin-action-footer {

    justify-content: center;
}


/* ============================================================
   CLEAN
   ============================================================ */

html[data-ga-theme="clean"]
.ga-fin-row-action.ga-fin-edit {

    background: #f2f7fb;

    border-color: #cbdde9;

    color: #356f99;
}


html[data-ga-theme="clean"]
.ga-fin-row-action.ga-fin-delete {

    background: #fff4f4;

    border-color: #efcaca;

    color: #b84b4b;
}


html[data-ga-theme="clean"]
.ga-fin-action-modal {

    background: #ffffff;

    color: #1e2931;

    border-color: #dce4e8;

    box-shadow:
        0 25px 80px
        rgba(27,43,52,.18);
}


html[data-ga-theme="clean"]
.ga-fin-action-header p,
html[data-ga-theme="clean"]
.ga-fin-delete-text {

    color: #6e7c86;
}


html[data-ga-theme="clean"]
.ga-fin-field > span {

    color: #55636d;
}


html[data-ga-theme="clean"]
.ga-fin-field input,
html[data-ga-theme="clean"]
.ga-fin-field select,
html[data-ga-theme="clean"]
.ga-fin-field textarea {

    background: #f8fafb;

    border-color: #dce4e8;

    color: #26343d;
}


html[data-ga-theme="clean"]
.ga-fin-btn-secondary {

    background: #f5f7f8;

    border-color: #d9e0e4;

    color: #36444e;
}


html[data-ga-theme="clean"]
.ga-fin-delete-item {

    background: #f7f9fa;

    border-color: #dfe5e8;

    color: #28353e;
}


/* ============================================================
   CELULAR
   ============================================================ */

@media (max-width: 700px) {

    .ga-fin-action-grid {

        grid-template-columns: 1fr;
    }


    .ga-fin-span-2 {

        grid-column: auto;
    }


    .ga-fin-action-modal {

        padding: 18px;
    }


    .ga-fin-action-footer {

        flex-direction: column-reverse;
    }


    .ga-fin-btn {

        width: 100%;
    }


    .ga-fin-actions-header,
    .ga-fin-actions-cell {

        min-width: 155px;
    }


    .ga-fin-row-action span {

        display: none;
    }


    .ga-fin-row-action {

        min-width: 38px;

        padding: 0 8px;
    }
}


/* ============================================================
   GA FINANCE - VISUALIZACAO DE LANCAMENTO
   ============================================================ */

.ga-fin-view-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(6px);
}

.ga-fin-view-modal {
    width: min(760px, 100%);
    max-height: 88vh;
    overflow: auto;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 22px;
    background: #111214;
    color: #f5f5f5;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.ga-fin-view-header,
.ga-fin-view-status,
.ga-fin-view-footer,
.ga-fin-view-documents-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.ga-fin-view-header {
    padding: 24px 26px 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.ga-fin-view-header span,
.ga-fin-view-documents-head span,
.ga-fin-view-grid span,
.ga-fin-view-notes > span {
    display: block;
    margin-bottom: 5px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .10em;
    color: #8c929a;
}

.ga-fin-view-header h2,
.ga-fin-view-documents-head h3 {
    margin: 0;
}

.ga-fin-view-header p {
    margin: 4px 0 0;
    color: #999fa6;
    font-size: 13px;
}

.ga-fin-view-close {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.05);
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}

.ga-fin-view-status {
    padding: 20px 26px 8px;
}

.ga-fin-view-status > strong {
    font-size: 19px;
}

.ga-fin-view-status-pill {
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    font-size: 12px;
    white-space: nowrap;
}

.ga-fin-view-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    padding: 16px 26px;
}

.ga-fin-view-grid > div,
.ga-fin-view-notes,
.ga-fin-view-documents {
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.ga-fin-view-grid > div {
    padding: 14px 15px;
    min-width: 0;
}

.ga-fin-view-grid strong {
    overflow-wrap: anywhere;
}

.ga-fin-view-notes {
    margin: 0 26px 16px;
    padding: 14px 15px;
}

.ga-fin-view-notes p {
    margin: 0;
    color: #d6d8dc;
    white-space: pre-wrap;
}

.ga-fin-view-documents {
    margin: 0 26px 22px;
    padding: 17px;
}

.ga-fin-view-documents-head {
    margin-bottom: 13px;
}

.ga-fin-view-files {
    display: grid;
    gap: 9px;
}

.ga-fin-view-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 13px;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 12px;
    background: rgba(255,255,255,.035);
}

.ga-fin-view-file-info {
    min-width: 0;
}

.ga-fin-view-file-info strong,
.ga-fin-view-file-info small {
    display: block;
    overflow-wrap: anywhere;
}

.ga-fin-view-file-info small {
    margin-top: 4px;
    color: #9399a0;
}

.ga-fin-view-open {
    flex: 0 0 auto;
    padding: 9px 12px;
    border-radius: 10px;
    background: #f2f2f2;
    color: #111;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.ga-fin-view-empty {
    padding: 14px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 12px;
    color: #8f959c;
    text-align: center;
}

.ga-fin-view-footer {
    padding: 16px 26px 22px;
}

.ga-fin-view-footer small {
    color: #8f959c;
}

.ga-fin-view-footer button {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 11px;
    background: rgba(255,255,255,.07);
    color: #fff;
    cursor: pointer;
}

@media (max-width: 640px) {

    .ga-fin-view-overlay {
        padding: 10px;
        align-items: flex-start;
    }

    .ga-fin-view-modal {
        margin-top: 10px;
        max-height: 92vh;
        border-radius: 17px;
    }

    .ga-fin-view-grid {
        grid-template-columns: 1fr;
    }

    .ga-fin-view-header,
    .ga-fin-view-status,
    .ga-fin-view-footer,
    .ga-fin-view-file {
        align-items: flex-start;
        flex-direction: column;
    }

    .ga-fin-view-open {
        width: 100%;
        text-align: center;
    }
}
