/* Custom styles for Musashi Logistics */
body {
    background-color: #f8f9fa;
}

body {
    background-color: #f4f6f9;
    background-image: linear-gradient(rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.8)), url('https://www.musashi-bt.co.jp/cms/wp-content/uploads/bg_mv_day.jpg.webp');
    background-size: cover;
    background-attachment: fixed;
    background-position: center top;
    font-family: 'Helvetica Neue', Arial, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, sans-serif;
    color: #333;
}

.bg-primary {
    background-color: #192350 !important;
    /* Musashi Navy */
}

.text-primary {
    color: #192350 !important;
}

.btn-primary {
    background-color: #192350;
    border-color: #192350;
}

.btn-primary:hover {
    background-color: #121a3b;
    border-color: #0f1530;
}

.login-container {
    max-width: 400px;
    margin: 80px auto;
}

.navbar-brand {
    font-weight: bold;
    letter-spacing: 0.05em;
}

.card {
    border: 1px solid #e1e4e8;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #192350;
    /* Brand accent line */
}

.table th {
    font-weight: 600;
    background-color: #192350;
    color: #fff;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Navbar adjustments */
    .navbar .container {
        flex-direction: row !important;
        flex-wrap: nowrap;
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    .navbar img {
        height: 35px !important;
        margin-right: 10px !important;
    }

    .navbar .d-flex.flex-column span:nth-child(1) {
        font-size: 1rem !important;
    }

    .navbar .d-flex.flex-column span:nth-child(2) {
        font-size: 0.8rem !important;
    }

    .navbar .d-flex.flex-column span:nth-child(3) {
        display: none;
    }

    /* Layout */
    .mt-5 {
        margin-top: 2rem !important;
    }

    h2 {
        font-size: 1.5rem;
    }

    /* Hide table on mobile, show card list */
    .d-mobile-none {
        display: none !important;
    }

    .d-mobile-block {
        display: block !important;
    }

    /* Modal adjustments */
    .modal-dialog {
        margin: 0.5rem;
    }

    /* Buttons */
    .btn {
        padding: 0.5rem 1rem;
        font-size: 1rem;
    }

    .btn-sm {
        padding: 0.25rem 0.5rem;
    }
}

/* Visibility helpers */
.mobile-shipment-card {
    border: 1px solid #e1e4e8;
    border-radius: 8px;
    background: #fff;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.mobile-shipment-card .card-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.mobile-shipment-card .label {
    color: #666;
    font-size: 0.85rem;
}

.mobile-shipment-card .value {
    font-weight: 600;
}

@media (min-width: 769px) {
    .d-desktop-none {
        display: none !important;
    }
}