@font-face {
    font-family: 'SeekMake Poppins';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('../fonts/poppins/poppins-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'SeekMake Poppins';
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url('../fonts/poppins/poppins-latin-500-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'SeekMake Poppins';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('../fonts/poppins/poppins-latin-600-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'SeekMake Poppins';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('../fonts/poppins/poppins-latin-700-normal.woff2') format('woff2');
}

.seekmake-insights {
    --smi-main: #1a6fee;
    --smi-main-hover: #0d5cd3;
    --smi-main-soft: #ebf2fd;
    --smi-main-line: #d1e0fa;
    --smi-title: #0e1c36;
    --smi-text: #333333;
    --smi-muted: #6b7280;
    --smi-subtle: #9aa3b2;
    --smi-border: #e5e7eb;
    --smi-surface: #ffffff;
    --smi-track: #f1f4f9;
    --smi-success: #00a33e;
    --smi-success-soft: #e6f6ec;
    --smi-warning: #b47500;
    --smi-warning-soft: #fff4dc;
    --smi-radius: 12px;
    max-width: 1280px;
    margin: 20px 20px 0 0;
    color: var(--smi-text);
    font-family: 'SeekMake Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 13px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

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

.seekmake-insights svg {
    display: block;
    flex-shrink: 0;
}

.seekmake-insights .wp-header-end {
    margin: 0;
    visibility: hidden;
}

.smi-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.seekmake-insights .smi-title {
    margin: 0;
    padding: 0;
    color: var(--smi-title);
    font-size: 24px;
    font-weight: 600;
    line-height: 1.3;
}

.smi-subtitle {
    margin: 2px 0 0;
    color: var(--smi-muted);
    font-size: 13px;
}

.smi-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.smi-segmented {
    display: inline-flex;
    padding: 3px;
    border: 1px solid var(--smi-border);
    border-radius: 10px;
    background: var(--smi-surface);
}

.smi-segment {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 7px;
    color: var(--smi-muted);
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.smi-segment:hover,
.smi-segment:focus {
    color: var(--smi-title);
    box-shadow: none;
}

.smi-segment.is-active {
    background: var(--smi-main);
    color: #fff;
}

.smi-icon-btn,
.smi-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.smi-icon-btn {
    width: 36px;
    border: 1px solid var(--smi-border);
    background: var(--smi-surface);
    color: var(--smi-main);
}

.smi-icon-btn:hover,
.smi-icon-btn:focus {
    border-color: var(--smi-main-line);
    background: var(--smi-main-soft);
    color: var(--smi-main);
}

.smi-btn {
    gap: 8px;
    padding: 0 16px;
    border: 1px solid transparent;
}

.smi-btn-primary {
    background: var(--smi-main);
    color: #fff;
}

.smi-btn-primary:hover,
.smi-btn-primary:focus {
    background: var(--smi-main-hover);
    color: #fff;
}

.smi-btn-outline {
    border-color: var(--smi-border);
    background: var(--smi-surface);
    color: var(--smi-title);
}

.smi-btn-outline:hover,
.smi-btn-outline:focus {
    border-color: var(--smi-main-line);
    background: var(--smi-main-soft);
    color: var(--smi-main);
}

.seekmake-insights a:focus-visible {
    outline: 2px solid var(--smi-main);
    outline-offset: 2px;
    box-shadow: none;
}

.smi-card {
    border: 1px solid var(--smi-border);
    border-radius: var(--smi-radius);
    background: var(--smi-surface);
}

.smi-kpis {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

.smi-kpi {
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.smi-kpi-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.smi-icon-tile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid #c9dcfb;
    border-radius: 10px;
    background: #e8f1fd;
    color: var(--smi-main);
}

.smi-icon-tile-lg {
    width: 52px;
    height: 52px;
    border-radius: 14px;
}

.smi-kpi-label {
    color: var(--smi-muted);
    font-size: 12px;
    font-weight: 500;
}

.smi-kpi-value {
    color: var(--smi-title);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.smi-money {
    display: block;
    white-space: nowrap;
}

.smi-money + .smi-money {
    margin-top: 2px;
    font-size: 18px;
}

.smi-kpi-foot {
    margin-top: auto;
    padding-top: 8px;
    color: var(--smi-muted);
    font-size: 12px;
}

.smi-kpi-foot.is-warning {
    color: var(--smi-warning);
    font-weight: 500;
}

.smi-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 20px;
}

.smi-col-8 {
    grid-column: span 8;
}

.smi-col-4 {
    grid-column: span 4;
}

.smi-panel {
    min-width: 0;
    padding: 20px;
}

.smi-panel-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.seekmake-insights .smi-panel-title {
    margin: 0;
    padding: 0;
    color: var(--smi-title);
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.smi-panel-sub {
    margin: 2px 0 0;
    color: var(--smi-muted);
    font-size: 12px;
}

.smi-legend {
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.smi-legend li {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--smi-muted);
    font-size: 12px;
}

.smi-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
}

.smi-swatch.is-quotes {
    background: var(--smi-main-line);
}

.smi-swatch.is-orders {
    background: var(--smi-main);
}

.smi-chart {
    width: 100%;
    height: 230px;
    overflow: visible;
}

.smi-gridline {
    stroke: #eef1f5;
    stroke-width: 1;
    stroke-dasharray: 3 4;
}

.smi-gridline.is-base {
    stroke: var(--smi-border);
    stroke-dasharray: none;
}

.smi-axis {
    fill: var(--smi-subtle);
    font-family: 'SeekMake Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 10px;
}

.smi-bar-hover {
    fill: transparent;
}

.smi-bar:hover .smi-bar-hover {
    fill: #f6f9fe;
}

.smi-bar-quotes {
    fill: var(--smi-main-line);
}

.smi-bar-orders {
    fill: var(--smi-main);
}

.smi-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 230px;
    border: 1px dashed var(--smi-border);
    border-radius: 10px;
    text-align: center;
}

.smi-empty p {
    margin: 0;
    color: var(--smi-muted);
}

.smi-empty-sm {
    min-height: 120px;
}

.smi-steps,
.smi-ranking {
    margin: 0;
    padding: 0;
    list-style: none;
}

.smi-step,
.smi-ranking li {
    margin: 0 0 18px;
}

.smi-step:last-child,
.smi-ranking li:last-child {
    margin-bottom: 0;
}

.smi-step-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}

.smi-step-label,
.smi-ranking-name {
    min-width: 0;
    overflow: hidden;
    color: var(--smi-text);
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.smi-step-value {
    color: var(--smi-title);
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
}

.smi-step-value small {
    margin-left: 8px;
    color: var(--smi-muted);
    font-size: 12px;
    font-weight: 500;
}

.smi-ranking-value {
    color: var(--smi-muted);
    font-weight: 500;
}

.smi-meter {
    height: 6px;
    overflow: hidden;
    border-radius: 99px;
    background: var(--smi-track);
}

.smi-meter span {
    display: block;
    height: 100%;
    border-radius: 99px;
    background: var(--smi-main);
}

.smi-step.is-requests .smi-meter span {
    background: var(--smi-main-line);
}

.smi-step.is-paid .smi-meter span {
    background: var(--smi-success);
}

.smi-text-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: var(--smi-main);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.smi-text-link:hover,
.smi-text-link:focus {
    color: var(--smi-main-hover);
    box-shadow: none;
}

.smi-panel-table {
    padding-bottom: 8px;
}

.smi-table-scroll {
    margin: 0 -20px;
    overflow-x: auto;
}

.smi-table {
    width: 100%;
    border-collapse: collapse;
}

.smi-table th {
    padding: 10px 20px;
    border-top: 1px solid var(--smi-border);
    border-bottom: 1px solid var(--smi-border);
    background: #f9fafb;
    color: var(--smi-muted);
    font-size: 12px;
    font-weight: 500;
    text-align: left;
    white-space: nowrap;
}

.smi-table td {
    padding: 12px 20px;
    border-bottom: 1px solid #f1f3f6;
    color: var(--smi-text);
    vertical-align: middle;
    white-space: nowrap;
}

.smi-table tbody tr:last-child td {
    border-bottom: 0;
}

.smi-table tbody tr:hover td {
    background: #fafbfd;
}

.smi-num {
    text-align: right !important;
}

.smi-ref {
    display: block;
    color: var(--smi-title);
    font-weight: 600;
}

.smi-ref-sub {
    display: block;
    color: var(--smi-subtle);
    font-size: 11px;
}

.smi-amount {
    color: var(--smi-title);
    font-weight: 600;
}

.smi-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

.smi-type::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--smi-main-line);
}

.smi-type.is-order::before {
    background: var(--smi-main);
}

.smi-badge {
    display: inline-flex;
    align-items: center;
    height: 24px;
    padding: 0 10px;
    border-radius: 6px;
    background: var(--smi-track);
    color: var(--smi-muted);
    font-size: 12px;
    font-weight: 500;
}

.smi-badge.is-success {
    background: var(--smi-success-soft);
    color: var(--smi-success);
}

.smi-badge.is-warning {
    background: var(--smi-warning-soft);
    color: var(--smi-warning);
}

.smi-muted {
    color: var(--smi-muted);
}

.smi-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 56px 24px;
    text-align: center;
}

.seekmake-insights .smi-state-title {
    margin: 16px 0 6px;
    padding: 0;
    color: var(--smi-title);
    font-size: 18px;
    font-weight: 600;
}

.smi-state-text {
    max-width: 420px;
    margin: 0 0 20px;
    color: var(--smi-muted);
}

.smi-footnote {
    margin: 16px 0 0;
    color: var(--smi-subtle);
    font-size: 12px;
}

@media (max-width: 1280px) {
    .smi-kpis {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .smi-col-8,
    .smi-col-4 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 782px) {
    .seekmake-insights {
        margin-right: 10px;
    }

    .smi-kpis {
        grid-template-columns: minmax(0, 1fr);
    }
}
