/* MTLL brand colours: lime green, magenta, greys - matches the inventory system */

.navbar {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.navbar-brand img { height: 52px; }

.navbar-nav .nav-link {
    color: #5B5E5F;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: #E6007E;
}

.container, .container-wide { padding-top: 20px; flex: 1; }
.container-wide { width: 100%; max-width: none; margin-left: auto; margin-right: auto; padding-left: 24px; padding-right: 24px; }

@media (max-width: 576px) {
    .container-wide { padding-left: 12px; padding-right: 12px; }
}

html, body {
    height: 100%;
    margin: 0;
    display: flex;
    flex-direction: column;
}

footer {
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: #5B5E5F;
}

.btn-primary {
    background-color: #BBD040;
    border-color: #BBD040;
    color: #2b2f2a;
}

.btn-primary:hover, .btn-primary:active, .btn-primary:focus {
    background-color: #A0B136 !important;
    border-color: #A0B136 !important;
    color: #2b2f2a !important;
}

.btn-outline-primary {
    color: #2b2f2a;
    border-color: #BBD040;
}
.btn-outline-primary:hover {
    background-color: #BBD040;
    border-color: #BBD040;
    color: #2b2f2a;
}

a { color: #E6007E; }
a:hover { color: #b3005f; }

.alert-info {
    background-color: #DDDDDD;
    color: #5B5E5F;
}

.badge-holiday { background-color: #BBD040; color: #2b2f2a; }
.badge-pending { background-color: #f0ad4e; color: #2b2f2a; }
.badge-declined { background-color: #dc3545; }
.badge-leaver { background-color: #88888D; }

.stat-card {
    border: 1px solid #e3e7de;
    border-radius: 10px;
    padding: 18px;
    background: #fff;
}
.stat-card .stat-value { font-size: 1.8rem; font-weight: bold; color: #2b2f2a; }
.stat-card .stat-label { color: #5B5E5F; font-size: 0.9rem; }

.employee-photo {
    width: 96px; height: 96px; object-fit: cover; border-radius: 8px;
    border: 1px solid #e3e7de;
}
.employee-photo-placeholder {
    width: 96px; height: 96px; border-radius: 8px; background: #f0f2ee;
    display: flex; align-items: center; justify-content: center; color: #88888D;
    font-size: 2rem; border: 1px solid #e3e7de;
}

.nav-tabs .nav-link.active { border-color: #BBD040 #BBD040 #fff; color: #2b2f2a; font-weight: 600; }

table.table thead th { color: #5B5E5F; font-size: 0.85rem; text-transform: uppercase; letter-spacing: .03em; }

.day-cell { min-height: 140px; width: 14.28%; border: 1px solid #eee; padding: 6px; vertical-align: top; }
.day-cell .day-num { font-size: .85rem; color: #88888D; }
.day-cell .entry { font-size: .78rem; padding: 2px 5px; border-radius: 4px; margin-bottom: 2px; display: block; }
.day-cell .entry.approved { background: #BBD040; color: #2b2f2a; }
.day-cell .entry.pending { background: #f0ad4e; color: #2b2f2a; }
.day-cell .entry.declined { background: #88888D; color: #fff; }
.day-cell .entry.full { background: #dc3545; color: #fff; }
/* Half-day (AM/PM) bookings get the MTLL magenta regardless of status, so
   they stand out from full-day entries at a glance. */
.day-cell .entry.half { background: #E6007E; color: #fff; }

/* Calendar shrinks gracefully on tablets/phones instead of forcing a fixed
   140px-tall row that doesn't fit seven columns on a narrow screen. */
@media (max-width: 991px) {
    .day-cell { min-height: 90px; padding: 4px; }
    .day-cell .entry { font-size: .68rem; padding: 1px 3px; }
}
@media (max-width: 576px) {
    .day-cell { min-height: 64px; padding: 3px; }
    .day-cell .day-num { font-size: .72rem; }
    .day-cell .entry { font-size: .6rem; padding: 1px 2px; }
    table.table thead th { font-size: .68rem; padding: .3rem; }
}
