/* 
 * Global branding styles for Em-Out corporate identity
 * Palette extracted from Em-Out_SVG/Colors.svg:
 *   Primary: #029F9F
 *   Primary Dark: #007272
 *   Deep Teal: #1A4242
 */

html,
body{
    height: 100%;
}

body.page-shell{
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

body{
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 20px !important;
    line-height: 1.5 !important; /* 150% */
    background: #E9F7F7;
    color: #1A4242;
    background-size: cover;
}

h1, h2, h3, h4, h5, h6 {
    color: #1A4242;
    font-family: "Poppins", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-weight: 500 !important;
}

/* Brand typography scale */

/* H1 – Oswald Regular, 64 / 120% */
h1 {
    font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 64px !important;
    line-height: 1.2 !important;
    font-weight: 400 !important;
}

/* H2_CAPS – Oswald Regular, 40 / 130%, uppercase helper class */
.heading-h2-caps {
    font-family: "Oswald", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    font-size: 40px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
    text-transform: uppercase;
}

/* H2 – Poppins Medium, 40 / 120% */
h2,
.heading-h2 {
    font-size: 40px !important;
    line-height: 1.2 !important;
    font-weight: 500 !important; /* Poppins Medium */
}

/* H3_MEDIUM – Poppins Medium, 28 / 130% */
.heading-h3-medium {
    font-size: 28px !important;
    line-height: 1.3 !important;
    font-weight: 500 !important;
}

/* H3 – Poppins Regular, 28 / 130% */
h3,
.heading-h3 {
    font-size: 28px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
}

/* H4 – Poppins Regular, 24 / 130% */
h4,
.heading-h4 {
    font-size: 24px !important;
    line-height: 1.3 !important;
    font-weight: 400 !important;
}

/* Paragraphs – Poppins Regular, 20 / 150% */
p,
li,
.text-paragraph {
    font-size: 20px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

/* Paragraph Medium – Poppins Medium, 20 / 150% */
.text-paragraph-medium {
    font-size: 20px !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

/* Home hero section */
.hero-emout-center {
    flex: 1 0 auto;
    padding-top: 5rem;
    padding-bottom: 6rem;
}

.hero-emout-logo-main img {
    max-width: 360px;
    filter: drop-shadow(0 24px 60px rgba(0, 0, 0, 0.18));
}

.hero-emout-tagline-main {
    max-width: 40rem;
    margin-inline: auto;
    color: #1A4242;
}

.hero-emout-greeting {
    margin-top: 1.75rem;
    font-size: 18px !important;
    opacity: 0.85;
}

/* Auth pages */
.auth-section {
    padding-top: 6rem;
    padding-bottom: 4rem;
}

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

.auth-muted {
    font-size: 0.85rem !important;
    color: #4B6262;
}

.auth-signup-disabled {
    opacity: 0.7;
    text-decoration: line-through;
}

.nav-link-disabled {
    color: rgba(26, 66, 66, 0.5) !important;
    cursor: default;
}

/* Customer dashboard */
.dashboard-section {
    margin-top: 170px;
    padding-top: 2rem;
    padding-bottom: 4rem;
}

/* Form range slider - brand colors */
.form-range::-webkit-slider-thumb {
    background-color: #029F9F;
    border-color: #029F9F;
}

.form-range::-moz-range-thumb {
    background-color: #029F9F;
    border-color: #029F9F;
}

.form-range:focus::-webkit-slider-thumb {
    box-shadow: 0 0 0 0.25rem rgba(2, 159, 159, 0.25);
}

.form-range:focus::-moz-range-thumb {
    box-shadow: 0 0 0 0.25rem rgba(2, 159, 159, 0.25);
}

/* Upload page */
.upload-section {
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.upload-header {
    max-width: 40rem;
    margin-inline: auto;
}

.upload-card {
    padding: 2.5rem 2.75rem;
}

.upload-progress-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    background: transparent;
}

.upload-help-text {
    color: #4B6262;
}

/* Center and theme upload progress */
.upload-progress-wrapper {
    max-width: 760px;
    margin-inline: auto;
}

/* Tighter upload progress styling */
.upload-progress-card .card-title {
    font-size: 1rem;
    font-weight: 500;
    color: #1A4242;
    margin-bottom: 0.75rem;
}

.upload-progress-card .progress {
    height: 12px !important;
    border-radius: 999px;
    background-color: #E2F6F6;
    overflow: hidden;
}

.upload-progress-card #statusMessage {
    font-size: 0.9rem;
}

.upload-progress-card #progressBar {
    background: linear-gradient(90deg, #029F9F, #007272);
}

/* Control panel */
.cp-section {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.cp-header {
    max-width: 40rem;
    margin-inline: auto;
}

.cp-card {
    padding: 2rem 2.25rem;
}

.cp-card-single {
    max-width: 100%;
    margin-inline: 0;
}

.cp-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    background-color: #E2F6F6;
    color: #1A4242;
}

.cp-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    background-color: rgba(2, 159, 159, 0.12);
    color: #1A4242;
}

.cp-tag-admin {
    background-color: #1A4242;
    color: #FFFFFF;
}

.cp-tag-muted {
    background-color: rgba(0, 0, 0, 0.03);
    color: #4B6262;
}

.cp-action-link {
    padding: 0;
    font-size: 0.85rem;
    color: #029F9F;
    text-decoration: none;
}

.cp-action-link:hover {
    color: #007272;
    text-decoration: underline;
}

.cp-action-link-danger {
    color: #E46A6A;
}

.cp-action-link-danger:hover {
    color: #c0392b;
}

.cp-hint {
    font-size: 0.8rem !important;
    color: #4B6262;
    max-width: 24rem;
}

.cp-pill-toggle {
    display: inline-flex;
    padding: 0.15rem;
    border-radius: 999px;
    background-color: #E2F6F6;
}

.cp-pill-toggle-option {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 0.25rem 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: #1A4242;
}

.cp-pill-toggle-option.active {
    background-color: #029F9F;
    color: #FFFFFF;
}

.cp-subtitle {
    font-size: 0.9rem !important;
    color: #4B6262;
}

.cp-modal {
    border-radius: 1rem;
    border: none;
    max-width: 720px;
}

/* User list layout */
.cp-user-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.cp-user-header-row {
    display: flex;
    align-items: center;
    padding: 0.25rem 0.25rem 0.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.8rem;
    color: #4B6262;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cp-col-first {
    flex: 0 0 20%;
}

.cp-col-last {
    flex: 0 0 20%;
}

.cp-col-email {
    flex: 1 1 auto;
}

.cp-col-profile {
    flex: 0 0 22%;
    text-align: right;
}

.cp-user-row {
    display: flex;
    align-items: center;
    padding: 0.6rem 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.cp-user-row:last-child {
    border-bottom: none;
}

.cp-user-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.cp-user-first {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cp-avatar {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background-color: #E2F6F6;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1A4242;
}

.cp-avatar-admin {
    background-color: #1A4242;
    color: #FFFFFF;
}

.cp-user-email {
    font-size: 0.85rem;
    font-weight: 400;
    color: #4B6262;
}

.cp-user-name {
    font-size: 0.95rem;
    font-weight: 500;
    color: #1A4242;
}

.cp-user-meta {
    font-size: 0.8rem;
    color: #4B6262;
}

.cp-user-meta-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.25rem;
}

.cp-user-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.cp-dot {
    font-size: 0.8rem;
    color: #4B6262;
}

/* Invoices */
.invoices-section {
    padding-top: 5rem;
    padding-bottom: 4rem;
}

.invoices-card {
    max-width: 100%;
    margin-inline: 0;
}

.invoices-header-row {
    margin-bottom: 0.25rem;
}

.invoices-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.invoice-row {
    display: flex;
    align-items: center;
    padding: 0.8rem 0.25rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

.invoice-row:last-child {
    border-bottom: none;
}

.inv-col-main {
    flex: 1 1 auto;
}

.inv-col-years {
    flex: 0 0 18%;
}

.inv-col-date {
    flex: 0 0 20%;
    font-size: 0.85rem;
    color: #4B6262;
}

.inv-col-status {
    flex: 0 0 14%;
}

.inv-col-actions {
    flex: 0 0 20%;
}

.invoice-title-link {
    text-decoration: none;
    color: #1A4242;
}

.invoice-title-link:hover {
    text-decoration: underline;
    color: #007272;
}

.invoice-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.6rem;
    border-radius: 999px;
    font-size: 0.8rem;
    background-color: rgba(2, 159, 159, 0.12);
    color: #1A4242;
}

.invoice-view-btn {
    border-radius: 999px;
    padding-inline: 0.9rem;
    font-size: 0.8rem;
    font-weight: 500;
}

a {
    color: #029F9F;
    text-decoration: none;
}

a:hover,
a:focus {
    color: #007272;
    text-decoration: underline;
}

/* Brand logo sizing */
#em-logo{
    width: 4.2rem;
}

/* Navbar branding – transparent bar with floating pill menu */
.navbar {
    border-radius: 0;
    padding-inline: 0;
    padding-block: 1rem;
    background: transparent;
    box-shadow: none;
}

.navbar .container-fluid {
    max-width: 1200px;
    margin-inline: auto;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar-brand img {
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}

/* Floating pill shell for navigation items */
.nav-pill-shell {
    background-color: #E9F7F7;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

.nav-pill-shell .navbar-nav .nav-link {
    color: #1A4242 !important;
    font-weight: 500;
    padding-inline: 1rem;
    font-size: 16px !important;
    border-radius: 999px;
    transition: background-color 0.18s ease-out, color 0.18s ease-out;
}

.nav-pill-shell .navbar-nav .nav-link:hover,
.nav-pill-shell .navbar-nav .nav-link:focus,
.nav-pill-shell .navbar-nav .nav-link.active {
    background-color: #007272;
    color: #FFFFFF !important;
    text-decoration: none;
}

.nav-pill-toggler {
    border-color: rgba(26, 66, 66, 0.28);
}

.nav-pill-toggler .navbar-toggler-icon {
    filter: none;
}

/* Cards & panels */
.card,
.card-custom {
    position: relative;
    margin: 4px 4px 24px 4px;
    border: none;
    border-radius: 1rem;
    background: #FFFFFF;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
}

.card-header {
    border-bottom: none;
    background: linear-gradient(135deg, #029F9F, #007272);
    color: #FFFFFF;
    font-weight: 600;
}

.card-custom {
    background: radial-gradient(circle at top left, rgba(2, 159, 159, 0.12), transparent 55%),
                #FFFFFF;
}

/* Buttons aligned with brand colors */
.btn-primary {
    background-color: #029F9F;
    border-color: #029F9F;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #007272;
    border-color: #007272;
}

.btn-outline-primary {
    color: #029F9F;
    border-color: #029F9F;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #FFFFFF;
    background-color: #029F9F;
    border-color: #029F9F;
}

.btn-success {
    background-color: #1A4242;
    border-color: #1A4242;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #007272;
    border-color: #007272;
}

/* Footer divider band above footer */
.b-divider {
    margin-top: auto;
    height: 3rem;
    /* background: linear-gradient(90deg, rgba(2, 159, 159, 0.06), transparent, rgba(2, 159, 159, 0.06)); */
    border: none;
    box-shadow: inset 0 .5em 1.5em rgba(0, 0, 0, 0.03);
}

/* Footer strip */
.footer-strip {
    background-color: #1A4242; /* deep teal brand color */
}

/* Footer styling */
.footer-bar {
    border-top: none;
    background-color: transparent;
}

.footer-text {
    color: #FFFFFF;
    font-size: 0.9rem;
}

.footer-credit {
    text-align: center;
}

.footer-language-select-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background-color: #FFFFFF;
    border-radius: 999px;
    padding: 0.15rem 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: fixed;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 1050;
}

/* Toast messages */
.em-toast-container {
    position: fixed;
    right: 1.5rem;
    top: 1.5rem;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.em-toast {
    min-width: 280px;
    max-width: 420px;
    padding: 0.8rem 1.1rem;
    border-radius: 999px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    font-size: 0.9rem;
    font-weight: 500;
    color: #ffffff;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.25s ease-out, transform 0.25s ease-out;
}

.em-toast-show {
    opacity: 1;
    transform: translateY(0);
}

.em-toast-hide {
    opacity: 0;
    transform: translateY(10px);
}

.em-toast-success {
    border-left: 4px solid #02c39a;
}

.em-toast-error, .em-toast-danger {
    border-left: 4px solid #ff6b6b;
}

.em-toast-warning {
    border-left: 4px solid #ffd166;
}

.em-toast-info {
    border-left: 4px solid #007272;
}

.footer-language-icon {
    font-size: 0.95rem;
    color: #1A4242;
}

.footer-language-select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: transparent;
    border: none;
    padding: 0;
    padding-right: 0.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1A4242;
    cursor: pointer;
}

.footer-language-select:focus {
    outline: none;
}

.footer-language-caret {
    font-size: 0.7rem;
    color: #1A4242;
    pointer-events: none;
}

.footer-nav .nav-link {
    color: #029F9F;
    font-weight: 500;
    padding-inline: 0.75rem;
}

.footer-nav .nav-link:hover,
.footer-nav .nav-link:focus {
    color: #007272;
    text-decoration: none;
}

/* Tables */
th, td {
    text-align: center;
}

/* Make units in square brackets bold (e.g., [kW], [EUR], [kWh]) */
/* Units are wrapped in <strong> tags by JavaScript */
strong {
    font-weight: 700 !important;
}

/* Feature blocks */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 4rem;
    height: 4rem;
    margin-bottom: 1rem;
    font-size: 2rem;
    color: #fff;
    border-radius: .75rem;
    background: linear-gradient(135deg, #029F9F, #007272);
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr 3fr; /* First column 1 part, Second column 3 parts */
    gap: 10px; /* Adjust the gap as needed */
    align-items: center;
}

.feature-title {
    margin: 0; /* Remove default margin from h2 element */
}

.stat-list {
    list-style: none;
    padding: 0;
}

.stat-item {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    text-align: center;
    align-items: center;
}

.stat-value {
    grid-row: 1;
    margin: 0;
    font-weight: 600;
    color: #029F9F;
}

.stat-name {
    grid-row: 2;
    margin: 0;
    color: #4B6262;
}

/* Gallery page */
.gallery-section {
    margin-top: 170px;
    padding-top: 2rem;
    padding-bottom: 4rem;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.gallery-section .container {
    max-width: 100%;
    overflow-x: hidden;
}

.gallery-header {
    margin-bottom: 2rem;
}

.gallery-description {
    margin-bottom: 2rem;
    color: #4B6262;
}

.gallery-year-display {
    margin-bottom: 1.5rem;
}

.gallery-year-badge {
    font-size: 1rem;
    padding: 0.5rem 1rem;
    background-color: #029F9F;
    color: #ffffff;
    border-radius: 999px;
}

.gallery-controls {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(26, 66, 66, 0.05);
}

.gallery-select-all {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.gallery-select-all label {
    margin: 0;
    font-weight: 500;
    color: #1A4242;
}

.gallery-select-all input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #029F9F;
}

/* Gallery grid - responsive */
.gallery-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1.5rem;
    margin-top: 2rem;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(26, 66, 66, 0.05);
    transition: box-shadow 0.2s ease;
    overflow: hidden;
    max-width: 100%;
}

.gallery-item:hover {
    box-shadow: 0 4px 8px rgba(26, 66, 66, 0.1);
}

/* Full width gallery item for monthly chart */
.gallery-item-full-width {
    grid-column: 1 / -1;
}

.gallery-item .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    accent-color: #029F9F;
}

.gallery-chart {
    width: 100%;
    max-width: 100%;
    min-height: 400px;
    overflow: hidden;
    position: relative;
}

.gallery-chart-large {
    min-height: 600px;
}

@media (min-width: 768px) {
    .gallery-chart-large {
        min-height: 700px;
    }
}

@media (min-width: 1200px) {
    .gallery-chart-large {
        min-height: 800px;
    }
}

/* Ensure Plotly charts in gallery are responsive */
.gallery-chart .js-plotly-plot,
.gallery-chart .plotly,
.gallery-chart [id^="chart-"] .js-plotly-plot,
.gallery-chart [id^="chart-"] .plotly {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

.gallery-chart > div {
    width: 100% !important;
    max-width: 100% !important;
}

/* Skeleton Loader Styles */
.skeleton-loader {
    display: grid;
    grid-template-columns: 1fr;
    grid-gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .skeleton-loader {
        grid-template-columns: repeat(2, 1fr);
    }
}

.skeleton-item {
    background-color: #ffffff;
    border-radius: 0.5rem;
    padding: 1rem;
    box-shadow: 0 2px 4px rgba(26, 66, 66, 0.05);
}

.skeleton-item-full-width {
    grid-column: 1 / -1;
}

.skeleton-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    background: linear-gradient(90deg, #E9F7F7 25%, #d0eeee 50%, #E9F7F7 75%);
    background-size: 200% 100%;
    border-radius: 4px;
    margin-bottom: 0.75rem;
    animation: shimmer 1.5s infinite;
}

.skeleton-chart {
    width: 100%;
    height: 400px;
    background: linear-gradient(90deg, #E9F7F7 25%, #d0eeee 50%, #E9F7F7 75%);
    background-size: 200% 100%;
    border-radius: 8px;
    animation: shimmer 1.5s infinite;
}

.skeleton-chart-large {
    height: 600px;
}

@media (min-width: 768px) {
    .skeleton-chart-large {
        height: 700px;
    }
}

@media (min-width: 1200px) {
    .skeleton-chart-large {
        height: 800px;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }
    100% {
        background-position: 200% 0;
    }
}

#skeleton-container {
    display: none;
}

#skeleton-container.show {
    display: grid;
}

.gallery-loading-indicator {
    display: none;
    padding: 1rem;
    background-color: #E9F7F7;
    border: 1px solid #029F9F;
    border-radius: 0.5rem;
    color: #1A4242;
}

.gallery-loading-indicator.show {
    display: block;
}

.gallery-error-message {
    display: none;
    padding: 1rem;
    background-color: #fff5f5;
    border: 1px solid #dc3545;
    border-radius: 0.5rem;
    color: #dc3545;
}

.gallery-error-message.show {
    display: block;
}

/* Accordion styling - professional and brand-aligned */
.accordion {
    margin-bottom: 2rem;
}

.accordion-item {
    border: 1px solid rgba(26, 66, 66, 0.15) !important;
    border-radius: 0.5rem !important;
    margin-bottom: 0.75rem !important;
    background-color: #ffffff !important;
    box-shadow: 0 2px 4px rgba(26, 66, 66, 0.05) !important;
}

.accordion-button {
    background-color: #E9F7F7 !important;
    color: #1A4242 !important;
    font-family: "Poppins", sans-serif !important;
    font-weight: 500 !important;
    font-size: 1.25rem !important;
    border: none !important;
    box-shadow: none !important;
    padding: 1rem 1.25rem !important;
}

.accordion-button:not(.collapsed) {
    background-color: #E9F7F7 !important;
    color: #1A4242 !important;
    box-shadow: none !important;
}

.accordion-button:hover {
    background-color: #d0eeee !important;
}

.accordion-button:focus {
    border-color: #029F9F !important;
    box-shadow: 0 0 0 0.25rem rgba(2, 159, 159, 0.15) !important;
}

.accordion-button::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A4242'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231A4242'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
    transform: rotate(180deg) !important;
}

.accordion-body {
    background-color: #ffffff !important;
    color: #1A4242 !important;
    padding: 1.5rem !important;
    overflow: visible !important;
}

.accordion-item {
    overflow: visible !important;
}

/* Chart containers - full width, extend beyond accordion padding */
.chart-container {
    width: calc(100% + 3rem) !important;
    margin: 1rem -1.5rem !important;
    max-width: none !important;
    position: relative;
}

.chart-container [id^="fig_"] {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.chart-container [id^="fig_"] > div {
    width: 100% !important;
    max-width: 100% !important;
}

/* Charts in full-width columns (col-12) should extend beyond padding */
.accordion-body .row {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

.accordion-body .row .col-12 {
    padding-left: 0 !important;
    padding-right: 0 !important;
    width: calc(100% + 3rem) !important;
    margin-left: -1.5rem !important;
    margin-right: -1.5rem !important;
}

.accordion-body .row .col-12 [id^="fig_"] {
    width: 100% !important;
    max-width: 100% !important;
    display: block !important;
}

.accordion-body .row .col-12 [id^="fig_"] > div {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure Plotly charts are responsive and full width */
.chart-container .js-plotly-plot,
.chart-container .plotly,
.chart-container [id^="fig_"] .js-plotly-plot,
.chart-container [id^="fig_"] .plotly,
.accordion-body .row .col-12 .js-plotly-plot,
.accordion-body .row .col-12 .plotly,
.accordion-body .row .col-12 [id^="fig_"] .js-plotly-plot,
.accordion-body .row .col-12 [id^="fig_"] .plotly {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 100% !important;
}

/* Ensure parent containers don't constrain width */
.dashboard-section .container,
.dashboard-section {
    overflow-x: visible !important;
}

/* NEW Horizontal Metrics Dashboard */
.metrics-horizontal-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.metric-card {
    flex: 1;
    min-width: 180px;
    background: #ffffff;
    border-radius: 0.75rem;
    padding: 1.25rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(26, 66, 66, 0.08);
    transition: box-shadow 0.2s ease;
}

.metric-card:hover {
    box-shadow: 0 4px 12px rgba(26, 66, 66, 0.12);
}

.metric-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.25rem;
    color: white;
}

.metric-icon-yellow {
    background: linear-gradient(135deg, #FFB84D, #FF9500);
}

.metric-icon-blue {
    background: linear-gradient(135deg, #4A90E2, #357ABD);
}

.metric-icon-red {
    background: linear-gradient(135deg, #E74C3C, #C0392B);
}

.metric-icon-purple {
    background: linear-gradient(135deg, #9B59B6, #8E44AD);
}

.metric-icon-green {
    background: linear-gradient(135deg, #2ECC71, #27AE60);
}

.metric-content {
    flex: 1;
    min-width: 0;
}

.metric-label {
    font-family: "Poppins", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #4B6262;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-family: "Poppins", sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #029F9F;
    margin-bottom: 0.25rem;
    line-height: 1.2;
}

.metric-detail {
    font-family: "Poppins", sans-serif;
    font-size: 0.75rem;
    color: #6B7F7F;
    line-height: 1.4;
}

.metric-detail::before {
    content: "↑ ";
    color: #029F9F;
    font-weight: 500;
}

/* Year dropdown in metric card - Professional styling */
.metric-year-form {
    margin-top: 0.5rem;
    display: block;
}

.metric-year-select {
    width: 100%;
    max-width: 120px;
    padding: 0.625rem 2.25rem 0.625rem 0.875rem;
    border: 1.5px solid #d0eeee;
    border-radius: 0.5rem;
    background-color: #ffffff;
    color: #029F9F;
    font-family: "Poppins", sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23029F9F' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.5' d='M2 5l6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.625rem center;
    background-size: 1.125rem 1.125rem;
    transition: all 0.2s ease;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(26, 66, 66, 0.08);
}

.metric-year-select:hover {
    border-color: #029F9F;
    background-color: #E9F7F7;
    box-shadow: 0 2px 6px rgba(2, 159, 159, 0.12);
}

.metric-year-select:focus {
    border-color: #029F9F;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(2, 159, 159, 0.2), 0 2px 6px rgba(2, 159, 159, 0.12);
    background-color: #ffffff;
}

.metric-year-select option {
    color: #1A4242;
    font-weight: 500;
    padding: 0.75rem;
    background-color: #ffffff;
}

@media (max-width: 1200px) {
    .metrics-horizontal-row {
        gap: 1rem;
    }
    
    .metric-card {
        min-width: 160px;
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    .metrics-horizontal-row {
        flex-direction: column;
    }
    
    .metric-card {
        min-width: 100%;
    }
}

/* Chart sections - organization only, no styling changes */
.chart-section {
    width: 100%;
}

.chart-full-width {
    width: 100%;
}

.chart-min-height {
    min-height: 400px;
}

/* Chart containers - full width only, no styling changes */
.chart-container {
    width: 100%;
    margin: 1.5rem 0;
}

.chart-container [id^="fig_"],
.chart-container [id^="fig_"] > div {
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure Plotly charts are responsive */
.chart-container .js-plotly-plot,
.chart-container .plotly {
    width: 100% !important;
    max-width: 100% !important;
}

/* Charts in accordion bodies - full width */
.accordion-body [id^="fig_"],
.accordion-body [id^="fig_"] > div {
    width: 100% !important;
    max-width: 100% !important;
}

.accordion-body .js-plotly-plot,
.accordion-body .plotly {
    width: 100% !important;
    max-width: 100% !important;
}
