﻿/* ========================= */
/* CONTAINER                 */
/* ========================= */

.ed-admin-full {
    padding: 2.5rem 3.75rem;
}

.ed-admin-container {
    width: 100rem;
}

.ed-admin-title {
    font-weight: 700;
    margin-bottom: 1.875rem;
    font-size: 1.375rem;
}

.ed-admin-main {
    display: flex;
    gap: 2.5rem;
    height: 43.75rem;
}

/* ========================= */
/* LEFT COLUMN               */
/* ========================= */

.ed-admin-left {
    width: 28rem;
    display: flex;
    flex-direction: column;
}

.ed-admin-list-title {
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.ed-admin-user-list {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid rgba(0,0,0,0.2);
}

.ed-admin-user-item {
    padding: 0.625rem 0.75rem;
    cursor: pointer;
    border-radius: 0.375rem;
}

    .ed-admin-user-item:hover {
        background: rgba(0,0,0,0.05);
    }

    .ed-admin-user-item.active {
        background: rgba(0,123,255,0.18);
    }

/* ========================= */
/* RIGHT COLUMN              */
/* ========================= */

.ed-admin-right {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* HEADER */

.ed-admin-header-row {
    display: grid;
    grid-template-columns: 13.75rem 6.25rem 1fr 13.75rem;
    font-weight: 600;
    padding: 0.875rem;
    background: #ffffff;
    border: 0.0625rem solid rgba(0,0,0,0.2);
    border-bottom: 0.0625rem solid rgba(0,0,0,0.2);
    border-radius: 0.5rem 0.5rem 0 0;
}

    .ed-admin-header-row > div {
        border-right: none;
        padding-right: 0;
    }

/* LIST CONTAINER */

.ed-admin-station-list {
    flex: 1;
    overflow-y: auto;
    background: #ffffff;
    padding: 0.75rem;
    border: 0.0625rem solid rgba(0,0,0,0.2);
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
}

/* ROWS */

.ed-admin-row {
    display: grid;
    grid-template-columns: 13.75rem 6.25rem 1fr 13.75rem;
    align-items: center;
    padding: 0.875rem 0.75rem;
    border: none;
}

    .ed-admin-row > div {
        border-right: none;
        padding-right: 0;
    }

/* TEXT */

.col-name {
    font-weight: 500;
}

.col-key {
    font-family: monospace;
    font-size: 0.8125rem;
    color: #333;
    overflow-wrap: anywhere;
}

.col-action {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.75rem;
}

/* API KEY */

.ed-key-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 26.25rem;
}

.ed-key-text {
    font-family: monospace;
}

.ed-copy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.625rem;
    height: 2.625rem;
    border: none;
    border-radius: 0.375rem;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: all .15s ease;
}

    .ed-copy-button:hover {
        background: #e5e7eb;
    }

    .ed-copy-button:active {
        transform: scale(0.95);
    }

/* DELETE BUTTON */

.ed-delete-button {
    background: #e53935;
    color: white;
    border: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 1.125rem;
}

    .ed-delete-button:hover {
        background: #c62828;
    }

/* ========================= */
/* STATUS LED                */
/* ========================= */

.led {
    width: 0.875rem;
    height: 0.875rem;
    border-radius: 50%;
}

    .led.green {
        background: #00c853;
    }

    .led.red {
        background: #d50000;
    }

/* ========================= */
/* FOOTER                    */
/* ========================= */

.ed-admin-footer {
    margin-top: 1.25rem;
}

/* ========================================= */
/* Neue Kundenanfragen – Full Width Section */
/* ========================================= */

.ed-admin-requests {
    margin-top: 2.5rem;
}

.ed-admin-request-table {
    background: #ffffff;
    border: 0.0625rem solid rgba(0,0,0,0.15);
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Header */
.ed-admin-request-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 10rem;
    padding: 0.875rem 1rem;
    font-weight: 600;
    border-bottom: 0.0625rem solid rgba(0,0,0,0.1);
}

/* Rows */
.ed-admin-request-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 13.75rem;
    padding: 0.875rem 1rem;
    align-items: center;
    border-bottom: 0.0625rem solid rgba(0,0,0,0.05);
}

    .ed-admin-request-row:last-child {
        border-bottom: none;
    }

    .ed-admin-request-row .col-action {
        display: flex;
        justify-content: flex-end;
    }
