body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    background-color: #2F6F4E !important;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    margin-bottom: 20px;
}

.card-header {
    border-bottom: none;
    font-weight: 600;
}

.table {
    background-color: white;
}

.btn {
    border-radius: 5px;
}

.alert {
    border-radius: 5px;
}

/* 価格表のスタイル */
.price-grid {
    overflow-x: auto;
}

.price-grid table {
    min-width: 1000px;
}

.price-changed-auto {
    background-color: #d4edda !important;
}

.price-changed-manual {
    background-color: #fff3cd !important;
}

.price-special {
    background-color: #f8d7da !important;
}

/* 日付入力フィールドのスタイル */
input[type="date"], input[type="month"] {
    cursor: pointer;
    position: relative;
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    cursor: pointer;
    opacity: 0;
}

/* カスタムスタイル */
.status-badge {
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
}

.delivery-confirmed {
    background-color: #28a745;
    color: white;
}

.delivery-pending {
    background-color: #ffc107;
    color: #000;
}

.payment-confirmed {
    background-color: #28a745;
    color: white;
}

.payment-pending {
    background-color: #dc3545;
    color: white;
}

/* メッセージトースト用のスタイル */
.toast.bg-error {
    background-color: #dc3545 !important;
    color: white !important;
}

.toast.bg-success {
    background-color: #28a745 !important;
    color: white !important;
}

.toast.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.toast.bg-info {
    background-color: #17a2b8 !important;
    color: white !important;
}

/* 得意先管理テーブルの列幅固定 */
.table th:nth-last-child(2),
.table td:nth-last-child(2) {
    min-width: 90px !important;
    width: 90px !important;
    white-space: nowrap !important;
}

.table th:last-child,
.table td:last-child {
    min-width: 180px !important;
    width: 180px !important;
    white-space: nowrap !important;
}
