:root {
    --yawa-ink: #102a35;
    --yawa-muted: #6b7f89;
    --yawa-petrol-950: #061c25;
    --yawa-petrol-900: #082934;
    --yawa-petrol-800: #0c3b49;
    --yawa-cyan-600: #089bb5;
    --yawa-cyan-500: #14b8d4;
    --yawa-cyan-100: #dff8fc;
    --yawa-surface: #ffffff;
    --yawa-surface-soft: #f5f9fa;
    --yawa-border: #dfe9ec;
    --yawa-border-strong: #cadadd;
    --yawa-shadow: 0 12px 32px rgb(20 61 73 / 0.07);
    --yawa-shadow-hover: 0 18px 44px rgb(20 61 73 / 0.12);
    --yawa-radius-lg: 20px;
    --yawa-radius-md: 15px;
    --yawa-radius-sm: 11px;
}

.fi-body {
    background:
        radial-gradient(circle at 12% -5%, rgb(20 184 212 / 0.08), transparent 28rem),
        linear-gradient(180deg, #f8fbfc 0%, #f2f7f8 100%);
    color: var(--yawa-ink);
}

.dark .fi-body {
    --yawa-ink: #e7f2f4;
    --yawa-muted: #91a8b0;
    --yawa-surface: #0d252e;
    --yawa-surface-soft: #102d37;
    --yawa-border: rgb(163 207 217 / 0.12);
    --yawa-border-strong: rgb(163 207 217 / 0.22);
    --yawa-shadow: 0 14px 36px rgb(0 0 0 / 0.22);
    --yawa-shadow-hover: 0 20px 50px rgb(0 0 0 / 0.3);
    background:
        radial-gradient(circle at 18% -10%, rgb(20 184 212 / 0.13), transparent 30rem),
        linear-gradient(180deg, #061820 0%, #081e27 100%);
}

.fi-main {
    width: 100%;
    padding-top: 1.25rem;
}

.fi-main-ctn {
    width: 100%;
}

.fi-sidebar {
    background:
        radial-gradient(circle at 22% 0%, rgb(20 184 212 / 0.13), transparent 18rem),
        linear-gradient(180deg, var(--yawa-petrol-950), var(--yawa-petrol-900));
    border-inline-end: 1px solid rgb(255 255 255 / 0.07);
}

.fi-sidebar-header {
    background: rgb(5 27 36 / 0.72);
    border-bottom: 1px solid rgb(255 255 255 / 0.07);
    backdrop-filter: blur(14px);
}

.fi-sidebar .fi-logo {
    color: #f4fcfd;
    font-weight: 800;
    letter-spacing: -0.035em;
}

.fi-sidebar-group-label {
    color: rgb(216 239 243 / 0.52);
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.fi-sidebar-item-button {
    min-height: 2.55rem;
    margin-inline: 0.45rem;
    border-radius: 0.75rem;
    color: rgb(232 247 249 / 0.76);
    transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.fi-sidebar-item-button:hover {
    background: rgb(255 255 255 / 0.08);
    color: #ffffff;
    transform: translateX(2px);
}

.fi-sidebar-item-active > .fi-sidebar-item-button {
    background: linear-gradient(135deg, rgb(20 184 212 / 0.22), rgb(255 255 255 / 0.08));
    box-shadow: inset 2px 0 0 var(--yawa-cyan-500);
    color: #ffffff;
}

.fi-sidebar-item-icon,
.fi-sidebar-item-label {
    color: inherit;
}

.fi-sidebar-item .fi-badge {
    border: 1px solid rgb(255 255 255 / 0.1);
    background: rgb(255 255 255 / 0.09);
    color: #dff8fc;
}

.fi-topbar {
    background: rgb(248 251 252 / 0.86);
    border-bottom: 1px solid rgb(16 42 53 / 0.07);
    backdrop-filter: blur(18px);
}

.dark .fi-topbar {
    background: rgb(6 24 32 / 0.82);
    border-bottom-color: rgb(255 255 255 / 0.07);
}

.fi-section,
.fi-ta-ctn,
.fi-fo-component-ctn,
.fi-modal-window {
    border: 1px solid var(--yawa-border);
    border-radius: var(--yawa-radius-md);
    box-shadow: 0 6px 20px rgb(20 61 73 / 0.045);
}

.dark .fi-section,
.dark .fi-ta-ctn,
.dark .fi-fo-component-ctn,
.dark .fi-modal-window {
    background: var(--yawa-surface);
}

.fi-btn {
    border-radius: 0.7rem;
    font-weight: 700;
}

.fi-input-wrp {
    border-radius: 0.7rem;
}

.fi-ta-table-ctn {
    overflow-x: auto;
}

.fi-ta-table {
    min-width: 720px;
}

.fi-wi-widget.yawa-command-widget {
    overflow: visible;
}

.fi-wi-widget.yawa-command-widget > .fi-section,
.fi-wi-widget.yawa-command-widget > .fi-section > .fi-section-content-ctn,
.fi-wi-widget.yawa-command-widget > .fi-section > .fi-section-content-ctn > .fi-section-content {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.yawa-command-center {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    width: 100%;
    min-width: 0;
    animation: yawa-enter 360ms ease-out both;
}

@keyframes yawa-enter {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.yawa-command-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    min-width: 0;
    padding: 1.2rem 1.3rem;
    border: 1px solid var(--yawa-border);
    border-radius: var(--yawa-radius-lg);
    background:
        radial-gradient(circle at 0% 0%, rgb(20 184 212 / 0.08), transparent 22rem),
        var(--yawa-surface);
    box-shadow: var(--yawa-shadow);
}

.yawa-command-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
}

.yawa-command-mark {
    display: grid;
    flex: 0 0 auto;
    width: 3.25rem;
    height: 3.25rem;
    place-items: center;
    border: 1px solid rgb(20 184 212 / 0.22);
    border-radius: 1rem;
    background: linear-gradient(145deg, #0c8199, #0b5367);
    box-shadow: 0 10px 24px rgb(8 155 181 / 0.2);
    color: white;
}

.yawa-command-mark svg {
    width: 1.55rem;
    height: 1.55rem;
}

.yawa-overline {
    margin: 0;
    color: var(--yawa-cyan-600);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.105em;
    line-height: 1.2;
    text-transform: uppercase;
}

.yawa-command-brand h1 {
    margin: 0.28rem 0 0;
    overflow: hidden;
    color: var(--yawa-ink);
    font-size: clamp(1.45rem, 2.2vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-command-date {
    margin: 0.42rem 0 0;
    color: var(--yawa-muted);
    font-size: 0.82rem;
}

.yawa-command-statuses {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
    min-width: 0;
}

.yawa-status-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.62rem 0.72rem;
    border: 1px solid var(--yawa-border);
    border-radius: 0.85rem;
    background: var(--yawa-surface-soft);
}

.yawa-status-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.65rem;
    background: rgb(8 155 181 / 0.1);
    color: var(--yawa-cyan-600);
}

.yawa-status-icon svg {
    width: 1.05rem;
    height: 1.05rem;
}

.yawa-status-card > span:last-child {
    display: grid;
    min-width: 0;
}

.yawa-status-card small,
.yawa-status-card em {
    color: var(--yawa-muted);
    font-size: 0.65rem;
    font-style: normal;
    line-height: 1.2;
}

.yawa-status-card strong {
    max-width: 10rem;
    overflow: hidden;
    color: var(--yawa-ink);
    font-size: 0.76rem;
    font-weight: 750;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-icon-button,
.yawa-user-chip {
    position: relative;
    display: grid;
    flex: 0 0 auto;
    width: 2.65rem;
    height: 2.65rem;
    place-items: center;
    border: 1px solid var(--yawa-border);
    border-radius: 0.85rem;
    background: var(--yawa-surface);
    color: var(--yawa-ink);
}

.yawa-icon-button {
    transition: border-color 160ms ease, transform 160ms ease;
}

.yawa-icon-button:hover {
    border-color: var(--yawa-border-strong);
    transform: translateY(-1px);
}

.yawa-icon-button svg {
    width: 1.15rem;
    height: 1.15rem;
}

.yawa-icon-button span {
    position: absolute;
    top: -0.28rem;
    right: -0.28rem;
    display: grid;
    min-width: 1.1rem;
    height: 1.1rem;
    padding-inline: 0.22rem;
    place-items: center;
    border: 2px solid var(--yawa-surface);
    border-radius: 999px;
    background: #e85d5d;
    color: white;
    font-size: 0.58rem;
    font-weight: 800;
}

.yawa-user-chip {
    border-color: rgb(20 184 212 / 0.22);
    background: linear-gradient(145deg, #e6fafc, #cceff4);
    color: #0a6578;
    font-size: 0.72rem;
    font-weight: 850;
}

.dark .yawa-user-chip {
    background: rgb(20 184 212 / 0.12);
    color: #8eeaf5;
}

.yawa-quick-actions {
    display: flex;
    gap: 0.65rem;
    overflow-x: auto;
    padding: 0.1rem 0.05rem 0.3rem;
    scrollbar-width: thin;
}

.yawa-quick-action {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.48rem;
    min-height: 2.55rem;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--yawa-border);
    border-radius: 0.78rem;
    background: var(--yawa-surface);
    box-shadow: 0 4px 14px rgb(20 61 73 / 0.035);
    color: var(--yawa-ink);
    font-size: 0.76rem;
    font-weight: 720;
    white-space: nowrap;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.yawa-quick-action:hover {
    border-color: rgb(8 155 181 / 0.38);
    box-shadow: 0 8px 20px rgb(8 155 181 / 0.09);
    transform: translateY(-1px);
}

.yawa-quick-action.is-primary {
    border-color: #0a7187;
    background: linear-gradient(145deg, #0d849b, #0b6578);
    color: white;
}

.yawa-quick-action svg {
    width: 1rem;
    height: 1rem;
}

.yawa-kpi-grid {
    display: grid;
    order: 20;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.yawa-kpi-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 12.3rem;
    overflow: hidden;
    padding: 1rem;
    border: 1px solid var(--yawa-border);
    border-radius: var(--yawa-radius-md);
    background: var(--yawa-surface);
    box-shadow: var(--yawa-shadow);
    color: inherit;
    transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.yawa-kpi-card::after {
    position: absolute;
    right: -2.8rem;
    bottom: -3.2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 999px;
    background: currentColor;
    content: '';
    opacity: 0.045;
    pointer-events: none;
}

.yawa-kpi-card:hover {
    border-color: var(--yawa-border-strong);
    box-shadow: var(--yawa-shadow-hover);
    transform: translateY(-2px);
}

.yawa-kpi-topline,
.yawa-kpi-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.yawa-kpi-icon {
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    place-items: center;
    border-radius: 0.75rem;
    background: currentColor;
    color: inherit;
}

.yawa-kpi-icon::before {
    position: absolute;
}

.yawa-kpi-icon svg {
    width: 1.18rem;
    height: 1.18rem;
    color: white;
}

.yawa-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    max-width: 9.5rem;
    padding: 0.28rem 0.46rem;
    border-radius: 999px;
    background: rgb(35 153 104 / 0.09);
    color: #237e5d;
    font-size: 0.64rem;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

.yawa-trend.is-negative {
    background: rgb(218 89 78 / 0.1);
    color: #c34d45;
}

.yawa-trend svg {
    width: 0.85rem;
    height: 0.85rem;
}

.yawa-kpi-copy {
    min-width: 0;
    margin-top: 1.05rem;
}

.yawa-kpi-label {
    margin: 0;
    color: var(--yawa-muted);
    font-size: 0.69rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.yawa-kpi-value {
    display: block;
    margin-top: 0.28rem;
    overflow-wrap: anywhere;
    color: var(--yawa-ink);
    font-size: clamp(1.55rem, 2.4vw, 2.05rem);
    font-weight: 820;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

.yawa-kpi-description {
    margin: 0.48rem 0 0;
    overflow-wrap: anywhere;
    color: var(--yawa-muted);
    font-size: 0.72rem;
    line-height: 1.4;
}

.yawa-kpi-footer {
    min-width: 0;
    margin-top: auto;
    padding-top: 0.85rem;
}

.yawa-kpi-footer > span {
    min-width: 0;
    overflow: hidden;
    color: var(--yawa-muted);
    font-size: 0.64rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-sparkline {
    flex: 0 0 5rem;
    width: 5rem;
    height: 1.75rem;
    overflow: visible;
}

.yawa-sparkline polyline {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.2;
    vector-effect: non-scaling-stroke;
}

.yawa-operational-grid {
    display: grid;
    order: 30;
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.85fr);
    gap: 0.9rem;
}

.yawa-panel {
    min-width: 0;
    padding: 1.05rem;
    border: 1px solid var(--yawa-border);
    border-radius: var(--yawa-radius-md);
    background: var(--yawa-surface);
    box-shadow: var(--yawa-shadow);
}

.yawa-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
}

.yawa-panel-heading h2,
.yawa-analytics-title h2 {
    margin: 0.28rem 0 0;
    color: var(--yawa-ink);
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.yawa-panel-counter,
.yawa-live-indicator {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.55rem;
    border-radius: 999px;
    background: var(--yawa-surface-soft);
    color: var(--yawa-muted);
    font-size: 0.64rem;
    font-weight: 720;
    white-space: nowrap;
}

.yawa-panel-counter.is-alert {
    background: rgb(230 168 48 / 0.11);
    color: #a66a11;
}

.yawa-pipeline {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 1.15rem;
}

.yawa-pipeline-stage {
    position: relative;
    display: grid;
    min-width: 0;
    padding: 0.8rem;
    border: 1px solid var(--yawa-border);
    border-radius: 0.8rem;
    background: var(--yawa-surface-soft);
    color: inherit;
    transition: border-color 160ms ease, transform 160ms ease;
}

.yawa-pipeline-stage:hover {
    border-color: var(--yawa-border-strong);
    transform: translateY(-1px);
}

.yawa-pipeline-icon {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.65rem;
    background: currentColor;
}

.yawa-pipeline-icon svg {
    width: 1rem;
    height: 1rem;
    color: white;
}

.yawa-pipeline-copy {
    display: grid;
    margin-top: 0.7rem;
}

.yawa-pipeline-copy small {
    overflow: hidden;
    color: var(--yawa-muted);
    font-size: 0.65rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-pipeline-copy strong {
    margin-top: 0.15rem;
    color: var(--yawa-ink);
    font-size: 1.55rem;
    font-weight: 820;
    letter-spacing: -0.045em;
}

.yawa-pipeline-progress {
    height: 0.22rem;
    margin-top: 0.6rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--yawa-border);
}

.yawa-pipeline-progress i {
    display: block;
    height: 100%;
    min-width: 0.15rem;
    border-radius: inherit;
    background: currentColor;
}

.yawa-pipeline-connector {
    position: absolute;
    top: 50%;
    right: -0.69rem;
    z-index: 2;
    display: grid;
    width: 1rem;
    height: 1rem;
    place-items: center;
    border-radius: 999px;
    background: var(--yawa-surface);
    color: var(--yawa-muted);
    transform: translateY(-50%);
}

.yawa-pipeline-connector svg {
    width: 0.7rem;
    height: 0.7rem;
}

.yawa-alert-list {
    display: grid;
    gap: 0.48rem;
    margin-top: 1rem;
}

.yawa-alert-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.62rem;
    border: 1px solid var(--yawa-border);
    border-radius: 0.75rem;
    background: var(--yawa-surface-soft);
}

.yawa-alert-icon,
.yawa-activity-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    place-items: center;
    border-radius: 0.65rem;
    background: currentColor;
}

.yawa-alert-icon svg,
.yawa-activity-icon svg {
    width: 1rem;
    height: 1rem;
    color: white;
}

.yawa-alert-copy {
    min-width: 0;
}

.yawa-alert-heading {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.yawa-alert-heading h3 {
    margin: 0;
    overflow: hidden;
    color: var(--yawa-ink);
    font-size: 0.73rem;
    font-weight: 770;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-priority {
    flex: 0 0 auto;
    padding: 0.18rem 0.34rem;
    border-radius: 999px;
    background: currentColor;
    color: white;
    font-size: 0.52rem;
    font-weight: 800;
    line-height: 1;
}

.yawa-alert-copy p {
    margin: 0.2rem 0 0;
    overflow: hidden;
    color: var(--yawa-muted);
    font-size: 0.62rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-inline-action,
.yawa-text-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--yawa-cyan-600);
    font-size: 0.63rem;
    font-weight: 750;
    white-space: nowrap;
}

.yawa-inline-action svg {
    width: 0.76rem;
    height: 0.76rem;
}

.yawa-analytics-title {
    display: flex;
    order: 40;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.35rem 0.2rem 0;
}

.yawa-analytics-title h2 {
    font-size: 1.3rem;
}

.yawa-analytics-title > span {
    color: var(--yawa-muted);
    font-size: 0.66rem;
}

.yawa-analytics-grid {
    display: grid;
    order: 50;
    grid-template-columns: minmax(0, 1.35fr) minmax(20rem, 0.85fr);
    gap: 0.9rem;
}

.yawa-income-panel,
.yawa-collections-panel {
    min-height: 25rem;
}

.yawa-chart-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    color: var(--yawa-muted);
    font-size: 0.62rem;
}

.yawa-chart-legend span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.yawa-chart-legend i {
    width: 0.48rem;
    height: 0.48rem;
    border-radius: 999px;
}

.yawa-chart-legend .is-income {
    background: #0ba8c0;
}

.yawa-chart-legend .is-expense {
    background: #e08b55;
}

.yawa-chart-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.yawa-chart-summary > div,
.yawa-collection-metrics > div {
    display: grid;
    min-width: 0;
    padding: 0.72rem;
    border: 1px solid var(--yawa-border);
    border-radius: 0.72rem;
    background: var(--yawa-surface-soft);
}

.yawa-chart-summary small,
.yawa-collection-metrics small,
.yawa-collection-progress span,
.yawa-collection-progress small {
    color: var(--yawa-muted);
    font-size: 0.62rem;
}

.yawa-chart-summary strong,
.yawa-collection-metrics strong,
.yawa-collection-progress strong {
    margin-top: 0.18rem;
    overflow-wrap: anywhere;
    color: var(--yawa-ink);
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: -0.025em;
}

.yawa-chart-summary .is-positive strong {
    color: #288966;
}

.yawa-chart-summary .is-negative strong {
    color: #c34d45;
}

.yawa-line-chart {
    position: relative;
    height: 13.5rem;
    margin-top: 1rem;
    padding-bottom: 1.2rem;
}

.yawa-line-chart svg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.yawa-line-chart polyline {
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
    vector-effect: non-scaling-stroke;
}

.yawa-line-income {
    stroke: #0ba8c0;
}

.yawa-line-expense {
    stroke: #e08b55;
}

.yawa-chart-grid {
    position: absolute;
    inset: 0 0 1.2rem;
    border-bottom: 1px solid var(--yawa-border);
    background-image: linear-gradient(to bottom, var(--yawa-border) 1px, transparent 1px);
    background-size: 100% 25%;
    opacity: 0.72;
}

.yawa-chart-axis {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    justify-content: space-between;
    color: var(--yawa-muted);
    font-size: 0.56rem;
}

.yawa-collection-progress {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
    padding: 0.78rem;
    border: 1px solid rgb(20 184 212 / 0.15);
    border-radius: 0.78rem;
    background: rgb(20 184 212 / 0.055);
}

.yawa-collection-progress > div:first-child {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
}

.yawa-progress-track,
.yawa-zone-track {
    height: 0.34rem;
    overflow: hidden;
    border-radius: 999px;
    background: var(--yawa-border);
}

.yawa-progress-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #0ba8c0, #2cc7b7);
}

.yawa-collection-metrics {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.yawa-collection-metrics span {
    margin-top: 0.18rem;
    color: var(--yawa-muted);
    font-size: 0.58rem;
}

.yawa-collection-list,
.yawa-zone-list,
.yawa-activity-list {
    display: grid;
    gap: 0.42rem;
    margin-top: 0.8rem;
}

.yawa-collection-item,
.yawa-activity-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.58rem;
    min-width: 0;
    padding: 0.52rem 0.1rem;
    border-bottom: 1px solid var(--yawa-border);
    color: inherit;
}

.yawa-collection-item:last-child,
.yawa-activity-item:last-child {
    border-bottom: 0;
}

.yawa-person-dot {
    display: grid;
    width: 1.85rem;
    height: 1.85rem;
    place-items: center;
    border-radius: 0.62rem;
    background: currentColor;
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
}

.yawa-collection-item > span:nth-child(2),
.yawa-activity-item > span:nth-child(2) {
    display: grid;
}

.yawa-collection-item strong,
.yawa-activity-item strong {
    overflow: hidden;
    color: var(--yawa-ink);
    font-size: 0.68rem;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-collection-item small,
.yawa-activity-item small {
    margin-top: 0.12rem;
    overflow: hidden;
    color: var(--yawa-muted);
    font-size: 0.58rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-collection-item b {
    color: var(--yawa-ink);
    font-size: 0.68rem;
    font-weight: 800;
    white-space: nowrap;
}

.yawa-zones-panel,
.yawa-activity-panel {
    min-height: 20rem;
}

.yawa-zone-item {
    display: grid;
    grid-template-columns: minmax(7rem, 0.8fr) minmax(5rem, 1.4fr) 2.5rem;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
    padding: 0.52rem 0;
}

.yawa-zone-item > div:first-child {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.yawa-zone-item span {
    overflow: hidden;
    color: var(--yawa-ink);
    font-size: 0.67rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.yawa-zone-item strong,
.yawa-zone-item small {
    color: var(--yawa-muted);
    font-size: 0.62rem;
    font-weight: 720;
    text-align: right;
}

.yawa-zone-track i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: currentColor;
}

.yawa-live-indicator {
    color: #288966;
}

.yawa-live-indicator i {
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: #31a97d;
    box-shadow: 0 0 0 4px rgb(49 169 125 / 0.1);
}

.yawa-activity-item time {
    color: var(--yawa-muted);
    font-size: 0.55rem;
    white-space: nowrap;
}

.yawa-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 7rem;
    padding: 1rem;
    color: var(--yawa-muted);
    font-size: 0.68rem;
    text-align: center;
}

.yawa-empty-state svg {
    width: 1.15rem;
    height: 1.15rem;
}

.yawa-tone-cyan {
    color: #079ab4;
}

.yawa-tone-blue {
    color: #377fb7;
}

.yawa-tone-violet {
    color: #7868bd;
}

.yawa-tone-emerald {
    color: #2f9875;
}

.yawa-tone-amber {
    color: #cc8736;
}

.yawa-tone-red {
    color: #cf5c55;
}

.yawa-tone-slate {
    color: #71838d;
}

.dark .yawa-trend {
    color: #70d4ad;
}

.dark .yawa-trend.is-negative {
    color: #f19a92;
}

.yawa-mobile-nav {
    display: none;
}

@media (max-width: 1280px) {
    .yawa-command-header {
        align-items: flex-start;
    }

    .yawa-command-statuses {
        flex-wrap: wrap;
    }

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

    .yawa-operational-grid,
    .yawa-analytics-grid {
        grid-template-columns: 1fr;
    }

    .yawa-income-panel,
    .yawa-collections-panel,
    .yawa-zones-panel,
    .yawa-activity-panel {
        min-height: auto;
    }
}

@media (max-width: 900px) {
    .fi-main {
        padding-inline: 0.8rem;
    }

    .yawa-command-header {
        flex-direction: column;
    }

    .yawa-command-statuses {
        width: 100%;
        justify-content: flex-start;
    }

    .yawa-status-card {
        flex: 1 1 12rem;
    }

    .yawa-pipeline {
        grid-template-columns: repeat(5, minmax(8.5rem, 1fr));
        overflow-x: auto;
        padding-bottom: 0.35rem;
    }

    .yawa-alert-copy p {
        white-space: normal;
    }
}

@media (max-width: 640px) {
    .fi-main {
        padding-inline: 0.65rem;
        padding-top: 0.75rem;
    }

    .yawa-command-center {
        gap: 0.8rem;
    }

    .yawa-command-header {
        padding: 0.9rem;
        border-radius: 1rem;
    }

    .yawa-command-mark {
        width: 2.8rem;
        height: 2.8rem;
        border-radius: 0.85rem;
    }

    .yawa-command-brand h1 {
        max-width: calc(100vw - 7.5rem);
        font-size: 1.35rem;
    }

    .yawa-command-date {
        font-size: 0.72rem;
    }

    .yawa-command-statuses {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) auto auto;
    }

    .yawa-status-card {
        min-width: 0;
        padding: 0.52rem;
    }

    .yawa-status-icon {
        display: none;
    }

    .yawa-status-card strong {
        max-width: 100%;
        font-size: 0.68rem;
    }

    .yawa-status-card em {
        display: none;
    }

    .yawa-icon-button,
    .yawa-user-chip {
        width: 2.35rem;
        height: 2.35rem;
        border-radius: 0.72rem;
    }

    .yawa-quick-actions {
        margin-inline: -0.1rem;
    }

    .yawa-quick-action {
        min-height: 2.35rem;
        padding: 0.54rem 0.7rem;
        font-size: 0.68rem;
    }

    .yawa-operational-grid,
    .yawa-analytics-grid {
        display: contents;
    }

    .yawa-alerts-panel {
        order: 10;
    }

    .yawa-pipeline-panel {
        order: 20;
    }

    .yawa-collections-panel {
        order: 30;
    }

    .yawa-kpi-grid {
        order: 40;
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .yawa-kpi-card[data-key='cash'] {
        order: -4;
    }

    .yawa-kpi-card[data-key='orders'] {
        order: -3;
    }

    .yawa-kpi-card[data-key='collections'] {
        order: -2;
    }

    .yawa-analytics-title {
        order: 50;
    }

    .yawa-income-panel {
        order: 60;
    }

    .yawa-zones-panel {
        order: 70;
    }

    .yawa-activity-panel {
        order: 80;
    }

    .yawa-panel,
    .yawa-kpi-card {
        padding: 0.85rem;
        border-radius: 0.95rem;
    }

    .yawa-kpi-card {
        min-height: 10.4rem;
    }

    .yawa-kpi-copy {
        margin-top: 0.8rem;
    }

    .yawa-kpi-value {
        font-size: 1.65rem;
    }

    .yawa-panel-heading {
        align-items: center;
    }

    .yawa-panel-heading h2 {
        font-size: 0.95rem;
    }

    .yawa-pipeline {
        grid-template-columns: 1fr;
        overflow: visible;
    }

    .yawa-pipeline-stage {
        grid-template-columns: auto minmax(0, 1fr) 5rem;
        align-items: center;
        gap: 0.65rem;
    }

    .yawa-pipeline-copy {
        margin-top: 0;
    }

    .yawa-pipeline-copy strong {
        font-size: 1.25rem;
    }

    .yawa-pipeline-progress {
        margin-top: 0;
    }

    .yawa-pipeline-connector {
        display: none;
    }

    .yawa-alert-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .yawa-inline-action {
        grid-column: 2;
        justify-self: start;
    }

    .yawa-analytics-title {
        align-items: flex-start;
    }

    .yawa-analytics-title > span {
        display: none;
    }

    .yawa-chart-summary {
        gap: 0.4rem;
    }

    .yawa-chart-summary > div {
        padding: 0.58rem;
    }

    .yawa-chart-summary strong {
        font-size: 0.78rem;
    }

    .yawa-line-chart {
        height: 11rem;
    }

    .yawa-zone-item {
        grid-template-columns: minmax(6.5rem, 1fr) minmax(4rem, 1fr) 2.3rem;
        gap: 0.45rem;
    }

    .yawa-activity-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .yawa-activity-item time {
        display: none;
    }
}

@media (max-width: 640px) {
    .yawa-mobile-nav {
        position: sticky;
        bottom: 0.55rem;
        z-index: 30;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 0.15rem;
        margin-top: 0.85rem;
        padding: 0.35rem;
        border: 1px solid rgb(148 163 184 / 0.2);
        border-radius: 1rem;
        background: rgb(8 31 43 / 0.94);
        box-shadow: 0 16px 40px rgb(2 15 23 / 0.28);
        backdrop-filter: blur(18px);
    }

    .yawa-mobile-nav a {
        display: flex;
        min-width: 0;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.18rem;
        padding: 0.45rem 0.2rem;
        border-radius: 0.72rem;
        color: rgb(186 230 253);
        font-size: 0.58rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        text-align: center;
        transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
    }

    .yawa-mobile-nav a:hover,
    .yawa-mobile-nav a:focus-visible,
    .yawa-mobile-nav a[aria-current='page'] {
        background: rgb(8 145 178 / 0.22);
        color: white;
    }

    .yawa-mobile-nav a:active {
        transform: translateY(1px);
    }

    .yawa-mobile-nav svg {
        width: 1.05rem;
        height: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .yawa-command-center,
    .yawa-kpi-card,
    .yawa-quick-action,
    .yawa-pipeline-stage,
    .fi-sidebar-item-button {
        animation: none;
        transition: none;
    }
}

/* =========================================================
   CLUB YAWA ERP · GLOBAL SAAS UI LAYER
   Applies to every Filament resource without changing logic.
   ========================================================= */

html {
    scroll-behavior: smooth;
}

.fi-body,
.fi-body button,
.fi-body input,
.fi-body textarea,
.fi-body select {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.fi-layout {
    min-height: 100dvh;
}

.fi-main {
    max-width: 100%;
    padding-bottom: 2.5rem;
}

.fi-page {
    animation: yawa-page-enter 260ms ease-out both;
}

@keyframes yawa-page-enter {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Page header */
.fi-header {
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding: 0.2rem 0.1rem;
}

.fi-header-heading {
    color: var(--yawa-ink);
    font-size: clamp(1.55rem, 2vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.fi-header-subheading {
    max-width: 60rem;
    color: var(--yawa-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.fi-breadcrumbs {
    margin-bottom: 0.45rem;
}

.fi-breadcrumbs-item-label,
.fi-breadcrumbs-item-separator {
    color: #7e929b;
    font-size: 0.72rem;
    font-weight: 650;
}

/* Buttons and actions */
.fi-btn {
    min-height: 2.45rem;
    border-radius: 0.75rem;
    box-shadow: none;
    font-size: 0.78rem;
    font-weight: 720;
    letter-spacing: -0.01em;
    transition: transform 150ms ease, box-shadow 150ms ease, background-color 150ms ease, border-color 150ms ease;
}

.fi-btn:hover {
    transform: translateY(-1px);
}

.fi-btn-color-primary {
    background: linear-gradient(135deg, #0c9fba, #087d9b);
    box-shadow: 0 8px 20px rgb(8 155 181 / 0.18);
}

.fi-btn-color-primary:hover {
    box-shadow: 0 12px 26px rgb(8 155 181 / 0.25);
}

.fi-icon-btn {
    border-radius: 0.7rem;
    transition: background-color 150ms ease, transform 150ms ease;
}

.fi-icon-btn:hover {
    transform: translateY(-1px);
}

.fi-link {
    font-weight: 680;
}

/* Cards / sections */
.fi-section {
    overflow: hidden;
    background: var(--yawa-surface);
}

.fi-section-header {
    min-height: 4.15rem;
    padding: 1.05rem 1.15rem;
    border-bottom: 1px solid var(--yawa-border);
    background: linear-gradient(180deg, rgb(255 255 255 / 0.98), rgb(249 252 252 / 0.92));
}

.dark .fi-section-header {
    background: linear-gradient(180deg, rgb(15 43 53 / 0.98), rgb(12 36 45 / 0.94));
}

.fi-section-header-heading {
    color: var(--yawa-ink);
    font-size: 0.95rem;
    font-weight: 780;
    letter-spacing: -0.02em;
}

.fi-section-header-description {
    color: var(--yawa-muted);
    font-size: 0.76rem;
    line-height: 1.45;
}

.fi-section-content-ctn {
    background: var(--yawa-surface);
}

.fi-section-content {
    padding: 1.15rem;
}

/* Form fields */
.fi-fo-field-wrp {
    gap: 0.42rem;
}

.fi-fo-field-wrp-label label,
.fi-fo-field-wrp-label span {
    color: #334e59;
    font-size: 0.76rem;
    font-weight: 720;
}

.dark .fi-fo-field-wrp-label label,
.dark .fi-fo-field-wrp-label span {
    color: #d1e4e8;
}

.fi-fo-field-wrp-helper-text,
.fi-fo-field-wrp-hint {
    color: #7a919a;
    font-size: 0.69rem;
}

.fi-input-wrp {
    min-height: 2.65rem;
    border: 1px solid var(--yawa-border-strong);
    background: #fbfdfe;
    box-shadow: 0 1px 2px rgb(16 42 53 / 0.025);
    transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.dark .fi-input-wrp {
    background: #0c2832;
}

.fi-input-wrp:focus-within {
    border-color: rgb(20 184 212 / 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 3px rgb(20 184 212 / 0.11);
}

.dark .fi-input-wrp:focus-within {
    background: #10313c;
}

.fi-input,
.fi-select-input,
.fi-textarea {
    color: var(--yawa-ink);
    font-size: 0.8rem;
}

.fi-input::placeholder,
.fi-textarea::placeholder {
    color: #9aabb2;
}

.fi-checkbox-input,
.fi-radio-input {
    border-color: #b8cbd1;
}

/* Table system */
.fi-ta-ctn {
    overflow: hidden;
    background: var(--yawa-surface);
}

.fi-ta-header {
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--yawa-border);
    background: linear-gradient(180deg, #ffffff, #fbfdfd);
}

.dark .fi-ta-header {
    background: linear-gradient(180deg, #0f2c36, #0d2730);
}

.fi-ta-header-heading {
    color: var(--yawa-ink);
    font-size: 1rem;
    font-weight: 790;
    letter-spacing: -0.025em;
}

.fi-ta-header-description {
    color: var(--yawa-muted);
    font-size: 0.75rem;
}

.fi-ta-search-field .fi-input-wrp {
    min-width: min(20rem, 100%);
    background: var(--yawa-surface-soft);
}

.fi-ta-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.fi-ta-header-cell {
    padding-block: 0.72rem;
    border-bottom: 1px solid var(--yawa-border);
    background: #f4f8f9;
}

.dark .fi-ta-header-cell {
    background: #0c2630;
}

.fi-ta-header-cell-label {
    color: #526b75;
    font-size: 0.68rem;
    font-weight: 780;
    letter-spacing: 0.045em;
    text-transform: uppercase;
}

.dark .fi-ta-header-cell-label {
    color: #a7c0c7;
}

.fi-ta-row {
    background: var(--yawa-surface);
    transition: background-color 140ms ease, box-shadow 140ms ease;
}

.fi-ta-row:hover {
    background: #f4fbfc;
    box-shadow: inset 3px 0 0 rgb(20 184 212 / 0.75);
}

.dark .fi-ta-row:hover {
    background: #10313b;
}

.fi-ta-cell {
    padding-block: 0.78rem;
    border-bottom-color: var(--yawa-border);
}

.fi-ta-text-item-label,
.fi-ta-text {
    color: #28434e;
    font-size: 0.78rem;
}

.dark .fi-ta-text-item-label,
.dark .fi-ta-text {
    color: #d7e7ea;
}

.fi-badge {
    border-radius: 999px;
    padding-inline: 0.55rem;
    font-size: 0.66rem;
    font-weight: 740;
    letter-spacing: 0.01em;
}

.fi-ta-actions {
    gap: 0.2rem;
}

.fi-ta-empty-state {
    min-height: 18rem;
    background: radial-gradient(circle at 50% 35%, rgb(20 184 212 / 0.08), transparent 12rem);
}

.fi-ta-empty-state-heading {
    color: var(--yawa-ink);
    font-weight: 780;
}

.fi-ta-empty-state-description {
    color: var(--yawa-muted);
}

.fi-ta-footer {
    padding: 0.8rem 1rem;
    border-top: 1px solid var(--yawa-border);
    background: var(--yawa-surface-soft);
}

/* Tabs, filters, dropdowns and modals */
.fi-tabs {
    gap: 0.25rem;
    padding: 0.28rem;
    border: 1px solid var(--yawa-border);
    border-radius: 0.82rem;
    background: var(--yawa-surface-soft);
}

.fi-tabs-item {
    min-height: 2.2rem;
    border-radius: 0.62rem;
    color: #607780;
    font-size: 0.74rem;
    font-weight: 690;
}

.fi-tabs-item-active {
    color: #087d9b;
    background: var(--yawa-surface);
    box-shadow: 0 4px 12px rgb(20 61 73 / 0.08);
}

.fi-dropdown-panel,
.fi-modal-window {
    overflow: hidden;
    border-color: var(--yawa-border-strong);
    background: var(--yawa-surface);
    box-shadow: 0 24px 70px rgb(7 35 45 / 0.18);
}

.fi-dropdown-list-item {
    border-radius: 0.55rem;
    font-size: 0.76rem;
}

.fi-dropdown-list-item:hover {
    background: #eef9fb;
}

.dark .fi-dropdown-list-item:hover {
    background: #12343e;
}

.fi-modal-header {
    border-bottom: 1px solid var(--yawa-border);
    background: var(--yawa-surface-soft);
}

.fi-modal-heading {
    color: var(--yawa-ink);
    font-weight: 800;
    letter-spacing: -0.025em;
}

.fi-modal-footer {
    border-top: 1px solid var(--yawa-border);
    background: var(--yawa-surface-soft);
}

.fi-notification {
    border: 1px solid var(--yawa-border);
    border-radius: 0.9rem;
    background: var(--yawa-surface);
    box-shadow: 0 18px 48px rgb(7 35 45 / 0.16);
}

/* Topbar refinements */
.fi-topbar {
    min-height: 4.1rem;
}

.fi-topbar nav {
    padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

.fi-topbar-item-label {
    font-size: 0.76rem;
    font-weight: 680;
}

.fi-user-menu-trigger {
    border-radius: 0.8rem;
}

/* Sidebar identity */
.fi-sidebar {
    box-shadow: 10px 0 38px rgb(3 21 28 / 0.11);
}

.fi-sidebar-header {
    min-height: 4.65rem;
    padding-inline: 1rem;
}

.fi-sidebar .fi-logo {
    max-height: 2.55rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgb(0 0 0 / 0.14));
}

.fi-sidebar-nav {
    padding-top: 1rem;
}

.fi-sidebar-group {
    gap: 0.35rem;
}

.fi-sidebar-group + .fi-sidebar-group {
    margin-top: 0.8rem;
    padding-top: 0.8rem;
    border-top: 1px solid rgb(255 255 255 / 0.055);
}

.fi-sidebar-item-button {
    padding-inline: 0.78rem;
}

.fi-sidebar-item-icon {
    width: 1.1rem;
    height: 1.1rem;
}

.fi-sidebar-item-label {
    font-size: 0.76rem;
    font-weight: 640;
}

/* Pagination */
.fi-pagination {
    gap: 0.25rem;
}

.fi-pagination-item-button {
    min-width: 2.1rem;
    min-height: 2.1rem;
    border-radius: 0.62rem;
    font-size: 0.72rem;
}

/* Scrollbars */
.fi-body * {
    scrollbar-width: thin;
    scrollbar-color: rgb(94 139 151 / 0.55) transparent;
}

.fi-body *::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.fi-body *::-webkit-scrollbar-track {
    background: transparent;
}

.fi-body *::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgb(94 139 151 / 0.46);
    background-clip: padding-box;
}

/* Responsive resource pages */
@media (max-width: 1024px) {
    .fi-header {
        align-items: stretch;
    }

    .fi-header-actions {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 0.25rem;
    }

    .fi-header-actions .fi-btn {
        flex: 0 0 auto;
    }

    .fi-ta-header-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .fi-ta-search-field,
    .fi-ta-search-field .fi-input-wrp {
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 640px) {
    .fi-main {
        padding-bottom: 5.6rem;
    }

    .fi-header-heading {
        font-size: 1.42rem;
    }

    .fi-header-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .fi-header-actions .fi-btn {
        width: 100%;
        justify-content: center;
    }

    .fi-section-header,
    .fi-section-content,
    .fi-ta-header,
    .fi-ta-footer {
        padding-inline: 0.85rem;
    }

    .fi-ta-table {
        min-width: 660px;
    }

    .fi-modal-window {
        width: calc(100vw - 1rem);
        max-height: calc(100dvh - 1rem);
        border-radius: 1rem;
    }
}
