/* ================================
   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-body.gmodal-body--scrollable {
    overflow-y: auto;
    overflow-x: hidden;
}

.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;
}

/* ================================
   HELP MODAL
================================ */

.help-modal-body {
    flex-direction: row;
    gap: 16px;
    overflow: hidden;
}

.help-index {
    width: 180px;
    flex-shrink: 0;
    overflow-y: auto;
    border-right: 1px solid #e2e8f0;
    padding-right: 12px;
}

.help-index-item {
    padding: 8px 6px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #374151;
}

.help-index-item:hover {
    background: #f8fafc;
    color: #000;
}

.help-index-item.active {
    background: #f8fafc;
    color: #000;
    font-weight: 700;
}

.help-content {
    flex: 1;
    overflow-y: auto;
}

.help-topic {
    display: none;
}

.help-topic.active {
    display: block;
}

.help-topic h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 700;
    color: #000;
}

.help-topic h4 {
    margin: 16px 0 6px;
    font-size: 14px;
    font-weight: 700;
    color: #000;
}

.help-topic h4:first-child {
    margin-top: 0;
}

.help-topic p {
    margin: 0 0 8px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.help-topic ul {
    margin: 0 0 8px;
    padding-left: 20px;
    font-size: 14px;
    color: #374151;
    line-height: 1.5;
}

.help-topic li {
    margin-bottom: 4px;
}


