* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f6f8;
    color: #20242a;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

.topbar {
    height: 72px;
    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    background: #111820;
    color: #fff;
}

.brand {
    font-size: 21px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.subtitle {
    margin-top: 2px;
    color: #aeb7c2;
    font-size: 12px;
}

.mode {
    padding: 7px 11px;

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

    color: #adb8c5;
    font-size: 11px;
    font-weight: 700;
}

.container {
    max-width: 1600px;
    margin: auto;
    padding: 32px;
}

.page-header {
    margin-bottom: 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-header h1 {
    margin: 0;
    font-size: 29px;
}

.page-header p {
    margin: 6px 0 0;
    color: #777f89;
}

.stats {
    display: grid;
    grid-template-columns:
        repeat(auto-fit, minmax(150px, 1fr));

    gap: 14px;
    margin-bottom: 24px;
}

.stat-card {
    padding: 19px;

    background: white;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
}

.stat-card span {
    color: #707985;
    font-size: 12px;
}

.stat-card strong {
    display: block;
    margin-top: 8px;

    font-size: 27px;
}

.stat-card.success strong {
    color: #138a54;
}

.stat-card.suspended strong {
    color: #bf4141;
}

.stat-card.warning strong {
    color: #bf7d18;
}

.panel {
    background: white;
    border: 1px solid #e3e6ea;
    border-radius: 10px;
    overflow: hidden;
}

.filters {
    padding: 17px;

    display: grid;
    grid-template-columns:
        minmax(260px, 2fr)
        repeat(3, minmax(160px, 1fr));

    gap: 10px;

    border-bottom: 1px solid #e9ebee;
}

input,
select,
textarea {
    width: 100%;
    padding: 10px 12px;

    border: 1px solid #d7dce2;
    border-radius: 7px;

    background: #fff;
    color: #222;

    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: #78899b;
}

.table-info {
    padding: 10px 17px;

    background: #fafbfc;
    border-bottom: 1px solid #eceef1;

    color: #68717c;
    font-size: 12px;
}

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

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    padding: 11px 13px;

    text-align: left;

    background: #f7f8fa;
    border-bottom: 1px solid #e1e5e9;

    color: #65707c;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .3px;
}

td {
    padding: 12px 13px;

    border-bottom: 1px solid #edf0f2;

    vertical-align: middle;
    font-size: 13px;
}

tr:hover td {
    background: #fafbfc;
}

.customer-name {
    max-width: 360px;
    font-weight: 600;
}

.code {
    margin-top: 3px;
    color: #7c8490;
    font-size: 11px;
}

.mono {
    font-family:
        "SFMono-Regular",
        Consolas,
        monospace;

    font-size: 12px;
}

.secondary-text {
    margin-top: 4px;
    color: #8a929c;
    font-size: 11px;
}

.badge {
    display: inline-block;

    padding: 5px 8px;

    border-radius: 999px;

    background: #eef1f4;

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

.badge.active {
    background: #e6f5ed;
    color: #147449;
}

.badge.suspended {
    background: #faeaea;
    color: #a73434;
}

.badge.review {
    background: #fff3db;
    color: #986516;
}

.badge.unclassified {
    background: #fff0ce;
    color: #8d641c;
}

.badge.paid {
    background: #e8f1ff;
    color: #2c61a6;
}

.badge.free {
    background: #eee9ff;
    color: #6746ad;
}

.link-button {
    padding: 0;

    border: none;
    background: transparent;

    color: #315f99;
    cursor: pointer;

    font: inherit;
    font-weight: 600;
}

.button {
    padding: 10px 15px;

    border: none;
    border-radius: 7px;

    background: #ee7619;
    color: white;

    cursor: pointer;
    font-weight: 700;
}

.button:disabled {
    opacity: .55;
    cursor: wait;
}

.button.secondary {
    background: #e8ebef;
    color: #3e4650;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 100;

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

    padding: 20px;

    background: rgba(12, 16, 21, .58);
}

.modal.hidden {
    display: none;
}

.modal-card {
    width: min(520px, 100%);

    padding: 24px;

    background: white;
    border-radius: 12px;

    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}

.modal-header {
    margin-bottom: 22px;

    display: flex;
    justify-content: space-between;
}

.modal-header h2 {
    margin: 0 0 4px;
}

.modal-header span {
    color: #79828d;
    font-size: 13px;
}

.close {
    border: none;
    background: transparent;

    color: #747d87;

    cursor: pointer;
    font-size: 25px;
}

form label {
    display: block;

    margin: 15px 0 7px;

    color: #525b65;

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

.modal-actions {
    margin-top: 22px;

    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

@media (max-width: 900px) {
    .container {
        padding: 18px;
    }

    .filters {
        grid-template-columns: 1fr;
    }

    .page-header {
        align-items: flex-start;
        gap: 16px;
        flex-direction: column;
    }
}

.info-button {
    width: 20px;
    height: 20px;
    margin-left: 5px;
    padding: 0;

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

    border: 1px solid #cbd2da;
    border-radius: 50%;

    background: #fff;
    color: #66727f;

    font-size: 12px;
    font-weight: 800;
    font-style: normal;
    line-height: 1;

    cursor: pointer;
}

.info-button:hover {
    border-color: #ee7619;
    color: #ee7619;
    background: #fff8f2;
}

.help-modal-text {
    margin-top: 12px;

    color: #434b55;
    font-size: 14px;
    line-height: 1.6;
}

.help-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.help-modal-icon {
    width: 28px;
    height: 28px;

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

    border-radius: 50%;

    background: #fff3e9;
    color: #ee7619;

    font-weight: 800;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 18px;
}

.language-switcher {
    display: flex;
    align-items: center;
    gap: 5px;
}

.language-link {
    padding: 2px 4px;

    border: none;
    background: transparent;

    color: #8f9aa6;

    cursor: pointer;

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

.language-link.active {
    color: #ee7619;
}

.language-link:hover {
    color: #fff;
}

.user-block {
    display: flex;
    flex-direction: column;

    text-align: right;
}

.user-block strong {
    color: #fff;

    font-size: 12px;
}

.user-block span {
    margin-top: 2px;

    color: #949faa;

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

    letter-spacing: .5px;
}

.logout-button {
    padding: 7px 9px;

    border: 1px solid #3d4752;
    border-radius: 6px;

    background: transparent;
    color: #c5ccd4;

    cursor: pointer;

    font-size: 11px;
}

.logout-button:hover {
    border-color: #ee7619;
    color: #fff;
}

.action-with-info {
    display: flex;
    align-items: center;
    gap: 6px;
}


/* LOGIN */

.login-page {
    min-height: 100vh;

    background:
        linear-gradient(
            135deg,
            #10171f 0%,
            #18232e 100%
        );
}

.login-wrapper {
    min-height: 100vh;

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

    padding: 25px;
}

.login-card {
    width: min(420px, 100%);

    padding: 38px;

    background: #fff;

    border-radius: 14px;

    box-shadow:
        0 25px 70px
        rgba(0, 0, 0, .3);
}

.login-brand {
    margin-bottom: 27px;

    color: #ee7619;

    font-size: 22px;
    font-weight: 800;

    letter-spacing: 1.5px;
}

.login-card h1 {
    margin: 0;

    font-size: 27px;
}

.login-subtitle {
    margin: 7px 0 24px;

    color: #7a838d;

    font-size: 13px;
}

.login-card label {
    display: block;

    margin: 17px 0 7px;

    color: #555e68;

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

.login-button {
    width: 100%;

    margin-top: 24px;

    padding: 12px;
}

.login-error {
    padding: 11px 13px;

    margin-bottom: 17px;

    border-radius: 7px;

    background: #fbeaea;
    color: #9e3434;

    font-size: 12px;
}

.login-language {
    position: fixed;
    top: 20px;
    right: 25px;

    z-index: 10;

    color: #798692;
}

.login-language .language-link.active {
    color: #ee7619;
}

.login-language .language-link:hover {
    color: white;
}


@media (max-width: 850px) {

    .topbar {
        height: auto;

        padding: 16px 18px;

        align-items: flex-start;
    }

    .topbar-right {
        flex-wrap: wrap;

        justify-content: flex-end;

        gap: 10px;
    }

    .mode {
        display: none;
    }

    .user-block {
        display: none;
    }
}
