.pathnav{
    max-height:200px;
    overflow-y: auto;
}

/* PATH-5746: Hide number-input spinner arrows on dynamic labor timesheet
   hours fields. Imprecise stepping (spinner clicks / mouse-wheel / keyboard
   Up-Down) was nudging values (e.g. 10 -> 9.98). Spinners are hidden here;
   keyboard/wheel stepping is blocked in dynamic_timesheet_renderer.js. */
.hours_input::-webkit-outer-spin-button,
.hours_input::-webkit-inner-spin-button,
.totalhours_input::-webkit-outer-spin-button,
.totalhours_input::-webkit-inner-spin-button,
.deductions_input::-webkit-outer-spin-button,
.deductions_input::-webkit-inner-spin-button,
.default-hours-input::-webkit-outer-spin-button,
.default-hours-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.hours_input,
.totalhours_input,
.deductions_input,
.default-hours-input {
    -moz-appearance: textfield;
}

.login-logo{
    color: #ffffff;
}
.login-page{
    background-color: #1f1f1f !important;
}

.table>tbody>tr.budget>td, .table>tbody>tr.budget>th, .table>tbody>tr>td.budget, .table>tbody>tr>th.budget, .table>tfoot>tr.budget>td, .table>tfoot>tr.budget>th, .table>tfoot>tr>td.budget, .table>tfoot>tr>th.budget, .table>thead>tr.budget>td, .table>thead>tr.budget>th, .table>thead>tr>td.budget, .table>thead>tr>th.budget {
    background-color: #1f1f1f;
    color:#ffffff;
}

.table>tbody>tr.summary>td, .table>tbody>tr.summary>th, .table>tbody>tr>td.summary, .table>tbody>tr>th.summary, .table>tfoot>tr.summary>td, .table>tfoot>tr.summary>th, .table>tfoot>tr>td.summary, .table>tfoot>tr>th.summary, .table>thead>tr.summary>td, .table>thead>tr.summary>th, .table>thead>tr>td.summary, .table>thead>tr>th.summary {
    border-top:solid 3px #1f1f1f !important;
    font-weight:bold;
}
.table>tfoot>tr.summary.project_sub>td {
    font-weight:normal !important;
}

.table>tbody>tr.summary-double>td, .table>tbody>tr.summary-double>th, .table>tbody>tr>td.summary-double, .table>tbody>tr>th.summary-double, .table>tfoot>tr.summary-double>td, .table>tfoot>tr.summary-double>th, .table>tfoot>tr>td.summary-double, .table>tfoot>tr>th.summary-double, .table>thead>tr.summary-double>td, .table>thead>tr.summary-double>th, .table>thead>tr>td.summary-double, .table>thead>tr>th.summary-double {
    border-top:solid 3px #1f1f1f !important;
    border-bottom:solid 3px #1f1f1f !important;
    font-weight:bold;
    background-color: #f5f5f5;
}

.table>tbody>tr.summary-bottom>td, .table>tbody>tr.summary-bottom>th, .table>tbody>tr>td.summary-bottom, .table>tbody>tr>th.summary-bottom, .table>tfoot>tr.summary-bottom>td, .table>tfoot>tr.summary-bottom>th, .table>tfoot>tr>td.summary-bottom, .table>tfoot>tr>th.summary-bottom, .table>thead>tr.summary-bottom>td, .table>thead>tr.summary-bottom>th, .table>thead>tr>td.summary-bottom, .table>thead>tr>th.summary-bottom {
    /*border-top:solid 3px #1f1f1f !important;*/
    border-bottom:solid 3px #1f1f1f !important;
    font-weight:bold;
    /*background-color: #f5f5f5;*/
}


.table>tbody>tr.totalbudget>td, .table>tbody>tr.totalbudget>th, .table>tbody>tr>td.totalbudget, .table>tbody>tr>th.totalbudget, .table>tfoot>tr.totalbudget>td, .table>tfoot>tr.totalbudget>th, .table>tfoot>tr>td.totalbudget, .table>tfoot>tr>th.totalbudget, .table>thead>tr.totalbudget>td, .table>thead>tr.totalbudget>th, .table>thead>tr>td.totalbudget, .table>thead>tr>th.totalbudget {
    background-color: #f6f6f6;
    font-size: 16px;
}

.table>tbody>tr.managerbudget>td, .table>tbody>tr.managerbudget>th, .table>tbody>tr>td.managerbudget, .table>tbody>tr>th.managerbudget, .table>tfoot>tr.managerbudget>td, .table>tfoot>tr.managerbudget>th, .table>tfoot>tr>td.managerbudget, .table>tfoot>tr>th.managerbudget, .table>thead>tr.managerbudget>td, .table>thead>tr.managerbudget>th, .table>thead>tr>td.managerbudget, .table>thead>tr>th.managerbudget {

    font-weight:bold;
    background-color: #f5f5f5;
    font-size: 14px;
}

.table>tbody>tr.border_bottom>td, .table>tbody>tr.border_bottom>th, .table>tbody>tr>td.border_bottom, .table>tbody>tr>th.border_bottom, .table>tfoot>tr.border_bottom>td, .table>tfoot>tr.border_bottom>th, .table>tfoot>tr>td.border_bottom, .table>tfoot>tr>th.border_bottom, .table>thead>tr.border_bottom>td, .table>thead>tr.border_bottom>th, .table>thead>tr>td.border_bottom, .table>thead>tr>th.border_bottom {
    border-bottom:solid 2px #1f1f1f !important;
    font-weight:bold;
    background-color: #f5f5f5;
    font-size: 14px;
}

.table>tbody>tr.table_border_top>td, .table>tbody>tr.table_border_top>th, .table>tbody>tr>td.table_border_top, .table>tbody>tr>th.table_border_top, .table>tfoot>tr.table_border_top>td, .table>tfoot>tr.table_border_top>th, .table>tfoot>tr>td.table_border_top, .table>tfoot>tr>th.table_border_top, .table>thead>tr.table_border_top>td, .table>thead>tr.table_border_top>th, .table>thead>tr>td.table_border_top, .table>thead>tr>th.table_border_top {
    border-top:solid 3px #1f1f1f !important;
}

.table_icon{
    font-size:17px !important;
}

.password-box {
    width: 500px;
    margin: 1% auto !important;
}

@media (max-width: 768px) {
    .password-box {
        width: 90%;
        margin-top: 20px;
    }
}

@media (max-width: 767px) {

    .bootstrap-select.btn-group .dropdown-menu{
        max-width: 100%;
    }
    .content-wrapper{
        padding-top: 50px;
    }
    .bootstrap-select{
        max-width: 220px;
    }
    .main-sidebar{
        padding-top: 100px;
    }
}
@media (max-width: 570px) {
    .main-sidebar{
        padding-top: 150px;
    }
}
@media (max-width: 381px){
    .main-sidebar{
        padding-top: 150px;
    }
    .navbar-text{

    }
}
@media (max-width: 280px) {
    .main-sidebar{
        padding-top: 200px;
    }
}


.bootstrap-select{
    margin-top: 8px;
}

#quickbooks{
    background: url("../img/quickbooks.a8b01ce0d3ba.png") no-repeat;
}

#quickbooks:hover{
   background: url("../img/quickbooks_hover.c44cb1945a57.png") no-repeat;
}

@media (max-width: 261px){
    .content-wrapper{
        padding-top: 100px;
    }
    .main-sidebar{
        padding-top: 200px;
    }
}

.datepicker table tr td.disabled, .datepicker table tr td.disabled:hover {
    text-decoration: line-through;
}

.signature-pad {
  /*position: relative;*/
  left: 0;
  top: 0;
    /*width:100%;*/
  /*width:600px;*/
  /*height:300px;*/
   /*border: 15px;*/
    border-style: ridge;
}

.premium-time {
    margin-top: -5px;
    padding-left: 15px;

}

#maintenance-bar {
    padding: 10px 10px;
    background: #F56403;
    z-index: 999999;
    font-size: 16px;
    font-weight: 600;
}

#maintenance-text {
    color: rgba(255, 255, 255, 0.9);
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
}

.user-login-bar {
    padding: 10px 10px;
    background: #2b2b2b;
    z-index: 999999;
    font-size: 16px;
    font-weight: 600;
}

.custom-message-bar {
    padding: 10px 10px;
    background: red;
    z-index: 999999;
    font-size: 16px;
    font-weight: 600;
}

.custom-message-text {
    color: rgba(255, 255, 255, 0.9);
    display: inline-block;
    margin-right: 10px;
    text-decoration: none;
}

.overhead-report-project {
    background-color: #1f1f1f;
    color: #ffffff;

}

.overhead-report-project:hover {
    background-color: #1f1f1f !important;
    color: #ffffff !important;

}

.modal-fullscreen{
    width: 98% !important;
    height: 100% !important;
    margin: 1% !important;
    padding: 0% !important;
}

@media only screen and (max-width: 900px) {
    .modal-xl{
        width: 90% !important;
    }
}

@media only screen and (min-width: 901px) {
    .modal-xl {
        width: 80% !important;
    }
}
.modal-xl {
    height: auto !important;
    margin: 30px auto !important;
    padding: 0 !important;
}

.task-color-selector{
    z-index: 99!important;
}

/*#wrap {*/
    /*overflow: auto;*/
    /*height: 800px;*/
/*}*/

/*.table-sticky-header {*/
    /*padding: 10px 16px;*/
    /*background: #ffffff;*/
    /*color: black;*/

/*}*/

/*.table-sticky-header thead th:first-child {*/
    /*border-left: 0;*/
    /*border-right: 0;*/
    /*border-bottom: 1px solid #eee;*/
    /*border-radius: 0;*/
/*}*/


/*.table-sticky-content {*/
  /*padding: 16px;*/
/*}*/

/*.sticky {*/
  /*position: fixed;*/
  /*top: 0;*/
  /**/
/*}*/


/*.sticky + .table-sticky-content {*/
  /*padding-top: 102px;*/
/*}*/


.main_project_dropdown_div {
    position: relative;
    display: inline-block;
}

.main_project_dropdown-content {
    display: none;
    position: absolute;
    background-color: #f2f2f2;
    min-width: -webkit-calc(100vw - 400px);
    min-width:    -moz-calc(100vw - 400px);
    min-width:         calc(100vw - 400px);
    overflow: auto;
    border: 1px solid #ddd;
    z-index: 1;
}



.main_project_item {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    white-space: nowrap;

}

.main_project_item:hover {
    background-color: #ddd;
    cursor: pointer;
}

.main_project_customer_name {
    color: grey;
    padding-top: 10px;
}

.project_dropdown_button {
    width: 250px;
}

abbr[title] {
  text-decoration: none;
}

ul.errorlist {
    list-style-type: none;
    padding-left: 0px;

}

ul.errorlist > li {
    color: #b94a48;
}

.dashboard_tile {
    white-space: nowrap;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis !important;
}

.dashboard_tile:hover {
    overflow: visible;
    white-space: normal;
    height:auto;
}

.multicolumn {
    list-style: none !important;
}

.loading_form_field {
    background-color: #ffffff;
    background-image: url("http://loadinggif.com/images/image-selection/3.gif");
    background-size: 25px 25px;
    background-position:right center;
    background-repeat: no-repeat;
}

.popover {
    width:auto!important;
    max-width: none;
    height: auto !important;
    /*overflow: auto;*/
}

.help {
    font-size: 14px;
    color: #ff5a27;
}

/* Dynamic timesheet modal: demote informational help text from brand-orange to muted neutral */
#modal-fullscreen-body .help,
.ts-body .help {
    color: #6b7280;
}

/* Employees & Hours wrapper: the timesheet box + box-body + col-md-12 all
   add horizontal padding that shifts the section right of the Details/Approval
   sections. Zero them out so everything aligns to the same gutter. */
#modal-fullscreen-body #forms,
.ts-body #forms,
#modal-fullscreen-body #forms > .box,
.ts-body #forms > .box,
#modal-fullscreen-body #forms .box-body,
.ts-body #forms .box-body,
#modal-fullscreen-body #employees-0,
.ts-body #employees-0 {
    padding-left: 0;
    padding-right: 0;
}
#modal-fullscreen-body #forms > .box,
.ts-body #forms > .box {
    border: 0;
    box-shadow: none;
    background: transparent;
}
#modal-fullscreen-body #employees-0 > .row,
.ts-body #employees-0 > .row {
    margin-left: 0;
    margin-right: 0;
}
/* First/last cols inside the employee rows: strip the outer col gutter so the
   inputs align to the same left/right as the rest of the modal (Date, etc.) */
#modal-fullscreen-body .emp-row-headers > [class*="col-"]:first-child,
.ts-body .emp-row-headers > [class*="col-"]:first-child,
#modal-fullscreen-body #employees-0 .time-formset .employee-container > [class*="col-"]:first-child,
.ts-body #employees-0 .time-formset .employee-container > [class*="col-"]:first-child {
    padding-left: 0;
}
#modal-fullscreen-body .emp-row-headers > [class*="col-"]:last-child,
.ts-body .emp-row-headers > [class*="col-"]:last-child,
#modal-fullscreen-body #employees-0 .time-formset .employee-container > [class*="col-"]:last-child,
.ts-body #employees-0 .time-formset .employee-container > [class*="col-"]:last-child {
    padding-right: 0;
}

/* "Fill all rows with" bulk-default strip: a single compact row that reads as
   "set once, applies to every row below unless overridden" */
#modal-fullscreen-body .default-hours-strip,
.ts-body .default-hours-strip {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin: 12px 0 16px;
    padding: 10px 14px;
    background: #fff7f3;
    border: 1px solid #ffd9c7;
    border-left: 3px solid #ff5a27;
    border-radius: 4px;
}
#modal-fullscreen-body .default-hours-strip .default-hours-label,
.ts-body .default-hours-strip .default-hours-label {
    font-weight: 600;
    color: #374151;
    font-size: 13px;
}
#modal-fullscreen-body .default-hours-strip .default-hours-input,
.ts-body .default-hours-strip .default-hours-input {
    width: 90px;
    display: inline-block;
    text-align: center;
}
#modal-fullscreen-body .default-hours-strip .default-hours-unit,
.ts-body .default-hours-strip .default-hours-unit {
    color: #6b7280;
    font-size: 13px;
    margin-left: -4px;
}
#modal-fullscreen-body .default-hours-strip .default-hours-fields,
.ts-body .default-hours-strip .default-hours-fields {
    display: inline-flex;
    gap: 4px;
}
#modal-fullscreen-body .default-hours-strip .default-hours-fields input,
.ts-body .default-hours-strip .default-hours-fields input {
    width: 70px;
    text-align: center;
}
#modal-fullscreen-body .default-hours-strip .default-hours-hint,
.ts-body .default-hours-strip .default-hours-hint {
    margin-left: auto;
    color: #6b7280;
    font-size: 12px;
    font-style: italic;
}

/* "Add employee row" button: full-width dashed target that reads as part of the table */
#modal-fullscreen-body .ts-add-employee-row,
.ts-body .ts-add-employee-row {
    display: block;
    width: 100%;
    margin: 8px 0 4px;
    padding: 10px 12px;
    background: transparent;
    border: 1px dashed #cbd5e1;
    color: #4b5563;
    font-weight: 500;
    border-radius: 4px;
    text-align: center;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}
#modal-fullscreen-body .ts-add-employee-row:hover,
.ts-body .ts-add-employee-row:hover,
#modal-fullscreen-body .ts-add-employee-row:focus,
.ts-body .ts-add-employee-row:focus {
    background: #fff7f3;
    border-color: #ff5a27;
    color: #ff5a27;
    border-style: solid;
}

/* Employee rows: subtle dividers + tighter vertical rhythm so many rows stay scannable */
#modal-fullscreen-body [id^="emp-"][id*="-row-"],
.ts-body [id^="emp-"][id*="-row-"] {
    padding: 6px 0;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}
#modal-fullscreen-body [id^="emp-"][id*="-row-"]:last-of-type,
.ts-body [id^="emp-"][id*="-row-"]:last-of-type {
    border-bottom: 0;
}
#modal-fullscreen-body [id^="emp-"][id*="-row-"]:hover,
.ts-body [id^="emp-"][id*="-row-"]:hover {
    background: #fafbfc;
}
#modal-fullscreen-body [id^="emp-"][id*="-row-"] .form-group,
.ts-body [id^="emp-"][id*="-row-"] .form-group {
    margin-bottom: 0;
}

/* Row remove button: small, muted, only reveals danger color on hover */
#modal-fullscreen-body .ts-row-remove,
.ts-body .ts-row-remove {
    background: transparent;
    color: #9ca3af;
    border: 1px solid #e5e7eb;
    margin-left: 4px;
}
#modal-fullscreen-body .ts-row-remove:hover,
.ts-body .ts-row-remove:hover,
#modal-fullscreen-body .ts-row-remove:focus,
.ts-body .ts-row-remove:focus {
    background: #fef2f2;
    color: #b91c1c;
    border-color: #fca5a5;
}

/* Overrides + remove sit as a compact btn-group aligned right */
#modal-fullscreen-body #employees-0 .btn-group,
.ts-body #employees-0 .btn-group {
    display: inline-flex;
    gap: 4px;
}
#modal-fullscreen-body #employees-0 .btn-group > .btn,
.ts-body #employees-0 .btn-group > .btn {
    border-radius: 4px;
    float: none;
}

/* Deductions mode: Actions col is narrow (col-md-1) to keep the Overrides
   button close to the Craft select. Zero the gutter, let the button overflow
   leftward naturally, and anchor it to the row's right edge. */
/* Narrow actions col: labeled Overrides button is wider than col-md-1, so we
   pin it to the row's right edge (float) and let its left side tuck back into
   the Craft col. A small padding-right on Craft opens a visible gap. */
#modal-fullscreen-body .ts-actions-tight,
.ts-body .ts-actions-tight {
    padding-left: 0;
    padding-right: 0;
    white-space: nowrap;
}
#modal-fullscreen-body .ts-actions-tight .btn-group,
.ts-body .ts-actions-tight .btn-group {
    float: right;
    display: inline-flex;
}
/* Shrink the labeled Overrides button in the narrow (col-md-1) actions column
   on desktop so it no longer overlaps the Craft select. Scoped to desktop —
   on mobile the button stacks full-width (see the max-width:767px block). */
@media (min-width: 768px) {
    #modal-fullscreen-body .ts-actions-tight .btn,
    .ts-body .ts-actions-tight .btn {
        padding: 3px 6px;
        font-size: 11px;
    }
    #modal-fullscreen-body .ts-actions-tight .btn .fa,
    .ts-body .ts-actions-tight .btn .fa {
        font-size: 11px;
        margin-right: 2px;
    }
    #modal-fullscreen-body .ts-row-craft,
    .ts-body .ts-row-craft {
        /* The right-anchored Overrides button overflows ~14px into this column
           by design; reserve enough right padding that the Craft select ends
           before the button starts (clears the dropdown caret). */
        padding-right: 20px;
    }
}

/* Advanced Options toggle chevron rotates when expanded */
#modal-fullscreen-body .ts-advanced-toggle .ts-advanced-chevron,
.ts-body .ts-advanced-toggle .ts-advanced-chevron {
    transition: transform 0.15s ease;
    font-size: 10px;
    margin-right: 2px;
}
#modal-fullscreen-body .ts-advanced-toggle[aria-expanded="true"] .ts-advanced-chevron,
.ts-body .ts-advanced-toggle[aria-expanded="true"] .ts-advanced-chevron,
#modal-fullscreen-body .ts-advanced-toggle:not(.collapsed) .ts-advanced-chevron,
.ts-body .ts-advanced-toggle:not(.collapsed) .ts-advanced-chevron {
    transform: rotate(90deg);
}

/* Date input gets a calendar icon on the left edge */
#modal-fullscreen-body .ts-date-input-group,
.ts-body .ts-date-input-group { width: 100%; }
#modal-fullscreen-body .ts-date-input-group .input-group-addon,
.ts-body .ts-date-input-group .input-group-addon {
    background: #fff7f3;
    border-color: #ffd9c7;
    color: #ff5a27;
}

/* Section headings split the dynamic timesheet modal into 3 zones. The
   brand-orange accent bar signals "this is a section marker" without the
   heading text itself shouting for attention. */
#modal-fullscreen-body .ts-section-heading,
.ts-body .ts-section-heading {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #ff5a27;
    margin: 28px 0 12px;
    padding: 0 0 8px 10px;
    border-bottom: 1px solid #ffd9c7;
    border-left: 3px solid #ff5a27;
}
#modal-fullscreen-body .ts-section-heading:first-child,
.ts-body .ts-section-heading:first-child {
    margin-top: 4px;
}

/* Collapsible "Employee missing?" help block — muted, non-error styling */
#modal-fullscreen-body .employee-helptext-details,
.ts-body .employee-helptext-details {
    margin: 0 0 12px;
    padding: 8px 12px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-size: 13px;
    color: #6b7280;
}
#modal-fullscreen-body .employee-helptext-details > summary,
.ts-body .employee-helptext-details > summary {
    cursor: pointer;
    font-weight: 500;
    color: #4b5563;
    list-style: none;
    outline: none;
    user-select: none;
}
#modal-fullscreen-body .employee-helptext-details > summary::-webkit-details-marker,
.ts-body .employee-helptext-details > summary::-webkit-details-marker { display: none; }
#modal-fullscreen-body .employee-helptext-details > summary::before,
.ts-body .employee-helptext-details > summary::before {
    content: '\25B8';
    display: inline-block;
    width: 12px;
    margin-right: 4px;
    transition: transform 0.15s ease;
}
#modal-fullscreen-body .employee-helptext-details[open] > summary::before,
.ts-body .employee-helptext-details[open] > summary::before {
    transform: rotate(90deg);
}
#modal-fullscreen-body .employee-helptext-details p,
.ts-body .employee-helptext-details p {
    margin: 8px 0 4px;
}
#modal-fullscreen-body .employee-helptext-details ul,
.ts-body .employee-helptext-details ul {
    margin: 0;
    padding-left: 20px;
}

/* Dynamic timesheet modal: unify label typography. Field labels = medium weight; checkbox labels = body weight. */
#modal-fullscreen-body label,
.ts-body label {
    font-weight: 500;
}
#modal-fullscreen #modal-fullscreen-content {
    padding: 12px 20px;
}
#modal-fullscreen .modal-title {
    font-size: 18px;
    font-weight: 500;
}
#modal-fullscreen-body .checkbox label,
.ts-body .checkbox label,
#modal-fullscreen-body label[for^="id_laborform-pay"],
.ts-body label[for^="id_laborform-pay"],
#modal-fullscreen-body label[for^="id_laborform-bill"],
.ts-body label[for^="id_laborform-bill"],
#modal-fullscreen-body label[for="id_timeform-approval"],
.ts-body label[for="id_timeform-approval"],
#modal-fullscreen-body label[for^="pay-premium"],
.ts-body label[for^="pay-premium"],
#modal-fullscreen-body label[for^="bill-premium"],
.ts-body label[for^="bill-premium"],
#modal-fullscreen-body label[for^="pay-perdiem"],
.ts-body label[for^="pay-perdiem"],
#modal-fullscreen-body label[for^="bill-perdiem"],
.ts-body label[for^="bill-perdiem"] {
    font-weight: 400;
}

/* Total / Break / Paid triple input: give each box breathing room so the
   group isn't cramped. Uses !important + attribute selector to override the
   inline styles that timesheet.js writes onto each input when adding rows. */
#modal-fullscreen-body .deductions-group,
.ts-body .deductions-group,
#modal-fullscreen-body .form-group:has(> .totalhours_input.deductions),
.ts-body .form-group:has(> .totalhours_input.deductions) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
/* Validation lives inside the same flex row as the Total/Break/Paid inputs.
   Force it onto its own full-width line so it drops below the inputs instead
   of competing for horizontal space and shrinking the three boxes. */
#modal-fullscreen-body .deductions-group > .emp-errors,
#modal-fullscreen-body .form-group:has(> .totalhours_input.deductions) > .emp-errors {
    flex: 1 0 100%;
    width: 100%;
    margin-top: 2px;
    text-align: center;
}
#modal-fullscreen-body .form-group > .totalhours_input.deductions,
.ts-body .form-group > .totalhours_input.deductions,
#modal-fullscreen-body .form-group > .deductions_input.deductions,
.ts-body .form-group > .deductions_input.deductions,
#modal-fullscreen-body .form-group > .hours_input.deductions,
.ts-body .form-group > .hours_input.deductions {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin-right: 0 !important;
    padding: 6px 4px !important;
    text-align: center;
}

/* PATH-5752 Manual Time Entry: the ST / OT / PT triple input lays out exactly
   like Total / Break / Paid — one flex row, evenly sized boxes. The container
   rule covers the legacy modal cell (no .deductions-group wrapper there). */
#modal-fullscreen-body .form-group:has(> .sthours_input.manualhours_input),
.ts-body .form-group:has(> .sthours_input.manualhours_input) {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
#modal-fullscreen-body .form-group:has(> .sthours_input.manualhours_input) > .emp-errors,
.ts-body .form-group:has(> .sthours_input.manualhours_input) > .emp-errors {
    flex: 1 0 100%;
    width: 100%;
    margin-top: 2px;
    text-align: center;
}
#modal-fullscreen-body .form-group > .manualhours_input,
.ts-body .form-group > .manualhours_input {
    flex: 1 1 0;
    min-width: 0;
    width: auto !important;
    max-width: none !important;
    float: none !important;
    margin-right: 0 !important;
    padding: 6px 4px !important;
    text-align: center;
}

/* The Paid input is readonly (derived from Total - Break) — tint it cool so
   it visually reads as "calculated output" instead of "disabled field". */
#modal-fullscreen-body .form-group > .hours_input.deductions[readonly],
.ts-body .form-group > .hours_input.deductions[readonly],
#modal-fullscreen-body .default-hours-strip input#defaulthours[readonly],
.ts-body .default-hours-strip input#defaulthours[readonly] {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

/* Brand-orange focus ring on form controls inside the modal — replaces the
   default muted blue so focus aligns with the rest of the Pathfinder UI. */
#modal-fullscreen-body .form-control:focus,
.ts-body .form-control:focus,
#modal-fullscreen-body select:focus,
.ts-body select:focus,
#modal-fullscreen-body input:focus,
.ts-body input:focus,
#modal-fullscreen-body textarea:focus,
.ts-body textarea:focus {
    border-color: #ff5a27;
    outline: 0;
    box-shadow: 0 0 0 3px rgba(255, 90, 39, 0.18);
}

/* ---------- Dynamic timesheet modal: phone adaptation (≤ 767px) ----------
   Desktop uses a 5-column grid (Employee / Hours / Notes / Craft / Actions)
   that doesn't fit on a phone. On small screens we stack each column
   vertically inside a card-style employee row, expand inputs to full width,
   keep the Total/Break/Paid triplet horizontal (short numbers), make the
   Overrides button full-width, and let the modal fill the viewport. */
@media (max-width: 767px) {
    #modal-fullscreen .modal-dialog {
        margin: 0;
        width: 100%;
        max-width: 100%;
    }
    #modal-fullscreen .modal-content {
        min-height: 100vh;
        border-radius: 0;
        border: 0;
    }
    #modal-fullscreen #modal-fullscreen-content {
        padding: 8px 12px;
    }
    #modal-fullscreen .modal-title {
        font-size: 16px;
    }

    /* iOS zooms any input under 16px on focus — enforce 16px on form fields */
#modal-fullscreen-body .form-control,
.ts-body .form-control,
#modal-fullscreen-body input[type="number"],
.ts-body input[type="number"],
#modal-fullscreen-body input[type="text"],
.ts-body input[type="text"],
#modal-fullscreen-body input[type="date"],
.ts-body input[type="date"],
#modal-fullscreen-body select,
.ts-body select,
#modal-fullscreen-body textarea,
.ts-body textarea {
        font-size: 16px;
    }

    /* Column headers are desktop-only context — on phones each field is
       stacked with its own placeholder/label, so hide the header row. */
#modal-fullscreen-body .emp-row-headers,
.ts-body .emp-row-headers {
        display: none;
    }

    /* Stack every grid cell inside an employee row to full width */
#modal-fullscreen-body #employees-0 .time-formset > .employee-container > [class*="col-"],
.ts-body #employees-0 .time-formset > .employee-container > [class*="col-"],
#modal-fullscreen-body #employees-0 .time-formset > [class*="col-"],
.ts-body #employees-0 .time-formset > [class*="col-"] {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 8px;
        float: none;
    }
#modal-fullscreen-body #employees-0 .time-formset > .employee-container > [class*="col-"]:last-child,
.ts-body #employees-0 .time-formset > .employee-container > [class*="col-"]:last-child,
#modal-fullscreen-body #employees-0 .time-formset > [class*="col-"]:last-child,
.ts-body #employees-0 .time-formset > [class*="col-"]:last-child {
        margin-bottom: 0;
    }

    /* Card styling so rows visually separate on a small screen */
#modal-fullscreen-body [id^="emp-"][id*="-row-"],
.ts-body [id^="emp-"][id*="-row-"] {
        padding: 12px;
        background: #fff;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        margin: 0 0 10px;
    }
#modal-fullscreen-body [id^="emp-"][id*="-row-"]:hover,
.ts-body [id^="emp-"][id*="-row-"]:hover {
        background: #fff;
    }

    /* Total/Break/Paid stays horizontal (3 short numbers) but each input
       expands to share the row evenly. */
#modal-fullscreen-body .form-group > .totalhours_input.deductions,
.ts-body .form-group > .totalhours_input.deductions,
#modal-fullscreen-body .form-group > .deductions_input.deductions,
.ts-body .form-group > .deductions_input.deductions,
#modal-fullscreen-body .form-group > .hours_input.deductions,
.ts-body .form-group > .hours_input.deductions {
        flex: 1 1 0 !important;
        padding: 10px 4px !important;
    }

    /* Overrides button: full-width, touch-sized, separated from Craft */
#modal-fullscreen-body .ts-actions-tight,
.ts-body .ts-actions-tight {
        padding-left: 0 !important;
        padding-right: 0 !important;
        text-align: left !important;
    }
#modal-fullscreen-body .ts-actions-tight .btn-group,
.ts-body .ts-actions-tight .btn-group {
        float: none !important;
        display: flex !important;
        width: 100%;
    }
#modal-fullscreen-body .ts-actions-tight .btn-group > .btn,
.ts-body .ts-actions-tight .btn-group > .btn {
        flex: 1 1 0;
        min-height: 44px;
    }

    /* "Fill all rows with" strip: stack label above inputs, inputs share row */
#modal-fullscreen-body .default-hours-strip,
.ts-body .default-hours-strip {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
#modal-fullscreen-body .default-hours-strip .default-hours-hint,
.ts-body .default-hours-strip .default-hours-hint {
        margin-left: 0;
    }
#modal-fullscreen-body .default-hours-strip .default-hours-fields,
.ts-body .default-hours-strip .default-hours-fields {
        display: flex;
        gap: 6px;
    }
#modal-fullscreen-body .default-hours-strip .default-hours-fields input,
.ts-body .default-hours-strip .default-hours-fields input,
#modal-fullscreen-body .default-hours-strip .default-hours-input,
.ts-body .default-hours-strip .default-hours-input {
        flex: 1 1 0;
        width: auto;
    }

    /* Date input full width */
#modal-fullscreen-body .ts-date-input-group,
.ts-body .ts-date-input-group {
        width: 100%;
    }

    /* Touch-sized Add Employee Row button */
#modal-fullscreen-body .ts-add-employee-row,
.ts-body .ts-add-employee-row {
        min-height: 44px;
        padding: 12px;
    }

    /* Row remove = larger touch target */
#modal-fullscreen-body .ts-row-remove,
.ts-body .ts-row-remove {
        min-height: 44px;
        min-width: 44px;
    }

    /* Section headings a touch smaller so they don't dominate */
#modal-fullscreen-body .ts-section-heading,
.ts-body .ts-section-heading {
        margin-top: 20px;
        font-size: 11px;
    }
}

.main_project_dropdown_list {
    list-style-type: none;
}

.labor_hours {
    display: inline-block;
}

#labor_tile>div {
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
}

#labor_tile>div>p {
    margin-left: 10px;
}

.labor_workers {
    margin-bottom: 0px;
    margin-top: 0px;
}

.modal-fullscreen{
    width: 98% !important;
    height: auto !important;
    margin: 1% !important;
    padding: 0% !important;
}

#modal-fullscreen-body{
    max-height: calc(100vh - 175px);
    overflow-y: auto;
}

.userscore_fields div {
    width:50px;
    display: inline-block;
}
.userscore_fields input[type=radio]{
    float:right;
    margin-left:15px;
}

.userscore_fields {
    border: #aaa solid 1px;
    border-radius: 4px;
    padding-top: 5px;
}

@media only screen and (min-width: 600px) {
    section.content-header h1 {
      margin: 15px 0;
    }
    section.content-header ol.breadcrumb {
      margin-top: 15px;
  }
}

textarea#dailylogmessage {
    width: 100%;
    resize: none;
}

div.user-panel>.image>img {
    max-width: initial;
}


.fix-sticky thead th, .fix-sticky thead th:first-child {
    border-left: 1px solid #dddddd !important;
}

div#table-sticky-header-sticky-header-container div {
    margin-left: -1px;
}

#table-sticky-header-sticky-header-container > div > thead > tr > th {
    vertical-align: bottom;
}

label.required:not(:empty)::after {
    content: ' *';
    color: red;
}

.disabled_control, .disabled_control > * {
    cursor: not-allowed !important;
    background-color: #eee;
    opacity: 1;
}

.disabled_control:active {
    pointer-events: none !important;
}

.alert-sm {
    padding-top: 5px;
    padding-bottom: 5px;
    margin-bottom: 5px;
}

div.disabled_formset_row a.text-danger i.fa.fa-times.fa-2x {
    display: none;
}

h3.anti-fa:before {
   content: none;
}

.box-header[data-widget="collapse"] {
    cursor: pointer;
}

.box-title.pull-right.filter_box_tool {
    margin-right: 30px;
    color: #97a0b3;
}

button.btn.btn-box-tool {
    margin-top: 3px;
}

.daterangepicker.daterangepickerview.opened {
    z-index: 99;
}

.datepicker table tr td.today, .datepicker table tr td.today:hover, .datepicker table tr td.today.disabled, .datepicker table tr td.today.disabled:hover {
    border: solid 2px #357ebd !important;
}

.main_project_item_project_name{
    white-space: normal;
}

.swagger-ui .scheme-container {
    background: #1f1f1f;
}

.swagger-ui .opblock.opblock-get .opblock-summary-method {
    background: rgb(252, 91, 52);
}

.swagger-ui .info .title small.version-stamp {
    background-color: rgb(252, 91, 52);
}

.swagger-ui .opblock.opblock-get {
    background: #FDDDD5;
    border-color: rgb(252, 91, 52);
}

.swagger-ui .opblock.opblock-post .opblock-summary-method {
    background: #00a65a;
}

span.expired {
    color: #c4342d;
    font-weight: 700;
}
span.expiring {
    color: #dbac00;
    font-weight: 700;
}
div#add_docs_btn {
    text-align: center;
    padding: 30px;
}

