html, body {
    font-family: Calibri, 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 14px;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}
/*-----------------------------------------
HWM CUSTOM SECTION (BEGIN)
-------------------------------------------*/
/*--- HOME PAGE ---*/
.hwm-home-table {
    font-size: 14px !important;
    font-weight: 300;
    /* table-layout: fixed requires the widths to be set either on the <colgroup> or on the first row's cells. 
       It ignores CSS classes on subsequent rows. There's no way to set individual column widths 
       once in a CSS class with table-layout: fixed. */
    table-layout: fixed;
    width: fit-content !important; /* prevent table from stretching to full page width */
    max-width: 600px;
}

.hwm-home-table-header {
    text-align: left;
    min-width: 250px;
    max-width: 600px;
}

.hwm-home-table-detail {
    max-width: 600px;
}
/*--- FORM DATA COLUMNS ---*/
.form-control-sm,
.form-select-sm {
    font-size: 13px !important;
}

/*--- FORM FILTERS ---*/
.header-filter-listbox {
    height: 70px !important;
    width: 275px !important;
}
.header-filter-yrqtr {
    width: 125px !important;
}
.header-filter-std {
    width: 290px !important;
}
/*--- REPORTS ---*/
.list-rpt,
.tiny-table-rpt { /* entire report */
    /* table-layout: fixed requires the widths to be set either on the <colgroup> or on the first row's cells. 
       It ignores CSS classes on subsequent rows. There's no way to set individual column widths 
       once in a CSS class with table-layout: fixed. */
    table-layout: fixed;
    width: fit-content !important; /* prevent table from stretching to full page width */
    text-align: right !important;
}
.tiny-table-rpt { /* entire report */
    font-size: 12px !important;
}
.list-rpt {
    font-size: 14px !important;
}
/*--- REPORT COLUMN WIDTHS ---*/
:root {
    --col-narrow: 50px; /* use for TransYr and TransYrQtr columns */
    --col-normal: 75px;
    --col-wide: 100px;
    --col-xwide: 125px;
    --col-xxwide: 200px;
    --col-xxxwide: 300px;

    --nav-font-size: 16px;
}

.col-narrow {
    width: var(--col-narrow);
}

.col-normal {
    width: var(--col-normal);
}

.col-wide {
    width: var(--col-wide);
}

.col-xwide {
    width: var(--col-xwide);
}

.col-xxwide {
    width: var(--col-xxwide);
}

.rpt-group-header {
    text-align: center !important;
    font-weight: 700;
    font-size: 12px !important;
    border-bottom: 1px solid #ccc;
}

/*--- ANNUAL REVIEW & RTQ ---*/
.review-group-header {
    font-weight: 600;
    font-size: 13px;
    color: #336699;
    border-bottom: 1px solid #336699;
    margin-bottom: 8px;
    margin-top: 12px;
    padding-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.review-group-body {
    padding-left: 16px;
    margin-bottom: 8px;
}
.review-inline-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 8px;
}
.review-inline-label-col {
    width: 180px;
    min-width: 180px;
}
.review-inline-label {
    width: 180px;
    min-width: 180px;
    font-size: 14px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 2px;
}
.review-inline-input {
    flex: 1;
}

.review-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 24px;
    margin-bottom: 8px;
}

.review-field {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 8px;
}

.review-field-label {
    width: 160px;
    min-width: 160px;
    font-size: 14px;
    font-weight: 400;
    color: #336699;
    padding-top: 4px;
    margin-bottom: 0;
}

.review-field-input {
    flex: 1;
}

.review-form textarea.form-control {
    font-size: 14px;
    resize: vertical;
    min-height: 80px;
}

.review-form .review-field-input textarea.form-control { /* changes line height of textboxes on each tab */
    min-height: 28px !important;
    height: auto;
    overflow: hidden;
}

.rtq-history-panel {
    background-color: #f0f4f8;
    border: 1px solid #ccdded;
    border-radius: 4px;
    padding: 12px;
}

.review-history-title {
    color: #336699;
    font-size: 16px;
    font-weight: 700;
}

.review-history-table {
    font-size: 13px !important;
    text-align: center !important;
    color: #006bb7;
    font-weight: 400 !important;
    text-decoration: none;
}

.review-history-table-header {
    background-color: #336699;
    color: white;
}

.review-history-client {
    color: #336699;
    text-decoration: none;
}

.review-history-table-year {
    font-size: 13px !important;
    text-align: center !important;
    color: black;
    font-weight: 600 !important;
}

.review-form label.form-label {
    font-size: 14px;
    font-weight: 400;
    color: #336699;
    margin-bottom: 2px;
}

.tab-toolbar {
    margin-bottom: 12px;
}

.form-control {
    font-size: 14px;
}

.char-count {
    font-size: 12px;
    text-align: right;
}

.delete-confirm-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.delete-confirm-box {
    background-color: white;
    border-radius: 6px;
    padding: 24px 32px;
    max-width: 460px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.delete-confirm-box p {
    font-size: 14px;
    margin-bottom: 16px;
}

/*--- REPORT HEADERS ---*/
.hwm-rpt-title { /* report headers */
    font-size: 18px !important;
    font-weight: bold !important;
    text-align: left !important;
    padding-bottom: 10px;
}

.tiny-table-rpt th,
.tiny-table-rpt td { /* shorten row height */
    padding-top: 4px;
    padding-bottom: 4px;
}

.table-colgroup-header th { /* column group headers entire row */
    font-size: 12px !important;
    text-align: center !important;
    border-color: black !important;
    border-right: medium !important;
    border-width: thin !important;
}

.blank-colgroup-header {
    background-color: white !important;
    border: 0 !important;
}

.table-colgroup1-header-title,
.list-rpt-colgroup1-header-title { /* first column group (AKA Year & Qtr) */
    border: 0px !important;
    text-align: left !important;
}

.table-col-header,
.list-rpt-col-header { /* column headers entire row */
    font-size: 12px !important;
    border-color: black !important;
    border-right: medium !important;
    border-width: thin !important;
    border-left: 0 !important; /* removes border on left of first column of report */
}

.table-col-header {
    text-align: center !important;
}

.list-rpt-col-header {
    text-align: left !important;
}

.table-col1-header-title,
.list-rpt-col1-header-title { /* columns in first column group (AKA Year & Qtr) */
    text-align: left !important;
}

/*--- REPORT DATA COLUMNS ---*/
.list-rpt-col-detail-label { /* client name */
    text-align: left !important;
}
.daf-calc-col-header {
    font-size: 12px !important;
    border-color: black !important;
    border-right: medium !important;
    border-width: thin !important;
    border-left: 0 !important; /* removes border on left of first column of report */
    text-align: center;
}
.daf-calc-col-detail {
    font-size: 12px !important;
    text-align: right;
}

.table-col-detail:nth-child(even) { /* this makes the detail rows have alternating backgrounds but leaves headers and footers alone */
    background-color: rgba(0, 0, 0, 0.05) !important;
}

.table-sumgroup-header {
    text-align: left !important; /* Year label */
    font-weight: bold !important;
    background-color: rgb(239, 239, 239) !important;
}

.table-sumgroup-footer {
    font-size: 13px !important;
    text-align: right !important;
    font-weight: bold !important;
    border-top: 2px solid !important; /* thick border above annual Totals */
}

.table-sumgroup-footer-value {
    text-align: right !important;
    padding-right: 4px !important;
    font-size: .875rem !important;
}

.table-sumgroup-grand-total {
    background-color: rgb(239, 239, 239) !important;
    border-bottom: 3px double black !important;
}

.table-sumgroup-footer-title,
.list-rpt-sumgroup-footer-title { /* Total label */
    text-align: left !important;
    font-weight: bold !important;
}

.table-sumgroup-footer-title {
    border-right: 1px solid #808080;
}

.list-rpt-sumgroup-footer-title { /* Total label */
    border-right: 1px solid #808080;
}

.table-sumgroup-subfooter td { /* for floating values that appear below annual totals footer */
    font-size: 13px !important;
    text-align: right !important;
    font-weight: normal !important;
    font-style: italic !important;
    background-color: white !important; /* this doesn't work bc Bootstrap's table-striped is overriding this, so I apply it to the td level */
    border-right: 0 !important; /* removes border between label and data */
    border-bottom: 2px solid !important;
}
/*--- REPORT COLOR COLUMNS ---*/
.blue-text {
    color: blue;
}

.purple-text {
    color: rgb(196, 4, 187); /* rgb(142, 66, 194); */
}

.pink-col {
    background-color: rgb(255, 235, 255) !important;
}

.rose-col {
    background-color: rgb(255, 189, 197) !important;
}

.yellow-col {
    background-color: rgb(255, 255, 205) !important;
}

.green-col {
    background-color: rgb(235, 255, 235) !important;
}

.blue-col {
    background-color: rgb(230, 250, 255) !important;
}

.orange-col {
    background-color: rgb(251, 229, 214) !important;
}

.grey-col {
    background-color: rgb(239, 239, 239) !important;
}
/*--- PAYROLL TAX CALCULATOR ---*/
.hwm-calc-results {
    font-size: 16px;
    max-width: 300px;
}

.hwm-calc-label {
    text-align: left;
    color: #336699;
    font-weight: 600;
    padding-right: 16px;
}
.hwm-calc-data {
    text-align: left;
    width: 125px !important;
}

.hwm-calc-value {
    text-align: right;
    font-weight: 600;
}

.hwm-calc-divider td {
    border-top: 1px solid #336699;
    padding-top: 20px 0 !important;
}

.hwm-calc-total td {
    border-top: 2px solid #336699;
    font-size: 18px;
    padding-bottom: 40px; /* adds space between paycheck total and tax due rows */
}

/*--- MISC ---*/
.column-divider {
    border-right: 1px solid #808080;
}

.negative-val {
    color: #c0392b;
    font-weight: 600;
}

.rpt-filter-section {
    margin-top: -10px !important;
    padding-bottom: 10px !important;
    font-size: 15px;
}

.paycheck-mismatch { /* used to make block red if calc paycheck does not match bank paycheck amount */
    color: white;
    background-color: red !important;
    font-weight: 600;
}

/*--- NAVIGATION (more in NavMenu.razor.css, but this particular code must go here to override Bootstrap's defaults ---*/
.sidebar {
    background-image: none !important;
    background-color: #f0f4f8 !important;
    width: 290px !important; /* width of entire side bar to keep menus from wrapping */
    min-width: 290px !important; /* width of entire side bar to keep menus from wrapping */
}

    .sidebar .nav-link {
        color: #336699 !important;
    }

        .sidebar .nav-link.active {
            /* color: #66CCFF !important; */
            color: white !important;
        }

        .sidebar .nav-link:hover {
            color: #1a2e42 !important;
            background-color: #ccdded !important;
        }

    .sidebar a.nav-link.hwm-nav-link {
        color: #336699 !important;
    }
        .sidebar a.nav-link.hwm-nav-link.active {
            color: white !important;
        }
.hwm-nav-link {
    font-size: var(--nav-font-size) !important;
    font-weight: 400 !important;
    color: #336699 !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    display: block;
    text-decoration: none;
    transition: background-color 0.15s ease;
}

    .hwm-nav-link:hover {
        background-color: #ccdded !important;
        color: #1a2e42 !important;
    }

    .hwm-nav-link.active {
        background-color: #336699 !important;
        color: white !important;
        font-weight: 600;
    }

a.hwm-nav-link {
    font-size: var(--nav-font-size) !important;
    color: #336699 !important;
    padding: 8px 18px !important;
    border-radius: 4px;
    display: block;
    text-decoration: none;
}

    a.hwm-nav-link:hover {
        background-color: #ccdded !important;
        color: #1a2e42 !important;
    }
/*--- FROZEN FIRST COLUMN (lots of reports) ---*/
.frozen-col {
    position: sticky !important;
    left: 0 !important;
    z-index: 2 !important;
    background-color: white !important;
    box-shadow: 2px 0 4px rgba(0,0,0,0.1); /* adds shadow to show separation */
    --bs-table-bg: white !important;
    --bs-table-accent-bg: white !important;
}

.table-col-header th.frozen-col {
    z-index: 3 !important;
}

/*--- ROW HOVER ---*/
.hwm-row-hover:hover td {
    --bs-table-accent-bg: #e8f0f7 !important;
    --bs-table-bg: #e8f0f7 !important;
}

    .hwm-row-hover:hover td.frozen-col {
        --bs-table-bg: #e8f0f7 !important;
        --bs-table-accent-bg: #e8f0f7 !important;
        background-color: #e8f0f7 !important;
    }
/*-----------------------------------------
HWM CUSTOM SECTION (END)
-------------------------------------------*/
