/* Account management screens */
#control {
    width: 100%;
}

#control .library-admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}

#control .library-admin-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 8px 12px;
    border: 1px solid var(--tco-border-strong);
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    font-weight: 600;
}

#control > div[style*="border:1px solid #bbb"] {
    padding: 14px 16px !important;
    border: 1px solid var(--tco-border) !important;
    border-radius: 8px;
    background: var(--tco-surface-soft) !important;
    line-height: 1.8;
}

#control form[method="get"] {
    display: flex !important;
    align-items: end !important;
    gap: 12px !important;
    margin: 18px 0 !important;
}

#control form[method="get"] label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

#control form[method="get"] input[type="search"] {
    width: 260px;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid var(--tco-border-strong);
    border-radius: 5px;
    font: inherit;
}

#control form[method="get"] select,
#control form[method="get"] button {
    min-height: 42px;
}

#control .table-scroll {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--tco-border);
    border-radius: 10px;
    background: #fff;
}

#control .members-table {
    width: 100% !important;
    min-width: 1180px;
    border-collapse: separate !important;
    border-spacing: 0;
    table-layout: auto;
    background: #fff;
}

#control .members-table th,
#control .members-table td {
    padding: 11px 10px;
    border: 0;
    border-bottom: 1px solid #e5eaee;
    vertical-align: top;
    text-align: left;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

#control .members-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--tco-navy);
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
}

#control .members-table tbody tr:nth-child(even) td {
    background: #f8fafb;
}

#control .members-table tbody tr:hover td {
    background: #eef5fa;
}

#control .members-table tr.deleted td {
    color: #7b8389;
    background: #f4f4f4;
}

#control .members-table th:nth-child(1),
#control .members-table td:nth-child(1) { width: 64px; text-align: center; }
#control .members-table th:nth-child(2),
#control .members-table td:nth-child(2) { width: 70px; text-align: center; }
#control .members-table th:nth-child(3),
#control .members-table td:nth-child(3) { min-width: 150px; }
#control .members-table th:nth-child(4),
#control .members-table td:nth-child(4) { min-width: 135px; }
#control .members-table th:nth-child(5),
#control .members-table td:nth-child(5) { min-width: 220px; }
#control .members-table th:nth-child(6),
#control .members-table td:nth-child(6) { width: 72px; text-align: center; }
#control .members-table th:nth-child(7),
#control .members-table td:nth-child(7) { min-width: 120px; }
#control .members-table th:nth-child(8),
#control .members-table td:nth-child(8) { width: 90px; }
#control .members-table th:nth-child(9),
#control .members-table td:nth-child(9) { min-width: 150px; white-space: nowrap; }
#control .members-table th:nth-child(10),
#control .members-table td:nth-child(10) { min-width: 190px; white-space: nowrap; }

#control .members-table td:nth-child(10) a {
    display: inline-block;
    margin: 0 2px 4px 0;
}

#control .pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

#control .pagination a,
#control .pagination strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid var(--tco-border);
    border-radius: 5px;
    text-decoration: none;
}

#control .pagination strong {
    background: var(--tco-navy);
    color: #fff;
}

.account-edit-page {
    max-width: 760px;
}

.account-edit-page .library-admin-form {
    margin-top: 20px;
}

.account-edit-page .form-group {
    margin: 0 0 18px;
}

.account-edit-page .form-group > label:not([style]) {
    display: block;
    margin-bottom: 6px;
    font-weight: 700;
}

.account-edit-page .form-group input[type="text"],
.account-edit-page .form-group input[type="email"] {
    width: 100%;
    max-width: 620px;
}

.account-edit-page .form-group small {
    display: block;
    margin-top: 5px;
    color: var(--tco-muted);
}

.account-edit-page .account-permission-note {
    margin: 7px 0 12px;
    color: #5e6670;
    font-size: 13px;
}

.account-edit-page .account-super-status {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0 4px;
    padding-top: 12px;
    border-top: 1px solid #eadf9a;
}

.account-edit-page .account-super-status-label {
    font-weight: 700;
}

.account-edit-page .account-super-status-yes,
.account-edit-page .account-super-status-no {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 13px;
}

.account-edit-page .account-super-status-yes {
    background: #e6f5eb;
    color: #22633a;
}

.account-edit-page .account-super-status-no {
    background: #edf1f4;
    color: #56616b;
}

.account-edit-page .account-super-help {
    margin: 5px 0 0;
    color: #666;
    font-size: 12px;
}

@media (max-width: 700px) {
    #control form[method="get"] {
        align-items: stretch !important;
    }

    #control form[method="get"] > div,
    #control form[method="get"] input[type="search"],
    #control form[method="get"] select,
    #control form[method="get"] button {
        width: 100%;
    }
}
