/** * 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/. */ $border: #e2e8f0; $text-muted: #64748b; .psae-tab-content { padding: 0; } // ── Title bar — mirrors WithdrawalRequestsComponent's action bar ────────── .psae-header { display: flex; align-items: center; padding: 14px 20px; background: #fff; border-bottom: 1px solid $border; margin-bottom: 16px; &__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: $text-muted; margin-top: 2px; } } // ── Filter bar + search box — mirrors WithdrawalRequestsComponent ───────── .psae-filter-bar { display: flex; align-items: center; gap: 6px; padding: 0 20px 16px; flex-wrap: wrap; } .psae-fb-sep { width: 1px; height: 22px; background: $border; flex-shrink: 0; margin: 0 4px; } .psae-search-box { display: inline-flex; align-items: center; gap: 6px; height: 34px; min-width: 260px; padding: 0 10px; border: 1px solid $border; border-radius: 8px; background: #fff; transition: border-color 0.15s; mat-icon { font-size: 17px; width: 17px; height: 17px; color: #94a3b8; flex-shrink: 0; } &:hover { border-color: #cbd5e1; } &:focus-within { border-color: #0f4f3c; box-shadow: 0 0 0 3px rgb(15 79 60 / 8%); } input { flex: 1; border: none; outline: none; font-size: 13px; color: #0d1b2a; font-family: inherit; background: transparent; &::placeholder { color: #94a3b8; } } &__clear { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border: none; background: none; cursor: pointer; color: #94a3b8; padding: 0; border-radius: 50%; flex-shrink: 0; mat-icon { font-size: 15px; width: 15px; height: 15px; color: inherit; } &:hover { color: #dc2626; background: #fef2f2; } } } .psae-presets { display: inline-flex; gap: 4px; align-items: center; } .psae-preset-chip { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid $border; 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; } } } .psae-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; } } .psae-date-box { display: inline-flex; align-items: center; gap: 4px; height: 34px; padding: 0 6px 0 10px; border: 1px solid $border; 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; &::placeholder { color: #cbd5e1; } } &__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; } } } .table-container { padding: 0 20px; } // ── Table — mirrors WithdrawalRequestsComponent's table ─────────────────── .psae-table { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; th, td { padding: 10px 14px; text-align: left; border-bottom: 1px solid #f1f5f9; } th { font-size: 11px; font-weight: 700; color: $text-muted; text-transform: uppercase; letter-spacing: 0.06em; background: #f8fafc; white-space: nowrap; } } .psae-row { transition: background 0.1s; &:hover td { background: #f0fdf4; } } .psae-dt { font-size: 12px; color: $text-muted; white-space: nowrap; } .cell-mono { font-family: 'Courier New', monospace; font-size: 12px; } .psae-btn { font-size: 11.5px; font-weight: 600; border-radius: 8px !important; height: 32px; padding: 0 10px; margin-right: 6px; fa-icon { margin-right: 4px; font-size: 11px; } } .psae-btn--refresh { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; margin-right: 0; border-radius: 8px !important; border: 1px solid $border; background: #fff; color: $text-muted; cursor: pointer; mat-icon { font-size: 17px; width: 17px; height: 17px; } &:hover:not(:disabled) { background: #f1f5f9; } &:disabled { opacity: 0.5; cursor: not-allowed; } } .psae-btn-view { border-color: #2563eb; color: #2563eb; &:hover { background: #eff6ff; } } .psae-btn-approve { border-color: #16a34a; color: #16a34a; &:hover { background: #f0fdf4; } } .psae-btn-reject { border-color: #dc2626; color: #dc2626; &:hover { background: #fef2f2; } } .status-badge { display: inline-flex; align-items: center; padding: 2px 10px; border-radius: 20px; font-size: 11px; font-weight: 600; &--pending { background: #fef9c3; color: #854d0e; } &--hold { background: #ffedd5; color: #9a3412; } &--savings { background: #e0f2fe; color: #0369a1; } &--current { background: #f3e8ff; color: #6b21a8; } &--fd { background: #fef2f2; color: #991b1b; } &--rd { background: #ecfdf5; color: #065f46; } &--share { background: #eef2ff; color: #3730a3; } } .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px; background: #fff; border: 1px dashed $border; border-radius: 14px; text-align: center; margin: 16px 20px; &.psae-empty-inline { padding: 40px 24px; margin: 0 20px 16px; } .empty-icon { font-size: 42px; color: #cbd5e1; margin-bottom: 14px; } .empty-title { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: #0d1b2a; } .empty-text { margin: 0; font-size: 12.5px; color: $text-muted; max-width: 380px; line-height: 1.5; } }