/* H2opper Custom Styles */

:root {
    --h2-primary: #0d6efd;
    --h2-success: #198754;
    --h2-info: #0dcaf0;
    --h2-warning: #ffc107;
    --volume-timeline-height: 440px;
    --app-gutter: 1.25rem;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

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

main {
    flex: 1;
}

.app-header {
    display: flex;
    justify-content: center;
    padding: 0.75rem 0;
    background: #f8f9fa;
    position: sticky;
    top: 0;
    z-index: 10;
}

.app-shell {
    width: 100%;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem var(--app-gutter);
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 0.5rem;
}

.app-brand {
    font-weight: 700;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.app-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    line-height: 1.2;
}

.app-brand-copy .app-brand-text {
    font-size: 1rem;
    font-weight: 700;
}

.app-brand-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: #64748b;
}

.app-logo {
    display: block;
    height: 32px;
    width: auto;
}

.app-nav {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.app-header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.app-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.user-badge {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    min-width: 0;
    justify-content: center;
    text-align: center;
}

.user-badge-name {
    font-weight: 700;
    font-size: 1rem;
    color: #6c757d;
    line-height: 1.1;
}

.user-badge-role {
    font-weight: 400;
    color: #868e96;
}

.app-nav a {
    text-decoration: none;
    color: #0d6efd;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

.app-nav a:hover {
    background: #e7f5ff;
}

.notif-dropdown {
    position: relative;
}

.notif-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #dee2e6;
    background: #ffffff;
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    font-weight: 600;
    cursor: pointer;
}

.notif-toggle:hover {
    background: #f8f9fa;
}

.notif-icon {
    font-size: 1rem;
}

.notif-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 0.35rem;
    background: #dc3545;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1;
}

.notif-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.5rem);
    width: min(360px, 80vw);
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    z-index: 20;
    overflow: hidden;
}

.notif-menu-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid #dee2e6;
    font-weight: 600;
}

.notif-mark-all {
    border: none;
    background: transparent;
    color: #0d6efd;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}

.notif-mark-all:hover {
    text-decoration: underline;
}

.notif-items {
    max-height: 320px;
    overflow-y: auto;
}

.notif-empty {
    padding: 1rem;
    color: #6c757d;
    font-size: 0.95rem;
}

.notif-item {
    display: block;
    padding: 0.75rem 0.9rem;
    text-decoration: none;
    color: #212529;
    border-bottom: 1px solid #f1f3f5;
}

.notif-item:last-child {
    border-bottom: 0;
}

.notif-item.is-unread {
    background: #e7f5ff;
}

.notif-item-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.notif-item-body {
    font-size: 0.9rem;
    color: #495057;
    margin-bottom: 0.35rem;
}

.notif-item-meta {
    font-size: 0.75rem;
    color: #6c757d;
}

.app-main {
    flex: 1;
    padding: 1.25rem var(--app-gutter);
}

.app-main.app-shell {
    display: block;
}

.app-footer {
    padding: 0.75rem 0;
    color: #6c757d;
    font-size: 0.9rem;
    background: #f8f9fa;
}

.flash {
    padding: 0.6rem 0.8rem;
    border-radius: 0.25rem;
    margin-bottom: 0.75rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.flash-container {
    position: fixed;
    top: var(--app-gutter);
    right: var(--app-gutter);
    z-index: 1050;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-width: min(360px, calc(100vw - 2rem));
}

.app-main .alert {
    margin-left: var(--app-gutter);
    margin-right: var(--app-gutter);
}

.flash.toast {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin: 0;
    background: #ffffff;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.flash.toast.success {
    border-color: #198754;
}

.flash.toast.danger {
    border-color: #dc3545;
}

.flash.toast.warning {
    border-color: #ffc107;
}

.flash.toast.info {
    border-color: #0dcaf0;
}

.flash-message {
    flex: 1;
    font-size: 0.95rem;
}

.flash-close {
    background: transparent;
    border: none;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    color: #6c757d;
}

.flash-close:hover {
    color: #212529;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.card {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 1rem;
    width: 100%;
}

.card-header {
    font-weight: 600;
}

.card-header,
.card-body {
    padding-left: var(--app-gutter) !important;
    padding-right: var(--app-gutter) !important;
}

.detail-list {
    --detail-label-width: 130px;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-compact {
    font-size: 0.9rem;
}

.detail-row {
    display: grid;
    grid-template-columns: var(--detail-label-width) 1fr;
    column-gap: 0.5rem;
    align-items: center;
}

.detail-portfolio-grid .detail-row {
    grid-template-columns: var(--detail-label-width) 1fr var(--detail-label-width) 3fr;
    row-gap: 0.4rem;
    column-gap: 0.4rem;
}

.section-title {
    font-size: 1.1rem;
}

.detail-label {
    font-weight: 600;
    color: #495057;
}

.detail-value {
    color: #212529;
}

.profile-portfolio-kpi-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

.quote-primary-details-card .card-body {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.quote-primary-details {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.4rem 1rem;
}

.quote-primary-details .detail-row {
    grid-template-columns: 120px 1fr;
    column-gap: 0.4rem;
    align-items: baseline;
}

@media (min-width: 900px) {
    .quote-primary-details {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

.quote-primary-summary-line {
    margin: 0;
    font-size: 0.92rem;
    color: #1e293b;
    line-height: 1.35;
}

.detail-portfolio-grid .detail-value {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: nowrap;
    white-space: nowrap;
    line-height: 1;
    min-height: 1.15em;
}

.detail-portfolio-grid #balance-warning {
    display: none;
}

.portfolio-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: flex-start;
    margin-top: 1rem;
}

.portfolio-actions .btn {
    flex: 0 0 auto;
}

.leftover-proposal-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
}

.leftover-sparkline-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 0.4rem;
    align-items: center;
}

.leftover-sparkline-center {
    min-width: 0;
}

.leftover-sparkline-edge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    line-height: 1.2;
    color: #64748b;
    white-space: nowrap;
    text-align: center;
}

.leftover-sparkline-edge-left {
    text-align: center;
}

.leftover-sparkline-edge-right {
    text-align: center;
}

.leftover-sparkline-date {
    font-weight: 600;
}

.leftover-sparkline-time {
    font-weight: 500;
}

.portfolio-warning {
    white-space: nowrap;
    font-size: 0.9em;
    line-height: 1.1;
    min-height: 1.1em;
}

.detail-portfolio-grid #balance-warning .bi {
    line-height: 1;
    vertical-align: middle;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.table-responsive {
    padding-left: var(--app-gutter);
    padding-right: var(--app-gutter);
}

.my-quotes-table-wrap {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.my-quotes-summary-card {
    border-color: #bae6fd;
    background: linear-gradient(180deg, #f8fcff 0%, #ffffff 45%);
}

.my-quotes-summary-card .card-header {
    border-bottom-color: rgba(186, 230, 253, 0.9);
}

.my-quotes-list-card .card-header {
    align-items: flex-start;
    gap: 0.75rem;
}

.my-quotes-table-wrap table {
    width: 100%;
    table-layout: fixed;
}

.my-quotes-body {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
}


.badge {
    padding: 0.5em 0.75em;
}

.form-check-input:checked {
    background-color: var(--h2-success);
    border-color: var(--h2-success);
}

input[type="radio"].form-check-input {
    border-radius: 9999px;
}

.segmented-control {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: wrap;
}

.segmented-control-inline {
    flex-wrap: nowrap;
}

.segmented-option {
    position: relative;
    display: inline-flex;
}

.segmented-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.segmented-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    padding: 0.25rem 0.625rem;
    border-radius: 9999px;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #334155;
    font-size: 0.8125rem;
    line-height: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.segmented-option:hover .segmented-label {
    border-color: #94a3b8;
    background: #f8fafc;
}

.segmented-input:checked + .segmented-label {
    border-color: #0284c7;
    background: #e0f2fe;
    color: #0c4a6e;
}

.segmented-option-ask .segmented-input:checked + .segmented-label {
    border-color: #198754;
    background: #dcfce7;
    color: #166534;
}

.segmented-option-bid .segmented-input:checked + .segmented-label {
    border-color: #0284c7;
    background: #e0f2fe;
    color: #0c4a6e;
}

.segmented-input:focus-visible + .segmented-label {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.aligned-form {
    --form-label-width: 170px;
}

.aligned-form .form-row {
    display: grid;
    grid-template-columns: var(--form-label-width) 1fr;
    column-gap: 0.75rem;
    align-items: start;
}

.aligned-form .form-label {
    margin-bottom: 0;
}

.aligned-form .form-label-stack {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.aligned-form .form-label-hint {
    margin: 0;
    font-size: 0.75rem;
    line-height: 1rem;
    color: #64748b;
}

.aligned-form .form-field {
    display: block;
    max-width: 240px;
    width: 100%;
}

.aligned-form .form-field.is-wide {
    max-width: 480px;
}

.aligned-form .form-field.is-full {
    max-width: none;
}

.aligned-form .form-control,
.aligned-form .form-select {
    max-width: 240px;
    width: 100%;
}

.aligned-form .form-control.is-wide,
.aligned-form .form-select.is-wide {
    max-width: 480px;
}

.aligned-form .form-control.is-full,
.aligned-form .form-select.is-full {
    max-width: none;
}

.aligned-form .form-field-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.aligned-form .form-field-row.align-top {
    align-items: flex-start;
}

.aligned-form .form-unit {
    color: #6c757d;
    font-size: 0.875rem;
    white-space: nowrap;
}

.aligned-form small.text-muted {
    display: block;
    margin-top: 0.25rem;
}

.quote-switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    width: 44px;
    height: 24px;
    cursor: pointer;
}

.quote-switch-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.quote-switch-slider {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 9999px;
    background-color: #cbd5e1;
    transition: background-color 0.2s ease;
}

.quote-switch-slider::before {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 9999px;
    background-color: #ffffff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.28);
    transition: transform 0.2s ease;
}

.quote-switch-input:checked + .quote-switch-slider {
    background-color: #16a34a;
}

.quote-switch-input:checked + .quote-switch-slider::before {
    transform: translateX(20px);
}

.quote-switch-input:focus-visible + .quote-switch-slider {
    outline: 2px solid #38bdf8;
    outline-offset: 2px;
}

.portfolio-checkbox,
.market-checkbox,
.profile-checkbox {
    cursor: pointer;
}

.portfolio-checkbox:checked ~ label,
.market-checkbox:checked ~ label,
.profile-checkbox:checked ~ label {
    background-color: #e7f5ff;
}

#balance-warning {
    padding: 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9rem;
}

code {
    color: #d63384;
    background-color: #f8f9fa;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

.dropdown-item-text {
    color: #6c757d;
}

footer {
    margin-top: auto;
    border-top: 1px solid #dee2e6;
}

/* Quote detail layout */
.quote-detail-layout {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1rem;
    align-items: start;
}

.quote-detail-main {
    min-width: 0;
}

.quote-detail-side {
    min-width: 0;
}

.matching-chart-wrap {
    height: 120px;
}

.matching-volume-chart {
    display: block;
    width: 100%;
    height: 100%;
}


.new-match-highlight {
    border-left: 4px solid #dc3545;
    background: #fff5f5;
    padding-left: 0.75rem;
    border-radius: 0.25rem;
    border: 1px solid #f5c2c7;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.12);
}

.new-match-highlight .matching-chart-wrap {
    border: 1px solid #f1aeb5;
    border-radius: 0.4rem;
    padding: 0.25rem;
    background: #ffffff;
}

.badge-new-match {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.55rem;
    border-radius: 999px;
    background: #fff5f5;
    color: #dc3545;
    border: 1px solid #f5c2c7;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.match-status-text {
    display: inline-flex;
    align-items: center;
    font-size: 0.8rem;
    font-weight: 600;
    color: #be123c;
    background: transparent;
    border: 0;
    padding: 0;
    text-transform: none;
    letter-spacing: 0;
    cursor: default;
}

.my-quotes-chart-row td {
    padding-top: 0;
    padding-bottom: 1rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.my-quotes-chart-cell {
    width: 100%;
}

.my-quotes-chart-row .matching-chart-wrap {
    width: 100%;
}

.my-quotes-actions-row td {
    padding-top: 0;
    padding-bottom: 0.75rem;
    padding-left: 0.25rem;
    padding-right: 0.25rem;
    border-bottom: 1px solid #dee2e6;
}

.my-quotes-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}


.my-quotes-action-form {
    margin: 0;
}

.my-quotes-actions-row:last-child td {
    border-bottom: 0;
}

.my-quotes-actions-row + .my-quotes-row td {
    padding-top: 1.25rem;
}

.my-profiles-table-wrap {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
}

.my-profile-card {
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: #ffffff;
    padding: 1rem;
}

.my-profiles-row td {
    padding-bottom: 0.25rem;
}

.my-profiles-meta-row td {
    padding-top: 0;
    padding-bottom: 0.5rem;
}

.my-profiles-meta-list {
    list-style: none;
    margin: 0;
    padding-left: 0;
    font-size: 0.9rem;
}

.my-profiles-meta-list li {
    margin-bottom: 0.25rem;
}

.my-profiles-meta-list li:last-child {
    margin-bottom: 0;
}

.my-profiles-actions-row td {
    padding-top: 0;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #dee2e6;
}

.my-profiles-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
}

.my-profiles-action-form {
    margin: 0;
}

.my-profiles-actions-row:last-child td {
    border-bottom: 0;
}

.my-profiles-actions-row + .my-profiles-row td {
    padding-top: 1rem;
}

.counter-participant {
    display: block;
    text-align: right;
    margin-top: 0.25rem;
}

.card-body canvas {
    display: block;
    width: 100% !important;
    max-width: 100%;
}

.volume-timeline-chart {
    height: var(--volume-timeline-height) !important;
}

#createVolumeChart,
#volumeChart,
#contractVolumeChart {
    height: 240px !important;
}

#marketBalanceChart,
#profileBalanceChart {
    height: var(--volume-timeline-height) !important;
}

#profileBalanceChart {
    height: 240px !important;
}

#marketBalanceChart {
    height: 240px !important;
}

#market-price-wrap,
#market-executed-price-wrap {
    height: 16rem;
    padding-bottom: 0.5rem;
    box-sizing: border-box;
    margin-bottom: 0.75rem;
}

.dashboard-mini-chart {
    height: 170px !important;
}

.my-status-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.contracts-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
}

.my-contracts-sort {
    width: 220px;
    max-width: 100%;
}

.my-contracts-search {
    width: 240px;
    max-width: 100%;
}

.contracts-copy-btn {
    min-width: 54px;
}

.contracts-volume-chart-wrap {
    height: 240px;
}

.contract-volume-series-text {
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    background: #f8fafc;
    padding: 0.75rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: none;
}

.contracts-mobile-list {
    display: none;
}

.contracts-desktop-list {
    display: block;
}

.market-pulse-chart {
    height: 14rem;
}

.dashboard-filters-card {
    position: static;
}

.dashboard-filters-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.dashboard-market-inline {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 1.25rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

.dashboard-market-inline .form-label {
    min-width: 170px;
    margin-bottom: 0;
}

.dashboard-filter-subcard {
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.92);
    border-radius: 0.9rem;
    padding: 0.7rem 0.8rem;
}

.dashboard-filter-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #475569;
    margin-bottom: 0.45rem;
}

.dashboard-filter-badges {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.dashboard-period-bar {
    position: sticky;
    top: 4.5rem;
    z-index: 25;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: rgba(248, 250, 252, 0.92);
    backdrop-filter: blur(8px);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
}

.dashboard-period-bar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.dashboard-market-group,
.dashboard-period-group {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.dashboard-market-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.dashboard-market-switch-card .card-body {
    padding: 0.9rem 1rem 1rem;
}

.dashboard-market-switch-head {
    margin-bottom: 0.6rem;
}

.dashboard-market-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    width: 100%;
}

.dashboard-market-switch-btn {
    min-height: 3rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.dashboard-period-card-body {
    padding-top: 0.85rem;
}

.dashboard-period-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.45rem;
}

.dashboard-market-toggle .btn.is-active {
    border-color: #38bdf8;
    background: #e0f2fe;
    color: #075985;
}

.dashboard-period-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.dashboard-period-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #334155;
}

.dashboard-period-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: nowrap;
    margin: 0 auto;
}

.dashboard-section-spacer {
    height: 24px;
}

/* Loading states */
.btn:disabled {
    cursor: not-allowed;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }

    .app-brand-copy .app-brand-text {
        font-size: 0.875rem;
    }

    .app-brand-tagline {
        font-size: 0.7rem;
    }
    
    .table {
        font-size: 0.9rem;
    }

    :root {
        --volume-timeline-height: 300px;
    }

    #createVolumeChart,
    #volumeChart {
        height: 200px !important;
    }

    .leftover-proposal-row {
        grid-template-columns: 1fr;
    }

    .contracts-kpi-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contracts-desktop-list {
        display: none;
    }

    .contracts-mobile-list {
        display: grid;
        gap: 0.75rem;
    }

    .dashboard-period-bar-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-market-group,
    .dashboard-period-group {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-market-toggle,
    .dashboard-period-actions {
        width: 100%;
    }

    .dashboard-market-switch {
        grid-template-columns: 1fr;
    }

    .dashboard-period-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.35rem;
    }

    .dashboard-market-toggle .btn,
    .dashboard-period-actions .btn,
    .dashboard-period-actions .form-select {
        flex: 1 1 auto;
    }

    .dashboard-filters-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-filter-subcard {
        padding: 0.7rem;
    }

    .dashboard-market-inline {
        flex-direction: row;
        align-items: center;
    }
}
