* {



    box-sizing: border-box;



}







body {



    margin: 0;



    color: #e5e7eb;



    font-family: Arial, Helvetica, sans-serif;



}







/* LOGIN */







.login-page {



    min-height: 100vh;







    display: flex;



    align-items: center;



    justify-content: center;







    background:



        radial-gradient(circle at top,



            #162033 0%,



            #0b1220 45%,



            #070c14 100%);



}







.login-box {



    width: 100%;



    max-width: 390px;







    margin: 20px;



    padding: 34px;







    background: rgba(17, 24, 39, 0.96);







    border: 1px solid #263244;



    border-radius: 18px;







    box-shadow:



        0 25px 60px rgba(0, 0, 0, 0.40);



}







.logo {



    width: 48px;



    height: 48px;







    display: flex;



    align-items: center;



    justify-content: center;







    margin-bottom: 22px;







    border-radius: 12px;



    background: #2563eb;







    font-size: 20px;



    font-weight: 700;



}







.login-box h1 {



    margin: 0 0 7px 0;



    font-size: 25px;



}







.subtitle {



    color: #94a3b8;



    font-size: 14px;



}







.login-box .subtitle {



    margin-bottom: 28px;



}







.login-box label {



    display: block;







    margin-bottom: 7px;







    color: #cbd5e1;







    font-size: 13px;



    font-weight: 600;



}







.login-box input {



    width: 100%;







    margin-bottom: 18px;



    padding: 12px 13px;







    background: #0b1220;







    color: #f8fafc;







    border: 1px solid #334155;



    border-radius: 9px;







    outline: none;







    font-size: 14px;







    transition: 0.15s;



}







.login-box input:focus {



    border-color: #3b82f6;







    box-shadow:



        0 0 0 3px rgba(59, 130, 246, 0.12);



}







.login-box button {



    width: 100%;







    padding: 12px;







    border: 0;



    border-radius: 9px;







    background: #2563eb;







    color: white;







    font-size: 14px;



    font-weight: 700;







    cursor: pointer;







    transition: 0.15s;



}







.login-box button:hover {



    background: #1d4ed8;



}







.error {



    margin-bottom: 18px;



    padding: 10px 12px;







    border:



        1px solid rgba(239, 68, 68, 0.30);







    border-radius: 8px;







    background:



        rgba(239, 68, 68, 0.10);







    color: #fca5a5;







    font-size: 13px;



}







.footer {



    margin-top: 22px;







    text-align: center;







    color: #64748b;







    font-size: 12px;



}







/* DASHBOARD */







.dashboard-page {



    min-height: 100vh;



    background: #0b1220;



}







.container {



    max-width: 1600px;







    margin: 0 auto;



    padding: 30px;



}







.header {



    display: flex;







    justify-content: space-between;



    align-items: center;







    gap: 20px;







    margin-bottom: 30px;



}







.header-left h1 {



    margin: 0;



    font-size: 28px;



}







.header-left .subtitle {



    margin-top: 5px;



    font-size: 13px;



}







.header-right {



    display: flex;







    align-items: center;







    gap: 12px;



}







/* HEADER NAVIGATION */







.header-actions {



    display: flex;



    align-items: center;



    gap: 18px;



}







.main-nav {



    display: flex;



    align-items: center;







    padding: 4px;







    background: #111827;







    border: 1px solid #1f2937;



    border-radius: 10px;



}







.nav-link {



    padding: 7px 12px;







    border-radius: 7px;







    color: #94a3b8;







    text-decoration: none;







    font-size: 13px;



    font-weight: 600;







    transition: 0.15s;



}







.nav-link:hover {



    background: #1e293b;



    color: #e5e7eb;



}







.nav-link.active {



    background: #25334a;



    color: #f8fafc;



}







.account-actions {



    display: flex;



    align-items: center;



    gap: 10px;



}







.current-user {



    padding: 8px 10px;







    color: #94a3b8;







    font-size: 13px;



    white-space: nowrap;



}







.summary {



    display: flex;







    gap: 10px;



    flex-wrap: wrap;







    margin-bottom: 24px;



}







.summary-item {



    padding: 9px 13px;







    background: #111827;







    border: 1px solid #1f2937;



    border-radius: 9px;







    font-size: 13px;



}







.summary-online {



    color: #4ade80;



}







.summary-offline {



    color: #f87171;



}







.logout {



    padding: 9px 13px;







    border: 1px solid #334155;



    border-radius: 9px;







    color: #cbd5e1;







    text-decoration: none;







    font-size: 13px;



}







.logout:hover {



    background: #1e293b;



}







.grid {



    display: grid;







    grid-template-columns:



        repeat(auto-fill,



            minmax(300px, 1fr));







    gap: 18px;



}







.card {



    padding: 20px;







    background: #111827;







    border: 1px solid #1f2937;



    border-radius: 14px;







    box-shadow:



        0 6px 20px rgba(0, 0, 0, 0.20);



}







.card.online {



    border-left: 5px solid #22c55e;



}







.card.offline {



    border-left: 5px solid #ef4444;



    opacity: 0.78;



}







.card.warning {



    border-left: 5px solid #f59e0b;



}







.card-header {



    display: flex;







    justify-content: space-between;



    align-items: center;







    gap: 10px;







    margin-bottom: 16px;



}







.hostname {



    font-size: 19px;



    font-weight: 700;







    word-break: break-word;



}







.status {



    padding: 5px 9px;







    border-radius: 999px;







    white-space: nowrap;







    font-size: 12px;



    font-weight: 700;



}







.status-online {



    background:



        rgba(34, 197, 94, 0.14);







    color: #4ade80;



}







.status-offline {



    background:



        rgba(239, 68, 68, 0.14);







    color: #f87171;



}







.status-warning {



    background:



        rgba(245, 158, 11, 0.14);







    color: #fbbf24;



}







.info {



    display: grid;







    grid-template-columns: 1fr auto;







    gap: 10px 16px;







    font-size: 14px;



}







.label {



    color: #94a3b8;



}







.value {



    color: #f3f4f6;







    text-align: right;







    font-weight: 600;



}







.metric {



    margin-top: 16px;



}







.metric-top {



    display: flex;







    justify-content: space-between;







    margin-bottom: 6px;







    font-size: 13px;



}







.metric-name {



    color: #94a3b8;



}







.bar {



    height: 7px;







    overflow: hidden;







    background: #1f2937;







    border-radius: 999px;



}







.bar-fill {



    height: 100%;



    width: calc(var(--value) * 1%);



    background: #3b82f6;



    border-radius: 999px;



}







.bar-warning {



    background: #f59e0b;



}







.bar-danger {



    background: #ef4444;



}







.last-seen {



    margin-top: 18px;



    padding-top: 14px;







    border-top: 1px solid #1f2937;







    color: #94a3b8;







    font-size: 13px;



}







/* DEVICES */







.device-tabs {



    display: flex;



    gap: 10px;



    margin: 25px 0;



}







.device-tab {



    padding: 10px 18px;







    border: 1px solid #263247;



    border-radius: 10px;







    background: #111827;







    color: #94a3b8;







    text-decoration: none;



}







.device-tab.active {



    background: #1e293b;







    border-color: #475569;







    color: #ffffff;



}







.device-topbar {



    display: flex;







    justify-content: flex-end;



    align-items: center;







    margin-bottom: 20px;



}







.add-device-button {



    display: inline-block;







    padding: 10px 16px;







    border-radius: 10px;







    background: #2563eb;







    color: #ffffff;







    text-decoration: none;



}







.add-device-button:hover {



    background: #1d4ed8;



}











/* Карточка устройства */







.device-card {



    position: relative;







    padding-right: 54px;



}











/* Троеточие */







.device-menu-wrapper {



    position: absolute;







    top: 7px;



    right: 7px;







    z-index: 30;



}







.device-menu-button {



    width: 34px;



    height: 34px;







    display: flex;



    align-items: center;



    justify-content: center;







    padding: 0;







    border: 0;



    border-radius: 9px;







    background: transparent;







    color: #64748b;







    font-size: 24px;



    line-height: 1;







    cursor: pointer;







    transition: 0.15s;



}







.device-menu-button:hover {



    background: #1e293b;







    color: #e5e7eb;



}











/* Выпадающее меню */







.device-menu {



    display: none;







    position: absolute;







    top: 38px;



    right: 0;







    min-width: 145px;







    padding: 6px;







    background: #111827;







    border: 1px solid #263247;



    border-radius: 10px;







    box-shadow:



        0 12px 30px rgba(0, 0, 0, 0.35);







    z-index: 50;



}







.device-menu.open {



    display: block;



}







.device-menu-item {



    width: 100%;







    padding: 9px 12px;







    border: 0;



    border-radius: 7px;







    background: transparent;
    color: #ffffff;







    text-align: left;







    font-size: 14px;







    cursor: pointer;



}







.device-menu-item:hover {



    background: #1f2937;



}







.device-menu-item.delete {



    color: #ef4444;



}











/* Архив */







.archive-actions {



    display: flex;







    gap: 10px;







    margin-top: 18px;



}







.archive-button {



    padding: 8px 14px;







    border: 1px solid #334155;



    border-radius: 8px;







    background: #172033;







    color: #e5e7eb;







    cursor: pointer;



}







.archive-button:hover {



    background: #202c42;



}







.archive-button.delete {



    border-color: #51232a;







    color: #ef4444;



}







.empty-state {



    margin-top: 40px;







    color: #64748b;



}











/* Окно подтверждения */







.modal-backdrop {



    display: none;







    position: fixed;







    inset: 0;







    align-items: center;



    justify-content: center;







    background: rgba(0, 0, 0, 0.65);







    z-index: 1000;



}







.modal-backdrop.open {



    display: flex;



}







.modal {



    width: min(440px,



            calc(100% - 40px));







    padding: 24px;







    background: #111827;







    border: 1px solid #2b394e;



    border-radius: 14px;







    box-shadow:



        0 20px 60px rgba(0, 0, 0, 0.5);



}







.modal-message {



    margin-bottom: 22px;







    color: #f3f4f6;







    font-size: 16px;



    line-height: 1.5;



}







.modal-actions {



    display: flex;







    gap: 10px;



}







.modal-button {



    padding: 9px 18px;







    border: 0;



    border-radius: 8px;







    font-size: 14px;







    cursor: pointer;



}







.modal-confirm {



    background: #2563eb;







    color: #ffffff;



}







.modal-confirm:hover {



    background: #1d4ed8;



}







.modal-confirm.danger {



    background: #dc2626;



}







.modal-confirm.danger:hover {



    background: #b91c1c;



}







.modal-cancel {



    background: #263247;







    color: #e5e7eb;



}







.modal-cancel:hover {



    background: #334155;



}







/* ADD DEVICE */







.device-create-wrapper {



    display: flex;







    justify-content: center;







    padding-top: 35px;



}







.device-create-card {



    width: 100%;



    max-width: 560px;







    padding: 34px;







    background: #111827;







    border: 1px solid #263244;



    border-radius: 16px;







    box-shadow:



        0 18px 45px rgba(0, 0, 0, 0.22);



}







.device-create-card h2 {



    margin: 0 0 8px 0;







    color: #f8fafc;







    font-size: 22px;



}







.device-create-description {



    margin: 0 0 28px 0;







    color: #94a3b8;







    font-size: 14px;



    line-height: 1.6;



}







.device-form-group {



    margin-bottom: 22px;



}







.device-form-group label {



    display: block;







    margin-bottom: 8px;







    color: #cbd5e1;







    font-size: 13px;



    font-weight: 600;



}







.device-form-group input {



    width: 100%;







    padding: 12px 14px;







    background: #0b1220;







    border: 1px solid #334155;



    border-radius: 9px;







    outline: none;







    color: #f8fafc;







    font-size: 14px;







    transition: 0.15s;



}







.device-form-group input:focus {



    border-color: #3b82f6;







    box-shadow:



        0 0 0 3px rgba(59, 130, 246, 0.12);



}







.device-form-group input::placeholder {



    color: #64748b;



}







.device-form-hint {



    margin-top: 7px;







    color: #64748b;







    font-size: 12px;



}







.device-create-submit {



    width: 100%;







    padding: 12px 16px;







    border: 0;



    border-radius: 9px;







    background: #2563eb;







    color: #ffffff;







    font-size: 14px;



    font-weight: 700;







    cursor: pointer;







    transition: 0.15s;



}







.device-create-submit:hover {



    background: #1d4ed8;



}







.package-info {



    margin-top: 26px;



    padding-top: 20px;







    border-top: 1px solid #1f2937;



}







.package-info-title {



    margin-bottom: 7px;







    color: #cbd5e1;







    font-size: 12px;



    font-weight: 600;



}







.package-files {



    color: #64748b;







    font-family:



        Consolas,



        "Courier New",



        monospace;







    font-size: 12px;



    line-height: 1.6;



}











/* --------------------------------------------------



   Devices: counters and requests button



-------------------------------------------------- */







.device-tab-count {



    opacity: 0.75;



    font-weight: 500;



}







.device-topbar {



    display: flex;



    justify-content: flex-end;



    margin-bottom: 24px;



}







.device-topbar-actions {



    display: flex;



    align-items: center;



    gap: 12px;



}







.requests-button {



    display: inline-flex;



    align-items: center;



    gap: 4px;







    padding: 10px 16px;







    border: 1px solid rgba(148, 163, 184, 0.28);



    border-radius: 10px;







    background: transparent;



    color: inherit;







    text-decoration: none;



    font-size: 14px;



    font-weight: 500;







    transition:



        background 0.15s ease,



        border-color 0.15s ease;



}







.requests-button:hover {



    background: rgba(148, 163, 184, 0.08);



    border-color: rgba(148, 163, 184, 0.45);



}







.requests-count {



    color: inherit;



}







.requests-count.has-pending {



    color: #ef4444;



    font-weight: 700;



}











@media (max-width: 750px) {



    .container {



        padding: 18px;



    }







    .header {



        align-items: flex-start;



        flex-direction: column;



    }







    .header-right {



        width: 100%;







        justify-content: space-between;







        flex-wrap: wrap;



    }







    .header-actions {



        width: 100%;



        flex-direction: column;



        align-items: stretch;



        gap: 10px;



    }







    .main-nav {



        width: 100%;



    }







    .nav-link {



        flex: 1;



        text-align: center;



    }







    .account-actions {



        justify-content: space-between;



    }



}



/* --------------------------------------------------

   Pending device notification badge

-------------------------------------------------- */



.nav-link-with-badge {

    position: relative;

}



.nav-notification-badge {

    display: none;



    position: absolute;

    top: -8px;

    right: -8px;



    min-width: 19px;

    height: 19px;



    padding: 0 5px;



    align-items: center;

    justify-content: center;



    border: 2px solid #0b1220;

    border-radius: 999px;



    background: #ef4444;

    color: #05070a;



    font-size: 11px;

    font-weight: 800;

    line-height: 1;



    box-shadow:

        0 2px 8px rgba(0, 0, 0, 0.35);



    z-index: 5;

}



.nav-notification-badge.visible {

    display: inline-flex;

}



/* --------------------------------------------------

   Files page

-------------------------------------------------- */



.files-panel {

    overflow: hidden;



    background: #111827;



    border: 1px solid #1f2937;

    border-radius: 14px;



    box-shadow:

        0 6px 20px rgba(0, 0, 0, 0.20);

}



.files-table-header,

.files-table-row {

    display: grid;



    grid-template-columns:

        minmax(360px, 1fr)

        110px

        90px

        120px;



    align-items: center;

    gap: 20px;

}



.files-table-header {

    padding: 13px 20px;



    background: #0f172a;



    border-bottom: 1px solid #1f2937;



    color: #64748b;



    font-size: 12px;

    font-weight: 700;



    text-transform: uppercase;

    letter-spacing: 0.04em;

}



.files-table-row {

    min-height: 92px;



    padding: 16px 20px;



    border-bottom: 1px solid #1f2937;

}



.files-table-row:last-child {

    border-bottom: 0;

}



.files-table-row:hover {

    background: rgba(148, 163, 184, 0.035);

}



.files-name-cell {

    display: flex;

    align-items: center;

    gap: 14px;



    min-width: 0;

}



.file-type-badge {

    width: 46px;

    height: 46px;



    flex: 0 0 46px;



    display: flex;

    align-items: center;

    justify-content: center;



    border: 1px solid #334155;

    border-radius: 10px;



    background: #172033;

    color: #93c5fd;



    font-size: 11px;

    font-weight: 800;

}



.file-text {

    min-width: 0;

}



.file-title {

    color: #f8fafc;



    font-size: 15px;

    font-weight: 700;

}



.file-subtitle {

    margin-top: 4px;



    color: #94a3b8;



    font-size: 13px;

}



.file-filename {

    margin-top: 5px;



    overflow: hidden;



    color: #64748b;



    font-family:

        Consolas,

        "Courier New",

        monospace;



    font-size: 11px;



    text-overflow: ellipsis;

    white-space: nowrap;

}



.files-size-cell,

.files-type-cell {

    color: #cbd5e1;



    font-size: 13px;

}



.files-action-cell {

    display: flex;

    justify-content: flex-end;

}



.file-download-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;



    min-width: 100px;



    padding: 9px 15px;



    border-radius: 9px;



    background: #2563eb;

    color: #ffffff;



    text-decoration: none;



    font-size: 13px;

    font-weight: 600;



    transition: 0.15s;

}



.file-download-button:hover {

    background: #1d4ed8;

}



.files-empty-state {

    padding: 36px 20px;



    color: #64748b;



    text-align: center;



    font-size: 14px;

}



@media (max-width: 850px) {

    .files-table-header {

        display: none;

    }



    .files-table-row {

        grid-template-columns: 1fr;

        gap: 12px;

    }



    .files-size-cell,

    .files-type-cell {

        display: none;

    }



    .files-action-cell {

        justify-content: stretch;

    }



    .file-download-button {

        width: 100%;

    }

}


/* --------------------------------------------------
   Dashboard: editable device display name
-------------------------------------------------- */

.device-title-wrap {
    min-width: 0;
    flex: 1 1 auto;
}

.device-title-row {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.device-display-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-name-action {
    width: 27px;
    height: 27px;
    flex: 0 0 27px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;

    background: transparent;
    color: #64748b;

    font-size: 15px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.device-name-action:hover {
    background: #1e293b;
    border-color: #334155;
    color: #e5e7eb;
}

.device-name-action:disabled {
    opacity: 0.45;
    cursor: default;
}

.device-name-editor {
    display: flex;
    align-items: center;
    gap: 6px;

    min-width: 0;
    width: 100%;
}

.device-name-editor[hidden],
.device-title-row[hidden] {
    display: none !important;
}

.device-name-input {
    min-width: 0;
    width: 100%;

    padding: 6px 9px;

    border: 1px solid #3b82f6;
    border-radius: 7px;

    outline: none;

    background: #0b1220;
    color: #f8fafc;

    font: inherit;
    font-size: 16px;
    font-weight: 700;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.10);
}

.save-device-name {
    color: #4ade80;
}

.save-device-name:hover {
    background: rgba(34, 197, 94, 0.12);
    border-color: rgba(34, 197, 94, 0.28);
    color: #86efac;
}

.cancel-device-name {
    color: #f87171;
}

.cancel-device-name:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.28);
    color: #fca5a5;
}

.card-header {
    align-items: flex-start;
}

@media (max-width: 420px) {
    .device-name-input {
        font-size: 14px;
    }

    .device-name-action {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
    }
}


/* --------------------------------------------------
   Centers
-------------------------------------------------- */

.centers-picker {
    max-width: 760px;
    margin: 0 auto 30px auto;
    padding: 26px;

    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 16px;

    box-shadow:
        0 8px 28px rgba(0, 0, 0, 0.18);
}

.centers-picker-title {
    color: #f8fafc;

    font-size: 20px;
    font-weight: 700;
    text-align: center;
}

.centers-picker-subtitle {
    margin-top: 7px;

    color: #64748b;

    font-size: 13px;
    text-align: center;
}

.center-search-shell {
    position: relative;

    margin-top: 22px;
}

.center-search-input {
    width: 100%;
    height: 48px;

    padding: 0 86px 0 15px;

    border: 1px solid #334155;
    border-radius: 11px;

    outline: none;

    background: #0b1220;
    color: #f8fafc;

    font-size: 15px;

    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.center-search-input:focus {
    border-color: #3b82f6;

    box-shadow:
        0 0 0 3px rgba(59, 130, 246, 0.11);
}

.center-search-input::placeholder {
    color: #64748b;
}

.center-search-toggle,
.center-search-clear {
    position: absolute;
    top: 50%;

    width: 34px;
    height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    transform: translateY(-50%);

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #64748b;

    cursor: pointer;

    font-size: 17px;
}

.center-search-toggle {
    right: 7px;
}

.center-search-clear {
    right: 43px;

    font-size: 21px;
}

.center-search-toggle:hover,
.center-search-clear:hover {
    background: #1e293b;
    color: #e5e7eb;
}

.center-search-results {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    right: 0;

    max-height: 320px;
    overflow-y: auto;

    padding: 6px;

    background: #111827;

    border: 1px solid #2b394e;
    border-radius: 11px;

    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.42);

    z-index: 100;
}

.center-search-option {
    width: 100%;

    padding: 10px 12px;

    border: 0;
    border-radius: 8px;

    background: transparent;
    color: #e5e7eb;

    text-align: left;

    font-size: 14px;

    cursor: pointer;
}

.center-search-option:hover,
.center-search-option:focus {
    outline: none;

    background: #1e293b;
    color: #ffffff;
}

.center-search-empty {
    padding: 16px 12px;

    color: #64748b;

    font-size: 13px;
    text-align: center;
}

.center-workspace {
    margin-top: 28px;
}

.center-workspace-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 18px;

    margin-bottom: 20px;
}

.center-workspace-eyebrow {
    margin-bottom: 5px;

    color: #64748b;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.center-workspace-header h2 {
    margin: 0;

    color: #f8fafc;

    font-size: 25px;
}

.center-workspace-meta {
    padding: 8px 11px;

    border: 1px solid #263247;
    border-radius: 9px;

    background: #111827;
    color: #94a3b8;

    font-size: 13px;
}

.center-workspace-meta strong {
    color: #f8fafc;
}

.center-sections-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap: 18px;
}

.center-section-card {
    min-width: 0;

    padding: 20px;

    background: #111827;

    border: 1px solid #1f2937;
    border-radius: 14px;

    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.16);
}

.center-section-wide {
    grid-column: 1 / -1;
}

.center-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 17px;
}

.center-scan-button {
    padding: 8px 12px;
    border: 1px solid transparent;
    border-radius: 8px;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.center-scan-button:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 2px;
}

.center-scan-button:disabled {
    border-color: #334155;
    background: #1e293b;
    color: #cbd5e1;
    cursor: default;
}

.center-scan-status {
    margin-bottom: 12px;
}

.center-connection-list {
    display: grid;
    gap: 4px;
}

.center-section-kicker {
    margin-bottom: 4px;

    color: #64748b;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.center-section-header h3 {
    margin: 0;

    color: #f8fafc;

    font-size: 18px;
}

.center-section-count {
    min-width: 28px;
    height: 28px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 8px;

    border-radius: 999px;

    background: #1e293b;
    color: #cbd5e1;

    font-size: 12px;
    font-weight: 700;
}

.center-section-empty {
    padding: 20px 0 4px 0;

    color: #64748b;

    font-size: 13px;
}

.center-pc-list {
    display: grid;
    gap: 12px;
}

.center-pc-item {
    padding: 16px;

    background: #0d1524;

    border: 1px solid #253247;
    border-radius: 11px;
}

.center-pc-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 15px;

    margin-bottom: 15px;
}

.center-pc-name {
    color: #f8fafc;

    font-size: 16px;
    font-weight: 700;
}

.center-pc-hostname {
    margin-top: 4px;

    color: #64748b;

    font-family:
        Consolas,
        "Courier New",
        monospace;

    font-size: 11px;
}

.center-pc-status {
    padding: 5px 8px;

    border-radius: 999px;

    font-size: 10px;
    font-weight: 800;
}

.center-pc-status.online {
    background: rgba(34, 197, 94, 0.14);
    color: #4ade80;
}

.center-pc-status.offline {
    background: rgba(239, 68, 68, 0.14);
    color: #f87171;
}

.center-data-grid {
    display: grid;

    grid-template-columns:
        minmax(120px, 0.6fr)
        minmax(0, 1.4fr);

    gap: 8px 20px;

    font-size: 13px;
}

.center-data-label {
    color: #64748b;
}

.center-data-value {
    min-width: 0;

    color: #cbd5e1;

    overflow-wrap: anywhere;
}

.center-welcome-state {
    max-width: 680px;

    margin: 55px auto 0 auto;
    padding: 42px 24px;

    border: 1px dashed #263247;
    border-radius: 16px;

    color: #64748b;

    text-align: center;
}

.center-welcome-title {
    color: #cbd5e1;

    font-size: 18px;
    font-weight: 700;
}

.center-welcome-text {
    margin-top: 8px;

    font-size: 13px;
}

@media (max-width: 900px) {
    .center-sections-grid {
        grid-template-columns: 1fr;
    }

    .center-section-wide {
        grid-column: auto;
    }
}

@media (max-width: 620px) {
    .centers-picker {
        padding: 20px;
    }

    .center-workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .center-data-grid {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .center-data-value {
        margin-bottom: 8px;
    }
}


/* --------------------------------------------------
   Device center binding
-------------------------------------------------- */

.device-center-line {
    margin-top: 16px;
    padding-top: 13px;
    border-top: 1px solid #1f2937;
    color: #64748b;
    font-size: 12px;
}

.device-center-line span {
    color: #cbd5e1;
    font-weight: 600;
}

.device-center-line.unassigned span {
    color: #fbbf24;
}

.center-select-modal,
.approve-device-modal {
    width: min(540px, calc(100% - 40px));
}

.center-modal-heading {
    color: #f8fafc;
    font-size: 19px;
    font-weight: 700;
}

.center-modal-device,
.approve-device-name {
    margin-top: 7px;
    color: #93c5fd;
    font-size: 14px;
    font-weight: 600;
}

.approve-device-hint {
    margin-top: 8px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.center-modal-search-shell {
    margin-top: 20px;
}

.center-modal-search {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #334155;
    border-radius: 9px;
    outline: none;
    background: #0b1220;
    color: #f8fafc;
    font-size: 14px;
}

.center-modal-search:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.11);
}

.center-modal-results {
    max-height: 265px;
    overflow-y: auto;
    margin-top: 8px;
    padding: 5px;
    border: 1px solid #263247;
    border-radius: 9px;
    background: #0b1220;
}

.center-modal-option {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #cbd5e1;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
}

.center-modal-option:hover {
    background: #1e293b;
    color: #ffffff;
}

.center-modal-option.selected {
    border-color: rgba(59, 130, 246, 0.45);
    background: rgba(37, 99, 235, 0.16);
    color: #bfdbfe;
}

.center-modal-option.no-center-option {
    margin-bottom: 5px;
    border-bottom-color: #263247;
}

.center-modal-empty {
    padding: 14px 10px;
    color: #64748b;
    font-size: 12px;
    text-align: center;
}

.center-modal-selected {
    margin: 12px 0 18px 0;
    color: #94a3b8;
    font-size: 12px;
}

.modal-button:disabled {
    opacity: 0.45;
    cursor: default;
}

/* --------------------------------------------------
   Pending device requests
-------------------------------------------------- */

.requests-page-actions {
    margin-bottom: 20px;
}

.requests-back-link {
    color: #94a3b8;
    text-decoration: none;
    font-size: 13px;
}

.requests-back-link:hover {
    color: #e5e7eb;
}

.request-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 18px;
}

.request-card {
    padding: 20px;
    background: #111827;
    border: 1px solid #1f2937;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}

.request-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 18px;
}

.request-device-name {
    color: #f8fafc;
    font-size: 18px;
    font-weight: 700;
}

.request-type-badge {
    display: inline-flex;
    margin-top: 6px;
    padding: 4px 7px;
    border-radius: 999px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 700;
}

.request-time {
    color: #64748b;
    font-size: 11px;
    white-space: nowrap;
}

.request-data {
    display: grid;
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
    gap: 9px 16px;
    font-size: 13px;
}

.request-label {
    color: #64748b;
}

.request-value {
    min-width: 0;
    color: #cbd5e1;
    overflow-wrap: anywhere;
}

.request-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid #1f2937;
}

.request-button {
    flex: 1;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.request-button.approve {
    background: #2563eb;
    color: #ffffff;
}

.request-button.approve:hover {
    background: #1d4ed8;
}

.request-button.reject {
    background: #26171b;
    color: #f87171;
}

.request-button.reject:hover {
    background: #351b21;
}

@media (max-width: 620px) {
    .request-grid {
        grid-template-columns: 1fr;
    }

    .request-data {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .request-value {
        margin-bottom: 7px;
    }
}

/* Agent version on monitoring cards */
.agent-version-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.25;
}
.agent-version-label { color: var(--muted, #7f93b7); }
.agent-version-value { font-weight: 700; color: #cbd5e1; }
.agent-version-current { color: #35df82; }
.agent-version-outdated { color: #f4b740; }
.agent-version-unknown { color: #7f93b7; }
.agent-version-update { color: #f4b740; font-weight: 600; }

.refund-entry summary {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    cursor: pointer;
}

.refund-entry summary::before {
    content: "▸";
    color: #94a3b8;
}

.refund-entry[open] summary::before {
    content: "▾";
}

.refund-entry summary:focus-visible {
    outline: 2px solid #93c5fd;
    outline-offset: 5px;
}

.refund-received {
    margin-left: auto;
    padding: 4px 8px;
    border-radius: 6px;
    color: #86efac;
    background: #12302b;
    font-size: 12px;
}

.refund-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #253247;
    color: #cbd5e1;
}

.refund-details pre {
    font: inherit;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.refund-pagination {
    margin-top: 16px;
    width: fit-content;
}
