/** * Copyright since 2025 Mifos Initiative * * This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ :host { display: block; } .af-page { background: #f8fafc; min-height: calc(100vh - 68px); display: flex; flex-direction: column; gap: 12px; } // ── Header ────────────────────────────────────────────────────────────────────── .af-header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #fff; border-bottom: 1px solid #e2e8f0; &__left { display: flex; align-items: center; gap: 10px; } &__icon { color: #0f4f3c; flex-shrink: 0; } &__title { font-size: 15px; font-weight: 700; color: #0d1b2a; } &__sub { font-size: 12px; color: #64748b; margin-top: 1px; } &__stat { font-weight: 700; &--green { color: #16a34a; } &--red { color: #dc2626; } } } .af-btn { display: inline-flex; align-items: center; gap: 6px; border-radius: 7px; font-family: inherit; font-weight: 600; cursor: pointer; border: 1px solid #e2e8f0; transition: background 0.15s; height: 30px; padding: 0 12px; font-size: 12.5px; background: #fff; color: #0d1b2a; &:hover { background: #f0fdf4; border-color: #0f4f3c; color: #0f4f3c; } } // ── Empty state ──────────────────────────────────────────────────────────────── .af-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 40px 20px; &__icon { width: 64px; height: 64px; background: #e2e8f0; border: 1px solid #cbd5e1; border-radius: 50%; display: flex; align-items: center; justify-content: center; } &__title { font-size: 15px; font-weight: 700; color: #1e293b; margin: 4px 0 0; } &__sub { font-size: 12.5px; color: #64748b; text-align: center; margin: 0; } &__btn { margin-top: 6px; padding: 8px 20px; background: #0f4f3c; border: none; border-radius: 8px; color: #fff; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background 0.15s; &:hover { background: #0a3d2e; } } } // ── Body ──────────────────────────────────────────────────────────────────────── .af-body { display: flex; flex-direction: column; gap: 12px; padding: 0 20px 16px; } // ── Progress card ────────────────────────────────────────────────────────────── .af-progress-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; padding: 12px 16px; &__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; } &__label { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; } &__fraction { font-size: 12.5px; font-weight: 700; color: #0f4f3c; } } .af-progress-bar { height: 7px; background: #e2e8f0; border-radius: 999px; overflow: hidden; &__fill { height: 100%; background: #16a34a; border-radius: 999px; transition: width 0.4s ease; } } // ── Facilities card ──────────────────────────────────────────────────────────── .af-fac-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; overflow: hidden; &__header { padding: 9px 16px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; color: #64748b; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; } } .af-pills { display: flex; flex-wrap: wrap; gap: 7px; padding: 12px 16px; } .af-pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 600; border: 1px solid; cursor: default; &__dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; } &--on { background: #f0fdf4; border-color: #86efac; color: #166534; .af-pill__dot { background: #22c55e; } } &--off { background: #f8fafc; border-color: #e2e8f0; color: #94a3b8; .af-pill__dot { background: #cbd5e1; } } } // ── Stats row ───────────────────────────────────────────────────────────────── .af-stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .af-stat-card { border-radius: 10px; padding: 10px 14px; display: flex; align-items: baseline; gap: 7px; border: 1px solid; font-size: 12px; &__icon { font-size: 12px; font-weight: 700; } &__num { font-size: 17px; font-weight: 800; line-height: 1; } &__label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.75; } &--green { background: #f0fdf4; border-color: #86efac; color: #166534; } &--red { background: #f8fafc; border-color: #e2e8f0; color: #64748b; } }