/* Global styles */
html, body {
    margin: 0;
    padding: 0;
    background-color: #f5f7fb;
    font-family: 'Poppins', sans-serif; 
}

/* Links and buttons */
a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.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;
}

/* Layout container */
.layout-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Page and main content */
.page {
    flex: 1;
    display: flex;
}

main {
    flex: 1;
    padding-top: 1rem;
    margin-left: 260px;
    margin-top: 3.5rem;
}

.content {
    padding-top: 1.1rem; /* From app.css */
}

/* Top row (header) */
.top-row {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 3.5rem;
    padding: 0 1rem;
    position: fixed; 
    top: 0;
    z-index: 1000;
    width: 100%;
}

/* Brand container (logo + FCMS text) */
.logo-container {
    display: flex;
    align-items: center;
}

/* Clickable FCMS brand block */
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

/* White circular container for school logo */
.brand-logo-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

    /* Actual school logo image */
    .brand-logo-circle img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

/* Fallback initial if no logo yet */
.brand-logo-initials {
    font-weight: 700;
    font-size: 1.2rem;
    color: #007bff;
}

/* FCMS text with rounded style */
.brand-text {
    font-family: "Segoe UI";
    font-weight: 700;
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    color: #ff0000; /* Adjust depending on header background */
}

/* Top icons (search and icons) */
.top-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-box {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.3s ease;
}

    .search-box:focus {
        border-color: #28a745;
    }

.icon-link {
    font-size: 1.3rem;
    color: #555;
    text-decoration: none;
}

    .icon-link:hover {
        color: #28a745;
    }

/* Navigation sidebar */
.nav-scrollable {
    background-color: white;
    width: 260px;
    height: 100vh;
    position: fixed;
    left: 0;
    top: 3.5rem;
    border-right: 1px solid #e0e0e0;
    overflow-y: auto;
    padding-top: 1rem;
    transition: transform 0.3s ease-out;
}

.nav-item {
    padding: 0.5rem 1.25rem;
}

.nav-link {
    color: #555;
    text-decoration: none;
    display: flex;
    align-items: center;
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

    .nav-link:hover,
    .nav-link.active {
        background-color: #f0f0f0;
        color: #28a745;
    }

/* Navbar toggler */
.navbar-toggler {
    display: none;
    background: none;
    border: none;
    font-size: 1.3rem;
    color: #555;
    cursor: pointer;
}

/* Form validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Error boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg8N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjM4NyA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred.";
    }

/* Blazor error UI */
#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    padding: 0.6rem 1.25rem;
    display: none;
    position: fixed;
    width: 100%;
    z-index: 1000;
    text-align: center;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* Responsive design */
@media (max-width: 640.98px) {
    main {
        margin-left: 0;
        margin-top: 3.5rem;
    }

    .navbar-toggler {
        display: block;
    }

    .nav-scrollable.collapsed {
        transform: translateX(-100%);
    }

    .nav-scrollable {
        transform: translateX(0);
    }
}

@media (min-width: 641px) {
    .top-row, article {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

/* School components */
.school-logo-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hidden-file-input {
    display: none;
}

.logo-label {
    cursor: pointer;
}

.school-logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.placeholder-icon {
    font-size: 80px;
    color: #ccc;
}

.school-name {
    color: #ff0000;
    margin-top: 10px;
}

.school-logo.hidden,
.placeholder-icon.hidden {
    display: none;
}

/* Utility classes */
.hidden {
    display: none;
}

/* Modal styles */
.modal.show {
    display: block;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-dialog-centered {
    display: flex;
    align-items: center;
    min-height: calc(100% - 1rem);
}

.modal-backdrop {
    /* Prevents double backdrop when using .modal.show with background-color */
    display: none;
}

/* Modal transition effects */
.modal.fade .modal-dialog {
    transition: transform 0.3s ease-out;
    transform: translate(0, -25%);
}

.modal.show .modal-dialog {
    transform: translate(0, 0);
}

/* School thumbnail styles */
.school-thumbnail {
    background-color: #dbeafe; /* Light blue background */
    border-radius: 12px; /* Rounded edges */
    padding: 16px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    cursor: pointer;
    margin: 10px;
}

    .school-thumbnail:hover {
        transform: translateY(-3px);
        box-shadow: 0px 6px 12px rgba(0, 0, 0, 0.15);
    }

.school-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px; 
    width: 100%; 
    background: white;
    border-radius: 8px;
    overflow: hidden;
    padding: 10px;
}
.school-logo {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.school-details {
    text-align: center;
    margin-top: 12px;
}

.school-name {
    font-size: 1.2rem;
    font-weight: bold;
    color: #1e3a8a; /* Dark blue text */
}

.school-address {
    font-size: 0.9rem;
    color: #475569; /* Grayish text */
}

/* Style for the School Logo Card */
.school-logo-card {
    background: white;
    border-radius: 10px;
    padding: 15px;
    text-align: center;
    width: 200px; /* Adjust based on logo size */
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}

/* Logo Image */
.school-logo {
    max-height: 100px;
    max-width: 100%;
    object-fit: contain;
}

/* Placeholder Icon */
.placeholder-icon {
    font-size: 40px;
    color: #ccc;
}

/* Hidden elements */
.hidden {
    display: none;
}

/* Centering the text below the logo */
.text-muted {
    display: block;
    margin-top: 5px;
}

.calendar-table th, .calendar-table td {
    text-align: center;
    padding: 5px;
}

.calendar-table td {
    vertical-align: top;
    height: 100px;
    width: 14.28%;
}

.reply-item {
    border-left: 3px solid #e0e0e0;
    padding-left: 10px;
    margin-bottom: 12px;
}

.replies-container {
    position: relative;
    margin-left: 15px;
}

    .replies-container:before {
        content: '';
        position: absolute;
        left: 0;
        top: 0;
        height: 100%;
        width: 1px;
        background-color: #e0e0e0;
    }

/* PDF Viewer Styles */
.pdf-viewer-container {
    height: 500px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    overflow: hidden;
}

.pdf-viewer-placeholder {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
    background-color: #f8f9fa;
}

    .pdf-viewer-placeholder i {
        font-size: 5rem;
    }

/* Large file icon for empty states */
.file-icon-large {
    font-size: 5rem;
}

/* Badge color for bronze (3rd place) in rankings */
.bg-bronze {
    background-color: #cd7f32;
    color: white;
}

.payment-report {
    background-color: #fff;
    border-radius: 0.375rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

    .payment-report h2 {
        font-size: 1.75rem;
        font-weight: 500;
        margin-bottom: 1rem;
        color: #212529;
    }

    .payment-report h3 {
        font-size: 1.25rem;
        font-weight: 500;
        margin-top: 1rem;
        margin-bottom: 0.5rem;
        color: #212529;
    }

    .payment-report .report-section {
        margin-bottom: 1.5rem;
    }

    .payment-report .report-grid {
        display: flex;
        flex-wrap: wrap;
        margin-right: -15px;
        margin-left: -15px;
    }

        .payment-report .report-grid > div {
            flex: 0 0 50%;
            max-width: 50%;
            padding-right: 15px;
            padding-left: 15px;
            margin-bottom: 1rem;
        }

    .payment-report table {
        width: 100%;
        margin-bottom: 1rem;
        color: #212529;
        border-collapse: collapse;
    }

    .payment-report .table-responsive {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .payment-report thead th {
        vertical-align: bottom;
        border-bottom: 2px solid #dee2e6;
        background-color: #f8f9fa;
    }

    .payment-report th,
    .payment-report td {
        padding: 0.75rem;
        vertical-align: top;
        border-top: 1px solid #dee2e6;
    }

    .payment-report tbody tr:hover {
        background-color: rgba(0, 0, 0, 0.075);
    }

    .payment-report .text-muted {
        color: #6c757d;
    }

    .payment-report .timestamp {
        margin-top: 1rem;
        font-style: italic;
        font-size: 0.875rem;
        color: #6c757d;
    }

.lesson-plan-box {
    border: 1px solid #000;
    min-height: 250px;
    padding: 15px;
    margin-bottom: 15px;
}

.curriculum-session {
    page-break-inside: avoid;
}

/* Print-specific styles */
@media print {
    .d-print-none,
    .navbar,
    .nav-scrollable,
    .top-row,
    .filters,
    .btn:not(.print-btn) {
        display: none !important;
    }

    .curriculum-print {
        font-size: 12pt;
    }

        .curriculum-print h3 {
            font-size: 16pt;
        }

        .curriculum-print h4,
        .curriculum-print h5 {
            font-size: 14pt;
        }

        .curriculum-print hr {
            margin: 10px 0;
            border-top: 1px solid #000;
        }

    .lesson-plan-box {
        border: 1px solid #000 !important;
        min-height: 300px !important;
    }

    .container-fluid {
        padding: 0 !important;
        margin: 0 !important;
        max-width: 100% !important;
    }

    body {
        padding: 0 !important;
        margin: 0 !important;
    }

    .curriculum-session {
        margin-bottom: 30px;
    }
}

/* Calendar Styles */
.calendar-table {
    table-layout: fixed;
}

    .calendar-table td {
        vertical-align: top;
        height: 100px;
        cursor: pointer;
    }

        .calendar-table td:hover {
            background-color: rgba(0, 123, 255, 0.05);
        }

.calendar-events {
    margin-top: 8px;
    overflow-y: auto;
    max-height: 80px; 
}

.calendar-event {
    cursor: pointer;
    margin-bottom: 4px;
}

.calendar-event-weekly {
    font-size: 0.8rem;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.weekly-calendar {
    table-layout: fixed;
}

    .weekly-calendar th,
    .weekly-calendar td {
        width: calc(100% / 8);
    }

    .weekly-calendar td {
        height: 60px;
        padding: 4px;
    }

.cursor-pointer {
    cursor: pointer;
}

.calendar-event .card:hover {
    opacity: 0.8;
    transform: scale(1.02);
    transition: all 0.2s ease;
}

.small-badge {
    font-size: 0.9rem; /* Smaller text */
    line-height: 1.5; /* Tighten vertical space */
    padding-top: 2px; /* Reduce top/bottom padding */
    padding-bottom: 2px;
    padding-left: 6px; /* Reduce left/right padding */
    padding-right: 6px;
    border-radius: 4px; /* Optional: round edges a bit */
    display: inline-block; /* Shrink to content */
    width: 90px; /* Avoid full-width */
}

.attendance-table {
    font-size: 0.9rem;
    border-collapse: separate;
    border-spacing: 0;
}

    .attendance-table th {
        background-color: #f8f9fa;
        border: 1px solid #dee2e6;
        text-align: center;
        padding: 8px 4px;
        white-space: nowrap;
        position: sticky;
        top: 0;
        z-index: 20;
    }

    .attendance-table td {
        border: 1px solid #dee2e6;
        text-align: center;
        padding: 8px 4px;
        white-space: nowrap;
    }

/* Student Name Column - Fixed width, sticky left */
.student-name {
    text-align: left !important;
    font-weight: 500;
    background-color: #f8f9fa;
    position: sticky;
    left: 0;
    z-index: 30;
    width: 140px; /* Compact width for student names */
    min-width: 140px;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Date Columns - Minimal width, scrollable */
.date-header {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    width: 28px; /* Very compact width for date columns */
    min-width: 28px;
    max-width: 28px;
    font-size: 0.75rem;
    padding: 4px 2px;
}

.date-cell {
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 4px 2px;
}

/* Present Column - Rotated, sticky right side */
.rotated-header.present-col {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    width: 28px; /* Same width as date columns */
    min-width: 28px;
    max-width: 28px;
    position: sticky;
    right: calc(28px + 50px); /* Position it next to Absent column */
    z-index: 25;
    background-color: #e3f2fd;
    padding: 4px 2px;
    font-size: 0.75rem;
}

/* Absent Column - Rotated, sticky right side */
.rotated-header.absent-col {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    width: 28px; /* Same width as date columns */
    min-width: 28px;
    max-width: 28px;
    position: sticky;
    right: 50px; /* Position it next to Rate column */
    z-index: 25;
    background-color: #e3f2fd;
    padding: 4px 2px;
    font-size: 0.75rem;
}

/* Rate Column - Fixed width, sticky right */
.summary-col.rate-col {
    background-color: #e3f2fd;
    font-weight: 600;
    width: 50px; /* Compact width for rate percentage */
    min-width: 50px;
    max-width: 50px;
    position: sticky;
    right: 0;
    z-index: 25;
    font-size: 0.8rem;
}

/* Summary column data cells - also sticky */
.summary-data.present-data {
    position: sticky;
    right: calc(28px + 50px);
    z-index: 15;
    background-color: #e3f2fd;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 4px 2px;
    font-size: 0.8rem;
}

.summary-data.absent-data {
    position: sticky;
    right: 50px;
    z-index: 15;
    background-color: #e3f2fd;
    width: 28px;
    min-width: 28px;
    max-width: 28px;
    padding: 4px 2px;
    font-size: 0.8rem;
}

.summary-data.rate-data {
    position: sticky;
    right: 0;
    z-index: 15;
    background-color: #e3f2fd;
    width: 50px;
    min-width: 50px;
    max-width: 50px;
    font-size: 0.8rem;
}

/* Table container with horizontal scroll */
.table-container {
    overflow-x: auto;
    overflow-y: auto;
    max-height: 70vh;
    border: 1px solid #dee2e6;
    position: relative;
}

/* Ensure the scrollable area only affects date columns */
.scrollable-dates {
    display: inline-block;
}

/* Rate classes remain the same */
.rate-excellent {
    background-color: #d4edda !important;
    color: #155724;
}

.rate-good {
    background-color: #fff3cd !important;
    color: #856404;
}

.rate-poor {
    background-color: #f8d7da !important;
    color: #721c24;
}

/* Footer row styling */
.attendance-table tfoot th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.attendance-table tfoot .student-name {
    position: sticky;
    left: 0;
    z-index: 30;
    background-color: #f8f9fa;
}

.attendance-table tfoot .summary-data.present-data,
.attendance-table tfoot .summary-data.absent-data,
.attendance-table tfoot .summary-data.rate-data {
    background-color: #f8f9fa;
    font-weight: 600;
}
/*grade report card*/
.report-card-container {
    padding: 20px;
    background: white;
}

.signature-line {
    border-bottom: 1px solid #000;
    height: 40px;
    margin-bottom: 5px;
}

@@media print {
    .modal-header,
    .modal-footer {
        display: none !important;
    }

    .report-card-container {
        padding: 0;
    }

    .card {
        border: 1px solid #000 !important;
    }
}

/* Print-specific styles for testimonial */
@media print {
    /* Hide print button and navigation in testimonial */
    .d-print-none {
        display: none !important;
    }

    /* Testimonial print formatting */
    #testimonial-content {
        max-width: 100% !important;
        margin: 0 !important;
        padding: 20px !important;
    }

        #testimonial-content .card {
            border: 2px solid #000 !important;
            box-shadow: none !important;
            margin: 0 !important;
        }

        #testimonial-content .card-header {
            background-color: #000 !important;
            color: white !important;
            -webkit-print-color-adjust: exact !important;
            print-color-adjust: exact !important;
        }

        #testimonial-content h3,
        #testimonial-content h5 {
            color: #000 !important;
        }

        #testimonial-content .text-primary {
            color: #000 !important;
        }

        /* Ensure student photo prints properly */
        #testimonial-content img {
            border: 1px solid #000 !important;
        }

    /* Page break settings */
    #testimonial-content {
        page-break-inside: avoid;
    }
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-color: white;
}

.login-content {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.school-logo-display {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 20px;
}

.school-name-display {
    color: #ff0000;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 30px;
}

.grey-label {
    color: #6c757d;
    text-align: left;
    display: block;
    margin-bottom: 5px;
}

.black-label {
    color: #000000;
    text-align: left;
    display: block;
    margin-bottom: 5px;
}

.login-btn-small {
    color: #fff;
    background-color: #28a745;
    border-color: #218838;
    padding: 8px 60px;
    font-size: 0.9rem;
    border-radius: 20px;
}

    .login-btn-small:hover {
        color: #fff;
        background-color: #218838;
        border-color: #1e7e34;
    }

.sign-in-box {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    border: 1px solid #ccc;
    outline: none;
    transition: border-color 0.3s ease;
    width: 100%;
}

    .sign-in-box:focus {
        border-color: #28a745;
    }

.form-check-input {
    border: 1px solid #ccc;
}

    .form-check-input:checked {
        background-color: #28a745;
        border-color: #28a745;
    }

    .form-check-input:focus {
        border-color: #28a745;
        box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #28a745;
    }

/* Payments kpi  */
.kpi-title {
    font-size: 0.9rem;
    margin: 0;
    color: #555;
    font-weight: 600;
}

.kpi-value {
    font-size: 1.4rem;
    font-weight: bold;
    margin: 0;
}

.kpi-bar-value {
    font-weight: 600;
    margin-top: 6px;
    font-size: 1rem;
}

/* Profile menu styles */
.profile-menu-wrapper {
    position: relative;
}

.profile-toggle-btn {
    border: none;
    background: none;
    cursor: pointer;
    padding: 0;
}

.profile-panel {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1050;
    padding: 1rem;
    margin-top: 0.5rem;
}

.profile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    background: transparent;
}

.profile-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.profile-photo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-initials-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.profile-name {
    font-weight: 600;
    font-size: 0.95rem;
}

.profile-email {
    font-size: 0.85rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.profile-link {
    display: block;
    font-size: 0.85rem;
    color: #006bb7;
    text-decoration: none;
    margin-top: 0.25rem;
}

    .profile-link:hover {
        text-decoration: underline;
    }

.flyout-signout-container {
    text-align: center;
}

.profile-signout {
    color: #dc3545;
    text-decoration: none;
    font-weight: 500;
}

    .profile-signout:hover {
        text-decoration: underline;
    }

