.themes-admin-page {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.themes-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;
    box-sizing: border-box;

    padding: 26px 28px;

    background: #ffffff;
    border: 1px solid #dfe8ef;
    border-radius: 22px;

    box-shadow: 0 7px 20px rgba(31, 60, 90, 0.07);
}

.themes-page-header-form {
    justify-content: flex-start;
}

.themes-page-kicker {
    margin-bottom: 5px;

    color: #109c9b;

    font-size: 0.78rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0.7px;
}

.themes-page-header h1 {
    margin: 0;

    color: #102b56;

    font-size: clamp(1.8rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1.1;
}

.themes-page-header p {
    max-width: 800px;

    margin: 9px 0 0;

    color: #536579;

    line-height: 1.55;
}

.themes-primary-button,
.themes-secondary-button,
.themes-action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    border-radius: 12px;

    font-weight: 800;
    text-decoration: none !important;

    cursor: pointer;
}

.themes-primary-button {
    padding: 10px 15px;

    border: 1px solid #109c9b;

    background: #109c9b;
    color: #ffffff !important;
}

.themes-primary-button:hover {
    background: #0d8988;
    border-color: #0d8988;
}

.themes-secondary-button {
    padding: 9px 14px;

    border: 1px solid #cfdce5;

    background: #ffffff;
    color: #40556b !important;
}

.themes-secondary-button:hover {
    background: #f7fafc;
}

.themes-panel,
.themes-form-panel {
    width: 100%;
    box-sizing: border-box;

    padding: 26px 28px;

    background: #ffffff;

    border: 1px solid #dfe8ef;
    border-radius: 22px;

    box-shadow: 0 7px 20px rgba(31, 60, 90, 0.07);
}

.themes-form-panel {
    max-width: 760px;

    margin-left: auto;
    margin-right: auto;
}

.themes-toolbar {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 20px;
}

.themes-search {
    flex: 1;
    max-width: 500px;
}

.themes-search label,
.themes-field label {
    display: block;

    margin-bottom: 7px;

    color: #334a61;

    font-size: 0.87rem;
    font-weight: 800;
}

.themes-search input,
.themes-field input {
    width: 100%;
    box-sizing: border-box;

    padding: 11px 13px;

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

    background: #ffffff;
    color: #20384f;

    font: inherit;
}

.themes-search input:focus,
.themes-field input:focus {
    outline: 2px solid rgba(16, 156, 155, 0.15);
    border-color: #109c9b;
}

.themes-field-id {
    max-width: 180px;

    margin-bottom: 20px;
}

.themes-field input[readonly] {
    background: #f2f5f7;

    color: #667789;
}

.themes-count {
    padding-bottom: 10px;

    color: #718196;

    font-size: 0.86rem;
    font-weight: 800;
}

.themes-table-wrapper {
    overflow-x: auto;
}

.themes-table {
    width: 100%;

    border-collapse: collapse;
}

.themes-table th,
.themes-table td {
    padding: 14px 12px;

    border-bottom: 1px solid #e8eef3;

    text-align: left;
    vertical-align: middle;
}

.themes-table th {
    color: #536579;

    font-size: 0.78rem;
    font-weight: 900;

    text-transform: uppercase;
    letter-spacing: 0.45px;
}

.themes-col-id {
    width: 90px;
}

.themes-col-actions {
    width: 200px;
}

.themes-name-cell {
    color: #102b56;

    font-weight: 800;
}

.themes-empty-row {
    padding: 30px !important;

    color: #718196;

    text-align: center !important;
}

.themes-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.themes-action-button {
    padding: 7px 10px;

    border: 1px solid #d3dfe7;

    background: #ffffff;
    color: #40556b !important;

    font-size: 0.82rem;
}

.themes-action-button:hover {
    background: #f6f9fb;
}

.themes-action-delete {
    border-color: #f0c7c7;

    color: #a64646 !important;
}

.themes-message {
    margin-bottom: 18px;
    padding: 12px 14px;

    border-radius: 11px;

    font-size: 0.9rem;
    font-weight: 700;
}

.themes-message.is-success {
    background: #eefaf3;
    border: 1px solid #bfe4cc;

    color: #22613a;
}

.themes-message.is-error {
    background: #fff2f2;
    border: 1px solid #efc5c5;

    color: #8b3535;
}

.themes-form-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;

    margin-bottom: 24px;
    padding-bottom: 16px;

    border-bottom: 1px solid #e8eef3;
}

.themes-form-title-row h2 {
    margin: 0;

    color: #102b56;

    font-size: 1.25rem;
    font-weight: 900;
}

.themes-form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;

    margin-top: 28px;
    padding-top: 20px;

    border-top: 1px solid #e7edf2;
}

@media (max-width: 800px) {
    .themes-page-header,
    .themes-toolbar,
    .themes-form-title-row {
        align-items: stretch;
        flex-direction: column;
    }

    .themes-search {
        max-width: none;
    }

    .themes-count {
        padding-bottom: 0;
    }
}

@media (max-width: 520px) {
    .themes-page-header,
    .themes-panel,
    .themes-form-panel {
        padding: 18px;

        border-radius: 17px;
    }

    .themes-form-actions {
        flex-direction: column-reverse;
    }

    .themes-form-actions > * {
        width: 100%;
    }
}
