
/* ============================================================ */
/* CHURCHTEC TEAL THEME — ALL COLORS SOURCED FROM THESE VARS   */
/* ============================================================ */
:root {
    /* Primary teal palette */
    --ct-primary:       #0d9488;   /* teal-600 */
    --ct-dark:          #0f766e;   /* teal-700 */
    --ct-darker:        #115e59;   /* teal-800 */
    --ct-darkest:       #134e4a;   /* teal-900 */
    --ct-light:         #14b8a6;   /* teal-500 */
    --ct-lighter:       #2dd4bf;   /* teal-400 */
    --ct-lightest:      #ccfbf1;   /* teal-100 */
    --ct-accent-bg:     #f0fdfa;   /* teal-50  */

    /* Gradients */
    --ct-gradient:          linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    --ct-gradient-alt:      linear-gradient(135deg, #0f766e 0%, #0d9488 70%);
    --ct-gradient-vertical: linear-gradient(180deg, #134e4a 0%, #0d9488 70%);

    /* Semantic */
    --ct-text-on-dark:  #ffffff;
    --ct-hover-bg:      rgba(13, 148, 136, 0.08);
    --ct-link:          #0d9488;
    --ct-link-hover:    #0f766e;

    /* Bootstrap overrides — btn-primary, bg-primary, focus rings etc. */
    --bs-primary:           #0d9488;
    --bs-primary-rgb:       13, 148, 136;
    --bs-link-color:        #0d9488;
    --bs-link-hover-color:  #0f766e;
    --bs-focus-ring-color:  rgba(13, 148, 136, 0.25);
}

/* Override Bootstrap btn-primary colours explicitly */
.btn-primary,
.btn-primary:not(:disabled):not(.disabled) {
    background-color: #0d9488 !important;
    border-color: #0f766e !important;
    color: #fff !important;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #0f766e !important;
    border-color: #115e59 !important;
}

/* Override Bootstrap bg-primary */
.bg-primary {
    background-color: #0d9488 !important;
}

/* Override Bootstrap form focus ring */
.form-control:focus,
.form-select:focus {
    border-color: #0d9488 !important;
    box-shadow: 0 0 0 0.2rem rgba(13, 148, 136, 0.25) !important;
}

/* Override Bootstrap outline-primary */
.btn-outline-primary {
    color: #0d9488 !important;
    border-color: #0d9488 !important;
}
.btn-outline-primary:hover {
    background-color: #0d9488 !important;
    color: #fff !important;
}
/* ============================================================ */

/*#if (SampleContent)*/
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

a, .btn-link {
    color: var(--ct-link);
}

.btn-primary {
    color: #fff;
    background-color: var(--ct-primary);
    border-color: var(--ct-dark);
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

/*#endif*/
h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.status-bar-safe-area {
    display: none;
}

@supports (-webkit-touch-callout: none) {
    .status-bar-safe-area {
        display: flex;
        position: sticky;
        top: 0;
        height: env(safe-area-inset-top);
        background-color: #f7f7f7;
        width: 100%;
        z-index: 1;
    }

    .flex-column, .navbar-brand {
        padding-left: env(safe-area-inset-left);
    }
}

/* Full Background */
/*.login-wrapper {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e3c72, #2a5298);*/ /* Deep Blue Gradient */
/*}*/

/* Card */
.login-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(15px);
    padding: 35px;
    width: 380px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* Title */
.login-title {
    text-align: left;
    color: white;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Input */
.login-input {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 6px;
    border: none;
    outline: none;
    font-size: 14px;
}

/* Button */
.login-button {
    width: 100%;
    padding: 10px;
    border: none;
    border-radius: 6px;
    background: #ffffff;
    color: #1e3c72;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
}

    .login-button:hover {
        background: #e6e6e6;
    }

/* Error */
.error-msg {
    color: #ffcccc;
    margin-top: 10px;
    font-size: 13px;
}

.app-header {
    height: 60px;
    background: linear-gradient(90deg, var(--ct-darkest), var(--ct-primary)) !important;
    color: white;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

/* ============================= */
/* LEGACY CUSTOM MODAL SUPPORT */
/* ============================= */

.custom-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1050;
    padding: 1rem;
}

.custom-modal {
    background: white;
    width: 100%;
    max-width: 700px;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    animation: modalFadeIn 0.3s ease-out;
    overflow: hidden;
}

/* ============================= */
/* APP MODAL SYSTEM - ENHANCED */
/* ============================= */

.app-modal {
    background: #ffffff;
    width: 100%;
    max-width: 700px;
    border-radius: 0.5rem;
    border: 0;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: modalFadeIn 0.3s ease-out;
}

/* Size modifiers */
.app-modal.small-modal {
    max-width: 480px;
}

.app-modal.large-modal {
    max-width: 950px;
}

/* Header */
.app-modal-header {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: none;
}

/* Title */
.app-modal-title {
    margin: 0;
    font-weight: 600;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.app-modal-title i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

/* Close Button */
.app-modal-header .btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    opacity: 0.8;
    transition: all 0.2s ease;
    padding: 0.5rem;
    border-radius: 0.25rem;
}

.app-modal-header .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    opacity: 1;
    transform: scale(1.1);
}

/* Body */
.app-modal .modal-body {
    padding: 1.5rem;
    background: #ffffff;
}

/* Footer */
.app-modal .modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    background-color: #f8f9fa;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.app-modal .modal-footer .btn {
    min-width: 100px;
    font-weight: 500;
}

/* Modal Animations */
@keyframes modalFadeIn {
    from {
        transform: translate(0, -20px) scale(0.95);
        opacity: 0;
    }
    to {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
}

/* Base App Modal Scrolling Fix - ENHANCED */
.app-modal,
.custom-modal {
    display: flex !important;
    flex-direction: column !important;
    max-height: calc(100vh - 2rem) !important;
    height: auto !important;
}

.app-modal-header {
    flex-shrink: 0 !important;
    z-index: 2 !important;
    position: relative !important;
}

.app-modal .modal-body,
.app-modal > .modal-body,
div.app-modal div.modal-body {
    flex: 1 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    min-height: 0 !important; /* Critical for flexbox scrolling */
    max-height: none !important; /* Remove any height restrictions */
    padding: 1.5rem !important;
    background: #ffffff !important;
}

.app-modal .modal-footer,
.app-modal > .modal-footer,
div.app-modal div.modal-footer,
.app-modal div[class="modal-footer"],
.custom-modal-overlay .app-modal .modal-footer,
.custom-modal-overlay div.app-modal div.modal-footer {
    flex-shrink: 0 !important;
    z-index: 2 !important;
    position: relative !important;
    background-color: #f8f9fa !important;
    border-top: 1px solid #dee2e6 !important;
    border-radius: 0 0 8px 8px !important;
    padding: 1rem 1.5rem !important;
    display: flex !important;
    gap: 0.5rem !important;
    justify-content: flex-end !important;
    min-height: 60px !important;
    margin-top: auto !important;
    box-sizing: border-box !important;
}

/* Mobile Responsive Styles for App Modal - ENHANCED */
@media (max-width: 767.98px) {
    .custom-modal-overlay {
        padding: 0.5rem !important;
        align-items: stretch !important;
        display: flex !important;
        flex-direction: column !important;
    }
    
    .app-modal,
    .custom-modal {
        width: 100% !important;
        max-width: 100% !important;
        height: calc(100vh - 1rem) !important;
        max-height: calc(100vh - 1rem) !important;
        display: flex !important;
        flex-direction: column !important;
        border-radius: 0.75rem !important;
        overflow: hidden !important;
    }
    
    .app-modal-header {
        flex-shrink: 0 !important;
        padding: 0.75rem 1rem !important;
        position: relative !important;
        z-index: 3 !important;
    }
    
    .app-modal .modal-body,
    .app-modal > .modal-body,
    div.app-modal div.modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        padding: 1rem !important;
        min-height: 0 !important;
        max-height: none !important;
        height: auto !important;
        background: #ffffff !important;
    }
    
    .app-modal .modal-footer,
    .app-modal > .modal-footer,
    div.app-modal div.modal-footer,
    .app-modal div[class="modal-footer"],
    .custom-modal-overlay .app-modal .modal-footer,
    .custom-modal-overlay div.app-modal div.modal-footer {
        flex-shrink: 0 !important;
        padding: 0.75rem 1rem !important;
        flex-direction: column !important;
        gap: 0.5rem !important;
        position: relative !important;
        z-index: 3 !important;
        background: #f8f9fa !important;
        border-top: 1px solid #dee2e6 !important;
        border-radius: 0 0 8px 8px !important;
        display: flex !important;
        margin-top: auto !important;
        min-height: 60px !important;
        box-sizing: border-box !important;
    }
    
    .app-modal .modal-footer .btn {
        width: 100% !important;
        min-width: auto !important;
        margin: 0 !important;
    }
    
    /* Stack buttons vertically on mobile */
    .app-modal .modal-footer {
        display: flex !important;
        flex-direction: column-reverse !important;
    }
    
    .app-modal .modal-footer .btn-secondary {
        order: 2 !important;
        margin-top: 0.5rem !important;
    }
    
    .app-modal .modal-footer .btn-primary,
    .app-modal .modal-footer .btn-danger {
        order: 1 !important;
    }
}

/* Tablet and Desktop App Modal - ENHANCED */
@media (min-width: 768px) {
    .custom-modal-overlay {
        padding: 1rem !important;
        align-items: center !important;
        justify-content: center !important;
        display: flex !important;
    }
    
    .app-modal,
    .custom-modal {
        max-height: calc(100vh - 3.5rem) !important;
        height: auto !important;
        width: 100% !important;
        max-width: 700px !important;
        display: flex !important;
        flex-direction: column !important;
        margin: auto !important;
    }
    
    .app-modal-header {
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 2 !important;
    }
    
    .app-modal .modal-body,
    .app-modal > .modal-body,
    div.app-modal div.modal-body {
        flex: 1 !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        min-height: 0 !important;
        max-height: calc(100vh - 200px) !important; /* Account for header and footer */
        padding: 1.5rem !important;
        background: #ffffff !important;
    }
    
    .app-modal .modal-footer,
    .app-modal > .modal-footer,
    div.app-modal div.modal-footer,
    .app-modal div[class="modal-footer"],
    .custom-modal-overlay .app-modal .modal-footer,
    .custom-modal-overlay div.app-modal div.modal-footer {
        flex-shrink: 0 !important;
        position: relative !important;
        z-index: 2 !important;
        display: flex !important;
        flex-direction: row !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        background-color: #f8f9fa !important;
        border-top: 1px solid #dee2e6 !important;
        border-radius: 0 0 8px 8px !important;
        padding: 1rem 1.5rem !important;
        margin-top: auto !important;
        min-height: 60px !important;
        box-sizing: border-box !important;
    }
    
    .app-modal .modal-footer .btn {
        width: auto !important;
        min-width: 100px !important;
    }
}

.action-dropdown {
    position: relative;
}

    .action-dropdown .dropdown-menu {
        width: 100%;
        min-width: 0; /* Prevent Bootstrap default 10rem */
    }

    .action-dropdown .dropdown-item {
        white-space: nowrap; /* Prevent text wrapping */
    }

/* Family Details */
.document-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 50px;
    row-gap: 10px;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    font-size: 0.85rem; /* Reduce overall font size */
}

.doc-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.doc-label {
    color: #333;
    min-width: 200px;
    font-size: 0.8rem;
    font-weight: 400;
}

.doc-value {
    font-weight: 700; /* Bold values */
    text-align: left;
    flex: 1;
    padding-left: 15px;
    font-size: 0.8rem;
}

.family-header {
    font-size: 18px; /* Smaller size */
    font-weight: 700; /* Bold */
    color: #ffffff !important; /* Force white */
    letter-spacing: 0.5px;
    margin-bottom: 20px;
    padding-bottom: 2px;
    border-bottom: 2px solid #e3e6f0;
}

.family-banner {
    background: linear-gradient(to bottom, var(--ct-darker), var(--ct-primary));
    color: white;
    padding: 15px 15px 0px 15px;
    /*   top  right  bottom left  */
    border-radius: 4px;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

/*Table design*/
/* Card enhancement */
.card.shadow-sm {
    border-radius: 10px;
    border: none;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08) !important;
    overflow: hidden;
}

/* Header styling */
.table-dark {
    background: linear-gradient(to bottom, var(--ct-darker), var(--ct-primary)) !important;
}

    .table-dark th {
        border: none !important;
        padding: 14px 18px;
        font-weight: 600;
        font-size: 14px;
        letter-spacing: 0.4px;
    }

/* Table body */
.table td {
    padding: 14px 18px;
    vertical-align: middle;
    border-color: #f1f1f1 !important;
    font-size: 14px;
}

/* Hover effect */
.table-hover tbody tr {
    transition: all 0.2s ease-in-out;
}

    .table-hover tbody tr:hover {
        background-color: var(--ct-accent-bg) !important;
        transform: scale(1.002);
    }

/* FID link styling */
.table a {
    font-weight: 600;
    color: var(--ct-dark) !important;
    transition: 0.2s ease;
}

    .table a:hover {
        color: var(--ct-darker) !important;
        text-decoration: underline !important;
    }

/* Badge styling */
.badge {
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
}

    .badge.bg-success {
        background-color: #e6f7ef !important;
        color: #198754 !important;
    }

    .badge.bg-danger {
        background-color: #fde8e8 !important;
        color: #dc3545 !important;
    }

/*subscription Style*/
.subscription-ok {
    background-color: #d4edda;
    color: #155724;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.subscription-pending {
    background-color: #f8d7da;
    color: #721c24;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.subscription-neutral {
    background-color: #fff3cd;
    color: #856404;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

.subscription-error {
    background-color: #e2e3e5;
    color: #383d41;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
}

/* Entire page fixed to viewport */
.family-page-container {
    height: 100vh;
    display: flex;
    flex-direction: column;
}
/* Grid takes remaining height */
.family-grid-container {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    font-size: 0.85rem; /* Reduce overall font size */
}

    .family-grid-container th {
        font-size: 0.8rem;
        font-weight: 600;
    }

    .family-grid-container td {
        font-size: 0.8rem;
    }

    .family-grid-container .badge {
        font-size: 0.7rem;
        padding: 4px 6px;
    }

    /* Card should fill container */
    .family-grid-container .card {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    /* Card body full height */
    .family-grid-container .card-body {
        flex: 1;
        overflow: hidden;
    }

/* Only this scrolls */
.table-scroll-container {
    height: 100%;
    overflow-y: hidden;
}

    /* Sticky header */
    .table-scroll-container thead th {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, #0f766e 0%, #0d9488 70%);
        color: white;
        z-index: 2;
        border-color: rgba(255,255,255,0.15) !important;
    }

/* ========================================= */
/* COMMON TABLE STYLES - STANDARDIZED */
/* ========================================= */

/* Page Header Section - Enhanced for All Grid Pages */
.page-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 70%);
    color: white;
    padding: 1.25rem;
    border-radius: 0.375rem 0.375rem 0 0;
    position: relative;
    overflow: hidden;
    margin-bottom: 0;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.page-header > * {
    position: relative;
    z-index: 2;
}

.page-header h4 {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    color: white;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.5px;
}

.page-header h4 i {
    margin-right: 0.75rem;
    font-size: 1.5rem;
    opacity: 0.9;
}

.page-header small {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
}

/* Financial Year Bar — sits below page-header, outside overflow:hidden */
.fy-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    background: #0d9488;
    padding: 0.55rem 1.25rem;
    border-radius: 0 0 0.375rem 0.375rem;
    border-top: 1px solid rgba(255,255,255,0.15);
}

.fy-bar-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    white-space: nowrap;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}

.fy-bar-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.fy-bar-tab {
    padding: 0.2rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 500;
    border-radius: 2rem;
    border: 1.5px solid rgba(255,255,255,0.4);
    background: transparent;
    color: rgba(255,255,255,0.9);
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.fy-bar-tab:hover {
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.75);
    color: #ffffff;
}

.fy-bar-tab.active {
    background: #ffffff;
    border-color: #ffffff;
    color: #0f766e;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Simple Page Header (for basic pages) */
.page-header-simple {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 1rem;
    color: #495057;
}

.page-header-simple h4 {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    color: #495057;
}

.page-header-simple small {
    color: #6c757d;
}

/* Detail Page Header (for family details, etc.) */
.detail-page-header {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 70%);
    color: white;
    padding: 1.5rem 1.25rem 1rem;
    position: relative;
    overflow: hidden;
}

.detail-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    z-index: 1;
}

.detail-page-header > * {
    position: relative;
    z-index: 2;
}

.detail-page-header .page-title {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    color: white;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.5px;
}

.detail-page-header .page-title i {
    margin-right: 0.75rem;
    font-size: 1.6rem;
    opacity: 0.9;
}

.detail-page-header .page-actions {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    border-radius: 0.375rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.detail-page-header .page-actions .btn {
    background: rgba(255, 255, 255, 0.9);
    color: var(--ct-darker);
    border: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.detail-page-header .page-actions .btn:hover {
    background: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Search Section */
.search-section {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    background-color: #fff;
}

.search-input-group .input-group-text {
    background-color: #f8f9fa;
    border-right: 0;
    color: #6c757d;
}

.search-input-group .form-control {
    border-left: 0;
    padding-left: 0;
}

.search-input-group .form-control:focus {
    border-left: 0;
    box-shadow: none;
}

/* Table Container */
.table-container {
    background-color: #fff;
    border: 0;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    border-radius: 0.375rem;
}

.table-container .card-header {
    background-color: #fff;
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 1rem;
}

.table-container .card-body {
    padding: 0;
}

/* Standardized Table Headers — teal theme */
.standard-table thead {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 70%);
}

.standard-table thead th {
    border: 0;
    padding: 0.75rem;
    font-weight: 600;
    color: white;
    font-size: 0.875rem;
    border-color: rgba(255,255,255,0.15) !important;
    white-space: nowrap;
}

.standard-table tbody td {
    padding: 0.75rem;
    vertical-align: middle;
    color: #212529;
    border-color: #dee2e6;
}

.standard-table tbody tr:hover {
    background-color: rgba(13, 148, 136, 0.05) !important;
}

/* User Avatar Circle */
.user-avatar {
    width: 32px;
    height: 32px;
    font-size: 12px;
    background-color: var(--ct-primary);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    margin-right: 0.5rem;
}

/* Status Badges */
.status-badge {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    display: inline-flex;
    align-items: center;
}

.status-badge i {
    margin-right: 0.25rem;
}

.status-badge.bg-success {
    background-color: #d1e7dd !important;
    color: #0a3622 !important;
}

.status-badge.bg-secondary {
    background-color: #e2e3e5 !important;
    color: #41464b !important;
}

.status-badge.bg-warning {
    background-color: #fff3cd !important;
    color: #664d03 !important;
}

.status-badge.bg-danger {
    background-color: #f8d7da !important;
    color: #58151c !important;
}

.status-badge.bg-info {
    background-color: #d1ecf1 !important;
    color: #055160 !important;
}

/* Action Buttons */
.action-buttons .btn-group .btn {
    min-width: 2.5rem;
    min-height: 2.25rem;
    padding: 0.375rem 0.5rem;
}

.action-buttons .btn i {
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
}

.action-buttons .btn-group-sm .btn i {
    font-size: 0.875rem;
}

/* Bootstrap Icons */
.btn i.bi {
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle;
}

.btn-sm i.bi {
    font-size: 0.875rem;
}

.btn i.bi::before {
    display: inline-block;
    text-align: center;
    vertical-align: -0.125em;
}

/* Table Date Formatting */
.table-date {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Table Links */
.table-link {
    color: var(--ct-link);
    text-decoration: none;
    font-weight: 500;
}

.table-link:hover {
    color: var(--ct-link-hover);
    text-decoration: underline;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.empty-state h5 {
    margin-bottom: 0.5rem;
    color: #495057;
}

.empty-state p {
    color: #6c757d;
    margin-bottom: 1rem;
}

/* ============================= */
/* STANDARDIZED MODAL SYSTEM */
/* ============================= */

/* Modal Overlay */
.modal-overlay {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

/* Standard Modal Content */
.modal-content-custom {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: 0;
    border-radius: 0.5rem;
    overflow: hidden;
}

/* Standard Modal Header */
.modal-header-custom {
    background: linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
    color: #fff;
    border-radius: 0.5rem 0.5rem 0 0;
    padding: 1rem 1.5rem;
    border-bottom: none;
}

.modal-header-custom .modal-title {
    font-weight: 600;
    font-size: 1.1rem;
    margin: 0;
    display: flex;
    align-items: center;
}

.modal-header-custom .modal-title i {
    margin-right: 0.5rem;
    opacity: 0.9;
}

.modal-header-custom .btn-close {
    background: transparent;
    border: none;
    color: white;
    opacity: 0.8;
    font-size: 1.25rem;
    padding: 0.5rem;
    margin: -0.5rem -0.5rem -0.5rem auto;
    transition: all 0.2s ease;
}

.modal-header-custom .btn-close:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Standard Modal Body */
.modal-body-custom {
    padding: 1.5rem;
    background: #ffffff;
}

/* Standard Modal Footer */
.modal-footer-custom {
    background-color: #f8f9fa;
    border-radius: 0 0 0.5rem 0.5rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #dee2e6;
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.modal-footer-custom .btn {
    min-width: 100px;
    font-weight: 500;
}

/* Bootstrap Modal Enhancements */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -50px);
}

.modal.show .modal-dialog {
    transform: none;
}

/* Modal Dialog Base Sizing */
.modal-dialog {
    margin: 1rem;
    max-width: calc(100% - 2rem);
    max-height: calc(100vh - 2rem);
    display: flex;
    flex-direction: column;
}

.modal-dialog.modal-lg {
    max-width: calc(100% - 2rem);
}

.modal-dialog.modal-xl {
    max-width: calc(100% - 2rem);
}

/* Ensure modal content uses flexbox for proper scrolling */
.modal-content-custom {
    display: flex;
    flex-direction: column;
    max-height: 100%;
    height: auto;
}

/* Modal Header - Fixed at top */
.modal-header-custom {
    flex-shrink: 0;
    z-index: 1;
}

/* Modal Body - Scrollable content area */
.modal-body-custom {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 1.5rem;
    background: #ffffff;
    min-height: 0; /* Important for flexbox scrolling */
}

/* Modal Footer - Fixed at bottom */
.modal-footer-custom {
    flex-shrink: 0;
    z-index: 1;
}

/* Mobile Responsive Styles */
@media (max-width: 767.98px) {
    /* Full height on mobile for better UX */
    .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        height: calc(100vh - 1rem);
        max-height: calc(100vh - 1rem);
    }
    
    .modal-content-custom {
        height: 100%;
        display: flex;
        flex-direction: column;
        border-radius: 0.75rem;
    }
    
    .modal-body-custom {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding: 1rem;
        min-height: 0;
    }
    
    .modal-header-custom {
        flex-shrink: 0;
        padding: 0.75rem 1rem;
    }
    
    .modal-footer-custom {
        flex-shrink: 0;
        padding: 0.75rem 1rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .modal-footer-custom .btn {
        width: 100%;
        min-width: auto;
    }
    
    /* Stack buttons vertically on mobile */
    .modal-footer-custom {
        display: flex;
        flex-direction: column-reverse;
    }
    
    .modal-footer-custom .btn-secondary {
        order: 2;
    }
    
    .modal-footer-custom .btn-primary,
    .modal-footer-custom .btn-danger {
        order: 1;
    }
}

/* Tablet and small desktop styles */
@media (min-width: 768px) and (max-width: 1199.98px) {
    .modal-dialog {
        max-height: calc(100vh - 3.5rem);
    }
    
    .modal-content-custom {
        max-height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body-custom {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
}

/* Desktop screens - proper sizing */
@media (min-width: 1200px) {
    .modal-dialog {
        max-width: 600px;
        margin: 1.75rem auto;
        max-height: calc(100vh - 3.5rem);
    }
    
    .modal-dialog.modal-lg {
        max-width: 800px;
    }
    
    .modal-dialog.modal-xl {
        max-width: 1000px;
    }
    
    .modal-content-custom {
        max-height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    .modal-body-custom {
        flex: 1;
        overflow-y: auto;
        min-height: 0;
    }
}

/* Modal Animation Improvements */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out, opacity 0.3s ease-out;
    transform: translate(0, -20px) scale(0.95);
    opacity: 0;
}

.modal.show .modal-dialog {
    transform: translate(0, 0) scale(1);
    opacity: 1;
}

/* Loading Spinner */
.loading-container {
    text-align: center;
    padding: 3rem 1rem;
}

.loading-container .spinner-border {
    color: var(--ct-primary);
}

.loading-container p {
    margin-top: 1rem;
    color: #6c757d;
}

/* Header Button Group */
.header-actions {
    display: flex;
    gap: 0.5rem;
}

.header-actions .btn {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Count Badge */
.count-badge {
    background-color: #f8f9fa;
    color: #495057;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    margin-left: 0.5rem;
}

/* Fixed Width Columns */
.fid-column {
    width: 20ch; /* Exactly 10 characters wide */
    min-width: 20ch;
    max-width: 20ch;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Badge Colors - Standardized Usage */
.status-badge.bg-success {
    background-color: #d1e7dd !important;
    color: #0a3622 !important;
}

.status-badge.bg-danger {
    background-color: #f8d7da !important;
    color: #58151c !important;
}

.status-badge.bg-primary {
    background-color: var(--ct-lightest) !important;
    color: var(--ct-darkest) !important;
}

.status-badge.bg-info {
    background-color: #d1ecf1 !important;
    color: #055160 !important;
}

.status-badge.bg-warning {
    background-color: #fff3cd !important;
    color: #664d03 !important;
}

.status-badge.bg-secondary {
    background-color: #e2e3e5 !important;
    color: #41464b !important;
}

/* ============================================================ */
/* DASHBOARD STATS TILES                                        */
/* ============================================================ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 0.85rem;
    padding: 1rem 1.25rem 0.5rem;
}

.stat-tile {
    background: white;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border: 1px solid #f0f4f8;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-tile::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    border-radius: 4px 0 0 4px;
}

.stat-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.11);
}

.stat-tile-icon {
    width: 46px; height: 46px;
    border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.stat-tile-body { min-width: 0; }

.stat-tile-value {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 3px;
}

.stat-tile-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #6c757d;
    white-space: nowrap;
}

.stat-tile.st-teal::after  { background: #0d9488; }
.stat-tile.st-teal .stat-tile-icon  { background: #f0fdfa; color: #0d9488; }
.stat-tile.st-teal .stat-tile-value { color: #0f766e; }

.stat-tile.st-green::after  { background: #22c55e; }
.stat-tile.st-green .stat-tile-icon  { background: #f0fdf4; color: #16a34a; }
.stat-tile.st-green .stat-tile-value { color: #15803d; }

.stat-tile.st-red::after  { background: #ef4444; }
.stat-tile.st-red .stat-tile-icon  { background: #fef2f2; color: #dc2626; }
.stat-tile.st-red .stat-tile-value { color: #dc2626; }

.stat-tile.st-amber::after  { background: #f59e0b; }
.stat-tile.st-amber .stat-tile-icon  { background: #fffbeb; color: #d97706; }
.stat-tile.st-amber .stat-tile-value { color: #b45309; }

.stat-tile.st-blue::after  { background: #3b82f6; }
.stat-tile.st-blue .stat-tile-icon  { background: #eff6ff; color: #2563eb; }
.stat-tile.st-blue .stat-tile-value { color: #1d4ed8; }

.stat-tile.st-purple::after  { background: #8b5cf6; }
.stat-tile.st-purple .stat-tile-icon  { background: #f5f3ff; color: #7c3aed; }
.stat-tile.st-purple .stat-tile-value { color: #6d28d9; }

.stat-tile.st-orange::after  { background: #f97316; }
.stat-tile.st-orange .stat-tile-icon  { background: #fff7ed; color: #ea580c; }
.stat-tile.st-orange .stat-tile-value { color: #c2410c; }

.stat-tile.st-slate::after  { background: #94a3b8; }
.stat-tile.st-slate .stat-tile-icon  { background: #f8fafc; color: #64748b; }
.stat-tile.st-slate .stat-tile-value { color: #475569; }

@media (max-width: 768px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Modern Table Card */
.modern-table-card {
    border-radius: 12px !important;
    overflow: hidden;
    border: 1px solid #e8f5f3 !important;
    box-shadow: 0 2px 12px rgba(13,148,136,0.07) !important;
}

.modern-table-card .card-header {
    background: white !important;
    border-bottom: 2px solid #f0fdfa !important;
    padding: 0.85rem 1rem !important;
}

.modern-table-card .modern-card-icon {
    width: 32px; height: 32px;
    background: linear-gradient(135deg, #0f766e, #0d9488);
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
    vertical-align: middle;
}

.modern-table-card .modern-card-icon i {
    color: white;
    font-size: 0.9rem;
}

/* ============================================================ */
/* UNIVERSAL TEAL TABLE HEADERS — applies to ALL tables         */
/* (this file is not loaded in BO / ChurchTech.App)             */
/* ============================================================ */

.table thead tr {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 70%);
}

.table thead th {
    color: white !important;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.75rem;
    border-color: rgba(255, 255, 255, 0.15) !important;
    white-space: nowrap;
}

.table thead th i.bi {
    opacity: 0.9;
}

.table tbody tr:hover {
    background-color: rgba(13, 148, 136, 0.05) !important;
}

/* ============================================================ */
/* FAMILY PORTAL STYLES                                          */
/* ============================================================ */

.portal-root {
    min-height: 100vh;
    background: linear-gradient(160deg, #083d40 0%, #0d7377 35%, #14a085 70%, #1abc9c 100%);
    display: flex;
    flex-direction: column;
}

.portal-header {
    padding: 28px 24px 22px;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.portal-brand {
    display: inline-block;
}

.portal-app-name {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.portal-tagline {
    color: rgba(255,255,255,0.75);
    font-size: 13px;
    font-style: italic;
    margin: 0 0 10px;
}

.portal-church-name {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.3);
}

.portal-content {
    flex: 1;
    padding: 32px 16px;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

.portal-step {
    max-width: 480px;
    margin: 0 auto;
}

.portal-card {
    background: #ffffff;
    border-radius: 14px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.portal-otp-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #0d7377, #14a085);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 14px rgba(13,115,119,0.4);
}

.portal-otp-input {
    font-size: 1.6rem !important;
    letter-spacing: 8px;
    font-family: Monaco, Consolas, monospace;
    border: 2px solid #0d7377 !important;
    border-radius: 10px !important;
}

.portal-otp-input:focus {
    box-shadow: 0 0 0 4px rgba(13,115,119,0.2) !important;
}

.btn-portal {
    background: linear-gradient(135deg, #0d7377, #14a085);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    padding: 12px 24px;
    font-size: 15px;
    transition: all 0.2s;
    box-shadow: 0 3px 10px rgba(13,115,119,0.4);
}

.btn-portal:hover:not(:disabled) {
    background: linear-gradient(135deg, #0a5c60, #0d9488);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 5px 14px rgba(13,115,119,0.5);
}

.btn-portal:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.portal-family-header {
    background: linear-gradient(135deg, #0d7377, #14a085);
    border-radius: 12px 12px 0 0;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

.portal-details {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}

.portal-tabs {
    background: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    padding: 0 16px;
}

.portal-tabs .nav-link {
    color: #6c757d;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 12px 16px;
    border: none;
    border-bottom: 3px solid transparent;
    border-radius: 0;
    transition: all 0.2s;
}

.portal-tabs .nav-link:hover {
    color: #0d7377;
    background: rgba(13,115,119,0.06);
}

.portal-tabs .nav-link.active {
    color: #0d7377;
    background: transparent;
    border-bottom-color: #0d7377;
}

.portal-tab-content {
    padding: 24px;
    min-height: 300px;
}

.portal-info-card {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 16px;
    height: 100%;
}

.portal-field-row {
    display: flex;
    padding: 10px 4px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 0.875rem;
    align-items: flex-start;
    gap: 10px;
}

.portal-field-row:last-child {
    border-bottom: none;
}

.portal-field-label {
    font-weight: 700;
    color: #0d7377;
    min-width: 160px;
    flex-shrink: 0;
}

.portal-field-value {
    color: #374151;
    word-break: break-word;
}

.portal-table thead {
    background: linear-gradient(135deg, #0d7377, #0d9488) !important;
}

.portal-table thead th {
    color: #fff !important;
    font-weight: 600;
    font-size: 0.82rem;
    padding: 10px 12px;
    border: none !important;
}

.portal-table tbody tr:hover {
    background: rgba(13,115,119,0.05);
}

.portal-footer {
    text-align: center;
    padding: 16px;
    color: rgba(255,255,255,0.55);
    font-size: 12px;
}

.portal-comments-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.portal-comment-item {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #0d7377;
    border-radius: 8px;
    padding: 14px 16px;
    transition: background 0.15s;
}

.portal-comment-item:hover {
    background: #f0fdfa;
}

.portal-comment-avatar {
    font-size: 1.8rem;
    color: #0d7377;
    line-height: 1;
    flex-shrink: 0;
}
