* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
    background-color: #f5f5f5;
    margin: 0;
    padding: 15px;
    min-height: 100vh;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
}

.price-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
    height: calc(100vh - 30px);
    display: flex;
    flex-direction: column;
}

.card-header {
    background-color: #4a90e2;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h1 {
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.close-btn {
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.card-body {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.summary-section {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
}

.summary-section h2 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #333;
}

.price-summary {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed #eee;
}

.summary-item.total {
    font-weight: bold;
    font-size: 18px;
    color: #e74c3c;
    border-bottom: none;
    margin-top: 5px;
}

.tabs {
    display: flex;
    margin: 20px 20px 0 20px;
    border-bottom: 1px solid #ddd;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.tab {
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px 5px 0 0;
    background-color: #f5f5f5;
    margin-right: 5px;
    margin-bottom: 5px;
}

.tab.active {
    background-color: #4a90e2;
    color: white;
}

.tab-content {
    position: relative;
    flex: 1;
    overflow: hidden;
}

.tab-pane {
    display: none;
    height: 100%;
    overflow: hidden;
    flex-direction: column;
}

.tab-pane.active {
    display: flex;
}



.room-summary {
    flex-shrink: 0;
    background-color: #f9f9f9;
    padding: 15px;
    margin: 10px 20px 0 20px;
    border-bottom: 1px solid #eee;
}

.room-tabs {
    display: flex;
    padding: 10px 20px;
    flex-shrink: 0;
}

.room-tab {
    padding: 5px 15px;
    cursor: pointer;
    border-radius: 3px;
    margin-right: 10px;
    background-color: #eee;
}

.room-tab.active {
    background-color: #4a90e2;
    color: white;
}

.room-tab-content {
    padding: 10px 20px;
    flex: 1;
    overflow: hidden;
}

.room-tab-pane {
    display: none;
    height: 100%;
    overflow: hidden;
}

.room-tab-pane.active {
    display: flex;
    flex-direction: column;
}

.item-list {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.item-table {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    background-color: white;
    margin-top: 5px;
}

.item-table-header {
    display: flex;
    background-color: #f5f5f5;
    border-bottom: 1px solid #e1e4e8;
    font-weight: bold;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.item-table-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: white;
}

.item-table-header > div,
.item-table-row > div {
    padding: 0 16px;
    text-align: left;
    display: flex;
    align-items: center;
}

.item-table-header .col-image,
.item-table-row .col-image {
    width: 80px;
    flex-shrink: 0;
}

.item-table-header .col-name,
.item-table-row .col-name {
    flex: 2;
    min-width: 150px;
    font-weight: 500;
    color: #24292e;
}

.item-table-header .col-model,
.item-table-row .col-model {
    flex: 1;
    min-width: 120px;
}

.item-table-header .col-unit-price,
.item-table-row .col-unit-price {
    width: 120px;
    flex-shrink: 0;
    justify-content: flex-end;
    color: #586069;
    font-size: 14px;
}

.item-table-header .col-quantity,
.item-table-row .col-quantity {
    width: 80px;
    flex-shrink: 0;
    justify-content: center;
    color: #586069;
    font-size: 14px;
}

.item-table-header .col-total,
.item-table-row .col-total {
    width: 120px;
    flex-shrink: 0;
    justify-content: flex-end;
}

.item-table-row {
    display: flex;
    border-bottom: 1px solid #e1e4e8;
    padding: 12px 0;
    align-items: center;
    transition: background-color 0.2s;
}

.item-table-row:hover {
    background-color: #f6f8fa;
}

.item-image-small {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    margin: 0;
    background-color: #f6f8fa;
}

.item-image-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.item-model-text {
    font-size: 13px;
    color: #6a737d;
    font-weight: 400;
}

.item-price-value {
    font-weight: 600;
    color: #d73a49;
    font-size: 15px;
}

.empty-message {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 40px 20px;
}



#summary-tab {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
}

@media (max-width: 768px) {
    .price-card {
        border-radius: 0;
        height: 100vh;
    }
    
    body {
        padding: 0;
    }
    
    .item-table-header .col-model,
    .item-table-row .col-model {
        display: none;
    }
    
    .item-table-header .col-image,
    .item-table-row .col-image {
        width: 60px;
    }
    
    .item-table-header .col-name,
    .item-table-row .col-name {
        flex: 1;
        min-width: 100px;
    }
    
    .item-table-header .col-unit-price,
    .item-table-row .col-unit-price {
        width: 80px;
        font-size: 12px;
    }
    
    .item-table-header .col-quantity,
    .item-table-row .col-quantity {
        width: 60px;
    }
    
    .item-table-header .col-total,
    .item-table-row .col-total {
        width: 90px;
        font-size: 12px;
    }
}