*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f3f4f6;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
}

.myh-topbar {
    height: 64px;
    padding: 0 24px;
    background: #111827;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.myh-topbar span {
    margin-left: 12px;
    color: #cbd5e1;
    font-size: 13px;
}

.myh-topbar a {
    color: #fff;
    text-decoration: none;
    background: #d71920;
    padding: 10px 14px;
    font-weight: 700;
}

.myh-wrap {
    width: min(1180px, calc(100% - 32px));
    margin: 28px auto;
}

.myh-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 10px 24px rgba(15, 23, 42, .05);
}

.myh-card h1,
.myh-card h2 {
    margin: 0 0 18px;
    font-size: 22px;
}

.myh-grid-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.myh-full {
    grid-column: 1 / -1;
}

label {
    display: block;
    font-weight: 700;
    font-size: 13px;
}

input,
select,
textarea {
    width: 100%;
    margin-top: 7px;
    border: 1px solid #cbd5e1;
    padding: 10px 12px;
    min-height: 42px;
    background: #fff;
}

button {
    border: 0;
    background: #111827;
    color: #fff;
    padding: 11px 16px;
    font-weight: 800;
    cursor: pointer;
}

button:hover {
    background: #d71920;
}

.myh-danger {
    background: #991b1b;
}

.myh-inline-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.myh-inline-form select {
    min-width: 120px;
}

.myh-table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
    vertical-align: top;
}

th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

code {
    background: #f1f5f9;
    padding: 4px 6px;
}

.myh-status {
    display: inline-block;
    padding: 5px 8px;
    font-size: 12px;
    font-weight: 800;
}

.myh-status--active {
    background: #dcfce7;
    color: #166534;
}

.myh-status--expired,
.myh-status--suspended {
    background: #fef3c7;
    color: #92400e;
}

.myh-status--blocked {
    background: #fee2e2;
    color: #991b1b;
}

.myh-alert {
    padding: 14px 16px;
    margin-bottom: 18px;
    font-weight: 700;
}

.myh-alert--success {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.myh-alert--error {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.myh-login-body {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: #111827;
}

.myh-login {
    width: min(420px, calc(100% - 32px));
    background: #fff;
    padding: 28px;
}

.myh-login h1 {
    margin: 0 0 8px;
}

.myh-login p {
    color: #64748b;
}

.myh-login label {
    margin-top: 14px;
}

.myh-login button {
    width: 100%;
    margin-top: 18px;
    background: #d71920;
}

@media (max-width: 760px) {
    .myh-grid-form {
        grid-template-columns: 1fr;
    }

    .myh-topbar {
        height: auto;
        gap: 12px;
        padding: 16px;
        align-items: flex-start;
        flex-direction: column;
    }
}
