:root {
    --bg: #f4f6f8;
    --panel: #ffffff;
    --ink: #1e2933;
    --muted: #667085;
    --line: #d9e1e8;
    --primary: #2f7890;
    --primary-dark: #1e5669;
    --accent: #b45309;
    --danger: #b42318;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 15px/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 230px;
    background: #102a43;
    color: #f8fafc;
    padding: 20px 14px;
}
.brand {
    font-weight: 800;
    font-size: 18px;
    margin: 4px 8px 22px;
}
nav { display: grid; gap: 4px; }
nav a {
    padding: 10px 12px;
    border-radius: 6px;
    color: #dbeafe;
}
nav a:hover { background: rgba(255,255,255,.12); }
.main {
    margin-left: 230px;
    min-height: 100vh;
    padding: 24px;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}
h1, h2 { margin: 0; line-height: 1.1; }
h1 { font-size: 28px; }
h2 { font-size: 18px; }
.topbar p, .muted { color: var(--muted); margin: 6px 0 0; }
.userbar { display: flex; align-items: center; gap: 12px; color: var(--muted); }
.inline-form { display: inline; margin: 0; }
.form-inline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 14px;
}
.form-inline textarea { grid-column: 1 / -1; min-height: 70px; }
.task-row {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 160px minmax(120px, 1fr) auto;
    gap: 8px;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.filter-form {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}
.filter-form input { width: auto; min-width: 160px; }
.inspection-form {
    display: grid;
    gap: 14px;
}
.inspection-question {
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
}
.button {
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    padding: 9px 12px;
    border-radius: 6px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
}
.button.primary { background: var(--primary); border-color: var(--primary); color: #fff; }
.button.primary:hover { background: var(--primary-dark); }
.button.ghost { background: transparent; }
.flash {
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}
.flash.error { background: #fee2e2; color: var(--danger); border-color: #fecaca; }
.stat-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 18px;
}
.stat, .panel, .form-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(16, 42, 67, .04);
}
.stat { padding: 16px; }
.stat span { display: block; color: var(--muted); font-size: 12px; text-transform: uppercase; font-weight: 800; }
.stat strong { display: block; font-size: 26px; margin-top: 6px; }
.panel { padding: 16px; overflow: hidden; }
.panel-head, .toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.split {
    display: grid;
    grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}
.grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.form-card {
    display: grid;
    gap: 12px;
    padding: 16px;
}
label {
    display: grid;
    gap: 5px;
    color: #344054;
    font-weight: 700;
}
input, select, textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 9px 10px;
    font: inherit;
    color: var(--ink);
    background: #fff;
}
textarea { min-height: 84px; resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th, td {
    padding: 10px 9px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0;
}
.empty { color: var(--muted); text-align: center; padding: 30px; }
.auth-panel {
    max-width: 420px;
    margin: 10vh auto 0;
}

.auth-body {
    background: #f3f5f6;
}
.auth-body .sidebar {
    position: fixed;
    inset: 0 0 auto 0;
    width: auto;
    min-height: 118px;
    background: linear-gradient(#f7f9fa 0 36px, #ffffff 36px 100%);
    color: #2d3640;
    border-bottom: 1px solid #d7dde1;
    padding: 36px 42px 0;
    display: flex;
    align-items: center;
    box-shadow: 0 4px 14px rgba(20, 34, 45, .12);
}
.auth-body .sidebar::before {
    content: "Gamber-Johnson  |  Premier Mounts        Toll Free: +1 (888) 869-7652";
    position: absolute;
    left: 42px;
    top: 0;
    height: 36px;
    display: flex;
    align-items: center;
    color: #6f7b84;
    font-size: 12px;
    font-weight: 700;
}
.auth-body .sidebar::after {
    content: "Products    Support    Where to Buy    Careers    Contact Us";
    margin-left: auto;
    color: #46515a;
    font-size: 13px;
    font-weight: 800;
    word-spacing: 18px;
}
.auth-body .brand {
    margin: 0;
    width: 238px;
    height: 54px;
    overflow: hidden;
    color: transparent;
    background: url("https://www.precisionmounts.com/themes/fire/assets/media/images/logo--precision-mounting-technologies.png") left center / contain no-repeat;
}
.auth-body .brand::before {
    content: none;
}
.auth-body .main {
    margin-left: 0;
    min-height: 100vh;
    padding: 118px 0 0;
}
.auth-body .topbar {
    display: none;
}
.precision-login {
    max-width: none;
    min-height: calc(100vh - 118px);
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 430px;
    gap: 0;
    align-items: center;
    background:
        linear-gradient(90deg, rgba(25, 68, 84, .88), rgba(33, 88, 106, .72) 43%, rgba(255,255,255,.86) 72%, #fff),
        url("https://www.precisionmounts.com/sites/default/files/styles/hero/public/2026-04/Banner%20Full%20Size%20-%20Panasonic%20TOUGHBOOK%2056%20Laptop%20Dock_v2.jpg") left center / cover no-repeat;
}
.login-hero {
    color: #fff;
    max-width: 760px;
    padding: 72px 6vw;
}
.eyebrow {
    margin: 0 0 10px;
    color: var(--primary);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.login-hero .eyebrow {
    color: #fff;
    background: rgba(31, 83, 101, .95);
    display: inline-flex;
    padding: 10px 14px;
    border-left: 0;
}
.login-hero h2 {
    font-size: clamp(42px, 6vw, 72px);
    line-height: .94;
    max-width: 720px;
    text-transform: uppercase;
    text-shadow: 0 4px 18px rgba(0,0,0,.35);
}
.login-hero p:not(.eyebrow) {
    max-width: 560px;
    margin: 20px 0 0;
    color: rgba(255,255,255,.94);
    font-size: 18px;
}
.login-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.login-badges span {
    border: 1px solid rgba(255,255,255,.36);
    background: rgba(42, 109, 131, .82);
    color: #fff;
    padding: 9px 12px;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 12px;
}
.login-card {
    align-self: stretch;
    min-height: calc(100vh - 118px);
    padding: 56px 42px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    align-content: center;
}
.login-card h2 {
    font-size: 28px;
    color: #2d3640;
}
.login-card .button.primary {
    min-height: 46px;
    border-radius: 0;
    text-transform: uppercase;
    background: var(--primary);
    border-color: var(--primary);
}
.login-card .button.primary:hover { background: var(--primary-dark); }

@media (max-width: 980px) {
    .sidebar { position: static; width: auto; }
    .main { margin-left: 0; padding: 16px; }
    nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topbar, .userbar { align-items: flex-start; flex-direction: column; }
    .stat-grid, .split, .grid-two, .form-inline, .task-row { grid-template-columns: 1fr; }
    .auth-body .sidebar {
        position: static;
        min-height: 90px;
        padding: 36px 18px 0;
    }
    .auth-body .sidebar::before { left: 18px; font-size: 11px; }
    .auth-body .sidebar::after { display: none; }
    .auth-body .brand { width: 210px; }
    .auth-body .main {
        padding: 0;
    }
    .precision-login {
        min-height: auto;
        grid-template-columns: 1fr;
    }
    .login-hero {
        padding: 48px 18px;
    }
    .login-hero h2 {
        font-size: 38px;
    }
    .login-card {
        min-height: auto;
        padding: 28px 18px;
    }
}
