/* =========================================
   MARKETBHAV - EGG RATE SECTION
========================================= */

.mb-egg-page,
.mb-egg-page * {
    box-sizing: border-box;
}

.mb-egg-page {
    --mb-egg-green: #2E7D32;
    --mb-egg-green-dark: #1B5E20;
    --mb-egg-green-light: #E8F5E9;
    --mb-egg-orange: #F57F17;
    --mb-egg-orange-light: #FFF8E1;
    --mb-egg-text: #212121;
    --mb-egg-muted: #5F6B60;
    --mb-egg-border: #E1E8E1;
    --mb-egg-surface: #FFFFFF;

    width: 100%;
    max-width: 1080px;
    min-width: 0;
    margin: 0 auto;
    padding: 20px;
    background: #FFFFFF;
    color: var(--mb-egg-text);
    font-family: "Roboto", Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.mb-egg-page h1,
.mb-egg-page h2,
.mb-egg-page h3,
.mb-egg-page p {
    margin-top: 0;
}

.mb-egg-page h1 {
    margin-bottom: 10px;
    font-size: 30px;
    line-height: 1.35;
    font-weight: 800;
}

.mb-egg-page h2 {
    margin-bottom: 6px;
    font-size: 22px;
    line-height: 1.4;
    font-weight: 750;
}

.mb-egg-page h3 {
    margin-bottom: 8px;
    font-size: 18px;
    line-height: 1.45;
}

.mb-egg-page p {
    margin-bottom: 12px;
}

.mb-egg-page a {
    color: var(--mb-egg-green-dark);
    text-decoration: none;
}

.mb-egg-page a:hover {
    color: var(--mb-egg-orange);
}

.mb-egg-page button,
.mb-egg-page input,
.mb-egg-page select {
    font: inherit;
}

.mb-egg-page button,
.mb-egg-page select {
    cursor: pointer;
}

.mb-egg-page button:focus-visible,
.mb-egg-page input:focus-visible,
.mb-egg-page select:focus-visible,
.mb-egg-page a:focus-visible {
    outline: 2px solid var(--mb-egg-orange);
    outline-offset: 3px;
}

.mb-egg-muted {
    color: var(--mb-egg-muted);
}

.mb-egg-section {
    margin-bottom: 28px;
}

.mb-egg-breadcrumb span {
    color: #58585a;
}

/* Intro */

.mb-egg-intro {
    margin-bottom: 20px;
}

.mb-egg-intro p {
    max-width: 1080px;
    margin-bottom: 12px;
    color: var(--mb-egg-muted);
    font-size: 16px;
    line-height: 1.75;
}

.mb-egg-updated {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    color: var(--mb-egg-muted);
    font-size: 15px;
}

.mb-egg-status-dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    border-radius: 50%;
    background: #35A853;
}

/* Search panel */

.mb-egg-search {
    padding: 20px;
    margin-bottom: 24px;
    border: 1px solid var(--mb-egg-border);
    border-top: 4px solid var(--mb-egg-green);
    border-radius: 14px;
    background: #F8FBF8;
}

.mb-egg-search-heading {
    margin-bottom: 16px;
}

.mb-egg-search-heading h2 {
    margin-bottom: 4px;
}

.mb-egg-search-heading p {
    margin-bottom: 0;
    color: var(--mb-egg-muted);
    font-size: 15px;
}

.mb-egg-search-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
    align-items: end;
    gap: 14px;
}

.mb-egg-field {
    min-width: 0;
}

.mb-egg-field label {
    display: block;
    margin-bottom: 7px;
    font-weight: 700;
}

.mb-egg-field select,
.mb-egg-field input {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #D3DED4;
    border-radius: 8px;
    background: #FFFFFF;
    color: var(--mb-egg-text);
}

.mb-egg-field select:focus,
.mb-egg-field input:focus {
    border-color: var(--mb-egg-green);
    outline: 2px solid #D5EAD7;
}

.mb-egg-btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background .2s ease, border-color .2s ease;
}

.mb-egg-btn-primary {
    background: var(--mb-egg-green);
    color: #FFFFFF !important;
}

.mb-egg-btn-primary:hover {
    background: var(--mb-egg-green-dark);
}

.mb-egg-btn-outline {
    border-color: var(--mb-egg-green);
    background: #FFFFFF;
    color: var(--mb-egg-green-dark) !important;
}

.mb-egg-btn-outline:hover {
    background: var(--mb-egg-green-light);
}

/* Section heading */

.mb-egg-section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.mb-egg-heading-icon {
    display: flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--mb-egg-green-light);
    color: var(--mb-egg-green-dark);
    font-size: 19px;
    font-weight: 800;
}

.mb-egg-section-heading p {
    margin: 4px 0 0;
    color: var(--mb-egg-muted);
    font-size: 15px;
}

/* Summary cards */

.mb-egg-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

.mb-egg-summary-card {
    min-width: 0;
    padding: 18px;
    border: 1px solid #DDE9DE;
    border-radius: 12px;
    background: linear-gradient(145deg, #FFFFFF, #F3FAF4);
    box-shadow: 0 3px 12px rgba(30, 80, 35, .035);
}

.mb-egg-summary-card:nth-child(even) {
    background: linear-gradient(145deg, #FFFFFF, #FFF9EE);
    border-color: #F1E6D2;
}

.mb-egg-summary-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    color: var(--mb-egg-muted);
    font-size: 15px;
    font-weight: 700;
}

.mb-egg-summary-symbol {
    display: flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--mb-egg-green-light);
    color: var(--mb-egg-green-dark);
    font-weight: 800;
}

.mb-egg-summary-card:nth-child(even) .mb-egg-summary-symbol {
    background: var(--mb-egg-orange-light);
    color: #9C3D00;
}

.mb-egg-summary-value {
    margin-bottom: 4px;
    color: var(--mb-egg-green-dark);
    font-size: 27px;
    line-height: 1.3;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.mb-egg-summary-card:nth-child(even) .mb-egg-summary-value {
    color: #9C3D00;
}

.mb-egg-summary-unit {
    color: var(--mb-egg-muted);
    font-size: 15px;
}

/* Date filter and table toolbar */

.mb-egg-table-panel {
    border: 1px solid var(--mb-egg-border);
    border-radius: 12px;
    overflow: hidden;
    background: #FFFFFF;
}

.mb-egg-table-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border-bottom: 1px solid var(--mb-egg-border);
    background: #FAFCFA;
}

.mb-egg-date-filter {
    display: flex;
    flex-wrap: wrap;
    align-items: end;
    gap: 10px;
}

.mb-egg-date-filter .mb-egg-field {
    width: 175px;
}

.mb-egg-date-filter input {
    width: 100%;
}

.mb-egg-toolbar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Rates table */

.mb-egg-table-scroll {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.mb-egg-rates-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    text-align: left;
    font-size: 15px;
}

.mb-egg-rates-table thead th {
    padding: 14px 13px;
    background: #EDF7EF;
    color: #254B2A;
    border-bottom: 1px solid #DDE9DE;
    white-space: nowrap;
    font-weight: 700;
}

.mb-egg-rates-table tbody td {
    padding: 15px 13px;
    border-bottom: 1px solid #EDF0ED;
    vertical-align: middle;
}

.mb-egg-rates-table tbody tr:nth-child(even) {
    background: #FAFCFA;
}

.mb-egg-rates-table tbody tr:hover {
    background: #F1F8F2;
}

.mb-egg-rates-table tbody tr:last-child td {
    border-bottom: 0;
}

.mb-egg-location {
    min-width: 150px;
}

.mb-egg-location strong {
    display: block;
    margin-bottom: 2px;
    font-size: 15px;
}

.mb-egg-location span {
    color: var(--mb-egg-muted);
    font-size: 15px;
}

.mb-egg-rate {
    white-space: nowrap;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.mb-egg-trend-up {
    display: inline-block;
    margin-left: 4px;
    color: var(--mb-egg-green-dark);
    font-size: 15px;
    font-weight: 700;
}

.mb-egg-date {
    min-width: 130px;
    color: var(--mb-egg-muted);
    white-space: nowrap;
}

.mb-egg-table-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 7px 11px;
    border: 1px solid #CFE2D1;
    border-radius: 7px;
    background: #FFFFFF;
    color: var(--mb-egg-green-dark);
    font-weight: 700;
    white-space: nowrap;
}

.mb-egg-table-link:hover {
    background: var(--mb-egg-green-light);
}

.mb-egg-table-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    border-top: 1px solid var(--mb-egg-border);
    background: #FAFCFA;
    color: var(--mb-egg-muted);
}

/* Browse links */

.mb-egg-link-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.mb-egg-link-card {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--mb-egg-border);
    border-radius: 10px;
    background: #FFFFFF;
    transition: background .2s ease, border-color .2s ease;
}

.mb-egg-link-card:hover {
    border-color: #A9D5AF;
    background: #F4FAF5;
}

.mb-egg-link-icon {
    display: flex;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--mb-egg-green-light);
    color: var(--mb-egg-green-dark);
    font-weight: 800;
}

.mb-egg-link-text {
    flex: 1;
    min-width: 0;
}

.mb-egg-link-text strong {
    display: block;
    font-size: 15px;
    line-height: 1.45;
}

.mb-egg-link-arrow {
    color: var(--mb-egg-green);
    font-size: 20px;
    font-weight: 800;
}

.mb-egg-view-all {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

/* Helpful information */

.mb-egg-info {
    padding: 22px;
    border: 1px solid #DCEBDD;
    border-radius: 12px;
    background: #F6FBF6;
}

.mb-egg-info p {
    margin-bottom: 0;
    color: var(--mb-egg-muted);
    font-size: 15px;
    line-height: 1.8;
}

/* Tablet */

@media (min-width: 601px) and (max-width: 900px) {
    .mb-egg-page {
        padding: 16px;
    }

    .mb-egg-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-egg-link-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-egg-search-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-egg-search-grid > .mb-egg-btn {
        grid-column: 1 / -1;
        justify-self: start;
    }
}

/* Mobile */

@media (max-width: 600px) {
    .mb-egg-page {
        padding: 12px;
    }

    .mb-egg-page h1 {
        font-size: 25px;
    }

    .mb-egg-page h2 {
        font-size: 20px;
    }

    .mb-egg-search {
        padding: 15px;
    }

    .mb-egg-search-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-egg-search-grid > .mb-egg-btn {
        width: 100%;
    }

    .mb-egg-summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .mb-egg-summary-card {
        padding: 14px;
    }

    .mb-egg-summary-value {
        font-size: 24px;
    }

    .mb-egg-table-toolbar {
        align-items: stretch;
        padding: 14px;
    }

    .mb-egg-date-filter {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mb-egg-date-filter .mb-egg-field {
        width: auto;
        min-width: 0;
    }

    .mb-egg-date-filter .mb-egg-btn {
        grid-column: 1 / -1;
        width: 100%;
    }

    .mb-egg-toolbar-actions {
        width: 100%;
    }

    .mb-egg-toolbar-actions .mb-egg-btn {
        flex: 1 1 100%;
    }

    .mb-egg-link-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-egg-table-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 360px) {
    .mb-egg-summary-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-egg-date-filter {
        grid-template-columns: minmax(0, 1fr);
    }

    .mb-egg-date-filter .mb-egg-btn {
        grid-column: auto;
    }
}