/** * 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; } .wri-tab { padding: 0; } .wri-action-bar { display: flex; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid #e2e8f0; &__left { display: flex; align-items: center; gap: 12px; } &__icon { font-size: 28px; width: 28px; height: 28px; color: #0f4f3c; } &__title { font-size: 15px; font-weight: 700; color: #0d1b2a; } &__sub { font-size: 12px; color: #64748b; margin-top: 2px; } } .wri-filter-bar { display: flex; align-items: center; gap: 6px; padding: 8px 20px; background: #f8fafc; border-bottom: 1px solid #e2e8f0; flex-wrap: wrap; } .wri-fb-sep { width: 1px; height: 22px; background: #e2e8f0; flex-shrink: 0; margin: 0 4px; } .wri-filter-select { height: 34px; min-width: 130px; padding: 0 10px; border: 1px solid #e2e8f0; border-radius: 7px; font-size: 13px; color: #0d1b2a; font-family: inherit; background: #fff; cursor: pointer; &:focus { outline: none; border-color: #0f4f3c; } } .wri-presets { display: inline-flex; gap: 4px; align-items: center; } .wri-preset-chip { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid #e2e8f0; background: #fff; font-size: 12px; font-weight: 600; font-family: inherit; color: #475569; cursor: pointer; transition: all 0.15s; white-space: nowrap; &:hover { border-color: #0f4f3c; color: #0f4f3c; background: #f0fdf4; } &--active { background: #0f4f3c; border-color: #0f4f3c; color: #fff; &:hover { background: #0a3d2e; } } } .wri-date-range { display: inline-flex; align-items: center; gap: 4px; &__sep { color: #94a3b8; font-size: 16px; font-weight: 300; padding: 0 2px; user-select: none; } } .wri-date-box { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 6px 0 10px; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; transition: border-color 0.15s; &:hover { border-color: #cbd5e1; } &:focus-within { border-color: #0f4f3c; } &__lbl { font-size: 11px; font-weight: 600; color: #94a3b8; white-space: nowrap; user-select: none; letter-spacing: 0.03em; } &__input { border: none; outline: none; font-size: 13px; width: 76px; color: #0d1b2a; font-family: inherit; background: transparent; cursor: pointer; } &__btn { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: none; background: none; cursor: pointer; color: #94a3b8; padding: 0; border-radius: 4px; mat-icon { font-size: 16px; width: 16px; height: 16px; } &:hover { color: #0f4f3c; background: #f0fdf4; } } } .wri-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: 32px; padding: 0 12px; font-size: 13px; background: #fff; color: #0d1b2a; mat-icon { font-size: 16px; width: 16px; height: 16px; } &:disabled { opacity: 0.5; cursor: not-allowed; } &--refresh { padding: 0 8px; color: #64748b; &:hover:not(:disabled) { background: #f1f5f9; } } &--review { background: #0f4f3c; color: #fff; border-color: #0f4f3c; &:hover { background: #0a3d2e; } } } .wri-table-wrap { overflow-x: auto; } .wri-table { width: 100%; border-collapse: collapse; font-size: 13px; th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #f1f5f9; } th { font-size: 11px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: 0.06em; background: #f8fafc; white-space: nowrap; } .num { text-align: right; } } .wri-row { cursor: pointer; transition: background 0.1s; &:hover td { background: #f0fdf4; } } .wri-th-id { width: 60px; } .wri-th-action { width: 100px; text-align: center; } .wri-action-cell { text-align: center; } .wri-amount { font-weight: 700; color: #0f4f3c; } .wri-dt { font-size: 12px; color: #64748b; white-space: nowrap; } .wri-status { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; &--pending { background: #fef3c7; color: #92400e; } &--approved { background: #dcfce7; color: #166534; } &--rejected { background: #fee2e2; color: #991b1b; } } .cell-mono { font-family: 'Courier New', monospace; font-size: 12px; } .wri-voucher { font-weight: 700; color: #1e40af; letter-spacing: 0.06em; } .wri-gl-name { display: block; font-size: 11px; color: #64748b; margin-top: 2px; } .wri-credit-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 12px; background: #e0f2fe; color: #0369a1; font-size: 11px; font-weight: 600; } .wri-none { color: #94a3b8; } .empty-state { text-align: center; padding: 48px 24px; color: #94a3b8; .empty-icon { font-size: 40px; color: #cbd5e1; } .empty-title { font-size: 16px; font-weight: 600; color: #64748b; margin: 12px 0 4px; } .empty-text { font-size: 13px; color: #94a3b8; margin: 0; } }