* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    color: #172033;
}

/* Header */

.ds-header {
    background: linear-gradient(120deg, #10213d, #244b79);
    border-bottom: 3px solid #4ba52e;
    color: #fff;
}

.ds-header-inner {
    max-width: 1400px;
    min-height: 86px;
    margin: 0 auto;
    padding: 12px 30px;

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

.ds-brand {
    display: flex;
    align-items: center;
    gap: 18px;
}

.ds-logo {
    display: block;
    width: auto;
    max-width: 230px;
    max-height: 60px;
}

.ds-brand-text {
    display: flex;
    flex-direction: column;
    padding-left: 18px;
    border-left: 1px solid rgba(255,255,255,.25);
}

.ds-brand-text span {
    color: #8dbdff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
}

.ds-brand-text strong {
    margin-top: 3px;
    color: #fff;
    font-size: 23px;
}

/* Navigation */

.ds-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.ds-nav a {
    color: #dfe8f5;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 10px 13px;
    border-radius: 6px;
}

.ds-nav a:hover {
    color: #fff;
    background: rgba(255,255,255,.10);
}

.ds-nav .logout {
    margin-left: 10px;
    border: 1px solid rgba(255,255,255,.25);
}

/* Content */

.ds-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 35px 30px 60px;
}

/* Cards */

.ds-card {
    background: #fff;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    padding: 26px;
    box-shadow: 0 4px 18px rgba(0,0,0,.04);
}

/* Responsive */

@media (max-width: 900px) {

    .ds-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .ds-nav {
        width: 100%;
        flex-wrap: wrap;
    }

    .ds-brand-text {
        display: none;
    }
}
/* Page headings */

.ds-page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    margin-bottom: 28px;
}

.ds-page-heading h1 {
    margin: 0 0 6px;
}

.ds-page-heading p {
    margin: 0;
    color: #677386;
}


/* Buttons */

.ds-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 16px;

    border: 1px solid #244b79;
    border-radius: 6px;

    background: #244b79;
    color: #fff;

    text-decoration: none;
    font-size: 14px;
    font-weight: 700;

    cursor: pointer;
}

.ds-button:hover {
    background: #1b3b62;
    color: #fff;
}

.ds-button-secondary {
    background: #fff;
    color: #244b79;
}

.ds-button-secondary:hover {
    background: #eef3f8;
    color: #172f50;
}


/* Notices */

.ds-notice {
    margin-bottom: 22px;
    padding: 13px 16px;

    border-radius: 7px;

    font-weight: 600;
}

.ds-notice-success {
    background: #e9f7ee;
    border: 1px solid #b9dfc6;
    color: #176b38;
}

.ds-notice-error {
    background: #fdecec;
    border: 1px solid #efb6b6;
    color: #8a1f1f;
}


/* Tables */

.ds-table-wrap {
    width: 100%;
    overflow-x: auto;
}

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

.ds-table th {
    padding: 13px 14px;

    border-bottom: 2px solid #e1e6ed;

    text-align: left;

    color: #697486;

    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.ds-table td {
    padding: 16px 14px;

    border-bottom: 1px solid #e5e9ef;

    vertical-align: middle;
}

.ds-table tbody tr:last-child td {
    border-bottom: 0;
}

.ds-table-actions {
    text-align: right;
}


/* Status badges */

.ds-badge {
    display: inline-block;

    padding: 5px 10px;

    border-radius: 20px;

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

.ds-badge-active {
    background: #e7f7ed;
    color: #176b38;
}

.ds-badge-inactive {
    background: #eef0f3;
    color: #596273;
}


/* Forms */

.ds-form-card {
    margin-top: 28px;
}

.ds-form-card h2 {
    margin-top: 0;
}

.ds-form-grid {
    display: grid;

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

    gap: 22px 26px;
}

.ds-form-grid label {
    display: block;
}

.ds-form-grid label > span {
    display: block;

    margin-bottom: 7px;

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

.ds-form-grid input[type="text"],
.ds-form-grid input[type="number"],
.ds-form-grid select {

    display: block;

    width: 100%;

    min-height: 42px;

    padding: 9px 11px;

    border: 1px solid #cbd2dc;
    border-radius: 6px;

    background: #fff;
    color: #172033;

    font-size: 14px;
}

.ds-form-grid input:focus,
.ds-form-grid select:focus {

    outline: none;

    border-color: #4c81bd;

    box-shadow:
        0 0 0 3px rgba(76,129,189,.12);
}

.ds-form-grid small {

    display: block;

    margin-top: 6px;

    color: #768195;

    line-height: 1.4;
}

.ds-checkbox-label {

    display: flex !important;

    align-items: center;

    gap: 9px;

    padding-top: 25px;
}

.ds-checkbox-label span {
    margin: 0 !important;
}

.ds-input-suffix {
    display: flex;
    align-items: stretch;
}

.ds-input-suffix input {
    border-radius: 6px 0 0 6px !important;
}

.ds-input-suffix span {

    display: flex;

    align-items: center;

    padding: 0 13px;

    border:
        1px solid #cbd2dc;

    border-left: 0;

    border-radius:
        0 6px 6px 0;

    background: #f4f6f9;

    color: #657083;

    font-size: 13px;
}

.ds-form-actions {

    display: flex;

    gap: 10px;

    margin-top: 28px;
}


/* Mobile */

@media (max-width: 760px) {

    .ds-page-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .ds-form-grid {
        grid-template-columns: 1fr;
    }

}

.ds-form-grid input[type="email"],
.ds-form-grid textarea {
    display: block;
    width: 100%;
    padding: 9px 11px;
    border: 1px solid #cbd2dc;
    border-radius: 6px;
    background: #fff;
    color: #172033;
    font-size: 14px;
    font-family: inherit;
}

.ds-form-grid input[type="email"] {
    min-height: 42px;
}

.ds-form-grid textarea {
    resize: vertical;
    min-height: 120px;
}

.ds-form-grid input[type="email"]:focus,
.ds-form-grid textarea:focus {
    outline: none;
    border-color: #4c81bd;
    box-shadow: 0 0 0 3px rgba(76,129,189,.12);
}

.ds-license-created {
    margin-bottom: 28px;
    border-left: 4px solid #4ba52e;
}

.ds-license-created h2 {
    margin: 0 0 6px;
}

.ds-license-created p {
    margin: 0 0 20px;
    color: #68758a;
}

.ds-license-key-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.ds-license-key-row code {
    display: block;
    flex: 1;
    padding: 15px 18px;
    border: 1px solid #cad4df;
    border-radius: 7px;
    background: #f4f7fa;
    color: #172033;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .08em;
}

.ds-badge-expired {
    background: #fff3cd;
    color: #805e00;
}

.ds-badge-suspended {
    background: #fde9ca;
    color: #7b4d00;
}

.ds-badge-revoked {
    background: #fdecec;
    color: #8a1f1f;
}

@media (max-width: 700px) {
    .ds-license-key-row {
        align-items: stretch;
        flex-direction: column;
    }
}

.ds-inline-form {
    display: inline-block;
    margin-left: 6px;
}

.ds-table-actions {
    white-space: nowrap;
}

.ds-legacy-note {
    margin-top: 5px;
    color: #8a6570;
    font-size: 11px;
    font-weight: 700;
}

.ds-license-summary {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 16px;
    background: #f4f7fa;
    border: 1px solid #dfe5ec;
    border-radius: 7px;
}

.ds-license-summary strong {
    font-family: monospace;
}

.ds-license-summary span {
    color: #697486;
}

.ds-badge-deactivated {
    background: #eef0f3;
    color: #596273;
}

.ds-badge-blocked {
    background: #fdecec;
    color: #8a1f1f;
}

.ds-button-danger {
    border-color: #a72c2c;
    background: #a72c2c;
    color: #fff;
}

.ds-button-danger:hover {
    border-color: #821f1f;
    background: #821f1f;
    color: #fff;
}

.ds-activation-search-card {
    margin-bottom: 20px;
}

.ds-activation-search-card label {
    display: block;
    margin-bottom: 8px;
}

.ds-activation-search-card input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #cbd2dc;
    border-radius: 7px;
    font-size: 14px;
}

.ds-activation-groups {
    display: grid;
    gap: 16px;
}

.ds-activation-customer {
    overflow: hidden;
    border: 1px solid #dfe4ea;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 4px 18px rgba(0,0,0,.035);
}

.ds-activation-customer-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 0;
    background: #fff;
    color: #172033;
    text-align: left;
    cursor: pointer;
}

.ds-activation-customer-toggle:hover {
    background: #f8fafc;
}

.ds-activation-customer-toggle strong {
    display: block;
    font-size: 17px;
}

.ds-activation-customer-toggle span {
    display: block;
    margin-top: 4px;
    color: #6c7789;
    font-size: 13px;
}

.ds-activation-chevron {
    margin: 0 !important;
    color: #5f6d80 !important;
    font-size: 18px !important;
    transition: transform .2s ease;
}

.ds-activation-customer.is-open
.ds-activation-chevron {
    transform: rotate(180deg);
}

.ds-activation-customer-body {
    display: none;
    padding: 0 20px 20px;
    border-top: 1px solid #e5e9ef;
}

.ds-activation-customer.is-open
.ds-activation-customer-body {
    display: block;
}

.ds-activation-product {
    margin-top: 18px;
}

.ds-activation-product-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.ds-activation-product-heading strong {
    font-size: 14px;
}

.ds-activation-product-heading span {
    color: #6c7789;
    font-size: 12px;
}

.ds-activation-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 16px;
    border: 1px solid #e2e6ec;
    border-radius: 8px;
    background: #f9fafc;
}

.ds-activation-item + .ds-activation-item {
    margin-top: 10px;
}

.ds-activation-main {
    min-width: 0;
    flex: 1;
}

.ds-activation-site strong {
    display: block;
    overflow-wrap: anywhere;
}

.ds-activation-site code {
    display: inline-block;
    margin-top: 5px;
    color: #5f6b7c;
}

.ds-activation-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-top: 12px;
    color: #6a7586;
    font-size: 12px;
}

.ds-activation-meta strong {
    color: #27364c;
}

.ds-activation-actions {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

@media (max-width: 900px) {

    .ds-activation-item {
        align-items: stretch;
        flex-direction: column;
    }

    .ds-activation-actions {
        justify-content: flex-start;
    }

}
