/* ─── 1stGIS Modals ──────────────────────────────────────────────────────────── */

.gis-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(26, 18, 9, 0.55);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: gis-fade-in 0.15s ease;
}

@keyframes gis-fade-in { from { opacity: 0; } to { opacity: 1; } }

.gis-modal {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 8px 40px rgba(26,18,9,0.22);
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    animation: gis-slide-up 0.18s ease;
}

.gis-modal-lg  { max-width: 720px; }
.gis-modal-sm  { max-width: 380px; }
.gis-modal-xl  { max-width: 920px; }

@keyframes gis-slide-up {
    from { transform: translateY(18px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

.gis-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 22px 14px;
    border-bottom: 1px solid #e0ddd5;
}

.gis-modal-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a1209;
    margin: 0;
}

.gis-modal-close {
    background: none;
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    color: #6b6b6b;
    line-height: 1;
    padding: 4px 6px;
    border-radius: 4px;
    transition: background 0.12s;
}
.gis-modal-close:hover { background: #f0ede6; color: #1a1209; }

.gis-modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 22px;
}

.gis-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 14px 22px;
    border-top: 1px solid #e0ddd5;
}

/* ─── Two-column form grid ───────────────────────────────────────────────────── */
.gis-form-grid {
    display: grid;
    gap: 14px;
}

.gis-col-2 {
    grid-template-columns: 1fr 1fr;
}

.gis-col-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.gis-span-2 { grid-column: span 2; }
.gis-span-3 { grid-column: span 3; }

@media (max-width: 540px) {
    .gis-col-2, .gis-col-3 { grid-template-columns: 1fr; }
    .gis-span-2, .gis-span-3 { grid-column: span 1; }
}

/* ─── Confirm delete modal ───────────────────────────────────────────────────── */
.gis-confirm-icon {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.gis-confirm-text {
    text-align: center;
    color: #444;
    font-size: 0.95rem;
}

/* ─── QR code modal ──────────────────────────────────────────────────────────── */
.gis-qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    padding: 10px 0;
}

.gis-qr-container img {
    width: 200px;
    height: 200px;
    image-rendering: pixelated;
    border: 6px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}

.gis-qr-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1a1209;
}
