* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --background: #f9fafb;
    --foreground: #111827;
    --card: #ffffff;
    --card-foreground: #111827;
    --border: #e5e7eb;
    --input: #e5e7eb;
    --primary: #c14b0c;
    --primary-foreground: #ffffff;
    --secondary: #f3f4f6;
    --secondary-foreground: #111827;
    --muted: #f3f4f6;
    --muted-foreground: #6b7280;
    --accent: #f3f4f6;
    --accent-foreground: #111827;
    --destructive: #dc2626;
    --destructive-foreground: #ffffff;
    --success: #10b981;
    --warning: #f59e0b;
    --info: #f97316;
    --radius: 0.625rem;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* 美化下拉框样式 */
select {
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background-color: var(--card);
    color: var(--foreground);
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    outline: none;
}

select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(234, 88, 12, 0.1);
}

select:hover {
    border-color: var(--input);
}

/* 表格中的下拉框样式 */
.editable-select {
    width: 100%;
    padding: 0.375rem 0.5rem;
    border: 1px solid var(--border);
    border-radius: calc(var(--radius) - 2px);
    background-color: var(--card);
    color: var(--foreground);
    font-size: 0.875rem;
    line-height: 1.25rem;
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    outline: none;
}

.editable-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

.editable-select:hover {
    border-color: var(--input);
}

/* 表单中的下拉框样式 - 仅添加 width，其余继承基础 select */
.form-group select,
.form-select {
    width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background-color: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    font-size: 16px;
}



.app-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 16rem;
    height: 100vh;
    background-color: #111827;
    color: white;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 50;
    display: flex;
    flex-direction: column;
}

.sidebar.open {
    transform: translateX(0);
}

@media (min-width: 1024px) {
    .sidebar {
        transform: translateX(0);
    }
}

.sidebar-header {
    padding: 1.5rem;
    border-bottom: 1px solid #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-container i {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.logo-container h1 {
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1;
}

.logo-container p {
    font-size: 0.75rem;
    color: #9ca3af;
    margin-top: 0.25rem;
}

.close-sidebar {
    display: block;
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
}

@media (min-width: 1024px) {
    .close-sidebar {
        display: none;
    }
}

.close-sidebar:hover {
    color: white;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #d1d5db;
    text-decoration: none;
    transition: all 0.15s ease;
    margin-bottom: 0.25rem;
}

.nav-item:hover {
    background-color: #1f2937;
    color: white;
}

.nav-item.active {
    background-color: var(--primary);
    color: white;
}

.nav-item i {
    width: 1.25rem;
    height: 1.25rem;
}

.nav-group {
    margin-bottom: 0.5rem;
}

.nav-group-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    color: #d1d5db;
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nav-group-header > div {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
}

.nav-group-header:hover {
    background-color: #1f2937;
    color: white;
}

.nav-group-header .arrow {
    transition: transform 0.2s ease;
}

.nav-group-header.expanded .arrow {
    transform: rotate(180deg);
}

.nav-group-content {
    display: none;
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.nav-group-content.expanded {
    display: block;
}

.nav-group-content .nav-item {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
}

.sidebar-footer {
    padding: 1rem;
    border-top: 1px solid #374151;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #374151;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.user-avatar.small {
    width: 2rem;
    height: 2rem;
    font-size: 0.75rem;
}

.user-name {
    font-size: 0.875rem;
    font-weight: 500;
}

.user-email {
    font-size: 0.75rem;
    color: #9ca3af;
}

.main-content {
    flex: 1;
    margin-left: 0;
    transition: margin-left 0.3s ease-in-out;
}

@media (min-width: 1024px) {
    .main-content {
        margin-left: 16rem;
    }
}

.top-bar {
    background-color: white;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 30;
}

.menu-toggle {
    display: block;
    background: none;
    border: none;
    color: #4b5563;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.5rem;
}

@media (min-width: 1024px) {
    .menu-toggle {
        display: none;
    }
}

.menu-toggle:hover {
    color: #111827;
}

.top-bar h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.page-content {
    padding: 1.5rem;
}

.page-header {
    margin-bottom: 1.5rem;
}


.page-header h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}

.page-header p {
    color: #6b7280;
}

.page-header-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.page-header-actions h1{
  font-size: 1.5rem;
}

.page-header-actions p{
  font-size: 1rem;
  color:#555555;
}

@media (min-width: 640px) {
    .page-header-actions {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.15s ease;
    text-decoration: none;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: #c2410c;
}

.btn-secondary {
    background-color: white;
    color: #374151;
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background-color: #f9fafb;
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    background-color: transparent;
    color: #6b7280;
}

.btn-icon:hover {
    transform: scale(1.1);
}

.btn-icon.blue {
    color: #109ab9;
    background-color: #fff7ed;
}

.btn-icon.blue:hover {
    background-color: #ffedd5;
}

.btn-icon.red {
    color: #ef4444;
    background-color: #fef2f2;
}

.btn-icon.red:hover {
    background-color: #fee2e2;
    transform: scale(1.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stats-grid.small {
    grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 640px) {
    .stats-grid.small {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.stat-card.small {
    padding: 1rem;
}

.stat-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-change.positive {
    color: var(--success);
}

.stat-change.negative {
    color: var(--destructive);
}

.stat-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.stat-icon.blue {
    background-color: #ffedd5;
    color: #ea580c;
}

.stat-icon.green {
    background-color: #d1fae5;
    color: #10b981;
}

.stat-icon.purple {
    background-color: #ede9fe;
    color: #8b5cf6;
}

.stat-icon.orange {
    background-color: #fed7aa;
    color: #f59e0b;
}

.stat-icon.cyan {
    background-color: #cffafe;
    color: #06b6d4;
}

.stat-icon.pink {
    background-color: #fce7f3;
    color: #ec4899;
}

.stat-icon.gray {
    background-color: #f3f4f6;
    color: #6b7280;
}

.stat-icon.yellow {
    background-color: #fef3c7;
    color: #f59e0b;
}

.charts-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 1024px) {
    .charts-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.chart-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
    overflow: hidden;
}

.chart-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.chart-card canvas {
    width: 100% !important;
    height: auto !important;
    max-height: 300px;
}

.bottom-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .bottom-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.info-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.info-card h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 1rem;
}

.booking-list,
.events-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.booking-item,
.event-item {
    padding: 0.75rem;
    background-color: #f9fafb;
    border-radius: 0.5rem;
}

.booking-user {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.booking-user .user-name {
    font-size: 0.875rem;
    font-weight: 500;
    color: #111827;
}

.booking-track {
    font-size: 0.75rem;
    color: #6b7280;
}

.booking-time {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-time p {
    font-size: 0.75rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.status {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status.confirmed {
    background-color: #d1fae5;
    color: #10b981;
}

.status.pending {
    background-color: #fef3c7;
    color: #f59e0b;
}

.status.cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

.event-name {
    font-weight: 500;
    color: #111827;
    margin-bottom: 0.5rem;
}

.event-details {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.event-details p {
    font-size: 0.75rem;
    color: #6b7280;
}

.filter-bar {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .filter-bar {
        flex-direction: row;
        align-items: center;
    }
}

.search-box {
    flex: 1;
    position: relative;
}

.search-box i {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
}

.search-box input {
    width: 100%;
    padding: 0.5rem 1rem 0.5rem 2.5rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

.filter-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.filter-select i {
    color: #9ca3af;
}

.filter-select select {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    background-color: white;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-select select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

.filter-selects {
    display: flex;
    gap: 0.5rem;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.filter-btn:hover {
    background-color: #e5e7eb;
}

.filter-btn.active {
    background-color: var(--primary);
    color: white;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
}

.table-container {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background-color: #f9fafb;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    padding: 0.5rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #6b7280;
}

.data-table td {
    padding: 0.5rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    vertical-align: middle;
}

.data-table tbody tr:hover {
    background-color: #f9fafb;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.data-table .text-right {
    text-align: right;
}

.data-table .editable-input {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    transition: border-color 0.2s ease;
}

.data-table .editable-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.1);
}

.summary-stats {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
}

@media (min-width: 640px) {
    .summary-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.modal {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 50;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.open {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    max-width: 36rem;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large {
    max-width: 42rem;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.modal-header h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #111827;
}

.modal-close {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.25rem;
}

.modal-close:hover {
    color: #111827;
}

.modal-body {
    padding: 1.5rem 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.modal-footer {
    display: flex;
    gap: 0.75rem;
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.modal-footer .btn {
    flex: 1;
    justify-content: center;
}

.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 40;
}

@media (max-width: 1023px) {
    .sidebar-backdrop.open {
        display: block;
    }
}

.hidden {
    display: none !important;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
}

.badge-gray {
    background-color: #f3f4f6;
    color: #374151;
}

.badge-blue {
    background-color: #ffedd5;
    color: #ea580c;
}

.badge-green {
    background-color: #d1fae5;
    color: #10b981;
}

.badge-purple {
    background-color: #ede9fe;
    color: #8b5cf6;
}

.badge-orange {
    background-color: #fed7aa;
    color: #f59e0b;
}

.badge-red {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-pink {
    background-color: #fce7f3;
    color: #ec4899;
}

.badge-indigo {
    background-color: #e0e7ff;
    color: #6366f1;
}

.badge-teal {
    background-color: #ccfbf1;
    color: #14b8a6;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    background-color: #f3f4f6;
    color: #374151;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
}

.view-btn:hover {
    background-color: #e5e7eb;
}

.view-btn.active {
    background-color: white;
    color: #111827;
    box-shadow: var(--shadow);
}

.track-status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .track-status-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.track-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1rem;
    border: 1px solid var(--border);
}

.track-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.track-card-header .track-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.track-card-header .track-icon {
    width: 3rem;
    height: 3rem;
    background-color: #ffedd5;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ea580c;
}

.track-card-header .track-name h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
}

.track-card-header .track-name p {
    font-size: 0.875rem;
    color: #6b7280;
}

.track-card-header .track-availability {
    text-align: right;
}

.track-card-header .track-availability .value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
}

.track-card-header .track-availability .label {
    font-size: 0.75rem;
    color: #6b7280;
}

.track-progress {
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.track-progress-bar {
    height: 100%;
    background-color: var(--primary);
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.calendar-container {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
}

.calendar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.calendar-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
}

.calendar-nav {
    display: flex;
    gap: 0.5rem;
}

.calendar-nav .btn {
    padding: 0.25rem 0.75rem;
    font-size: 0.875rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    padding: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    padding: 0.5rem;
    cursor: pointer;
    transition: all 0.15s ease;
}

.calendar-day:hover {
    border-color: var(--primary);
}

.calendar-day.today {
    border-color: var(--primary);
    background-color: #fff7ed;
}

.calendar-day-number {
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.calendar-day.today .calendar-day-number {
    color: var(--primary);
}

.calendar-day-bookings {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.calendar-day-booking {
    font-size: 0.625rem;
    padding: 0.125rem 0.25rem;
    border-radius: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.calendar-day-booking.confirmed {
    background-color: #d1fae5;
    color: #10b981;
}

.calendar-day-booking.pending {
    background-color: #fef3c7;
    color: #f59e0b;
}

.calendar-day-booking.cancelled {
    background-color: #fee2e2;
    color: #dc2626;
}

.events-grid,
.vehicles-grid,
.branches-grid,
.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .events-grid,
    .vehicles-grid,
    .branches-grid,
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.event-card,
.vehicle-card,
.branch-card,
.project-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.15s ease;
}

.event-card:hover,
.vehicle-card:hover,
.branch-card:hover,
.project-card:hover {
    box-shadow: var(--shadow-lg);
}

.event-card-header,
.vehicle-card-header,
.branch-card-header {
    background: linear-gradient(to right, #ea580c, #c2410c);
    padding: 1.5rem;
    color: white;
}

.event-card-header .event-title,
.vehicle-card-header .vehicle-title,
.branch-card-header .branch-title {
    display: flex;
    align-items: start;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.branch-card-header .branch-title h3 i {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.event-card-header .event-title h3,
.vehicle-card-header .vehicle-title h3,
.branch-card-header .branch-title h3 {
    font-size: 1.25rem;
    font-weight: 700;
}

.event-card-header .event-title .badges,
.vehicle-card-header .vehicle-title .badges,
.branch-card-header .branch-title .badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.event-card-header .event-title .badges .badge,
.vehicle-card-header .vehicle-title .badges .badge,
.branch-card-header .branch-title .badges .badge {
    font-size: 0.75rem;
}

.event-card-header .event-title .icon,
.vehicle-card-header .vehicle-title .icon,
.branch-card-header .branch-title .icon {
    font-size: 2rem;
}

.event-card-header .event-number,
.vehicle-card-header .vehicle-number {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
}

.event-card-header .event-number span,
.vehicle-card-header .vehicle-number span {
    font-size: 0.875rem;
    font-weight: 700;
    font-family: monospace;
}

.event-card-body,
.vehicle-card-body,
.branch-card-body,
.project-card-body {
    padding: 1.5rem;
}

.event-details-list,
.vehicle-details-list,
.branch-details-list,
.project-details-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.event-detail-item,
.vehicle-detail-item,
.branch-detail-item,
.project-detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
}

.event-detail-item i,
.vehicle-detail-item i,
.branch-detail-item i,
.project-detail-item i {
    width: 1rem;
    height: 1rem;
}

.event-detail-item .detail-value,
.vehicle-detail-item .detail-value,
.branch-detail-item .detail-value,
.project-detail-item .detail-value {
    color: #111827;
    font-weight: 500;
}

.progress-section {
    margin-bottom: 1rem;
}

.progress-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.progress-header .label {
    color: #6b7280;
}

.progress-header .value {
    font-weight: 700;
    color: #111827;
}

.progress-bar {
    background-color: #e5e7eb;
    border-radius: 9999px;
    height: 0.5rem;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    border-radius: 9999px;
    transition: width 0.3s ease;
}

.progress-bar-fill.green {
    background-color: var(--success);
}

.progress-bar-fill.blue {
    background-color: var(--info);
}

.progress-bar-fill.yellow {
    background-color: var(--warning);
}

.progress-bar-fill.red {
    background-color: var(--destructive);
}

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

.card-actions .btn {
    flex: 1;
    justify-content: center;
}

.vehicle-card-header .vehicle-title p {
    font-size: 0.875rem;
    color: #ffedd5;
    margin-top: 0.25rem;
}

.vehicle-card-header .vehicle-number {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
}

.vehicle-condition {
    margin-bottom: 1rem;
}

.vehicle-condition .progress-header .value {
    font-weight: 700;
}

.vehicle-stats {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.vehicle-stat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.vehicle-stat .label {
    color: #6b7280;
}

.vehicle-stat .value {
    font-weight: 500;
    color: #111827;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
    .summary-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

.summary-card {
    background-color: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.summary-card.income {
    border-left: 4px solid var(--success);
}

.summary-card.expense {
    border-left: 4px solid var(--destructive);
}

.summary-card.profit {
    border-left: 4px solid var(--info);
}

.summary-info p {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.summary-value {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}

.summary-value.negative {
    color: var(--destructive);
}

.summary-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.summary-card.income .summary-icon {
    background-color: #d1fae5;
    color: var(--success);
}

.summary-card.expense .summary-icon {
    background-color: #fee2e2;
    color: var(--destructive);
}

.summary-card.profit .summary-icon {
    background-color: #ffedd5;
    color: var(--info);
}

/* 通用分页样式 */
.pagination-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 20px;
    padding: 10px 0;
    border-top: 1px solid #dee2e6;
    flex-wrap: wrap;
    gap: 10px;
}

.pagination-info {
    display: flex;
    gap: 15px;
    font-size: 14px;
    color: #6c757d;
}

.pagination-controls {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 6px 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    color: #495057;
    transition: all 0.2s ease;
}

.pagination-btn:hover:not(:disabled) {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.pagination-btn.active {
    background-color: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-numbers {
    display: flex;
    gap: 2px;
}

.page-size-selector {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.page-size-selector select {
    padding: 4px 8px;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    font-size: 14px;
}

@media (max-width: 768px) {
    .pagination-container {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
}

/* 通用加载动画样式 */
.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.7);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.loading-spinner i {
    font-size: 24px;
    color: var(--primary);
}


.branch-revenue {
    padding-top: 0.75rem;
    border-top: 1px solid var(--border);
    margin-bottom: 1rem;
}

.branch-revenue .revenue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.875rem;
}

.branch-revenue .revenue-header .label {
    color: #6b7280;
}

.branch-revenue .revenue-header .value {
    font-weight: 700;
    color: var(--primary);
}

.project-category-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.project-category-badge .badge {
    font-weight: 500;
}

.project-team-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.project-team-info .value {
    font-weight: 500;
    color: #111827;
}

.project-dates {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.project-branch {
    font-size: 0.875rem;
    color: #6b7280;
    margin-bottom: 1rem;
}

.project-branch .label {
    font-weight: 500;
}

.project-budget-section {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.budget-alert {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--destructive);
    margin-top: 0.5rem;
}

.budget-alert i {
    width: 0.75rem;
    height: 0.75rem;
}
