/* Shared catalogue layout (work-requests / customers / customer-services parity). Global so styles load without scoped-css bundle timing. */

.tc-cust-all__stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.tc-cust-all__my-services {
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(165deg, #fdfefe 0%, #f6f8fb 45%, #eef2f7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 2px 10px rgba(18, 38, 63, 0.05);
}

.tc-cust-all__my-services-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.4rem 1rem;
    margin-bottom: 0.85rem;
}

.tc-cust-all__my-services-title {
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4a5a6e;
}

.tc-cust-all__my-services-hint {
    font-size: 0.8rem;
    color: #8b9aad;
}

.tc-cust-all__my-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr));
    gap: 0.85rem;
}

.tc-cust-all__my-services-card {
    background: linear-gradient(145deg, var(--tc-surface, #fff) 0%, #f8fafc 100%);
    border: 1px solid var(--tc-border-color, #dbe3ec);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    box-shadow: 0 2px 8px rgba(18, 38, 63, 0.05);
}

.tc-cust-all__my-services-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--tc-text-primary, #1f2d3d);
    margin-bottom: 0.6rem;
}

.tc-cust-all__my-services-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.tc-cust-all__my-services-pill {
    font-size: 0.76rem;
    font-weight: 650;
    padding: 4px 10px;
    border-radius: 9999px;
    border: 1px solid transparent;
    white-space: nowrap;
}

.tc-cust-all__my-services-pill--unpaid {
    background: #fff3cd;
    color: #856404;
    border-color: #ffeaa7;
}

.tc-cust-all__my-services-pill--paid {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}

.tc-cust-all__stat {
    position: relative;
    background: linear-gradient(145deg, var(--tc-surface, #fff) 0%, #f8fafc 100%);
    border: 1px solid var(--tc-border-color, #dbe3ec);
    border-radius: 12px;
    padding: 1rem 1.1rem;
    box-shadow: 0 2px 8px rgba(18, 38, 63, 0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.tc-cust-all__stat:hover {
    box-shadow: 0 6px 18px rgba(18, 38, 63, 0.08);
    border-color: #c5d3e2;
}

.tc-cust-all__stat--total {
    border-top: 3px solid #6b7788;
    background: linear-gradient(165deg, #fbfcfd 0%, #f0f3f8 100%);
}

.tc-cust-all__stat--total .tc-cust-all__stat-icon {
    color: #6b7788;
}

.tc-cust-all__stat--active {
    border-top: 3px solid #5f8574;
    background: linear-gradient(165deg, #fafcfb 0%, #f1f6f3 100%);
}

.tc-cust-all__stat--active .tc-cust-all__stat-icon {
    color: #5f8574;
}

.tc-cust-all__stat--inactive {
    border-top: 3px solid #8f7e62;
    background: linear-gradient(165deg, #fcfcfa 0%, #f7f5f0 100%);
}

.tc-cust-all__stat--inactive .tc-cust-all__stat-icon {
    color: #8f7e62;
}

.tc-cust-all__stat--vip {
    border-top: 3px solid #946c6c;
    background: linear-gradient(165deg, #fcfaf9 0%, #f8f3f3 100%);
}

.tc-cust-all__stat--vip .tc-cust-all__stat-icon {
    color: #946c6c;
}

.tc-cust-all__stat--individual {
    border-top: 3px solid #5a7194;
    background: linear-gradient(165deg, #fafbfd 0%, #f2f5fa 100%);
}

.tc-cust-all__stat--individual .tc-cust-all__stat-icon {
    color: #5a7194;
}

.tc-cust-all__stat--tax {
    border-top: 3px solid #6d7a96;
    background: linear-gradient(165deg, #fafbfc 0%, #f3f4f9 100%);
}

.tc-cust-all__stat--tax .tc-cust-all__stat-icon {
    color: #6d7a96;
}

.tc-cust-all__stat-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.tc-cust-all__stat-label {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--tc-text-muted, #6b7c93);
    line-height: 1.3;
}

.tc-cust-all__stat-icon {
    font-size: 1.35rem !important;
    color: #94a3b8;
    opacity: 0.85;
}

.tc-cust-all__stat-value {
    font-size: 1.65rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--tc-text-primary, #1f2d3d);
    line-height: 1.15;
    margin-bottom: 0.25rem;
}

.tc-cust-all__stat-hint {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--tc-text-muted, #6b7c93);
}

.tc-cust-all__stat-hint--muted {
    color: #8b9aad;
}

.tc-cust-all__stat-hint--up {
    color: #047857;
}

.tc-cust-all__stat-hint--warn {
    color: #b45309;
}

.tc-cust-all .tc-card.tc-cust-all__card,
.tc-cust-all .tc-card.tc-cs-work__notes-card {
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(18, 38, 63, 0.07);
}

.tc-cust-all .tc-card__header .tc-card__subtitle:first-child {
    margin-top: 0;
}

.tc-cust-all__toolbar {
    margin-bottom: 1.15rem;
}

.tc-cust-all__toolbar-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 1rem 1.35rem;
    padding: 1.05rem 1.2rem 1.15rem;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    background: linear-gradient(165deg, #fdfefe 0%, #f4f7fb 42%, #eef2f7 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 2px 10px rgba(18, 38, 63, 0.05);
}

.tc-cust-all__toolbar-zone--filters {
    flex: 1 1 280px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tc-cust-all__toolbar-zone--actions {
    flex: 0 0 auto;
    min-width: 11.5rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.tc-cust-all__toolbar-zone-head {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.tc-cust-all__toolbar-zone-head--compact {
    margin-bottom: 0.15rem;
}

.tc-cust-all__toolbar-zone-icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #e8edf4;
    color: #5a6b82;
    box-shadow: 0 1px 2px rgba(18, 38, 63, 0.06);
}

.tc-cust-all__toolbar-zone-icon .rz-icon {
    font-size: 1.2rem !important;
}

.tc-cust-all__toolbar-zone-icon--actions {
    background: linear-gradient(145deg, hsl(48, 100%, 97%) 0%, hsl(43, 62%, 92%) 100%);
    color: hsl(43, 55%, 38%);
    border: 1px solid hsl(43, 42%, 82%);
}

.tc-cust-all__toolbar-zone-title {
    display: block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #5c6c80;
}

.tc-cust-all__toolbar-zone-hint {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.78rem;
    line-height: 1.35;
    color: #8b9aad;
    max-width: 22rem;
}

.tc-cust-all__toolbar-filters-body {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tc-cust-all__toolbar-rail {
    flex: 0 0 2px;
    width: 2px;
    align-self: stretch;
    min-height: 5.5rem;
    border-radius: 2px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        hsl(43, 50%, 88%) 12%,
        hsl(43, 58%, 68%) 50%,
        hsl(43, 50%, 88%) 88%,
        transparent 100%
    );
    opacity: 0.92;
}

.tc-cust-all__toolbar-actions-btns {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.tc-cust-all__toolbar-actions-btns .rz-button {
    width: 100%;
    justify-content: center;
}

@media (max-width: 800px) {
    .tc-cust-all__toolbar-rail {
        display: none;
    }

    .tc-cust-all__toolbar-zone--actions {
        flex: 1 1 100%;
        width: 100%;
        padding-top: 1rem;
        border-top: 2px solid hsl(43, 38%, 88%);
    }

    .tc-cust-all__toolbar-actions-btns {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .tc-cust-all__toolbar-actions-btns .rz-button {
        width: auto;
        flex: 1 1 10rem;
        min-width: 8rem;
    }
}

.tc-cust-all .tc-cust-all__create-btn.rz-button {
    background: hsl(43, 74%, 42%);
    color: #fff;
    border: none;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.55rem 1rem;
    box-shadow: 0 2px 8px rgba(18, 38, 63, 0.14);
}

.tc-cust-all .tc-cust-all__create-btn.rz-button:hover {
    filter: brightness(1.06);
    box-shadow: 0 4px 12px rgba(18, 38, 63, 0.16);
}

.tc-cust-all .tc-cust-all__secondary-btn.rz-button {
    border: 1px solid #d8e0ea;
    background: rgba(255, 255, 255, 0.85);
    color: #4a5a6e;
    font-weight: 600;
    border-radius: 10px;
    padding: 0.45rem 0.85rem;
}

.tc-cust-all .tc-cust-all__secondary-btn.rz-button:hover {
    background: #fff;
    border-color: #c5d0de;
}

.tc-cust-all__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    padding: 0.4rem 0.85rem;
    background: #f4f7fb;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tc-cust-all__search:focus-within {
    border-color: #93b4d4;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
    background: var(--tc-surface, #fff);
}

.tc-cust-all__search-icon {
    font-size: 1.15rem !important;
    color: #8b9aad;
    flex-shrink: 0;
}

.tc-cust-all__search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: var(--tc-text-primary, #1f2d3d);
    outline: none;
}

.tc-cust-all__search-input::placeholder {
    color: #9aa8bc;
}

/* Customer services table (same density as work-requests grid) */
.tc-cs-work__table-wrap {
    border-radius: 14px;
    border: 1px solid #e8edf3;
    overflow: auto;
    background: #fff;
    box-shadow: 0 2px 10px rgba(18, 38, 63, 0.06);
}

.tc-cs-work__cd-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    background: var(--tc-surface, #fff);
}

.tc-cs-work__cd-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f8fafc;
    border-bottom: 1px solid #e8edf3;
    color: #6b7c93;
    font-weight: 800;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.65rem 0.85rem;
    white-space: nowrap;
    text-align: left;
}

.tc-cs-work__cd-table tbody td {
    border-bottom: 1px solid #eef2f6;
    padding: 0.6rem 0.85rem;
    font-size: 0.875rem;
    color: #1f2d3d;
    vertical-align: middle;
}

.tc-cs-work__cd-table tbody tr:nth-child(even) td {
    background: #fbfcfe;
}

.tc-cs-work__cd-table tbody tr:hover td {
    background: #f6f8fb;
}

.tc-cs-work__pager {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 0.85rem;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    border: 1px solid #e8edf3;
    background: linear-gradient(165deg, #fdfefe 0%, #f6f8fb 100%);
    flex-wrap: wrap;
}

.tc-cs-work__pager-summary,
.tc-cs-work__pager-page,
.tc-cs-work__pager-size {
    font-size: 0.85rem;
    color: #4a5a6e;
    font-weight: 600;
}

.tc-cs-work__pager-right {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.tc-cs-work__pager-size {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.tc-cs-work__pager-select {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.35rem 0.5rem;
    background: #fff;
    font-size: 0.85rem;
}

.tc-cs-work .cd-primary-btn {
    background: hsl(43, 74%, 42%);
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(18, 38, 63, 0.14);
}

.tc-cs-work .cd-primary-btn:hover {
    filter: brightness(1.06);
}

.tc-cs-work .cd-primary-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
