/* WB Profit unified styles (source of truth) */
/* Generated from Blade inline styles and maintained centrally. */

/* --- resources/views/layouts/app.blade.php --- */
        body {
            background: #f5f7fb;
            margin: 0;
        }
        .wb-layout {
            min-height: 100vh;
            display: flex;
            align-items: stretch;
        }
        .wb-sidebar {
            width: 280px;
            background: linear-gradient(180deg, #0f2f57 0%, #163d6e 100%);
            box-shadow: 4px 0 24px rgba(15, 47, 87, 0.18);
            color: #ffffff;
            position: sticky;
            top: 0;
            height: 100vh;
            display: flex;
            flex-direction: column;
            z-index: 1000;
        }
        .wb-sidebar-head {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 12px;
            padding: 18px 18px 14px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        }
        .wb-sidebar-brand {
            color: #ffffff !important;
            font-weight: 700;
            letter-spacing: 0.02em;
            font-size: 20px;
            text-decoration: none !important;
        }
        .wb-sidebar-toggle {
            display: none;
            background: transparent;
            border: 1px solid rgba(255, 255, 255, 0.35);
            border-radius: 8px;
            padding: 7px 8px;
        }
        .wb-sidebar-toggle .icon-bar {
            display: block;
            width: 18px;
            height: 2px;
            border-radius: 999px;
            background: #fff;
        }
        .wb-sidebar-toggle .icon-bar + .icon-bar {
            margin-top: 4px;
        }
        .wb-sidebar-collapse {
            display: flex;
            flex-direction: column;
            height: 100%;
            overflow-y: auto;
        }
        .wb-sidebar-collapse.collapse {
            display: none;
        }
        .wb-sidebar-collapse.collapse.in {
            display: flex !important;
        }
        .wb-sidebar-nav {
            list-style: none;
            margin: 0;
            padding: 12px;
        }
        .wb-sidebar-nav > li + li {
            margin-top: 4px;
        }
        .wb-sidebar-nav > li > a {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 12px 14px;
            border-radius: 12px;
            color: rgba(255, 255, 255, 0.88);
            font-weight: 600;
            text-decoration: none !important;
            transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
        }
        .wb-sidebar-nav > li > a:hover,
        .wb-sidebar-nav > li > a:focus {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.10);
            transform: translateX(2px);
        }
        .wb-sidebar-nav > li.active > a,
        .wb-sidebar-nav > li.active > a:hover,
        .wb-sidebar-nav > li.active > a:focus {
            color: #ffffff;
            background: rgba(255, 255, 255, 0.18);
            box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
        }
        .wb-sidebar-foot {
            margin-top: auto;
            padding: 16px 18px 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.08);
        }
        .wb-sidebar-user {
            color: rgba(255, 255, 255, 0.82);
            font-size: 13px;
            margin-bottom: 10px;
            word-break: break-word;
        }
        .wb-sidebar-logout {
            width: 100%;
            border-radius: 10px;
            font-weight: 600;
        }
        .wb-main {
            flex: 1;
            min-width: 0;
            padding: 20px 22px 24px;
        }
        .wb-mobile-nav {
            display: none;
        }
        @media (max-width: 991px) {
            .wb-layout {
                display: block;
            }
            .wb-sidebar {
                display: none;
            }
            .wb-main {
                padding: 16px 14px 86px;
            }
            .wb-mobile-nav {
                display: block;
                position: fixed;
                left: 0;
                right: 0;
                bottom: 0;
                z-index: 1100;
                background: rgba(15, 47, 87, 0.98);
                box-shadow: 0 -4px 20px rgba(15, 47, 87, 0.24);
                border-top: 1px solid rgba(255, 255, 255, 0.08);
                backdrop-filter: blur(8px);
            }
            .wb-mobile-nav-scroll {
                display: flex;
                gap: 8px;
                overflow-x: auto;
                overflow-y: hidden;
                padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
                -webkit-overflow-scrolling: touch;
                scrollbar-width: none;
            }
            .wb-mobile-nav-scroll::-webkit-scrollbar {
                display: none;
            }
            .wb-mobile-nav-link {
                min-width: 78px;
                flex: 0 0 auto;
                display: flex;
                flex-direction: column;
                align-items: center;
                justify-content: center;
                gap: 4px;
                padding: 8px 10px;
                color: rgba(255, 255, 255, 0.82);
                text-decoration: none !important;
                border-radius: 12px;
                font-size: 11px;
                font-weight: 600;
                line-height: 1.15;
                text-align: center;
            }
            .wb-mobile-nav-link .glyphicon {
                font-size: 16px;
            }
            .wb-mobile-nav-link.active {
                color: #ffffff;
                background: rgba(255, 255, 255, 0.16);
            }
            .wb-mobile-nav-link:focus,
            .wb-mobile-nav-link:hover {
                color: #ffffff;
                background: rgba(255, 255, 255, 0.10);
            }
        }

/* --- resources/views/wb_profit/accounts.blade.php --- */
        .acc-shell {
            font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
            color: #1f2937;
            margin-bottom: 24px;
        }
        .acc-hero {
            background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
            border: 1px solid #dbe5f3;
            border-radius: 16px;
            padding: 18px 20px;
            margin-bottom: 16px;
            box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
        }
        .acc-hero h1 {
            margin: 0 0 8px;
            font-size: 28px;
            font-weight: 700;
        }
        .acc-sub {
            color: #4b5563;
            font-size: 14px;
        }
        .acc-badge {
            display: inline-block;
            padding: 6px 10px;
            border-radius: 999px;
            background: #e7efff;
            color: #26427d;
            font-size: 12px;
            font-weight: 600;
            margin-right: 8px;
        }
        .acc-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 12px;
            margin-bottom: 16px;
        }
        .acc-card {
            background: #fff;
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            padding: 12px 14px;
            box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
        }
        .acc-label {
            color: #6b7280;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            margin-bottom: 4px;
        }
        .acc-value {
            font-size: 22px;
            font-weight: 700;
        }
        .acc-panel {
            border: 1px solid #e5e7eb;
            border-radius: 12px;
            background: #fff;
            box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
            margin-bottom: 14px;
            overflow: hidden;
        }
        .acc-panel-head {
            padding: 12px 14px;
            background: #f9fafb;
            border-bottom: 1px solid #eef1f5;
        }
        .acc-panel-title {
            margin: 0;
            font-size: 16px;
            font-weight: 600;
        }
        .acc-panel-body {
            padding: 14px;
        }
        .acc-form {
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            align-items: flex-end;
        }
        .acc-form .form-group {
            margin: 0;
        }
        .acc-form .form-control {
            min-width: 220px;
        }
        .acc-token-form {
            display: flex;
            gap: 6px;
            align-items: center;
        }
        .acc-table-wrap {
            overflow: auto;
        }
        .acc-table {
            margin-bottom: 0;
            min-width: 720px;
        }
        .acc-table > thead > tr > th {
            background: #f8fafc;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.03em;
            color: #4b5563;
            border-bottom: 2px solid #dbe2ea;
        }
        @media (max-width: 767px) {
            .acc-hero h1 {
                font-size: 24px;
            }
            .acc-form .form-control {
                min-width: 0;
                width: 100%;
            }
        }

/* --- resources/views/wb_profit/costs.blade.php --- */
    .cost-shell {
        font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
        color: #1f2937;
        margin-bottom: 26px;
    }
    .cost-hero {
        background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
        border: 1px solid #dbe5f3;
        border-radius: 16px;
        padding: 18px 20px;
        margin-bottom: 16px;
        box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
    }
    .cost-hero h1 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 700;
    }
    .cost-badge {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 999px;
        background: #e7efff;
        color: #26427d;
        font-size: 12px;
        font-weight: 600;
        margin-right: 8px;
    }
    .cost-sub {
        color: #4b5563;
        font-size: 14px;
    }
    .cost-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        margin-bottom: 16px;
    }
    .cost-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
    }
    .cost-label {
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 4px;
    }
    .cost-value {
        font-size: 22px;
        font-weight: 700;
    }
    .cost-panel {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
        margin-bottom: 14px;
        overflow: hidden;
    }
    .cost-panel-head {
        padding: 12px 14px;
        background: #f9fafb;
        border-bottom: 1px solid #eef1f5;
    }
    .cost-panel-title {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }
    .cost-panel-body {
        padding: 14px;
    }
    .cost-filter-row {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
    }
    .cost-filter-row .form-control {
        min-width: 240px;
    }
    .cost-table-wrap {
        overflow: auto;
        border-top: 1px solid #eef1f5;
    }
    .cost-table {
        margin-bottom: 0;
        min-width: 680px;
    }
    .cost-table > thead > tr > th {
        background: #f8fafc;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #4b5563;
        border-bottom: 2px solid #dbe2ea;
    }
    .cost-table > tbody > tr.row-hidden {
        display: none;
    }
    .cost-sticky {
        position: sticky;
        bottom: 10px;
        z-index: 3;
        margin-top: 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        align-items: center;
        padding: 12px;
        border: 1px solid #dbe5f3;
        border-radius: 12px;
        background: rgba(248, 251, 255, 0.96);
    }
    .cost-hint {
        color: #6b7280;
        font-size: 12px;
    }
    @media (max-width: 767px) {
        .cost-hero h1 {
            font-size: 24px;
        }
        .cost-filter-row .form-control {
            width: 100%;
            min-width: 0;
        }
    }

/* --- resources/views/wb_profit/upload.blade.php --- */
    .up-shell {
        font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
        color: #1f2937;
        margin-bottom: 24px;
    }
    .up-hero {
        background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
        border: 1px solid #dbe5f3;
        border-radius: 16px;
        padding: 18px 20px;
        margin-bottom: 16px;
        box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
    }
    .up-hero h1 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 700;
    }
    .up-sub {
        color: #4b5563;
        font-size: 14px;
    }
    .up-badge {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 999px;
        background: #e7efff;
        color: #26427d;
        font-size: 12px;
        font-weight: 600;
        margin-right: 8px;
    }
    .up-panel {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
        margin-bottom: 14px;
        overflow: hidden;
    }
    .up-panel-head {
        padding: 12px 14px;
        background: #f9fafb;
        border-bottom: 1px solid #eef1f5;
    }
    .up-panel-head h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
    }
    .up-panel-body {
        padding: 14px;
    }
    .up-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        margin-bottom: 16px;
    }
    .up-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
    }
    .up-card-label {
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 4px;
    }
    .up-card-value {
        font-size: 22px;
        font-weight: 700;
    }
    .up-hint {
        color: #6b7280;
        font-size: 12px;
    }
    .up-submit {
        position: sticky;
        bottom: 10px;
        z-index: 3;
        margin-top: 14px;
        display: flex;
        align-items: center;
        gap: 10px;
        flex-wrap: wrap;
        padding: 12px;
        border: 1px solid #dbe5f3;
        border-radius: 12px;
        background: rgba(248, 251, 255, 0.96);
    }
    @media (max-width: 767px) {
        .up-hero h1 {
            font-size: 24px;
        }
    }

/* --- resources/views/wb_profit/result.blade.php --- */
    .res-shell {
        font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
        color: #1f2937;
        margin-bottom: 24px;
    }
    .res-hero {
        background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
        border: 1px solid #dbe5f3;
        border-radius: 16px;
        padding: 18px 20px;
        margin-bottom: 16px;
        box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
    }
    .res-hero h1 {
        margin: 0 0 8px;
        font-size: 28px;
        font-weight: 700;
    }
    .res-badge {
        display: inline-block;
        padding: 6px 10px;
        border-radius: 999px;
        background: #e7efff;
        color: #26427d;
        font-size: 12px;
        font-weight: 600;
        margin-right: 8px;
    }
    .res-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
        gap: 12px;
        margin-bottom: 16px;
    }
    .res-card {
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        padding: 12px 14px;
        box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
    }
    .res-label {
        color: #6b7280;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        margin-bottom: 4px;
    }
    .res-value {
        font-size: 22px;
        font-weight: 700;
    }
    .res-positive {
        color: #0f766e;
    }
    .res-negative {
        color: #b91c1c;
    }
    .res-panel {
        border: 1px solid #e5e7eb;
        border-radius: 12px;
        background: #fff;
        box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
        overflow: hidden;
    }
    .res-tools {
        padding: 12px 14px;
        border-bottom: 1px solid #eef1f5;
        background: #f9fafb;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
        align-items: center;
    }
    .res-tools .form-control {
        max-width: 320px;
    }
    .res-table-wrap {
        overflow: auto;
    }
    .res-table {
        margin-bottom: 0;
        min-width: 1060px;
    }
    .res-table > thead > tr > th {
        background: #f8fafc;
        font-size: 12px;
        text-transform: uppercase;
        letter-spacing: 0.03em;
        color: #4b5563;
        border-bottom: 2px solid #dbe2ea;
    }
    .res-table > tbody > tr.row-missing {
        background: #fff6f6;
    }
    .res-table > tbody > tr.row-hidden {
        display: none;
    }
    .res-foot {
        margin-top: 14px;
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    @media (max-width: 767px) {
        .res-hero h1 {
            font-size: 24px;
        }
        .res-tools .form-control {
            max-width: 100%;
            width: 100%;
        }
    }

/* --- resources/views/wb_profit/reports_index.blade.php --- */
  .idx-shell {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    margin-bottom: 24px;
  }
  .idx-hero {
    background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
  }
  .idx-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
  }
  .idx-sub {
    color: #4b5563;
    font-size: 14px;
  }
  .idx-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7efff;
    color: #26427d;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
  }
  .idx-metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
  }
  .idx-metric {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 2px 8px rgba(17, 24, 39, 0.05);
  }
  .idx-metric-label {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
  }
  .idx-metric-value {
    font-size: 22px;
    font-weight: 700;
  }
  .idx-positive {
    color: #0f766e;
  }
  .idx-negative {
    color: #b91c1c;
  }
  .idx-panel {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
    overflow: hidden;
  }
  .idx-panel-head {
    padding: 12px 14px;
    border-bottom: 1px solid #eef1f5;
    background: #f9fafb;
  }
  .idx-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  .idx-filter .form-control {
    min-width: 220px;
  }
  .idx-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }
  .idx-table-wrap {
    overflow: auto;
  }
  .idx-insights {
    margin-bottom: 16px;
  }
  .idx-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
  }
  .idx-insight-card {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
    overflow: hidden;
  }
  .idx-insight-head {
    padding: 10px 12px;
    border-bottom: 1px solid #eef1f5;
    background: #f9fafb;
    font-size: 13px;
    font-weight: 700;
  }
  .idx-insight-body {
    padding: 12px;
  }
  .idx-insight-list {
    margin: 0;
    padding-left: 18px;
  }
  .idx-insight-list li {
    margin-bottom: 6px;
    color: #4b5563;
    font-size: 13px;
  }
  .idx-inline-bars {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .idx-inline-bars li {
    margin-bottom: 8px;
  }
  .idx-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 4px;
  }
  .idx-bar-meta {
    max-width: calc(100% - 110px);
  }
  .idx-bar-main {
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
  }
  .idx-bar-sub {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
  }
  .idx-bar {
    height: 8px;
    border-radius: 999px;
    background: #e9eff8;
    overflow: hidden;
  }
  .idx-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2e6ab3, #5b8cc8);
  }
  .idx-bar-fill.neg {
    background: linear-gradient(90deg, #d25e5e, #ef8c8c);
  }
  .idx-table {
    margin: 0;
    min-width: 980px;
  }
  .idx-table > thead > tr > th {
    background: #f8fafc;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #4b5563;
    border-bottom: 2px solid #dbe2ea;
    white-space: nowrap;
  }
  .idx-table > tbody > tr > td {
    vertical-align: middle;
  }
  .idx-actions {
    white-space: nowrap;
  }
  .idx-pagination {
    margin-top: 14px;
  }
  .idx-pagination-card {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
  }
  .idx-pagination-meta {
    color: #6b7280;
    font-size: 13px;
  }
  .idx-pagination-links .pagination {
    margin: 0;
  }
  .idx-pagination-links .pagination > li > a,
  .idx-pagination-links .pagination > li > span {
    border-radius: 8px !important;
    margin: 0 2px;
    border-color: #d6dde8;
    color: #1f3f72;
    font-weight: 600;
    min-width: 36px;
    text-align: center;
  }
  .idx-pagination-links .pagination > .active > a,
  .idx-pagination-links .pagination > .active > span,
  .idx-pagination-links .pagination > .active > a:hover,
  .idx-pagination-links .pagination > .active > span:hover,
  .idx-pagination-links .pagination > .active > a:focus,
  .idx-pagination-links .pagination > .active > span:focus {
    background: #1d4f8c;
    border-color: #1d4f8c;
    color: #fff;
  }
  .idx-pagination-links .pagination > li > a:hover,
  .idx-pagination-links .pagination > li > span:hover {
    background: #f3f7ff;
    border-color: #b9c8de;
  }
  .idx-pagination-links .pagination > li:first-child > a,
  .idx-pagination-links .pagination > li:first-child > span,
  .idx-pagination-links .pagination > li:last-child > a,
  .idx-pagination-links .pagination > li:last-child > span {
    font-size: 0;
    width: 38px;
    padding-left: 0;
    padding-right: 0;
  }
  .idx-pagination-links .pagination > li:first-child > a:before,
  .idx-pagination-links .pagination > li:first-child > span:before,
  .idx-pagination-links .pagination > li:last-child > a:before,
  .idx-pagination-links .pagination > li:last-child > span:before {
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    position: relative;
    top: 1px;
  }
  .idx-pagination-links .pagination > li:first-child > a:before,
  .idx-pagination-links .pagination > li:first-child > span:before {
    content: '\2039';
  }
  .idx-pagination-links .pagination > li:last-child > a:before,
  .idx-pagination-links .pagination > li:last-child > span:before {
    content: '\203A';
  }
  @media (max-width: 767px) {
    .idx-hero h1 {
      font-size: 24px;
    }
    .idx-filter .form-control {
      width: 100%;
      min-width: 0;
    }
  }

/* --- resources/views/wb_profit/reports_show.blade.php --- */
  .report-shell {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    margin-bottom: 30px;
  }
  .report-hero {
    background: linear-gradient(135deg, #f8fbff 0%, #f1f5ff 100%);
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    padding: 20px 22px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
    margin-bottom: 18px;
  }
  .report-hero h1 {
    margin: 0 0 8px;
    font-size: 28px;
    font-weight: 700;
  }
  .report-meta {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
  }
  .badge-soft {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7efff;
    color: #26427d;
    font-size: 12px;
    font-weight: 600;
    margin-right: 8px;
  }
  .metric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
  }
  .metric-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 3px 12px rgba(17, 24, 39, 0.05);
  }
  .metric-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #6b7280;
    margin-bottom: 4px;
  }
  .metric-value {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
  }
  .metric-sub {
    color: #6b7280;
    font-size: 12px;
    margin-top: 5px;
  }
  .panel-clean {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
    margin-bottom: 18px;
  }
  .panel-clean .panel-heading {
    border-bottom: 1px solid #eef1f5;
    background: #f9fafb;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    color: #111827;
  }
  .controls-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
  }
  .controls-bar .form-control {
    max-width: 320px;
  }
  .columns-box {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }
  .columns-panel {
    display: none;
    position: absolute;
    top: 34px;
    left: 0;
    z-index: 10;
    width: min(760px, 92vw);
    box-shadow: 0 10px 26px rgba(15, 23, 42, 0.18);
  }
  .columns-list {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
  }
  .columns-item {
    margin: 0;
    font-size: 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #334155;
  }
  .report-table-wrap {
    overflow: auto;
    border-top: 1px solid #eef1f5;
  }
  .report-table {
    margin-bottom: 0;
    min-width: 1100px;
  }
  .report-table > thead > tr > th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f8fafc;
    border-bottom: 2px solid #dbe2ea;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #4b5563;
  }
  .report-table > tbody > tr > td {
    vertical-align: middle;
  }
  .report-table > tbody > tr.row-missing-cost {
    background: #fff6f6;
  }
  .report-table > tbody > tr.row-risk {
    background: #fff9ec;
  }
  .report-table > tbody > tr.row-danger {
    background: #fff3f3;
  }
  .report-table > tbody > tr.row-hidden {
    display: none;
  }
  .inline-cost-input {
    min-width: 130px;
  }
  .api-op-cell {
    max-width: 260px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .profit-positive {
    color: #0f766e;
    font-weight: 600;
  }
  .profit-negative {
    color: #b91c1c;
    font-weight: 600;
  }
  .sticky-actions {
    position: sticky;
    bottom: 10px;
    z-index: 3;
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    padding: 12px;
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    background: rgba(248, 251, 255, 0.95);
    backdrop-filter: blur(2px);
  }
  .hint-muted {
    color: #6b7280;
    font-size: 12px;
  }
  .insight-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    margin-right: 6px;
  }
  .insight-badge.ok {
    background: #e7f8f3;
    color: #0f766e;
  }
  .insight-badge.warn {
    background: #fff4df;
    color: #b45309;
  }
  .insight-badge.danger {
    background: #ffe7e7;
    color: #b91c1c;
  }
  .trend-wrap {
    margin-bottom: 16px;
  }
  .trend-list {
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .trend-list li {
    margin-bottom: 8px;
  }
  .trend-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    font-size: 12px;
    color: #4b5563;
    margin-bottom: 4px;
  }
  .trend-meta {
    max-width: calc(100% - 110px);
  }
  .trend-main {
    font-weight: 600;
    color: #334155;
    line-height: 1.25;
  }
  .trend-sub {
    color: #6b7280;
    font-size: 11px;
    line-height: 1.2;
    margin-top: 2px;
  }
  .trend-bar {
    height: 8px;
    border-radius: 999px;
    background: #e9eff8;
    overflow: hidden;
  }
  .trend-bar-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, #2e6ab3, #5b8cc8);
  }
  .trend-bar-fill.neg {
    background: linear-gradient(90deg, #d25e5e, #ef8c8c);
  }
  @media (max-width: 767px) {
    .report-hero h1 {
      font-size: 24px;
    }
    .metric-value {
      font-size: 20px;
    }
    .controls-bar .form-control {
      max-width: 100%;
      width: 100%;
    }
  }

/* --- auth pages --- */
.auth-page {
    min-height: 100vh;
    background: linear-gradient(145deg, #f2f6ff 0%, #e8effb 100%);
}
.auth-switch-link {
    margin-top: 16px;
    text-align: center;
    color: #5f6b7a;
    font-size: 14px;
}
.auth-switch-link a {
    font-weight: 600;
}
.landing-page {
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.16), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.10), transparent 24%),
        linear-gradient(180deg, #f8faff 0%, #eef4ff 52%, #f6f9ff 100%);
    color: #183153;
}
.landing-page,
.landing-page body {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}
.landing-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(248, 250, 255, 0.88);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(99, 102, 241, 0.10);
}
.landing-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    min-height: 78px;
}
.landing-brand {
    display: inline-flex;
    align-items: center;
    color: #1e3a8a !important;
    font-size: 24px;
    font-weight: 800;
    text-decoration: none !important;
    letter-spacing: 0.02em;
}
.landing-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}
.landing-nav a,
.landing-footer-links a,
.landing-simple-back {
    color: #42526b;
    text-decoration: none !important;
    transition: color 0.2s ease, opacity 0.2s ease;
}
.landing-nav a:hover,
.landing-footer-links a:hover,
.landing-simple-back:hover {
    color: #4f46e5;
}
.landing-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}
.landing-page .btn {
    border-radius: 12px;
    font-weight: 700;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.landing-page .btn:hover,
.landing-page .btn:focus {
    transform: translateY(-1px);
}
.landing-page .btn-primary {
    background: linear-gradient(135deg, #5b5cf0 0%, #6d28d9 100%);
    border-color: #5b5cf0;
    box-shadow: 0 12px 24px rgba(91, 92, 240, 0.24);
}
.landing-page .btn-primary:hover,
.landing-page .btn-primary:focus {
    background: linear-gradient(135deg, #4f46e5 0%, #5b21b6 100%);
    border-color: #4f46e5;
    box-shadow: 0 14px 26px rgba(91, 92, 240, 0.28);
}
.landing-page .btn-default {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(99, 102, 241, 0.18);
    color: #243b53;
}
.landing-page .btn-default:hover,
.landing-page .btn-default:focus {
    background: #ffffff;
    border-color: rgba(99, 102, 241, 0.30);
    color: #1e3a8a;
}
.landing-reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
    will-change: opacity, transform;
}
.landing-reveal.is-visible {
    opacity: 1;
    transform: none;
}
.landing-reveal[data-reveal="fade-down"] {
    transform: translateY(-18px);
}
.landing-reveal[data-reveal="fade-left"] {
    transform: translateX(28px);
}
.landing-reveal[data-reveal="zoom-in"] {
    transform: scale(0.94);
}
.landing-animated-badge {
    animation: landingPulse 3.2s ease-in-out infinite;
}
.landing-hero-title {
    animation: landingTextFloat 5.2s ease-in-out infinite;
}
.landing-hero {
    padding: 72px 0 36px;
}
.landing-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
    gap: 34px;
    align-items: center;
}
.landing-badge {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(91, 92, 240, 0.10);
    color: #4f46e5;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.landing-hero h1 {
    margin: 0 0 16px;
    font-size: 52px;
    line-height: 1.12;
    font-weight: 800;
    color: #102a43;
    max-width: 780px;
}
.landing-lead {
    font-size: 18px;
    line-height: 1.65;
    color: #526277;
    max-width: 720px;
}
.landing-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 26px 0 28px;
}
.landing-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
    gap: 12px;
}
.landing-stat-card,
.landing-card,
.landing-step-card,
.landing-price-card,
.landing-warning-card,
.landing-showcase-card,
.landing-simple-card,
.landing-benefit-item,
.landing-audience-item {
    background: #fff;
    border: 1px solid rgba(148, 163, 184, 0.14);
    border-radius: 22px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.07);
}
.landing-stat-card {
    padding: 16px 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.landing-stat-card span {
    display: block;
    color: #7c8ba1;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.landing-stat-card strong {
    font-size: 24px;
    color: #17324f;
}
.landing-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 22px 34px rgba(15, 23, 42, 0.10);
    border-color: rgba(91, 92, 240, 0.18);
}
.landing-showcase-card {
    padding: 28px;
    background: linear-gradient(145deg, #1d3b72 0%, #2b5aa6 58%, #4f46e5 100%);
    color: #fff;
    min-height: 100%;
    animation: landingFloat 6s ease-in-out infinite;
}
.landing-showcase-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-weight: 700;
}
.landing-showcase-list {
    margin: 0;
    padding-left: 18px;
}
.landing-showcase-list li + li {
    margin-top: 10px;
}
.landing-section {
    padding: 44px 0;
}
.landing-section-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.58) 0%, rgba(245, 248, 255, 0.78) 100%);
}
.landing-section-title {
    max-width: 760px;
    margin: 0 auto 28px 0;
}
.landing-section-title h2,
.landing-warning-card h2,
.landing-simple-card h1 {
    margin: 0 0 10px;
    font-size: 36px;
    font-weight: 800;
    color: #102a43;
}
.landing-section-title p,
.landing-warning-card p,
.landing-card p,
.landing-step-card p,
.landing-price-desc,
.landing-simple-card p {
    color: #526277;
    line-height: 1.65;
}
.landing-problems-grid,
.landing-feature-grid,
.landing-benefits-grid,
.landing-steps-grid,
.landing-audience-grid,
.landing-pricing-grid,
.landing-footer-grid {
    display: grid;
    gap: 22px;
}
.landing-problems-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.landing-feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.landing-benefits-grid,
.landing-audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.landing-steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.landing-pricing-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
}
.landing-card,
.landing-step-card,
.landing-price-card,
.landing-benefit-item,
.landing-audience-item,
.landing-warning-card {
    padding: 24px;
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}
.landing-card h3,
.landing-step-card h3,
.landing-price-card h3,
.landing-footer h3 {
    margin: 0 0 10px;
    font-size: 20px;
    font-weight: 700;
    color: #102a43;
}
.landing-card,
.landing-step-card,
.landing-price-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}
.landing-card:hover,
.landing-step-card:hover,
.landing-price-card:hover,
.landing-benefit-item:hover,
.landing-audience-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 24px 44px rgba(15, 23, 42, 0.10);
    border-color: rgba(91, 92, 240, 0.18);
}
.landing-card-accent {
    background: linear-gradient(145deg, #1f4f8c 0%, #2563eb 100%);
    color: #fff;
}
.landing-card-accent h3,
.landing-card-accent p {
    color: #fff;
}
.landing-list {
    margin: 0;
    padding-left: 18px;
    color: #355070;
}
.landing-list li + li {
    margin-top: 8px;
}
.landing-benefit-item,
.landing-audience-item {
    font-weight: 600;
    color: #17324f;
    min-height: 100%;
    display: flex;
    align-items: center;
}
.landing-step-badge,
.landing-price-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 14px;
}
.landing-step-badge {
    background: #eef2ff;
    color: #4f46e5;
}
.landing-price-card {
    position: relative;
    overflow: hidden;
}
.landing-price-card.is-popular {
    border-color: rgba(91, 92, 240, 0.32);
    box-shadow: 0 22px 44px rgba(91, 92, 240, 0.18);
}
.landing-price-badge {
    background: linear-gradient(135deg, #5b5cf0 0%, #7c3aed 100%);
    color: #fff;
}
.landing-price-value {
    font-size: 32px;
    font-weight: 800;
    color: #102a43;
    margin-bottom: 4px;
}
.landing-price-period {
    color: #708199;
    margin-bottom: 14px;
}
.landing-price-card .landing-list {
    margin-bottom: 18px;
    flex: 1 1 auto;
}
.landing-price-card .btn {
    margin-top: auto;
}
.landing-price-card.is-popular::before {
    content: '';
    position: absolute;
    inset: -30% auto auto -20%;
    width: 180px;
    height: 180px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.14) 0%, rgba(99, 102, 241, 0) 72%);
    pointer-events: none;
}
.landing-warning-card {
    background: linear-gradient(145deg, #16325d 0%, #214b85 55%, #0f766e 100%);
}
.landing-warning-card h2,
.landing-warning-card p {
    color: #fff;
}
.landing-faq-list {
    display: grid;
    gap: 14px;
}
.landing-footer {
    padding: 42px 0 46px;
    border-top: 1px solid rgba(99, 102, 241, 0.10);
}
.landing-footer-grid {
    grid-template-columns: 1.3fr 0.8fr 0.9fr;
    align-items: start;
}
.landing-brand-footer {
    margin-bottom: 10px;
}
.landing-footer p {
    color: #526277;
    line-height: 1.7;
}
.landing-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}
.landing-footer-links li + li {
    margin-top: 8px;
}
.landing-simple-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.landing-simple-card {
    width: min(680px, 100%);
    padding: 28px;
}
.landing-simple-back {
    display: inline-block;
    margin-bottom: 18px;
    font-weight: 600;
}
@keyframes landingFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-8px);
    }
}
@keyframes landingPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(91, 92, 240, 0.15);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(91, 92, 240, 0);
    }
}
@keyframes landingTextFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .landing-reveal,
    .landing-animated-badge,
    .landing-hero-title,
    .landing-showcase-card,
    .landing-page .btn,
    .landing-stat-card,
    .landing-card,
    .landing-step-card,
    .landing-price-card,
    .landing-benefit-item,
    .landing-audience-item {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}
html {
    scroll-behavior: smooth;
}
@media (max-width: 1199px) {
    .landing-feature-grid,
    .landing-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .landing-steps-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 991px) {
    .landing-header-inner,
    .landing-nav,
    .landing-actions,
    .landing-cta {
        flex-wrap: wrap;
    }
    .landing-hero-grid,
    .landing-problems-grid,
    .landing-benefits-grid,
    .landing-audience-grid,
    .landing-footer-grid {
        grid-template-columns: 1fr;
    }
    .landing-hero h1 {
        font-size: 40px;
    }
}
@media (max-width: 767px) {
    .landing-header {
        position: static;
    }
    .landing-header-inner {
        padding-top: 14px;
        padding-bottom: 14px;
    }
    .landing-nav {
        gap: 12px;
        font-size: 13px;
    }
    .landing-brand {
        font-size: 22px;
    }
    .landing-actions {
        width: 100%;
    }
    .landing-actions .btn {
        flex: 1 1 180px;
    }
    .landing-hero {
        padding-top: 34px;
    }
    .landing-hero h1,
    .landing-section-title h2,
    .landing-warning-card h2,
    .landing-simple-card h1 {
        font-size: 28px;
    }
    .landing-lead {
        font-size: 16px;
    }
    .landing-feature-grid,
    .landing-steps-grid,
    .landing-pricing-grid {
        grid-template-columns: 1fr;
    }
    .landing-card,
    .landing-step-card,
    .landing-price-card,
    .landing-benefit-item,
    .landing-audience-item,
    .landing-warning-card,
    .landing-stat-card {
        border-radius: 18px;
    }
}
.auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.auth-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    box-shadow: 0 12px 28px rgba(31, 41, 55, 0.10);
    padding: 22px;
}
.auth-title {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
    color: #1f2937;
}
.auth-sub {
    margin-bottom: 16px;
    color: #4b5563;
}

/* --- dashboard --- */
.dash-shell {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    margin-bottom: 24px;
}
.dash-toolbar {
    margin-bottom: 14px;
}
.cab-hero {
    background: linear-gradient(130deg, #143462 0%, #23589e 55%, #3a73b8 100%);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 16px;
    color: #f8fbff;
    box-shadow: 0 12px 26px rgba(17, 24, 39, 0.18);
}
.cab-hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 0.01em;
}
.cab-hero p {
    margin: 0;
    color: rgba(248, 251, 255, 0.86);
}
.cab-hero-badges {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cab-badge {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.26);
    font-size: 12px;
    font-weight: 600;
}
.cab-filter-form .cab-filter-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #334155;
}
.cab-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.cab-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.cab-kpi-card {
    color: #fff;
    border-radius: 12px;
    padding: 14px;
    box-shadow: 0 8px 20px rgba(17, 24, 39, 0.12);
}
.cab-kpi-label {
    color: rgba(255, 255, 255, 0.86);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 4px;
}
.cab-kpi-value {
    font-size: 22px;
    font-weight: 800;
}
.kpi-blue {
    background: linear-gradient(145deg, #1c4d8f 0%, #3b82d0 100%);
}
.kpi-emerald {
    background: linear-gradient(145deg, #0f766e 0%, #10b981 100%);
}
.kpi-amber {
    background: linear-gradient(145deg, #b45309 0%, #f59e0b 100%);
}
.kpi-slate {
    background: linear-gradient(145deg, #334155 0%, #64748b 100%);
}
.cab-finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.cab-finance-card {
    background: linear-gradient(145deg, #f8fbff 0%, #eef4ff 100%);
    border: 1px solid #dbe5f3;
    border-radius: 12px;
    padding: 14px;
}
.cab-finance-head {
    color: #475569;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.cab-finance-main {
    margin-top: 6px;
    font-size: 26px;
    font-weight: 800;
    color: #0f2f57;
}
.cab-finance-sub {
    margin-top: 6px;
    color: #64748b;
    font-size: 12px;
}

.wb-user-text {
    color: rgba(255, 255, 255, 0.85) !important;
    margin-right: 8px;
}
.wb-logout-btn {
    border: 0;
    border-radius: 999px;
    padding: 4px 10px;
    font-weight: 600;
}

@media (max-width: 767px) {
    .cab-hero h1,
    .auth-title {
        font-size: 24px;
    }
    .wb-logout-btn {
        margin: 0 0 8px 10px;
    }
}

/* --- dashboard charts --- */
.dash-multi-select {
    min-height: 150px;
}
.dash-chart-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.dash-chart-grid .panel-body {
    height: 320px;
}
@media (max-width: 767px) {
    .dash-chart-grid .panel-body {
        height: 260px;
    }
}

/* --- hints/tooltips --- */
.wb-tooltip-hint {
    display: inline-block;
    cursor: help;
    border-bottom: 1px dotted #8fa2bf;
    color: #1d4f8c;
    font-weight: 700;
    line-height: 1;
}

.tooltip.in {
    opacity: 1;
}

.tooltip-inner {
    max-width: 320px;
    white-space: normal;
    word-break: break-word;
    text-align: left;
}

@media (max-width: 360px) {
    .tooltip-inner {
        max-width: calc(100vw - 24px);
    }
}

/* --- profile page --- */
.profile-shell {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    margin-bottom: 24px;
}
.profile-hero {
    background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
    border: 1px solid #dbe5f3;
    border-radius: 18px;
    padding: 20px 22px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}
.profile-hero h1 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
}
.profile-hero p {
    margin: 0;
    color: #4b5563;
    font-size: 14px;
}
.profile-hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}
.profile-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 999px;
    background: #e7efff;
    color: #26427d;
    font-size: 12px;
    font-weight: 600;
}
.profile-panel {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(17, 24, 39, 0.05);
    margin-bottom: 16px;
}
.profile-section-title {
    margin: 8px 0 10px;
    font-size: 18px;
    font-weight: 700;
    color: #173b69;
}
.profile-overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}
.profile-stat-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(17, 24, 39, 0.04);
}
.profile-stat-card.compact {
    padding: 12px 14px;
}
.profile-stat-label {
    color: #6b7280;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 6px;
}
.profile-stat-value {
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}
.profile-quick-periods {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.profile-quick-periods .btn.active {
    background: #1d4f8c;
    color: #fff;
    border-color: #1d4f8c;
}
.profile-finance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}
.profile-finance-item {
    padding: 12px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}
.profile-finance-item span {
    display: block;
    color: #6b7280;
    font-size: 12px;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.profile-finance-item strong {
    font-size: 20px;
    font-weight: 700;
}
.profile-list-body {
    padding: 0;
}
.profile-partner-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
@media (max-width: 767px) {
    .profile-hero h1 {
        font-size: 24px;
    }
    .profile-stat-value {
        font-size: 22px;
    }
    .profile-partner-head {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* --- partner profit page --- */
.partner-shell {
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    color: #1f2937;
    margin-bottom: 24px;
}
.partner-hero {
    background: linear-gradient(145deg, #f8fbff 0%, #eff6ff 100%);
    border: 1px solid #dbe5f3;
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 16px;
    box-shadow: 0 8px 24px rgba(31, 41, 55, 0.06);
}
.partner-hero h1 {
    margin: 0 0 6px;
    font-size: 28px;
    font-weight: 700;
}
.partner-sub {
    color: #4b5563;
    font-size: 14px;
}
.partner-period {
    padding: 10px 0;
    border-bottom: 1px solid #eef1f5;
}
.partner-period:last-child {
    border-bottom: 0;
}
.partner-period-head {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: baseline;
    margin-bottom: 8px;
}
