/* ==========================================================
   WMS custom styles — layered on top of the Inspinia theme
   already used by the reference codebase (colors untouched).
   ========================================================== */

/* ---------- Login ---------- */
.wms-login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.wms-login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12);
    padding: 40px 32px;
    text-align: center;
}
.wms-login-logo {
    width: 64px; height: 64px;
    border-radius: 50%;
    background: #1ab394;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}
.wms-login-card h2 { margin-bottom: 2px; font-size: 20px; }
.wms-login-card form { margin-top: 20px; text-align: left; }

/* ---------- Body padding so bottom nav never covers content ---------- */
body.wms-has-bottom-nav #page-wrapper {
    padding-bottom: 78px;
}

/* ---------- Bottom navigation (mobile only) ---------- */
.wms-bottom-nav {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 2000;
    background: #fff;
    border-top: 1px solid #e7eaec;
    box-shadow: 0 -2px 10px rgba(0,0,0,.06);
    display: flex;
    padding-bottom: env(safe-area-inset-bottom, 0);
}
.wms-bn-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 8px 2px 6px;
    color: #8a8a8a;
    font-size: 11px;
    text-decoration: none;
}
.wms-bn-item i { font-size: 18px; }
.wms-bn-item.active { color: #1ab394; }
.wms-bn-item:hover, .wms-bn-item:focus { color: #1ab394; text-decoration: none; }

@media (min-width: 768px) {
    .wms-bottom-nav { display: none !important; }
    body.wms-has-bottom-nav #page-wrapper { padding-bottom: 0; }
}

/* ---------- Top nav page title ---------- */
.wms-page-title {
    font-weight: 600;
    font-size: 16px;
    margin-left: 14px;
    color: #333;
}

/* ---------- Badges ---------- */
.wms-badge-new {
    display: inline-block;
    background: #f8ac59;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}
.wms-badge-lead {
    display: inline-block;
    background: #1c84c6;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}
.wms-badge-head {
    display: inline-block;
    background: #ed5565;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 10px;
    vertical-align: middle;
    margin-left: 6px;
}

/* ---------- Employee / attendance list cards ---------- */
.wms-emp-group-title {
    font-size: 13px;
    font-weight: 700;
    color: #676a6c;
    text-transform: uppercase;
    margin: 18px 0 8px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e7eaec;
}
.wms-emp-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-bottom: 1px solid #f1f1f1;
    background: #fff;
}
.wms-emp-row.is-leader { background: #f6fcfa; }
.wms-emp-avatar {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: #e7eaec;
    color: #999;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    overflow: hidden;
}
.wms-emp-avatar img { width: 100%; height: 100%; object-fit: cover; }
.wms-emp-info { flex: 1; min-width: 0; }
.wms-emp-name { font-weight: 600; font-size: 14px; }
.wms-emp-meta { font-size: 12px; color: #999; }
.wms-emp-status-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 12px;
    color: #fff;
    white-space: nowrap;
}

/* ---------- Status picker buttons (attendance record entry) ---------- */
.wms-status-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 14px 0;
}
.wms-status-btn {
    border: 2px solid #e7eaec;
    background: #fff;
    border-radius: 10px;
    padding: 14px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: all .12s ease;
}
.wms-status-btn .code {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}
.wms-status-btn.selected {
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(0,0,0,.15);
}

/* ---------- Shift time-input chips (custom per zone) ---------- */
.wms-shift-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f3f6f9;
    border: 1px solid #e0e6ea;
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    color: #555;
    margin: 2px 4px 2px 0;
}
.wms-shift-chip i { color: #1ab394; }

/* ---------- Section cards ---------- */
.wms-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06);
    padding: 20px;
    margin-bottom: 20px;
}

/* ---------- Color swatch input ---------- */
.wms-color-dot {
    display: inline-block;
    width: 18px; height: 18px;
    border-radius: 50%;
    vertical-align: middle;
    border: 1px solid rgba(0,0,0,.15);
}

@media (max-width: 767px) {
    .wms-status-grid { grid-template-columns: repeat(3, 1fr); }
    .table-responsive-mobile-stack { overflow-x: auto; }
}
