Files
X-Financial/web/src/assets/styles/views/approval-center-view.css

1727 lines
33 KiB
CSS
Raw Normal View History

/* ────────── Approval List ────────── */
.approval-page {
height: 100%;
min-height: 0;
display: grid;
grid-template-rows: minmax(0, 1fr);
gap: 14px;
overflow: hidden;
animation: fadeUp 220ms var(--ease) both;
}
.approval-list {
min-height: 0;
display: grid;
grid-template-rows: auto auto auto minmax(0, 1fr) auto;
padding: 16px 18px;
overflow: hidden;
}
.status-tabs {
display: flex;
gap: 28px;
margin-top: 14px;
border-bottom: 1px solid #dbe4ee;
}
.status-tabs button {
position: relative;
min-height: 36px;
border: 0;
background: transparent;
color: #64748b;
font-size: 14px;
font-weight: 750;
}
.status-tabs button.active { color: #059669; }
.status-tabs button.active::after {
content: "";
position: absolute;
left: 0; right: 0; bottom: -1px;
height: 3px;
border-radius: 999px 999px 0 0;
background: #10b981;
}
.list-toolbar {
display: flex;
align-items: center;
justify-content: space-between;
gap: 16px;
margin-top: 14px;
}
.filter-set { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.filter-btn, .page-size {
min-height: 38px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 9px;
padding: 0 14px;
border-radius: 8px;
font-size: 14px;
font-weight: 750;
white-space: nowrap;
border: 1px solid #d7e0ea;
background: #fff;
color: #334155;
}
.filter-btn { min-width: 104px; justify-content: space-between; }
.filter-btn:hover, .page-size:hover { border-color: rgba(16, 185, 129, .32); color: #0f9f78; }
.hint { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; color: #64748b; font-size: 13px; }
.table-wrap {
min-height: 400px;
margin-top: 10px;
overflow-x: auto;
overflow-y: auto;
border: 1px solid #edf2f7;
border-radius: 10px;
background: linear-gradient(180deg, #fcfefd 0%, #f4f8f6 100%);
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}
.table-wrap table {
width: 100%;
align-self: flex-start;
}
table { width: 100%; min-width: 1180px; border-collapse: collapse; table-layout: fixed; }
th, td {
padding: 15px 12px;
border-bottom: 1px solid #edf2f7;
color: #24324a;
font-size: 14px;
line-height: 1.35;
text-align: center;
vertical-align: middle;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
th {
position: sticky; top: 0; z-index: 1;
background: #f7fafc; color: #64748b;
font-size: 13px; font-weight: 800;
}
tbody tr { cursor: pointer; }
tbody tr:hover, tbody tr.spotlight {
background: linear-gradient(90deg, rgba(16, 185, 129, .08), rgba(16, 185, 129, .03));
}
tbody tr:last-child td { border-bottom: 0; }
.doc-id { color: #1d4ed8; font-weight: 800; }
.person { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.avatar {
width: 24px; height: 24px;
display: grid; place-items: center;
border-radius: 999px;
background: #dbeafe; color: #1d4ed8;
font-size: 12px; font-weight: 900;
}
.risk-tag, .status-tag {
min-height: 24px;
display: inline-flex; align-items: center;
padding: 0 9px;
border: 1px solid transparent; border-radius: 6px;
font-size: 12px; font-weight: 750; white-space: nowrap;
}
.risk-tag.low { background: #dcfce7; color: #059669; }
.risk-tag.medium { background: #ffedd5; color: #f97316; }
.risk-tag.high { background: #fee2e2; color: #ef4444; }
.sla { font-size: 13px; font-weight: 850; }
.sla.safe { color: #059669; }
.sla.warning { color: #f97316; }
.sla.danger { color: #ef4444; }
.status-tag.pending { background: #eff6ff; color: #2563eb; }
.status-tag.urgent { background: #fff7ed; color: #f97316; }
.status-tag.done { background: #ecfdf5; color: #059669; }
.more-btn {
width: auto; height: auto;
display: inline-flex; align-items: center; justify-content: center;
border: 0; background: transparent;
color: #2563eb; font-size: 13px; font-weight: 800;
}
.more-btn:hover { color: #059669; }
.list-foot {
display: grid;
grid-template-columns: 1fr auto 1fr;
align-items: center; gap: 16px; margin-top: 12px;
}
.page-summary { color: #64748b; font-size: 14px; font-weight: 650; }
.pager {
display: inline-flex; justify-content: center; gap: 6px;
padding: 4px;
border: 1px solid #e2e8f0; border-radius: 12px; background: #f8fafc;
}
.pager button {
width: 32px; height: 32px; border: 0; border-radius: 9px;
background: transparent; color: #334155;
font-size: 14px; font-weight: 800;
transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.pager button:hover:not(.active) { background: #fff; color: #059669; box-shadow: 0 1px 4px rgba(15, 23, 42, .08); }
.pager button.active { background: #059669; color: #fff; box-shadow: 0 8px 16px rgba(5, 150, 105, .20); }
.pager span { color: #64748b; font-weight: 800; }
.page-size {
justify-self: end; min-width: 112px;
border-radius: 10px; background: #fff;
box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}
.approval-detail {
min-height: 0;
display: grid;
grid-template-rows: minmax(0, 1fr) auto;
overflow: hidden;
}
.detail-scroll {
min-height: 0;
display: grid;
align-content: start;
gap: 12px;
padding-right: 4px;
overflow: auto;
}
.detail-hero {
display: grid;
grid-template-columns: 2fr 1fr 1fr 1fr 1.2fr;
gap: 18px;
padding: 22px;
}
.applicant-card {
display: grid;
grid-template-columns: 78px minmax(0, 1fr);
align-items: center;
gap: 16px;
}
.portrait {
width: 72px;
height: 72px;
display: grid;
place-items: center;
border-radius: 999px;
background: linear-gradient(135deg, #dbeafe, #ecfdf5);
color: #0f766e;
font-size: 26px;
font-weight: 900;
}
.applicant-card h2 {
color: #0f172a;
font-size: 22px;
font-weight: 900;
}
.applicant-card h2 span {
margin-left: 8px;
padding: 3px 9px;
border-radius: 6px;
background: #dcfce7;
color: #059669;
font-size: 12px;
}
.applicant-card p {
margin-top: 6px;
color: #64748b;
font-size: 13px;
}
.applicant-card p strong {
margin-left: 18px;
color: #334155;
}
.hero-stat {
display: grid;
align-content: center;
gap: 8px;
}
.hero-stat span {
color: #64748b;
font-size: 13px;
font-weight: 750;
}
.hero-stat strong {
color: #0f172a;
font-size: 24px;
font-weight: 900;
}
.risk-pill,
.state-pill {
width: max-content;
padding: 5px 10px;
border-radius: 6px;
font-size: 14px;
font-weight: 850;
}
.risk-pill.high { background: #fee2e2; color: #ef4444; }
.risk-pill.medium { background: #ffedd5; color: #f97316; }
.risk-pill.low { background: #dcfce7; color: #059669; }
.state-pill { background: #dbeafe; color: #2563eb; }
.countdown {
display: inline-flex;
align-items: center;
gap: 6px;
color: #f97316 !important;
}
.hero-summary-panel {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(152px, 1fr));
gap: 4px 18px;
padding: 4px 0 0;
border-top: 1px solid #e5eaf0;
border-bottom: 1px solid #e5eaf0;
}
.hero-summary-item {
min-width: 0;
display: grid;
gap: 8px;
align-content: start;
padding: 16px 0 14px;
}
.hero-summary-label {
display: inline-flex;
align-items: center;
gap: 8px;
color: #64748b;
font-size: 13px;
font-weight: 750;
}
.hero-summary-icon {
color: #059669;
font-size: 14px;
}
.hero-summary-item strong {
display: block;
color: #0f172a;
font-size: 16px;
font-weight: 850;
line-height: 1.5;
}
.progress-block {
grid-column: 1 / -1;
padding-top: 18px;
border-top: 1px solid #e5eaf0;
}
.progress-head {
display: flex;
align-items: center;
justify-content: flex-start;
margin-bottom: 12px;
}
.progress-head h3 {
display: inline-flex;
align-items: center;
gap: 8px;
color: #0f172a;
font-size: 14px;
font-weight: 850;
}
.progress-head h3::before {
content: "";
width: 8px;
height: 8px;
border-radius: 999px;
background: #10b981;
box-shadow: 0 0 0 4px rgba(16, 185, 129, .12);
}
.progress-line {
grid-column: 1 / -1;
display: grid;
grid-template-columns: repeat(6, 1fr);
}
.progress-step {
position: relative;
display: grid;
justify-items: center;
gap: 5px;
color: #94a3b8;
}
.progress-step::before {
content: "";
position: absolute;
top: 13px;
left: 0;
right: 0;
z-index: 0;
height: 2px;
background: #dbe4ee;
}
.progress-step.active::before { background: #10b981; }
.progress-step:first-child::before { left: 50%; }
.progress-step:last-child::before { right: 50%; }
.progress-step span {
position: relative;
z-index: 1;
width: 26px;
height: 26px;
display: grid;
place-items: center;
border-radius: 999px;
background: #e2e8f0;
color: #64748b;
font-size: 13px;
font-weight: 900;
}
.current-progress-ring {
position: absolute;
inset: -4px;
z-index: -1;
border: 2px solid rgba(16, 185, 129, .42);
border-radius: 999px;
pointer-events: none;
}
.progress-step.active span {
background: #059669;
color: #fff;
}
.progress-step.current span {
background: #10b981 !important;
color: #fff !important;
box-shadow: 0 0 0 4px rgba(16, 185, 129, .15) !important;
animation: breathe-dot 3s ease-in-out infinite !important;
transform-origin: center !important;
}
@keyframes breathe-dot {
0%, 100% {
transform: scale(1);
box-shadow: 0 4px 12px rgba(16, 185, 129, .3), 0 0 0 4px rgba(16, 185, 129, .15);
}
50% {
transform: scale(1.12);
box-shadow: 0 4px 20px rgba(16, 185, 129, .5), 0 0 0 10px rgba(16, 185, 129, .08);
}
}
.progress-step strong {
color: #334155;
font-size: 12px;
}
.progress-step.current strong { color: #059669; }
.progress-step small { font-size: 11px; }
.progress-step.current small {
color: #059669;
}
.detail-grid {
display: block;
}
.detail-left {
min-width: 0;
display: grid;
gap: 12px;
}
.detail-card,
.detail-side-card {
padding: 16px 18px;
}
.detail-card h3,
.detail-side-card h3 {
margin: 0 0 12px;
color: #0f172a;
font-size: 16px;
font-weight: 850;
}
.detail-card-head {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
margin-bottom: 14px;
}
.detail-card-head h3 {
margin-bottom: 4px;
}
.detail-card-head p {
color: #64748b;
font-size: 12px;
line-height: 1.5;
}
.detail-total {
display: inline-flex;
align-items: center;
justify-content: center;
min-width: 102px;
min-height: 34px;
padding: 0 12px;
border-radius: 999px;
background: #ecfdf5;
color: #047857;
font-size: 14px;
font-weight: 900;
}
.detail-card textarea {
width: 100%;
min-height: 84px;
resize: none;
border: 1px solid #d7e0ea;
border-radius: 8px;
padding: 12px;
font-size: 13px;
line-height: 1.5;
}
.detail-expense-table table {
width: 100%;
min-width: 0;
border-collapse: collapse;
table-layout: auto;
}
.detail-expense-table th,
.detail-expense-table td {
padding: 12px 10px;
border-bottom: 1px solid #edf2f7;
color: #24324a;
text-align: left;
font-size: 12px;
vertical-align: top;
white-space: normal;
}
.detail-expense-table th {
position: static;
background: #f7fafc;
color: #64748b;
font-weight: 800;
font-size: 11px;
letter-spacing: .04em;
text-transform: uppercase;
}
.detail-expense-table th:nth-child(1),
.detail-expense-table td:nth-child(1) { width: 12%; }
.detail-expense-table th:nth-child(2),
.detail-expense-table td:nth-child(2) { width: 12%; }
.detail-expense-table th:nth-child(3),
.detail-expense-table td:nth-child(3) { width: 23%; }
.detail-expense-table th:nth-child(4),
.detail-expense-table td:nth-child(4) { width: 10%; }
.detail-expense-table th:nth-child(5),
.detail-expense-table td:nth-child(5) { width: 18%; }
.detail-expense-table th:nth-child(6),
.detail-expense-table td:nth-child(6) { width: 25%; }
.expense-time strong,
.expense-type strong,
.expense-desc strong,
.expense-amount strong {
display: block;
color: #0f172a;
font-size: 13px;
font-weight: 850;
line-height: 1.4;
}
.expense-time span,
.expense-type span,
.expense-desc span,
.expense-amount span,
.expense-attachment .attachment-hint {
display: block;
margin-top: 3px;
color: #64748b;
font-size: 11px;
line-height: 1.5;
}
.expense-amount strong {
font-variant-numeric: tabular-nums;
}
.over-tag {
display: inline-flex;
align-items: center;
gap: 5px;
width: max-content;
margin-top: 7px;
padding: 2px 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 800;
}
.over-tag.ok {
background: #ecfdf5;
color: #059669;
}
.over-tag.bad {
background: #fef2f2;
color: #ef4444;
}
.expense-attachment-main {
display: flex;
align-items: center;
gap: 8px;
flex-wrap: wrap;
}
.attachment-pill,
.risk-inline-tag {
display: inline-flex;
align-items: center;
min-height: 24px;
padding: 0 8px;
border-radius: 999px;
font-size: 11px;
font-weight: 800;
white-space: nowrap;
}
.attachment-pill.ok { background: #ecfdf5; color: #059669; }
.attachment-pill.partial { background: #fff7ed; color: #ea580c; }
.attachment-pill.missing { background: #fef2f2; color: #ef4444; }
.attachment-pill.neutral { background: #eef2ff; color: #4f46e5; }
.inline-action {
min-height: 24px;
padding: 0 8px;
border: 1px solid #dbe4ee;
border-radius: 999px;
background: #fff;
color: #334155;
font-size: 11px;
font-weight: 800;
}
.inline-action:hover {
border-color: rgba(16, 185, 129, .36);
color: #047857;
}
.risk-inline-tag.low { background: #ecfdf5; color: #059669; }
.risk-inline-tag.medium { background: #fff7ed; color: #ea580c; }
.risk-inline-tag.high { background: #fef2f2; color: #dc2626; }
.expense-risk p {
margin-top: 6px;
color: #475569;
font-size: 12px;
line-height: 1.55;
}
.expense-expand-row td {
padding: 0 10px 12px;
background: #fbfdff;
border-bottom: 1px solid #edf2f7;
}
.expense-files {
display: flex;
flex-wrap: wrap;
gap: 8px;
padding: 10px 0 0;
}
.expense-file-chip {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 10px;
border-radius: 999px;
background: #fff;
border: 1px solid #e2e8f0;
color: #334155;
font-size: 11px;
font-weight: 700;
}
.expense-file-chip i {
color: #059669;
font-size: 12px;
}
.total-row td {
color: #0f172a;
font-weight: 900;
background: #f8fafc;
}
.detail-attachment-list {
display: grid;
gap: 10px;
}
.side-attachments {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.detail-attachment {
min-width: 0;
min-height: 50px;
display: grid;
grid-template-columns: 28px minmax(0, 1fr);
align-items: center;
gap: 8px;
padding: 10px;
border: 1px solid #e2e8f0;
border-radius: 8px;
}
.detail-attachment.missing {
border-color: #fb923c;
border-style: dashed;
background: #fff7ed;
}
.detail-attachment i { color: #059669; font-size: 24px; }
.detail-attachment.missing i { color: #f97316; }
.detail-attachment strong {
display: block;
overflow: hidden;
color: #334155;
font-size: 12px;
text-overflow: ellipsis;
white-space: nowrap;
}
.detail-attachment small {
color: #64748b;
font-size: 11px;
}
.attach-note {
margin-top: 8px;
color: #64748b;
font-size: 12px;
}
.detail-side-card.risk-card {
min-height: 332px;
display: grid;
grid-template-rows: auto 1fr auto;
}
.risk-card header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 10px;
}
.risk-card header span {
color: #64748b;
font-size: 12px;
font-weight: 750;
}
.risk-card header b { color: #ef4444; }
.risk-list {
display: grid;
overflow: hidden;
border: 1px solid #eef2f7;
border-radius: 8px;
}
.risk-list div {
min-height: 38px;
display: grid;
grid-template-columns: 22px minmax(0, 1fr) 24px;
align-items: center;
gap: 8px;
padding: 0 10px;
border-bottom: 1px solid #eef2f7;
font-size: 13px;
}
.risk-list div:last-child { border-bottom: 0; }
.risk-list i { color: #f97316; }
.risk-list b.high { color: #ef4444; }
.risk-list b.medium { color: #f97316; }
.risk-note {
margin-top: 12px;
padding: 12px 14px 0;
border-top: 1px solid #eef2f7;
}
.risk-note strong {
display: block;
color: #0f172a;
font-size: 13px;
font-weight: 850;
}
.risk-note p {
margin-top: 6px;
color: #64748b;
font-size: 12px;
line-height: 1.6;
}
.detail-actions {
position: relative;
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-top: 10px;
padding: 10px 0 0;
border-top: 1px solid #e5eaf0;
background: transparent;
}
.detail-actions button {
height: 36px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 6px;
border-radius: 8px;
font-size: 13px;
font-weight: 760;
}
.back-action {
min-width: 104px;
border: 1px solid #d7e0ea;
background: #fff;
color: #475569;
}
.back-action:hover {
border-color: #94a3b8;
background: #f8fafc;
}
.approval-action-group {
display: flex;
justify-content: flex-end;
gap: 8px;
width: auto;
}
.approve-action {
min-width: 92px;
border: 1px solid #059669;
background: #059669;
color: #fff;
box-shadow: 0 4px 10px rgba(5, 150, 105, .14);
}
.reject-action {
min-width: 86px;
border: 1px solid #fecaca;
background: #fff;
color: #ef4444;
}
.supplement-action {
min-width: 86px;
border: 1px solid #fed7aa;
background: #fff;
color: #ea580c;
}
/* ────────── Detail Modal Overlay ────────── */
.detail-overlay {
position: fixed;
inset: 0;
z-index: 9999;
display: grid;
place-items: center;
background: rgba(15, 23, 42, .45);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
}
.detail-modal {
position: relative;
width: calc(100vw - 80px);
max-width: 1440px;
height: calc(100vh - 64px);
max-height: 960px;
display: grid;
grid-template-rows: auto auto minmax(0, 1fr) auto;
border-radius: 4px;
background: #f8fafc;
box-shadow:
0 0 0 1px rgba(15, 23, 42, .08),
0 20px 60px rgba(15, 23, 42, .18),
0 4px 16px rgba(15, 23, 42, .06);
overflow: hidden;
}
/* ── Modal Header ── */
.modal-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 20px;
padding: 22px 28px;
background: linear-gradient(135deg, #fff 0%, #f9fbff 100%);
border-bottom: 1px solid #e8eef6;
}
.header-left {
display: flex;
align-items: center;
gap: 16px;
}
.req-badge {
padding: 6px 14px;
border-radius: 3px;
background: #eff6ff;
border-left: 3px solid #1d4ed8;
color: #1d4ed8;
font-size: 13px;
font-weight: 850;
letter-spacing: .02em;
}
.header-title-group h2 {
color: #0f172a;
font-size: 20px;
font-weight: 900;
letter-spacing: -.01em;
}
.header-title-group p {
margin-top: 3px;
color: #64748b;
font-size: 13px;
}
.header-right {
display: flex;
align-items: center;
gap: 10px;
}
.header-indicator {
display: inline-flex;
align-items: center;
gap: 6px;
padding: 6px 14px;
border-radius: 3px;
font-size: 13px;
font-weight: 800;
}
.header-indicator.high {
background: #fee2e2;
color: #dc2626;
}
.header-indicator.medium {
background: #ffedd5;
color: #ea580c;
}
.header-indicator.low {
background: #dcfce7;
color: #059669;
}
.header-indicator.status {
background: #dbeafe;
color: #1d4ed8;
}
.close-btn {
width: 36px; height: 36px;
display: grid; place-items: center;
border: 1px solid #e2e8f0; border-radius: 4px;
background: #fff; color: #64748b;
font-size: 18px;
transition: all 160ms ease;
}
.close-btn:hover {
border-color: #cbd5e1;
background: #f1f5f9; color: #0f172a;
}
/* ── Progress Track ── */
.modal-progress {
padding: 18px 28px 14px;
background: #fff;
border-bottom: 1px solid #edf2f7;
}
.progress-track {
display: flex;
align-items: flex-start;
gap: 0;
}
.progress-node {
position: relative;
flex: 1;
display: flex;
flex-direction: column;
align-items: center;
gap: 8px;
}
.node-dot {
position: relative;
z-index: 2;
width: 30px; height: 30px;
display: grid; place-items: center;
border-radius: 999px;
background: #e2e8f0;
color: #94a3b8;
font-size: 13px;
font-weight: 900;
transition: all 300ms ease;
}
.progress-node.done .node-dot,
.progress-node.active .node-dot {
background: #059669;
color: #fff;
box-shadow: 0 4px 12px rgba(5, 150, 105, .25);
}
.progress-node.current .node-dot {
background: #10b981;
box-shadow: 0 4px 12px rgba(5, 150, 105, .25), 0 0 0 5px rgba(5, 150, 105, .1);
animation: breathe-pulse 2s ease-in-out infinite;
}
@keyframes breathe-pulse {
0%, 100% {
opacity: 1;
transform: scale(1);
box-shadow: 0 4px 12px rgba(5, 150, 105, .25), 0 0 0 4px rgba(5, 150, 105, .15);
}
50% {
opacity: 0.7;
transform: scale(1.1);
box-shadow: 0 4px 12px rgba(5, 150, 105, .4), 0 0 0 10px rgba(5, 150, 105, .08);
}
}
.node-label {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
}
.node-label strong {
color: #334155;
font-size: 12px;
font-weight: 800;
white-space: nowrap;
}
.progress-node.current .node-label strong { color: #059669; }
.node-label small {
color: #94a3b8;
font-size: 11px;
}
.node-line {
position: absolute;
top: 15px;
left: calc(50% + 18px);
width: calc(100% - 36px);
height: 2px;
background: #e2e8f0;
z-index: 1;
border-radius: 1px;
transition: background 300ms ease;
}
.node-line.filled { background: #10b981; }
/* ── Modal Body ── */
.modal-body {
min-height: 0;
padding: 20px 28px;
overflow-y: auto;
scrollbar-width: thin;
scrollbar-color: #cbd5e1 transparent;
}
.body-grid {
display: grid;
grid-template-columns: minmax(0, 1fr) 380px;
gap: 20px;
align-items: start;
}
.body-main { display: grid; gap: 16px; }
.body-side { display: grid; gap: 14px; }
/* ── Metrics Strip (inside summary card) ── */
.metrics-strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 1px;
background: #f1f5f9;
}
.metric-block {
padding: 14px 16px;
background: #fff;
transition: background 160ms ease;
}
.metric-block:hover { background: #fafffe; }
.metric-block.amount {
background: #ecfdf5;
}
.metric-label {
display: block;
color: #64748b;
font-size: 12px;
font-weight: 750;
text-transform: uppercase;
letter-spacing: .04em;
}
.metric-value {
display: block;
margin-top: 6px;
color: #0f172a;
font-size: 22px;
font-weight: 900;
letter-spacing: -.02em;
}
.metric-value.sla { display: flex; align-items: center; gap: 6px; font-size: 20px; }
.metric-value.sla.safe { color: #059669; }
.metric-value.sla.warning { color: #f59e0b; }
.metric-value.sla.danger { color: #ef4444; }
/* ── Content Card ── */
.content-card {
border-radius: 4px;
background: #fff;
border: 1px solid #edf2f7;
box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
overflow: hidden;
transition: box-shadow 200ms ease;
}
.content-card:hover {
box-shadow: 0 4px 16px rgba(15, 23, 42, .06);
}
.card-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 14px 20px;
border-bottom: 1px solid #f1f5f9;
background: linear-gradient(180deg, #fafbfd, #fff);
}
.card-header.slim {
padding: 10px 16px;
}
.card-title {
display: flex;
align-items: center;
gap: 8px;
}
.card-title i {
color: #059669;
font-size: 18px;
}
.card-title h3 {
color: #0f172a;
font-size: 15px;
font-weight: 850;
}
.card-badge {
padding: 4px 10px;
border-radius: 6px;
background: #f0fdf4;
color: #059669;
font-size: 12px;
font-weight: 800;
}
.card-badge.warn {
background: #fff7ed;
color: #ea580c;
}
/* ── Summary Grid ── */
.summary-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 1px;
background: #f1f5f9;
}
.summary-cell {
display: flex;
align-items: center;
gap: 12px;
padding: 16px 18px;
background: #fff;
transition: background 160ms ease;
}
.summary-cell:hover { background: #fafffe; }
.cell-icon {
width: 38px; height: 38px;
display: grid; place-items: center;
border-radius: 4px;
background: #ecfdf5;
color: #059669;
font-size: 18px;
flex-shrink: 0;
}
.cell-content span {
display: block;
color: #94a3b8;
font-size: 12px;
font-weight: 750;
}
.cell-content strong {
display: block;
margin-top: 2px;
color: #0f172a;
font-size: 14px;
font-weight: 850;
}
/* ── Expense Table ── */
.expense-table-wrap {
overflow-x: auto;
}
.expense-table {
width: 100%;
min-width: 0;
border-collapse: collapse;
table-layout: auto;
}
.expense-table th {
position: static;
padding: 10px 16px;
background: #f8fafc;
border-bottom: 1px solid #edf2f7;
color: #64748b;
font-size: 12px;
font-weight: 800;
text-transform: uppercase;
letter-spacing: .03em;
text-align: left;
}
.expense-table th.right { text-align: right; }
.expense-table th.center { text-align: center; }
.expense-table td {
padding: 12px 16px;
border-bottom: 1px solid #f1f5f9;
color: #334155;
font-size: 13px;
text-align: left;
vertical-align: middle;
}
.expense-table td.right { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.expense-table td.center { text-align: center; }
.expense-table td strong { color: #0f172a; font-weight: 850; }
.expense-table tfoot td {
padding: 14px 16px;
border-top: 2px solid #e2e8f0;
border-bottom: 0;
background: #f8fafc;
}
.total-amount {
color: #059669 !important;
font-size: 16px;
}
.over-badge {
display: inline-flex;
align-items: center;
gap: 4px;
padding: 3px 8px;
border-radius: 3px;
font-size: 12px;
font-weight: 800;
}
.over-badge.ok { background: #ecfdf5; color: #059669; }
.over-badge.bad { background: #fef2f2; color: #ef4444; }
/* ── Attachments (sidebar list) ── */
.attachment-list-side {
display: grid;
gap: 6px;
padding: 12px 14px;
}
.attachment-row {
display: flex;
align-items: center;
gap: 10px;
padding: 8px 10px;
border: 1px solid #f1f5f9;
border-radius: 4px;
background: #fff;
transition: background 160ms ease;
}
.attachment-row:hover { background: #fafbfd; }
.attachment-row.missing {
border: 1px dashed #fbbf24;
background: #fffbeb;
}
.file-icon-sm {
width: 28px; height: 28px;
display: grid; place-items: center;
border-radius: 4px;
font-size: 16px;
flex-shrink: 0;
}
.file-icon-sm.pdf { background: #fef2f2; color: #ef4444; }
.file-icon-sm.img { background: #ecfdf5; color: #059669; }
.file-icon-sm.miss { background: #fff7ed; color: #f59e0b; }
.file-detail strong {
display: block;
color: #334155;
font-size: 13px;
font-weight: 800;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.file-detail span {
display: block;
color: #94a3b8;
font-size: 11px;
}
/* ── Opinion Textarea ── */
.opinion-wrap {
padding: 12px 14px;
}
.opinion-wrap textarea {
width: 100%;
min-height: 100px;
resize: none;
border: 1px solid #d7e0ea;
border-radius: 4px;
padding: 10px 12px;
color: #0f172a;
font-size: 13px;
line-height: 1.55;
transition: border-color 160ms ease, box-shadow 160ms ease;
}
.opinion-wrap textarea::placeholder {
color: #94a3b8;
}
.opinion-wrap textarea:focus {
border-color: #10b981;
box-shadow: 0 0 0 3px rgba(16, 185, 129, .12);
outline: none;
}
/* ── Side Cards ── */
.side-card {
border-radius: 4px;
background: #fff;
border: 1px solid #edf2f7;
box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
overflow: hidden;
transition: box-shadow 200ms ease;
}
.side-card:hover { box-shadow: 0 4px 16px rgba(15, 23, 42, .06); }
.side-card .card-header {
padding: 12px 16px;
}
.side-card.compact {
border-radius: 4px;
}
/* ── Risk Card ── */
.risk-total {
display: flex;
flex-direction: column;
align-items: center;
gap: 2px;
padding: 5px 12px;
border-radius: 3px;
font-size: 11px;
}
.risk-total span { font-weight: 750; }
.risk-total.high {
background: #fee2e2;
color: #dc2626;
}
.risk-total.high strong { font-size: 16px; font-weight: 900; }
.risk-items {
padding: 4px 14px 14px;
display: grid;
gap: 8px;
}
.risk-row {
display: flex;
align-items: center;
gap: 10px;
padding: 10px 12px;
border-radius: 4px;
border: 1px solid #f1f5f9;
transition: all 160ms ease;
}
.risk-row:hover { border-color: #e2e8f0; background: #fafbfd; }
.risk-icon {
width: 30px; height: 30px;
display: grid; place-items: center;
border-radius: 4px;
font-size: 16px;
flex-shrink: 0;
}
.risk-row.high .risk-icon { background: #fef2f2; color: #ef4444; }
.risk-row.medium .risk-icon { background: #fff7ed; color: #f97316; }
.risk-text {
flex: 1;
color: #334155;
font-size: 13px;
line-height: 1.4;
}
.risk-level {
padding: 3px 8px;
border-radius: 3px;
font-size: 12px;
font-weight: 800;
flex-shrink: 0;
}
.risk-level.high { background: #fef2f2; color: #ef4444; }
.risk-level.medium { background: #fff7ed; color: #f97316; }
/* ── Side Dual ── */
.side-dual {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 12px;
}
.reminder-list {
margin: 0;
padding: 10px 16px 14px;
display: grid;
gap: 8px;
list-style: none;
}
.reminder-list li {
display: flex;
align-items: flex-start;
gap: 8px;
color: #334155;
font-size: 12px;
line-height: 1.5;
}
.reminder-list li i {
margin-top: 2px;
color: #f59e0b;
font-size: 14px;
flex-shrink: 0;
}
.info-list {
display: grid;
grid-template-columns: auto 1fr;
gap: 6px 14px;
margin: 0;
padding: 10px 16px 14px;
font-size: 13px;
}
.info-list dt { color: #94a3b8; font-weight: 700; }
.info-list dd { margin: 0; color: #0f172a; font-weight: 850; }
/* ── Modal Footer ── */
.modal-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 16px 28px;
background: #fff;
border-top: 1px solid #e8eef6;
}
.footer-right {
display: flex;
gap: 10px;
}
.action-btn {
height: 40px;
display: inline-flex;
align-items: center;
justify-content: center;
gap: 7px;
padding: 0 20px;
border-radius: 4px;
font-size: 14px;
font-weight: 800;
transition: all 180ms ease;
border: 1px solid transparent;
}
.action-btn.back {
background: #f8fafc;
border-color: #e2e8f0;
color: #475569;
}
.action-btn.back:hover {
background: #f1f5f9;
border-color: #cbd5e1;
color: #0f172a;
}
.action-btn.supplement {
background: #fff;
border-color: #fed7aa;
color: #ea580c;
}
.action-btn.supplement:hover {
background: #fff7ed;
box-shadow: 0 4px 12px rgba(234, 88, 12, .12);
}
.action-btn.reject {
background: #fff;
border-color: #fecaca;
color: #ef4444;
}
.action-btn.reject:hover {
background: #fef2f2;
box-shadow: 0 4px 12px rgba(239, 68, 68, .12);
}
.action-btn.approve {
background: #059669;
color: #fff;
box-shadow: 0 4px 16px rgba(5, 150, 105, .25);
}
.action-btn.approve:hover {
background: #047857;
box-shadow: 0 8px 24px rgba(5, 150, 105, .30);
}
.action-btn:active { transform: scale(.97); }
/* ── Modal Transitions ── */
.detail-modal-enter-active { transition: opacity 260ms ease; }
.detail-modal-enter-active .detail-modal { transition: transform 320ms cubic-bezier(.2, .8, .2, 1), opacity 280ms ease; }
.detail-modal-leave-active { transition: opacity 200ms ease; }
.detail-modal-leave-active .detail-modal { transition: transform 220ms ease, opacity 200ms ease; }
.detail-modal-enter-from { opacity: 0; }
.detail-modal-enter-from .detail-modal { transform: translateY(16px); opacity: 0; }
.detail-modal-leave-to { opacity: 0; }
.detail-modal-leave-to .detail-modal { transform: translateY(8px); opacity: 0; }
/* ── Responsive ── */
@media (max-width: 1320px) {
.list-toolbar, .list-foot { grid-template-columns: 1fr; }
.detail-hero {
grid-template-columns: minmax(0, 1.8fr) repeat(4, minmax(0, 1fr));
}
.hero-summary-panel {
grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
}
.detail-expense-table {
overflow-x: auto;
}
.detail-expense-table table {
min-width: 980px;
}
.detail-modal {
width: calc(100vw - 40px);
height: calc(100vh - 40px);
}
.body-grid { grid-template-columns: 1fr; }
.metrics-strip { grid-template-columns: repeat(2, 1fr); }
.side-dual { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
.approval-list { padding: 16px; }
.status-tabs { gap: 18px; overflow-x: auto; }
.filter-set { width: 100%; }
.filter-btn, .page-size { width: 100%; }
.list-foot { justify-items: stretch; }
.pager, .page-size { justify-self: stretch; }
.detail-hero {
grid-template-columns: 1fr 1fr;
gap: 12px;
padding: 16px;
}
.applicant-card,
.hero-summary-panel,
.progress-line {
grid-column: 1 / -1;
}
.hero-summary-panel {
grid-template-columns: 1fr;
}
.hero-summary-item {
padding: 14px 0;
}
.detail-card {
padding: 14px 16px;
}
.detail-card-head {
flex-direction: column;
align-items: stretch;
}
.detail-total {
align-self: flex-start;
}
.detail-expense-table table {
min-width: 980px;
}
.detail-modal {
width: 100vw;
height: 100vh;
max-width: 100vw;
max-height: 100vh;
border-radius: 0;
}
.modal-header { padding: 16px 18px; flex-wrap: wrap; }
.header-right { width: 100%; justify-content: flex-end; }
.metrics-strip { grid-template-columns: 1fr 1fr; }
.summary-grid { grid-template-columns: 1fr; }
.progress-track { overflow-x: auto; padding-bottom: 8px; }
.node-label strong { font-size: 11px; }
.modal-footer { flex-direction: column; padding: 14px 18px; }
.footer-right { width: 100%; }
.action-btn { flex: 1; }
}