/* Version 3.2.98 - Nested routing with [table]/[id] structure */

/* ==================== 認証画面 ==================== */
.auth-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.auth-container {
    background: white;
    padding: 2.5rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    width: 90%;
    max-width: 400px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: #64748b;
    font-size: 0.95rem;
}

.auth-form {
    margin-bottom: 1rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #334155;
}

.auth-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.2s;
}

.auth-form input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn-block {
    width: 100%;
    padding: 0.875rem;
    font-size: 1rem;
    font-weight: 600;
}

.auth-error {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: #64748b;
}

/* ==================== グローバルスタイル ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --secondary-color: #64748b;
    --secondary-hover: #475569;
    --danger-color: #dc2626;
    --danger-hover: #b91c1c;
    --success-color: #16a34a;
    --warning-color: #f59e0b;
    --bg-color: #f8fafc;
    --surface-color: #ffffff;
    --border-color: #e2e8f0;
    --text-primary: #0f172a;
    --text-secondary: #64748b;
    --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);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
        'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Hiragino Sans',
        'Hiragino Kaku Gothic ProN', 'Meiryo', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ==================== ヘッダー ==================== */
header {
    background-color: var(--surface-color);
    padding: 1rem 2rem;
    box-shadow: var(--shadow);
    display: flex;
    justify-content: center;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

header h1 {
    font-size: 1.5rem;
    color: var(--primary-color);
    font-weight: 700;
}

/* ==================== タブナビゲーション ==================== */
.tab-nav {
    background-color: var(--surface-color);
    padding: 0.5rem 1rem;
    box-shadow: var(--shadow);
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
}

.tab-nav::-webkit-scrollbar {
    height: 6px;
}

.tab-nav::-webkit-scrollbar-track {
    background: var(--bg-color);
}

.tab-nav::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.tab-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    background-color: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    transition: all 0.2s;
    font-size: 0.95rem;
    font-weight: 500;
}

.tab-btn:hover {
    background-color: var(--bg-color);
    color: var(--text-primary);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

/* ==================== メインコンテンツ ==================== */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== サブタブナビゲーション ==================== */
.sub-tab-navigation {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0;
}

.sub-tab-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.sub-tab-btn:hover {
    color: var(--primary-color);
    background-color: rgba(37, 99, 235, 0.05);
}

.sub-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
    font-weight: 600;
}

.sub-tab-pane {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.sub-tab-pane.active {
    display: block;
}

h2 {
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    font-weight: 600;
}

h3 {
    font-size: 1.25rem;
    margin: 1.5rem 0 1rem;
    color: var(--text-primary);
    font-weight: 600;
}

/* ==================== ボタン ==================== */
.btn-primary,
.btn-secondary,
.btn-danger {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

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

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

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

.btn-secondary:hover {
    background-color: var(--secondary-hover);
}

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

.btn-danger:hover {
    background-color: var(--danger-hover);
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==================== フォーム ==================== */
.reservation-form,
.lottery-settings {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

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

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 500;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.required {
    color: var(--danger-color);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: border-color 0.2s;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.katakana-display {
    font-size: 0.9rem;
    color: var(--text-secondary);
    padding: 0.5rem;
    background-color: var(--bg-color);
    border-radius: 0.25rem;
}

.katakana-display span {
    font-weight: 600;
    color: var(--primary-color);
}

/* 時間入力 */
.time-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-input select {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* 注文内容 */
.order-items {
    display: grid;
    gap: 1rem;
}

.order-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
}

.order-item-name {
    font-weight: 500;
    flex: 1;
}

.order-item-controls {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.quantity-btn {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background-color: var(--primary-color);
    color: white;
    border-radius: 0.375rem;
    font-size: 1.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.quantity-display {
    min-width: 3rem;
    text-align: center;
    font-weight: 600;
    font-size: 1.1rem;
}

/* 金額表示 */
.price-display {
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    border: 2px solid var(--primary-color);
}

.price-display div {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.25rem 0;
}

.price-display span {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* 会計状況ボタン */
.payment-status-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.status-btn {
    flex: 1;
    min-width: 100px;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    background-color: var(--surface-color);
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 1rem;
    font-weight: 500;
}

.status-btn:hover {
    border-color: var(--primary-color);
}

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

/* 日時表示 */
.datetime-display {
    padding: 0.75rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* フォームアクション */
.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    justify-content: flex-end;
}

/* ==================== テーブル ==================== */
.table-container {
    overflow-x: auto;
    background-color: var(--surface-color);
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin: 1rem 0;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.data-table thead {
    background-color: var(--primary-color);
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.data-table tbody tr:hover {
    background-color: var(--bg-color);
}

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

/* テーブル内ボタン */
.table-btn {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 500;
}

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

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

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

.table-btn-danger:hover {
    background-color: var(--danger-hover);
}

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

/* ==================== モーダル ==================== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal-content {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    animation: slideUp 0.3s;
}

.modal-content.large {
    max-width: 800px;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-primary);
}

.modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

/* ==================== 検索 ==================== */
.search-container {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.search-group {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.search-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.search-group input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

.search-group input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.search-results {
    margin-top: 2rem;
}

.search-result-item {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-result-item:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

/* ==================== セクション ==================== */
.section {
    background-color: var(--surface-color);
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

/* ==================== 設定表示 ==================== */
.settings-display {
    background-color: var(--bg-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    margin-top: 1rem;
    border: 2px solid var(--border-color);
}

.settings-display p {
    margin: 0.5rem 0;
    font-size: 1rem;
}

/* スタッフリスト */
.staff-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.staff-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
}

.staff-name {
    font-weight: 500;
}

/* ==================== フィルターオプション ==================== */
.filter-options {
    background-color: var(--surface-color);
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 1rem;
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    align-items: center;
}

.filter-options label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.filter-options input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
}

/* 重複アラート */
.duplicate-alert {
    background-color: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    color: #856404;
}

.duplicate-alert p {
    margin: 0.25rem 0;
}

.duplicate-alert strong {
    font-weight: 600;
}

/* ==================== 集計コントロール ==================== */
.summary-controls {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

#dateSelectorContainer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-left: auto;
}

#dateSelectorContainer input[type="date"] {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
}

/* 日別集計の日付選択エリア */
.summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.summary-date-selector {
    background-color: var(--surface-color);
    padding: 1.5rem;
    border-radius: 0.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.summary-date-selector label {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.summary-date-selector input[type="date"],
.summary-date-selector select {
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    min-width: 200px;
    background-color: white;
    cursor: pointer;
}

.summary-date-selector select:hover {
    border-color: var(--primary-color);
}

.summary-date-selector select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* ==================== 伝票表示 ==================== */
.receipt-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
}

/* レシート風チケットデザイン */
.receipt-ticket {
    background-color: white;
    border: 3px solid #000;
    padding: 0;
    font-family: 'Courier New', monospace;
    width: 80mm; /* レシート幅を80mmに設定 */
    max-width: 80mm;
    margin: 0 auto;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* 伝票の後に区切り線を表示（画面表示のみ） */
.receipt-ticket:not(:last-child)::after {
    content: "✂ - - - - - - - - - - - - - - - - - - - - - - ✂";
    display: block;
    text-align: center;
    color: #999;
    font-size: 1rem;
    padding: 2rem 0;
    letter-spacing: 0.2em;
}

.receipt-header {
    border-bottom: 3px solid #000;
    padding: 1rem;
    text-align: center;
}

.receipt-title {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
}

.receipt-section {
    padding: 0.75rem 1rem;
}

.receipt-section:last-child {
    border-bottom: none;
}

.receipt-label-box {
    text-align: center;
    padding: 0.5rem 0;
}

.receipt-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.25rem;
}

.receipt-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #000;
    font-family: 'Arial Black', sans-serif;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 0.95rem;
}

.receipt-row-label {
    font-weight: 600;
    color: #000;
}

.receipt-row-value {
    color: #333;
}

.receipt-section-title {
    font-weight: bold;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: #000;
    text-align: center;
}

/* テーブルスタイル */
.receipt-items-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 0.5rem;
}

.receipt-items-table thead {
    /* theadへの境界線 */
}

.receipt-items-table thead tr {
    /* trへの境界線 */
}

.receipt-items-table th {
    padding: 0.5rem 0.25rem;
    padding-bottom: 0.75rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    border-bottom: 2px dotted #666 !important;
    background: transparent;
}

.receipt-th-name {
    width: 40%;
    text-align: center;
}

.receipt-th-qty {
    width: 30%;
    text-align: center;
}

.receipt-th-price {
    width: 30%;
    text-align: center;
}

.receipt-item-row {
    border-bottom: 1px dotted #999;
}

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

.receipt-item-name {
    padding: 0.5rem 0.25rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
}

.receipt-item-qty {
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

.receipt-item-price {
    padding: 0.5rem 0.25rem;
    text-align: center;
    font-size: 1rem;
    font-weight: bold;
}

.receipt-total {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1.25rem;
}

.receipt-total-label {
    font-weight: bold;
    color: #000;
    margin-right: 0.5rem;
}

.receipt-total-value {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
}

.receipt-remarks {
    background-color: #f9f9f9;
    padding: 0.5rem;
    border-left: 3px solid #666;
    margin-top: 0.25rem;
    font-size: 0.9rem;
    white-space: pre-wrap;
}

.receipt-status-label {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.receipt-status-value {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 0.5rem;
    text-align: center;
    border: 2px solid #000;
    background-color: #fff;
}

.receipt-status-value.status-paid {
    background-color: #4ade80;
    color: #000;
}

/* 店舗情報セクション（お客様控えのみ） */
.receipt-store-section {
    padding: 1rem;
    text-align: center;
    border-bottom: 1px dashed #666;
}

.receipt-logo-placeholder {
    margin: 0 auto 0.5rem;
    max-width: 250px;
}

.receipt-logo-img {
    width: 100%;
    height: auto;
    display: block;
}

.receipt-store-name {
    font-size: 1.25rem;
    font-weight: bold;
    color: #000;
    margin: 0.5rem 0;
}

.receipt-store-address {
    font-size: 0.85rem;
    color: #333;
    margin: 0.25rem 0;
}

.receipt-store-phone {
    font-size: 0.85rem;
    color: #333;
    margin: 0.25rem 0;
}

/* 区切り線 */
.receipt-divider {
    border-bottom: 2px solid #000;
    margin: 0;
}

/* お客様情報 */
.receipt-customer-info {
    padding: 0.5rem 0;
}

.receipt-info-row {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 1rem;
    font-weight: bold;
}

.receipt-info-label {
    color: #000;
    margin-right: 0.5rem;
}

.receipt-info-value {
    color: #000;
}

/* 会計状況 */
.receipt-payment-status {
    text-align: center;
    padding: 0.5rem 0;
}

.receipt-payment-label {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    margin-right: 0.5rem;
}

.receipt-payment-value {
    font-size: 1.5rem;
    font-weight: bold;
    color: #000;
    padding: 0.25rem 0.5rem;
}

.receipt-payment-value.status-paid {
    background-color: #4ade80;
}

/* 備考 */
.receipt-remarks-box {
    text-align: center;
    padding: 0.5rem 0;
}

.receipt-remarks-label {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
    margin-right: 0.5rem;
}

.receipt-remarks-value {
    font-size: 1rem;
    font-weight: bold;
    color: #000;
}

/* フッター */
.receipt-footer {
    padding: 1rem;
    text-align: center;
    border-top: 1px dashed #666;
}

.receipt-footer-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
    font-size: 1rem;
    font-weight: bold;
}

.receipt-footer-text {
    font-size: 1rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.receipt-print-time {
    font-size: 0.75rem;
    color: #666;
}

.receipt-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: center;
    align-items: center;
}

.print-info {
    width: 100%;
    text-align: center;
    margin-top: 0.5rem;
}

.print-info small {
    color: var(--text-secondary);
    font-size: 0.9rem;
    display: block;
    margin: 0.25rem 0;
}

.print-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.bluetooth-section {
    display: flex;
    gap: 1rem;
    align-items: center;
    flex-wrap: wrap;
}

.bluetooth-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background-color: var(--surface-color);
    border-radius: 0.5rem;
    border: 2px solid var(--border-color);
}

.status-indicator {
    font-size: 1.5rem;
    line-height: 1;
}

.status-indicator.disconnected {
    color: #6b7280;
}

.status-indicator.connected {
    color: #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

#bluetoothStatusText {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== ESC/POS Print Service モーダル ==================== */
.escpos-print-modal-content {
    max-width: 700px;
    width: 90%;
}

.escpos-instructions {
    background-color: #eff6ff;
    border: 2px solid #3b82f6;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.escpos-instructions strong {
    color: #1e40af;
    font-size: 1rem;
}

.escpos-instructions ol {
    margin: 0.5rem 0 0 1.25rem;
    padding: 0;
}

.escpos-instructions li {
    margin: 0.5rem 0;
    color: #1e3a8a;
}

.escpos-preview {
    margin-bottom: 1.5rem;
}

.escpos-preview label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.escpos-preview textarea {
    width: 100%;
    height: 400px;
    padding: 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    line-height: 1.4;
    resize: vertical;
    background-color: #f9fafb;
}

.escpos-preview textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.escpos-print-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.print-method-card {
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    background: white;
    transition: all 0.2s;
}

.print-method-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.print-method-card.recommended {
    border-color: #10b981;
    background: #f0fdf4;
}

.method-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.method-icon {
    font-size: 1.5rem;
}

.method-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    flex: 1;
}

.recommended-badge {
    background: #10b981;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.method-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

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

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0.5rem 0;
    text-decoration: underline;
}

.btn-link:hover {
    color: #1e40af;
}

#togglePreviewBtn {
    width: 100%;
    margin-top: 0.5rem;
}

.method-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #fffbeb;
    border-left: 3px solid #f59e0b;
    border-radius: 0.25rem;
}

/* ==================== 抽選券 ==================== */
.lottery-summary {
    padding: 1rem;
    background-color: var(--bg-color);
    border-radius: 0.5rem;
    border: 2px solid var(--primary-color);
    margin: 1rem 0;
}

.lottery-summary p {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.lottery-summary span {
    color: var(--primary-color);
    font-size: 1.25rem;
}

/* ==================== レスポンシブ（タブレット） ==================== */
@media (max-width: 1024px) {
    main {
        padding: 1.5rem;
    }

    header {
        padding: 1rem;
    }

    header h1 {
        font-size: 1.25rem;
    }

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

    .tab-nav {
        padding: 0.5rem;
    }

    .tab-btn {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }

    .receipt-container {
        grid-template-columns: 1fr;
    }
}

/* ==================== レスポンシブ（モバイル） ==================== */
@media (max-width: 768px) {
    main {
        padding: 1rem;
    }

    header {
        justify-content: center;
        align-items: center;
    }

    h2 {
        font-size: 1.5rem;
    }

    .reservation-form,
    .section,
    .search-container {
        padding: 1.5rem;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions button {
        width: 100%;
    }

    .data-table {
        font-size: 0.875rem;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem 0.5rem;
    }

    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
    }

    .search-group {
        flex-direction: column;
        align-items: stretch;
    }

    .search-group input,
    .search-group button {
        width: 100%;
    }

    .payment-status-buttons {
        flex-direction: column;
    }

    .status-btn {
        width: 100%;
    }

    .summary-controls {
        flex-direction: column;
        align-items: stretch;
    }

    #dateSelectorContainer {
        margin-left: 0;
        flex-direction: column;
    }

    .receipt-actions {
        flex-direction: column;
    }

    .receipt-actions button {
        width: 100%;
    }
}

/* ==================== 印刷スタイル ==================== */
@media print {
    /* 印刷時に非表示にする要素 */
    header,
    .tab-nav,
    .form-actions,
    .modal-actions,
    .table-btn,
    button,
    .search-group,
    .receipt-actions,
    .modal,
    .custom-alert-modal,
    #customAlertModal,
    #customConfirmModal,
    .hide-on-print {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }

    /* デフォルトのページ設定 */
    @page {
        size: A4;
        margin: 10mm;
    }
    
    /* 集計ページ用の設定（横向き） */
    #summary {
        page: summary-page;
    }
    
    @page summary-page {
        size: A4 landscape;
        margin: 3mm;
    }

    body {
        background-color: white;
        margin: 0;
        padding: 0;
    }

    main {
        padding: 0;
        max-width: none;
    }

    /* 伝票コンテナの印刷スタイル */
    .receipt-container {
        display: block;
        grid-template-columns: none;
        gap: 0;
        margin: 0;
    }

    /* 各伝票のスタイル */
    .receipt-ticket {
        page-break-after: always; /* 各伝票の後に改ページ */
        page-break-inside: avoid; /* 伝票の途中で改ページしない */
        break-after: page; /* 新しいブラウザ用 */
        break-inside: avoid; /* 新しいブラウザ用 */
        border: 2px solid black;
        padding: 15px;
        margin: 0 auto;
        width: 80mm; /* レシート幅を80mmに固定（58mmの場合は58mmに変更可能） */
        box-sizing: border-box;
        max-width: 80mm;
    }

    /* 最後の伝票の後は改ページしない */
    .receipt-ticket:last-child {
        page-break-after: auto;
        break-after: auto;
    }

    /* 画面表示時の区切り線は印刷しない */
    .receipt-ticket::after {
        display: none !important;
    }

    /* ネット予約の情報メッセージは印刷しない */
    .receipt-info-message {
        display: none !important;
    }

    /* 印刷時に表示する要素を明示 */
    .receipt-container,
    .receipt-ticket {
        display: block !important;
        visibility: visible !important;
    }

    /* 伝票内の印刷最適化 */
    .receipt-header {
        margin-bottom: 15px;
    }

    .receipt-title {
        font-size: 24px;
        font-weight: bold;
        text-align: center;
        padding: 10px 0;
        border-bottom: 2px solid black;
    }

    .receipt-section {
        margin: 15px 0;
        page-break-inside: avoid;
    }

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

    .receipt-items-table th,
    .receipt-items-table td {
        border: 1px solid black;
        padding: 8px;
    }

    /* 印刷用のフォントサイズ調整 */
    .receipt-number {
        font-size: 28px;
    }

    .receipt-total-value {
        font-size: 18px;
    }

    .receipt-row {
        font-size: 11px;
    }

    .receipt-section-title {
        font-size: 12px;
    }

    .receipt-label {
        font-size: 10px;
    }

    /* 商品・時間別集計表と材料使用数集計表を非表示 */
    #summaryTableAll,
    #materialSummaryTableAll,
    #summaryTableDaily,
    #materialSummaryTableDaily,
    table#summaryTableAll,
    table#materialSummaryTableAll,
    table#summaryTableDaily,
    table#materialSummaryTableDaily {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        width: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
    
    /* 親要素のtable-containerも非表示 */
    #summary #all-period > .table-container.hide-on-print,
    #summary #daily > .table-container.hide-on-print {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        overflow: hidden !important;
    }

    /* 予約集計表の印刷スタイル - 自動スケーリング */
    #summary {
        transform-origin: top left;
        max-width: 100%;
    }

    /* データ量に応じて自動縮小 */
    @supports (zoom: 1) {
        #summary {
            zoom: 0.85; /* 全体を85%に縮小 */
        }
    }
    
    @supports not (zoom: 1) {
        #summary {
            transform: scale(0.85);
            transform-origin: top left;
        }
    }

    /* Version 3.2.66 - 商品・時間別集計テーブル：余白ゼロ、枠サイズ最小固定 */
    /* 商品・時間別集計テーブル */
    #summary table.data-table {
        page-break-inside: avoid !important;
        width: 100% !important;
        border-collapse: collapse !important;
        border-spacing: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
        table-layout: fixed !important;
    }

    /* すべてのセルの基本スタイル - 余白完全ゼロ */
    #summary table.data-table th,
    #summary table.data-table td {
        padding: 0 !important;
        margin: 0 !important;
        border: 1px solid #333 !important;
        text-align: center !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: clip !important;
        vertical-align: middle !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
    }

    /* ヘッダー行（商品名）- 最小サイズ固定 */
    #summary table.data-table thead th {
        background-color: #f0f0f0 !important;
        font-weight: bold !important;
        font-size: 4pt !important;
        width: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
        height: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
    }

    /* 時間列ヘッダー（左上の空セル）- 最小サイズ固定 */
    #summary table.data-table thead th:first-child {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 12px !important;
        min-height: 12px !important;
        max-height: 12px !important;
        font-size: 4pt !important;
    }

    /* データ行 - 時間列（最初の列）- 最小サイズ固定 */
    #summary table.data-table tbody td:first-child {
        font-size: 5pt !important;
        font-weight: normal !important;
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
        height: 14px !important;
        min-height: 14px !important;
        max-height: 14px !important;
    }

    /* データ行 - 数字セル（2列目以降）- 最小サイズ固定、フォント最大化 */
    #summary table.data-table tbody td:not(:first-child) {
        font-size: 10pt !important;
        font-weight: 900 !important;
        width: 35px !important;
        min-width: 35px !important;
        max-width: 35px !important;
        height: 14px !important;
        min-height: 14px !important;
        max-height: 14px !important;
    }

    #summary h2 {
        font-size: 10px;
        margin: 2px 0;
        page-break-after: avoid;
    }

    #summary h3 {
        display: none !important;
        height: 0 !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* すべてのhide-on-print要素を確実に非表示 */
    .hide-on-print,
    .hide-on-print *,
    #summary .hide-on-print,
    #summary .hide-on-print *,
    div.hide-on-print,
    div.hide-on-print * {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
        height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        position: absolute !important;
        left: -9999px !important;
    }

    #summary .table-container:not(.hide-on-print) {
        margin: 0;
        padding: 0;
        overflow: visible;
        max-height: none;
    }

    /* サブタブナビゲーションを非表示 */
    .sub-tab-navigation {
        display: none !important;
    }

    /* 日付選択セクションを非表示 */
    .summary-date-selector {
        display: none !important;
    }

    /* 余白を最小化 */
    #summary,
    #summary *,
    #all-period,
    #daily {
        margin: 0 !important;
        padding: 0 !important;
    }

    #summary .data-table {
        margin: 0 !important;
    }

    /* 改ページを防ぐ */
    #summary,
    #summary .data-table,
    #summary tbody,
    #summary tr {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }

    /* データが多い場合の自動縮小 */
    #summary .data-table {
        transform-origin: top left;
        max-width: 100%;
    }

    /* 余白を最小化 */
    #summary {
        padding: 0;
        margin: 0;
    }

    #summary .sub-tab-pane {
        padding: 0;
        margin: 0;
    }
}

/* ==================== 印刷中の状態 ==================== */
body.printing .custom-alert-modal,
body.printing .modal {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* ==================== カスタムアラートモーダル ==================== */
.custom-alert-modal {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.custom-alert-modal.show {
    opacity: 1;
    visibility: visible;
}

.custom-alert-content {
    background: white;
    padding: 1.5rem 2rem;
    border-radius: 0.75rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
    border-left: 4px solid var(--primary-color);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.custom-alert-icon {
    font-size: 2rem;
    font-weight: bold;
    flex-shrink: 0;
}

.custom-alert-message {
    color: var(--text-primary);
    font-size: 1rem;
    line-height: 1.5;
    flex-grow: 1;
    white-space: pre-wrap;
    word-break: break-word;
}

/* ==================== ユーティリティクラス ==================== */
.text-center {
    text-align: center;
}

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

.mt-1 {
    margin-top: 0.5rem;
}

.mt-2 {
    margin-top: 1rem;
}

.mb-1 {
    margin-bottom: 0.5rem;
}

.mb-2 {
    margin-bottom: 1rem;
}

.hidden {
    display: none;
}

.error-message {
    color: var(--danger-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

.success-message {
    color: var(--success-color);
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

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

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

.badge-success {
    background-color: var(--success-color);
    color: white;
}

.badge-warning {
    background-color: var(--warning-color);
    color: white;
}

.badge-danger {
    background-color: var(--danger-color);
    color: white;
}

/* ==================== 警告ボックス ==================== */
.warning-box {
    background-color: #fef3c7;
    border: 2px solid #f59e0b;
    border-radius: 0.5rem;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    color: #92400e;
}

.warning-box p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

.warning-box strong {
    font-weight: 600;
    color: #78350f;
}

.warning-box ul {
    margin: 0.5rem 0 0.5rem 1.5rem;
    padding: 0;
}

.warning-box li {
    margin: 0.25rem 0;
}

.warning-box code {
    background: #fde68a;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: 600;
    color: #78350f;
}

/* ==================== 伝票情報メッセージ ==================== */
.receipt-info-message {
    background-color: var(--surface-color);
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin: 2rem auto;
    max-width: 500px;
}

.receipt-info-message h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.receipt-info-message p {
    margin: 0.75rem 0;
    font-size: 1rem;
    color: var(--text-primary);
}

.receipt-info-message strong {
    font-weight: 600;
    color: var(--text-primary);
}

/* ==================== ローディングオーバーレイ（処理中表示） ==================== */
/* Version 3.2.79 - 処理中のローディング表示機能 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    backdrop-filter: blur(3px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    background: white;
    padding: 2.5rem 3rem;
    border-radius: 1rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    text-align: center;
    min-width: 200px;
}

.spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border: 6px solid #f3f3f3;
    border-top: 6px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

/* ==================== 売り上げタブのスタイル ==================== */
/* Version 3.2.80 - 売り上げ集計タブ */

#salesSummaryContainer {
    padding: 1rem 0;
}

.sales-section {
    margin-bottom: 2rem;
}

.sales-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.sales-section h4 {
    font-size: 1rem;
    margin: 1.5rem 0 0.5rem 0;
    padding-left: 0.5rem;
    border-left: 4px solid var(--primary-color);
    color: var(--text-primary);
}

.sales-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sales-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.sales-row:last-child {
    border-bottom: none;
}

.sales-label {
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.sales-value {
    font-size: 1.3rem;
    font-weight: bold;
    text-align: right;
    min-width: 150px;
    color: var(--text-primary);
}

.sales-value.total {
    color: #2196F3;
    font-size: 1.6rem;
}

.sales-value.confirmed {
    color: #4CAF50;
}

.sales-value.semi {
    color: #FF9800;
}

.sales-value.unpaid {
    color: #f44336;
}

.sales-count {
    font-size: 0.9rem;
    color: #666;
    margin-left: 1rem;
    min-width: 60px;
    text-align: right;
}

.sales-table-container {
    overflow-x: auto;
    margin-top: 1rem;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.sales-table th,
.sales-table td {
    border: 1px solid #ddd;
    padding: 0.75rem;
    text-align: center;
}

.sales-table th {
    background: #f5f5f5;
    font-weight: 600;
    color: var(--text-primary);
}

.sales-table thead tr:first-child th {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.date-cell {
    white-space: nowrap;
    font-weight: 600;
    background: #fafafa;
}

.amount-cell {
    text-align: right;
    font-weight: 600;
    font-family: 'Courier New', monospace;
}

.amount-cell.total {
    background: #E3F2FD;
    color: #1976D2;
}

.amount-cell.confirmed {
    background: #E8F5E9;
    color: #388E3C;
}

.amount-cell.semi {
    background: #FFF3E0;
    color: #F57C00;
}

.amount-cell.unpaid {
    background: #FFEBEE;
    color: #C62828;
}

/* 印刷時のスタイル - 売り上げタブ */
@media print {
    #salesSummaryContainer .hide-on-print {
        display: none !important;
    }
    
    .sales-section {
        page-break-inside: avoid;
        margin-bottom: 15px;
    }
    
    .sales-section h3 {
        font-size: 14pt;
        margin-bottom: 8px;
        padding: 5px 10px;
    }
    
    .sales-section h4 {
        font-size: 11pt;
        margin: 10px 0 5px 0;
    }
    
    .sales-card {
        border: 1px solid #333;
        padding: 8px;
        margin-bottom: 8px;
    }
    
    .sales-row {
        padding: 5px;
    }
    
    .sales-value {
        font-size: 12pt;
    }
    
    .sales-value.total {
        font-size: 14pt;
    }
    
    .sales-table {
        font-size: 9pt;
    }
    
    .sales-table th,
    .sales-table td {
        padding: 4px;
    }
}
