/* ================================
   FINESTRA GLOBAL MODAL
================================ */

.gmodal {
    position: fixed;
    inset: 0;
    display: none;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, .4);
    z-index: 9999;
}

.gmodal-box {
    position: absolute;
    display: flex;
    flex-direction: column;
    background: white;
    border-radius: 8px;
    min-width: 300px;
    min-height: 200px;
    max-width: 95vw;
    max-height: 90vh;
    overflow: hidden;
    resize: both;
}

.gmodal-header {
    height: 48px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    cursor: move;
    user-select: none;
}

.gmodal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px;
}

.gmodal-footer {
    display: flex;
    height: 56px;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: #f8fafc;
    justify-content: flex-end;
}

.gmodal-close {
    background: none;
    border: none;
    cursor: pointer;
}

.gmodal-resizer {
    position: absolute;
    width: 16px;
    height: 16px;
    right: 0;
    bottom: 0;
    cursor: se-resize;
}

.modal-btn {
    padding: 8px 16px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all .2s ease;
}

.green_hover:hover {
    background: #dcfce7;
    border-color: #22c55e;
}

.red_hover:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

#gmodalTitle,
#globalModalTitle {
    font-size: 17px;
    font-weight: 700;
    color: #000000;
    letter-spacing: 0.2px;
}


