﻿/* =====================================================
   CLEAN MODERN Z-INDEX PICKER
   ===================================================== */

#ZIndexPickerModal .modal-dialog {
    height: 80vh;
    max-width: 900px;
}

#ZIndexPickerModal .modal-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    border: none;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* Reset Bootstrap section backgrounds so content controls theme */
#ZIndexPickerModal .modal-header,
#ZIndexPickerModal .modal-body,
#ZIndexPickerModal .modal-footer {
    background: transparent;
}

/* =====================================================
   HEADER
   ===================================================== */

#ZIndexPickerModal .modal-header {
    flex: 0 0 auto;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

#ZIndexPickerModal .modal-title {
    font-weight: 600;
    letter-spacing: 0.2px;
}

/* =====================================================
   BODY
   ===================================================== */

#ZIndexPickerModal .modal-body {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 0.75rem 1.5rem;
    border: 0px solid red;
    overflow-x: hidden;
}

/* =====================================================
   TABLE
   ===================================================== */

#zIndexPickerTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    padding:1rem;
}

    /* Column headers */
    #zIndexPickerTable thead th {
        font-size: 0.75rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.4px;
        padding: 0.50rem 0rem 0.50rem 0rem;
        border: none;
        background: transparent;
        color: #6c757d;
        border: 0px solid blue;
    }

    /* Rows */
    #zIndexPickerTable tbody tr {
        border-bottom: 1px solid #f1f3f5;
        cursor: pointer;
    }

        /* Hover */
        #zIndexPickerTable tbody tr:hover {
            background-color: #f8f9fa;
        }

    /* Cells */
    #zIndexPickerTable tbody td {
        
        vertical-align: middle;
        border: none;
    }

        /* Column-specific emphasis */
        #zIndexPickerTable tbody td:first-child {
            font-weight: 600;
            color: #212529;
        }

        #zIndexPickerTable tbody td:nth-child(3) {
            font-weight: 500;
            color: #343a40;
        }

        #zIndexPickerTable tbody td:last-child {
            font-weight: 500;
            color: #868e96;
        }

/* =====================================================
   COLOR CHIP
   ===================================================== */

.zindex-color-square {
    width: 24px;
    height: 24px;
    display: inline-block;
    flex-shrink: 0;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* =====================================================
   GHOST / UNUSED LAYERS
   ===================================================== */

#zIndexPickerTable tbody tr.ghost-layer {
    opacity: 0.55;
}

.zindex-picker-color-input {
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    background: transparent;
}
