.tm-session-debug {
    display: inline-block;
    margin-left: 1rem;
    background: #fff3cd;
    color: #533f03;
    border: 1px solid #ffe69c;
    border-radius: 0.4rem;
    font-size: 0.75rem;
}

/* dot notifications in menus */
.tm-nav-icon,
.tm-nav-link-label {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    position: relative;
}
.tm-nav-icon .tm-nav-dot {
    position: absolute;
    top: -0.15rem;
    right: -0.35rem;
}
.tm-nav-dot {
    width: 0.75rem;
    height: 0.75rem;
    background: #e53935;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px #fff;
}
/* dot notifications in menus */

.tm-directory-field--text {
    flex-wrap: nowrap;
    align-items: flex-start;
}

.tm-directory-field--text i {
    margin-top: 0.2rem;
    align-self: flex-start;
}

.tm-directory-field--text span {
    flex: 1;
    min-width: 0;
}

.tm-profile-view {
    display: flex;
    flex-direction: column;
/*    gap: 2rem;*/
    margin-bottom: 3rem;
}

.tm-directory-field--stack {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: flex-start;
    margin-top: 2rem;
    margin-left: 2rem;
}

.tm-directory-field-line {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    width: 100%;
    line-height: 1.3;
}

.tm-directory-field-line i {
    width: 1rem;
    text-align: center;
    flex-shrink: 0;
    color: #94a3b8;
}

.tm-directory-name {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: var(--tm-directory-name-width);
}

@media (max-width: 576px) {
    .tm-directory-name {
        max-width: 100%;
    }
}

/* Unified Action Card Pattern for Small/Confirmation Pages */
.action-card {
    max-width: 620px;
    margin: 2rem auto;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
    border: none;
    overflow: hidden;
}

.action-card-header {
    padding: 1.5rem 2rem 1rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.action-eyebrow {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 0.25rem;
}

.action-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.action-subtitle {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.action-card-body {
    padding: 1.5rem 2rem;
}

.action-summary {
    background: #f8fafc;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.action-summary-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.action-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.action-summary-item:last-child {
    border-bottom: none;
}

.action-summary-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.action-summary-value {
    font-size: 0.875rem;
    color: #1e293b;
    font-weight: 600;
}

.action-alert {
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: none;
    font-size: 0.875rem;
}

.action-alert-info {
    background: #eff6ff;
    color: #1e40af;
    border-left: 4px solid #3b82f6;
}

.action-alert-warning {
    background: #fffbeb;
    color: #92400e;
    border-left: 4px solid #f59e0b;
}

.action-alert-danger {
    background: #fef2f2;
    color: #991b1b;
    border-left: 4px solid #ef4444;
}

.action-form-group {
    margin-bottom: 1rem;
}

.action-form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.35rem;
    display: block;
}

.action-form-control {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.2s;
}

.action-form-control::placeholder {
    color: #9ca3af;
    opacity: 1;
}

.action-form-control:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.action-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .action-card {
        margin: 1rem;
        max-width: none;
    }

    .action-card-header,
    .action-card-body {
        padding: 1.25rem;
    }

    .action-title {
        font-size: 1.25rem;
    }

    .action-form-group {
        margin-bottom: 0.875rem;
    }

    .action-actions {
        flex-direction: column;
    }

    .action-actions .btn {
        width: 100%;
    }
}


.tm-directory-name {
    display: block;
    font-weight: 600;
}

.tm-profile-hero {
    padding: 2rem;
}

.tm-profile-hero-main {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.tm-profile-avatar-frame {
    width: 140px;
    height: 140px;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(14, 165, 233, 0.15));
    padding: 0.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.45);
}

.tm-profile-avatar-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1.2rem;
}

.tm-profile-hero-body {
    flex: 1;
    min-width: 240px;
}

.tm-profile-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.tm-profile-hero-actions {
    margin-left: auto;
}

.tm-profile-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tm-profile-panel {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: 0 20px 35px rgba(15, 23, 42, 0.05);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tm-profile-panel h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.25rem;
}

.tm-profile-detail-list {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.tm-profile-detail-item dt {
    margin: 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: #94a3b8;
}

.tm-profile-detail-item dd {
    margin: 0.35rem 0 0;
    font-size: 1rem;
    color: #0f172a;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.tm-profile-bio {
    margin: 0;
    color: #475569;
    line-height: 1.6;
    white-space: pre-line;
}

.tm-profile-rights {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.tm-profile-rights li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #0f172a;
}

.tm-profile-rights i {
    color: #22c55e;
}

.tm-profile-placeholder {
    color: #94a3b8;
    font-style: italic;
}

.tm-moderation-block {
    border: 1px solid rgba(148, 163, 184, 0.35);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.tm-moderation-block__header {
    margin-bottom: 1rem;
}

.tm-moderation-block__eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: #94a3b8;
}

.tm-moderation-block__title {
    margin: 0.15rem 0 0.35rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: #0f172a;
}

.tm-moderation-block__summary {
    margin: 0;
    color: #475569;
    font-size: 0.92rem;
}

.tm-moderation-block__body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tm-moderation-block__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tm-moderation-block--positive {
    border-color: rgba(34, 197, 94, 0.4);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.05));
}

.tm-moderation-block--danger {
    border-color: rgba(248, 113, 113, 0.45);
    background: linear-gradient(135deg, rgba(248, 113, 113, 0.08), rgba(251, 191, 36, 0.05));
}

.tm-history-list__notes {
    padding-left: 3rem;
}

.tm-rejection-reasons {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(248, 250, 252, 0.9);
    display: grid;
    gap: 0.35rem;
}

.tm-rejection-reasons .form-check {
    margin-bottom: 0;
}

.tm-rejection-reasons .form-check-input:checked {
    border-color: #dc2626;
    background-color: #dc2626;
}

.tm-rejection-reasons .form-check-label {
    font-weight: 500;
}

.tm-moderation-block textarea {
    resize: vertical;
}

.tm-snapshot-block {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.96);
}

.tm-snapshot-block__header {
    margin-bottom: 1rem;
}

.tm-snapshot-block__eyebrow {
    display: inline-block;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 600;
    color: #94a3b8;
}

.tm-snapshot-block--draft {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 10px 18px rgba(59, 130, 246, 0.08);
}

.tm-snapshot-block--published {
    border-color: rgba(16, 185, 129, 0.35);
    box-shadow: 0 10px 18px rgba(16, 185, 129, 0.08);
}

.tm-snapshot-block--compare {
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow: 0 10px 18px rgba(248, 113, 113, 0.08);
}

.tm-snapshot-block__list dt {
    font-weight: 600;
}

.tm-change-summary {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tm-change-summary__row {
    border: 1px solid rgba(148, 163, 184, 0.4);
    border-radius: 0.75rem;
    padding: 1rem;
    background: rgba(248, 250, 252, 0.95);
}

.tm-change-summary__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 0.5rem;
}

.tm-change-summary__values {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.75rem;
}

.tm-change-summary__value {
    border: 1px dashed rgba(148, 163, 184, 0.5);
    border-radius: 0.65rem;
    padding: 0.75rem;
    background: #fff;
}

.tm-change-summary__value--new {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(59, 130, 246, 0.04);
}

.tm-change-summary__hint {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    display: block;
    margin-bottom: 0.35rem;
}

@media (max-width: 576px) {
    .tm-moderation-block__actions {
        flex-direction: column;
    }

    .tm-moderation-block__actions .btn {
        width: 100%;
    }

    .tm-change-summary__values {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .tm-profile-hero-actions {
        width: 100%;
    }

    .tm-profile-hero-body {
        order: 2;
    }

    .tm-profile-avatar-frame {
        order: 1;
    }
}

.tm-theme-gallery {
    padding: 0;
}

.tm-theme-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.tm-theme-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.75rem;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.tm-theme-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 600;
    color: #0f172a;
}

.tm-call-modal-lock--lobby .tm-call-modal-lock-icon {
/*    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2), rgba(14, 165, 233, 0.3));*/
    background: rgba(34, 197, 94, 0.15);
    color: #0f172a;
}

.tm-call-modal-lock--lobby .tm-call-modal-lock-label {
    color: #0f172a;
}

.tm-theme-subtitle {
    margin: 0.5rem 0 0;
    color: #475569;
    max-width: 520px;
}

.tm-theme-current {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 1rem;
    padding: 1rem 1.5rem;
    display: inline-flex;
    flex-direction: column;
    min-width: 220px;
}

.tm-theme-current-label {
    text-transform: uppercase;
    letter-spacing: 0.21em;
    font-size: 0.7rem;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

.tm-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.tm-theme-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.5rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 25px 45px rgba(15, 23, 42, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tm-theme-card.is-active {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 35px 60px rgba(37, 99, 235, 0.15);
}

.tm-theme-preview {
    position: relative;
    padding-top: 58%;
    background-color: rgba(148, 163, 184, 0.15);
    background-size: cover;
    background-position: center;
}

.tm-theme-preview span {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748b;
    font-size: 0.95rem;
}

.tm-theme-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tm-theme-heading {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tm-theme-id {
    margin: 0 0 0.25rem;
    font-size: 0.85rem;
    color: #94a3b8;
}

.tm-theme-name {
    margin: 0;
    font-size: 1.25rem;
    color: #0f172a;
}

.tm-theme-description {
    margin: 0;
    color: #475569;
    font-size: 0.95rem;
    line-height: 1.5;
}

.tm-theme-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 0;
    padding: 0;
}

.tm-theme-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tm-theme-meta-item dt {
    margin: 0;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #94a3b8;
}

.tm-theme-meta-item dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.tm-theme-tags {
    list-style: none;
    padding: 0;
    margin: -0.25rem 0 0.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tm-theme-tags li {
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    font-size: 0.8rem;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
}

.tm-theme-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.25rem;
/*    margin: 0.25rem 0 0;*/
    margin: 0;
    padding: 0;
}

.tm-theme-stat {
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 0.5rem;
/*    padding: 0.75rem 1rem;*/
    padding: 0.3rem;
    display: flex;
    flex-direction: column;
/*    gap: 0.2rem;*/
}

.tm-theme-stat dt {
    margin: 0;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #94a3b8;
}

.tm-theme-stat dd {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.tm-theme-actions .btn {
    width: 100%;
}
html, body {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

@media (min-width: 1280px) {
    .tm-hero,
    .tm-directory,
    .tm-admin {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
    }
}

/* Page hero cards */
.tm-hero {
/*    max-width: 1650px;*/
    width: 100%;
/*    margin: 0 auto 2.5rem;*/
/*    padding: 0 1rem;*/
}

.tm-hero-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.5rem;
    box-shadow: 0 30px 70px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.15);
    padding: 1.25rem;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.tm-hero-card--stacked {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
}

.tm-hero-head {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.tm-hero-body {
    display: flex;
    flex-direction: column;
/*    gap: 0.75rem;*/
}

.tm-hero-heading {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
}


.tm-hero-heading--conversation {
    align-items: flex-start;
    gap: 1.2rem;
}

.tm-hero-heading-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.tm-hero-heading-copy .tm-conversation-chip--link {
    align-self: flex-start;
}

.tm-hero-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.tm-hero-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

.tm-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.tm-hero-meta--conversation {
    align-items: center;
}

.tm-hero-controls {
    display: inline-flex;
    gap: 0.5rem;
    margin-top: 0.85rem;
    background: rgba(148, 163, 184, 0.15);
    padding: 0.25rem;
    border-radius: 999px;
    align-self: flex-start;
}

.tm-toggle-pill {
    border: none;
    background: transparent;
    color: #475569;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 1.05rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tm-toggle-pill i {
    font-size: 0.85rem;
}

.tm-toggle-pill:is(:hover, :focus-visible) {
    background: rgba(255, 255, 255, 0.7);
    color: #0f172a;
}

.tm-toggle-pill.is-active {
    background: #1d4ed8;
    color: #fff;
    box-shadow: 0 10px 25px rgba(30, 64, 175, 0.25);
}

.tm-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.tm-hero-pill.pill-success {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.tm-hero-pill.pill-danger {
    background: rgba(248, 113, 113, 0.15);
    color: #b91c1c;
}

.tm-hero-pill.pill-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
}

.tm-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.25rem;
}

.tm-admin-grid--metrics {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    align-items: stretch;
}

.tm-hero-card--admin {
    margin-bottom: 0.5rem;
}

.tm-admin-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.5rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.12);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tm-admin-card--metric {
    padding: 0.85rem 1rem;
    gap: 0.65rem;
    min-height: auto;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.tm-metric-label {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    white-space: nowrap;
}

.tm-metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.tm-admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.15);
}

.tm-admin-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
}

.tm-admin-queue-header {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tm-admin-queue-header__titles {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.tm-admin-filters__inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    width: 100%;
}

.tm-admin-filters__search-row {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.tm-admin-filters select {
    flex: 1 1 auto;
    width: auto;
    min-width: max-content;
    max-width: 100%;
}

.tm-admin-filters input[type="search"] {
    flex: 1 1 220px;
    min-width: 160px;
    width: 100%;
    max-width: none;
}

.tm-admin-filters__search-input {
    width: 100%;
    flex: 1 1 100%;
}

.tm-admin-filters .btn {
    flex: 0 0 auto;
    align-self: flex-end;
}

@media (max-width: 576px) {
    .tm-admin-filters select,
    .tm-admin-filters input[type="search"],
    .tm-admin-filters .btn {
        flex: 1 1 100%;
        max-width: 100%;
    }
}

.tm-admin-tab-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.45rem 1.2rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font-weight: 600;
    font-size: 0.9rem;
    color: #475569;
    text-decoration: none;
    transition: all 0.2s ease;
}

.tm-admin-tab-button:is(:hover, :focus-visible) {
    border-color: rgba(148, 163, 184, 0.35);
    background: rgba(255, 255, 255, 0.75);
    color: #0f172a;
}

.tm-admin-tab-button.active {
    background: #1d4ed8;
    color: #fff;
    border-color: #1d4ed8;
    box-shadow: 0 8px 30px rgba(29, 78, 216, 0.25);
}

.tm-admin-tab-panel {
    display: none;
    width: 100%;
}

.tm-admin-tab-panel.active {
    display: block;
}

.tm-admin-card header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.tm-admin-card-title {
    margin: 0;
    font-size: 1.2rem;
    color: #0f172a;
    font-weight: 600;
}

.tm-admin-card-subtitle {
    margin: 0.2rem 0 0;
    color: #64748b;
    font-size: 0.9rem;
}

.tm-admin-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tm-admin-section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin: 0;
}

.tm-admin-status-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.tm-admin-status-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.tm-admin-status-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.85rem;
}

.tm-admin-status-value.status-success {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.tm-admin-status-value.status-warning {
    background: rgba(234, 179, 8, 0.25);
    color: #92400e;
}

.tm-admin-status-value.status-info {
    background: rgba(59, 130, 246, 0.18);
    color: #1d4ed8;
}

.tm-admin-controls {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.tm-admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.tm-admin-message-input {
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.4);
    padding: 0.65rem 0.85rem;
    width: 100%;
}

.tm-admin-message-input::placeholder {
    color: #94a3b8;
    opacity: 1;
}

.tm-admin-list {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1rem;
/*    max-height: 260px;*/
    max-height: 222px;
    overflow: auto;
}

.tm-admin-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.15);
    font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.8rem;
    color: #0f172a;
}

.tm-admin-list li:last-child {
    border-bottom: none;
}

.tm-admin-list li .tm-admin-list-actions {
    display: flex;
    gap: 0.4rem;
}

.tm-admin-empty {
    padding: 0.75rem 1rem;
    color: #94a3b8;
    font-size: 0.9rem;
}

.tm-admin-test-tools {
    padding: 1rem;
    border-radius: 1rem;
    background: rgba(37, 99, 235, 0.07);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.tm-admin-test-tools p {
    margin: 0 0 0.6rem;
    font-size: 0.9rem;
    color: #1d4ed8;
}

.tm-admin-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(148, 163, 184, 0.18);
    color: #475569;
}

.tm-admin-pill.pill-success {
    background: rgba(34, 197, 94, 0.18);
    color: #15803d;
}

.tm-admin-pill.pill-danger {
    background: rgba(248, 113, 113, 0.15);
    color: #b91c1c;
}

.tm-admin-pill.pill-neutral {
    background: rgba(148, 163, 184, 0.15);
    color: #475569;
}

.tm-admin-modal-code {
    max-height: 60vh;
    overflow: auto;
    padding: 1.5rem;
    font-family: 'JetBrains Mono', 'SFMono-Regular', Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
    font-size: 0.85rem;
    background: lightgray;
    color: rgb(226, 232, 240);
}

@media (max-width: 768px) {
    .tm-hero {
        padding: 0 0.75rem;
    }

    .tm-admin-card {
        padding: 1.25rem;
    }

    .tm-admin-inline-actions,
    .tm-hero-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 1024px) {
    .tm-directory-filter-form {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .tm-directory-filter-form {
        justify-content: flex-start;
    }

    .tm-filter-field,
    .tm-filter-actions {
        flex: 1 1 100%;
    }
}

/* Credentials management */
.tm-cred-card {
    max-width: 900px;
    background: rgba(255,255,255,0.97);
    border-radius: 1.5rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.12);
    padding: 2.5rem;
    margin: 0rem auto 1.5rem;
}

.tm-cred-intro {
    border-radius: 1rem;
    border: none;
}

.tm-cred-steps {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.tm-cred-step {
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 1.2rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.75);
}

.tm-cred-qr {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px dashed rgba(148, 163, 184, 0.5);
}

.tm-cred-secret code,
.tm-cred-backup code {
    display: inline-block;
    padding: 0.35rem 0.6rem;
    border-radius: 0.6rem;
    background: #0f172a;
    color: #f8fafc;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.tm-cred-backup {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 1rem;
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.tm-cred-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.tm-cred-panel {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1.25rem;
    padding: 1.5rem;
    background: rgba(248, 250, 252, 0.75);
}

.tm-cred-panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    gap: 1rem;
}

.tm-cred-panel-head h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
}

.tm-cred-form .form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.tm-cred-form .form-control {
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
}

@media (max-width: 768px) {
    .tm-cred-card {
        padding: 2rem 1.5rem;
    }
}

/* Dashboard widgets */
.tm-widget-card {
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
/*    padding: 1.75rem;*/
    margin-bottom: 1.75rem;
    overflow: hidden;
}

.tm-widget-header {
    display: flex;
    align-items: center;
/*    gap: 0.85rem;*/
    background: linear-gradient(135deg, #eef2ff 0%, #e0f2fe 100%);
/*    border-radius: 1rem;*/
    padding: 0.25rem;
/*    margin: -0.25rem -0.25rem 1.25rem;*/
    margin: -0.25rem -0.25rem 0rem;
}

.tm-widget-heading {
    display: flex;
    align-items: center;
/*    gap: 0.75rem;*/
}

.tm-widget-title-icon {
    width: 48px;
    height: 48px;
    border-radius: 16px;
/*    background: rgba(15, 23, 42, 0.08);*/
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1.25rem;
}

.tm-widget-eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #94a3b8;
    margin-bottom: 0.3rem;
}

.tm-widget-title {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
/*    font-size: 1.35rem;*/
    font-size: 1rem;
    font-weight: 600;
    color: #0f172a;
    display: inline-flex;
    align-items: baseline;
/*    gap: 0.4rem;*/
    cursor: default;
}

.tm-widget-title a {
    text-decoration: none;
}

.tm-widget-title:focus {
    outline: none;
}

.tm-widget-chevron {
    font-size: 0.85rem;
    color: #94a3b8;
}

.tm-widget-tools {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.tm-widget-tools #filter_form {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.tm-widget-tools #filter_form input[type="text"],
.tm-widget-tools #filter_form input[type="date"] {
    padding: 0.4rem 0.75rem;
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.85rem;
}

.tm-widget-tools #filter_form input[type="button"],
.tm-widget-tools #filter_form input[type="submit"] {
    border-radius: 0.6rem;
    padding: 0.4rem 0.75rem;
    border: none;
    background: #1d4ed8;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
}

.tm-widget-body {
    border-top: 1px solid rgba(148, 163, 184, 0.2);
/*    padding-top: 1rem;*/
    padding: 1rem;
/*    margin-top: 0.75rem;*/
}

.tm-widget-table thead {
    background: rgba(15, 23, 42, 0.85);
    color: #fff;
}

.tm-widget-table th,
.tm-widget-table td {
    vertical-align: middle;
    border-color: rgba(148, 163, 184, 0.3);
}

.tm-widget-empty {
    margin: 1rem 0;
    color: #94a3b8;
    font-style: italic;
}

.tm-call-flag {
    text-transform: uppercase;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #475569;
}

.tm-call-flag.on {
    background: #22c55e;
    color: white;
    border-radius: 999px;
    text-align: center;
    padding: 0.2rem 0.5rem;
}

.required-indicator {
    color: #ef4444;
}

.summary-item {
    background: white;
    border-radius: 1rem;
    padding: 1rem;
    border: 1px solid rgba(148, 163, 184, 0.2);
}

.summary-label {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: #94a3b8;
    margin-bottom: 0.25rem;
}

.summary-value {
    margin: 0;
    font-weight: 600;
    color: #0f172a;
}

.tm-directory {
/*    max-width: 1650px;*/
    width: 100%;
    margin: 0 auto 2.5rem;
/*    padding: 0 0.5rem;*/
}

.tm-admin {
/*    max-width: 1650px;*/
    width: 100%;
    margin: 0 auto 3rem;
/*    padding: 0 1rem 3rem;*/
}

.tm-directory-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0;
}

.tm-directory-header--inset {
    margin-bottom: 0;
}

.tm-directory-heading {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.tm-directory-heading-main {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
    flex-wrap: wrap;
    line-height: 1.2;
}

.tm-directory-eyebrow {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.tm-directory-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.tm-directory-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .tm-directory-header,
    .tm-directory-header--inset,
    .tm-directory-heading,
    .tm-directory-heading-main {
        align-items: flex-start;
        gap: 1rem;
        margin-bottom: 1.65rem;
    }

    .tm-directory-title {
        font-size: 2rem;
        letter-spacing: 0;
    }

    .tm-directory-subtitle {
        font-size: 0.95rem;
    }
}

.tm-directory-cta {
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 600;
}

.tm-directory-filters {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    margin-bottom: 1rem;
}

.tm-directory-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: flex-end;
    width: 100%;
    justify-content: flex-end;
}

.tm-filter-field {
    min-width: 0;
    flex: 1 1 220px;
}

.tm-filter-field label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.35rem;
}

@media (min-width: 992px) {
    .tm-directory-filter-form .tm-filter-field {
        position: relative;
    }

    .tm-directory-filter-form .tm-filter-field label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        border: 0;
    }
}

.tm-filter-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(248, 250, 252, 0.8);
    border: 1px solid rgba(148, 163, 184, 0.5);
    border-radius: 0.85rem;
    padding: 0rem 0.85rem;
    height: 100%;
}

.tm-filter-input:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tm-filter-input input {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
}

.tm-filter-input select {
    border: none;
    background: transparent;
    outline: none;
    flex: 1;
    min-width: 0;
    font: inherit;
    color: inherit;
}

.tm-call-filter-row {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap;
    width: 100%;
    min-height: 2.25rem;
    height: auto;
    align-items: stretch;
/*    margin-bottom: 1rem;*/
}

/*.tm-call-filter-row--compact {*/
/*    align-items: center;*/
/*    gap: 0.65rem;*/
/*    height: auto;*/
/*}*/

.tm-call-filter-row--compact .tm-filter-field {
    flex: 0 0 auto;
}

.tm-call-filter-row--compact .tm-filter-input {
    width: auto;
/*    padding: 0.1rem 0.85rem;*/
    white-space: nowrap;
}

.tm-call-filter-row--compact .tm-filter-input select,
.tm-call-filter-row--compact .tm-filter-input input[type="date"] {
    width: auto;
    min-width: 0;
    flex: 0 0 auto;
}

.tm-call-filter-row--compact .tm-filter-input--tagged {
    padding: 0.1rem 0.6rem;
}

.tm-call-filter-row--compact .tm-filter-input--tagged input[type="date"] {
    width: auto;
    text-transform: uppercase;
    font-weight: lighter;
    font-variant: all-small-caps;
}

.tm-call-filter-actions--compact {
    margin-left: auto;
    display: inline-flex;
    gap: 0.6rem;
    align-items: center;
}

.tm-call-filter-row:last-of-type {
    margin-bottom: 0;
}

.tm-call-filter-row .tm-filter-field {
    flex: 1 1 0;
    min-width: 0;
}

.tm-call-filter-row.tm-call-filter-row--compact .tm-filter-field {
    flex: 0 0 auto;
    min-width: auto;
}

@media (max-width: 768px) {
    .tm-call-filter-row {
        flex-wrap: wrap;
    }

    .tm-call-filter-row .tm-filter-field {
        flex-basis: 100%;
    }
}

.tm-filter-input--tagged {
    gap: 0.5rem;
}

.tm-filter-input-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.6rem;
/*    border-radius: 999px;*/
    border-radius: 10px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #475569;
    background: rgba(148, 163, 184, 0.2);
}

.tm-directory-filter-form .form-select,
.tm-directory-filter-form select {
    width: 100%;
    background: transparent;
    border: none;
}

.tm-directory-filter-form .select2-container {
    width: 100% !important;
}

.tm-directory-filter-form .form-select:focus,
.tm-directory-filter-form select:focus,
.tm-directory-filter-form .select2-selection:focus,
.tm-directory-filter-form .select2-selection--single:focus,
.tm-directory-filter-form .select2-selection--multiple:focus {
    outline: none;
    box-shadow: none;
}

.tm-directory-filter-form .select2-selection,
.tm-directory-filter-form .select2-container--default .select2-selection--single,
.tm-directory-filter-form .select2-container--default .select2-selection--multiple {
    background-color: transparent !important;
    border: none !important;
    min-height: auto;
    padding-left: 0;
    box-shadow: none;
}

.tm-directory-filter-form .select2-selection__rendered {
    padding-left: 0;
    color: inherit;
}

.tm-directory-filter-form .select2-selection__choice {
    background: rgba(37, 99, 235, 0.08);
    border: none;
    color: #1d4ed8;
}

.tm-filter-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}



.tm-directory-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0;
    margin-top: 1rem;
    color: #64748b;
}

.tm-filter-chip {
    background: rgba(37, 99, 235, 0.08);
    border-radius: 999px;
    padding: 0.2rem 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
    color: #1d4ed8;
    display: inline-flex;
    gap: 0.35rem;
    align-items: center;
}

.tm-filter-chip-remove {
    border-radius: 0.5rem;
}

.tm-filter-chip--invitees {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.tm-filter-chip-values {
    display: inline-flex;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tm-filter-chip-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.7);
    color: inherit;
}

.tm-filter-chip-pill-text {
    line-height: 1.2;
}

.tm-filter-chip-remove--inline {
    background: transparent;
    border: none;
    color: inherit;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.tm-filter-chip-remove--inline i {
    font-size: 0.75rem;
}

.tm-directory-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tm-directory-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px rgba(15, 23, 42, 0.08);
    padding: 1.1rem 1.4rem;
    border: 1px solid rgba(148, 163, 184, 0.15);
    display: grid;
    grid-template-columns: minmax(190px, 220px) minmax(0, 1fr) max-content;
    gap: 1.1rem;
    align-items: center;
}

.tm-directory-card-head {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.tm-directory-card-head > div {
    flex: 1 1 auto;
    min-width: 0;
}

.tm-directory-card--contact {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
}

.tm-directory-card--contact .tm-directory-card-head {
    gap: 0.75rem;
    align-items: flex-start;
}

.tm-directory-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
/*    background: linear-gradient(135deg, #6366f1, #8b5cf6);*/
    background: linear-gradient(135deg, #1d4ed8, #9333ea);
    color: white;
    display: inline-flex;
    flex: 0 0 80px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    text-decoration: none;
}

.tm-directory-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.tm-directory-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
    display: inline-block;
}

.tm-directory-categories {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
/*    margin-top: 0.2rem;*/
}

.tm-directory-category {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: #64748b;
    background: rgba(148, 163, 184, 0.15);
    padding: 0.15rem 0.65rem;
    border-radius: 999px;
    text-decoration: none;
}

.tm-directory-category:hover {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.tm-directory-head-meta {
    display: grid;
/*    grid-template-columns: minmax(180px, max-content) minmax(220px, max-content) minmax(0, 1fr) max-content;*/
    grid-template-columns: minmax(130px, max-content) minmax(220px, max-content) minmax(0, 1fr) max-content;
/*    gap: 0.5rem 1rem;*/
    gap: 0.5rem 1rem;
    align-items: flex-start;
/*    margin-top: 0.35rem;*/
}

.tm-directory-head-meta__col {
    min-width: 0;
    display: flex;
    flex-direction: column;
/*    gap: 0.35rem;*/
    gap: 0.2rem;
}

.tm-directory-head-meta__col--contact {
    min-width: 220px;
}

.tm-directory-head-meta__col--tags {
    min-width: 0;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.tm-directory-head-meta__col--primary {
    min-width: 0;
}

.tm-directory-head-meta__col--actions {
    align-items: flex-end;
}

.tm-directory-platform-row {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}

.tm-directory-contact-inline__stack {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.tm-directory-contact-inline__item {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #475569;
    font-size: 0.9rem;
    max-width: 260px;
}

.tm-directory-contact-inline__value {
    display: inline-block;
    max-width: 220px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-directory-contact-inline__item a.tm-directory-contact-inline__value {
    color: inherit;
    text-decoration: none;
}

.tm-directory-contact-inline__item a.tm-directory-contact-inline__value:hover,
.tm-directory-contact-inline__item a.tm-directory-contact-inline__value:focus {
    text-decoration: underline;
}

.tm-directory-card-body {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.3rem 0.65rem;
    align-items: center;
    position: relative;
    margin-top: 0.85rem;
}

.tm-directory-field {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    color: #475569;
    flex-wrap: wrap;
    min-width: 0;
}

.tm-directory-field span,
.tm-directory-field a {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.tm-directory-field i {
    color: #94a3b8;
}

.tm-directory-match-flag {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.12);
    color: #1d4ed8;
    font-size: 0.75rem;
}

/* Empty listing */
.tm-empty-state {
    padding: 3rem 1.5rem;
    text-align: center;
    border: 2px dashed rgba(148, 163, 184, 0.45);
    border-radius: 1.25rem;
    background: rgba(248, 250, 252, 0.9);
    margin: 0 auto 0;
    max-width: 640px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.tm-empty-state > i {
    font-size: 3rem;
    color: #94a3b8;
    margin-bottom: 0.9rem;
}

.tm-empty-state h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    color: #0f172a;
    font-weight: 600;
}

.tm-empty-state p {
    margin: 0 auto;
    max-width: 460px;
    color: #475569;
    line-height: 1.6;
}

.tm-empty-state-actions {
    margin-top: 1.25rem;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}
/* end of empty listing */

.tm-directory-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.35rem;
}

.tm-directory-tags--inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    min-width: 0;
}

.tm-directory-tags--spacer {
    min-height: 1.2rem;
}

/* Call listings */
.tm-call-grid {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.tm-call-card {
    background: rgba(255, 255, 255, 0.98);
    border-radius: 0.5rem;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.18);
    padding: 1.25rem 1.4rem;
    display: grid;
    grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) max-content;
    gap: 1rem;
    align-items: center;
    cursor: default;
}

.tm-call-card.call-item {
    cursor: pointer;
}

.tm-call-card-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.tm-call-schedule {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
    font-weight: 600;
    color: #0f172a;
}

.tm-call-date {
    font-size: 0.9rem;
    color: #475569;
}

.tm-call-time {
    font-size: 1.35rem;
    letter-spacing: -0.01em;
}

.tm-call-badges {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tm-call-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
}

.tm-call-badge.on {
    background: rgba(34, 197, 94, 0.15);
    color: #15803d;
}

.tm-call-badge--password {
    background: rgba(248, 113, 113, 0.18);
    color: #b91c1c;
}

.tm-call-card-body {
    min-width: 0;
}

.tm-call-card.tm-call-card--dimmed {
    opacity: 0.68;
    transition: opacity 0.2s ease-in-out;
}

/* Shared cancelled state styling for any meeting tile/card */
.tm-meeting--cancelled,
.tm-call-card--cancelled {
    opacity: 0.6;
/*    filter: saturate(0.6);*/
}

.tm-meeting--cancelled .tm-cal-call-time,
.tm-meeting--cancelled .tm-cal-call-name,
.tm-meeting--cancelled .tm-call-date,
.tm-meeting--cancelled .tm-call-time,
.tm-meeting--cancelled .tm-call-title,
.tm-meeting--cancelled .tm-call-description-text,
.tm-meeting--cancelled .tm-contact-meeting__title,
.tm-call-card--cancelled .tm-call-date,
.tm-call-card--cancelled .tm-call-time,
.tm-call-card--cancelled .tm-call-title,
.tm-call-card--cancelled .tm-call-description-text {
    color: #94a3b8 !important;
}

.tm-cal-call-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.tm-cal-call-pill--cancelled {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

.tm-call-title {
    margin: 0 0 0.5rem;
    font-size: 1.1rem;
    color: #0f172a;
}

.tm-call-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.35rem 0.75rem;
    align-items: flex-start;
    grid-auto-rows: 1fr;
}

.tm-call-meta > * {
    align-self: flex-start;
}

.tm-call-card--directory .tm-call-meta {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) auto;
}

.tm-call-card-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
}

.tm-call-card-actions .btn {
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
}

.tm-call-invitees-field {
    align-items: flex-start;
}

.tm-call-card .tm-call-invitees-field {
    flex-direction: column;
    gap: 0.35rem;
}

.tm-call-invitees-field .call-invitees-pill {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
}

.call-invitees-pill--dashboard {
    flex-direction: column;
    gap: 0.35rem;
}

.call-invitees-pill--directory {
    flex-direction: row;
    align-items: flex-start;
    gap: 0.9rem;
    flex-wrap: nowrap;
    width: 100%;
}

.call-invitees-avatars {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    flex-shrink: 0;
}

.call-invitees-avatar-stack {
    display: inline-flex;
    align-items: center;
}

.call-invitees-avatar-line {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}

.call-invitees-text-wrap {
    flex: 1;
    min-width: 0;
}

.call-invitees-pill--directory .call-invitees-text-wrap {
    align-self: center;
}

.call-invitees-inline-text {
    flex: 1;
    min-width: 0;
}

.call-invitees-inline-text .call-invitees-text {
    display: inline-block;
    max-width: 100%;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

.call-invitees-status-row {
    width: auto;
    margin-top: 0.25rem;
    align-self: flex-start;
}

.tm-call-invitees-text {
    font-size: 0.85rem;
    color: #6b7280;
}

.tm-call-card .tm-directory-field {
    align-items: flex-start;
    min-height: 100%;
}

.tm-call-card .tm-directory-field span {
    display: block;
}

.tm-call-description-text {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 3.3em;
}

.tm-call-description-text--empty {
    color: #94a3b8;
    font-style: italic;
}

.call-invitees-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 999px;
    background-color: #eef2ff;
    color: #4338ca;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    width: auto;
    min-width: auto;
}

.call-invitees-status--pending {
    background-color: #fff4e6;
    color: #a36206;
}

.call-invitees-status--unconfirmed {
    background-color: #eef2ff;
    color: #4338ca;
}

.call-invitees-status--tentative {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.call-invitees-status--cancelled {
    background-color: #f3f4f6;
    color: #374151;
}

.tm-call-modal-invitees-statuses {
    margin-top: 0.75rem;
}

/* Invitees edit mode */
.tm-call-modal-invitees-editor {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.25rem 0;
}

.tm-call-modal-invitees-editor-heading {
    margin: 0;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b7280;
}

.tm-call-modal-invitees-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.tm-invitee-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.5);
    background-color: #fff;
    color: #0f172a;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.tm-invitee-chip:hover {
    border-color: rgba(59, 130, 246, 0.6);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
}

.tm-invitee-chip-text {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    white-space: nowrap;
    font-size: 0.85rem;
    color: inherit;
}

.tm-invitee-chip-name {
    font-weight: 600;
    font-size: 0.85rem;
}

.tm-invitee-chip-email {
    font-size: 0.8rem;
    color: #64748b;
}

.tm-invitee-chip-remove {
    border: none;
    background: transparent;
    color: #94a3b8;
    font-size: 1.1rem;
    line-height: 1;
    padding: 0;
    margin-left: 0.35rem;
    cursor: pointer;
    transition: color 0.15s ease;
}

.tm-invitee-chip-remove:hover,
.tm-invitee-chip-remove:focus {
    color: #0f172a;
    outline: none;
}

.tm-invitee-chip-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
    color: #475569;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    overflow: hidden;
}

.tm-invitee-chip-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-invitee-chip-empty {
    margin: 0;
    font-size: 0.85rem;
    color: #94a3b8;
    font-style: italic;
}

.tm-call-modal-invitees-editor .call-invitees-picker {
    border: 1px solid var(--call-chip-border, #dce2f2);
    border-radius: 10px;
    padding: 12px;
    background-color: #fff;
    min-height: 64px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    position: relative;
    width: 100%;
}

.tm-call-modal-invitees-editor .call-invitees-picker:focus-within {
    border-color: #818cf8;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.15);
}

.tm-call-modal-inline-error {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(248, 113, 113, 0.45);
    background-color: #fef2f2;
    color: #991b1b;
    font-size: 0.85rem;
}

.tm-call-modal-invitees-editor .call-invitees-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    flex: 1 1 100%;
}

.tm-call-modal-invitees-editor .call-invite-chip {
    background-color: var(--call-chip-bg, #f5f7fb);
    border: 1px solid var(--call-chip-border, #dce2f2);
    border-radius: 999px;
    padding: 3px 12px 3px 6px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    line-height: 1.1;
    color: var(--call-chip-text, #1d2433);
}

.tm-call-modal-invitees-editor .call-invite-chip-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: #e5e9fb;
    color: #394060;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.8rem;
    overflow: hidden;
}

.tm-call-modal-invitees-editor .call-invite-chip-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.tm-call-modal-invitees-editor .call-invite-chip-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.tm-call-modal-invitees-editor .call-invite-chip-content strong {
    font-size: 0.9rem;
    font-weight: 600;
    color: inherit;
}

.tm-call-modal-invitees-editor .call-invite-chip-content span {
    font-size: 0.78rem;
    color: var(--call-chip-secondary, #6b7391);
}

.tm-call-modal-invitees-editor .call-invite-chip-remove {
    background: none;
    border: none;
    color: var(--call-chip-remove, #9aa3c2);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0 0 0 4px;
}

.tm-call-modal-invitees-editor .call-invite-chip-remove:hover,
.tm-call-modal-invitees-editor .call-invite-chip-remove:focus {
    color: var(--call-chip-remove-hover, #4e5773);
}

.tm-call-modal-invitees-editor .call-invitees-input {
    border: none;
    flex: 1 0 200px;
    min-width: 150px;
    padding: 4px;
    font-size: 0.95rem;
}

.tm-call-modal-invitees-editor .call-invitees-input:focus {
    outline: none;
}

.tm-call-modal-invitees-editor .call-invitees-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background-color: var(--call-suggestion-bg, #ffffff);
    border: 1px solid var(--call-suggestion-border, #d7def5);
    border-radius: 12px;
    box-shadow: var(--call-suggestion-shadow, 0 8px 24px rgba(15, 23, 42, 0.08));
    z-index: 50;
    padding: 6px;
    max-height: calc(5 * 54px);
    overflow-y: auto;
}

.tm-call-modal-invitees-editor .call-invitees-suggestions.call-invitees-suggestions--drop-up {
    top: auto;
    bottom: calc(100% + 6px);
}

.tm-call-modal-invitees-editor .call-invite-suggestion {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: none;
    background: transparent;
    border-radius: 10px;
    text-align: left;
}

.tm-call-modal-invitees-editor .call-invite-suggestion-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #e5e9fb;
    color: #394060;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.85rem;
}

.tm-call-modal-invitees-editor .call-invite-suggestion-text {
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
}

.tm-call-modal-invitees-editor .call-invite-suggestion-text small {
    font-size: 0.75rem;
    color: var(--call-chip-secondary, #6b7391);
}

.tm-call-modal-invitees-editor .call-invite-suggestion:hover,
.tm-call-modal-invitees-editor .call-invite-suggestion.is-active {
    background-color: var(--call-suggestion-hover, #eef3ff);
}

.tm-call-modal-invitees-editor .call-invitees-empty {
    padding: 12px;
    color: #475569;
}

.tm-call-modal-invitees-editor .call-invitees-empty strong {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.2rem;
}

.tm-call-modal-invitees-editor .call-invitees-empty p {
    margin: 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.tm-invitee-chip--accepted {
    background-color: #ecfdf3;
    border-color: rgba(16, 185, 129, 0.45);
    color: #047857;
}

.tm-invitee-chip--declined {
    background-color: #fef2f2;
    border-color: rgba(248, 113, 113, 0.55);
    color: #b91c1c;
}

.tm-invitee-chip--tentative {
    background-color: #eff6ff;
    border-color: rgba(96, 165, 250, 0.6);
    color: #1d4ed8;
}

.tm-invitee-chip--pending {
    background-color: #fff7ed;
    border-color: rgba(251, 191, 36, 0.6);
    color: #92400e;
}

.tm-invitee-chip--removed {
    border-style: dashed;
    opacity: 0.6;
    background-color: #f8fafc;
}

.tm-invitee-chip--removed .tm-invitee-chip-name,
.tm-invitee-chip--removed .tm-invitee-chip-email {
    text-decoration: line-through;
    color: #94a3b8;
}

.tm-invitee-chip--unconfirmed {
    background-color: #fdf4ff;
    border-color: rgba(217, 70, 239, 0.35);
    color: #86198f;
}

.tm-invitee-chip--cancelled {
    background-color: #f3f4f6;
    border-color: rgba(148, 163, 184, 0.7);
    color: #374151;
}

.tm-call-modal-status-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.35rem;
}

.tm-call-modal-status-details {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.tm-call-modal-status-entry {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) max-content;
    gap: 0.45rem;
    align-items: center;
}

.tm-call-modal-status-person {
    min-width: 0;
    font-size: 0.85rem;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tm-call-modal-status-time {
    font-size: 0.75rem;
    color: #64748b;
}

.tm-call-modal-status-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.tm-call-modal-status-group-names {
    font-size: 0.85rem;
    color: #334155;
    word-break: break-word;
}

.tm-call-modal-status {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    background-color: #f1f5f9;
    color: #0f172a;
}

.tm-call-modal-status--pending {
    background-color: #fff4e6;
    color: #a36206;
}

.tm-call-modal-status--unconfirmed {
    background-color: #eef2ff;
    color: #4338ca;
}

.tm-call-modal-status--accepted {
    background-color: #ecfdf3;
    color: #065f46;
}

.tm-call-modal-status--declined {
    background-color: #fef2f2;
    color: #b91c1c;
}

.tm-call-modal-status--tentative {
    background-color: #eff6ff;
    color: #1d4ed8;
}

.tm-call-modal-status--cancelled {
    background-color: #f3f4f6;
    color: #374151;
}

.tm-call-modal-pending-list {
    font-size: 0.85rem;
}

.tm-call-modal-pending-name {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

@media (max-width: 768px) {
    .tm-call-modal-status-entry {
        grid-template-columns: max-content minmax(0, 1fr);
    }

    .tm-call-modal-status-time {
        grid-column: 1 / -1;
        padding-left: 0.15rem;
    }
}

.tm-call-invitees-field-sm .call-invitees-avatars {
    flex-direction: row;
    align-items: center;
    gap: 0.5rem;
}

.tm-call-invitees-field-sm .call-invitees-status-row {
    margin-top: 0;
}

.tm-call-meta-actions {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    align-items: stretch;
    justify-content: flex-start;
}

.tm-call-meta-actions .btn {
    width: 100%;
}

.tm-avatar-stack {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.tm-avatar-stack--overlap .tm-avatar {
/*    margin-left: -10px;*/
    margin-left: -15px;
}

.tm-avatar-stack--overlap .tm-avatar:first-child {
    margin-left: 0;
}


.tm-avatar-stack--xs .tm-avatar {
    --tm-avatar-size: 24px;
    font-size: 0.7rem;
}

.tm-avatar-stack--sm .tm-avatar {
    --tm-avatar-size: 30px;
    font-size: 0.8rem;
}

.tm-avatar-stack--md .tm-avatar {
    --tm-avatar-size: 36px;
    font-size: 0.9rem;
}

.tm-avatar {
    --tm-avatar-size: 32px;
    width: var(--tm-avatar-size);
    height: var(--tm-avatar-size);
    border-radius: 999px;
    background: linear-gradient(135deg, #e2e8f0, #f3f4f6);
    border: 2px solid #fff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    font-weight: 600;
    color: #0f172a;
    overflow: hidden;
    text-align: center;
    line-height: var(--tm-avatar-size);
}

.tm-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.tm-avatar--fallback {
/*    background: linear-gradient(135deg, rgba(59, 130, 246, 0.18), rgba(14, 165, 233, 0.18));*/
/*    background: linear-gradient(135deg, rgba(59, 130, 246, 0.28), rgba(14, 165, 233, 0.28));*/
    background: linear-gradient(135deg, rgba(199, 218, 251, 0.70), rgba(145, 209, 238, 0.70));
    color: #1d4ed8;
}

.tm-avatar-extra {
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    padding: 0 0.65rem;
    line-height: 1.8;
}

.tm-avatar-name {
    font-size: 0.78rem;
    font-weight: 500;
    color: #475569;
}

.tm-call-invitee-empty {
    font-size: 0.8rem;
    color: #94a3b8;
}

.tm-call-calendar-invitees {
    margin-top: 0.35rem;
}

.tm-call-modal-section {
    margin-bottom: 1.25rem;
}

.tm-call-modal-section h6 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.tm-call-modal-section dl {
    margin: 0;
}

.tm-call-modal-section dt {
    font-size: 0.8rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.15rem;
}

.tm-call-modal-section dd {
    margin-bottom: 0.5rem;
    color: #0f172a;
    font-weight: 600;
}

.tm-call-modal-dialog {
    max-width: 820px;
}

.tm-call-modal {
    border: none;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 35px 80px rgba(15, 23, 42, 0.25);
}

.tm-call-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    border: none;
    background: rgba(15, 23, 42, 0.08);
    color: #0f172a;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.tm-call-modal-close:hover {
    background: rgba(15, 23, 42, 0.15);
}

.tm-call-modal-hero {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.25rem;
    padding: 2rem 2.25rem 1.5rem;
    background: linear-gradient(135deg, rgba(59,130,246,0.1), rgba(14,165,233,0.15));
}

.tm-call-modal-hero-main {
    min-width: 0;
    flex: 1 1 360px;
}

.tm-call-modal-label {
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.18em;
    color: #0f172a;
    opacity: 0.6;
    margin-bottom: 0.4rem;
}

.tm-call-modal-name {
    margin: 0;
    color: #0f172a;
    font-size: 2rem;
    font-weight: 700;
}

.tm-call-modal-meta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0.8rem;
}

.tm-call-modal-chip {
    background: #fff;
    color: #0f172a;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
    display: inline-flex;
    gap: 0.45rem;
    align-items: center;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
}

.tm-call-modal-security {
    flex: 0 0 auto;
    min-width: 240px;
}

.tm-call-modal-security-cards {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    flex-wrap: wrap;
/*    margin-top: 1rem;*/
    flex: 1 1 100%;
    width: 100%;
    justify-content: flex-end;
}

.tm-call-modal-security-cards .tm-call-modal-lock {
    flex: 0 0 auto;
    min-width: 0;
    width: auto;
}

.tm-call-modal-lock {
/*    margin-top: 1rem;*/
    background: rgba(255,255,255,0.85);
    border-radius: 1.2rem;
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
}

.tm-call-modal-host-card {
    background: rgba(255,255,255,0.95);
    border-radius: 1.2rem;
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.tm-call-modal-host-card--empty .tm-call-modal-host-email {
    display: none;
}

.tm-call-modal-host-avatar .tm-avatar {
    width: 64px;
    height: 64px;
    font-size: 1.4rem;
}

.tm-call-modal-host-label {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #94a3b8;
}

.tm-call-modal-host-name {
    margin: 0.15rem 0 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: #0f172a;
}

.tm-call-modal-host-email {
    margin: 0;
}

.tm-call-modal-host-workspace {
    margin: 0;
    font-style: italic;
    font-size: 0.75rem;
}

.tm-call-modal-lock {
/*    margin-top: 1rem;*/
    background: rgba(255,255,255,0.85);
    border-radius: 1.2rem;
    padding: 1rem;
    display: flex;
    gap: 0.85rem;
    align-items: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.tm-call-modal-lock-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
/*    background: rgba(15, 23, 42, 0.08);*/
    background: rgba(248, 113, 113, 0.18);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    font-size: 1.1rem;
}

.tm-call-modal-lock-label {
    margin: 0;
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: #64748b;
}

.tm-call-modal-password {
    margin: 0.1rem 0 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #0f172a;
}

.tm-call-modal-body {
    padding: 1.75rem 2.25rem;
    background: #fff;
}

.tm-call-modal-edit-placeholder {
    display: none;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.tm-call-modal-edit-placeholder.is-visible {
    display: flex;
}

.tm-call-modal-rsvp-placeholder {
    display: none;
    margin-top: 0.75rem;
}

.tm-call-modal-rsvp-placeholder.is-visible {
    display: block;
}

.tm-call-modal-rsvp-status {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #0f172a;
}

.tm-call-modal-rsvp-status--accepted {
    color: #15803d;
}

.tm-call-modal-rsvp-status--tentative {
    color: #0f766e;
}

.tm-call-modal-rsvp-status--declined {
    color: #b91c1c;
}

.tm-call-modal-rsvp-status--unconfirmed {
    color: #475569;
}

.tm-call-modal-host-actions-placeholder {
    margin-top: 0.75rem;
}

.tm-call-modal-host-actions-placeholder:empty {
    display: none;
}

.tm-call-modal-rsvp-panel {
    margin-bottom: 0;
}

.tm-call-modal-rsvp-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.tm-call-modal-rsvp-form {
    margin: 0;
}

.tm-modal-status-flag {
    display: none;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    margin: 0.75rem 2.25rem 1.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 0.5rem 1rem;
}

.tm-modal-status-flag.is-visible {
    display: flex;
}

.tm-modal-status-flag--past {
    background: rgba(15, 23, 42, 0.08);
    color: #475569;
}

.tm-modal-status-flag--live {
    background: rgba(239, 68, 68, 0.15);
    color: #b91c1c;
}

.tm-modal-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    display: inline-flex;
}

.tm-modal-status-dot--pulse {
    animation: tmStatusPulse 1.2s ease-in-out infinite;
}

@keyframes tmStatusPulse {
    0% {
        transform: scale(0.75);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.35);
        opacity: 0.35;
    }
    100% {
        transform: scale(0.75);
        opacity: 0.8;
    }
}

.tm-booking-modal-actions-placeholder {
    display: none;
    margin-top: 0.75rem;
}

.tm-booking-modal-actions-placeholder.is-visible {
    display: block;
}

.tm-booking-modal-action-panel {
    margin-bottom: 0;
}

.tm-booking-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
}

.tm-booking-modal-action-form {
    margin: 0;
}

@media (max-width: 640px) {
    .tm-booking-modal-actions {
        grid-template-columns: 1fr;
    }
}

.tm-call-modal-edit-btn {
    min-width: 160px;
}

.tm-call-modal-panel {
    border: 1px solid rgba(148,163,184,0.25);
    border-radius: 1rem;
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    background: rgba(248,250,252,0.6);
}

.tm-call-modal-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.tm-call-modal-panel-head--right {
    justify-content: flex-end;
}

.tm-call-modal-pill {
    padding: 0.15rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.tm-call-modal-pill--muted {
    background: rgba(15, 23, 42, 0.06);
    color: #475569;
}

.tm-call-modal-actions {
    padding: 1.75rem 2.25rem;
    border-top: 1px solid rgba(148,163,184,0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(248,250,252,0.85);
}

.tm-call-modal-cta-title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #0f172a;
}

.tm-call-modal-cta-sub {
    margin: 0 0 0.35rem 0;
    color: #94a3b8;
}

.tm-call-modal-action-buttons {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .tm-call-modal-hero {
        padding: 1.5rem;
    }

    .tm-call-modal-body,
    .tm-call-modal-actions {
        padding: 1.25rem 1.5rem;
    }

    .tm-call-modal-action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .tm-call-modal-action-buttons .btn {
        width: 100%;
    }

    .tm-call-modal-rsvp-actions {
        grid-template-columns: 1fr;
    }
}

.tm-invitee-labels {
    font-size: 0.8rem;
    color: #475569;
}

@media (max-width: 1200px) {
    .tm-call-card {
        grid-template-columns: minmax(220px, 1fr) minmax(0, 1fr);
    }

    .tm-call-card-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }

    .tm-directory-head-meta {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 992px) {
    .tm-call-card {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }

    .tm-call-card-actions {
        justify-content: flex-start;
    }
}

@media (min-width: 992px) {
    .tm-directory-filters {
        padding: 1.15rem 1.35rem;
        border-radius: 1.1rem;
    }

    .tm-directory-heading {
        gap: 0.6rem;
    }

    .tm-directory-heading-main {
        gap: 0.5rem;
    }

    .tm-directory-title {
        font-size: 1.3rem;
    }

    .tm-directory-subtitle {
        font-size: 0.8rem;
    }

    .tm-directory-cta {
        padding: 0.5rem 1.25rem;
        font-size: 0.85rem;
    }

    .tm-directory-grid {
        gap: 0.3rem;
    }

    .tm-directory-card {
        padding: 0.85rem 1.15rem;
        border-radius: 0.5rem;
/*        gap: 0.85rem;*/
        gap: 0rem 0.85rem;
        grid-template-columns: 200px minmax(0, 1fr) auto;
        box-shadow: 0 15px 30px rgba(15, 23, 42, 0.06);
    }

    .tm-directory-avatar {
        width: 68px;
        height: 68px;
        flex: 0 0 68px;
    }

    .tm-directory-name {
        font-size: 1rem;
    }

    .tm-directory-card-body {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 0.35rem 0.75rem;
    }

    .tm-directory-field {
        font-size: 0.9rem;
    }

    .tm-directory-card-actions .btn {
        padding: 0.4rem 0.85rem;
        font-size: 0.85rem;
    }
}

.tm-directory-empty {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 1.5rem;
    padding: 3rem;
    text-align: center;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.08);
}

.tm-directory mark {
    background: #fef08a;
    color: inherit;
    padding: 0 0.1rem;
    border-radius: 0.2rem;
}

/* Tag chips */
.tm-tag-chip {
    background: rgba(37, 99, 235, 0.08);
    color: #64748b;
    border-radius: 999px;
    padding: 0.2rem 0.65rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.05em;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.tm-tag-chip:is(:hover, :focus-visible) {
    background: rgba(37, 99, 235, 0.18);
    color: #1d4ed8;
    box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.3);
}

.tm-directory-card-actions {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: nowrap;
}

@keyframes tmTabFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.tm-profile-title {
    margin: 0;
    font-size: 2.1rem;
    color: #0f172a;
    font-weight: 700;
}

.tm-profile-subtitle {
    margin-top: 0.4rem;
    color: #64748b;
    font-size: 1rem;
}

.tm-profile-section {
    border: 1px solid rgba(148, 163, 184, 0.25);
    border-radius: 1.2rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: rgba(248, 250, 252, 0.7);
}

.tm-profile-section-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.tm-profile-section-helper {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 0.8rem;
}

.tm-profile-form .form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
}

.tm-profile-form .form-control {
    border-radius: 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    padding: 0.85rem 1rem;
}

.tm-profile-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.tm-profile-avatar .avatar-wrapper {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.tm-profile-avatar .avatar-img {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}

.avatar-btn-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.avatar-hint {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #94a3b8;
    text-align: center;
}

.tm-rights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
}

.tm-right-item {
    padding: 0.75rem 0.85rem;
    border: 1px solid rgba(148, 163, 184, 0.3);
    border-radius: 0.85rem;
    background: white;
}

.tm-profile-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .tm-directory-filter-form {
        grid-template-columns: 1fr;
    }

    .tm-directory-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .tm-directory-grid {
        grid-template-columns: 1fr;
    }

    .tm-directory-card {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        align-items: flex-start;
    }

    .tm-directory-card-actions {
        flex-wrap: wrap;
    }

    .tm-directory-card-actions {
        justify-content: flex-start;
    }
}

.dashboard-stats-row {
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}

@media (min-width: 1200px) {
    .dashboard-stats-row .dashboard-stat-col {
        flex: 0 0 20%;
        max-width: 20%;
    }
}

.dashboard-stat-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    align-items: flex-start;
}

.dashboard-stat-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.dashboard-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6c757d;
    font-weight: 600;
}

.dashboard-stat-value {
    font-size: 1.6rem;
    font-weight: 600;
    color: #1f2a44;
}

.dashboard-stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    font-size: 1rem;
    color: #ffffff;
}

.dashboard-stat-icon.primary {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
}

.dashboard-stat-icon.success {
    background: linear-gradient(135deg, #4bb543, #2e7d32);
}

.dashboard-stat-icon.warning {
    background: linear-gradient(135deg, #f9c74f, #f57c00);
}

.dashboard-stat-icon.info {
    background: linear-gradient(135deg, #4895ef, #4361ee);
}

.dashboard-stat-icon.danger {
    background: linear-gradient(135deg, #ef476f, #d90429);
}

/* Call add form modernization */
.tm-call-form-card {
    max-width: 640px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: none;
    border-radius: 0.9rem;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    overflow: hidden;
}

.tm-call-form-header {
    background: linear-gradient(135deg, #111827, #1f2933);
    color: #f9fafb;
    font-size: 1.15rem;
    font-weight: 600;
    padding: 0.9rem 1.5rem;
    border-bottom: none;
}

.tm-call-form-body {
    padding: 1.75rem 1.75rem 1.5rem;
}

.tm-call-form-subtitle {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 1.5rem;
}

.tm-call-form .form-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6b7280;
    margin-bottom: 0.2rem;
}

.tm-call-form .form-control {
    border-radius: 0.6rem;
    border: 1px solid rgba(148, 163, 184, 0.7);
    font-size: 0.9rem;
}

.tm-call-form .form-control:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.25);
}

.tm-call-schedule-row,
.tm-call-now-row {
    gap: 0.5rem;
}

.tm-call-duration {
    margin-top: 0.4rem;
    font-size: 0.8rem;
    font-weight: normal;
    color: #475569;
}

.tm-call-duration .form-check-label {
    font-size: 0.8rem;
}

.tm-call-submit {
    padding-inline: 1.75rem;
    border-radius: 999px;
}

.tm-call-lobby-switch .form-check-input {
    width: 2.5em;
    height: 1.3em;
    margin-left: -2.5em;
    background-color: #e5e7eb !important;
    border-color: #d1d5db !important;
}

.tm-call-lobby-switch .form-check-input:checked {
    background-color: #22c55e !important;
    border-color: #16a34a !important;
}

.dashboard-widget-table {
    background-color: #ffffff;
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
    border: none;
    outline: 0 !important;
}

/* ensure no focus outlines/dotted radius inside dashboard widget tables */
.dashboard-widget-table * {
    outline: 0 !important;
}

/* overall app background like mockup */
body {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    background-attachment: fixed;
}

/* modern menu */
.menu-container {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    padding: 0;
    margin: 0;
    margin-bottom: 10px;
}

.modern-header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
}

.logo-section {
    display: flex;
    align-items: center;
}

.modern-logo-link {
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: white;
}

.modern-logo {
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modern-logo img {
    height: 40px;
    width: auto;
    max-width: none;
    display: block;
}

.brand-info {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 1.75rem;
}

.brand-name {
    color: white;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.brand-slogan {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: uppercase;
}

@media (max-width: 576px) {
    .brand-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.1rem;
    }
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Auth forms */
.auth-card {
    max-width: 420px;
    margin-top: 3rem;
    margin-bottom: 3rem;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 1.25rem;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.15);
    border: none;
}

.auth-card-body {
    padding: 2.5rem 2.75rem 2.25rem;
}

.auth-header {
    text-align: left;
    margin-bottom: 2rem;
}

.auth-eyebrow {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #94a3b8;
    margin-bottom: 0.4rem;
}

.auth-title {
    font-size: 1.6rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.4rem;
}

.auth-subtitle {
    margin: 0;
    color: #64748b;
    font-size: 0.95rem;
}

.auth-input-group .input-group-text {
    background: transparent;
    border-right: none;
    color: #94a3b8;
}

.auth-input-group .form-control {
    border-left: none;
    border-radius: 0 0.65rem 0.65rem 0;
}

.auth-input-group .input-group-text,
.auth-input-group .form-control {
    border-color: rgba(148, 163, 184, 0.8);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input-group .form-control:focus {
    box-shadow: 0 0 0 1px rgba(59, 130, 246, 0.35);
}

.auth-remember .form-check-input {
    margin-right: 0.35rem;
}

.auth-link {
    font-size: 0.85rem;
    color: #3b82f6;
    text-decoration: none;
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.35);
}

@media (max-width: 576px) {
    .auth-card-body {
        padding: 2rem 1.75rem;
    }

    .auth-title {
        font-size: 1.35rem;
    }
}

.modern-header-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    font-weight: 500;
}

.modern-header-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.modern-header-btn:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    color: white;
}

.modern-dropdown {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 0.5rem;
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
    margin-top: 0.5rem;
    min-width: 220px;
    border: none;
}

.modern-dropdown-header {
    background-color: #f8f9fa;
    padding: 0.75rem 1rem;
    font-weight: 600;
    margin-bottom: 0;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.875rem;
}

.modern-dropdown-item {
    color: #495057;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.modern-dropdown-item:hover {
    background-color: #f8f9fa;
    color: #4361ee;
    text-decoration: none;
}

.modern-dropdown-item i {
    width: 16px;
    text-align: center;
    color: #6c757d;
}

.modern-dropdown-item:hover i {
    color: #4361ee;
}

/* admin dot notifications */
.tm-admin-tab-dot {
    width: 0.45rem;
    height: 0.45rem;
    background: #e53935;
    border-radius: 999px;
    display: inline-block;
    box-shadow: 0 0 0 2px #fff;
}
.tm-admin-subnav-dot {
    width: 0.4rem;
    height: 0.4rem;
    background: #e53935;
    border-radius: 999px;
    display: inline-block;
}
/* admin dot notifications */

.modern-notification-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef476f;
    color: white;
    border-radius: 50%;
    width: 15px;
    height: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.modern-notification-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ef476f;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.70rem;
    font-weight: 600;
}

.modern-notification-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notification-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.notification-title {
    color: #333;
    font-size: 0.875rem;
    margin: 0;
    font-weight: 500;
}

.notification-time {
    color: #6c757d;
    font-size: 0.75rem;
}

/* legacy menu support */
.menu-left, .menu-right {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
}

.menu-left li, .menu-right li {
    position: relative;
}

.menu-left a, .menu-right a {
    text-decoration: none;
    color: white;
}

.menu-left li a, .menu-left li span, .menu-right li a {
    display: block;
    color: white;
    text-align: center;
    padding: 13px 16px;
    text-decoration: none;
}

.menu-left li a:hover, .menu-right li a:hover {
    background-color: #111;
}

/* Dropdown menu styles */
.dropdown-menu {
    background-color: #fff;
    border: 1px solid rgba(0,0,0,.15);
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,.175);
    margin-top: 0;
    min-width: 200px;
}

.dropdown-menu .dropdown-item {
    color: #333;
    padding: 8px 16px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
}

.dropdown-menu .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #16181b;
    text-decoration: none;
}

.dropdown-menu .dropdown-item i {
    width: 16px;
    text-align: center;
    color: #666;
}

.dropdown-menu .dropdown-item:hover i {
    color: #16181b;
}

.dropdown-divider {
    margin: 4px 0;
    border-top: 1px solid #e9ecef;
}

.dropdown-toggle::after {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    content: "";
    border-top: 4px solid;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
}

/* Notifications specific styles */
.notification-badge {
    position: absolute;
    top: 8px;
    right: 5px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1;
}

.notifications-dropdown {
    min-width: 300px;
    padding: 0;
}

.notifications-dropdown .dropdown-header {
    background-color: #f8f9fa;
    padding: 8px 16px;
    font-weight: 600;
    margin-bottom: 0;
}

.notifications-dropdown .dropdown-item {
    padding: 8px 16px;
    border-bottom: 1px solid #f1f1f1;
}

.notifications-dropdown .dropdown-item:last-child {
    border-bottom: none;
}

.notification-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-title {
    color: #333;
    font-size: 0.9rem;
    margin: 0;
}

.notification-time {
    color: #666;
    font-size: 0.8rem;
}

.notifications-dropdown .text-center {
    font-size: 0.9rem;
    color: #0d6efd;
    padding: 8px;
}

.notifications-dropdown .text-center:hover {
    background-color: #f8f9fa;
}

/* Position the bell icon relative to badge */
.menu-right .dropdown > a {
    position: relative;
    padding-right: 24px;
}

/* Quick Actions specific styles */
.menu-left .dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
}

.menu-left .dropdown-toggle i {
    font-size: 14px;
}

.menu-left .dropdown-menu {
    margin-top: 2px;
}
/* /menu */

.error {
    color: red;
    margin: 15px 0px 15px 0px;
    padding: 5px;
    background-color: #eee;
    border: 1px solid #333;
    font-weight: bold;
    font-size: 0.85em;
}

.notice {
    color: green;
    margin: 15px 0px 15px 0px;
    padding: 5px;
    background-color: #eee;
    border: 1px solid #333;
    font-weight: bold;
    font-size: 0.85em;
}

#main {
    width: 100%;
}

#footer {
    position: fixed;
    left: 0px;
    bottom: 0px;
    height: 30px;
    width: 100%;
    background-color: #777;
    color: white;
    text-align: center;
    font-size: 0.85em;
    line-height: 30px;
}

#footer a {
    color: white;
}

.results-header {
    display: flex;
    justify-content: space-between;
}

.results-message {
    width: 25%;
}

.results-message, .results-filter {
    padding: 10px 10px 10px 10px;
}


.widget {
    border: 1px solid gray;
}


/* dashboard widgets */
.dashboard-widget-header {
    margin-bottom: 0.5rem;
    border-radius: 0.75rem;
    border: none !important;
    background: #ffffff !important;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
    font-weight: 600;
    font-size: 1rem;
    color: #0f172a;
    outline: 0 !important;
}

.dashboard-widget-header a {
    color: #4361ee;
}

.dashboard-widget-header a:hover {
    text-decoration: none;
}

.table.table-striped.table-hover.table-bordered {
    background-color: transparent;
    border-radius: 0;
    overflow: visible;
    box-shadow: none;
    border: none;
    outline: 0 !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.table thead.thead-dark {
    background: transparent;
}

.table thead.thead-dark th {
    border-color: transparent;
    color: #0f172a;
    font-weight: 600;
}

/* remove bottom border under the colored header row */
.table thead.thead-dark tr {
    border-bottom: none;
}

.table tbody tr:hover {
    background-color: #f8fafc;
}

/* remove busy inner table borders for cleaner cards */
.table-bordered td,
.table-bordered th {
    border: none;
}

/* also remove remaining horizontal row borders for dashboard tables */
.table.table-striped.table-hover.table-bordered tr {
    border-bottom: none;
}

/* kill remaining table header borders completely */
.table thead th {
    border-style: none !important;
    border-width: 0 !important;
}

/* extra safety for bordered headers */
.table-bordered thead th,
.table-bordered thead tr {
    border-style: none !important;
    border-width: 0 !important;
}

/* remove any border on thead itself */
.table thead,
.table-bordered thead {
    border-bottom: none !important;
    border-top: none !important;
}

/* hard reset all borders/outlines for dashboard tables to remove any remaining lines */
.table.table-striped.table-hover.table-bordered,
.table.table-striped.table-hover.table-bordered thead,
.table.table-striped.table-hover.table-bordered tbody,
.table.table-striped.table-hover.table-bordered tr,
.table.table-striped.table-hover.table-bordered th,
.table.table-striped.table-hover.table-bordered td {
    border: 0 !important;
    outline: 0 !important;
}

/* ensure table headers themselves have no radius; rounding is only on the outer card */
.table thead,
.table thead th,
.table thead.thead-dark,
.table thead.thead-dark th {
    border-radius: 0 !important;
}


/* time row in sidebar */
#time_now {
    border-color: #e2e8f0 !important;
    background-color: #f8fafc;
    border-radius: 0.5rem;
    height: 26px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    margin-bottom: 6px;
    transition: opacity 0.2s ease;
}

#time_now span {
    font-size: 12px;
    color: #0f172a;
    letter-spacing: 0.02em;
    vertical-align: top;
}


/* collapsing sidebar */
.toggle-sidebar-button {
    position: absolute;
    top: -8px;
    right: 0px;
    z-index: 100;
    margin: 10px;
    height: 22px;
    width: 22px;
    padding: 0;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
    color: #64748b;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toggle-sidebar-button:hover {
    background-color: #e2e8f0;
    color: #0f172a;
}
.sidebar-wrapper {
    position: relative;
    width: 275px;
    transition: width 0.5s ease;
    overflow-x: hidden;
    min-height: calc(100vh - 100px);
    display: flex;
    flex-direction: column;
}
.sidebar-wrapper.collapsed {
    width: 6em;
}
.sidebar-collapsed .sidebar-wrapper {
    width: 6em;
}

/* Center icons in collapsed sidebar */
.sidebar-collapsed .sidebar-content {
    width: 100%;
}

.sidebar-collapsed .sidebar-content .list-group-item {
    justify-content: center;
    padding: 0.85rem 0.5rem;
/*    margin-left: 0.25rem;*/
/*    margin-right: 0.25rem;*/
    overflow: hidden;
}

/* Hide text but keep icons visible */
.sidebar-collapsed .sidebar-content .list-group-item i {
    margin-right: 0;
    display: inline-block;
    width: 1.25em;
    text-align: center;
}

.sidebar-collapsed .sidebar-content .list-group-item i + span,
.sidebar-collapsed .sidebar-content .list-group-item span:not(:empty) {
    display: none;
}

/* Also hide any text nodes after icons */
.sidebar-collapsed .sidebar-content .list-group-item {
    font-size: 0;
}

.sidebar-collapsed .sidebar-content .list-group-item i {
    font-size: 1rem;
}

/* Even hover for collapsed sidebar */
.sidebar-collapsed .sidebar-content .list-group-item-action:hover {
    background-color: #f1f5f9;
    transform: none;
    border-radius: 0.5rem;
}

/* Hide time display when collapsed but keep container */
.sidebar-collapsed #time_now {
    border-color: #e2e8f0 !important;
    background-color: #f8fafc !important;
    border-radius: 0.5rem !important;
    height: 26px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 8px !important;
    margin-bottom: 6px !important;
    opacity: 1 !important;
}

.sidebar-collapsed #time_now span {
    visibility: hidden;
}

/* Fix toggle button layout when collapsed */
.sidebar-collapsed .col-4 {
    width: auto;
    flex: none;
    position: absolute;
    right: 0;
    top: 0;
}
/* sidebar container */
.sidebar-content {
    width: 250px;
    border: none;
/*    border-radius: 0.75rem;*/
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    flex: 1 1 auto;
}

/* sidebar items */
.sidebar-content .list-group-item {
    border: none;
    padding: 0.85rem 1.1rem;
    font-size: 1rem;
    display: flex;
    align-items: center;
    transition: background-color 0.15s ease, transform 0.15s ease;
    margin-bottom: 0.1rem;
    margin-left: 0.75rem;
    margin-right: 0.75rem;
    width: calc(100% - 1.5rem);
}

.sidebar-content .list-group-item-action {
    background-color: transparent;
    border-radius: 0.5rem;
}

.sidebar-content .list-group-item-action:hover {
    background-color: #f1f5f9;
    transform: translateX(2px);
}

.sidebar-content .list-group-item-secondary {
    background: linear-gradient(135deg, #4361ee, #3f37c9);
    color: #ffffff;
    border-radius: 0.5rem;
}

.sidebar-content .list-group-item-secondary i {
    color: #ffffff;
}

/* sidebar section titles */
.sidebar-content .sidebar-section-title-first {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    padding: 0.6rem 1.1rem 0.45rem 1.1rem;
    cursor: default;
    background-color: transparent;
    font-weight: 300;
}
.sidebar-content .sidebar-section-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6c757d;
    padding: 0.6rem 1.1rem 0.45rem 1.1rem;
    cursor: default;
    background-color: transparent;
    font-weight: 300;
    border-top: 1px solid lightgray;
}

/* make section titles invisible (but keep spacing) when collapsed */
.sidebar-wrapper.collapsed .sidebar-section-title-first {
    visibility: hidden;
}
.sidebar-wrapper.collapsed .sidebar-section-title {
    visibility: hidden;
}

.list-group-item i {
    margin-right: 10px;
/*    margin-left: -8px;*/
    width: 20px;
    text-align: center;
    color: #64748b;
    font-size: 1.05rem;
}

.main-content {
    flex-grow: 1;
    transition: width 0.5s ease;
/*    margin-bottom: 50px;*/
/*    padding: 2rem;*/
    padding-left: 0.5rem;
    padding-bottom: 2rem;
/*    width: 80%;*/
}
.main-content.expanded {
    width: calc(70% + 250px);
}
.sidebar-collapsed .main-content {
    width: calc(70% + 3em);
/*    padding-left: 1rem;*/
}

.sidebar-content a {
    text-decoration: none;
}

.logo {
    height: 35px;
    margin-top: 10px;
}

.logo-link {
    border: 1px solid white;
/*    margin-top: 2px;*/
    margin-left: 2px;
    background-color: lightseagreen;
}

input[type="select"]:disabled,
input[type="radio"]:disabled {
  background-color: #e0e0e0; /* Light gray background */
  color: #999999; /* Gray text */
  border-color: #cccccc; /* Lighter gray border */
  cursor: not-allowed; /* Shows the 'not-allowed' cursor */
  opacity: 0.7; /* Makes it slightly transparent */
}

/* pagination */
.tm-pagination {
    margin: 1.5rem 0 0;
}

.tm-pagination .pagination {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    padding: 0.4rem 0.75rem;
    border-radius: 5px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: white;
    transition: all 0.2s ease;
    text-decoration: none;
}

.pagination-link a {
    text-decoration: none;
    color: inherit;
}

.pagination-link.active {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: white;
    border-color: transparent;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.25);
}

.pagination-link.disabled {
    opacity: 0.4;
/*    cursor: not-allowed;*/
}

.pagination-link:not(.active):not(.disabled):hover {
    border-color: rgba(37, 99, 235, 0.4);
    color: #1d4ed8;
}

.pagination-ellipsis {
    pointer-events: none;
}
/* /pagination */

.th-time {
    width: 200px;
}

.results {
    text-align: left;
    font-family: monospace;
    white-space: pre-wrap;
    background-color: #f4f4f4;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow-x: auto;
}

.table-results, .filter-results {
    font-size: 0.85em;
}

.button.active {
    background-color: lightgray;
    border: 1px solid gray;
    border-radius: 4px;
}

/* messages system */
.alert-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

.alert-sm .btn-close-sm {
    padding: 0.25rem 0.25rem;
    margin: -0.125rem -0.125rem -0.125rem auto;
    font-size: 0.75rem;
}

/* modern header responsive adjustments */
@media (max-width: 768px) {
    .modern-header-content {
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
    }

    .logo-section {
        width: 100%;
        justify-content: center;
    }

    .header-actions {
        flex-wrap: wrap;
        justify-content: center;
        gap: 0.5rem;
    }

    .modern-header-btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.875rem;
    }

    .brand-name {
        font-size: 1.25rem;
    }

    .brand-slogan {
        font-size: 0.75rem;
    }
}

@media (max-width: 576px) {
    .header-actions {
        width: 100%;
        justify-content: space-between;
    }

    .modern-header-btn {
        flex: 1;
        min-width: 0;
        text-align: center;
    }

    .modern-header-btn .me-2 {
        display: none;
    }
}
