Files
cbsnexora/src/app/system/audit-trails/audit-trails.component.scss
T
Nitesh YadavandClaude Sonnet 4.6 d367e76104 merging code
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-20 14:26:25 +05:30

297 lines
4.6 KiB
SCSS

/**
* 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/.
*/
@use 'sass:color';
@use '../../shared/styles/list-layout' as *;
$blue: #1353a0;
$navy: #0f172a;
$border: #e2e8f0;
$muted: #64748b;
// ===== Page Header =====
.at-page-header {
display: flex;
align-items: center;
justify-content: space-between;
margin-bottom: 18px;
flex-wrap: wrap;
gap: 12px;
&__left {
display: flex;
align-items: center;
gap: 14px;
}
&__icon {
width: 42px;
height: 42px;
border-radius: 10px;
background: #eff6ff;
display: flex;
align-items: center;
justify-content: center;
color: $blue;
font-size: 18px;
flex-shrink: 0;
}
&__title {
font-size: 20px;
font-weight: 700;
color: $navy;
margin: 0;
}
&__sub {
font-size: 12px;
color: $muted;
margin: 2px 0 0;
}
&__actions {
display: flex;
gap: 10px;
}
}
.at-btn {
display: inline-flex;
align-items: center;
gap: 7px;
padding: 8px 18px;
border-radius: 8px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
transition: all 0.15s;
border: none;
&--outline {
background: #fff;
border: 1px solid $border;
color: $muted;
&:hover {
border-color: $blue;
color: $blue;
background: #f8fafc;
}
}
&--primary {
background: $blue;
color: #fff;
box-shadow: 0 1px 4px rgb(19 83 160 / 25%);
&:hover {
background: color.adjust($blue, $lightness: -6%);
}
}
}
// ===== Filters =====
.at-filters {
border: 1px solid $border;
border-radius: 10px;
margin-bottom: 18px;
overflow: hidden;
&__header {
display: flex;
align-items: center;
justify-content: space-between;
padding: 11px 16px;
background: #f8fafc;
border-bottom: 1px solid $border;
cursor: pointer;
user-select: none;
transition: background 0.15s;
&:hover {
background: #f1f5f9;
}
}
&__header-left {
display: flex;
align-items: center;
gap: 8px;
}
&__icon {
font-size: 13px;
color: $blue;
}
&__label {
font-size: 13px;
font-weight: 600;
color: $navy;
}
&__toggle {
font-size: 12px;
color: $muted;
}
&__body {
padding: 16px;
display: flex;
flex-direction: column;
gap: 4px;
}
&__row {
display: grid;
gap: 12px;
&--3 {
grid-template-columns: repeat(3, 1fr);
}
&--dates {
grid-template-columns: 1fr auto 1fr;
align-items: center;
}
}
&__date-section {
margin-top: 4px;
padding-top: 12px;
border-top: 1px dashed #e2e8f0;
}
&__date-label {
font-size: 12px;
font-weight: 600;
color: $muted;
margin-bottom: 10px;
display: flex;
align-items: center;
gap: 6px;
i {
color: $blue;
font-size: 12px;
}
}
}
.at-ff {
width: 100%;
&__prefix {
font-size: 13px;
color: $muted;
margin-right: 6px;
}
}
.at-date-group {
display: flex;
gap: 8px;
.at-ff--date {
flex: 1.6;
}
.at-ff--time {
flex: 1;
}
}
.at-date-separator {
font-size: 12px;
font-weight: 600;
color: $muted;
text-align: center;
padding: 0 4px;
}
// ===== Status Badge in Table =====
.at-status {
display: inline-block;
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
border-radius: 12px;
text-transform: uppercase;
letter-spacing: 0.03em;
&--success {
background: #ecfdf5;
color: #059669;
}
&--failure {
background: #fef2f2;
color: #dc2626;
}
&--awaiting {
background: #fffbeb;
color: #d97706;
}
}
// ===== Table overflow =====
.table-container {
overflow-x: auto !important;
}
// ===== Date Cells =====
.cell-mono {
white-space: nowrap !important;
}
// ===== Action Badge =====
.at-action-badge {
font-size: 11px;
font-weight: 600;
padding: 3px 10px;
border-radius: 6px;
background: #f1f5f9;
color: #475569;
text-transform: uppercase;
letter-spacing: 0.03em;
}
// ===== Responsive =====
@media (width <= 960px) {
.at-filters__row--3 {
grid-template-columns: repeat(2, 1fr);
}
.at-filters__row--dates {
grid-template-columns: 1fr;
gap: 8px;
}
.at-date-separator {
display: none;
}
}
@media (width <= 600px) {
.at-filters__row--3 {
grid-template-columns: 1fr;
}
.at-page-header {
flex-direction: column;
align-items: flex-start;
}
.at-date-group {
flex-direction: column;
gap: 0;
}
}