.warehouse-list {
    width: 92%;
    max-width: 1200px;
    margin: 110px auto 40px; /* leave space for the fixed search bar */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.warehouse-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
    min-height: 140px;
}

.warehouse-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

.warehouse-header {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: #222;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.warehouse-content {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.warehouse-left {
    flex: 1 1 60%;
    color: #333;
}

.warehouse-left p {
    margin: 6px 0;
    font-size: 0.95rem;
}

.warehouse-region {
    flex: 0 0 28%;
    text-align: right;
    font-family: 'Cursive', cursive;
    font-size: 1.05rem;
    font-weight: 700;
    color: #444;
    align-self: center;
}

.fixed-top-div {
    position: fixed;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    width: calc(100% - 60px);
    max-width: 1100px;
}

@media (max-width: 700px) {
    .warehouse-content {
        flex-direction: column;
    }
    .warehouse-region {
        text-align: left;
        margin-top: 8px;
    }
    .fixed-top-div {
        width: calc(100% - 28px);
        left: 50%;
        transform: translateX(-50%);
    }
}

/* clickable card link styling */
.card-link, .card-link:link, .card-link:visited, .card-link:hover, .card-link:active {
    display: block;
    color: inherit !important;
    text-decoration: none !important;
    cursor: pointer;
}
/* ensure child elements don't get underlined or styled like links anywhere inside the card */
.card-link * {
    text-decoration: none !important;
    color: inherit !important;
}
.card-link:focus {
    outline: 2px solid #88b7ff;
    outline-offset: 3px;
}
.card-link:hover .warehouse-card { /* keep hover affordance on the card, not text color */
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(0,0,0,0.12);
}

/* deposit page tweaks (if not using separate css file) */
.deposit-container { width: 92%; max-width: 1100px; margin: 90px auto 40px; background:#fff; padding:20px; border-radius:10px; box-shadow:0 8px 20px rgba(0,0,0,0.06); }
.deposit-header { display:flex; justify-content:space-between; align-items:center; gap:12px; margin-bottom:18px; }
.deposit-title { font-size:1.4rem; font-weight:700; }
.deposit-meta { color:#666; font-size:0.95rem; }
.items-table { width:100%; border-collapse:collapse; margin-top:14px; }
.items-table th, .items-table td { padding:10px 8px; border-bottom:1px solid #eee; text-align:left; }
.items-empty { padding:28px; text-align:center; color:#777; }
.back-link { display:inline-block; padding:8px 12px; background:#f3f3f3; border-radius:6px; color:#333; text-decoration:none; }

/* Quantity +/- round buttons */
.qty-btn {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:34px;
    height:34px;
    padding:0;
    border-radius:50%;
    background:#444; /* dark gray */
    color:#fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.12);
    cursor: pointer;
}
.qty-btn:hover { background:#333; }
.qty-btn:active { transform: translateY(1px); }