/* Viva Support - modern look (shell, login, home, global controls).
   Loaded AFTER StyleSheet.css so it overrides the legacy dark theme. Same warm-neutral tokens as SacoCEW. */
:root {
    --pol-bg: #f0ede8;
    --pol-surface: #faf9f6;
    --pol-ink: #1c1917;
    --pol-ink2: #44403c;
    --pol-muted: #78716c;
    --pol-border: #d6d3cd;
    --pol-border-dark: #a8a29e;
    --pol-green: #166534;
    --pol-green-bg: #dcfce7;
    --pol-green-bd: #86efac;
    --pol-red: #991b1b;
    --pol-red-bg: #fee2e2;
    --pol-red-bd: #fca5a5;
    --pol-amber: #92400e;
    --pol-amber-bg: #fef3c7;
    --pol-amber-bd: #fcd34d;
    --pol-blue: #1e3a8a;
    --pol-blue-bg: #dbeafe;
    --pol-blue-bd: #93c5fd;
    --pol-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --pol-sans: 'Familjen Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --accent: #f97316;
    --pol-magenta: #c2187a;
    --side-bg: #1c1917;
    --side-w: 248px;
    --side-w-collapsed: 68px;
    --topbar-h: 56px;
}

body.client-spiderit {
    --accent: #5f8f8b;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    background: var(--pol-bg);
    color: var(--pol-ink);
    font-family: var(--pol-sans);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.45;
}

img {
    max-width: 100%;
}

a {
    color: var(--pol-blue);
    text-transform: none;
    font-size: inherit;
    font-weight: 600;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* ---------- Shell ---------- */
.chrome {
    display: contents;
}

.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: var(--side-w);
    background: var(--side-bg);
    color: #d6d3cd;
    display: flex;
    flex-direction: column;
    z-index: 50;
    transition: width .18s ease, transform .18s ease;
}

.side-brand {
    display: flex;
    align-items: center;
    height: var(--topbar-h);
    padding: 0 16px;
    flex: 0 0 auto;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

    .side-brand img {
        height: 32px;
        width: auto;
        display: block;
    }

.side-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 12px 10px;
    scrollbar-width: thin;
    scrollbar-color: #44403c transparent;
}

.side-foot {
    flex: 0 0 auto;
    padding: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
}

.sidebar a.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 12px;
    margin-bottom: 2px;
    border-radius: 8px;
    color: #d6d3cd;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    position: relative;
}

    .sidebar a.nav-link:hover {
        background: rgba(255,255,255,.08);
        color: #fff;
        text-decoration: none;
    }

    .sidebar a.nav-link.active {
        background: rgba(249,115,22,.16);
        color: #fff;
    }

        .sidebar a.nav-link.active::before {
            content: "";
            position: absolute;
            left: -10px;
            top: 8px;
            bottom: 8px;
            width: 3px;
            border-radius: 0 3px 3px 0;
            background: var(--accent);
        }

    .sidebar a.nav-link svg {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        stroke: currentColor;
    }

    .sidebar a.nav-link.active svg {
        stroke: var(--accent);
    }

.nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-section {
    margin: 14px 12px 6px;
    font-size: 11px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #78716c;
    font-weight: 700;
}

.main {
    margin-left: var(--side-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    transition: margin-left .18s ease;
}

body.nochrome .main {
    margin-left: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    background: var(--pol-surface);
    border-bottom: 1px solid var(--pol-border);
}

.topbar-title {
    font-weight: 700;
    font-size: 16px;
    color: var(--pol-ink);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.topbar-spacer {
    flex: 1 1 auto;
}

.client-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px 4px 12px;
    border: 1px solid var(--pol-border);
    border-radius: 999px;
    background: #fff;
    font-size: 13px;
    color: var(--pol-ink2);
    white-space: nowrap;
}

    .client-chip .lbl {
        color: var(--pol-muted);
    }

    .client-chip strong {
        font-weight: 700;
        color: var(--pol-ink);
    }

    .client-chip input[type=submit] {
        padding: 3px 10px;
        font-size: 12px;
        border-radius: 999px;
    }

.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--pol-border);
    border-radius: 8px;
    background: #fff;
    color: var(--pol-ink2);
    cursor: pointer;
}

    .icon-btn:hover {
        background: var(--pol-bg);
    }

    .icon-btn svg {
        width: 20px;
        height: 20px;
        stroke: currentColor;
    }

.content {
    flex: 1 1 auto;
    padding: 24px;
    min-width: 0;
    overflow-x: auto;
    color: var(--pol-ink);
}

/* Desktop collapse (icons only) */
@media (min-width: 901px) {
    body.side-collapsed .sidebar {
        width: var(--side-w-collapsed);
    }

    body.side-collapsed .main {
        margin-left: var(--side-w-collapsed);
    }

    body.side-collapsed .nav-label,
    body.side-collapsed .nav-section {
        display: none;
    }

    body.side-collapsed .sidebar a.nav-link {
        justify-content: center;
        padding: 10px 0;
    }

    body.side-collapsed .side-brand {
        justify-content: center;
        padding: 0;
    }

        body.side-collapsed .side-brand img {
            display: none;
        }

        body.side-collapsed .side-brand::after {
            content: "V";
            color: #fff;
            font-weight: 800;
            font-size: 20px;
        }
}

/* Phones / tablets: off-canvas sidebar */
.side-scrim {
    display: none;
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
        width: 270px;
        box-shadow: 0 0 40px rgba(0,0,0,.35);
    }

    body.side-open .sidebar {
        transform: none;
    }

    body.side-open .side-scrim {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,.45);
        z-index: 45;
    }

    .main {
        margin-left: 0;
    }

    .topbar {
        padding: 0 12px;
    }

    .content {
        padding: 14px 12px;
    }

    .client-chip .lbl {
        display: none;
    }
}

@media (max-width: 520px) {
    .topbar-title {
        font-size: 14px;
    }

    .client-chip {
        font-size: 12px;
    }
}

/* ---------- Cards / headings ---------- */
.card {
    background: var(--pol-surface);
    border: 1px solid var(--pol-border);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
    margin-bottom: 1.2rem;
    overflow-x: auto;
}

    .card h3 {
        margin: 0 0 .8rem;
        font-size: 1.05rem;
    }

.page-head {
    margin: 0 0 1.2rem;
}

    .page-head h2 {
        margin: 0 0 4px;
        font-size: 1.35rem;
    }

    .page-head p {
        margin: 0;
        color: var(--pol-muted);
    }

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    max-width: 720px;
    margin-bottom: 1.2rem;
}

a.action-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--pol-surface);
    border: 1px solid var(--pol-border);
    border-radius: 10px;
    padding: 1.4rem 1.2rem;
    text-decoration: none;
    color: var(--pol-ink);
    text-align: center;
    transition: transform .12s, box-shadow .12s, border-color .12s;
}

    a.action-card:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0,0,0,.08);
        border-color: var(--pol-border-dark);
        text-decoration: none;
    }

    a.action-card .ic {
        width: 48px;
        height: 48px;
        border-radius: 12px;
        background: var(--accent);
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: .7rem;
    }

        a.action-card .ic svg {
            width: 24px;
            height: 24px;
            stroke: currentColor;
        }

    a.action-card .title {
        font-weight: 700;
        font-size: .95rem;
    }

    a.action-card .sub {
        font-weight: 400;
        font-size: .8rem;
        color: var(--pol-muted);
    }

/* ---------- Legacy classes, retuned ---------- */
.MainHeader, .Heading, .SubHeading, .ReportTitle {
    color: var(--pol-ink);
    font-family: var(--pol-sans);
}

.MainHeader {
    font-size: 1.5rem;
    letter-spacing: 0;
}

.ErrorText {
    color: var(--pol-red);
    font-size: 1rem;
}

.gradientGray {
    background: var(--pol-surface);
    background-image: none;
    color: var(--pol-ink);
}

.border {
    border-radius: 12px;
}

.border2 {
    border-radius: 8px;
}

.HeaderStyle, .HeaderStyleSortable {
    background: #e7e4de;
    color: var(--pol-ink);
    border: 0;
    border-bottom: 1px solid var(--pol-border-dark);
    font-family: var(--pol-sans);
    font-size: 12px;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left;
}

    .HeaderStyleSortable a, .HeaderStyle a {
        color: var(--pol-ink);
        font-family: var(--pol-sans);
        font-size: 12px;
    }

.content table[rules] {
    border-collapse: collapse;
    background: var(--pol-surface);
    border: 1px solid var(--pol-border);
}

    .content table[rules] td, .content table[rules] th {
        border-color: var(--pol-border);
        padding: 8px 10px;
    }

    .content table[rules] tr[style*="ACF5FE" i] {
        background: var(--pol-surface) !important;
    }

    .content table[rules] tr[style*="F2F2F2" i] {
        background: #f5f3ef !important;
    }

    .content table[rules] tr:hover td {
        background: #f0ede8;
    }

/* ---------- Form controls (zero specificity so any class wins) ---------- */
:where(input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=tel], input:not([type]), textarea, select) {
    font: inherit;
    color: var(--pol-ink);
    background: #fff;
    border: 1px solid var(--pol-border-dark);
    border-radius: 8px;
    padding: .45rem .65rem;
    max-width: 100%;
}

    :where(input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=tel], textarea, select):focus {
        outline: 2px solid var(--accent);
        outline-offset: 0;
        border-color: var(--accent);
    }

:where(input[type=submit], input[type=button], button) {
    font: inherit;
    font-weight: 600;
    color: var(--pol-ink);
    background: #fff;
    border: 1px solid var(--pol-border-dark);
    border-radius: 8px;
    padding: .45rem .9rem;
    cursor: pointer;
}

    :where(input[type=submit], input[type=button], button):hover {
        background: var(--pol-bg);
    }

/* Old coloured buttons: flat, readable, same class names */
.buttonColor, a.buttonColor {
    display: inline-block;
    min-height: 0;
    padding: .5rem 1rem;
    opacity: 1;
    letter-spacing: 0;
    text-shadow: none;
    text-transform: none;
    font-family: var(--pol-sans);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: #fff;
    background: var(--pol-ink2);
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: none;
    cursor: pointer;
    text-decoration: none;
    transition: filter .12s, transform .12s;
}

    .buttonColor:hover {
        filter: brightness(1.1);
        box-shadow: none;
        text-decoration: none;
    }

    .buttonColor:active {
        box-shadow: none;
        transform: translateY(1px);
    }

    .buttonColor.gray {
        background: #fff;
        color: var(--pol-ink);
        border-color: var(--pol-border-dark);
    }

    .buttonColor.gray2 {
        background: var(--pol-ink2);
    }

    .buttonColor.gray3 {
        background: var(--pol-ink);
    }

    .buttonColor.blue {
        background: var(--pol-blue);
    }

    .buttonColor.green, .buttonColor.green2 {
        background: var(--pol-magenta);
    }

    .buttonColor.red {
        background: var(--pol-red);
    }

    .buttonColor.purple {
        background: #5b3f8e;
    }

    .buttonColor.orange {
        background: #c2540a;
    }

.TextBoxStyle {
    border: 1px solid var(--pol-border-dark);
}

.invisibletextbox input {
    color: var(--pol-ink) !important;
}

/* ---------- Login ---------- */
.login-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
}

.unsecure-inner {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-card {
    margin: 0 auto;
    width: 100%;
    max-width: 400px;
    background: var(--pol-surface);
    border: 1px solid var(--pol-border);
    border-radius: 14px;
    padding: 28px 28px 24px;
    box-shadow: 0 1px 3px rgba(0,0,0,.05), 0 16px 40px rgba(0,0,0,.10);
}

.login-logo {
    background: var(--side-bg);
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 22px;
    text-align: center;
}

    .login-logo img {
        height: 44px;
        width: auto;
    }

.login-card h1 {
    margin: 0 0 4px;
    font-size: 1.3rem;
}

.login-card .sub {
    margin: 0 0 18px;
    color: var(--pol-muted);
}

.field {
    margin-bottom: 14px;
}

    .field label {
        display: block;
        font-weight: 600;
        font-size: 13px;
        margin-bottom: 5px;
        color: var(--pol-ink2);
    }

    .field input[type=text], .field input[type=password] {
        width: 100%;
        padding: .6rem .75rem;
        font-size: 15px;
    }

.login-card .btn-primary, .login-card input[type=submit] {
    width: 100%;
    padding: .65rem 1rem;
    font-size: 15px;
    background: var(--pol-ink);
    color: #fff;
    border-color: var(--pol-ink);
}

    .login-card input[type=submit]:hover {
        background: var(--pol-ink2);
    }

.login-card .keep {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0 16px;
    color: var(--pol-ink2);
}

    .login-card .keep label {
        font-weight: 400;
    }

.login-card .alert {
    background: var(--pol-red-bg);
    border: 1px solid var(--pol-red-bd);
    color: var(--pol-red);
    border-radius: 8px;
    padding: .6rem .8rem;
    margin-bottom: 14px;
    font-weight: 600;
}

.login-card .field-err {
    display: block;
    color: var(--pol-red);
    font-size: 12px;
    margin-top: 4px;
}

.btn-row {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

    .btn-row input[type=submit] {
        flex: 1 1 0;
    }

.ok-note {
    display: block;
    margin-top: 12px;
    color: var(--pol-green);
    font-weight: 600;
}

.client-list label {
    margin-left: 6px;
    font-weight: 500;
}

.client-list input {
    margin: 8px 0;
}

.client-list input, .client-list label {
    vertical-align: middle;
}

.login-links {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
}

@media print {
    .sidebar, .topbar, .side-scrim {
        display: none !important;
    }

    .main {
        margin-left: 0 !important;
    }
}

/* ---------- Interior pages ---------- */
/* Old filter bars set white text inline; force readable ink on the light card */
.gradientGray, .gradientGray td, .gradientGray span, .gradientGray label {
    color: var(--pol-ink) !important;
}

table.gradientGray {
    border: 1px solid var(--pol-border) !important;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

/* Fixed-width legacy tables become fluid */
.content table[style*="1400px"], .content table[style*="1600px"], .content table[style*="1200px"], .content table[style*="1000px"],
.content table[width="1600px"], .content table[width="1400px"] {
    width: 100% !important;
    max-width: 100%;
}

.content table[style*="border:double"], .content table[style*="border: double"] {
    border: 1px solid var(--pol-border) !important;
    border-radius: 12px;
    background: var(--pol-surface);
    padding: 16px !important;
}

.HeaderNew {
    font-family: var(--pol-sans);
    font-size: 1.5rem !important;
    font-weight: 700;
    color: var(--pol-ink) !important;
    background: none !important;
    padding: 0 0 6px !important;
}

/* Grids */
.content table[rules] {
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    font-size: 14px;
}

    .content table[rules] td {
        text-align: left !important;
        vertical-align: middle;
    }

    /* Unread rows: red-tinted row, no red borders */
    .content table[rules] tr[style*="background-color:Red" i] td {
        background: var(--pol-red-bg) !important;
        box-shadow: none !important;
        border-color: var(--pol-border) !important;
    }

    .content table[rules] td a {
        font-weight: 600;
    }

    .content table[rules] a.buttonColor {
        padding: .25rem .7rem;
        font-size: 13px;
    }

/* Filter controls */
.gradientGray select, .TextBoxStyle {
    background: #fff !important;
    margin-right: 10px;
}

.gradientGray table {
    width: 100%;
}

.gradientGray td {
    padding: 6px 10px;
}

.gradientGray input[type=checkbox] {
    margin-right: 4px;
}

.gradientGray label {
    margin-right: 12px;
}

/* Reports landing */
.report-group {
    margin-bottom: 1.6rem;
}

    .report-group h3 {
        margin: 0 0 .6rem;
        font-size: 1.05rem;
        color: var(--pol-ink2);
    }

@media (max-width: 800px) {
    .content table[rules] {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .gradientGray td {
        display: inline-block;
    }
}

.admin-group {
    margin: 1.4rem 0 .6rem;
    font-size: .95rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--pol-muted);
}

.action-grid.wide {
    max-width: 1000px;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    margin-bottom: .4rem;
}

.grid-item {
    display: contents;
}


a.action-card .title, a.action-card .sub {
    display: block;
}

.action-grid.wide a.action-card {
    padding: 1.2rem 1rem;
}

/* ---------- Bill Log & filter pages ---------- */
.page-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

    .page-bar .page-head {
        margin: 0;
    }

.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.filter-card {
    margin-bottom: 1rem;
}

.fgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 14px 16px;
    align-items: end;
}

.fg {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

    .fg > label {
        font-size: 12px;
        font-weight: 600;
        letter-spacing: .03em;
        text-transform: uppercase;
        color: var(--pol-muted);
    }

    .fg select, .fg input[type=text], .fg input[type=date] {
        width: 100%;
    }

.fg-wide {
    grid-column: span 2;
}

.fg-inline {
    display: flex;
    gap: 8px;
}

    .fg-inline input[type=text] {
        flex: 1;
    }

.fg-actions {
    flex-direction: row;
    gap: 8px;
}

.stat-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.stat {
    background: var(--pol-surface);
    border: 1px solid var(--pol-border);
    border-radius: 10px;
    padding: .7rem 1.1rem;
    min-width: 150px;
}

    .stat:has(.stat-v:empty) {
        display: none;
    }

.stat-l {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    text-transform: uppercase;
    color: var(--pol-muted);
}

.stat-v {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--pol-ink);
}

.content table[rules] td.num, .content table[rules] th.num {
    text-align: right !important;
}

.content table[rules] td.notes {
    white-space: normal;
    min-width: 260px;
}

@media (max-width: 800px) {
    .fg-wide {
        grid-column: span 1;
    }
}

/* Bill Log filter bar: everything in ONE row, labels above each box (scrolls sideways on narrow screens) */
.filter-card {
    overflow-x: auto;
}

.fgrid {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 14px;
    min-width: max-content;
}

    .fgrid .fg {
        flex: 0 0 auto;
        width: auto;
    }

        .fgrid .fg > label {
            font-size: 13px;
            font-weight: 500;
            letter-spacing: 0;
            text-transform: none;
            color: var(--pol-ink2);
        }

        .fgrid .fg select, .fgrid .fg input[type=text], .fgrid .fg input[type=date] {
            width: auto;
            min-width: 140px;
            height: 38px;
        }

    .fgrid .fg-wide {
        grid-column: auto;
    }

    .fgrid .fg-inline {
        align-items: flex-end;
    }

        .fgrid .fg-inline input[type=text] {
            flex: 0 0 auto;
            width: 170px;
        }

    .fgrid .fg-actions {
        flex-direction: row;
        align-items: flex-end;
    }

    .fgrid .buttonColor {
        height: 38px;
        padding-top: 0;
        padding-bottom: 0;
    }

.fg:not(:has(*)) {
    display: none;
}

.content table[rules] td.strong {
    font-weight: 700;
}

.content table[rules] td a.buttonColor.gray3 {
    color: #fff;
}

/* Tasks page */
.fg-check {
    justify-content: flex-end;
    padding-bottom: 8px;
    white-space: nowrap;
}

    .fg-check label {
        text-transform: none;
        letter-spacing: 0;
        font-size: 14px;
        font-weight: 500;
        color: var(--pol-ink);
    }

.status-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 14px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--pol-border);
}

.status-l {
    font-size: 13px;
    font-weight: 600;
    color: var(--pol-ink2);
}

.status-row label {
    margin-right: 10px;
    font-size: 14px;
}

.status-row input[type=checkbox] {
    margin-right: 4px;
}

.req-table > tbody > tr > td {
    padding: 0 0 10px;
}

/* Every grid header looks like the Time Sheets header */
.content table[rules] th,
.content table[rules] tr.HeaderStyle > td,
.content table[rules] tr.HeaderStyleSortable > td {
    background: #e7e4de !important;
    color: var(--pol-ink) !important;
    font-family: var(--pol-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: left !important;
    vertical-align: middle;
    white-space: nowrap;
    border-bottom: 1px solid var(--pol-border-dark);
}

    .content table[rules] th a,
    .content table[rules] th a:visited,
    .content table[rules] th a:hover {
        color: var(--pol-ink) !important;
        font-size: 12px;
        font-weight: 700;
        text-decoration: none;
    }

    .content table[rules] th.num {
        text-align: right !important;
    }

/* Home: Time Clock on top, My Schedule and My Availability side by side below */
.action-grid.home-grid {
    grid-template-columns: 1fr 1fr;
}

.action-grid.home-grid > .span-all {
    grid-column: 1 / -1;
}

@media (max-width: 520px) {
    .action-grid.home-grid {
        grid-template-columns: 1fr;
    }
}

/* View As Role banner */
.viewas-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0 0 16px;
    padding: 10px 14px;
    background: #fff4d6;
    border: 1px solid #f0c36d;
    border-radius: 10px;
    font-size: 14px;
    color: #4a3a0a;
}

    .viewas-bar a {
        font-weight: 700;
        color: #7a3d00;
        text-decoration: underline;
    }

/* Headings and labels that were set to white text in the old pages stay readable */
.content span[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content span[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content label[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content label[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content td[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content td[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content th[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content th[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content p[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content p[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content div[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content div[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content h1[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content h1[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content h2[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content h2[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content h3[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content h3[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content h4[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content h4[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content b[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content b[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content strong[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content strong[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content font[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content font[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content table[style*="color:White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn),
.content table[style*="color: White" i]:not([style*="background"]):not(.buttonColor):not(.tk-btn):not(.sch-btn) {
    color: var(--pol-ink) !important;
}

.content font[color="white" i],
.content font[color="#ffffff" i] {
    color: var(--pol-ink) !important;
}
