/* Focused customer and administrator workspaces. */
.ch-customer-hero,
.ch-admin-hero {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 26px;
    padding: 12px 0 34px;
}

.ch-customer-hero h1,
.ch-admin-hero h1 {
    margin: 10px 0 7px;
    color: #172554;
    font-size: 36px;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.ch-customer-hero p,
.ch-admin-hero p {
    margin: 0;
    color: #667085;
    font-size: 13px;
}

.ch-customer-hero__actions {
    display: flex;
    gap: 9px;
    align-items: center;
}

.ch-customer-hero__actions .ch-button--ghost {
    min-height: 44px;
}

.ch-customer-hero__actions b {
    display: inline-grid;
    place-items: center;
    min-width: 19px;
    height: 19px;
    border-radius: 50%;
    background: #eef4ff;
    color: #1fa8f8;
    font: 700 10px Inter;
}

.ch-customer-focus {
    padding: 27px;
    background: #fff;
    border: 1px solid #e1e8f3;
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(16, 45, 95, 0.045);
}

.ch-customer-focus__head,
.ch-customer-history__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 18px;
}

.ch-customer-focus h2 {
    margin: 8px 0 0;
    color: #172554;
    font-size: 24px;
    letter-spacing: -0.7px;
}

.ch-current-order {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 15px;
    padding: 17px;
    border-radius: 12px;
    background: #f8fbff;
    color: #101828;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.ch-current-order:hover {
    background: #f0f6ff;
    transform: translateY(-1px);
    color: #101828;
}

.ch-current-order__icon {
    height: 48px;
    width: 48px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    background: #e4eeff;
    color: #1fa8f8;
    font-size: 23px;
}

.ch-current-order__main span,
.ch-current-order__main strong,
.ch-current-order__main small,
.ch-current-order__status small {
    display: block;
}

.ch-current-order__main span,
.ch-current-order__main small,
.ch-current-order__status small {
    color: #667085;
    font-size: 10px;
}

.ch-current-order__main strong {
    margin: 2px 0;
    color: #172554;
    font-size: 15px;
}

.ch-current-order__status {
    display: grid;
    justify-items: end;
    gap: 6px;
    text-align: right;
}

.ch-current-order__arrow {
    color: #1fa8f8;
    font: 400 20px Arial;
}

.ch-customer-empty {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px 18px;
    border-radius: 12px;
    background: #f8fbff;
}

.ch-customer-empty > span {
    width: 42px;
    height: 42px;
    flex: none;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: #eef4ff;
    color: #1fa8f8;
    font-size: 20px;
}

.ch-customer-empty strong { display: block; color: #172554; font-size: 13px; }
.ch-customer-empty p { margin: 2px 0 0; color: #667085; font-size: 11px; }
.ch-customer-empty .ch-button { margin-left: auto; white-space: nowrap; }

.ch-customer-history { margin-top: 28px; }
.ch-customer-history__head h2 { margin: 0; color: #172554; font-size: 19px; }
.ch-customer-history__list { display: grid; gap: 7px; }
.ch-customer-history__list a {
    display: grid;
    grid-template-columns: 78px minmax(0, 1fr) max-content 16px;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    border: 1px solid #e4eaf2;
    border-radius: 11px;
    background: #fff;
    color: #101828;
    text-decoration: none;
}

.ch-customer-history__list a:hover { border-color: #bfd1f5; background: #fbfdff; }
.ch-customer-history__list span { color: #98a2b3; font: 700 10px Inter; }
.ch-customer-history__list strong { color: #344054; font-size: 12px; }
.ch-customer-history__list i { color: #1fa8f8; font: 400 17px Arial; font-style: normal; }

.ch-admin-hero { padding-bottom: 27px; }

.ch-admin-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 11px;
    margin-bottom: 17px;
}

.ch-admin-metrics > div {
    padding: 15px 17px;
    border: 1px solid #e1e8f3;
    border-radius: 12px;
    background: #fff;
}

.ch-admin-metrics span,
.ch-admin-metrics strong { display: block; }
.ch-admin-metrics span { color: #667085; font-size: 10px; }
.ch-admin-metrics strong {
    margin-top: 4px;
    color: #172554;
    font: 700 22px Inter;
}

.ch-admin-order-table {
    overflow: hidden;
    border: 1px solid #e1e8f3;
    border-radius: 13px;
    background: #fff;
}

.ch-admin-order-table__head,
.ch-admin-order-row {
    display: grid;
    grid-template-columns: 90px minmax(190px, 1.25fr) 145px minmax(190px, 1fr) 62px;
    gap: 14px;
    align-items: center;
    padding: 13px 17px;
}

.ch-admin-order-table__head {
    background: #f8fafc;
    color: #667085;
    font: 500 10px var(--ch-font-title);
}

.ch-admin-order-row { border-top: 1px solid #edf1f6; }
.ch-admin-order-row > div strong,
.ch-admin-order-row > div small { display: block; }
.ch-admin-order-row > div strong { color: #344054; font-size: 11px; }
.ch-admin-order-row > div small { margin-top: 2px; color: #98a2b3; font-size: 10px; }
.ch-admin-order-row > div:first-child strong { color: #1fa8f8; font-family: Inter; }

.ch-admin-order-row form {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.ch-admin-order-row select,
.ch-admin-order-row input {
    border: 1px solid #d6deea;
    border-radius: 9px;
    min-width: 0;
    padding: 8px;
}

.ch-admin-order-row select {
    font-size: 10px;
    width: min(145px, 100%);
}

.ch-admin-order-row input {
    width: 100%;
    min-width: 120px;
    font: 500 10px 'Noto Sans Georgian',Arial,sans-serif;
}

.ch-admin-order-row button {
    border: 0;
    border-radius: 7px;
    background: #eef4ff;
    color: #1fa8f8;
    padding: 0 8px;
    font: 500 10px var(--ch-font-title);
    cursor: pointer;
}

.ch-admin-order-actions {
    display: grid;
    gap: 7px;
}

.ch-admin-order-closed {
    color: #667085;
    font-size: 11px;
}

.ch-admin-order-open {
    color: #1fa8f8;
    text-decoration: none;
    font: 500 10px var(--ch-font-title);
    white-space: nowrap;
}

.ch-admin-order-toolbar {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ch-admin-tab {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid #d8e2ef;
    border-radius: 8px;
    padding: 7px 11px;
    color: #475467;
    font: 700 10px var(--ch-font-title);
    text-decoration: none;
    white-space: nowrap;
}

.ch-admin-tab.is-active {
    color: #1fa8f8;
    border-color: #9ec2eb;
    background: #eef4ff;
}

.ch-team-list--simple .ch-team-list__head,
.ch-team-list--simple .ch-team-row {
    grid-template-columns: 1.55fr 1.25fr .7fr .9fr;
}

.ch-team-list--simple .ch-team-row__actions { justify-content: flex-start; }

@media (max-width: 900px) {
    .ch-admin-order-table { overflow: auto; }
    .ch-admin-order-table__head,
    .ch-admin-order-row {
        min-width: 720px;
    }
    .ch-customer-hero,
    .ch-admin-hero { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 640px) {
    .ch-customer-hero h1,
    .ch-admin-hero h1 { font-size: 29px; }
    .ch-customer-hero__actions {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .ch-customer-hero__actions .ch-button { width: 100%; }
    .ch-customer-focus { padding: 20px; }
    .ch-current-order {
        grid-template-columns: 42px minmax(0, 1fr) 16px;
        gap: 11px;
    }
    .ch-current-order__icon { width: 42px; height: 42px; }
    .ch-current-order__status { display: none; }
    .ch-customer-empty {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .ch-customer-empty .ch-button {
        width: 100%;
        margin: 3px 0 0;
    }
    .ch-customer-history__list a {
        grid-template-columns: 64px minmax(0, 1fr) 16px;
    }
    .ch-customer-history__list b { display: none; }
    .ch-admin-metrics {
        grid-template-columns: repeat(3, 1fr);
        gap: 7px;
    }
    .ch-admin-metrics > div { padding: 12px; }
    .ch-admin-metrics strong { font-size: 18px; }

    .ch-admin-order-row form {
        flex-direction: column;
        align-items: flex-start;
    }

    .ch-admin-order-row input,
    .ch-admin-order-row select,
    .ch-admin-order-row button {
        width: 100%;
        justify-content: center;
    }
}
