/* ================== General ================== */
html, body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 12px;
}

/* ================== Container ================== */
#listctrl2 {
    position: absolute;
    left: 20px;
    top: 100px;
    width: 500px;
    height: 400px;
    background: #eee;
    border: 1px solid #333;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    outline: none;
}

/* ================== Row ================== */
.record {
    position: relative;      /* necessary for absolute columns */
    height: 32px;            /* fixed row height */
    overflow: hidden;        /* clip any overflow */
    border-bottom: 1px solid #ccc;
    cursor: pointer;
    user-select: none;
}

/* Selected row highlight */
.record.selected {
    background-color: #3399ff !important;
    color: white !important;
}

/* ================== Avatar / Image ================== */
.record img {
    position: absolute;
    left: 4px;
    top: 2px;
    width: 28px;             /* forces shrinking */
    height: 28px;
    object-fit: contain;      /* preserve aspect ratio */
    display: block;
}

/* ================== Text columns ================== */
.text-item {
    position: absolute;
    top: 0;
    height: 32px;
    line-height: 32px;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    padding: 0 2px;
}


/* Column offsets */
.col1 { left: 40px; width: 100px;  background: }
.col2 { left: 120px; width: 100px; background: }
.col3 { left: 190px; width: 100px; background: }


.record .text-item {
           /* bold text font-weight: bold;*/
    font-size: 15px;         /* adjust size as needed */
    color: #000;             /* optional: text color */
    line-height: 32px;       /* keep vertically centered for 32px row height */
}

/*
.record .col1 {
    font-size: 14px;  /* first text column */
}

.record .col2 {
    font-size: 13px;  /* second text column */
}
*/


/*
.col1 { left: 40px; width: 100px; background: rgba(255,0,0,0.2); }
.col2 { left: 120px; width: 100px; background: rgba(0,255,0,0.2); }
.col3 { left: 190px; width: 100px; background: rgba(0,0,255,0.2); }
.col4 { left: 210px; width: 100px; background: rgba(255,0,255,0.2); }
*/

/* Optional: Row number (if used) */
.record .row-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 32px;
    line-height: 32px;
    text-align: left;
    font-weight: bold;
    overflow: hidden;
    white-space: nowrap;
}

/* ================== Buttons ================== */
button {
    margin: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

/* ================== Optional Debug Colors ================== */
/* Uncomment to debug column spacing */
/*
.col1 { background: rgba(255,0,0,0.1); }
.col2 { background: rgba(0,255,0,0.1); }
.col3 { background: rgba(0,0,255,0.1); }
*/