/* Custom Dashboard Styles for New Look and Feel of BWP,IAP */

/* General */
.WrappingItem {
    white-space: normal;
}

.RadMenu_Bootstrap {
    /*font-size: 0.875rem !important;*/
    border: none !important;
}

.RadMenu_Default .rmRootGroup {
    border: none !important;
    /*background-color: #F8F9FA !important;*/
}

.RadMenu_Default .rmItem {
    border: none !important;
    /*background-color: #F8F9FA !important;*/
    font-family: sans-serif !important;
    font-size: Small !important;
    color: #025AAA !important;
}


.RadMenu_Default .rmLink:hover,
.RadMenu_Default .rmLink {
    border: none !important;
    color: #025AAA !important;
    /*background-color: #F8F9FA !important;
    background-image: none !important;
    background-position: 0px 0px !important;*/
}

.hero-banner {
    height: auto;
    width: auto;
    /*margin-right: 1rem;*/
}

.alert-item {
    font-family: sans-serif;
    font-size: Small;
    color: #025AAA;
    font-weight: bold
}

.news-text {
    font-family: sans-serif;
    font-size: medium;
}

.news-link {
    FONT-FAMILY: sans-serif;
    FONT-SIZE: medium;
    color:red;
    font-weight: bold;
    
}

.dashboard-body {
    font-family: sans-serif;
    background-color: #f8f9fa;
    color: #222;
    transform-origin: top center;
    transform: scale(0.85);
}
/* Header */
.dashboard-header {
    border-bottom: 1px solid #e3e6ea;
    background-color: #f8f9fa;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    min-height: 48px;
}
/* Header */
.smaller-header {
    border-bottom: 1px solid #e3e6ea;
    background: #fff;
    padding-top: 0.1rem;
    padding-bottom: 0.1rem;
    min-height: 48px;
    transform: scale(0.85);
}

header .fs-4 {
    letter-spacing: 0.5px;
}

header img {
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

header .badge {
    font-size: 0.85rem;
    padding: 0.4em 0.6em;
}

.header-logo {
    height: 60px;
    width: auto;
    max-width: 260px;
    margin-right: 1rem;
}
/* Top Alert Bar */
.top-alert-bar {
    background: #fffbe6;
    border-bottom: 1px solid #e3e6ea;
    font-size: 1rem;
    padding: 0.25rem 1rem;
}

    .top-alert-bar .urgent {
        color: #fff;
        background: #e74c3c;
        font-weight: bold;
        padding: 0.2em 0.7em;
        border-radius: 4px;
        margin-right: 0.5em;
        font-size: 0.95rem;
    }

    .top-alert-bar a {
        color: #2a6ad1;
        font-weight: 500;
        margin-left: 1em;
        text-decoration: underline;
    }
/* Welcome Banner */
section.bg-primary {
    background: url("Images/photo-banner2New.jpg") center right no-repeat;
    background-size: cover;
    background-color: #1a3d7c; /* fallback color */
    border-radius: 0;
    box-shadow: 0 4px 16px rgba(42,106,209,0.08);
    padding-top: 0.7rem !important;
    padding-bottom: 0.3rem !important;
    min-height: 160px;
    position: relative;
}

    section.bg-primary h2 {
        font-weight: 700;
        letter-spacing: 1px;
        font-size: 1.2rem;
        margin-bottom: 0.2rem;
    }

    section.bg-primary p {
        font-size: 0.95rem;
        margin-bottom: 0.3rem;
    }

    section.bg-primary .btn-light {
        border-radius: 8px;
        font-size: 1.1rem;
        font-weight: 600;
        padding: 0.7em 2em;
        background: #fff;
        color: #1a3d7c;
        border: none;
        box-shadow: 0 2px 8px rgba(255,255,255,0.12);
    }

    section.bg-primary .stats {
        margin-top: 1.5rem;
    }

        section.bg-primary .stats .stat {
            display: inline-block;
            margin-right: 0.5rem;
            color: #fff;
            font-size: 0.9rem;
            white-space: nowrap;
        }

            section.bg-primary .stats .stat:last-child {
                margin-right: 0;
            }
/* Navigation Tabs */
.nav-tabs {
    border-bottom: 2px solid #222;
    font-size: 1.1rem;
    background: #fff;
}

    .nav-tabs .nav-link {
        font-weight: 600;
        color: #222;
        border-radius: 0;
        border: none;
        background: none;
        padding: 0.3em 0.5em;
        transition: color 0.2s, background 0.2s;
    }

        .nav-tabs .nav-link.active {
            color: #1a3d7c;
            background: #f8f9fa;
            border-bottom: 3px solid #1a3d7c;
        }

        .nav-tabs .nav-link:focus, .nav-tabs .nav-link:hover {
            color: #2566b3;
            background: #f3f6fa;
        }
/* Alerts Section */
.alerts-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.5rem !important;
    margin-bottom: 0.5rem !important;
}

    .alerts-section .urgent {
        color: #fff;
        background: #e74c3c;
        font-weight: bold;
        padding: 0.2em 0.7em;
        border-radius: 4px;
        margin-right: 0.5em;
        font-size: 0.95rem;
    }

    .alerts-section .resolve-btn {
        background: #1a3d7c;
        color: #fff;
        font-weight: 600;
        border-radius: 6px;
        padding: 0.3em 1em;
        font-size: 1rem;
        border: none;
    }

    .alerts-section .alert-list {
        margin-top: 1rem;
        margin-bottom: 1rem;
    }

        .alerts-section .alert-list li {
            font-size: 0.9rem !important;
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
        }

            .alerts-section .alert-list li i {
                margin-right: 0.5em;
                font-size: 1.2em;
            }

    .alerts-section .reports-card {
        background: #f89c1c;
        color: #fff;
        border-radius: 8px;
        padding: 0.2rem 0.6rem !important;
        text-align: center;
        font-weight: 600;
        margin-top: 0.5rem;
        font-size: 1.1rem;
        max-width: 150px;
        min-width: 100px;
        width: 100%;
        line-height: 1.2;
        box-sizing: border-box;
        height: 80%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

        .alerts-section .reports-card i {
            font-size: 1.1em;
            margin-bottom: 0.1em;
            display: block;
        }
/* Quick Action Cards */
.quick-actions {
    margin-bottom: 2rem;
}

    .quick-actions .card {
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.04);
        border: 1px solid #e3e6ea;
        text-align: center;
        padding: 0.5rem !important;
        transition: box-shadow 0.2s;
    }

        .quick-actions .card:hover {
            box-shadow: 0 4px 16px rgba(42,106,209,0.12);
        }

        .quick-actions .card i {
            font-size: 2.2em;
            margin-bottom: 0.5em;
            color: #1a3d7c;
        }

    .quick-actions .card-title {
        font-size: 0.9rem !important;
        font-weight: 600;
        margin-bottom: 0.2em;
    }

    .quick-actions .card-text {
        font-size: 0.9rem !important;
        color: #555;
    }

    .quick-actions .manage-business i {
        color: #f89c1c;
    }

    .quick-actions .manage-customers i {
        color: #f89c1c;
    }

    .quick-actions .payments i {
        color: #f89c1c;
    }
/* News & Metrics Section */
.news-section {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    padding: 0.3rem 0.5rem !important;
    margin-bottom: 0 !important;
    min-height: unset !important;
}

    .news-section .news-title {
        font-size: 1.1rem;
        font-weight: 600;
        color: #1a3d7c;
        margin-bottom: 0.3rem;
    }

    .news-section .news-list {
        font-size: 0.98rem;
        margin-bottom: 0.3rem;
    }

        .news-section .news-list li {
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
        }

            .news-section .news-list li i {
                color: #1a3d7c;
                margin-right: 0.5em;
            }

    .news-section .metrics {
        display: flex;
        justify-content: space-between;
        margin-top: 0.3rem !important;
        padding: 0 !important;
        min-height: unset !important;
        height: auto !important;
        gap: 0.2rem;
    }

        .news-section .metrics .metric {
            text-align: center;
            flex: 1;
            padding: 0.1rem 0.2rem;
        }

            .news-section .metrics .metric:not(:last-child) {
                border-right: 1px solid #e3e6ea;
            }

        .news-section .metrics .metric-value {
            font-size: 1rem !important;
            margin-bottom: 0.1rem;
        }

        .news-section .metrics .metric-label {
            font-size: 0.9rem !important;
            color: #555;
            white-space: nowrap;
            margin-bottom: 0;
        }
/* Urgent Alert Block */
.urgent-alert-block {
    background: #fffbe6;
    border: 1px solid #ffe58f;
    border-radius: 6px;
    padding: 0.2rem 0.5rem !important;
    font-size: 0.9rem;
    margin-bottom: 0.5rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .urgent-alert-block .urgent {
        color: #fff;
        background: #e74c3c;
        font-weight: bold;
        padding: 0.2em 0.7em;
        border-radius: 4px;
        margin-right: 0.5em;
        font-size: 0.95rem;
    }

    .urgent-alert-block .resolve-btn {
        margin-left: auto;
    }
/* Welcome Section Specific Styles */
.welcome-title {
    font-size: 2.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

.welcome-subtitle {
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
}
/* Stat Font Size Adjustments */
.stats .stat {
    font-size: 1rem;
    white-space: nowrap;
}
/* Vertical Rule Style */
.vr {
    width: 1px;
    min-width: 1px;
    background-color: #fff;
    opacity: 0.5;
}
/* Responsive */
@media (max-width: 991px) {
    section.bg-primary {
        min-height: 60px;
    }

    .quick-actions .card {
        margin-bottom: 1rem;
    }

    .news-section .metrics {
        flex-direction: column;
        gap: 0.5rem;
    }

        .news-section .metrics .metric:not(:last-child) {
            border-right: none;
            border-bottom: 1px solid #e3e6ea;
        }
}

@media (max-width: 767px) {
    header .container-fluid {
        flex-direction: column;
        align-items: flex-start;
    }

    .nav-tabs {
        flex-wrap: wrap;
    }

        .nav-tabs .nav-item {
            width: 50%;
        }

    .card-header, .card-title {
        font-size: 1rem;
    }

    section.bg-primary h2 {
        font-size: 1.3rem;
    }

    section.bg-primary p {
        font-size: 1rem;
    }

    .quick-actions .card {
        padding: 0.8rem 0.2rem;
    }
}
/* Ensures the reports card fills the height of the alert list on desktop */
@media (min-width: 768px) {
    .alerts-section .row {
        align-items: stretch;
    }

    .reports-card {
        /*height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;*/
    }
}

section.bg-primary .welcome-title {
    font-size: 3rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px;
    margin-bottom: 0.2rem;
}

section.bg-primary .welcome-subtitle {
    font-size: 1.5rem !important;
    font-weight: 500 !important;
    margin-bottom: 1rem;
}
/* Make Telerik RadGrid with Bootstrap skin more compact */
.RadGrid_Bootstrap {
    font-size: 0.875rem !important;
}

    .RadGrid_Bootstrap .rgHeader,
    .RadGrid_Bootstrap .rgRow,
    .RadGrid_Bootstrap .rgAltRow,
    .RadGrid_Bootstrap .rgGroupHeader,
    .RadGrid_Bootstrap .rgFooter {
        padding-top: 0.25rem !important;
        padding-bottom: 0.25rem !important;
        font-size: 0.875rem !important;
        min-height: 0 !important;
    }

    .RadGrid_Bootstrap .rgHeader,
    .RadGrid_Bootstrap .rgGroupHeader {
        font-weight: 600;
    }

    .RadGrid_Bootstrap .rgRow td,
    .RadGrid_Bootstrap .rgAltRow td {
        padding: 0.25rem 0.5rem !important;
    }

    .RadGrid_Bootstrap .rgPager {
        font-size: 0.875rem !important;
        padding: 0.2rem 0.5rem !important;
    }

    .RadGrid_Bootstrap .rgPagerCell {
        background: white !important;
    }

.producer-box {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.producer-label {
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    vertical-align: middle;
}
