html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Arial, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: #f8fafc !important;
    color: #222 !important;
    color-scheme: only light;
}
header {
    background: #4caf50;
    color: #fff;
    padding: 1rem;
    text-align: center;
}
main {
    padding: 1rem;
    max-width: 480px;
    margin: 0 auto;
}
form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    background: #fff;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    margin-bottom: 1rem;
}
input, select, button {
    font-size: 1.1rem;
    padding: 0.7rem;
    border-radius: 6px;
    border: 1px solid #ddd;
    outline: none;
}

/* 确保日期输入框的日历按钮正常显示 */
input[type="date"] {
    position: relative;
    background: #fff;
    cursor: pointer;
}

/* 确保日期输入框的日历图标可见 */
input[type="date"]::-webkit-calendar-picker-indicator {
    background: transparent;
    bottom: 0;
    color: transparent;
    cursor: pointer;
    height: auto;
    left: auto;
    position: absolute;
    right: 0;
    top: 0;
    width: auto;
}

/* Firefox 日期输入框样式 */
input[type="date"]::-moz-calendar-picker-indicator {
    cursor: pointer;
}
select {
    background: #fff;
    cursor: pointer;
}
select:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
    opacity: 0.7;
}
button {
    background: #4caf50;
    color: #fff;
    border: none;
    margin-top: 0.5rem;
    font-weight: bold;
    transition: background 0.2s;
}
button:active {
    background: #388e3c;
}
.card, .clerk-card, .fund-item, .history-item, .modal-content, .global-toast {
    background: #fff !important;
    color: #222 !important;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
#msg {
    color: #d32f2f;
    text-align: center;
    margin-top: 1rem;
    font-size: 1rem;
}

/* 表格样式 */
.expense-section {
    margin-top: 1rem;
}
.expense-section h3, .expense-section h4 {
    margin: 1rem 0 0.5rem 0;
    color: #333;
    border-bottom: 2px solid #4caf50;
    padding-bottom: 0.3rem;
}
.table-container {
    margin: 1rem 0;
    overflow-x: auto;
}
.expense-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.expense-table th {
    background: #4caf50;
    color: #fff;
    padding: 0.5rem;
    text-align: left;
    font-size: 0.9rem;
    font-weight: bold;
}
.expense-table td {
    padding: 0.3rem;
    border-bottom: 1px solid #eee;
}
.expense-table input {
    width: 100%;
    padding: 0.3rem;
    border: 1px solid #ddd;
    border-radius: 3px;
    font-size: 0.9rem;
    box-sizing: border-box;
}
.delete-row-btn {
    background: #f44336;
    color: #fff;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 3px;
    font-size: 0.8rem;
    cursor: pointer;
}
.delete-row-btn:hover {
    background: #d32f2f;
}
.add-row-btn {
    background: #2196f3;
    color: #fff;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.9rem;
    cursor: pointer;
    margin-top: 0.5rem;
}
.add-row-btn:hover {
    background: #1976d2;
}

.expense-fixed-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.expense-fixed-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.expense-fixed-row label {
    min-width: 3.5em;
    text-align: right;
}
.expense-fixed-row input[type="number"] {
    width: 100%;
    min-width: 0;
    flex: 1 1 0;
}
.expense-fixed-row input[type="text"] {
    width: 100%;
    min-width: 0;
    flex: 1 1 0;
}

@media (max-width: 480px) {
    main {
        padding: 0.5rem;
    }
    form, .card {
        padding: 0.7rem;
    }
    input, select, button {
        font-size: 1rem;
        padding: 0.5rem;
    }
    .expense-table th,
    .expense-table td {
        padding: 0.2rem;
        font-size: 0.8rem;
    }
    .expense-table input {
        padding: 0.2rem;
        font-size: 0.8rem;
    }
    .delete-row-btn {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
    .add-row-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    .expense-fixed-row {
        flex-direction: column;
        align-items: stretch;
    }
    .expense-fixed-row label {
        min-width: unset;
        text-align: left;
    }
}

#global-toast-container {
  position: fixed;
  left: 50%;
  top: 2.5rem;
  bottom: auto;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  width: 100vw;
  max-width: 100vw;
  padding: 0 8px;
}
.global-toast {
  min-width: 180px;
  max-width: 96vw;
  margin: 0.5em 0;
  padding: 1em 1.2em 1em 1em;
  border-radius: 14px;
  box-shadow: 0 4px 18px rgba(0,0,0,0.10);
  background: #fff !important;
  color: #222 !important;
  font-size: 1.08em;
  display: flex;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(-30px) scale(0.98);
  transition: all 0.3s cubic-bezier(.4,2,.6,1);
  pointer-events: auto;
  position: relative;
  line-height: 1.7;
  text-align: left;
  word-break: break-all;
}
.global-toast.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.global-toast.hide {
  opacity: 0;
  transform: translateY(30px) scale(0.98);
}
.global-toast-icon {
  font-size: 1.5em;
  margin-right: 0.7em;
  margin-top: 0.1em;
}
.global-toast-success { border-left: 5px solid #4caf50; }
.global-toast-error { border-left: 5px solid #f44336; }
.global-toast-warning { border-left: 5px solid #ff9800; }
.global-toast-info { border-left: 5px solid #2196f3; }
.global-toast-close {
  background: none;
  border: none;
  color: #888 !important;
  font-size: 1.2em;
  margin-left: 1em;
  cursor: pointer;
  outline: none;
  transition: color 0.2s;
  position: absolute;
  top: 0.5em;
  right: 0.7em;
}
.global-toast-close:hover { color: #f44336; }
@media (max-width: 600px) {
  .global-toast { font-size: 1em; min-width: 120px; max-width: 98vw; }
  #global-toast-container { padding: 0 2vw; }
}

/* 资金页样式 */
.funds-container {
    max-width: 480px;
    margin: 0 auto;
}

.funds-overview {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.fund-item {
    background: #fff;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.fund-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.fund-name {
    font-weight: bold;
    color: #333;
    font-size: 1.1rem;
}

.fund-amount {
    font-size: 1.3rem;
    font-weight: bold;
    color: #4caf50;
}

.fund-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-increase, .btn-decrease {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 0.9rem;
}

.btn-increase {
    background: #4caf50;
    color: #fff;
}

.btn-decrease {
    background: #f44336;
    color: #fff;
}

.funds-history {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    background: #fff;
    border-radius: 6px;
    padding: 0.8rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.history-info {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.history-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.history-account {
    font-weight: bold;
    color: #333;
}

.history-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.amount-positive {
    color: #4caf50;
}

.amount-negative {
    color: #f44336;
}

.history-details {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.9rem;
    color: #666;
}

.history-time {
    color: #999;
}

.history-note {
    color: #666;
    font-style: italic;
}

.no-data {
    text-align: center;
    color: #999;
    padding: 2rem;
    font-style: italic;
}

/* 弹窗样式 */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal.show {
    display: flex !important;
}

.modal-content {
    margin: 0 auto;
    background: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-content h4 {
    margin: 0 0 1rem 0;
    color: #333;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.modal-content label {
    font-weight: bold;
    color: #333;
}

.modal-content input,
.modal-content select {
    padding: 0.7rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

.modal-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.modal-buttons button {
    flex: 1;
    padding: 0.7rem;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
}

.modal-buttons button[type="submit"] {
    background: #4caf50;
    color: #fff;
}

.modal-buttons button[type="button"] {
    background: #f5f5f5;
    color: #333;
}

@media (max-width: 480px) {
    .fund-item {
        padding: 0.8rem;
    }
    
    .fund-name {
        font-size: 1rem;
    }
    
    .fund-amount {
        font-size: 1.2rem;
    }
    
    .btn-increase, .btn-decrease {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .history-item {
        padding: 0.6rem;
    }
    
    .history-amount {
        font-size: 1rem;
    }
    
    .modal-content {
        padding: 1rem;
        width: 95%;
    }
}

/* 统计页面美化 */
.statistics-container {
    max-width: 540px;
    margin: 0 auto;
}

/* 原来的statistics-summary样式已废弃，改用statistics-summary-card */
/* .statistics-summary {
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    word-break: keep-all !important;
    word-wrap: normal !important;
} */

.statistics-summary-card {
    line-height: 1.6 !important;
    word-break: normal !important;
    word-wrap: normal !important;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
}

.card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 1.2em 1em;
    margin-bottom: 1.2em;
    font-size: 1.08em;
}
.card b {
    font-size: 1.1em;
}
.card table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0.5em;
}

.expense-table-container {
    overflow-x: auto;
    max-width: 100%;
    margin: 0.5em 0;
}

.expense-table-container table {
    min-width: 800px;
    white-space: nowrap;
}
.card th {
    background: #f0f4f8;
    color: #388e3c;
    font-weight: bold;
    padding: 0.5em 0.2em;
    border-radius: 6px 6px 0 0;
    text-align: center;
}
.card td {
    text-align: center;
    padding: 0.4em 0.2em;
    font-size: 1.08em;
}
.card .amount-positive {
    color: #388e3c;
    font-weight: bold;
}
.card .amount-negative {
    color: #d32f2f;
    font-weight: bold;
}
.card .amount-highlight {
    color: #ff9800;
    font-weight: bold;
    font-size: 1.15em;
}
.card .amount-cost {
    color: #1976d2;
    font-weight: bold;
}
.card .amount-total {
    font-size: 1.2em;
    font-weight: bold;
}
.card .card-section {
    margin-bottom: 0.5em;
}
.card .card-section:last-child {
    margin-bottom: 0;
}
@media (max-width: 600px) {
    .statistics-container {
        max-width: 100%;
        padding: 0 0.2em;
    }
    .card {
        padding: 0.7em 0.3em;
        font-size: 1em;
    }
    .card th, .card td {
        font-size: 0.98em;
        padding: 0.3em 0.1em;
    }
}

/* 移除任何深色模式适配 */
@media (prefers-color-scheme: dark) {
  html, body, .card, .clerk-card, .fund-item, .history-item, .modal-content, .global-toast {
    background: #fff !important;
    color: #222 !important;
  }
}

/* 收入明细美化 */
.income-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5em;
    margin-bottom: 1.2em;
    max-width: 420px;
}
.income-row {
    display: flex;
    align-items: center;
    gap: 0;
    min-height: 2.4em;
}
.income-row label {
    width: 9.5em;
    text-align: right;
    font-weight: bold;
    color: #333;
    margin-right: 0.7em;
    flex-shrink: 0;
    font-size: 1em;
    line-height: 1.8em;
}
.income-row input[type="number"] {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    padding: 0.45em 0.7em;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
    background: #fff;
}
.income-scroll {
  overflow-x: auto;
  width: 100%;
}
.income-scroll table {
  min-width: 700px;
  width: auto;
  white-space: nowrap;
}

/* 收入分类统计竖向布局 */
.income-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin: 0.5em 0;
}
.income-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3em 0;
  border-bottom: 1px solid #eee;
}
.income-item:last-child {
  border-bottom: none;
}
.income-label {
  color: #333;
  font-size: 1em;
}
.income-amount {
  font-weight: bold;
  font-size: 1em;
}

/* 支出分类统计竖向布局 */
.expense-vertical-list {
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  margin: 0.5em 0;
}
.expense-vertical-list .expense-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.3em 0;
  border-bottom: 1px solid #eee;
}
.expense-vertical-list .expense-item:last-child {
  border-bottom: none;
}
.expense-vertical-list .expense-label {
  color: #333;
  font-size: 1em;
}
.expense-vertical-list .expense-amount {
  font-weight: bold;
  font-size: 1em;
}
@media (max-width: 600px) {
    .income-grid { max-width: 100%; }
    .income-row label { width: 7em; font-size: 0.98em; }
    .income-row input[type="number"] { font-size: 0.98em; }
    
    /* 收入分类统计移动端适配 */
    .income-vertical-list {
        gap: 0.3em;
        margin: 0.4em 0;
    }
    .income-item {
        padding: 0.3em 0;
        font-size: 0.95em;
    }
    .income-label {
        font-size: 0.95em;
    }
    .income-amount {
        font-size: 0.95em;
    }
    
    /* 确保收入分类统计在移动端不换行 */
    .income-item {
        white-space: nowrap;
        overflow: hidden;
    }
    .income-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        margin-right: 0.5em;
    }
    .income-amount {
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    /* 支出分类统计移动端适配 */
    .expense-vertical-list {
        gap: 0.3em;
        margin: 0.4em 0;
    }
    .expense-vertical-list .expense-item {
        padding: 0.3em 0;
        font-size: 0.95em;
    }
    .expense-vertical-list .expense-label {
        font-size: 0.95em;
    }
    .expense-vertical-list .expense-amount {
        font-size: 0.95em;
    }
    
    /* 确保支出分类统计在移动端不换行 */
    .expense-vertical-list .expense-item {
        white-space: nowrap;
        overflow: hidden;
    }
    .expense-vertical-list .expense-label {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        flex: 1;
        margin-right: 0.5em;
    }
    .expense-vertical-list .expense-amount {
        white-space: nowrap;
        flex-shrink: 0;
    }
} 

/* 商品信息管理页美化 */
.products-container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    padding: 2.2rem 2rem 2rem 2rem;
}
.products-container h2 {
    margin-bottom: 1.5rem;
}
#productTab {
    margin-bottom: 1.5rem !important;
    gap: 1.2rem;
    justify-content: flex-start;
}
#productTab .nav-link {
    min-width: 90px;
    margin-right: 0.5rem;
    border-radius: 8px 8px 0 0 !important;
    font-size: 1.08rem;
    padding: 0.7rem 1.2rem;
    background: #e8f5e9;
    color: #388e3c;
    border: none;
    margin-bottom: -2px;
    transition: background 0.2s, color 0.2s;
}
#productTab .nav-link.active {
    background: #4caf50;
    color: #fff;
    font-weight: bold;
}
#product-content {
    margin-top: 1.2rem;
}
#product-input {
    border-radius: 8px 0 0 8px;
    font-size: 1.08rem;
    padding: 0.7rem 1.1rem;
    margin-right: 0;
}
#add-product-btn {
    border-radius: 0 8px 8px 0;
    font-size: 1.08rem;
    padding: 0.7rem 1.3rem;
    margin-left: 0;
    margin-top: 0;
}
#product-select {
    margin-top: 1.2rem;
    margin-bottom: 1.2rem;
    border-radius: 8px;
    font-size: 1.08rem;
    min-height: 3.2rem;
    padding: 0.7rem 1.1rem;
    background: #f5f5f5;
}
#product-actions {
    display: flex;
    gap: 1.2rem;
    margin-top: 1.2rem;
}
#product-actions button {
    min-width: 80px;
    border-radius: 8px;
    font-size: 1.05rem;
    padding: 0.6rem 1.1rem;
}
@media (max-width: 600px) {
    .products-container {
        padding: 1.2rem 0.5rem 1.2rem 0.5rem;
    }
    #productTab .nav-link {
        min-width: 70px;
        font-size: 0.98rem;
        padding: 0.5rem 0.7rem;
    }
    #product-input, #add-product-btn, #product-select {
        font-size: 0.98rem;
        padding: 0.5rem 0.7rem;
    }
    #product-actions button {
        font-size: 0.95rem;
        padding: 0.5rem 0.7rem;
    }
} 

/* 商品信息管理Tab横向按钮美化 */
.product-tab-bar {
    display: flex;
    gap: 1.2rem;
    margin-bottom: 1.5rem;
    justify-content: flex-start;
}
.product-tab-bar .nav-link {
    min-width: 90px;
    border-radius: 8px 8px 0 0 !important;
    font-size: 1.08rem;
    padding: 0.7rem 1.2rem;
    background: #e8f5e9;
    color: #388e3c;
    border: none;
    margin-bottom: -2px;
    transition: background 0.2s, color 0.2s;
    outline: none;
    box-shadow: none;
}
.product-tab-bar .nav-link.active {
    background: #4caf50;
    color: #fff;
    font-weight: bold;
}
.product-tab-bar .nav-link:focus {
    outline: 2px solid #4caf50;
} 

/* 支出时间线样式 */
.expense-timeline {
    position: relative;
    padding-left: 35px;
    margin: 15px 0;
}

.expense-timeline::before {
    content: '';
    position: absolute;
    left: 15px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, #388e3c, #d32f2f);
}

.timeline-item {
    position: relative;
    margin-bottom: 12px;
    padding-left: 20px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -8px;
    top: 8px;
    width: 16px;
    height: 16px;
    background: #388e3c;
    border: 2px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #388e3c;
    z-index: 2;
}

.timeline-item:last-child::before {
    background: #d32f2f;
    box-shadow: 0 0 0 2px #d32f2f;
}

.timeline-date {
    font-weight: bold;
    font-size: 0.9em;
    color: #333;
    margin-bottom: 6px;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 3px;
    border-left: 3px solid #666;
}

.timeline-content {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.expense-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
}

.expense-item:last-child {
    border-bottom: none;
}

.expense-type {
    font-weight: bold;
    color: #333;
    flex: 1;
    font-size: 0.85em;
}

.expense-amount {
    font-weight: bold;
    color: #e74c3c;
    margin-left: 8px;
    font-size: 0.85em;
}

/* 收入项目样式 */
.income-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2px 0;
    border-bottom: 1px solid #f0f0f0;
    background: #f8f9fa;
    border-left: 3px solid #27ae60;
    margin: 2px 0;
    padding-left: 8px;
}

.income-item:last-child {
    border-bottom: none;
}

.income-amount {
    font-weight: bold;
    color: #27ae60;
    margin-left: 8px;
    font-size: 0.85em;
}

.expense-remark {
    font-size: 0.9em;
    color: #666;
    font-style: italic;
    margin-top: 4px;
    padding: 4px 8px;
    border-left: 2px solid #e0e0e0;
    background-color: #f9f9f9;
    border-radius: 3px;
}

.remark-clerk {
    font-weight: bold;
    color: #333;
    margin-right: 6px;
}

.remark-content {
    color: #555;
}


.day-remarks {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #e0e0e0;
}

.day-remarks .expense-remark {
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #666;
    font-size: 0.9em;
    color: #555;
    font-style: normal;
}

/* 时间线卡片头部样式 */
.timeline-card {
    position: relative;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1em;
}

.timeline-switch {
    display: flex;
    align-items: center;
    gap: 8px;
}

.switch-label {
    font-size: 0.9em;
    color: #666;
    font-weight: normal;
}

/* Switch按钮样式 */
.switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
}

input:checked + .slider {
    background-color: #388e3c;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.slider.round {
    border-radius: 24px;
}

.slider.round:before {
    border-radius: 50%;
}

/* 响应式设计 */
@media (max-width: 600px) {
    .expense-timeline {
        padding-left: 25px;
        margin: 10px 0;
    }
    
    .timeline-item {
        padding-left: 15px;
        margin-bottom: 15px;
    }
    
    .timeline-item::before {
        left: -6px;
        width: 12px;
        height: 12px;
        top: 6px;
    }
    
    .timeline-date {
        font-size: 0.9em;
        padding: 4px 8px;
        margin-bottom: 6px;
    }
    
    .timeline-content {
        padding: 4px;
        border-radius: 3px;
    }
    
    .expense-item {
        flex-direction: column;
        align-items: flex-start;
        padding: 1px 0;
    }
    
    .expense-type {
        font-size: 0.8em;
    }
    
    .expense-amount {
        margin-left: 0;
        margin-top: 2px;
        font-size: 0.8em;
    }
    
    .expense-remark {
        font-size: 0.7em;
        margin-top: 1px;
        padding-left: 6px;
    }
    
} 