/* Staff PWA on hrms.qadeem.io — self-contained. No Tailwind, no Meta. */

.hrms-pwa {
    min-height: 100vh;
    margin: 0;
    background: #070814;
    color: #f8fafc;
    font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

.hrms-shell {
    box-sizing: border-box;
    max-width: 28rem;
    min-height: 100vh;
    margin: 0 auto;
    padding: 1.5rem 1.25rem 2.5rem;
    display: flex;
    flex-direction: column;
}

.hrms-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #aab6d3;
}

.hrms-title {
    margin: 0;
    font-size: 1.55rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hrms-lead,
.hrms-note,
.hrms-hint {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: #aab6d3;
}

.hrms-hint {
    color: #f87171;
}

.hrms-card {
    margin-top: 1.25rem;
    padding: 1.35rem 1.25rem 1.5rem;
    border-radius: 1.4rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(14, 17, 31, 0.96), rgba(10, 13, 25, 0.9));
}

.hrms-banner {
    margin: 0 0 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    line-height: 1.4;
}

.hrms-banner-ok {
    background: rgba(52, 211, 153, 0.12);
    color: #34d399;
}

.hrms-banner-err {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

.hrms-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.hrms-link,
.hrms-ghost {
    appearance: none;
    background: none;
    border: 0;
    padding: 0;
    color: #aab6d3;
    font: inherit;
    font-size: 0.8125rem;
    cursor: pointer;
    text-decoration: none;
}

.hrms-link:hover,
.hrms-ghost:hover {
    color: #fff;
}

.hrms-pwa form {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.hrms-pwa label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #f8fafc;
}

.hrms-pwa input[type="text"],
.hrms-pwa input[type="email"],
.hrms-pwa input[type="password"] {
    box-sizing: border-box;
    width: 100%;
    height: 2.85rem;
    padding: 0 0.95rem;
    border: 1px solid #2a334d;
    border-radius: 0.85rem;
    background: rgba(10, 14, 28, 0.9);
    color: #f8fafc;
    font: inherit;
    font-size: 0.9rem;
}

.hrms-pwa input::placeholder {
    color: #8ea0c5;
}

.hrms-pwa input:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.16);
}

.hrms-pwa button[type="submit"],
.hrms-btn {
    appearance: none;
    width: 100%;
    height: 3rem;
    border: 0;
    border-radius: 0.85rem;
    background: #8b5cf6;
    color: #fff;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
}

.hrms-pwa button[type="submit"]:disabled,
.hrms-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.hrms-btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff;
}

.hrms-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.15rem;
}

.hrms-cam {
    overflow: hidden;
    margin-top: 1rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #000;
}

.hrms-cam video {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: #000;
}

.hrms-pwa .relative {
    display: block;
    position: static;
}

.hrms-pwa a.absolute,
.hrms-pwa a[href*="forgot"],
.hrms-pwa a[href*="reset"] {
    display: block !important;
    position: static !important;
    inset: auto !important;
    margin-top: 0.4rem;
    color: #c4b5fd;
    font-size: 0.8rem;
    text-decoration: none;
}

.hrms-pwa label.group,
.hrms-pwa label[for="remember-1"] {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    cursor: pointer;
}

.hrms-pwa input[type="checkbox"] {
    width: 1.1rem;
    height: 1.1rem;
    margin-top: 0.15rem;
    accent-color: #8b5cf6;
}

.hrms-pwa .sr-only {
    position: static;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
}

.hrms-foot {
    margin-top: auto;
    padding-top: 1.5rem;
    font-size: 0.75rem;
    line-height: 1.45;
    color: #8ea0c5;
    text-align: center;
}

.hrms-shell-nav {
    padding-bottom: 5.5rem;
}

.hrms-tiles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.hrms-tile {
    display: block;
    padding: 1.05rem 0.95rem 1.15rem;
    border-radius: 1.15rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(180deg, rgba(14, 17, 31, 0.96), rgba(10, 13, 25, 0.9));
    color: #fff;
    text-decoration: none;
}

.hrms-tile span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #aab6d3;
}

.hrms-tile strong {
    font-size: 0.95rem;
    font-weight: 700;
}

.hrms-nav {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0;
    margin: 0 auto;
    max-width: 28rem;
    padding: 0.45rem 0.2rem calc(0.55rem + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 8, 20, 0.96);
}

.hrms-nav a {
    padding: 0.45rem 0.1rem;
    color: #8ea0c5;
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: center;
    text-decoration: none;
}

.hrms-nav a.is-active {
    color: #fff;
}

.hrms-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hrms-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.hrms-row:first-child {
    padding-top: 0;
}

.hrms-row-title {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #f8fafc;
}

.hrms-row-meta,
.hrms-row-value {
    margin: 0.2rem 0 0;
    font-size: 0.75rem;
    line-height: 1.4;
    color: #aab6d3;
    text-align: right;
}

.hrms-row-meta {
    text-align: left;
}

.hrms-week-nav {
    display: flex;
    gap: 0.75rem;
}

.hrms-pwa select,
.hrms-pwa input[type="date"],
.hrms-pwa textarea {
    box-sizing: border-box;
    width: 100%;
    height: 2.85rem;
    padding: 0 0.95rem;
    border: 1px solid #2a334d;
    border-radius: 0.85rem;
    background: rgba(10, 14, 28, 0.9);
    color: #f8fafc;
    font: inherit;
    font-size: 0.9rem;
}

.hrms-pwa .hrms-card form,
.hrms-pwa form.hrms-card {
    display: flex;
    flex-direction: column;
    gap: 0.95rem;
}
