
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef3 100%);
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 2400px;
    width: 95%;
    margin: 0 auto;
}

/* 精緻的紅色漸層頭部 */
.header {
    background: linear-gradient(135deg, #e63946 0%, #d62828 50%, #9d0208 100%);
    padding: 25px 40px;
    border-radius: 20px 20px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 
        0 10px 30px rgba(214, 40, 40, 0.3),
        0 5px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    z-index: 1;
}

.header h1 {
    color: white;
    font-size: 36px;
    font-weight: 700;
    text-shadow: 
        2px 2px 4px rgba(0,0,0,0.3),
        0 0 20px rgba(255, 255, 255, 0.2);
    letter-spacing: 2px;
}

.header-right {
    display: flex;
    gap: 15px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.user-info {
    color: white;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 500;
    box-shadow: 
        0 4px 15px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* 精緻的分頁設計 */
.nav-tabs {
    display: flex;
    background: white;
    border-bottom: 3px solid #e63946;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-tab {
    flex: 1;
    padding: 22px;
    text-align: center;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    color: #666;
    position: relative;
    letter-spacing: 1px;
}

.nav-tab::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #e63946, #d62828);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.nav-tab.active {
    background: white;
    color: #e63946;
    box-shadow: 0 -2px 10px rgba(230, 57, 70, 0.1);
}

.nav-tab.active::before {
    width: 100%;
}

.nav-tab:hover:not(.active) {
    background: linear-gradient(to bottom, #fff 0%, #fafafa 100%);
    color: #e63946;
}

.content {
    background: white;
    padding: 35px;
    min-height: 700px;
    border-radius: 0 0 20px 20px;
    box-shadow:
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.05);
}

.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tab-content.active {
    display: block;
}

/* POS 接單台樣式 - 精緻升級 */
.pos-layout {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: 30px;
    min-height: 750px;
}

.products-section {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 20px;
    overflow-y: auto;
    padding: 10px;
    padding-right: 15px;
    align-content: start;
}

.products-section::-webkit-scrollbar {
    width: 10px;
}

.products-section::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.products-section::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e63946, #d62828);
    border-radius: 10px;
}

.product-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 18px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(230, 57, 70, 0.05) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.4s;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: #e63946;
    box-shadow: 
        0 15px 35px rgba(230, 57, 70, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
}

.product-card:hover::before {
    opacity: 1;
}

.product-icon {
    background: linear-gradient(135deg, #e63946, #d62828);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
    position: relative;
    z-index: 1;
    display: inline-block;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
    position: relative;
    z-index: 1;
}

.product-price {
    font-size: 22px;
    color: #e63946;
    font-weight: 700;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(230, 57, 70, 0.2);
}

.quantity-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
    position: relative;
    z-index: 1;
}

.qty-btn {
    width: 42px;
    height: 42px;
    border: none;
    background: linear-gradient(135deg, #e63946 0%, #d62828 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 4px 12px rgba(230, 57, 70, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.qty-btn:hover {
    transform: scale(1.12);
    box-shadow: 
        0 6px 20px rgba(230, 57, 70, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.qty-btn:active {
    transform: scale(0.95);
}

.qty-display {
    font-size: 26px;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
    color: #e63946;
}

/* 訂單區域 - 精緻升級 */
.order-section {
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid #e8e8e8;
    border-radius: 18px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    box-shadow: 
        inset 0 2px 10px rgba(0, 0, 0, 0.03),
        0 5px 20px rgba(0, 0, 0, 0.05);
}

.customer-select {
    width: 100%;
    padding: 16px 20px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #e63946;
    border-radius: 14px;
    margin-bottom: 22px;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 3px 10px rgba(230, 57, 70, 0.15);
}

.customer-select:focus {
    outline: none;
    border-color: #d62828;
    box-shadow: 0 5px 20px rgba(230, 57, 70, 0.25);
}

.order-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 22px;
    background: white;
    padding: 18px;
    border-radius: 14px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
    min-height: 200px;
    max-height: none;
}

.order-items::-webkit-scrollbar {
    width: 8px;
}

.order-items::-webkit-scrollbar-track {
    background: #f8f8f8;
    border-radius: 10px;
}

.order-items::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #e63946, #d62828);
    border-radius: 10px;
}

.order-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 16px;
    transition: all 0.3s;
    gap: 10px;
}

.order-item:hover {
    background: linear-gradient(to right, rgba(230, 57, 70, 0.03), transparent);
    padding-left: 10px;
    margin-left: -10px;
    border-radius: 8px;
}

.order-item:last-child {
    border-bottom: none;
}

.order-item-name {
    flex: 1;
    font-weight: 600;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.order-qty-input {
    width: 60px;
    padding: 6px 10px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    transition: all 0.3s;
}

.order-qty-input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.2);
}

.order-item-price {
    min-width: 100px;
    text-align: right;
    font-weight: 700;
    color: #e63946;
}

.btn-remove-item {
    width: 32px;
    height: 32px;
    border: none;
    background: linear-gradient(135deg, #f44336, #e53935);
    color: white;
    border-radius: 8px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.btn-remove-item:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
}

.shipping-editor {
    display: flex;
    align-items: center;
    gap: 10px;
}

.shipping-input {
    width: 100px;
    padding: 8px 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    text-align: right;
    font-size: 18px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s;
}

.shipping-input:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
}

.shipping-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

/* 精緻的訂單摘要 */
.order-summary {
    background: linear-gradient(135deg, #e63946 0%, #d62828 50%, #9d0208 100%);
    color: white;
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 18px;
    box-shadow: 
        0 8px 25px rgba(230, 57, 70, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.order-summary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.1) 100%);
    pointer-events: none;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 18px;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.summary-row.total {
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 12px;
    padding-top: 18px;
    font-size: 26px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* 精緻按鈕設計 */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.btn {
    padding: 18px;
    font-size: 18px;
    font-weight: 700;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn span {
    position: relative;
    z-index: 1;
}

.btn-print-small {
    background: linear-gradient(135deg, #ffc107 0%, #ffb300 100%);
    color: #333;
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.35);
}

.btn-print-small:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.45);
}

.btn-print-full {
    background: linear-gradient(135deg, #4caf50 0%, #43a047 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.35);
}

.btn-print-full:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(76, 175, 80, 0.45);
}

.btn-confirm {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #e63946 0%, #d62828 50%, #9d0208 100%);
    color: white;
    font-size: 22px;
    padding: 24px;
    box-shadow: 0 8px 25px rgba(230, 57, 70, 0.4);
}

.btn-confirm:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 35px rgba(230, 57, 70, 0.5);
}

.btn:active {
    transform: scale(0.97);
}

/* 客戶管理樣式 */
.customer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    padding: 20px;
}

.customer-card {
    background: white;
    border: 2px solid #f0f0f0;
    border-radius: 18px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.customer-card:hover {
    border-color: #e63946;
    box-shadow: 
        0 15px 40px rgba(230, 57, 70, 0.2),
        0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-8px);
}

.customer-icon {
    font-size: 64px;
    margin-bottom: 18px;
    filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.1));
}

.customer-name {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.customer-type {
    display: inline-block;
    padding: 6px 18px;
    background: linear-gradient(135deg, #ffc107, #ffb300);
    color: #333;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.3);
}

.customer-type.vip {
    background: linear-gradient(135deg, #e63946, #d62828);
    color: white;
    box-shadow: 0 3px 10px rgba(230, 57, 70, 0.3);
}

.customer-info {
    font-size: 15px;
    color: #666;
    margin-top: 12px;
    line-height: 1.8;
}

/* 歷史查詢樣式 */
.search-bar {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    padding: 25px;
    background: linear-gradient(to bottom, #fafafa, #f5f5f5);
    border-radius: 18px;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-input {
    flex: 1;
    padding: 16px 20px;
    font-size: 18px;
    border: 2px solid #e0e0e0;
    border-radius: 14px;
    transition: all 0.3s;
    font-weight: 500;
}

.search-input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.btn-search {
    padding: 16px 45px;
    background: linear-gradient(135deg, #e63946, #d62828);
    color: white;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
    transition: all 0.3s;
    letter-spacing: 1px;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.45);
}

/* 精緻表格 */
.history-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    border-radius: 18px;
    overflow: hidden;
}

.history-table thead {
    background: linear-gradient(135deg, #e63946 0%, #d62828 50%, #9d0208 100%);
    color: white;
}

.history-table th {
    padding: 20px;
    text-align: left;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.history-table td {
    padding: 18px 20px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 15px;
    font-weight: 500;
}

.history-table tr {
    transition: all 0.3s;
}

.history-table tbody tr:hover {
    background: linear-gradient(to right, rgba(230, 57, 70, 0.05), transparent);
    transform: scale(1.01);
}

.btn-reprint {
    padding: 10px 22px;
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
    transition: all 0.3s;
}

.btn-reprint:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(76, 175, 80, 0.4);
}

.status-badge {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.status-completed {
    background: linear-gradient(135deg, #c8e6c9, #a5d6a7);
    color: #2e7d32;
}

.status-pending {
    background: linear-gradient(135deg, #fff9c4, #fff59d);
    color: #f57f17;
}

/* 通知訊息 */
.notification {
    position: fixed;
    top: 100px;
    right: 30px;
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: white;
    padding: 20px 35px;
    border-radius: 14px;
    box-shadow: 0 10px 35px rgba(76, 175, 80, 0.4);
    display: none;
    z-index: 1000;
    animation: slideIn 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-weight: 600;
    font-size: 16px;
}

@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.notification.show {
    display: block;
}

.notification.error {
    background: linear-gradient(135deg, #f44336, #e53935);
}

.print-icon {
    margin-right: 8px;
}

/* 頁面標題 */
.page-title {
    margin-bottom: 35px;
    color: #333;
    font-size: 32px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
}

.page-title::before {
    content: '';
    width: 6px;
    height: 40px;
    background: linear-gradient(to bottom, #e63946, #d62828);
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.3);
}

/* 撿貨單對話框樣式 */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    font-size: 28px;
    font-weight: 700;
    color: #e63946;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.modal-body {
    margin-bottom: 30px;
}

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-size: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s;
    font-family: inherit;
}

.form-input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 4px 15px rgba(230, 57, 70, 0.2);
}

.form-input::placeholder {
    color: #999;
}

.modal-footer {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.btn-modal {
    padding: 14px 30px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-modal-cancel {
    background: #f5f5f5;
    color: #666;
}

.btn-modal-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-modal-confirm {
    background: linear-gradient(135deg, #e63946, #d62828);
    color: white;
    box-shadow: 0 6px 20px rgba(230, 57, 70, 0.35);
}

.btn-modal-confirm:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(230, 57, 70, 0.45);
}

/* 隱藏的撿貨單模板 */
#pickingSlipTemplate {
    position: fixed;
    left: -9999px;
    top: 0;
    width: 80mm;
    background: white;
    padding: 10mm 5mm;
    font-family: "Microsoft JhengHei", "Noto Sans TC", sans-serif;
}

.slip-header {
    text-align: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px dashed #333;
}

.slip-company-name {
    font-size: 20pt;
    font-weight: bold;
    margin-bottom: 5px;
}

.slip-doc-title {
    font-size: 16pt;
    font-weight: bold;
    margin-top: 5px;
}

.slip-info-section {
    margin-bottom: 15px;
    font-size: 11pt;
}

.slip-info-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 0;
    border-bottom: 1px solid #ddd;
}

.slip-info-label {
    font-weight: bold;
}

.slip-items-section {
    margin: 20px 0;
}

.slip-section-title {
    font-size: 14pt;
    font-weight: bold;
    margin-bottom: 10px;
    padding: 5px;
    background: #333;
    color: white;
    text-align: center;
}

.slip-item-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 5px;
    border-bottom: 1px solid #ddd;
    font-size: 12pt;
}

.slip-item-name {
    flex: 1;
    font-weight: bold;
}

.slip-item-qty {
    font-size: 16pt;
    font-weight: bold;
    min-width: 50px;
    text-align: right;
}

.slip-checkbox {
    width: 15px;
    height: 15px;
    border: 2px solid #333;
    display: inline-block;
    margin-right: 10px;
    vertical-align: middle;
}

.slip-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 2px dashed #333;
    font-size: 10pt;
    text-align: center;
}

.slip-notes {
    margin-top: 15px;
    padding: 10px;
    background: #f5f5f5;
    border: 1px solid #ddd;
    font-size: 10pt;
}

.slip-notes-title {
    font-weight: bold;
    margin-bottom: 5px;
}

/* 客戶資訊表單樣式 */
.customer-form {
    background: linear-gradient(to bottom, #fafafa 0%, #f5f5f5 100%);
    border: 2px solid #e8e8e8;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.03);
}

.customer-form-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: color 0.3s;
}

.customer-form-title:hover {
    color: #e63946;
}

#customerFormContent {
    max-height: 500px;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 1;
}

#customerFormContent.collapsed {
    max-height: 0;
    opacity: 0;
}

#customerFormToggleIcon {
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    font-size: 14px;
}

#customerFormToggleIcon.collapsed {
    transform: rotate(-90deg);
}

.customer-form-group {
    margin-bottom: 12px;
}

.customer-form-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}

.customer-form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    transition: all 0.3s;
    font-family: inherit;
    background: white;
}

.customer-form-input:focus {
    outline: none;
    border-color: #e63946;
    box-shadow: 0 2px 8px rgba(230, 57, 70, 0.15);
}

.customer-form-input::placeholder {
    color: #999;
}

.customer-history-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4caf50, #43a047);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 8px;
}

.customer-history-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.customer-history-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #e63946;
    border-radius: 10px;
    margin-top: 5px;
    max-height: 0;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 100;
    transition: max-height 0.3s ease-in-out, opacity 0.3s ease-in-out;
    opacity: 0;
}

.customer-history-list.show {
    max-height: 200px;
    overflow-y: auto;
    opacity: 1;
}

.customer-history-item {
    padding: 12px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s;
}

.customer-history-item:hover {
    background: linear-gradient(to right, rgba(230, 57, 70, 0.05), transparent);
}

.customer-history-item:last-child {
    border-bottom: none;
}

.customer-history-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.customer-history-details {
    font-size: 13px;
    color: #666;
}