1165 lines
20 KiB
CSS
1165 lines
20 KiB
CSS
|
|
.approval-page {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
min-height: 0;
|
||
|
|
min-width: 0;
|
||
|
|
display: grid;
|
||
|
|
grid-template-rows: minmax(0, 1fr);
|
||
|
|
gap: 14px;
|
||
|
|
overflow: hidden;
|
||
|
|
animation: fadeUp 220ms var(--ease) both;
|
||
|
|
}
|
||
|
|
|
||
|
|
.approval-detail {
|
||
|
|
width: 100%;
|
||
|
|
height: 100%;
|
||
|
|
min-height: 0;
|
||
|
|
min-width: 0;
|
||
|
|
display: grid;
|
||
|
|
grid-template-rows: minmax(0, 1fr) auto;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-scroll {
|
||
|
|
min-width: 0;
|
||
|
|
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;
|
||
|
|
min-width: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-left {
|
||
|
|
min-width: 0;
|
||
|
|
display: grid;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-card {
|
||
|
|
min-width: 0;
|
||
|
|
padding: 16px 18px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-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;
|
||
|
|
}
|
||
|
|
|
||
|
|
.smart-entry-btn {
|
||
|
|
min-width: 104px;
|
||
|
|
min-height: 34px;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 6px;
|
||
|
|
padding: 0 14px;
|
||
|
|
border: 1px solid #dbe4ee;
|
||
|
|
border-radius: 999px;
|
||
|
|
background: #f8fafc;
|
||
|
|
color: #0f172a;
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: 800;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.smart-entry-btn:hover {
|
||
|
|
border-color: rgba(16, 185, 129, .36);
|
||
|
|
background: #f0fdf4;
|
||
|
|
color: #047857;
|
||
|
|
}
|
||
|
|
|
||
|
|
.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 {
|
||
|
|
min-width: 0;
|
||
|
|
overflow-x: auto;
|
||
|
|
}
|
||
|
|
|
||
|
|
.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 {
|
||
|
|
display: block;
|
||
|
|
margin-top: 4px;
|
||
|
|
color: #64748b;
|
||
|
|
line-height: 1.45;
|
||
|
|
}
|
||
|
|
|
||
|
|
.expense-amount strong {
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.over-tag {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
margin-top: 6px;
|
||
|
|
padding: 2px 8px;
|
||
|
|
border-radius: 999px;
|
||
|
|
font-size: 11px;
|
||
|
|
font-weight: 800;
|
||
|
|
white-space: nowrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.over-tag.bad {
|
||
|
|
background: #fff7ed;
|
||
|
|
color: #ea580c;
|
||
|
|
}
|
||
|
|
|
||
|
|
.expense-attachment-main {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
}
|
||
|
|
|
||
|
|
.expense-attachment .attachment-hint {
|
||
|
|
display: block;
|
||
|
|
margin-top: 3px;
|
||
|
|
color: #64748b;
|
||
|
|
font-size: 11px;
|
||
|
|
line-height: 1.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.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-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;
|
||
|
|
}
|
||
|
|
|
||
|
|
.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-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 minmax(0, 1fr);
|
||
|
|
border-radius: 28px;
|
||
|
|
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;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-entry-modal {
|
||
|
|
max-width: 1320px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-header {
|
||
|
|
display: flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 20px;
|
||
|
|
padding: 24px 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: 999px;
|
||
|
|
background: #eff6ff;
|
||
|
|
border: 1px solid rgba(29, 78, 216, .16);
|
||
|
|
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;
|
||
|
|
}
|
||
|
|
|
||
|
|
.close-btn {
|
||
|
|
width: 36px;
|
||
|
|
height: 36px;
|
||
|
|
display: grid;
|
||
|
|
place-items: center;
|
||
|
|
border: 1px solid #e2e8f0;
|
||
|
|
border-radius: 999px;
|
||
|
|
background: #fff;
|
||
|
|
color: #64748b;
|
||
|
|
font-size: 18px;
|
||
|
|
transition: all 160ms ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.close-btn:hover {
|
||
|
|
border-color: #cbd5e1;
|
||
|
|
background: #f1f5f9;
|
||
|
|
color: #0f172a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-body {
|
||
|
|
min-height: 0;
|
||
|
|
padding: 20px 28px;
|
||
|
|
overflow-y: auto;
|
||
|
|
scrollbar-width: thin;
|
||
|
|
scrollbar-color: #cbd5e1 transparent;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-entry-grid {
|
||
|
|
min-height: 100%;
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: minmax(0, 1.2fr) 360px;
|
||
|
|
gap: 20px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-card,
|
||
|
|
.ai-preview-card {
|
||
|
|
min-height: 0;
|
||
|
|
border-radius: 22px;
|
||
|
|
background: #fff;
|
||
|
|
border: 1px solid #edf2f7;
|
||
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-card {
|
||
|
|
display: grid;
|
||
|
|
grid-template-rows: minmax(0, 1fr) auto;
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-scroll {
|
||
|
|
min-height: 0;
|
||
|
|
display: grid;
|
||
|
|
align-content: start;
|
||
|
|
gap: 12px;
|
||
|
|
padding: 18px;
|
||
|
|
overflow: auto;
|
||
|
|
background:
|
||
|
|
linear-gradient(180deg, rgba(240, 253, 244, .5) 0%, rgba(255, 255, 255, 0) 140px),
|
||
|
|
#fff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-bubble {
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: 34px minmax(0, 1fr);
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-bubble.user {
|
||
|
|
grid-template-columns: minmax(0, 1fr) 34px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-bubble.user .ai-chat-avatar {
|
||
|
|
order: 2;
|
||
|
|
background: #dbeafe;
|
||
|
|
color: #2563eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-bubble.user .ai-chat-content {
|
||
|
|
order: 1;
|
||
|
|
justify-self: end;
|
||
|
|
background: #eff6ff;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-avatar {
|
||
|
|
width: 34px;
|
||
|
|
height: 34px;
|
||
|
|
display: grid;
|
||
|
|
place-items: center;
|
||
|
|
border-radius: 999px;
|
||
|
|
background: #ecfdf5;
|
||
|
|
color: #059669;
|
||
|
|
font-size: 18px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-content {
|
||
|
|
max-width: min(100%, 640px);
|
||
|
|
padding: 12px 14px;
|
||
|
|
border-radius: 18px;
|
||
|
|
background: #f8fafc;
|
||
|
|
border: 1px solid #edf2f7;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-content header {
|
||
|
|
margin-bottom: 6px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-content strong {
|
||
|
|
color: #0f172a;
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: 850;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-chat-content p {
|
||
|
|
color: #334155;
|
||
|
|
font-size: 13px;
|
||
|
|
line-height: 1.6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-composer {
|
||
|
|
display: grid;
|
||
|
|
gap: 12px;
|
||
|
|
padding: 14px 16px 16px;
|
||
|
|
border-top: 1px solid #edf2f7;
|
||
|
|
background: linear-gradient(180deg, #fff, #fbfdff);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-file-input {
|
||
|
|
display: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-composer-surface {
|
||
|
|
min-height: 78px;
|
||
|
|
display: grid;
|
||
|
|
grid-template-columns: minmax(0, 1fr) auto;
|
||
|
|
align-items: end;
|
||
|
|
gap: 12px;
|
||
|
|
padding: 8px 8px 8px 14px;
|
||
|
|
border: 1px solid #cbd8e5;
|
||
|
|
border-radius: 22px;
|
||
|
|
background: linear-gradient(180deg, #fff, #fbfdff);
|
||
|
|
box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
|
||
|
|
transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-composer-surface:focus-within {
|
||
|
|
border-color: rgba(16, 185, 129, .58);
|
||
|
|
background: #fff;
|
||
|
|
box-shadow: 0 0 0 3px rgba(16, 185, 129, .11), 0 10px 24px rgba(15, 23, 42, .06);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-composer textarea {
|
||
|
|
width: 100%;
|
||
|
|
min-height: 60px;
|
||
|
|
height: 60px;
|
||
|
|
resize: none;
|
||
|
|
border: 0;
|
||
|
|
border-radius: 0;
|
||
|
|
padding: 8px 0;
|
||
|
|
background: transparent;
|
||
|
|
color: #0f172a;
|
||
|
|
font-size: 14px;
|
||
|
|
line-height: 1.6;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-composer textarea:focus {
|
||
|
|
outline: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-composer-actions {
|
||
|
|
display: flex;
|
||
|
|
justify-content: flex-end;
|
||
|
|
align-items: center;
|
||
|
|
gap: 8px;
|
||
|
|
padding-bottom: 2px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-upload-list {
|
||
|
|
display: flex;
|
||
|
|
flex-wrap: wrap;
|
||
|
|
gap: 8px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-upload-chip {
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
gap: 6px;
|
||
|
|
min-height: 32px;
|
||
|
|
padding: 0 12px;
|
||
|
|
border-radius: 999px;
|
||
|
|
background: #eef6ff;
|
||
|
|
border: 1px solid #d7e8fb;
|
||
|
|
color: #334155;
|
||
|
|
font-size: 12px;
|
||
|
|
font-weight: 700;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-upload-chip i {
|
||
|
|
color: #2563eb;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-upload-btn,
|
||
|
|
.ai-send-btn {
|
||
|
|
width: 48px;
|
||
|
|
height: 48px;
|
||
|
|
display: grid;
|
||
|
|
place-items: center;
|
||
|
|
padding: 0;
|
||
|
|
border-radius: 12px;
|
||
|
|
font-size: 20px;
|
||
|
|
transition: background 160ms ease, transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, color 160ms ease;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-upload-btn {
|
||
|
|
border: 0;
|
||
|
|
background: #f1f5f9;
|
||
|
|
color: #475569;
|
||
|
|
box-shadow: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-upload-btn:hover {
|
||
|
|
background: #e2e8f0;
|
||
|
|
color: #0f172a;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-send-btn {
|
||
|
|
border: 0;
|
||
|
|
background: #10b981;
|
||
|
|
color: #fff;
|
||
|
|
box-shadow: 0 8px 18px rgba(16, 185, 129, .20);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-send-btn:hover {
|
||
|
|
background: #0ea672;
|
||
|
|
box-shadow: 0 10px 22px rgba(16, 185, 129, .24);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-upload-btn:active,
|
||
|
|
.ai-send-btn:active {
|
||
|
|
transform: scale(.96);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-card {
|
||
|
|
padding: 18px;
|
||
|
|
display: grid;
|
||
|
|
align-content: start;
|
||
|
|
gap: 16px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-head {
|
||
|
|
display: flex;
|
||
|
|
align-items: flex-start;
|
||
|
|
justify-content: space-between;
|
||
|
|
gap: 12px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-head h3 {
|
||
|
|
margin: 0;
|
||
|
|
color: #0f172a;
|
||
|
|
font-size: 16px;
|
||
|
|
font-weight: 850;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-head p {
|
||
|
|
margin-top: 4px;
|
||
|
|
color: #64748b;
|
||
|
|
font-size: 12px;
|
||
|
|
line-height: 1.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-fields {
|
||
|
|
display: grid;
|
||
|
|
gap: 10px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.preview-field {
|
||
|
|
padding: 12px 14px;
|
||
|
|
border-radius: 18px;
|
||
|
|
background: #f8fafc;
|
||
|
|
border: 1px solid #edf2f7;
|
||
|
|
}
|
||
|
|
|
||
|
|
.preview-field.full {
|
||
|
|
min-height: 90px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.preview-field span {
|
||
|
|
display: block;
|
||
|
|
color: #64748b;
|
||
|
|
font-size: 11px;
|
||
|
|
font-weight: 800;
|
||
|
|
text-transform: uppercase;
|
||
|
|
letter-spacing: .04em;
|
||
|
|
}
|
||
|
|
|
||
|
|
.preview-field strong {
|
||
|
|
display: block;
|
||
|
|
margin-top: 5px;
|
||
|
|
color: #0f172a;
|
||
|
|
font-size: 14px;
|
||
|
|
font-weight: 850;
|
||
|
|
line-height: 1.5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.preview-field p {
|
||
|
|
margin-top: 4px;
|
||
|
|
color: #475569;
|
||
|
|
font-size: 12px;
|
||
|
|
line-height: 1.55;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-empty {
|
||
|
|
min-height: 280px;
|
||
|
|
display: grid;
|
||
|
|
place-items: center;
|
||
|
|
gap: 10px;
|
||
|
|
padding: 24px;
|
||
|
|
border: 1px dashed #cbd5e1;
|
||
|
|
border-radius: 20px;
|
||
|
|
color: #94a3b8;
|
||
|
|
text-align: center;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-empty i {
|
||
|
|
font-size: 32px;
|
||
|
|
color: #10b981;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-actions {
|
||
|
|
display: flex;
|
||
|
|
gap: 10px;
|
||
|
|
margin-top: 4px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-secondary,
|
||
|
|
.ai-preview-primary {
|
||
|
|
height: 40px;
|
||
|
|
display: inline-flex;
|
||
|
|
align-items: center;
|
||
|
|
justify-content: center;
|
||
|
|
gap: 7px;
|
||
|
|
padding: 0 20px;
|
||
|
|
border-radius: 999px;
|
||
|
|
font-size: 13px;
|
||
|
|
font-weight: 800;
|
||
|
|
transition: all 180ms ease;
|
||
|
|
flex: 1;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-secondary {
|
||
|
|
border: 1px solid #fed7aa;
|
||
|
|
background: #fff7ed;
|
||
|
|
color: #c2410c;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-primary {
|
||
|
|
border: 1px solid #059669;
|
||
|
|
background: #059669;
|
||
|
|
color: #fff;
|
||
|
|
box-shadow: 0 8px 20px rgba(5, 150, 105, .18);
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-secondary:hover {
|
||
|
|
background: #ffedd5;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-primary:hover {
|
||
|
|
background: #047857;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-preview-secondary:disabled,
|
||
|
|
.ai-preview-primary:disabled,
|
||
|
|
.approve-action:disabled,
|
||
|
|
.ai-send-btn:disabled {
|
||
|
|
opacity: .45;
|
||
|
|
cursor: not-allowed;
|
||
|
|
box-shadow: none;
|
||
|
|
}
|
||
|
|
|
||
|
|
.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; }
|
||
|
|
|
||
|
|
@media (max-width: 1320px) {
|
||
|
|
.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;
|
||
|
|
}
|
||
|
|
|
||
|
|
.ai-entry-grid {
|
||
|
|
grid-template-columns: 1fr;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-modal {
|
||
|
|
width: calc(100vw - 40px);
|
||
|
|
height: calc(100vh - 40px);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
@media (max-width: 760px) {
|
||
|
|
.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;
|
||
|
|
}
|
||
|
|
|
||
|
|
.smart-entry-btn { align-self: flex-start; }
|
||
|
|
|
||
|
|
.detail-expense-table table {
|
||
|
|
min-width: 980px;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-actions {
|
||
|
|
flex-direction: column;
|
||
|
|
}
|
||
|
|
|
||
|
|
.approval-action-group {
|
||
|
|
width: 100%;
|
||
|
|
}
|
||
|
|
|
||
|
|
.detail-modal {
|
||
|
|
width: 100vw;
|
||
|
|
height: 100vh;
|
||
|
|
max-width: 100vw;
|
||
|
|
max-height: 100vh;
|
||
|
|
border-radius: 0;
|
||
|
|
}
|
||
|
|
|
||
|
|
.modal-header { padding: 16px 18px; flex-wrap: wrap; }
|
||
|
|
.modal-body { padding: 16px 18px; }
|
||
|
|
.ai-composer-actions { flex-direction: column; align-items: stretch; }
|
||
|
|
.ai-preview-actions { flex-direction: column; }
|
||
|
|
}
|