/* organizations.css - extracted and optimized from Organizations.razor */
:root {
    --text-dark: #1E293B;
    --muted: #6C757D;
    --muted-2: #9CA3AF;
    --border: #E0E6EB;
    --bg: #ffffff;
}

/* HEADERS */
.cl-header {
    margin-bottom: 1.2rem
}

.cl-title {
    font-size: 22px;
    font-weight: 600;
    color: var(--text-dark)
}

.cl-subtitle {
    color: var(--muted);
    margin-top: 2px;
    font-size: 14px
}

/* EMPTY STATE */
.cl-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--muted)
}

.cl-empty-icon {
    font-size: 40px;
    color: #8392a5;
    margin-bottom: .75rem
}

/* ORG LIST */
.org-list {
    display: flex;
    flex-direction: column;
    gap: .75rem
}

/* ORG ITEM (card) */
.org-item {
    display: flex;
    align-items: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: .35rem 1rem;
    ap: 1rem;
    cursor: pointer;
    transition: background .15s ease,box-shadow .15s ease
}

    .org-item:hover {
        background: #F8FAFC
    }

/* LOGO WRAPPER */
.org-logo-wrap {
    width: 100px;
    height: 65px;
    margin-right: 10px;
    border-radius: 16px;
    background: var(--bg);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden
}

.org-logo-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain
}

.org-logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--muted-2);
    font-size: 28px;
    background: #EEF1F5
}

/* INFO */
.org-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column
}

.org-name {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 16px
}

.org-location {
    font-size: 13px;
    color: var(--muted);
    margin-top: 1px
}

/* TEXT TRUNCATION */
.truncate {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
}

/* CHEVRON BUTTON */
.org-chevron {
    border-radius: 50% !important;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center
}

    .org-chevron:hover {
        background: #E5EAF1 !important
    }


.org-hero {
    width: 100%;
    height: 120px; /* smaller */
    
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 1px solid #d9d9d9;
    border-start-end-radius: 15px;
    border-start-start-radius: 15px;
}

.org-hero-logo {
    height: 100px; /* originally 80px — now appropriate */
    object-fit: contain;
}

.org-info-card {
    background: white;
    border-radius: 16px;
    margin: .5rem;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.org-title {
    font-size: 1.25rem;
    padding: .25rem 1rem;
    padding-top: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.org-sub {
    padding: 0rem 1rem;
    margin: 4px 0 10px 0;
    color: #6c757d;
    white-space: pre-wrap;
}

.org-meta-row {
    padding: 0rem 1rem;
    padding-bottom: 1rem;
    font-size: 0.9rem;
    color: #1e293b;
    display: flex;
    gap: 1.5rem;
}

.org-segmented-nav {
    display: flex;
    justify-content: space-around;
    margin: 1rem .5rem 1.25rem .5rem;
    background: #f1f5f9;
    border-radius: 14px;
    padding: 4px;
}

.seg-btn {
    flex: 1;
    padding: 0.5rem 0;
    border-radius: 12px;
    border: none;
    background: transparent;
    font-size: 0.9rem;
    color: #1e293b;
    font-weight: 600;
    transition: 0.2s ease;
}

    .seg-btn.active {
        background: white;
        color: #70affb;
        box-shadow: 0 2px 6px rgba(0,0,0,0.08);
    }



/* OWNERS */
.owner-card {
    background: white;
    border-radius: 12px;
    padding: .75rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    margin-bottom: .5rem;
}

.owner-name {
    font-weight: 600;
}

.owner-email {
    font-size: .85rem;
    color: #6b7280;
}

.badge-primary {
    background: #70affb;
    color: white;
    padding: 3px 10px;
    border-radius: 10px;
    font-size: .75rem;
}

/* SETTINGS MENU LINKS */
.settings-menu-links {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin-top: 1rem;
}

.settings-link {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    cursor: pointer;
}

    .settings-link i {
        font-size: 20px;
        color: #475569;
    }

    .settings-link span {
        font-weight: 500;
    }


/* CARD CONTAINER */
.cl-usage-card {
    background: #FFFFFF;
    border-radius: 20px;
    padding: 1.4rem 1.6rem;
    margin: .5rem;
    margin-top: 1.5rem;
    border: 1px solid #E0E6EB;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

/* HEADER */
.cl-usage-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}

.cl-usage-title {
    margin: 0;
    font-weight: 700;
    color: #1E293B;
}

.cl-usage-plan {
    font-size: 0.9rem;
    color: #6C757D;
}

/* USAGE SECTION */
.cl-usage-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* EACH ROW */
.cl-usage-row {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

/* LABELS */
.cl-usage-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    font-weight: 600;
    color: #1E293B;
}

.cl-usage-value {
    color: #6C757D;
}

/* PROGRESS BAR */
.cl-usage-bar {
    width: 100%;
    background: #F1F5F9;
    height: 9px;
    border-radius: 50px;
    overflow: hidden;
    border: 1px solid #E0E6EB;
}

.cl-usage-fill {
    height: 100%;
    background: #70AFFB; /* CoachLink primary */
    border-radius: 50px;
    transition: width 0.3s ease;
}

/* BUTTON */
.cl-usage-manage-btn {
    width: 100%;
    margin-top: 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    padding: 0.6rem 1rem;
    background-color: #70AFFB !important;
    border: none !important;
}
.client-mini-actions .rz-button {
    padding: 4px 10px !important;
    font-size: 0.75rem !important;
    line-height: 1 !important;
    border-radius: 12px !important;
    background: #70AFFB !important; /* CoachLink blue */
    color: #fff !important;
    border: none !important;
    height: auto !important;
    white-space: nowrap;
}
/* Container fix */
.client-mini-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
    margin-right: .35rem;
}

    /* Compact “tag button” style */
    .client-mini-actions .rz-button {
        background: #70AFFB !important;
        color: white !important;
        border: none !important;
        font-size: 0.70rem !important;
        padding: 3px 10px !important;
        border-radius: 12px !important;
        height: 22px !important; /* FIXES vertical size */
        display: flex;
        align-items: center;
        line-height: 1 !important;
        box-shadow: none !important;
        white-space: nowrap;
    }
