| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844 |
- // 对账管理页面样式
- // 定义主题颜色
- $primary-color: #007bff;
- $primary-hover: #0056b3;
- $secondary-color: #6c757d;
- $success-color: #28a745;
- $warning-color: #ffc107;
- $danger-color: #dc3545;
- $info-color: #17a2b8;
- $background-light: #f8fafc;
- $background-white: #ffffff;
- $border-color: #e2e8f0;
- $text-primary: #1e293b;
- $text-secondary: #64748b;
- $text-muted: #94a3b8;
- .reconciliation-container {
- padding: 24px;
- max-width: 1400px;
- margin: 0 auto;
- background-color: $background-light;
- // 页面标题和操作按钮
- .page-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- margin-bottom: 28px;
- padding-bottom: 20px;
- border-bottom: 2px solid $border-color;
- background-color: $background-white;
- padding: 24px;
- border-radius: 12px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
- .header-top {
- margin-bottom: 0;
- }
- h2 {
- font-size: 28px;
- font-weight: 700;
- color: $text-primary;
- margin: 0;
- letter-spacing: -0.5px;
- }
- .header-actions {
- button {
- padding: 10px 24px;
- font-size: 14px;
- font-weight: 500;
- border-radius: 8px;
- transition: all 0.3s ease;
- box-shadow: 0 2px 4px rgba(0, 123, 255, 0.1);
- &:hover {
- transform: translateY(-1px);
- box-shadow: 0 4px 12px rgba(0, 123, 255, 0.2);
- }
- }
- }
- .back-to-dashboard-btn {
- display: inline-flex;
- align-items: center;
- gap: 8px;
- padding: 8px 16px;
- background-color: #F2F3F5;
- color: #1D2129;
- border: 1px solid #E5E6EB;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.2s ease-in-out;
- text-decoration: none;
- min-height: 40px;
- white-space: nowrap;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
- &:hover {
- background-color: #F7F8FA;
- border-color: rgba(22, 93, 255, 0.3);
- color: #1D2129;
- transform: translateY(-1px);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- }
- &:active {
- transform: translateY(0);
- background-color: #F2F3F5;
- box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
- }
- &:focus {
- outline: 2px solid rgba(22, 93, 255, 0.3);
- outline-offset: 2px;
- }
- }
- }
- // 过滤区域
- .filter-section {
- display: flex;
- flex-wrap: wrap;
- gap: 20px;
- margin-bottom: 28px;
- padding: 24px;
- background-color: $background-white;
- border-radius: 12px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
- .filter-group {
- display: flex;
- flex-direction: column;
- gap: 8px;
- min-width: 220px;
- label {
- font-size: 13px;
- font-weight: 600;
- color: $text-secondary;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
- select,
- .form-control {
- padding: 12px 16px;
- border: 1px solid $border-color;
- border-radius: 8px;
- font-size: 14px;
- transition: all 0.3s ease;
- background-color: $background-white;
- &:focus {
- outline: none;
- border-color: $primary-color;
- box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
- }
- }
- .date-range {
- display: flex;
- align-items: center;
- gap: 12px;
- .date-input {
- flex: 1;
- }
- span {
- font-size: 14px;
- color: $text-muted;
- font-weight: 500;
- }
- }
- }
- }
- // 卡片样式
- .section-card {
- background-color: $background-white;
- border-radius: 12px;
- box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
- margin-bottom: 28px;
- overflow: hidden;
- transition: transform 0.3s ease, box-shadow 0.3s ease;
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
- }
- .section-header {
- padding: 20px 24px;
- border-bottom: 1px solid $border-color;
- background-color: #fafbfc;
- h3 {
- font-size: 20px;
- font-weight: 600;
- color: $text-primary;
- margin: 0;
- display: flex;
- align-items: center;
- gap: 8px;
- }
- }
- }
- // 表格样式
- .table-responsive {
- overflow-x: auto;
- border-radius: 8px;
- margin: 0;
- background-color: $background-white;
- .table {
- width: 100%;
- border-collapse: collapse;
- border-spacing: 0;
- margin-bottom: 0;
- thead {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- th {
- padding: 16px;
- text-align: left;
- font-size: 13px;
- font-weight: 600;
- color: white;
- white-space: nowrap;
- letter-spacing: 0.5px;
- text-transform: uppercase;
- border-bottom: none;
- }
- }
- tbody {
- tr {
- border-bottom: 1px solid $border-color;
- transition: all 0.3s ease;
- position: relative;
- overflow: hidden;
- &:hover {
- background-color: #f8fafc;
- transform: translateX(2px);
- }
- &:last-child {
- border-bottom: none;
- }
- td {
- padding: 16px;
- font-size: 14px;
- color: $text-primary;
- vertical-align: middle;
- font-weight: 500;
- transition: all 0.3s ease;
- .btn {
- padding: 6px 16px;
- font-size: 13px;
- border-radius: 6px;
- transition: all 0.3s ease;
- font-weight: 500;
- &:hover {
- transform: translateY(-1px);
- box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
- }
- }
- .btn-view {
- background-color: $info-color;
- color: white;
- border: none;
- &:hover {
- background-color: #138496;
- }
- }
- }
- }
- .no-data {
- text-align: center;
- padding: 60px 16px !important;
- color: $text-muted;
- font-style: normal;
- font-size: 15px;
- font-weight: 500;
- }
- }
- }
- // 小表格样式
- .table-small {
- thead th,
- tbody td {
- padding: 12px;
- font-size: 13px;
- }
- thead {
- background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
- }
- }
- }
- // 状态标签样式
- .status-badge {
- padding: 6px 12px;
- border-radius: 50px;
- font-size: 12px;
- font-weight: 600;
- text-align: center;
- min-width: 80px;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- transition: all 0.3s ease;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- &:hover {
- transform: translateY(-1px);
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
- }
- &.status-pending {
- background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
- color: #c7794c;
- }
- &.status-partial {
- background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
- color: #5e4b8b;
- }
- &.status-completed {
- background: linear-gradient(135deg, #c1fcd3 0%, #02b875 100%);
- color: white;
- }
- &.status-discrepancy {
- background: linear-gradient(135deg, #ffc6ff 0%, #b967ff 100%);
- color: white;
- }
- }
- // 交易类型标签样式
- .transaction-type {
- padding: 6px 12px;
- border-radius: 50px;
- font-size: 12px;
- font-weight: 600;
- text-align: center;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- transition: all 0.3s ease;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- &:hover {
- transform: translateY(-1px);
- box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
- }
- &.transaction-payment {
- background: linear-gradient(135deg, #c1fcd3 0%, #02b875 100%);
- color: white;
- }
- &.transaction-expense {
- background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
- color: #c74a50;
- }
- &.transaction-refund {
- background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
- color: #c7794c;
- }
- }
- // 按钮样式
- .btn {
- padding: 10px 20px;
- border: none;
- border-radius: 8px;
- font-size: 14px;
- font-weight: 500;
- cursor: pointer;
- transition: all 0.3s ease;
- display: inline-flex;
- align-items: center;
- justify-content: center;
- gap: 8px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
- &:disabled {
- opacity: 0.6;
- cursor: not-allowed;
- transform: none !important;
- box-shadow: none;
- }
- &.btn-primary {
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- &:hover:not(:disabled) {
- transform: translateY(-2px);
- box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
- }
- }
- &.btn-secondary {
- background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
- color: $text-primary;
- border: 1px solid $border-color;
- &:hover:not(:disabled) {
- transform: translateY(-2px);
- box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
- background: linear-gradient(135deg, #e6e9f0 0%, #d1d8e0 100%);
- }
- }
- &.btn-sm {
- padding: 6px 16px;
- font-size: 13px;
- text-transform: none;
- letter-spacing: normal;
- }
- // 成功状态按钮
- &.btn-success {
- background: linear-gradient(135deg, #c1fcd3 0%, #02b875 100%);
- color: white;
- &:hover:not(:disabled) {
- transform: translateY(-2px);
- box-shadow: 0 6px 16px rgba(2, 184, 117, 0.4);
- }
- }
- // 危险状态按钮
- &.btn-danger {
- background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
- color: #c74a50;
- &:hover:not(:disabled) {
- transform: translateY(-2px);
- box-shadow: 0 6px 16px rgba(255, 154, 158, 0.4);
- }
- }
- }
- // 模态框样式
- .modal-overlay {
- position: fixed;
- top: 0;
- left: 0;
- right: 0;
- bottom: 0;
- background-color: rgba(0, 0, 0, 0.6);
- display: flex;
- align-items: center;
- justify-content: center;
- z-index: 1000;
- backdrop-filter: blur(4px);
- animation: fadeIn 0.3s ease;
- }
- @keyframes fadeIn {
- from { opacity: 0; }
- to { opacity: 1; }
- }
- .modal-content {
- background-color: $background-white;
- border-radius: 16px;
- box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
- width: 90%;
- max-width: 800px;
- max-height: 90vh;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- animation: slideIn 0.3s ease;
- border: 1px solid $border-color;
- }
- @keyframes slideIn {
- from {
- opacity: 0;
- transform: translateY(-20px);
- }
- to {
- opacity: 1;
- transform: translateY(0);
- }
- }
- .modal-header {
- display: flex;
- justify-content: space-between;
- align-items: center;
- padding: 24px 32px;
- border-bottom: 1px solid $border-color;
- background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
- color: white;
- h3 {
- font-size: 22px;
- font-weight: 600;
- margin: 0;
- display: flex;
- align-items: center;
- gap: 10px;
- }
- .modal-close {
- background: rgba(255, 255, 255, 0.2);
- border: none;
- font-size: 24px;
- cursor: pointer;
- color: white;
- padding: 0;
- width: 40px;
- height: 40px;
- display: flex;
- align-items: center;
- justify-content: center;
- border-radius: 50%;
- transition: all 0.3s ease;
- &:hover {
- background: rgba(255, 255, 255, 0.3);
- transform: rotate(90deg);
- }
- }
- }
- .modal-body {
- padding: 32px;
- overflow-y: auto;
- flex: 1;
- // 详情网格样式
- .detail-grid {
- display: grid;
- grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
- gap: 20px;
- margin-bottom: 32px;
- .detail-item {
- display: flex;
- flex-direction: column;
- gap: 8px;
- padding: 16px;
- background-color: #f8fafc;
- border-radius: 12px;
- border: 1px solid $border-color;
- transition: all 0.3s ease;
- &:hover {
- transform: translateY(-2px);
- box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
- }
- &.full-width {
- grid-column: 1 / -1;
- }
- label {
- font-size: 13px;
- font-weight: 600;
- color: $text-secondary;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
- span {
- font-size: 16px;
- font-weight: 500;
- color: $text-primary;
- }
- }
- }
- // 交易记录区域
- .transactions-section {
- margin-top: 32px;
- h4 {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary;
- margin-bottom: 20px;
- display: flex;
- align-items: center;
- gap: 8px;
- }
- }
- // 表单样式
- .form-group {
- margin-bottom: 24px;
- label {
- display: block;
- font-size: 14px;
- font-weight: 600;
- color: $text-secondary;
- margin-bottom: 8px;
- text-transform: uppercase;
- letter-spacing: 0.5px;
- }
- .form-control {
- width: 100%;
- padding: 12px 16px;
- border: 1px solid $border-color;
- border-radius: 8px;
- font-size: 14px;
- transition: all 0.3s ease;
- background-color: $background-white;
- &:focus {
- outline: none;
- border-color: $primary-color;
- box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
- }
- }
- textarea {
- resize: vertical;
- min-height: 100px;
- }
- }
- // 对账预览
- .reconciliation-preview {
- margin-top: 32px;
- padding-top: 24px;
- border-top: 1px solid $border-color;
- h4 {
- font-size: 18px;
- font-weight: 600;
- color: $text-primary;
- margin-bottom: 20px;
- display: flex;
- align-items: center;
- gap: 8px;
- }
- }
- }
- .modal-footer {
- display: flex;
- justify-content: flex-end;
- gap: 16px;
- padding: 24px 32px;
- border-top: 1px solid $border-color;
- background-color: #f8fafc;
- }
- // 对账模态框特定样式
- .reconcile-modal {
- max-width: 900px;
- }
- // 响应式设计
- @media (max-width: 768px) {
- padding: 16px;
- .page-header {
- flex-direction: column;
- gap: 16px;
- align-items: stretch;
- padding: 16px;
- h2 {
- font-size: 24px;
- text-align: center;
- }
- .header-actions {
- text-align: center;
- order: 3;
- }
- .back-to-dashboard-btn {
- justify-content: center;
- order: 1;
- }
- }
- .filter-section {
- flex-direction: column;
- padding: 16px;
- .filter-group {
- min-width: auto;
- width: 100%;
- }
- }
- .section-card {
- margin-bottom: 20px;
- .section-header {
- padding: 16px;
- h3 {
- font-size: 18px;
- }
- }
- }
- .table-responsive {
- .table {
- thead {
- display: none;
- }
- tbody tr {
- display: block;
- margin-bottom: 16px;
- border-radius: 8px;
- border: 1px solid $border-color;
- overflow: hidden;
- }
- tbody td {
- display: flex;
- justify-content: space-between;
- padding: 12px 16px;
- border-bottom: 1px solid $border-color;
- text-align: right;
- &:before {
- content: attr(data-label);
- font-weight: 600;
- color: $text-secondary;
- text-align: left;
- }
- &:last-child {
- border-bottom: none;
- }
- .btn {
- padding: 4px 12px;
- font-size: 12px;
- margin-left: auto;
- }
- .status-badge,
- .transaction-type {
- margin-left: auto;
- }
- }
- }
- }
- .modal-content {
- width: 95%;
- margin: 10px;
- border-radius: 12px;
- .modal-header {
- padding: 16px 20px;
- h3 {
- font-size: 18px;
- }
- }
- .modal-body {
- padding: 16px;
- .detail-grid {
- grid-template-columns: 1fr;
- gap: 12px;
- .detail-item {
- padding: 12px;
- }
- }
- .form-group {
- margin-bottom: 16px;
- }
- .transactions-section,
- .reconciliation-preview {
- margin-top: 20px;
- h4 {
- font-size: 16px;
- }
- }
- }
- .modal-footer {
- padding: 16px 20px;
- flex-direction: column;
- }
- }
- }
- // 超小屏幕适配
- @media (max-width: 480px) {
- .page-header {
- padding: 12px;
- }
- .filter-section {
- padding: 12px;
- }
- .table-responsive {
- .table {
- tbody td {
- padding: 8px 12px;
- font-size: 13px;
- }
- }
- }
- .modal-content {
- .modal-header {
- padding: 12px 16px;
- h3 {
- font-size: 16px;
- }
- }
- .modal-body {
- padding: 12px;
- }
- .modal-footer {
- padding: 12px 16px;
- }
- }
- }
- }
|