:root {
    --charcoal: #373839;
    --charcoal-active: #494a4b;
    --gott-red: #a50000;
    --gott-red-dark: #8e0000;
    --text: #263746;
    --line: rgba(255, 255, 255, .62);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
}

body {
    color: var(--text);
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
}

a {
    color: inherit;
}

.utility-bar {
    height: 36px;
    background: var(--charcoal);
    position: relative;
}

.help-link {
    position: absolute;
    right: 29px;
    top: 11px;
    color: #fff;
    text-decoration: none;
    font-size: 10px;
    line-height: 1;
    letter-spacing: .1px;
}

.help-link:hover,
.help-link:focus {
    text-decoration: underline;
}

.brand-bar {
    height: 142px;
    background: #fff;
}

.brand-inner {
    width: min(1500px, calc(100% - 80px));
    height: 100%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-logo-link {
    display: block;
    margin-left: 48px;
}

.brand-logo {
    display: block;
    width: 354px;
    height: auto;
}

.security-image {
    display: block;
    width: 220px;
    height: 132px;
    margin-right: 63px;
    object-fit: contain;
}

.main-nav {
    height: 59px;
    background: var(--charcoal);
}

.nav-inner {
    width: min(940px, calc(100% - 80px));
    height: 59px;
    margin: 0 auto;
    display: flex;
    align-items: stretch;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 0 17px;
    color: #fff;
    text-decoration: none;
    font-size: 16px;
    line-height: 1;
    letter-spacing: .25px;
    white-space: nowrap;
}

.nav-link.is-active,
.nav-link:hover,
.nav-link:focus {
    background: var(--charcoal-active);
}

.nav-toggle {
    display: none;
}

.dashboard-surface {
    min-height: calc(100vh - 237px);
    background-image: url('../images/dbbackground.jpg');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: cover;
    overflow: hidden;
}

.dashboard-main {
    min-height: 440px;
    padding-top: 62px;
}

.dashboard-grid {
    width: min(1140px, calc(100% - 80px));
    margin: 26px auto 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    column-gap: 55px;
    border-top: 1px solid var(--line);
}

.dashboard-column {
    min-width: 0;
    text-align: center;
}

.dashboard-heading {
    margin: -29px 0 13px;
    color: #000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 25px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: .2px;
    text-shadow: 2px 2px 1px rgba(255, 255, 255, .85), 2px 3px 2px rgba(0, 0, 0, .22);
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 19px;
}

.dashboard-button,
.standard-button {
    width: 190px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    color: #fff;
    background: linear-gradient(#a90000, #950000);
    border: 1px solid #920000;
    border-radius: 5px;
    box-shadow: 3px 4px 2px rgba(0, 0, 0, .30);
    text-decoration: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 14px;
    line-height: 1.1;
    text-align: center;
}

.dashboard-button:hover,
.dashboard-button:focus,
.standard-button:hover,
.standard-button:focus {
    background: linear-gradient(#bc0000, #a10000);
    transform: translateY(-1px);
}

.site-footer {
    color: #111;
    text-align: center;
    font-size: 13px;
    font-style: italic;
    line-height: 1.55;
}

.dashboard-footer {
    width: min(1200px, calc(100% - 60px));
    margin: 127px auto 0;
    padding-bottom: 20px;
}

.site-footer p {
    margin: 0 0 19px;
}

.site-footer .ownership-notice {
    margin-bottom: 20px;
}

.site-footer .powered-by {
    font-size: 12px;
}

.footer-accent {
    color: #e02323;
}

.module-main {
    min-height: calc(100vh - 237px - 150px);
    background: #fff;
    padding: 12px 5% 70px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #3b4853;
    font-size: 11px;
    text-transform: uppercase;
}

.breadcrumb a {
    color: var(--gott-red);
    text-decoration: none;
    font-size: 17px;
}

.module-placeholder {
    width: min(720px, 100%);
    margin: 38px 0 0 22px;
}

.module-placeholder h1 {
    margin: 0 0 25px;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 52px;
    font-weight: 400;
    letter-spacing: .3px;
}

.module-placeholder p {
    max-width: 650px;
    margin-bottom: 28px;
    line-height: 1.6;
}

.standard-button {
    width: 180px;
    min-height: 33px;
    border-radius: 0;
    box-shadow: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
}

.module-page .site-footer {
    padding: 28px 20px 12px;
    border-top: 1px solid #eee;
}

@media (max-width: 980px) {
    .brand-inner {
        width: calc(100% - 36px);
    }

    .brand-logo-link {
        margin-left: 0;
    }

    .security-image {
        margin-right: 0;
    }

    .nav-inner {
        width: 100%;
        justify-content: center;
    }

    .nav-link {
        padding: 0 12px;
        font-size: 14px;
    }

    .dashboard-grid {
        width: calc(100% - 50px);
        column-gap: 24px;
    }
}

@media (max-width: 740px) {
    .utility-bar {
        height: 32px;
    }

    .brand-bar {
        height: 110px;
    }

    .brand-logo {
        width: min(280px, 60vw);
    }

    .security-image {
        width: 130px;
        height: 90px;
    }

    .main-nav {
        height: auto;
        min-height: 52px;
        position: relative;
    }

    .nav-toggle {
        display: block;
        width: 100%;
        height: 52px;
        color: white;
        background: transparent;
        border: 0;
        font-weight: 700;
    }

    .nav-inner {
        display: none;
        width: 100%;
        height: auto;
        flex-direction: column;
    }

    .main-nav.is-open .nav-inner {
        display: flex;
    }

    .nav-link {
        min-height: 48px;
        justify-content: center;
    }

    .dashboard-surface {
        min-height: calc(100vh - 194px);
        background-position: center top;
    }

    .dashboard-main {
        min-height: auto;
        padding-top: 54px;
    }

    .dashboard-grid {
        width: calc(100% - 34px);
        grid-template-columns: 1fr;
        row-gap: 70px;
        border-top: 0;
    }

    .dashboard-column {
        border-top: 1px solid var(--line);
    }

    .dashboard-footer {
        margin-top: 90px;
    }
}

/* Add New Timesheet ------------------------------------------------------- */
.input-module-main {
    min-height: 760px;
    padding-bottom: 90px;
}

.timesheet-entry {
    width: 580px;
    max-width: calc(100% - 30px);
    margin: 38px auto 0;
}

.timesheet-entry h1 {
    margin: 0 0 12px;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 42px;
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: .2px;
}

.add-customer-link {
    display: inline-block;
    margin: 0 0 14px;
    color: #a31000;
    font-family: 'Times New Roman', Times, serif;
    font-size: 12px;
    text-decoration: underline;
}

.form-notice {
    width: 355px;
    margin: 0 0 14px;
    padding: 9px 11px;
    border-left: 4px solid;
    font-size: 12px;
    line-height: 1.35;
}

.form-notice-success {
    color: #236a31;
    background: #eff8f0;
    border-color: #2f8a40;
}

.form-notice-error {
    color: #8e1414;
    background: #fff0f0;
    border-color: #b31b1b;
}

.legacy-entry-form {
    width: 390px;
    margin-left: 10px;
}

.legacy-form-row {
    display: grid;
    grid-template-columns: 132px 220px;
    align-items: start;
    min-height: 33px;
    margin-bottom: 0;
}

.legacy-form-row > label {
    padding: 7px 10px 0 0;
    color: #293947;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.2;
    text-align: left;
}

.required-mark {
    margin-left: 2px;
    color: #920000;
}

.field-shell {
    position: relative;
    width: 220px;
    min-height: 32px;
}

.legacy-entry-form input[type='text'],
.legacy-entry-form input[type='number'],
.legacy-entry-form input[type='date'] {
    width: 220px;
    height: 27px;
    margin: 0;
    padding: 3px 7px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    outline: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 19px;
}

.legacy-entry-form input:focus {
    border-color: #999;
    box-shadow: 0 0 0 1px rgba(160, 0, 0, .10);
}

.legacy-entry-form input[readonly] {
    color: #555;
    background: #fff;
}

.date-control,
.lookup-control {
    position: relative;
    width: 220px;
}

.date-control input,
.lookup-control input {
    padding-right: 31px !important;
}

.date-control input[type='date']::-webkit-calendar-picker-indicator {
    opacity: 0;
    pointer-events: none;
}

.calendar-button,
.lookup-button {
    position: absolute;
    top: 4px;
    right: 5px;
    width: 18px;
    height: 19px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: #df343b;
    border: 0;
    border-radius: 1px;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    line-height: 1;
}

.lookup-button {
    right: 4px;
    top: 4px;
    width: 20px;
    border-radius: 4px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -1px;
}

.calendar-button:hover,
.calendar-button:focus,
.lookup-button:hover,
.lookup-button:focus {
    background: #c7252c;
}

.field-error {
    display: block;
    width: 260px;
    margin: 2px 0 3px;
    color: #a40000;
    font-size: 10px;
    line-height: 1.25;
}

.autocomplete-menu {
    position: absolute;
    z-index: 100;
    top: 27px;
    left: 0;
    width: 220px;
    max-height: 210px;
    overflow-y: auto;
    display: none;
    color: #293947;
    background: #fff;
    border: 1px solid #aaa;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .18);
}

.autocomplete-menu.is-open {
    display: block;
}

.autocomplete-option,
.autocomplete-empty {
    width: 100%;
    display: block;
    padding: 6px 8px;
    border: 0;
    border-bottom: 1px solid #ececec;
    color: #293947;
    background: #fff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 1.25;
    text-align: left;
}

.autocomplete-option {
    cursor: pointer;
}

.autocomplete-option:hover,
.autocomplete-option.is-active {
    color: #fff;
    background: #a50000;
}

.autocomplete-empty {
    color: #777;
    font-style: italic;
}

.legacy-form-actions {
    margin: 5px 0 0 -5px;
}

.legacy-submit {
    width: 145px;
    height: 28px;
    padding: 0;
    color: #fff;
    background: #a51605;
    border: 0;
    border-radius: 0;
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    line-height: 28px;
    text-align: center;
}

.legacy-submit:hover,
.legacy-submit:focus {
    background: #8d1204;
}

.legacy-submit:disabled {
    cursor: wait;
    opacity: .65;
}

@media (max-width: 740px) {
    .input-module-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .timesheet-entry {
        width: 100%;
        margin-top: 30px;
    }

    .timesheet-entry h1 {
        font-size: 38px;
    }

    .legacy-entry-form {
        width: 100%;
        margin-left: 0;
    }

    .legacy-form-row {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-bottom: 10px;
    }

    .legacy-form-row > label {
        padding-top: 0;
    }

    .field-shell,
    .date-control,
    .lookup-control,
    .legacy-entry-form input[type='text'],
    .legacy-entry-form input[type='number'],
    .legacy-entry-form input[type='date'],
    .autocomplete-menu,
    .form-notice {
        width: 100%;
    }

    .legacy-form-actions {
        margin-left: 0;
    }
}

/* Edit Timesheet ---------------------------------------------------------- */
.edit-module-main {
    min-height: 620px;
    padding-left: 3%;
    padding-right: 3%;
}

.edit-search-section {
    width: 430px;
    max-width: calc(100% - 25px);
    margin: 34px 0 0 20px;
}

.edit-search-section h1 {
    margin: 0 0 18px;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
}

.edit-search-form {
    display: grid;
    grid-template-columns: 70px 220px;
    align-items: start;
    row-gap: 24px;
}

.edit-search-form label {
    padding-top: 7px;
    color: #293947;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
}

.edit-search-field {
    width: 220px;
}

.edit-search-field input {
    width: 220px;
    height: 27px;
    padding: 3px 7px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font-size: 12px;
}

.legacy-search-button {
    grid-column: 1 / span 2;
    width: 180px;
    height: 32px;
    margin-left: -5px;
    color: #fff;
    background: #a51605;
    border: 0;
    cursor: pointer;
    font-size: 13px;
}

.legacy-search-button:hover,
.legacy-search-button:focus {
    background: #8d1204;
}

.edit-results {
    width: 100%;
    margin-top: 42px;
}

.download-data-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 28px 15px;
    color: #0071ad;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.download-data-link:hover,
.download-data-link:focus {
    text-decoration: underline;
}

.report-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 8px;
}

.legacy-report-table {
    width: 100%;
    min-width: 1530px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #425360;
    font-size: 12px;
}

.legacy-report-table th {
    height: 38px;
    padding: 7px 12px;
    color: #a11100;
    border-bottom: 2px solid #b21a0c;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.legacy-report-table td {
    height: 38px;
    padding: 7px 12px;
    border-bottom: 1px solid #f1f1f1;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legacy-report-table .col-employee { width: 190px; }
.legacy-report-table .col-date { width: 100px; }
.legacy-report-table .col-customer { width: 220px; }
.legacy-report-table .col-description { width: 160px; }
.legacy-report-table .col-quantity { width: 90px; }
.legacy-report-table .col-unit { width: 75px; }
.legacy-report-table .col-pit { width: 95px; }
.legacy-report-table .col-cost { width: 105px; }
.legacy-report-table .col-notes { width: 115px; }
.legacy-report-table .col-invoice { width: 145px; }
.legacy-report-table .col-edit-id { width: 95px; }
.legacy-report-table .col-detail-id { width: 90px; }
.legacy-report-table .col-actions { width: 115px; }

.sort-caret {
    color: #c90000;
    font-size: 10px;
}

.number-cell {
    text-align: right;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    overflow: visible !important;
}

.row-icon {
    width: 18px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #6a6a6a;
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 20px;
    line-height: 1;
}

.row-edit-icon {
    font-size: 17px;
    transform: rotate(-12deg);
}

.row-icon:hover,
.row-icon:focus {
    color: #a50000;
}

.delete-record-form {
    display: inline;
    margin: 0;
}

.record-count {
    margin: 22px 0 0;
    text-align: center;
    color: #425360;
    font-size: 12px;
}

.inline-edit-row > td {
    padding: 0 !important;
    overflow: visible !important;
}

.inline-edit-form {
    width: 100%;
    background: #f4fbfb;
}

.inline-edit-grid {
    min-width: 1530px;
    display: grid;
    grid-template-columns: 190px 100px 220px 160px 90px 75px 95px 105px 115px 145px 95px 90px 115px;
    align-items: start;
}

.inline-cell {
    position: relative;
    min-width: 0;
    min-height: 43px;
    padding: 7px 8px;
    overflow: visible;
}

.inline-cell > input,
.inline-cell .date-control,
.inline-cell .lookup-control {
    width: 100%;
}

.inline-cell input[type='text'],
.inline-cell input[type='number'],
.inline-cell input[type='date'] {
    width: 100%;
    height: 24px;
    padding: 2px 5px;
    color: #425360;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font-size: 12px;
}

.inline-cell .autocomplete-menu {
    top: 31px;
    left: 8px;
    width: calc(100% - 16px);
    min-width: 150px;
}

.inline-date-control input,
.inline-lookup-control input {
    padding-right: 27px !important;
}

.inline-date-control .calendar-button,
.inline-lookup-control .lookup-button {
    top: 3px;
    right: 4px;
}

.inline-readonly-id {
    padding-top: 12px;
    text-align: center;
}

.inline-action-buttons {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 6px;
}

.row-update-button,
.row-cancel-button {
    min-width: 70px;
    height: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    border: 1px solid #a51605;
    border-radius: 0;
    font-size: 10px;
    text-decoration: none;
}

.row-update-button {
    color: #fff;
    background: #a51605;
    cursor: pointer;
}

.row-cancel-button {
    color: #9b1000;
    background: #fff;
}

.row-update-button:hover,
.row-update-button:focus {
    background: #8d1204;
}

.row-cancel-button:hover,
.row-cancel-button:focus {
    background: #fff3f0;
}

.inline-cell .field-error {
    width: 100%;
    white-space: normal;
}

@media (max-width: 740px) {
    .edit-module-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .edit-search-section {
        width: 100%;
        margin-left: 0;
    }

    .edit-search-form {
        grid-template-columns: 62px minmax(0, 1fr);
    }

    .edit-search-field,
    .edit-search-field input {
        width: 100%;
    }

    .edit-results {
        margin-top: 34px;
    }
}

/* Customers / All Customers ---------------------------------------------- */
.customer-module-main {
    min-height: 720px;
    padding-left: 3%;
    padding-right: 3%;
}

.customer-list-module {
    width: 100%;
    margin: 34px 0 0 20px;
}

.customer-list-module h1 {
    margin: 0 0 18px;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2px;
}

.customer-notice {
    width: min(560px, calc(100% - 20px));
    margin-bottom: 16px;
}

.customer-search-form {
    width: 510px;
    max-width: calc(100% - 20px);
    display: grid;
    grid-template-columns: 110px 310px;
    align-items: start;
    margin: 0 0 34px;
}

.customer-search-form > label {
    padding-top: 7px;
    color: #293947;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
}

.customer-search-controls {
    display: flex;
    align-items: center;
    gap: 9px;
}

.customer-search-controls input {
    width: 220px;
    height: 27px;
    padding: 3px 7px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font-size: 12px;
}

.customer-search-form .legacy-search-button {
    grid-column: auto;
    width: 80px;
    height: 27px;
    margin: 0;
    font-size: 11px;
}

.customer-clear-search {
    color: #a31000;
    font-size: 10px;
    text-decoration: underline;
}

.customer-search-hint {
    grid-column: 2;
    margin-top: 4px;
    color: #6a6a6a;
    font-size: 10px;
}

.customer-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
}

.legacy-customer-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #425360;
    font-size: 12px;
}

.legacy-customer-table .customer-col-id { width: 95px; }
.legacy-customer-table .customer-col-name { width: 245px; }
.legacy-customer-table .customer-col-address { width: 285px; }
.legacy-customer-table .customer-col-city { width: 250px; }
.legacy-customer-table .customer-col-open { width: 120px; }
.legacy-customer-table .customer-col-actions { width: 85px; }

.legacy-customer-table th {
    height: 38px;
    padding: 7px 11px;
    color: #a11100;
    border-bottom: 2px solid #b21a0c;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.legacy-customer-table th a {
    color: inherit;
    text-decoration: none;
}

.legacy-customer-table th a:hover,
.legacy-customer-table th a:focus {
    text-decoration: underline;
}

.legacy-customer-table th span {
    color: #c90000;
    font-size: 9px;
}

.legacy-customer-table td {
    height: 37px;
    padding: 6px 11px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-add-row,
.customer-edit-row {
    background: #f2fafa;
}

.customer-add-row td,
.customer-edit-row td {
    height: 45px;
    overflow: visible;
    white-space: normal;
}

.legacy-customer-table input[type='text'],
.legacy-customer-table input[type='number'] {
    width: 100%;
    height: 25px;
    padding: 2px 6px;
    color: #425360;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.legacy-customer-table input:focus {
    border-color: #999;
    outline: 0;
    box-shadow: 0 0 0 1px rgba(160, 0, 0, .08);
}

.customer-autonumber {
    color: #777;
    font-style: italic;
}

.customer-id-cell,
.customer-open-cell {
    text-align: right;
}

.customer-open-input {
    text-align: right;
}

.customer-address-control {
    position: relative;
    width: 100%;
}

.customer-address-control input {
    padding-right: 29px !important;
}

.customer-address-button {
    position: absolute;
    top: 3px;
    right: 4px;
    width: 20px;
    height: 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: #fff;
    background: #df343b;
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: -1px;
}

.customer-address-button:hover,
.customer-address-button:focus {
    background: #c7252c;
}

.customer-action-cell {
    overflow: visible !important;
    text-align: right;
}

.customer-row-actions {
    white-space: nowrap !important;
}

.customer-row-actions .delete-record-form {
    display: inline-block;
    vertical-align: middle;
}

.customer-add-button {
    min-width: 58px;
    height: 25px;
    padding: 0 10px;
    color: #fff;
    background: #a51605;
    border: 1px solid #a51605;
    border-radius: 0;
    cursor: pointer;
    font-size: 10px;
}

.customer-add-button:hover,
.customer-add-button:focus {
    background: #8d1204;
}

.customer-edit-actions {
    text-align: left;
    white-space: normal !important;
}

.customer-edit-actions .row-update-button,
.customer-edit-actions .row-cancel-button {
    min-width: 62px;
    margin-bottom: 3px;
}

.legacy-customer-table .field-error {
    width: 100%;
    margin-top: 3px;
    white-space: normal;
}

.customer-empty-row {
    height: 60px !important;
    color: #6d7780;
    text-align: center;
}

.customer-table-footer {
    min-height: 45px;
    position: relative;
    padding-top: 1px;
}

.customer-table-footer .record-count {
    margin-top: 18px;
}

.customer-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    color: #425360;
    font-size: 11px;
}

.customer-pager a {
    min-width: 21px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8f1000;
    background: #fff;
    border: 1px solid #d4d4d4;
    text-decoration: none;
}

.customer-pager a:hover,
.customer-pager a:focus {
    background: #fff2ef;
}

.customer-pager a.is-disabled {
    color: #aaa;
    background: #f6f6f6;
    pointer-events: none;
}

.customer-pager span {
    min-width: 100px;
    text-align: center;
}

@media (max-width: 740px) {
    .customer-module-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .customer-list-module {
        margin-left: 0;
    }

    .customer-search-form {
        width: 100%;
        grid-template-columns: 95px minmax(0, 1fr);
    }

    .customer-search-controls {
        flex-wrap: wrap;
    }

    .customer-search-controls input {
        width: min(220px, 100%);
    }
}

/* Jobs in Progress --------------------------------------------------------- */
.jobs-module-main {
    min-height: 720px;
    padding-left: 5%;
    padding-right: 5%;
}

.jobs-report {
    width: min(760px, calc(100% - 20px));
    margin: 36px auto 0;
}

.jobs-report-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 22px;
}

.jobs-report h1 {
    margin: 0;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2px;
}

.print-report-button {
    min-width: 104px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    padding: 0 9px;
    color: #4e5961;
    background: linear-gradient(#fff, #ececec);
    border: 1px solid #bfc3c6;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1;
}

.print-report-button:hover,
.print-report-button:focus {
    color: #941000;
    background: #fff;
    border-color: #a9a9a9;
}

.jobs-filter-form {
    width: 100%;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: start;
    gap: 10px 14px;
    margin: 0 0 26px;
    padding: 15px 18px 14px;
    background: #f4fafa;
    border-top: 1px solid #dce6e6;
    border-bottom: 1px solid #dce6e6;
}

.jobs-filter-form > label {
    padding-top: 7px;
    color: #293947;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
}

.jobs-filter-control {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
}

.jobs-filter-control input,
.jobs-filter-control select {
    height: 27px;
    padding: 3px 7px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.jobs-filter-control input[type='text'] {
    width: min(310px, 100%);
}

.jobs-filter-hint {
    color: #6a6a6a;
    font-size: 10px;
    white-space: nowrap;
}

.jobs-invoice-filter-control select {
    width: 112px;
}

.jobs-invoice-filter-control input {
    width: 92px;
}

.jobs-filter-actions {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 1px;
}

.jobs-filter-actions .legacy-search-button {
    width: 82px;
    height: 27px;
    margin: 0;
    font-size: 11px;
}

.jobs-clear-filter {
    color: #a31000;
    font-size: 10px;
    text-decoration: underline;
}

.jobs-filter-error {
    width: 100%;
    margin: -10px 0 18px;
}

.jobs-report-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
}

.jobs-report-table {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #425360;
    font-size: 12px;
}

.jobs-report-table .jobs-col-name {
    width: 78%;
}

.jobs-report-table .jobs-col-open {
    width: 22%;
}

.jobs-report-table th {
    height: 37px;
    padding: 7px 12px;
    color: #a11100;
    border-bottom: 2px solid #b21a0c;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.jobs-report-table th:last-child {
    text-align: center;
}

.jobs-report-table td {
    height: 34px;
    padding: 6px 12px;
    border-bottom: 1px solid #efefef;
    vertical-align: middle;
}

.jobs-customer-link {
    color: #a31000;
    text-decoration: underline;
}

.jobs-customer-link:hover,
.jobs-customer-link:focus {
    color: #780c00;
}

.jobs-open-count {
    text-align: center;
}

.jobs-empty-row {
    height: 58px !important;
    color: #6d7780;
    text-align: center;
}

.jobs-record-count {
    margin: 20px 0 0;
    color: #425360;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 740px) {
    .jobs-module-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .jobs-report {
        width: 100%;
    }

    .jobs-report-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .jobs-report h1 {
        font-size: 42px;
    }

    .print-report-button {
        margin-top: 0;
    }

    .jobs-filter-form {
        grid-template-columns: 1fr;
        padding-left: 14px;
        padding-right: 14px;
    }

    .jobs-filter-form > label {
        padding-top: 0;
    }

    .jobs-filter-actions {
        grid-column: 1;
    }

    .jobs-filter-control {
        flex-wrap: wrap;
    }

    .jobs-filter-control input[type='text'] {
        width: min(310px, 100%);
    }
}

@media print {
    .site-header,
    .site-footer,
    .breadcrumb,
    .print-report-button,
    .jobs-filter-form,
    .jobs-filter-error {
        display: none !important;
    }

    .module-main,
    .jobs-module-main {
        min-height: 0;
        padding: 0;
    }

    .jobs-report {
        width: 100%;
        margin: 0;
    }

    .jobs-report-heading-row {
        margin-bottom: 18px;
    }

    .jobs-report-table-wrap {
        overflow: visible;
    }

    .jobs-report-table {
        min-width: 0;
    }

    .jobs-customer-link {
        color: #000;
        text-decoration: none;
    }
}

/* Customer Detail --------------------------------------------------------- */
.customer-detail-module-main {
    min-height: 760px;
    padding-left: 4%;
    padding-right: 4%;
}

.customer-detail-search-section {
    width: min(660px, calc(100% - 20px));
    margin: 38px 0 0 22px;
}

.customer-detail-search-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 30px;
}

.customer-detail-search-section h1,
.customer-detail-report h1 {
    margin: 0;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2px;
}

.customer-detail-new-search,
.customer-detail-back-link {
    color: #a31000;
    font-size: 11px;
    text-decoration: underline;
}

.customer-detail-new-search {
    margin-top: 13px;
}

.customer-detail-search-notice {
    width: min(500px, 100%);
    margin: 20px 0 0;
}

.customer-detail-search-form {
    width: 510px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 122px 275px 82px;
    align-items: start;
    gap: 0 9px;
    margin-top: 35px;
}

.customer-detail-search-form > label {
    padding-top: 7px;
    color: #293947;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
}

.customer-detail-search-form .field-shell {
    position: relative;
}

.customer-detail-search-form input[type='text'] {
    width: 100%;
    height: 27px;
    padding: 3px 7px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font-size: 12px;
}

.customer-detail-search-form .legacy-search-button {
    width: 82px;
    height: 27px;
    margin: 0;
}

.customer-detail-report {
    width: 100%;
    margin: 34px 0 0;
}

.customer-detail-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin: 0 0 24px 22px;
}

.customer-detail-toolbar h1 {
    font-size: 40px;
    text-transform: uppercase;
}

.customer-detail-back-link {
    display: inline-block;
    margin-top: 9px;
    font-weight: 700;
}

.customer-detail-report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 5px;
}

.customer-detail-report-actions .print-report-button {
    margin-top: 0;
}

.customer-detail-grid-button {
    min-width: 76px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 9px;
    color: #4e5961;
    background: linear-gradient(#fff, #ececec);
    border: 1px solid #bfc3c6;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    font-size: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.customer-detail-grid-button:hover,
.customer-detail-grid-button:focus,
.customer-detail-grid-button.is-active {
    color: #941000;
    background: #fff;
    border-color: #a9a9a9;
}

.customer-detail-notice {
    width: min(620px, calc(100% - 44px));
    margin: 0 0 18px 22px;
}

.customer-detail-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 5px;
}

.customer-detail-table {
    width: 100%;
    min-width: 1450px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #425360;
    font-size: 11px;
}

.customer-detail-table .customer-detail-col-type { width: 120px; }
.customer-detail-table .customer-detail-col-description { width: 190px; }
.customer-detail-table .customer-detail-col-date { width: 92px; }
.customer-detail-table .customer-detail-col-employee { width: 155px; }
.customer-detail-table .customer-detail-col-quantity { width: 82px; }
.customer-detail-table .customer-detail-col-unit { width: 75px; }
.customer-detail-table .customer-detail-col-pit { width: 130px; }
.customer-detail-table .customer-detail-col-cost { width: 92px; }
.customer-detail-table .customer-detail-col-notes { width: 230px; }
.customer-detail-table .customer-detail-col-invoice { width: 120px; }
.customer-detail-table .customer-detail-col-edit-id { width: 80px; }
.customer-detail-table .customer-detail-col-actions { width: 54px; }

.customer-detail-table th {
    height: 38px;
    padding: 7px 7px;
    color: #a11100;
    border-bottom: 2px solid #b21a0c;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.customer-detail-table td {
    min-height: 34px;
    padding: 6px 7px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.customer-detail-group-row td {
    height: 31px;
    color: #9d1304;
    background: #f9f9f9;
    border-bottom: 1px solid #dedede;
    font-weight: 700;
}

.customer-detail-data-row td:first-child,
.customer-detail-data-row td:nth-child(2) {
    background: #fcfcfc;
}

.customer-detail-cost-cell,
.customer-detail-edit-id-cell,
.customer-detail-table .number-cell {
    text-align: right;
}

.customer-detail-row-actions {
    overflow: visible !important;
    text-align: center;
}

.customer-detail-description-total-row td {
    color: #4b5964;
    background: #fafafa;
    border-bottom: 1px solid #d8d8d8;
    font-weight: 700;
}

.customer-detail-type-total-row td {
    color: #982000;
    background: #f4f4f4;
    border-bottom: 2px solid #ccc;
    font-weight: 700;
}

.customer-detail-overall-total-row td {
    color: #8e0000;
    background: #ededed;
    border-top: 2px solid #a91505;
    border-bottom: 2px solid #a91505;
    font-weight: 700;
}

.customer-detail-empty-row {
    height: 65px !important;
    color: #6d7780;
    text-align: center;
}

.customer-detail-record-count {
    margin: 19px 0 0;
    color: #425360;
    font-size: 11px;
    text-align: center;
}

.customer-detail-inline-edit-row > td {
    padding: 0;
    overflow: visible;
    white-space: normal;
}

.customer-detail-inline-form {
    width: 100%;
    padding: 5px 4px;
    background: #eef8f8;
}

.customer-detail-inline-grid {
    display: grid;
    grid-template-columns: 120px 190px 92px 155px 82px 75px 130px 92px 230px 120px 80px 92px;
    gap: 0;
    align-items: start;
}

.customer-detail-inline-grid .inline-cell {
    min-width: 0;
    position: relative;
    padding: 2px 4px;
    overflow: visible;
}

.customer-detail-inline-grid input {
    width: 100%;
    height: 25px;
    padding: 2px 4px;
    color: #425360;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
}

.customer-detail-inline-grid .lookup-control input {
    padding-right: 28px;
}

.customer-detail-inline-grid .inline-readonly-id {
    padding-top: 8px;
    text-align: right;
}

.customer-detail-inline-grid .inline-action-buttons {
    padding-top: 2px;
}

.customer-detail-inline-grid .row-update-button,
.customer-detail-inline-grid .row-cancel-button {
    min-width: 78px;
    margin-bottom: 3px;
}

.customer-detail-grid-edit-row {
    background: #eef8f8;
}

.customer-detail-grid-edit-row td {
    padding: 4px 4px;
    overflow: visible;
    white-space: normal;
}

.customer-detail-grid-edit-row input[type='text'],
.customer-detail-grid-edit-row input[type='number'],
.customer-detail-grid-edit-row input[type='date'] {
    width: 100%;
    min-width: 0;
    height: 25px;
    padding: 2px 4px;
    color: #425360;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
}

.customer-detail-grid-actions {
    text-align: center;
}

.customer-detail-grid-actions .row-update-button {
    min-width: 50px;
    padding-left: 5px;
    padding-right: 5px;
    font-size: 9px;
}

@media (max-width: 740px) {
    .customer-detail-module-main {
        padding-left: 16px;
        padding-right: 16px;
    }

    .customer-detail-search-section,
    .customer-detail-report {
        width: 100%;
        margin-left: 0;
    }

    .customer-detail-search-form {
        grid-template-columns: 105px minmax(0, 1fr);
        row-gap: 9px;
    }

    .customer-detail-search-form .legacy-search-button {
        grid-column: 2;
    }

    .customer-detail-toolbar {
        flex-direction: column;
        margin-left: 0;
    }

    .customer-detail-report-actions {
        flex-wrap: wrap;
    }

    .customer-detail-toolbar h1 {
        font-size: 35px;
    }
}

@media print {
    .customer-detail-report-actions,
    .customer-detail-back-link,
    .customer-detail-row-actions,
    .customer-detail-grid-actions,
    .customer-detail-notice {
        display: none !important;
    }

    .customer-detail-module-main {
        min-height: 0;
        padding: 0;
    }

    .customer-detail-report {
        margin: 0;
    }

    .customer-detail-toolbar {
        margin: 0 0 18px;
    }

    .customer-detail-table-scroll {
        overflow: visible;
    }

    .customer-detail-table {
        min-width: 0;
        font-size: 8px;
    }
}

/* Jobs in Progress sortable headers — V6.2 ------------------------------- */
.jobs-sort-link {
    width: 100%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #a11100;
    text-decoration: none;
    cursor: pointer;
}

.jobs-sort-link-open {
    justify-content: center;
}

.jobs-sort-link:hover,
.jobs-sort-link:focus {
    color: #780c00;
    text-decoration: underline;
}

.jobs-sort-indicator {
    min-width: 10px;
    font-size: 9px;
    line-height: 1;
    text-decoration: none;
}

.jobs-report-error {
    margin: 0 0 18px;
}

/* Pit Query V7 */
.pit-query-module-main {
    min-height: 760px;
    padding-bottom: 90px;
}

.pit-query-search-section {
    width: 430px;
    margin: 62px 0 0 335px;
}

.pit-query-search-section h1,
.pit-query-report h1 {
    margin: 0;
    color: #941000;
    font-family: "Arial Narrow", Arial, Helvetica, sans-serif;
    font-size: 47px;
    font-weight: 700;
    line-height: .95;
    letter-spacing: -2px;
}

.pit-query-search-notice {
    margin: 18px 0 0;
}

.pit-query-search-form {
    width: 360px;
    margin-top: 28px;
    display: grid;
    grid-template-columns: 92px 225px;
    column-gap: 12px;
    row-gap: 10px;
    align-items: start;
}

.pit-query-search-form > label {
    padding-top: 8px;
    color: #313d47;
    font-size: 10px;
    font-weight: 700;
    text-align: right;
}

.pit-query-search-form .field-shell {
    width: 225px;
}

.pit-query-search-form input[type='date'],
.pit-query-search-form select {
    width: 225px;
    height: 27px;
    padding: 3px 7px;
    color: #3c4852;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.pit-query-search-form .date-control input {
    padding-right: 31px;
}

.pit-query-search-form .legacy-search-button {
    grid-column: 2;
    width: 61px;
    margin-top: 2px;
}

.pit-query-report {
    width: min(1110px, calc(100% - 80px));
    margin: 52px auto 0;
}

.pit-query-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    margin: 0 0 15px;
}

.pit-query-report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 3px;
}

.pit-query-search-again {
    min-width: 84px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #4e5961;
    background: linear-gradient(#fff, #ececec);
    border: 1px solid #bfc3c6;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    font-size: 10px;
    text-decoration: none;
    white-space: nowrap;
}

.pit-query-search-again:hover,
.pit-query-search-again:focus {
    color: #941000;
    background: #fff;
}

.pit-query-summary {
    margin: 0 0 15px;
    color: #596873;
    font-size: 11px;
}

.pit-query-notice {
    width: min(620px, 100%);
    margin: 0 0 16px;
}

.pit-query-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 5px;
}

.pit-query-table {
    width: 100%;
    min-width: 1180px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #425360;
    font-size: 11px;
}

.pit-query-table .pit-query-col-description { width: 185px; }
.pit-query-table .pit-query-col-customer { width: 205px; }
.pit-query-table .pit-query-col-pit { width: 135px; }
.pit-query-table .pit-query-col-date { width: 92px; }
.pit-query-table .pit-query-col-employee { width: 160px; }
.pit-query-table .pit-query-col-quantity { width: 82px; }
.pit-query-table .pit-query-col-unit { width: 75px; }
.pit-query-table .pit-query-col-id { width: 82px; }
.pit-query-table .pit-query-col-actions { width: 162px; }

.pit-query-table th {
    height: 38px;
    padding: 7px;
    color: #a11100;
    border-bottom: 2px solid #b21a0c;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.pit-query-table td {
    height: 34px;
    padding: 6px 7px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.pit-query-table .number-cell,
.pit-query-id-cell {
    text-align: right;
}

.pit-query-group-row td {
    height: 31px;
    color: #9d1304;
    background: #f8f8f8;
    border-bottom: 1px solid #dedede;
    font-weight: 700;
}

.pit-query-data-row td:first-child {
    background: #fcfcfc;
}

.pit-query-row-actions {
    overflow: visible !important;
    text-align: center;
}

.pit-query-description-total-row td {
    color: #4b5964;
    background: #fafafa;
    border-bottom: 2px solid #d3d3d3;
    font-weight: 700;
}

.pit-query-overall-total-row td {
    color: #8e0000;
    background: #ededed;
    border-top: 2px solid #a91505;
    border-bottom: 2px solid #a91505;
    font-weight: 700;
}

.pit-query-empty-row {
    height: 65px !important;
    color: #6d7780;
    text-align: center;
}

.pit-query-record-count {
    margin: 18px 0 0;
    color: #425360;
    font-size: 11px;
    text-align: center;
}

.pit-query-inline-edit-row > td {
    padding: 0;
    overflow: visible;
    white-space: normal;
}

.pit-query-inline-form {
    width: 100%;
    padding: 5px 4px;
    background: #eef8f8;
}

.pit-query-inline-grid {
    display: grid;
    grid-template-columns: 185px 205px 135px 92px 160px 82px 75px 82px 162px;
    gap: 0;
    align-items: start;
}

.pit-query-inline-grid .inline-cell {
    min-width: 0;
    position: relative;
    padding: 2px 4px;
    overflow: visible;
}

.pit-query-inline-grid input {
    width: 100%;
    height: 25px;
    padding: 2px 4px;
    color: #425360;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
}

.pit-query-inline-grid .inline-readonly-id {
    padding-top: 8px;
    text-align: right;
}

.pit-query-inline-grid .inline-action-buttons {
    justify-content: flex-start;
    padding: 2px 4px 0;
}

.pit-query-inline-grid .row-update-button,
.pit-query-inline-grid .row-cancel-button {
    min-width: 72px;
    margin-bottom: 3px;
}

@media (max-width: 820px) {
    .pit-query-search-section {
        width: 100%;
        margin: 42px 0 0;
    }

    .pit-query-search-form {
        width: 100%;
        grid-template-columns: 90px minmax(0, 1fr);
    }

    .pit-query-search-form .field-shell,
    .pit-query-search-form input[type='date'],
    .pit-query-search-form select {
        width: 100%;
    }

    .pit-query-report {
        width: 100%;
    }

    .pit-query-toolbar {
        flex-direction: column;
    }

    .pit-query-report h1,
    .pit-query-search-section h1 {
        font-size: 38px;
    }
}

@media print {
    .pit-query-report-actions,
    .pit-query-row-actions,
    .pit-query-notice,
    .pit-query-summary {
        display: none !important;
    }

    .pit-query-module-main {
        min-height: 0;
        padding: 0;
    }

    .pit-query-report {
        width: 100%;
        margin: 0;
    }

    .pit-query-table-scroll {
        overflow: visible;
    }

    .pit-query-table {
        min-width: 0;
        font-size: 8px;
    }
}

/* Inline editor visibility and button audit — V7.2 -----------------------
   Editors intentionally switch from column-aligned rows to labeled panels.
   This keeps every field and both action buttons inside the visible report
   area instead of requiring the user to scroll to the far-right edge. */

.inline-edit-form,
.customer-detail-inline-form,
.pit-query-inline-form {
    width: min(1380px, calc(100vw - 72px));
    max-width: calc(100vw - 72px);
    position: sticky;
    left: 0;
    box-sizing: border-box;
    padding: 12px;
    background: #eef8f8;
    border-top: 1px solid #d2e3e3;
    border-bottom: 1px solid #d2e3e3;
}

.inline-edit-grid,
.customer-detail-inline-grid,
.pit-query-inline-grid {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 10px 12px;
    align-items: start;
}

.inline-edit-grid .inline-cell,
.customer-detail-inline-grid .inline-cell,
.pit-query-inline-grid .inline-cell {
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: visible;
}

.inline-edit-grid .inline-cell::before,
.customer-detail-inline-grid .inline-cell::before,
.pit-query-inline-grid .inline-cell::before {
    min-height: 14px;
    display: block;
    margin: 0 0 4px;
    color: #a11100;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

/* Edit Timesheet labels */
.inline-edit-grid .col-employee::before { content: 'EMPLOYEE'; }
.inline-edit-grid .col-date::before { content: 'DATE'; }
.inline-edit-grid .col-customer::before { content: 'CUSTOMER'; }
.inline-edit-grid .col-description::before { content: 'DESCRIPTION'; }
.inline-edit-grid .col-quantity::before { content: 'QUANTITY'; }
.inline-edit-grid .col-unit::before { content: 'UNIT'; }
.inline-edit-grid .col-pit::before { content: 'PIT'; }
.inline-edit-grid .col-cost::before { content: 'OUR COST'; }
.inline-edit-grid .col-notes::before { content: 'NOTES'; }
.inline-edit-grid .col-invoice::before { content: 'INVOICE NUMBER'; }
.inline-edit-grid .col-edit-id::before { content: 'EDIT #'; }
.inline-edit-grid .col-detail-id::before { content: 'DETAIL ID'; }

/* Customer Detail labels */
.customer-detail-inline-grid .customer-detail-col-type::before { content: 'TYPE'; }
.customer-detail-inline-grid .customer-detail-col-description::before { content: 'DESCRIPTION'; }
.customer-detail-inline-grid .customer-detail-col-date::before { content: 'DATE'; }
.customer-detail-inline-grid .customer-detail-col-employee::before { content: 'EMPLOYEE'; }
.customer-detail-inline-grid .customer-detail-col-quantity::before { content: 'QUANTITY'; }
.customer-detail-inline-grid .customer-detail-col-unit::before { content: 'UNIT'; }
.customer-detail-inline-grid .customer-detail-col-pit::before { content: 'PIT'; }
.customer-detail-inline-grid .customer-detail-col-cost::before { content: 'OUR COST'; }
.customer-detail-inline-grid .customer-detail-col-notes::before { content: 'NOTES'; }
.customer-detail-inline-grid .customer-detail-col-invoice::before { content: 'INVOICE NUMBER'; }
.customer-detail-inline-grid .customer-detail-col-edit-id::before { content: 'EDIT #'; }

/* Pit Query labels */
.pit-query-inline-grid .pit-query-col-description::before { content: 'DESCRIPTION'; }
.pit-query-inline-grid .pit-query-col-customer::before { content: 'CUSTOMER'; }
.pit-query-inline-grid .pit-query-col-pit::before { content: 'PIT'; }
.pit-query-inline-grid .pit-query-col-date::before { content: 'DATE'; }
.pit-query-inline-grid .pit-query-col-employee::before { content: 'EMPLOYEE'; }
.pit-query-inline-grid .pit-query-col-quantity::before { content: 'QUANTITY'; }
.pit-query-inline-grid .pit-query-col-unit::before { content: 'UNIT'; }
.pit-query-inline-grid .pit-query-col-id::before { content: 'ID'; }

.inline-edit-grid input,
.customer-detail-inline-grid input,
.pit-query-inline-grid input,
.inline-edit-grid .date-control,
.inline-edit-grid .lookup-control,
.customer-detail-inline-grid .date-control,
.customer-detail-inline-grid .lookup-control,
.pit-query-inline-grid .date-control,
.pit-query-inline-grid .lookup-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.inline-edit-grid input[type='date'],
.customer-detail-inline-grid input[type='date'],
.pit-query-inline-grid input[type='date'] {
    min-width: 0;
    font-size: 11px;
}

.inline-edit-grid .inline-readonly-id,
.customer-detail-inline-grid .inline-readonly-id,
.pit-query-inline-grid .inline-readonly-id {
    min-height: 25px;
    padding: 6px 5px 0;
    text-align: left;
    background: #f8fbfb;
    border: 1px solid #d8e1e1;
}

.inline-edit-grid .inline-action-buttons,
.customer-detail-inline-grid .inline-action-buttons,
.pit-query-inline-grid .inline-action-buttons {
    grid-column: 1 / -1;
    min-height: 32px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding: 2px 0 0;
}

.inline-edit-grid .inline-action-buttons::before,
.customer-detail-inline-grid .inline-action-buttons::before,
.pit-query-inline-grid .inline-action-buttons::before {
    content: none;
}

.inline-edit-grid .row-update-button,
.inline-edit-grid .row-cancel-button,
.customer-detail-inline-grid .row-update-button,
.customer-detail-inline-grid .row-cancel-button,
.pit-query-inline-grid .row-update-button,
.pit-query-inline-grid .row-cancel-button {
    min-width: 86px;
    height: 27px;
    margin: 0;
    flex: 0 0 auto;
}

@media (min-width: 1050px) {
    .inline-edit-grid .col-customer,
    .inline-edit-grid .col-description,
    .inline-edit-grid .col-notes,
    .customer-detail-inline-grid .customer-detail-col-description,
    .customer-detail-inline-grid .customer-detail-col-notes,
    .pit-query-inline-grid .pit-query-col-description,
    .pit-query-inline-grid .pit-query-col-customer {
        grid-column: span 2;
    }
}

/* Customer List editor uses a full-width labeled panel. */
.customer-edit-panel-row > td {
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
}

.customer-edit-panel {
    width: min(1120px, calc(100vw - 72px));
    max-width: calc(100vw - 72px);
    position: sticky;
    left: 0;
    display: grid;
    grid-template-columns: 90px minmax(180px, 1.15fr) minmax(220px, 1.45fr) minmax(210px, 1.3fr) minmax(130px, .7fr);
    gap: 10px 12px;
    align-items: start;
    box-sizing: border-box;
    padding: 12px;
    background: #eef8f8;
    border-top: 1px solid #d2e3e3;
    border-bottom: 1px solid #d2e3e3;
}

.customer-edit-field {
    min-width: 0;
    display: block;
}

.customer-edit-label {
    min-height: 14px;
    display: block;
    margin: 0 0 4px;
    color: #a11100;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.customer-edit-field input,
.customer-edit-field .customer-address-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.customer-edit-readonly-id {
    min-height: 25px;
    display: block;
    padding: 6px 5px 0;
    text-align: left;
    background: #f8fbfb;
    border: 1px solid #d8e1e1;
}

.customer-edit-panel-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
}

.customer-edit-panel-actions .row-update-button,
.customer-edit-panel-actions .row-cancel-button {
    min-width: 86px;
    height: 27px;
    margin: 0;
}

/* Grid Edit remains table-shaped, but its action column stays on screen. */
.customer-detail-table th:last-child,
.customer-detail-grid-edit-row td:last-child {
    position: sticky;
    right: 0;
    z-index: 3;
    background: #fff;
    box-shadow: -5px 0 7px rgba(0, 0, 0, .06);
}

.customer-detail-grid-edit-row td:last-child {
    background: #eef8f8;
}

.customer-detail-grid-actions .row-update-button {
    min-width: 58px;
    white-space: nowrap;
}

@media (max-width: 900px) {
    .inline-edit-form,
    .customer-detail-inline-form,
    .pit-query-inline-form,
    .customer-edit-panel {
        width: calc(100vw - 36px);
        max-width: calc(100vw - 36px);
    }

    .inline-edit-grid,
    .customer-detail-inline-grid,
    .pit-query-inline-grid,
    .customer-edit-panel {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .customer-edit-id-field,
    .customer-edit-open-field {
        grid-column: span 1;
    }

    .customer-edit-address-field,
    .customer-edit-city-field {
        grid-column: span 2;
    }
}

@media (max-width: 560px) {
    .inline-edit-grid,
    .customer-detail-inline-grid,
    .pit-query-inline-grid,
    .customer-edit-panel {
        grid-template-columns: 1fr;
    }

    .inline-edit-grid .inline-cell,
    .customer-detail-inline-grid .inline-cell,
    .pit-query-inline-grid .inline-cell,
    .customer-edit-panel > * {
        grid-column: 1 !important;
    }
}

/* Timesheet Summary ------------------------------------------------------- */
.timesheet-summary-module-main {
    min-height: 720px;
    padding-left: 4%;
    padding-right: 4%;
}

.timesheet-summary-search-section {
    width: 500px;
    max-width: calc(100% - 24px);
    margin: 48px 0 0 26px;
}

.timesheet-summary-search-section h1,
.timesheet-summary-report h1 {
    margin: 0;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2px;
}

.timesheet-summary-help {
    margin: 28px 0 17px 15px;
    color: #425360;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
}

.timesheet-summary-search-form {
    width: 380px;
    max-width: 100%;
    display: grid;
    grid-template-columns: 132px 220px;
    align-items: start;
    gap: 14px 14px;
    margin-left: 15px;
}

.timesheet-summary-search-form > label {
    padding-top: 7px;
    color: #425360;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
}

.timesheet-summary-search-form .field-shell,
.timesheet-summary-search-form .date-control {
    width: 220px;
}

.timesheet-summary-search-form input[type='date'] {
    width: 220px;
    height: 27px;
    padding: 3px 31px 3px 7px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
}

.timesheet-summary-search-form .legacy-search-button {
    grid-column: 1 / span 2;
    width: 180px;
    margin: 22px 0 0 -5px;
}

.timesheet-summary-report {
    width: min(1700px, 100%);
    margin: 28px auto 0;
}

.timesheet-summary-heading-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 32px;
}

.timesheet-summary-range {
    margin: 10px 0 0 1px;
    color: #425360;
    font-size: 11px;
}

.timesheet-summary-report-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 2px;
}

.summary-search-again-button {
    min-width: 84px;
    height: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    color: #4e5961;
    background: linear-gradient(#fff, #ececec);
    border: 1px solid #bfc3c6;
    border-radius: 2px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    line-height: 1;
    text-decoration: none;
}

.summary-search-again-button:hover,
.summary-search-again-button:focus {
    color: #941000;
    background: #fff;
    border-color: #a9a9a9;
}

.timesheet-summary-download-link {
    margin-left: 15px;
    margin-bottom: 22px;
}

.timesheet-summary-table-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
}

.timesheet-summary-table {
    width: 100%;
    min-width: 1080px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #425360;
    font-size: 12px;
}

.timesheet-summary-table .summary-col-employee { width: 20%; }
.timesheet-summary-table .summary-col-date { width: 10%; }
.timesheet-summary-table .summary-col-customer { width: 31%; }
.timesheet-summary-table .summary-col-quantity { width: 10%; }
.timesheet-summary-table .summary-col-details { width: 20%; }
.timesheet-summary-table .summary-col-edit-id { width: 9%; }

.timesheet-summary-table thead th {
    height: 38px;
    padding: 7px 18px;
    color: #a11100;
    border-bottom: 2px solid #b21a0c;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.timesheet-summary-table thead th.number-cell {
    text-align: right;
}

.timesheet-summary-table td,
.timesheet-summary-table tbody th {
    height: 36px;
    padding: 7px 18px;
    border-bottom: 1px solid #efefef;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timesheet-summary-employee-row th {
    color: #425360;
    background: #fafafa;
    font-weight: 400;
    text-align: left;
}

.timesheet-summary-data-row td:first-child {
    background: #fff;
}

.timesheet-summary-empty-row {
    height: 62px !important;
    color: #6d7780;
    text-align: center;
}

.timesheet-summary-record-count {
    margin: 20px 0 0;
    color: #425360;
    font-size: 11px;
    text-align: center;
}

@media (max-width: 740px) {
    .timesheet-summary-module-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .timesheet-summary-search-section {
        margin-left: 0;
    }

    .timesheet-summary-search-section h1,
    .timesheet-summary-report h1 {
        font-size: 43px;
    }

    .timesheet-summary-help,
    .timesheet-summary-search-form {
        margin-left: 0;
    }

    .timesheet-summary-search-form {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .timesheet-summary-search-form > label {
        padding-top: 8px;
    }

    .timesheet-summary-search-form .field-shell,
    .timesheet-summary-search-form .date-control,
    .timesheet-summary-search-form input[type='date'] {
        width: 100%;
    }

    .timesheet-summary-search-form .legacy-search-button {
        grid-column: 1;
        margin-top: 18px;
    }

    .timesheet-summary-heading-row {
        flex-direction: column;
        gap: 14px;
    }

    .timesheet-summary-report-actions {
        margin-top: 0;
    }
}

@media print {
    .timesheet-summary-module-main .breadcrumb,
    .timesheet-summary-report-actions,
    .timesheet-summary-download-link,
    .timesheet-summary-record-count {
        display: none !important;
    }

    .timesheet-summary-module-main {
        min-height: 0;
        padding: 0 !important;
    }

    .timesheet-summary-report {
        width: 100%;
        margin: 0;
    }

    .timesheet-summary-heading-row {
        margin-bottom: 18px;
    }

    .timesheet-summary-table-wrap {
        overflow: visible;
    }

    .timesheet-summary-table {
        min-width: 0;
        font-size: 9px;
    }

    .timesheet-summary-table thead th,
    .timesheet-summary-table td,
    .timesheet-summary-table tbody th {
        height: auto;
        padding: 4px 7px;
    }
}

/* Timesheet Data ---------------------------------------------------------- */
.timesheet-data-module-main {
    min-height: 760px;
    padding-left: 3.2%;
    padding-right: 3.2%;
}

.timesheet-data-module {
    width: min(1780px, 100%);
    margin: 28px auto 0;
}

.timesheet-data-heading-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin: 0 0 22px;
}

.timesheet-data-heading-row h1 {
    margin: 0;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 52px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2px;
}

.timesheet-data-download-link {
    flex: 0 0 auto;
    margin: 0 4px 4px 0;
}

.timesheet-data-notice {
    width: min(900px, 100%);
    margin: 0 0 18px;
}

.timesheet-data-filter-form {
    display: grid;
    grid-template-columns: 120px repeat(3, minmax(160px, 1fr)) repeat(2, 170px) 155px;
    gap: 12px 14px;
    align-items: start;
    margin: 0 0 24px;
    padding: 14px 16px 15px;
    background: #fafafa;
    border-top: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
}

.timesheet-data-filter-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #425360;
    font-size: 11px;
}

.timesheet-data-filter-field > span:first-child {
    color: #a11100;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
}

.timesheet-data-filter-field input,
.timesheet-data-filter-field select,
.timesheet-data-filter-field .date-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.timesheet-data-filter-field input,
.timesheet-data-filter-field select {
    height: 28px;
    padding: 3px 7px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font: 11px Arial, Helvetica, sans-serif;
}

.timesheet-data-filter-field input[type='date'] {
    padding-right: 31px;
}

.timesheet-data-filter-field small {
    min-height: 12px;
    color: #7b858b;
    font-size: 9px;
}

.timesheet-data-filter-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 2px;
}

.timesheet-data-filter-actions .legacy-search-button {
    width: 180px;
    margin: 0;
}

.timesheet-data-clear-button {
    min-width: 74px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    color: #981000;
    background: #fff;
    border: 1px solid #a71100;
    font-size: 11px;
    text-decoration: none;
}

.timesheet-data-clear-button:hover,
.timesheet-data-clear-button:focus {
    color: #fff;
    background: #a71100;
}

.timesheet-data-table-wrap {
    width: 100%;
    position: relative;
    overflow-x: auto;
    padding-bottom: 7px;
}

.timesheet-data-table {
    width: 100%;
    min-width: 1740px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #425360;
    font-size: 11px;
}

.timesheet-data-table .timesheet-data-col-employee { width: 155px; }
.timesheet-data-table .timesheet-data-col-date { width: 105px; }
.timesheet-data-table .timesheet-data-col-customer { width: 205px; }
.timesheet-data-table .timesheet-data-col-description { width: 205px; }
.timesheet-data-table .timesheet-data-col-quantity { width: 90px; }
.timesheet-data-table .timesheet-data-col-unit { width: 78px; }
.timesheet-data-table .timesheet-data-col-pit { width: 145px; }
.timesheet-data-table .timesheet-data-col-cost { width: 100px; }
.timesheet-data-table .timesheet-data-col-invoice { width: 112px; }
.timesheet-data-table .timesheet-data-col-notes { width: 220px; }
.timesheet-data-table .timesheet-data-col-id { width: 100px; }
.timesheet-data-table .timesheet-data-col-actions { width: 70px; }

.timesheet-data-table thead th {
    height: 39px;
    padding: 7px 8px;
    color: #a11100;
    background: #fff;
    border-bottom: 2px solid #b21a0c;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.timesheet-data-table thead th a {
    color: inherit;
    text-decoration: none;
}

.timesheet-data-table thead th a:hover,
.timesheet-data-table thead th a:focus {
    text-decoration: underline;
}

.timesheet-data-table thead th.number-cell,
.timesheet-data-table td.number-cell {
    text-align: right;
}

.timesheet-data-table tbody > tr:not(.timesheet-data-edit-panel-row) > td {
    height: 37px;
    padding: 7px 8px;
    border-bottom: 1px solid #ededed;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timesheet-data-table tbody > tr:not(.timesheet-data-edit-panel-row):hover > td {
    background: #fbfdfd;
}

.timesheet-data-table thead th:last-child,
.timesheet-data-table tbody > tr:not(.timesheet-data-edit-panel-row) > td:last-child {
    position: sticky;
    right: 0;
    z-index: 4;
    background: #fff;
    box-shadow: -5px 0 7px rgba(0, 0, 0, .06);
}

.timesheet-data-table tbody > tr:not(.timesheet-data-edit-panel-row):hover > td:last-child {
    background: #fbfdfd;
}

.timesheet-data-row-actions {
    text-align: center;
    white-space: nowrap;
}

.timesheet-data-row-actions .delete-record-form {
    display: inline-block;
    margin: 0;
}

.timesheet-data-empty-row {
    height: 68px !important;
    color: #6d7780;
    text-align: center;
}

.timesheet-data-edit-panel-row > td {
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
}

.timesheet-data-edit-form {
    width: min(1460px, calc(100vw - 76px));
    max-width: calc(100vw - 76px);
    position: sticky;
    left: 0;
    box-sizing: border-box;
    padding: 12px 14px 14px;
    background: #eef8f8;
    border-top: 1px solid #d2e3e3;
    border-bottom: 1px solid #d2e3e3;
}

.timesheet-data-edit-error {
    width: 100%;
    margin: 0 0 10px;
}

.timesheet-data-edit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px 13px;
    align-items: start;
}

.timesheet-data-edit-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
    color: #425360;
    font-size: 11px;
}

.timesheet-data-edit-field > span:first-child {
    color: #a11100;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.timesheet-data-edit-wide {
    grid-column: span 2;
}

.timesheet-data-edit-notes {
    grid-column: span 2;
}

.timesheet-data-edit-field input,
.timesheet-data-edit-field .date-control,
.timesheet-data-edit-field .lookup-control {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.timesheet-data-edit-field input {
    height: 27px;
    padding: 3px 6px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font: 11px Arial, Helvetica, sans-serif;
}

.timesheet-data-edit-field input[type='date'] {
    padding-right: 31px;
}

.timesheet-data-readonly-id {
    min-height: 27px;
    display: block;
    box-sizing: border-box;
    padding: 6px 7px;
    color: #31424f;
    background: #f8fbfb;
    border: 1px solid #d8e1e1;
    font-size: 11px;
    font-weight: 400;
}

.timesheet-data-edit-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.timesheet-data-edit-actions .row-update-button,
.timesheet-data-edit-actions .row-cancel-button {
    min-width: 88px;
    height: 28px;
    margin: 0;
    flex: 0 0 auto;
}

.timesheet-data-footer-row {
    min-height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px 24px;
    padding: 12px 0 4px;
}

.timesheet-data-record-count {
    margin: 0;
    color: #425360;
    font-size: 11px;
}

.timesheet-data-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 4px;
}

.timesheet-data-pagination a,
.timesheet-data-pagination span {
    min-width: 27px;
    height: 27px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    color: #4c5961;
    background: #fff;
    border: 1px solid #c4c7c9;
    font-size: 10px;
    text-decoration: none;
}

.timesheet-data-pagination a:hover,
.timesheet-data-pagination a:focus,
.timesheet-data-pagination .is-current {
    color: #fff;
    background: #a71100;
    border-color: #a71100;
}

@media (max-width: 1450px) {
    .timesheet-data-filter-form {
        grid-template-columns: 120px repeat(3, minmax(150px, 1fr));
    }
}

@media (max-width: 1000px) {
    .timesheet-data-module-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .timesheet-data-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timesheet-data-edit-form {
        width: calc(100vw - 36px);
        max-width: calc(100vw - 36px);
    }

    .timesheet-data-edit-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .timesheet-data-heading-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .timesheet-data-heading-row h1 {
        font-size: 43px;
    }

    .timesheet-data-filter-form,
    .timesheet-data-edit-grid {
        grid-template-columns: 1fr;
    }

    .timesheet-data-edit-wide,
    .timesheet-data-edit-notes,
    .timesheet-data-edit-actions {
        grid-column: 1;
    }

    .timesheet-data-filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .timesheet-data-filter-actions .legacy-search-button,
    .timesheet-data-clear-button {
        width: 100%;
    }
}

/* Descriptions ------------------------------------------------------------ */
.description-module-main {
    min-height: 720px;
    padding-left: 3%;
    padding-right: 3%;
}

.description-list-module {
    width: 100%;
    margin: 34px 0 0 20px;
}

.description-list-module h1 {
    margin: 0 0 18px;
    color: #920000;
    font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
    font-size: 50px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .2px;
}

.description-notice {
    width: min(620px, calc(100% - 20px));
    margin-bottom: 16px;
}

.description-search-form {
    width: 640px;
    max-width: calc(100% - 20px);
    display: grid;
    grid-template-columns: 105px 240px 68px 170px;
    gap: 10px 10px;
    align-items: start;
    margin: 0 0 34px;
}

.description-search-form > label {
    padding-top: 7px;
    color: #293947;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 12px;
}

.description-search-control {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.description-search-control input {
    width: 100%;
    height: 27px;
    padding: 3px 7px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font-size: 12px;
}

.description-search-control span {
    color: #6a6a6a;
    font-size: 10px;
}

.description-search-actions {
    grid-column: 2 / -1;
    display: flex;
    align-items: center;
    gap: 10px;
}

.description-search-actions .legacy-search-button {
    width: 80px;
    height: 27px;
    margin: 0;
    font-size: 11px;
}

.description-clear-search {
    color: #a31000;
    font-size: 10px;
    text-decoration: underline;
}

.description-table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: visible;
    padding-bottom: 6px;
}

.legacy-description-table {
    width: 100%;
    min-width: 1110px;
    border-collapse: collapse;
    table-layout: fixed;
    color: #425360;
    font-size: 12px;
}

.legacy-description-table .description-col-description { width: 300px; }
.legacy-description-table .description-col-type { width: 175px; }
.legacy-description-table .description-col-unit { width: 120px; }
.legacy-description-table .description-col-inventory { width: 95px; }
.legacy-description-table .description-col-price { width: 135px; }
.legacy-description-table .description-col-cost { width: 135px; }
.legacy-description-table .description-col-actions { width: 84px; }

.legacy-description-table th {
    height: 38px;
    padding: 7px 11px;
    color: #a11100;
    border-bottom: 2px solid #b21a0c;
    font-weight: 700;
    text-align: left;
    white-space: nowrap;
}

.legacy-description-table th.number-cell {
    text-align: right;
}

.legacy-description-table th a {
    color: inherit;
    text-decoration: none;
}

.legacy-description-table th a:hover,
.legacy-description-table th a:focus {
    text-decoration: underline;
}

.legacy-description-table th span {
    color: #c90000;
    font-size: 9px;
}

.legacy-description-table td {
    height: 37px;
    padding: 6px 11px;
    border-bottom: 1px solid #eeeeee;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.description-add-row {
    background: #f2fafa;
}

.description-add-row td {
    height: 45px;
    overflow: visible;
    white-space: normal;
}

.legacy-description-table input[type='text'],
.legacy-description-table input[type='number'] {
    width: 100%;
    height: 25px;
    box-sizing: border-box;
    padding: 2px 6px;
    color: #425360;
    background: #fff;
    border: 1px solid #c8c8c8;
    border-radius: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 11px;
}

.legacy-description-table input:focus {
    border-color: #999;
    outline: 0;
    box-shadow: 0 0 0 1px rgba(160, 0, 0, .08);
}

.description-checkbox-cell {
    text-align: center;
}

.description-checkbox-cell input[type='checkbox'] {
    width: 14px;
    height: 14px;
    margin: 0;
    accent-color: #a51605;
}

.description-money-input,
.description-money-cell {
    text-align: right;
}

.description-action-cell {
    overflow: visible !important;
    text-align: right;
}

.description-row-actions,
.description-row-actions .delete-record-form {
    white-space: nowrap;
}

.description-row-actions .delete-record-form {
    display: inline-block;
    vertical-align: middle;
}

.description-add-button {
    min-width: 58px;
    height: 25px;
    padding: 0 10px;
    color: #fff;
    background: #a51605;
    border: 1px solid #a51605;
    border-radius: 0;
    cursor: pointer;
    font-size: 10px;
}

.description-add-button:hover,
.description-add-button:focus {
    background: #8d1204;
}

.legacy-description-table .field-error {
    width: 100%;
    margin-top: 3px;
    white-space: normal;
}

.description-empty-row {
    height: 60px !important;
    color: #6d7780;
    text-align: center;
}

.description-edit-panel-row > td {
    padding: 0 !important;
    overflow: visible !important;
    white-space: normal !important;
}

.description-edit-panel {
    width: min(1180px, calc(100vw - 76px));
    max-width: calc(100vw - 76px);
    position: sticky;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 11px 13px;
    align-items: start;
    box-sizing: border-box;
    padding: 12px 14px 14px;
    background: #eef8f8;
    border-top: 1px solid #d2e3e3;
    border-bottom: 1px solid #d2e3e3;
}

.description-edit-error {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
}

.description-edit-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
    color: #425360;
    font-size: 11px;
}

.description-edit-field > span:first-child,
.description-edit-id-field > span:first-child {
    color: #a11100;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.description-edit-field input[type='text'],
.description-edit-field input[type='number'] {
    width: 100%;
    height: 27px;
    box-sizing: border-box;
    padding: 3px 6px;
    color: #31424f;
    background: #fff;
    border: 1px solid #c9c9c9;
    border-radius: 0;
    font: 11px Arial, Helvetica, sans-serif;
}

.description-edit-wide {
    grid-column: span 2;
}

.description-edit-checkbox-field input[type='checkbox'] {
    width: 16px;
    height: 16px;
    margin: 5px 0 0;
    accent-color: #a51605;
}

.description-edit-id-field {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.description-edit-id-field strong {
    min-height: 27px;
    box-sizing: border-box;
    padding: 6px 7px;
    color: #31424f;
    background: #f8fbfb;
    border: 1px solid #d8e1e1;
    font-size: 11px;
    font-weight: 400;
}

.description-edit-actions {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 2px;
}

.description-edit-actions .row-update-button,
.description-edit-actions .row-cancel-button {
    min-width: 88px;
    height: 28px;
    margin: 0;
    flex: 0 0 auto;
}

.description-table-footer {
    min-height: 45px;
    position: relative;
    padding-top: 1px;
}

.description-table-footer .record-count {
    margin-top: 18px;
}

.description-pager {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-top: 8px;
    color: #425360;
    font-size: 11px;
}

.description-pager a {
    min-width: 21px;
    height: 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #8f1000;
    background: #fff;
    border: 1px solid #d4d4d4;
    text-decoration: none;
}

.description-pager a:hover,
.description-pager a:focus {
    background: #fff2ef;
}

.description-pager a.is-disabled {
    color: #aaa;
    background: #f6f6f6;
    pointer-events: none;
}

.description-pager span {
    min-width: 100px;
    text-align: center;
}

@media (max-width: 900px) {
    .description-search-form {
        width: 100%;
        grid-template-columns: 105px minmax(0, 1fr);
    }

    .description-search-actions {
        grid-column: 2;
    }

    .description-edit-panel {
        width: calc(100vw - 36px);
        max-width: calc(100vw - 36px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .description-module-main {
        padding-left: 18px;
        padding-right: 18px;
    }

    .description-list-module {
        margin-left: 0;
    }

    .description-list-module h1 {
        font-size: 43px;
    }

    .description-search-form {
        grid-template-columns: 1fr;
    }

    .description-search-form > label,
    .description-search-actions {
        grid-column: 1;
    }

    .description-edit-panel {
        grid-template-columns: 1fr;
    }

    .description-edit-wide,
    .description-edit-actions {
        grid-column: 1;
    }
}
