body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.outer-wrapper {
    padding: 15px 30px 15px 15px; /* Reduced padding: top right bottom left */
    box-sizing: border-box;
    width: 100%;
}

.container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); /* Changed to auto-fill and reduced min width */
    grid-column-gap: 20px; /* Reduced horizontal gap between columns */
    grid-row-gap: 10px;    /* Reduced vertical gap between rows */
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

/* Card Styles */
.card, .queue-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 36px; /* Reduced height from 50px */
    background: #FFF;
    border-radius: 4px;
    box-shadow: 1px 1px 3px rgba(0, 0, 0, .15); /* Reduced shadow */
    padding: 6px 8px; /* Reduced padding */
    gap: 6px; /* Reduced gap */
    position: relative;
    margin: 0;
}

.card:hover, .queue-card:hover {
    transform: translateY(-1px); /* Reduced transform */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Reduced shadow on hover */
}

/* Avatar Styles */
.userImage, .queueAvatar {
    flex: 0 0 auto;
    margin-right: 6px; /* Reduced margin */
    padding: 2px; /* Reduced padding */
}

.userImage img, .queueAvatar i {
    width: 24px; /* Reduced size */
    height: 24px; /* Reduced size */
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #f0f0f0; /* Reduced border */
}

.queueAvatar i {
    font-size: 18px; /* Reduced font size */
    color: #333333;
    margin: 0 3px; /* Reduced margin */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f0f0;
    border-radius: 50%;
    width: 28px; /* Reduced size */
    height: 28px; /* Reduced size */
}

/* Content Styles */
.card-content, .queue-card-content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
}

.textName {
    font-size: 11px; /* Reduced font size */
    font-weight: 600; /* Slightly reduced font weight */
    color: #4c4c4c;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 1; /* Changed to 1 line only */
    -webkit-box-orient: vertical;
    word-wrap: break-word;
}

.textPresence {
    font-size: 10px; /* Reduced font size */
    color: #6c757d;
    line-height: 1.1; /* Reduced line height */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    margin: 0;
    padding-top: 1px; /* Reduced padding */
}

.statsContainer, .queue-statsContainer {
    display: flex;
    align-items: center;
    gap: 6px; /* Reduced gap */
    color: #6c757d;
    font-size: 10px; /* Reduced font size */
    padding-top: 2px; /* Reduced padding */
}

.statsContainer i, .queue-statsContainer i {
    margin-right: 2px; /* Reduced margin */
}

/* Button Styles */
.right, .queue-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px; /* Reduced gap */
    position: absolute;
    right: 10px; /* Reduced right position */
    top: 50%;
    transform: translateY(-50%);
}

.callButton, .transferButton, .queue-callButton, .queue-transferButton {
    width: 28px; /* Reduced size */
    height: 28px; /* Reduced size */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF;
    border-radius: 4px;
    border-width: 0;
    cursor: pointer;
}

.callButton:hover, .transferButton:hover, .queue-callButton:hover, .queue-transferButton:hover {
    background-color: #d3d3d4;
}

.callButtonRed {
    width: 28px; /* Reduced size */
    height: 28px; /* Reduced size */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #FFF;
    border-radius: 4px;
    border-width: 0;
    cursor: pointer;
}

.callButtonRed:hover {
    background-color: #d3d3d4;
}

.phoneIcon, .transferIcon {
    width: 18px; /* Reduced size */
    height: 18px; /* Reduced size */
}

.phoneIconRed {
    width: 18px; /* Reduced size */
    height: 18px; /* Reduced size */
    filter: invert(15%) sepia(90%) saturate(6000%) hue-rotate(358deg) brightness(100%) contrast(112%);
}

/* Avatar Status Colors */
.userAvatarOffline {
    border-radius: 50%;
    box-shadow: 0 0 0 1pt black; /* Reduced border thickness */
}

.userAvatarAvailable, .userAvatarOnQueue {
    border-radius: 50%;
    box-shadow: 0 0 0 1pt #4CAF50; /* Reduced border thickness */
}

.userAvatarBusy, .userAvatarMeeting {
    border-radius: 50%;
    box-shadow: 0 0 0 1pt red; /* Reduced border thickness */
}

.userAvatarAway, .userAvatarBreak, .userAvatarMeal, .userAvatarTraining {
    border-radius: 50%;
    box-shadow: 0 0 0 1pt #FFC107; /* Reduced border thickness */
}

header {
    min-width: 250px; /* Reduced min-width */
    display: flex;
    margin-left: 20px;
    margin-bottom: 20px;
    float: left;
    background: #FFF;
    border-radius: 4px;
    box-shadow: 1px 1px 5px rgba(0, 0, 0, .2);
}