/*!
 * Project: Autogapp
 * Author: Dotted Limited
 * Version   :  1.8.0
 * Updated   :  07.23.2020
**/

@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700&display=swap");

:root {
    --autogapp-font-sans: "Montserrat", "Noto Sans Arabic", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-family-sans-serif: var(--autogapp-font-sans);
}

html[dir="rtl"],
html.rtl-layout {
    --autogapp-font-sans: "Noto Sans Arabic", "Montserrat", "Segoe UI", Tahoma, Arial, sans-serif;
}

html,
body,
.nk-body,
.nk-app-root,
.nk-main,
.nk-wrap,
.nk-content,
.nk-sidebar,
.nk-menu,
.nk-header,
.modal,
.dropdown-menu,
.table,
.datatable-init,
.form-control,
.form-select,
.select2-container,
.form-label,
.custom-control-label,
.user-name,
.lead-text,
.sub-text,
.nk-menu-text,
.nk-menu-heading,
.nk-menu-link,
.nk-block-title,
.card-title,
.modal-title,
.dropdown-item,
.alert,
.swal-title,
.swal-text,
.btn,
button,
input,
select,
textarea {
    font-family: var(--autogapp-font-sans) !important;
}

.ff-base,
.ff-alt,
[class*="knob"],
.cc-pay .title,
.cc-pay-dd > .btn {
    font-family: var(--autogapp-font-sans) !important;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
label,
small,
strong,
span:not(.icon):not([class^="ni-"]):not([class*=" ni-"]) {
    font-family: var(--autogapp-font-sans);
}


/*Parsley*/
.parsley-errors-list {
  margin: 0;
  padding: 0; }
  .parsley-errors-list > li {
    list-style: none;
    color: #ff5c75;
    margin-top: 10px;
    padding: 4px 7px 4px 28px;
    position: relative;
    display: inline-block;
    background-color: rgba(255, 92, 117, 0.2);
    border-radius: 7px; }
    .parsley-errors-list > li:before {
      content: "!";
      font-family: "Nioicon";
      position: absolute;
      left: 8px;
      top: 4px; }
    .parsley-errors-list > li:after {
      content: "";
      border: 8px solid transparent;
      border-bottom-color: rgba(255, 92, 117, 0.2);
      position: absolute;
      left: 14px;
      top: -16px; }

.parsley-error {
  border-color: #ff5c75; }

.parsley-success {
  border-color: #43d39e; }

  /*input*/
.hide-arrows input::-webkit-outer-spin-button, .hide-arrows input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/*mods*/
.wider .profile-ud-value, .wider .profile-ud-label {
    width: 50%;
}
.dent-scratch-color {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin: 0 0 0 0 !important;
    padding: 0;
    border: 3px solid #8492a0;
}
.dent-scratch-color.red {
    border: 3px solid #ff0000;
    background: #ff0000;
}
.dent-scratch-color.blue {
    border: 3px solid #1418FF;
    background: #1418FF;
}
.dent-scratch-color.active {
    border: 3px solid #8492a0;
}
canvas#car-diagram {
    border-radius: 5px;
    background-color: transparent !important;
    cursor: pointer;
}
.car-diagram-holder {
    width: 100%;
    max-width: 600px;
    border: 2px solid #e6eaee;
    border-radius: 5px;
    background-color: #F7F7F7 !important;
    margin: 0 auto;
}



.hide-arrows input[type=number] {
  -moz-appearance: textfield;
}

/*Toastr*/
.sweet-alert button.cancel {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #777;
}

.sweet-alert button.cancel:hover {
    background-color: rgba(0, 0, 0, .1);
}

.alert.alert-dismissable i {
    margin-right: 5px;
}

#toast-container>div {
    -moz-box-shadow: 0 10px 48px rgba(30, 107, 174, 0.1), 0 1px 1px rgba(255, 248, 254, 0.61);
    -webkit-box-shadow: 0 10px 48px rgba(30, 107, 174, 0.1), 0 1px 1px rgba(255, 248, 254, 0.61);
    box-shadow: 0 10px 48px rgba(30, 107, 174, 0.1), 0 1px 1px rgba(255, 248, 254, 0.61);
}

.toast-success {
    background-color: #00C853;
}

.toast-error {
    background-color: #ff1a1a;
}

#toast-container>div:hover {
    -moz-box-shadow: 0 10px 48px rgba(30, 107, 174, 0.1), 0 1px 1px rgba(255, 248, 254, 0.61);
    -webkit-box-shadow: 0 10px 48px rgba(30, 107, 174, 0.1), 0 1px 1px rgba(255, 248, 254, 0.61);
    box-shadow: 0 10px 48px rgba(30, 107, 174, 0.1), 0 1px 1px rgba(255, 248, 254, 0.61);
}
button.toast-close-button {
    margin-top: 6px;
}

/*empty*/
.empty {
    padding: 40px 0;
}
.empty em {
    font-size: 45px;
}
.empty p {
    margin-top: 10px;
}

/*helper classes*/
.pull-right {
  float: right !important;
}
.unset-mh {
  min-height: unset !important;
}

/*parts*/
.part-order-item {
    border: 1px solid #e2e7f1;
    margin-bottom: 15px;
    padding: 10px;
    background: #fff;
}
.part-drag {
    display: inline-block;
    border-right: 1px solid #e2e7f1;
    margin-right: 6px;
    cursor: move;
}


/*fuel Level*/
.fuel-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 15px;
  border-radius: 5px;
  background: #e4efff;
  outline: none;
  opacity: 0.7;
  -webkit-transition: .2s;
  transition: opacity .2s;
  -webkit-transform: rotateY(180deg);
   -moz-transform: rotateY(180deg);
   -ms-transform: rotateY(180deg);
   -o-transform: rotateY(180deg);
   transform: rotateY(180deg);
}

.fuel-slider:hover {
  opacity: 1;
}

.fuel-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #0971fe;
  cursor: pointer;
}

.fuel-slider::-moz-range-thumb {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #0971fe;
  cursor: pointer;
}

.form-control-wrap.stacked {
    margin-bottom: 10px;
}
.form-control-wrap.stacked a {
    right: 10px;
    position: absolute;
    top: 7px;
}
ol.styled-list, ul.styled-list {
    list-style: none;
    margin: 0;
    padding: 0;
    list-style: unset;
    padding: revert;
}

/*select 2*/
.select2-container--default .select2-selection--multiple {
    border: 1px solid #dbdfea;
}
.select2-container--default.select2-container--focus .select2-selection--multiple {
    border: solid #0971fe 1px;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice {
  background-color: #e4efff;
  border: 1px solid #9dc6ff;
  color: #0971fe;
}
.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #0971fe;
}
.select2-container .select2-selection--multiple {
    min-height: 42px;
}


/*bulk imports*/
.custom-control.custom-switch.aligned {
    margin-top: 30px !important;
}
textarea.form-control.unset-min-height {
    min-height: unset !important;
}

/*pricing*/
.price-plan-media { padding: 0.25rem 0; margin-bottom: 1.5rem; }

.price-plan-media img { max-width: 90px; }

.price-plan-info { margin-bottom: 1.5rem; color: #8094ae; }

.text-center .price-plan-info { padding: 0.25rem .5rem; }

.price-plan-amount { font-size: 0.875rem; color: #8094ae; }

.price-plan-amount .amount { font-size: 1.5rem; font-weight: 700; color: #526484; }

.price-plan-action { margin-top: 1.5rem; margin-bottom: 0.125rem; }

/*viewer*/

.document {
    min-height: 500px;
}

.document-map {
    width: 100%;
    display: none;
}
.signer-document div {
    overflow-x: auto;
}

.document-pagination {
    overflow: hidden;
    margin-bottom: 15px;
}
.document-pagination .launch-viewer {
    margin-left: 30px;
    text-align: center;
}
.btn-zoom i {
    margin-left: -3px;
}

.document-load {
    font-size: 24px;
    text-align: center;
    padding: 200px 0;
    width: 100%;
}
.document-load div {
    overflow: hidden !important;
}
.document-error {
    font-size: 16px;
    text-align: center;
    margin-top: 140px;
    width: 100%;
    display: none;
}
.document-error i {
    font-size: 46px;
}
.document-pagination button {
        border: none;
    height: 30px;
    width: 29px;
    padding: 6px 12px !important;
}

#document-viewer {
    width: auto;
    border: 1px solid #fff;
}
.datatable-wrap {
    overflow-x: auto;
    min-height: 400px;
}
.dataTables_wrapper > .row.justify-between.g-2:first-child {
    min-height: 40px;
    align-items: center;
}
.dataTables_wrapper div.dataTables_filter input {
    min-width: 220px;
}
.note-editor ol, .note-editor ul, .bq-note-text ol, .bq-note-text ul {
    list-style: revert;
    margin: revert;
    padding: revert;
}

.record-booking-mobile {
    display:none;
}
.card-content {
    max-width: 100%;
}
.grand-total, .tax-total, .sub-total {
    display: inline-block;
    width: 190px;
}

@media (max-width: 470px) {
    .record-booking-desktop {
        display:none;
    }
    .record-booking-mobile {
        display: inline-flex;
    }
}


/*signature*/
.draw-signature-holder {
    width: 330px;
    border: 2px solid #e6eaee;
    border-radius: 5px;
    background-color: #fff !important;
    margin: 0 auto;
}
canvas#draw-signature {
    border-radius: 5px;
    background-color: transparent !important;
    cursor: pointer;
}
.signature-tool-item {
    width: 40px;
    height: 30px;
    padding-top: 6px;
    overflow: hidden;
}
.signer-tool, .signature-tool-item {
    text-align: center;
    font-size: 12px;
    display: inline-block;
    cursor: pointer;
    min-width: 50px;
    margin: 0 6px;
}
button.jscolor {
    border-radius: 50%;
    width: 20px;
    height: 20px;
    margin: 0 0 0 0 !important;
    padding: 0;
    border: 0 !important;
}

.signature-tool-item .tool-icon {
    width: 20px;
    height: 20px;
    display: inline-block;
    margin-bottom: 4px;
}
.signature-tool-item .tool-icon.tool-stroke {
    background-color: #7f8fa4;
    -webkit-mask: url(../images/stroke.svg) no-repeat center;
    mask: url(../images/stroke.svg) no-repeat center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}
.signature-tool-item .tool-icon.tool-undo {
    background-color: #7f8fa4;
    -webkit-mask: url(../images/undo.svg) no-repeat center;
    mask: url(../images/undo.svg) no-repeat center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}


.signature-tool-item .tool-icon.tool-erase {
    background-color: #7f8fa4;
    -webkit-mask: url(../images/erase.svg) no-repeat center;
    mask: url(../images/erase.svg) no-repeat center;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-size: contain;
}

@media (max-width: 500px) {

    .draw-signature-holder {
        width: 260px;
    }
}










/* Overview layout */
.overview-order-timeline {
    order: 1;
}

.overview-order-summary {
    order: 2;
}

.overview-order-year {
    order: 3;
}

.overview-order-payments {
    order: 4;
}

.overview-order-projects {
    order: 5;
}

.overview-order-tasks {
    order: 6;
}

.role-workordermanager .overview-order-summary,
.role-workordermanager .overview-order-projects,
.role-workordermanager .overview-order-tasks,
.role-workordermanager .overview-order-year,
.role-workordermanager .overview-order-payments {
    display: none !important;
}

.role-workordermanager .overview-order-timeline {
    flex: 0 0 100%;
    max-width: 100%;
}

.role-workordermanager #overview-timeline {
    height: calc(100vh - 230px) !important;
    min-height: 560px;
}

@media (max-width: 991.98px) {
    .overview-order-summary,
    .overview-order-projects,
    .overview-order-tasks,
    .overview-order-year,
    .overview-order-payments,
    .overview-order-timeline {
        order: initial;
    }
}

#overview-timeline {
    position: relative;
}

.overview-timeline-corner {
    align-items: center;
    color: #1e293b;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    height: 100%;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.overview-team-name,
.overview-unassigned-label {
    align-items: center;
    color: #1f2937;
    display: inline-flex;
    font-weight: 800;
    gap: 8px;
    min-height: 28px;
    padding: 3px 8px;
    text-transform: uppercase;
    width: 100%;
}

.overview-unassigned-label {
    color: #374151;
    font-weight: 700;
    text-transform: none;
}

.overview-team-name .icon,
.overview-unassigned-label .icon {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    height: 21px;
    justify-content: center;
    width: 21px;
}

.overview-team-name .icon {
    background: #e0f2fe;
    color: #0369a1;
}

.overview-unassigned-label .icon {
    background: #fee2e2;
    color: #dc2626;
}

.overview-event-wrap {
    align-items: center;
    display: flex;
    height: 100%;
    min-width: 0;
}

.overview-event-info {
    align-items: center;
    align-self: stretch;
    background: #1e3a8a;
    color: #fff;
    display: inline-flex;
    flex: 0 0 26px;
    font-weight: 700;
    justify-content: center;
    margin: -2px 8px -2px -8px;
    text-decoration: none;
    text-transform: lowercase;
}

.overview-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.overview-loading {
    align-items: center;
    background: rgba(248, 250, 252, 0.82);
    bottom: 0;
    color: #334155;
    display: none;
    font-size: 13px;
    font-weight: 600;
    justify-content: center;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10000;
}

.overview-loading.is-visible {
    display: flex;
}

.overview-loading:before {
    animation: overviewSpin 0.8s linear infinite;
    border: 3px solid #bfdbfe;
    border-top-color: #2563eb;
    border-radius: 999px;
    content: "";
    height: 22px;
    margin-right: 9px;
    width: 22px;
}

@keyframes overviewSpin {
    to {
        transform: rotate(360deg);
    }
}

.task-title-col {
    max-width: 360px;
    min-width: 0;
    white-space: normal;
}

.task-title-text {
    display: -webkit-box;
    line-height: 1.35;
    max-width: 100%;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-overflow: ellipsis;
    white-space: normal;
    word-break: break-word;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.cause-file-input {
    height: 1px;
    max-width: 100%;
    opacity: 0;
    overflow: hidden;
    position: absolute;
    width: 1px;
    z-index: -1;
}

.jobcard-add-photo {
    align-items: center;
    background: #f8fafc;
    border: 1px dashed #94a3b8;
    border-radius: 8px;
    color: #2563eb;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    font-weight: 700;
    height: 76px;
    justify-content: center;
    margin: 4px;
    width: 76px;
}

.jobcard-add-photo:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.jobcard-ai-input {
    align-items: stretch;
    display: flex;
    gap: 8px;
    width: 100%;
}

.jobcard-ai-input .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.jobcard-cause-textarea {
    line-height: 1.45;
    min-height: 42px;
    overflow-y: hidden;
    resize: vertical;
    white-space: pre-wrap;
    word-break: break-word;
}

.jobcard-ai-polish {
    align-items: center;
    background: #eef5ff;
    border: 1px solid #cfe0ff;
    border-radius: 8px;
    color: #1f5fd5;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 800;
    gap: 4px;
    justify-content: center;
    min-width: 58px;
    padding: 0 10px;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.jobcard-ai-polish:hover {
    background: #dfeaff;
    border-color: #9dbdff;
    color: #174ca8;
}

.jobcard-ai-polish:disabled,
.jobcard-ai-polish.is-loading {
    cursor: wait;
    opacity: .72;
}

.jobcard-ai-spinner {
    animation: jobcardAiSpin .7s linear infinite;
    border: 2px solid rgba(31, 95, 213, .25);
    border-radius: 50%;
    border-top-color: #1f5fd5;
    display: inline-block;
    height: 14px;
    width: 14px;
}

.jobcard-ai-feedback {
    color: #8094ae;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 5px;
    min-height: 16px;
}

@keyframes jobcardAiSpin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 575.98px) {
    .jobcard-ai-input {
        gap: 6px;
    }

    .jobcard-ai-polish {
        min-width: 52px;
        padding: 0 8px;
    }
}

/* =========================================================
   Autogapp module styles moved from views
   Keep page-specific styling here instead of inline <style> blocks.
   ========================================================= */

/* SMS history */
.sms-history-table { table-layout: fixed; width: 100%; }
.sms-history-table .sms-message-col { width: 48%; }
.sms-history-table .sms-message-text { display: block; max-width: 100%; white-space: normal; overflow-wrap: anywhere; word-break: break-word; line-height: 1.45; }
.sms-history-table .sms-recipient-col { width: 28%; }
.sms-history-table .sms-status-col { width: 14%; }
.sms-history-table .sms-actions-col { width: 56px; }

/* overview */
.overview-order-timeline { order: 1; }
    .overview-order-summary { order: 2; }
    .overview-order-year { order: 3; }
    .overview-order-payments { order: 4; }
    .overview-order-projects { order: 5; }
    .overview-order-tasks { order: 6; }

    .role-workordermanager .overview-order-summary,
    .role-workordermanager .overview-order-projects,
    .role-workordermanager .overview-order-tasks,
    .role-workordermanager .overview-order-year,
    .role-workordermanager .overview-order-payments {
        display: none !important;
    }

    .role-workordermanager .overview-order-timeline {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .role-workordermanager #overview-timeline {
        height: 100% !important;
        min-height: 230px;
    }

    .overview-timeline-card .card-inner {
        padding-bottom: 14px;
    }

    .overview-timeline-shell {
        background: #fff;
        border: 1px solid #e5e9f2;
        border-radius: 6px;
        cursor: pointer;
        height: 280px;
        max-width: 100%;
        overflow: hidden;
        position: relative;
    }

    .overview-timeline-shell.is-loading #overview-timeline {
        opacity: 0;
    }

    #overview-timeline {
        background: #fff;
        height: 100%;
        min-height: 280px;
        position: relative;
        transition: opacity .12s ease;
    }

    .role-workordermanager .overview-timeline-shell {
        height: 230px;
        min-height: 230px;
    }

    .overview-order-work-tasks {
        display: none;
        order: 2;
    }

    .role-workordermanager .overview-order-work-tasks {
        display: block;
    }

    .overview-work-task-card .card-inner {
        padding-top: 18px;
    }

    .overview-loading {
        align-items: center;
        background: #fff;
        bottom: 0;
        color: #526484;
        display: none;
        font-size: 13px;
        font-weight: 700;
        justify-content: center;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 20;
    }

    .overview-loading.is-visible {
        display: flex;
    }

    .overview-loading:before {
        animation: overviewTimelineSpin .8s linear infinite;
        border: 3px solid #dbeafe;
        border-radius: 999px;
        border-top-color: #2563eb;
        content: "";
        height: 22px;
        margin-right: 10px;
        width: 22px;
    }

    @keyframes overviewTimelineSpin {
        to { transform: rotate(360deg); }
    }

    .overview-timeline-corner {
        align-items: center;
        color: #1e293b;
        display: flex;
        font-size: 13px;
        font-weight: 800;
        height: 100%;
        justify-content: center;
        letter-spacing: 0;
        min-height: 38px;
        text-align: center;
        width: 100%;
    }

    .overview-team-name,
    .overview-unassigned-label {
        align-items: center;
        color: #1f2937;
        display: inline-flex;
        font-size: 12px;
        font-weight: 600;
        gap: 7px;
        min-height: 28px;
        padding: 3px 7px;
        width: 100%;
    }

    .overview-unassigned-label {
        color: #374151;
        font-weight: 700;
        text-transform: none;
    }

    .overview-team-name .icon,
    .overview-unassigned-label .icon {
        align-items: center;
        border-radius: 999px;
        display: inline-flex;
        flex: 0 0 20px;
        font-size: 12px;
        height: 20px;
        justify-content: center;
        width: 20px;
    }

    .overview-team-name .icon {
        background: #e0f2fe;
        color: #0369a1;
    }

    .overview-unassigned-label .icon {
        background: #fee2e2;
        color: #dc2626;
    }

    .overview-event-wrap {
        align-items: center;
        display: flex;
        height: 100%;
        min-width: 0;
    }

    .overview-event-info {
        align-items: center;
        align-self: stretch;
        background: #1e3a8a;
        color: #fff;
        display: inline-flex;
        flex: 0 0 24px;
        font-weight: 800;
        justify-content: center;
        margin: -2px 7px -2px -8px;
        text-decoration: none;
        text-transform: lowercase;
    }

    .overview-event-info:hover {
        background: #172554;
        color: #fff;
        text-decoration: none;
    }

    .overview-event-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* calendar */
.calendar-toolbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 16px;
    gap: 16px;
    min-height: 42px;
  }

  .calendar-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .calendar-btn {
    border: 0;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.25;
    min-height: 36px;
    padding: 8px 12px;
  }

  .calendar-btn-muted {
    background: #e5e7eb;
    color: #334155;
  }

  .calendar-btn-primary {
    background: #3b82f6;
    color: #fff;
    min-width: 42px;
  }

  .calendar-view-toggle {
    border: 1px solid #d1d5db;
    border-radius: 4px;
    display: inline-flex;
    margin-left: 16px;
    overflow: hidden;
  }

  .calendar-view-btn {
    border: 0;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    min-height: 36px;
    padding: 8px 12px;
  }

  .bg-white {
    background: #fff !important;
  }

  .bg-gray-100 {
    background: #f3f4f6 !important;
  }

  .border-l {
    border-left: 1px solid #d1d5db !important;
  }

  .calendar-panel {
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
    padding: 8px;
  }

  #calendar-title {
    min-height: 30px;
  }

  #dp-month {
    background: #fff;
    height: 78vh;
    min-height: 620px;
    overflow: hidden;
    position: relative;
  }

  #dp-timeline {
    background: #fff;
    height: 320px;
    min-height: 260px;
    overflow: hidden;
    position: relative;
  }

  .role-workordermanager #dp-month {
    height: auto !important;
    min-height: 0;
  }

  .role-workordermanager #dp-timeline {
    height: auto !important;
    min-height: 220px;
  }

  @media (max-width: 768px) {
    .calendar-toolbar {
      align-items: flex-start;
      flex-direction: column;
    }

    .calendar-actions {
      justify-content: flex-start;
    }

    .calendar-view-toggle {
      margin-left: 0;
    }
  }
.timeline-team-name {
      align-items: center;
      border-radius: 6px;
      color: #1f2937;
      cursor: pointer;
      display: inline-flex;
      font-weight: 600;
      gap: 8px;
      min-height: 30px;
      padding: 3px 8px;
      width: 100%;
    }

    .timeline-team-name .icon {
      align-items: center;
      background: #e0f2fe;
      border-radius: 999px;
      color: #0369a1;
      display: inline-flex;
      font-size: 13px;
      height: 22px;
      justify-content: center;
      width: 22px;
    }

    .timeline-team-name:hover {
      background: #eff6ff;
      color: #1d4ed8;
      text-decoration: none;
    }

    .timeline-corner-label {
      align-items: center;
      color: #1e293b;
      display: flex;
      font-size: 14px;
      font-weight: 700;
      height: 100%;
      justify-content: center;
      letter-spacing: 0;
      min-height: 40px;
      text-align: center;
      width: 100%;
    }

    .timeline-add-staff,
    .timeline-unassigned-label {
      align-items: center;
      display: inline-flex;
      gap: 8px;
      justify-content: flex-start;
      min-height: 30px;
      padding: 3px 8px;
      width: 100%;
    }

    .timeline-add-staff {
      color: #1d4ed8;
      font-weight: 700;
    }

    .timeline-add-staff:hover {
      background: #eff6ff;
      border-radius: 6px;
      color: #1e40af;
      text-decoration: none;
    }

    .timeline-unassigned-label {
      color: #374151;
      font-weight: 600;
    }

    .timeline-unassigned-label .icon {
      align-items: center;
      background: #fee2e2;
      border-radius: 999px;
      color: #dc2626;
      display: inline-flex;
      font-size: 13px;
      height: 22px;
      justify-content: center;
      width: 22px;
    }

    #dp-month,
    #dp-timeline {
      position: relative;
    }

    .scheduler_default_shadow,
    .scheduler_default_event_shadow {
      background: rgba(37, 99, 235, 0.16) !important;
      border: 2px dashed rgba(37, 99, 235, 0.95) !important;
      border-radius: 5px !important;
      box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14) !important;
      height: 34px !important;
      max-height: 34px !important;
      min-height: 34px !important;
      opacity: 0.88 !important;
      overflow: hidden !important;
      pointer-events: none !important;
      z-index: 9999 !important;
    }

    .scheduler_default_event {
      z-index: 10 !important;
    }

    .timeline-event-wrap,
    .month-event-wrap {
      align-items: center;
      display: flex;
      height: 100%;
      min-width: 0;
    }

    .timeline-event-info,
    .timeline-event-edit {
      align-items: center;
      align-self: stretch;
      color: #fff;
      cursor: pointer;
      display: inline-flex;
      flex: 0 0 28px;
      font-weight: 700;
      justify-content: center;
      margin: -2px 8px -2px -8px;
      text-decoration: none;
    }

    .timeline-event-info {
      background: #1e3a8a;
      text-transform: lowercase;
    }

    .timeline-event-info:hover {
      background: #172554;
      color: #fff;
      text-decoration: none;
    }

    .timeline-event-edit {
      background: #0f766e;
    }

    .timeline-event-edit:hover {
      background: #115e59;
      color: #fff;
      text-decoration: none;
    }

    .timeline-event-title,
    .month-event-title {
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .month-event-wrap {
      padding: 0 2px;
    }

    .month-event-status {
      align-self: stretch;
      border-radius: 3px;
      flex: 0 0 4px;
      margin: 3px 7px 3px 0;
    }

    .month-event-main {
      display: flex;
      flex-direction: column;
      min-width: 0;
      overflow: hidden;
    }

    .month-event-time {
      color: #475569;
      font-size: 11px;
      font-weight: 700;
      line-height: 1;
      margin-bottom: 4px;
      white-space: nowrap;
    }

    .month-event-title {
      color: #0f172a;
      font-size: 12px;
      font-weight: 600;
      line-height: 1.15;
    }

    .month-event-info {
      align-items: center;
      background: #1e3a8a;
      border-radius: 999px;
      color: #fff;
      cursor: pointer;
      display: inline-flex;
      flex: 0 0 22px;
      font-size: 12px;
      font-weight: 700;
      height: 22px;
      justify-content: center;
      margin-left: 6px;
      text-decoration: none;
      text-transform: lowercase;
      width: 22px;
    }

    .month-event-info:hover {
      background: #172554;
      color: #fff;
      text-decoration: none;
    }

    .month_default_event {
      margin: 0 3px 4px !important;
      max-width: calc(100% - 6px) !important;
    }

    .calendar-loading-overlay {
      align-items: center;
      background: rgba(248, 250, 252, 0.82);
      bottom: 0;
      color: #334155;
      display: none;
      font-size: 14px;
      font-weight: 600;
      justify-content: center;
      left: 0;
      position: absolute;
      right: 0;
      top: 0;
      z-index: 10000;
    }

    .calendar-loading-overlay.is-visible {
      display: flex;
    }

    .calendar-loading-overlay:before {
      animation: timelineSpin 0.8s linear infinite;
      border: 3px solid #bfdbfe;
      border-radius: 999px;
      border-top-color: #2563eb;
      content: "";
      height: 24px;
      margin-right: 10px;
      width: 24px;
    }

    @keyframes timelineSpin {
      to { transform: rotate(360deg); }
    }

    .scheduler_default_shadow.timeline-shadow-lane-1,
    .scheduler_default_event_shadow.timeline-shadow-lane-1 { transform: translateY(34px) !important; }
    .scheduler_default_shadow.timeline-shadow-lane-2,
    .scheduler_default_event_shadow.timeline-shadow-lane-2 { transform: translateY(68px) !important; }
    .scheduler_default_shadow.timeline-shadow-lane-3,
    .scheduler_default_event_shadow.timeline-shadow-lane-3 { transform: translateY(102px) !important; }
    .scheduler_default_shadow.timeline-shadow-lane-4,
    .scheduler_default_event_shadow.timeline-shadow-lane-4 { transform: translateY(136px) !important; }
    .scheduler_default_shadow.timeline-shadow-lane-5,
    .scheduler_default_event_shadow.timeline-shadow-lane-5 { transform: translateY(170px) !important; }

    .scheduler_default_shadow_inner,
    .scheduler_default_event_shadow_inner {
      height: 34px !important;
      line-height: 32px !important;
      overflow: hidden !important;
      padding: 0 8px !important;
      text-overflow: ellipsis !important;
      white-space: nowrap !important;
    }

/* project-details */
.project-overview-card {
        background: #ffffff;
        border: 1px solid rgba(148, 163, 184, .28);
        border-radius: 10px;
        box-shadow: 0 22px 55px rgba(15, 23, 42, .10), 0 4px 14px rgba(15, 23, 42, .06);
        overflow: hidden;
        position: relative;
        transform: translateY(-1px);
    }

    .project-overview-card::before {
        background: linear-gradient(90deg, rgba(59, 130, 246, .5), rgba(239, 68, 68, .45), rgba(34, 197, 94, .5));
        content: "";
        height: 3px;
        left: 0;
        position: absolute;
        right: 0;
        top: 0;
        z-index: 2;
    }

    .project-overview-card .project-detail-main {
        background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%) !important;
        gap: 18px !important;
        padding: 28px 30px 24px !important;
    }

    .project-tabs-bar {
        background: linear-gradient(180deg, #f8fafc 0%, #eef3f8 100%) !important;
        border-bottom: 0;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88), 0 -8px 18px rgba(15, 23, 42, 0.06);
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 13px 24px 0 !important;
        position: relative;
        scrollbar-width: thin;
        z-index: 2;
    }

    .project-tabs-bar + .card-inner {
        border-top: 0;
    }

    .project-tabs-bar .nav-item {
        flex: 0 0 auto;
        margin: 0 0 0 -17px !important;
        position: relative;
    }

    .project-tabs-bar .nav-item:first-child {
        margin-left: 0 !important;
    }

    .project-tabs-bar .nav-item:nth-child(1) { z-index: 30; }
    .project-tabs-bar .nav-item:nth-child(2) { z-index: 29; }
    .project-tabs-bar .nav-item:nth-child(3) { z-index: 28; }
    .project-tabs-bar .nav-item:nth-child(4) { z-index: 27; }
    .project-tabs-bar .nav-item:nth-child(5) { z-index: 26; }
    .project-tabs-bar .nav-item:nth-child(6) { z-index: 25; }
    .project-tabs-bar .nav-item:nth-child(7) { z-index: 24; }

    .project-tabs-bar .nav-link {
        background: #f7f9fc !important;
        border: 1px solid #d5deea !important;
        border-bottom-color: #dbe4ee !important;
        border-radius: 8px 8px 0 0 !important;
        box-shadow: -5px 0 10px rgba(15, 23, 42, .045), 0 -3px 10px rgba(15, 23, 42, .035);
        color: #526484 !important;
        min-height: 42px;
        min-width: 126px;
        padding: 10px 18px 9px !important;
        position: relative;
        transition: background .15s ease, color .15s ease, box-shadow .15s ease, transform .15s ease;
        z-index: 1;
    }

    .project-tabs-bar .nav-link::before,
    .project-tabs-bar .nav-link::after {
        display: none !important;
    }

    .project-tabs-bar .nav-link:hover,
    .project-tabs-bar .nav-link:focus {
        background: #ffffff !important;
        color: #243b53 !important;
        text-decoration: none;
        transform: translateY(-1px);
    }

    .project-tabs-bar .nav-link.active {
        background: #ffffff !important;
        border-color: #cbd5e1 #cbd5e1 #ffffff !important;
        border-top: 3px solid #00a86b !important;
        box-shadow: 0 -8px 18px rgba(15, 23, 42, .08);
        color: #063b2c !important;
        font-weight: 800;
        margin-bottom: -1px;
        transform: none;
    }

    .project-tabs-bar .nav-link.active::after {
        background: #ffffff;
        bottom: 0;
        content: "";
        display: block !important;
        height: 3px;
        left: 0;
        position: absolute;
        right: 0;
        z-index: 2;
    }

    .project-tabs-bar .nav-item:nth-child(4) .nav-link {
        min-width: 164px;
    }

    .project-title-selected {
        background: rgba(239, 35, 60, 0.16);
        color: #ffffff !important;
        display: inline-block;
        line-height: 1.35;
        padding: 2px 8px;
        position: relative;
        z-index: 1;
    }

    .project-title-selected:before {
        background: rgba(239, 35, 60, 0.72);
        content: "";
        inset: 0;
        position: absolute;
        transform: skewX(-12deg);
        z-index: -1;
    }

    .project-notes-compact {
        margin-top: 10px;
    }

    .project-notes-compact .nk-block-head {
        margin-bottom: 8px;
        padding-bottom: 0;
    }

    .project-notes-compact .bq-note {
        margin: 0;
        padding: 0;
    }

    .project-notes-compact .bq-note-item {
        margin-bottom: 8px;
        padding: 8px 10px;
    }

    .project-notes-compact .bq-note-text p {
        margin-bottom: 4px;
    }

    .project-notes-compact .empty {
        padding: 10px 0;
    }

    .project-empty-row > td {
        background: #ffffff;
        padding: 14px !important;
    }

    .project-empty-state {
        align-items: center;
        background: linear-gradient(180deg, #fbfdff 0%, #f7faff 100%);
        border: 1px dashed #d8e3f3;
        border-radius: 8px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        margin: 2px;
        min-height: 180px;
        padding: 30px 16px;
        text-align: center;
    }

    .project-empty-state-icon {
        align-items: center;
        background: #eef5ff;
        border: 1px solid #cddff8;
        border-radius: 50%;
        box-shadow: 0 10px 24px rgba(51, 102, 204, 0.12);
        color: #2563eb;
        cursor: pointer;
        display: inline-flex;
        font-size: 26px;
        height: 58px;
        justify-content: center;
        margin-bottom: 10px;
        transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
        width: 58px;
    }

    .project-empty-state-icon:hover,
    .project-empty-state-icon:focus {
        background: #2563eb;
        border-color: #2563eb;
        color: #ffffff;
        outline: none;
        transform: translateY(-1px);
    }

    .project-empty-state-title {
        color: #253858;
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 12px;
    }

    .project-empty-state .btn {
        align-items: center;
        display: inline-flex;
        gap: 6px;
        justify-content: center;
    }

    .project-list-link {
        align-items: center;
        color: inherit;
        display: inline-flex;
        gap: 10px;
        min-width: 0;
        text-decoration: none;
    }

    .project-list-link:hover {
        color: inherit;
        text-decoration: none;
    }

    .project-list-icon {
        align-items: center;
        border-radius: 8px;
        display: inline-flex;
        flex: 0 0 34px;
        font-size: 17px;
        height: 34px;
        justify-content: center;
        width: 34px;
    }

    .project-list-icon-document {
        background: #eef5ff;
        color: #2563eb;
    }

    .project-list-icon-payment {
        background: #e8fbf2;
        color: #0ca678;
    }

    .project-list-copy {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .project-list-copy .tb-lead {
        color: #172b4d;
        font-weight: 700;
        line-height: 1.25;
    }

    .project-list-meta {
        color: #8094ae;
        font-size: 12px;
        line-height: 1.25;
        word-break: break-word;
    }

    .inventory-expense-lines,
    .external-expense-lines {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .inventory-expense-line,
    .external-expense-line {
        background: #fbfdff;
        border: 1px solid #e5edf7;
        border-radius: 8px;
        padding: 12px;
    }

    .inventory-expense-remove-wrap {
        display: flex;
        justify-content: flex-end;
        padding-bottom: 6px;
    }

    .inventory-expense-actions {
        align-items: center;
        display: flex;
        gap: 12px;
        justify-content: space-between;
        margin-top: 12px;
    }

    .inventory-expense-total {
        align-items: center;
        background: #f5f8fc;
        border: 1px solid #e5edf7;
        border-radius: 8px;
        color: #526484;
        display: inline-flex;
        gap: 8px;
        padding: 7px 10px;
    }

    .inventory-expense-total strong {
        color: #172b4d;
        font-weight: 800;
    }

    @media (max-width: 767.98px) {
        .inventory-expense-actions {
            align-items: stretch;
            flex-direction: column;
        }

        .inventory-expense-remove-wrap {
            justify-content: flex-start;
            padding-bottom: 0;
        }
    }

    .jobcard-cause-list {
        margin: 0;
        padding-left: 22px;
    }

    .jobcard-cause-item {
        color: #2f3b4a;
        font-size: 14px;
        font-weight: 500;
        line-height: 1.68;
        margin-bottom: 7px;
        padding-left: 4px;
        word-break: break-word;
    }

    .jobcard-cause-item::marker {
        color: #ef233c;
        font-weight: 700;
    }

    .project-overview-grid {
        display: grid;
        gap: 24px;
        grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
        padding: 24px;
    }

    .project-section-title {
        color: #172b4d;
        font-size: 13px;
        font-weight: 700;
        margin-bottom: 2px;
    }

    .project-section-subtitle {
        color: #8094ae;
        font-size: 11px;
        margin-bottom: 10px;
    }

    .project-info-grid {
        display: grid;
        gap: 12px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-info-item,
    .project-metric-card {
        background: #ffffff;
        border: 1px solid #edf2f7;
        border-radius: 4px;
        padding: 7px 9px;
    }

    .project-info-label,
    .project-metric-label {
        color: #8094ae;
        display: block;
        font-size: 10px;
        font-weight: 700;
        letter-spacing: .02em;
        margin-bottom: 2px;
        text-transform: uppercase;
    }

    .project-info-value {
        color: #243b53;
        display: block;
        font-size: 13px;
        font-weight: 700;
        line-height: 1.25;
        word-break: break-word;
    }

    .project-side-panel {
        background: #ffffff;
        border-left: 1px solid #e6ecf5;
        padding-left: 18px;
        width: auto;
    }

    .project-metric-grid {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-metric-card {
        background: #ffffff;
    }

    .project-metric-card.is-wide {
        grid-column: 1 / -1;
    }

    .project-metric-value {
        color: #172b4d;
        display: block;
        font-size: 15px;
        font-weight: 800;
        line-height: 1.25;
    }

    .project-metric-value.text-profit-positive {
        color: #0fac81;
    }

    .project-metric-value.text-profit-negative {
        color: #e85347;
    }

    .project-progress {
        background: #e6ecf5;
        border-radius: 999px;
        height: 4px;
        margin-top: 6px;
        overflow: hidden;
    }

    .project-progress span {
        display: block;
        height: 100%;
    }

    .project-progress-cost span {
        background: #f97316;
    }

    .project-progress-invoiced span,
    .project-progress-tasks span {
        background: #0fac81;
    }

    .project-status-row {
        align-items: center;
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .project-action-panel {
        align-items: center;
        background: #f8fafc;
        border: 1px solid #edf2f7;
        border-radius: 4px;
        display: grid;
        gap: 10px;
        grid-template-columns: 1fr;
        margin-top: 10px;
        padding: 8px;
    }

    .project-action-logo {
        display: none;
    }

    .project-title-media {
        align-items: center;
        background: #ffffff;
        display: flex;
        gap: 12px;
        min-width: 0;
    }

    .project-title-logo {
        align-items: center;
        display: flex;
        height: 58px;
        justify-content: center;
        padding: 0;
        width: 92px;
    }

    .project-title-logo img,
    .project-action-logo img {
        display: block;
        height: auto;
        max-height: 52px;
        max-width: 86px;
        opacity: .95;
    }

    .project-title-media .project-title-logo {
        flex: 0 0 85px;
        height: 85px;
        width: 85px;
    }

    .project-title-media .project-title-logo img {
        display: block;
        height: 85px;
        max-height: 85px;
        max-width: 85px;
        object-fit: contain;
        opacity: .95;
        width: 85px;
    }

    .vehicle-logo-frame {
        align-items: center;
        display: flex;
        flex: 0 0 45px;
        height: 45px;
        justify-content: center;
        margin-right: 10px;
        width: 45px;
    }

    .vehicle-make-logo {
        display: block;
        height: 45px;
        max-height: 45px;
        max-width: 45px;
        object-fit: contain;
        width: 45px;
    }

    .project-status-select {
        -webkit-appearance: none;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364758b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-position: right 12px center;
        background-repeat: no-repeat;
        background-size: 10px 6px;
        border: 0;
        border-radius: 999px;
        cursor: pointer;
        font-size: 12px;
        font-weight: 700;
        line-height: 1.1;
        min-width: 132px;
        padding: 9px 30px 9px 26px;
        transition: box-shadow .15s ease, opacity .15s ease;
    }

    .project-status-select:focus {
        box-shadow: 0 0 0 3px rgba(59, 130, 246, .18);
        outline: 0;
    }

    .project-status-select:disabled {
        cursor: progress;
        opacity: .68;
    }

    .project-status-booked-in {
        background-color: #ffe8e8;
        background-image:
            radial-gradient(circle at 13px center, #e11d48 0 4px, transparent 4.5px),
            url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b91c1c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-position: left top, right 12px center;
        background-size: auto, 10px 6px;
        color: #b91c1c;
    }

    .project-status-in-progress {
        background-color: #fff3cd;
        background-image:
            radial-gradient(circle at 13px center, #f6b100 0 4px, transparent 4.5px),
            url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23b7791f' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-position: left top, right 12px center;
        background-size: auto, 10px 6px;
        color: #b7791f;
    }

    .project-status-completed {
        background-color: #dcfce7;
        background-image:
            radial-gradient(circle at 13px center, #10b981 0 4px, transparent 4.5px),
            url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23047857' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-position: left top, right 12px center;
        background-size: auto, 10px 6px;
        color: #047857;
    }

    .project-status-cancelled {
        background-color: #e5e7eb;
        background-image:
            radial-gradient(circle at 13px center, #6b7280 0 4px, transparent 4.5px),
            url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%234b5563' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
        background-position: left top, right 12px center;
        background-size: auto, 10px 6px;
        color: #4b5563;
    }

    .payment-status-badge {
        align-items: center;
        border: 0;
        border-radius: 999px;
        display: inline-flex;
        font-size: 12px;
        font-weight: 700;
        gap: 8px;
        line-height: 1.1;
        min-width: 105px;
        padding: 9px 14px;
        white-space: nowrap;
    }

    .payment-status-action {
        cursor: pointer;
        font-family: inherit;
    }

    .payment-status-action:hover {
        filter: brightness(.97);
        text-decoration: none;
    }

    .payment-status-badge::before {
        border-radius: 999px;
        content: "";
        display: inline-block;
        flex: 0 0 8px;
        height: 8px;
        width: 8px;
    }

    .payment-status-paid {
        background: #dcfce7;
        color: #047857;
    }

    .payment-status-paid::before {
        background: #10b981;
    }

    .payment-status-partly-paid {
        background: #fef3c7;
        color: #b7791f;
    }

    .payment-status-partly-paid::before {
        background: #f6b100;
    }

    .payment-status-not-paid {
        background: #e5e7eb;
        color: #4b5563;
    }

    .payment-status-not-paid::before {
        background: #6b7280;
    }

    .project-action-buttons {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-action-btn {
        align-items: center;
        background: #ffffff;
        border: 1px solid #cbd5e1;
        border-radius: 4px;
        color: #334155;
        display: inline-flex;
        font-size: 11px;
        font-weight: 700;
        gap: 6px;
        justify-content: center;
        min-height: 30px;
        padding: 5px 8px;
        text-align: center;
    }

    .project-action-btn:hover {
        background: #f8fafc;
        color: #1d4ed8;
        text-decoration: none;
    }

    .project-carfax-btn {
        background-image: url('/assets/carfax-button.png');
        background-position: center;
        background-repeat: no-repeat;
        background-size: contain;
        border-color: #1a73e8;
        min-height: 30px;
    }

    .project-vehicle-history-btn {
        position: relative;
    }

    .project-vehicle-history-btn.is-ready {
        border-color: #16a34a;
        box-shadow: inset 3px 0 0 #16a34a;
    }

    .project-vehicle-history-btn.is-available {
        border-color: #22c55e;
        box-shadow: inset 3px 0 0 #22c55e;
    }

    .project-action-status {
        background: #16a34a;
        border: 2px solid #ffffff;
        border-radius: 999px;
        height: 10px;
        position: absolute;
        right: 6px;
        top: 6px;
        width: 10px;
    }

    .vehicle-history-modal {
        padding-top: 18px;
    }

    .vehicle-history-summary {
        align-items: center;
        display: flex;
        gap: 12px;
        margin-bottom: 16px;
    }

    .vehicle-history-summary h5 {
        color: #162b45;
        font-size: 15px;
        font-weight: 800;
        margin-bottom: 2px;
    }

    .vehicle-history-summary p {
        color: #64748b;
        font-size: 12px;
        margin-bottom: 0;
    }

    .vehicle-history-summary-icon {
        align-items: center;
        background: linear-gradient(135deg, #dcfce7, #ecfdf5);
        border: 1px solid #bbf7d0;
        border-radius: 10px;
        color: #16a34a;
        display: flex;
        flex: 0 0 56px;
        height: 56px;
        justify-content: center;
    }

    .vehicle-history-summary-icon svg {
        height: 38px;
        width: 38px;
    }

    .vehicle-history-found-box {
        align-items: center;
        background: linear-gradient(135deg, #f0fdf4, #f8fafc);
        border: 1px solid #bbf7d0;
        border-radius: 8px;
        color: #166534;
        display: flex;
        gap: 10px;
        margin-bottom: 14px;
        padding: 12px 14px;
    }

    .vehicle-history-found-box strong {
        align-items: center;
        background: #16a34a;
        border-radius: 999px;
        color: #ffffff;
        display: inline-flex;
        font-size: 16px;
        font-weight: 800;
        height: 34px;
        justify-content: center;
        min-width: 34px;
        padding: 0 10px;
    }

    .vehicle-history-found-box span {
        font-size: 13px;
        font-weight: 700;
    }

    .vehicle-history-charge-box {
        align-items: center;
        background: #f8fafc;
        border: 1px solid #e2e8f0;
        border-radius: 6px;
        color: #475569;
        display: flex;
        gap: 14px;
        justify-content: space-between;
        margin-bottom: 14px;
        padding: 12px 14px;
    }

    .vehicle-history-charge-box strong {
        color: #0f172a;
        font-size: 16px;
        white-space: nowrap;
    }

    .emanuals-card {
        display: flex;
        flex-direction: column;
        height: calc(100vh - 172px);
        min-height: 720px;
        overflow: hidden;
    }

    .emanuals-block {
        margin-bottom: 0;
    }

    .emanuals-toolbar {
        align-items: center;
        background: #ffffff;
        border-bottom: 1px solid #e5eaf2;
        display: flex;
        justify-content: space-between;
        gap: 14px;
        flex: 0 0 auto;
        padding: 10px 14px;
    }

    .emanuals-toolbar h5 {
        color: #162b45;
        font-size: 16px;
        font-weight: 800;
        margin: 0;
    }

    .emanuals-kicker {
        color: #8094ae;
        display: block;
        font-size: 11px;
        font-weight: 700;
        letter-spacing: .04em;
        margin-bottom: 2px;
        text-transform: uppercase;
    }

    .emanuals-secure-note {
        align-items: center;
        color: #64748b;
        display: inline-flex;
        font-size: 12px;
        gap: 6px;
        text-align: right;
    }

    .emanuals-frame {
        background: #ffffff;
        border: 0;
        flex: 1 1 auto;
        display: block;
        height: 100%;
        min-height: 0;
        width: 100%;
    }

    @media (max-width: 767.98px) {
        .emanuals-card {
            height: calc(100vh - 150px);
            min-height: 620px;
        }

        .emanuals-toolbar {
            align-items: flex-start;
            flex-direction: column;
        }

        .emanuals-frame {
            height: 100%;
            min-height: 0;
        }
    }

    @media (max-width: 1199.98px) {
        .project-detail-main {
            flex-direction: column;
        }

        .project-detail-main > div {
            width: 100%;
        }

        .project-detail-main .project-side-panel {
            flex-basis: auto !important;
        }

        .project-overview-grid {
            grid-template-columns: 1fr;
        }

        .project-side-panel {
            border-left: 0;
            border-top: 1px solid #e6ecf5;
            padding-left: 0;
            padding-top: 20px;
        }
    }

    .project-detail-main {
        align-items: flex-start !important;
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-detail-main > div:first-child {
        padding-right: 0 !important;
        width: 100%;
    }

    .project-detail-main .project-side-panel {
        flex-basis: auto !important;
    }

    .project-utilities-panel,
    .project-side-panel {
        border-left: 1px solid #e6ecf5;
        padding-left: 18px;
    }

    .project-info-panel .row.g-2,
    .project-side-panel .project-metric-grid,
    .project-utilities-panel .project-action-panel {
        border-radius: 8px;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75);
    }

    .project-info-panel .row.g-2 {
        background: #f3f8ff;
        border: 1px solid #dbeafe;
        padding: 12px 14px;
    }

    .project-side-panel .project-metric-grid {
        background: #fff4f4;
        border: 1px solid #fee2e2;
        padding: 10px;
    }

    .project-utilities-panel .project-action-panel {
        background: #f1fff6;
        border-color: #bbf7d0;
        padding: 10px;
    }

    .project-title-icon {
        color: #0f766e;
        font-size: 24px;
    }

    .project-detail-main .row.g-2 > .col-md-6 {
        align-items: baseline;
        border-bottom: 0;
        display: flex;
        flex: 0 0 100%;
        gap: 14px;
        justify-content: space-between;
        margin-bottom: 0 !important;
        max-width: 100%;
        padding-bottom: 6px;
        padding-top: 6px;
    }

    .project-detail-main .row.g-2 > .col-md-6 > span:first-child {
        color: #8094ae !important;
        display: inline-block;
        flex: 0 0 150px;
        font-size: 10px !important;
        font-weight: 700;
        letter-spacing: .02em;
        margin-bottom: 0;
        text-transform: uppercase;
    }

    .project-detail-main .row.g-2 > .col-md-6 > span:last-child {
        background: #ffffff;
        border: 0;
        border-radius: 0;
        color: #243b53;
        display: inline-block;
        min-height: 0;
        padding: 0;
        text-align: right;
    }

    .project-dashboard-heading {
        align-items: center;
        display: flex;
        justify-content: space-between;
        gap: 16px;
        border-bottom: 1px solid #edf2f7;
        margin-bottom: 10px;
        padding-bottom: 10px;
    }

    .project-dashboard-chip {
        background: #eef6ff;
        border: 1px solid #bfdbfe;
        border-radius: 4px;
        color: #1d4ed8;
        font-size: 11px;
        font-weight: 700;
        padding: 4px 8px;
        white-space: nowrap;
    }

    @media (min-width: 1200px) {
        .project-metric-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .project-metric-card.is-wide {
            grid-column: 1 / -1;
        }

        .project-action-panel {
            grid-template-columns: 1fr;
        }

        .project-action-buttons {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 991.98px) {
        .project-detail-main {
            display: block !important;
        }

        .project-detail-main > div {
            width: 100%;
        }

        .project-detail-main .project-side-panel,
        .project-detail-main .project-utilities-panel {
            border-left: 0;
            border-top: 1px solid #e6ecf5;
            flex-basis: auto !important;
            padding-left: 0;
            padding-top: 14px;
            margin-top: 14px;
        }

        .project-detail-main .row.g-2 > .col-md-6 {
            flex: 0 0 100%;
            max-width: 100%;
        }
    }

    @media (max-width: 767.98px) {
        .project-detail-main .row.g-2 > .col-md-6 {
            flex: 0 0 100%;
            max-width: 100%;
        }

        .project-detail-main .row.g-2 > .col-md-6 {
            align-items: flex-start;
            flex-direction: column;
            gap: 2px;
        }

        .project-detail-main .row.g-2 > .col-md-6 > span:first-child {
            flex-basis: auto;
        }

        .project-detail-main .row.g-2 > .col-md-6 > span:last-child {
            text-align: left;
        }

        .project-dashboard-heading {
            align-items: flex-start;
            flex-direction: column;
        }

        .project-info-grid,
        .project-metric-grid,
        .project-action-panel,
        .project-action-buttons {
            grid-template-columns: 1fr;
        }

        .project-overview-card .project-detail-main {
            padding: 20px 16px !important;
        }
    }

    @media (max-width: 1199.98px) {
        .project-detail-main {
            display: block !important;
        }

        .project-detail-main .project-side-panel,
        .project-detail-main .project-utilities-panel {
            border-left: 0;
            border-top: 1px solid #e6ecf5;
            margin-top: 14px;
            padding-left: 0;
            padding-top: 14px;
        }
    }

/* public-jobcard */
.public-jobcard-page{
    --ink:#10243f;
    --muted:#637083;
    --line:#dbe4ee;
    --panel:#ffffff;
    --soft:#f5f8fc;
    --soft-blue:#edf6ff;
    --blue:#0f62fe;
    --blue-dark:#083a8c;
    --green:#0f8f60;
    --amber:#9a5b00;
    --red:#ef233c;
}

.public-jobcard-page *{
    box-sizing:border-box;
}

body.public-jobcard-page{
    margin:0;
    color:var(--ink);
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Noto Sans","Helvetica Neue",Arial,sans-serif;
    -webkit-font-smoothing:antialiased;
    text-rendering:optimizeLegibility;
    background:
        linear-gradient(180deg,rgba(12,31,55,.88) 0,rgba(12,31,55,.88) 178px,rgba(245,248,252,.94) 178px,rgba(245,248,252,.96) 100%),
        url('/uploads/app/background.webp') center/cover fixed no-repeat;
    padding:16px;
}

.public-jobcard-page button,
.public-jobcard-page textarea,
.public-jobcard-page input{
    font-family:inherit;
}

.public-jobcard-page .wrapper{
    max-width:1060px;
    margin:0 auto;
}

.public-jobcard-page .card{
    background:var(--panel);
    border:1px solid rgba(219,228,238,.9);
    border-radius:8px;
    box-shadow:0 20px 60px rgba(9,30,66,.18);
    overflow:hidden;
}

.public-jobcard-page .report-header{
    padding:22px;
    background:
        linear-gradient(135deg,rgba(15,98,254,.09),rgba(239,35,60,.06)),
        #ffffff;
    border-bottom:1px solid var(--line);
}

.public-jobcard-page .report-topline{
    display:flex;
    justify-content:space-between;
    align-items:flex-start;
    gap:18px;
    margin-bottom:22px;
}

.public-jobcard-page .logo-wrap{
    display:flex;
    align-items:center;
    min-height:54px;
}

.public-jobcard-page .logo-wrap img{
    max-height:58px;
    max-width:190px;
    object-fit:contain;
}

.public-jobcard-page .badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:8px 13px;
    border-radius:999px;
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.55px;
    white-space:nowrap;
}

.public-jobcard-page .badge:before{
    content:"";
    width:7px;
    height:7px;
    border-radius:50%;
    background:currentColor;
}

.public-jobcard-page .approved{
    background:#e7f8ef;
    color:#08754b;
}

.public-jobcard-page .assessment{
    background:#fff3d7;
    color:#8a4d00;
}

.public-jobcard-page .report-kicker{
    color:var(--red);
    font-size:12px;
    font-weight:700;
    letter-spacing:0;
    margin:0 0 8px;
    text-transform:uppercase;
}

.public-jobcard-page h1{
    color:var(--ink);
    font-size:34px;
    line-height:1.12;
    margin:0;
}

.public-jobcard-page .jobcard-subtitle{
    color:var(--muted);
    font-size:15px;
    line-height:1.6;
    margin:12px 0 0;
    max-width:680px;
}

.public-jobcard-page .report-body{
    padding:24px;
}

.public-jobcard-page .section{
    margin-top:24px;
}

.public-jobcard-page .section:first-child{
    margin-top:0;
}

.public-jobcard-page .section-title{
    display:flex;
    align-items:center;
    gap:10px;
    color:#173659;
    font-size:13px;
    font-weight:700;
    letter-spacing:0;
    margin:0 0 12px;
    text-transform:uppercase;
}

.public-jobcard-page .section-title:before{
    content:"";
    width:6px;
    height:18px;
    border-radius:999px;
    background:linear-gradient(180deg,var(--red),var(--blue));
}

.public-jobcard-page .vehicle-summary{
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:1px;
    margin:0;
    background:var(--line);
    border:1px solid var(--line);
    border-radius:8px;
    overflow:hidden;
}

.public-jobcard-page .vehicle-summary-item{
    min-width:0;
    background:#fbfdff;
    padding:15px;
}

.public-jobcard-page .vehicle-summary-label{
    color:#7a8796;
    display:block;
    font-size:11px;
    font-weight:800;
    letter-spacing:.5px;
    margin-bottom:6px;
    text-transform:uppercase;
}

.public-jobcard-page .vehicle-summary-value{
    color:#10243f;
    display:block;
    font-size:15px;
    font-weight:800;
    line-height:1.35;
    overflow-wrap:anywhere;
}

.public-jobcard-page .causes-list{
    display:grid;
    gap:12px;
}

.public-jobcard-page .cause-card{
    background:#fff;
    border:1px solid var(--line);
    border-radius:8px;
    padding:16px;
    box-shadow:0 8px 24px rgba(16,36,63,.05);
}

.public-jobcard-page .cause-title{
    display:flex;
    align-items:flex-start;
    gap:12px;
    color:#26364a;
    font-size:15px;
    font-weight:400;
    line-height:1.72;
    word-break:break-word;
}

.public-jobcard-page .public-cause-textarea{
    color:#26364a;
    font-weight:400;
}

.public-jobcard-page .cause-number{
    flex:0 0 30px;
    height:30px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    background:var(--red);
    color:#fff;
    border-radius:7px;
    font-size:12px;
    font-weight:800;
}

.public-jobcard-page .images{
    display:flex;
    flex-wrap:wrap;
    gap:10px;
    margin-top:15px;
    padding-left:42px;
}

.public-jobcard-page .images img{
    width:104px;
    height:104px;
    object-fit:cover;
    border:1px solid #d7e0eb;
    border-radius:8px;
    cursor:pointer;
    transition:transform .18s ease,box-shadow .18s ease;
}

.public-jobcard-page .images img:hover{
    transform:translateY(-2px);
    box-shadow:0 12px 28px rgba(16,36,63,.18);
}

.public-jobcard-page .action-panel{
    display:flex;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:12px;
    margin-top:24px;
    padding:18px;
    background:linear-gradient(135deg,#f8fbff,#fff);
    border:1px solid var(--line);
    border-radius:8px;
}

.public-jobcard-page .approve-wrap{
    margin:0;
}

.public-jobcard-page .approve-btn{
    min-width:190px;
    background:var(--blue);
    color:#fff;
    border:1px solid var(--blue);
    padding:13px 20px;
    border-radius:8px;
    font-weight:800;
    font-size:14px;
    cursor:pointer;
    transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.public-jobcard-page .approve-btn:hover{
    background:#0649c8;
    border-color:#0649c8;
    transform:translateY(-1px);
}

.public-jobcard-page .approve-btn.secondary{
    background:#fff;
    color:var(--blue-dark);
    border-color:#b8c9df;
}

.public-jobcard-page .approve-btn.secondary:hover{
    background:var(--soft-blue);
    border-color:#8db4e8;
}

.public-jobcard-page .public-signature-panel{
    margin-top:20px;
    padding:16px;
    background:linear-gradient(135deg,#f8fbff,#ffffff);
    border:1px solid var(--line);
    border-radius:8px;
}

.public-jobcard-page .public-signature-title{
    display:flex;
    flex-direction:column;
    gap:4px;
    margin-bottom:12px;
}

.public-jobcard-page .public-signature-title span{
    color:#173659;
    font-size:15px;
    font-weight:800;
}

.public-jobcard-page .public-signature-title small{
    color:#66758a;
    font-size:12px;
    line-height:1.45;
}

.public-jobcard-page .public-signature-label{
    display:block;
    color:#6b7b91;
    font-size:11px;
    font-weight:800;
    letter-spacing:.4px;
    margin-bottom:6px;
    text-transform:uppercase;
}

.public-jobcard-page .public-signature-name{
    width:100%;
    min-height:42px;
    padding:10px 12px;
    border:1px solid #d7e0eb;
    border-radius:8px;
    color:#10243f;
    font-size:14px;
    margin-bottom:12px;
}

.public-jobcard-page .public-signature-canvas-wrap{
    background:#fff;
    border:1px dashed #9fb1c8;
    border-radius:8px;
    overflow:hidden;
    touch-action:none;
}

.public-jobcard-page #publicSignaturePad{
    display:block;
    width:100%;
    height:180px;
    cursor:crosshair;
}

.public-jobcard-page .public-signature-actions{
    display:flex;
    justify-content:flex-end;
    margin-top:10px;
}

.public-jobcard-page .public-signature-clear{
    background:#fff;
    border:1px solid #cbd5e1;
    border-radius:8px;
    color:#334155;
    cursor:pointer;
    font-size:13px;
    font-weight:700;
    padding:8px 12px;
}

.public-jobcard-page .explanation-box{
    display:none;
    margin-top:18px;
    padding:18px;
    background:#f8fafc;
    border:1px solid var(--line);
    border-left:4px solid var(--blue-dark);
    border-radius:8px;
    color:#334155;
    font-size:15px;
    line-height:1.8;
}

.public-jobcard-page .jobcard-note{
    margin-top:14px;
    padding:12px 14px;
    background:#fff8e8;
    border:1px solid #f3d49a;
    border-radius:8px;
    color:#73510c;
    font-size:13px;
    line-height:1.65;
}

.public-jobcard-page .meta{
    margin-top:22px;
    padding-top:16px;
    border-top:1px solid var(--line);
    color:#7a8796;
    text-align:center;
    font-size:13px;
}

.public-jobcard-page .popup,
.public-jobcard-page .approve-modal,
.public-jobcard-page .toast-popup{
    display:none;
    position:fixed;
    inset:0;
    justify-content:center;
    align-items:center;
    z-index:99999;
    padding:16px;
}

.public-jobcard-page .popup,
.public-jobcard-page .approve-modal{
    background:rgba(5,17,34,.78);
    backdrop-filter:blur(4px);
}

.public-jobcard-page .popup img{
    max-width:94%;
    max-height:90%;
    border-radius:8px;
    box-shadow:0 24px 70px rgba(0,0,0,.35);
}

.public-jobcard-page .approve-modal-inner{
    width:95%;
    max-width:720px;
    background:#fff;
    padding:22px;
    border-radius:8px;
    position:relative;
    max-height:90vh;
    overflow-y:auto;
    box-shadow:0 24px 70px rgba(0,0,0,.28);
}

.public-jobcard-page .close-approve{
    position:absolute;
    top:12px;
    right:14px;
    width:34px;
    height:34px;
    display:flex;
    align-items:center;
    justify-content:center;
    border-radius:50%;
    background:#f1f5f9;
    color:#334155;
    cursor:pointer;
    font-size:20px;
    font-weight:800;
}

.public-jobcard-page .toast-popup{
    background:rgba(5,17,34,.35);
}

.public-jobcard-page .toast-box{
    background:#fff;
    padding:22px;
    width:90%;
    max-width:350px;
    text-align:center;
    border-radius:8px;
    box-shadow:0 18px 50px rgba(16,36,63,.22);
}

@keyframes spin{
    from{transform:rotate(0deg);}
    to{transform:rotate(360deg);}
}

@media(max-width:900px){
    .public-jobcard-page .vehicle-summary{
        grid-template-columns:repeat(2,minmax(0,1fr));
    }
}

@media(max-width:620px){
    body.public-jobcard-page{
        padding:10px;
        background:
            linear-gradient(180deg,rgba(12,31,55,.9) 0,rgba(12,31,55,.9) 130px,rgba(245,248,252,.97) 130px,rgba(245,248,252,.98) 100%),
            url('/uploads/app/background.webp') center/cover fixed no-repeat;
    }

    .public-jobcard-page .report-header{
        padding:18px;
    }

    .public-jobcard-page .report-topline{
        align-items:flex-start;
        margin-bottom:18px;
    }

    .public-jobcard-page .logo-wrap img{
        max-height:46px;
        max-width:150px;
    }

    .public-jobcard-page h1{
        font-size:26px;
    }

    .public-jobcard-page .jobcard-subtitle{
        font-size:14px;
    }

    .public-jobcard-page .report-body{
        padding:16px;
    }

    .public-jobcard-page .vehicle-summary{
        grid-template-columns:1fr;
    }

    .public-jobcard-page .cause-card{
        padding:14px;
    }

    .public-jobcard-page .cause-title{
        gap:10px;
        font-size:14px;
    }

    .public-jobcard-page .cause-number{
        flex-basis:28px;
        height:28px;
    }

    .public-jobcard-page .images{
        padding-left:0;
    }

    .public-jobcard-page .images img{
        width:82px;
        height:82px;
    }

    .public-jobcard-page .action-panel{
        display:block;
        padding:14px;
    }

    .public-jobcard-page .approve-wrap + .public-jobcard-page .approve-wrap{
        margin-top:10px;
    }

    .public-jobcard-page .approve-btn{
        width:100%;
        min-width:0;
    }

    .public-jobcard-page .approve-modal-inner{
        padding:18px;
    }
}


/* Get started conversion page */
.conversion-page-bg {
    background: #f5f7fb;
}

.pg-auth .nk-content,
.pg-auth .nk-split-page {
    min-height: 100vh;
}

.conversion-shell {
    background:
        radial-gradient(circle at top left, rgba(0, 168, 132, .06), transparent 26%),
        radial-gradient(circle at top right, rgba(248, 37, 56, .08), transparent 30%),
        #f5f7fb;
}

.conversion-form-panel {
    min-height: 100vh;
    justify-content: center;
}

.pg-auth .nk-auth-body {
    max-width: 500px;
    padding-top: 18px;
    padding-bottom: 12px;
}

.pg-auth .brand-logo {
    padding-bottom: 18px !important;
}

.pg-auth .logo-img-lg {
    max-height: 42px;
}

.conversion-head {
    margin-bottom: 12px;
}

.conversion-head .nk-block-title {
    color: #1f3658;
    font-size: 26px;
    line-height: 1.16;
    letter-spacing: 0;
}

.conversion-head .nk-block-des p {
    color: #5b6b83;
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 0;
}

.conversion-inline-proof {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.conversion-inline-proof-item {
    min-width: 0;
    padding: 11px 10px;
    border: 1px solid #e5edf7;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 18px rgba(31, 54, 88, .04);
}

.conversion-inline-proof-item strong {
    color: #203556;
    font-size: 13px;
    font-weight: 800;
}

.conversion-submit {
    background: #f82538 !important;
    border-color: #f82538 !important;
    box-shadow: 0 12px 24px rgba(248, 37, 56, .22);
}

.conversion-form-card {
    padding: 14px 14px 10px;
    border: 1px solid #e3eaf4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(31, 54, 88, .07);
}

.conversion-side {
    position: relative;
    min-height: 100vh;
}

.conversion-side-overlay {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100%;
    padding: 48px;
    background: linear-gradient(135deg, rgba(17, 31, 55, .82), rgba(248, 37, 56, .42));
}

.conversion-side-card {
    max-width: 500px;
    color: #fff;
}

.conversion-side-card h1 {
    margin-bottom: 12px;
    color: #fff;
    font-size: 32px;
    line-height: 1.18;
    font-weight: 800;
}

.conversion-side-card p {
    color: rgba(255, 255, 255, .88);
    font-size: 14px;
    line-height: 1.6;
}

.conversion-side-points {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.conversion-side-points span {
    display: inline-flex;
    align-items: center;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: rgba(255, 255, 255, .9);
    font-size: 12px;
    font-weight: 700;
}

.pg-auth .form-group {
    margin-bottom: 10px;
}

.pg-auth .form-label {
    margin-bottom: 4px;
    color: #34445f;
    font-size: 12px;
    font-weight: 700;
}

.pg-auth .form-control-lg {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 14px;
}

.pg-auth .custom-control-label {
    font-size: 12px;
}

.pg-auth .cf-turnstile {
    transform: scale(.9);
    transform-origin: left top;
    min-height: 58px;
}

.pg-auth .nk-auth-footer {
    padding-top: 0;
    padding-bottom: 10px;
}

.pg-auth .nk-auth-footer p {
    margin-bottom: 0;
    color: #8090a8;
    font-size: 12px;
}

.ag-language-switcher {
    padding: 0;
}

.ag-language-switcher-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    column-gap: 8px;
    padding: .575rem 0;
}

.ag-language-switcher-row > .icon {
    width: 24px;
    margin-top: 0;
    color: #8094ae;
    font-size: 18px;
    text-align: center;
}

.ag-language-switcher-content {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-start;
    gap: 0;
}

.ag-language-switcher-title,
.ag-language-switcher-label {
    color: #526484;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.ag-language-switcher-label .icon {
    color: #8094ae;
    font-size: 18px;
}

.ag-language-switcher-select {
    flex: 0 0 144px;
    width: 144px;
    max-width: 144px;
    min-height: 34px;
    border-color: #e5e9f2;
    color: #364a63;
    font-size: 13px;
}

.settings-company-form {
    max-width: 1120px;
    width: 100%;
}

.settings-section-card {
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #e5e9f2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(31, 43, 58, .04);
}

.settings-section-head {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid #edf1f7;
}

.settings-section-head h5 {
    margin: 0;
    color: #253858;
    font-size: 15px;
    font-weight: 800;
}

.settings-section-head p {
    margin: 3px 0 0;
    color: #8094ae;
    font-size: 12px;
}

.settings-section-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #eef5ff;
    color: #2f6fed;
    font-size: 18px;
}

.settings-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.settings-section-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.settings-company-profile-grid {
    grid-template-columns: 1fr;
}

.settings-section-wide {
    grid-column: 1 / -1;
}

.settings-section-card .form-group {
    margin-bottom: 0;
}

.settings-section-card .form-note {
    margin-top: 6px;
    color: #8a9bb5;
    font-size: 12px;
}

.settings-switch-row {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #edf1f7;
}

.settings-switch-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 18px;
}

.settings-switch-list .form-group {
    padding: 10px 12px;
    border: 1px solid #edf1f7;
    border-radius: 8px;
    background: #fbfcfe;
}

.settings-page .card-aside-wrap,
.settings-page .custom-tab-body,
.settings-page .card-content,
.settings-page .settings-section-card,
.settings-page .form-control-wrap {
    min-width: 0;
}

.settings-page .form-control,
.settings-page .select2-container,
.settings-page .select2-selection,
.settings-page textarea {
    max-width: 100%;
}

.settings-page .select2-container {
    width: 100% !important;
}

.settings-page .croppie-container,
.settings-page .cr-boundary,
.settings-page .cr-slider-wrap {
    max-width: 100% !important;
}

@media (max-width: 991px) {
    .conversion-side {
        display: none;
        min-height: auto;
    }

    .conversion-form-panel {
        min-height: auto;
    }

    .conversion-side-overlay {
        min-height: 430px;
        padding: 34px;
    }

    .conversion-side-card h1 {
        font-size: 28px;
    }

    .conversion-inline-proof {
        grid-template-columns: 1fr;
    }

    .settings-section-grid,
    .settings-section-grid-three,
    .settings-switch-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767.98px) {
    .pg-auth .nk-auth-body {
        max-width: 100%;
        padding-top: 8px;
    }

    .conversion-head .nk-block-title {
        font-size: 24px;
    }

    .conversion-head .nk-block-des p {
        font-size: 14px;
    }

    .conversion-inline-proof-item {
        padding: 10px 12px;
    }

    .conversion-form-card {
        padding: 12px 12px 10px;
    }

    .pg-auth .form-control-lg {
        min-height: 44px;
    }

    .pg-auth .cf-turnstile {
        transform: scale(.86);
    }
}

@media (max-width: 767.98px) {
    .settings-page .card-aside-wrap {
        display: block;
        overflow-x: hidden;
    }

    .settings-page .card-inner-lg {
        padding: 22px 18px;
    }

    .settings-page .settings-company-form {
        max-width: 100%;
    }
}

@media (max-width: 575.98px) {
    .settings-page .nk-content {
        padding: 18px 8px;
    }

    .settings-page .container-fluid {
        padding-left: 8px;
        padding-right: 8px;
    }

    .settings-page .card {
        border-radius: 8px;
    }

    .settings-page .card-inner-lg {
        padding: 16px 12px;
    }

    .settings-page .nk-block-head-lg {
        padding-bottom: 18px;
    }

    .settings-page .settings-section-card {
        margin-bottom: 14px;
        padding: 14px 12px;
        border-radius: 8px;
    }

    .settings-page .settings-section-head {
        gap: 10px;
        margin-bottom: 14px;
        padding-bottom: 12px;
    }

    .settings-page .settings-section-icon {
        flex-basis: 30px;
        width: 30px;
        height: 30px;
        font-size: 16px;
    }

    .settings-page .settings-section-head h5 {
        font-size: 14px;
    }

    .settings-page .settings-section-head p,
    .settings-page .settings-section-card .form-note {
        font-size: 12px;
        line-height: 1.35;
    }

    .settings-page .settings-section-grid,
    .settings-page .settings-switch-list {
        gap: 13px;
    }

    .settings-page .settings-switch-list .form-group {
        padding: 10px;
    }

    .settings-page .form-control-lg {
        min-height: 42px;
        padding-right: 12px;
        padding-left: 12px;
        font-size: 14px;
    }

    .settings-page textarea.form-control-lg {
        min-height: 96px;
    }

    .settings-page .btn-lg {
        padding: 10px 16px;
        font-size: 14px;
    }
}
.supplier-avatar {
    width: 54px;
    height: 54px;
    min-width: 54px;
    border-radius: 10px;
    border: 0;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin-right: 12px;
    box-shadow: 0 4px 12px rgba(31, 53, 92, 0.08);
}

.supplier-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 5px;
}

.supplier-avatar-empty {
    background: #f4f7fb;
    color: #8094ae;
}

.supplier-avatar-sm {
    width: 36px;
    height: 36px;
    min-width: 36px;
    border-radius: 8px;
    margin-right: 9px;
}

.supplier-avatar-lg {
    width: 78px;
    height: 78px;
    min-width: 78px;
    border-radius: 12px;
}

.supplier-inline,
.supplier-logo-upload {
    display: inline-flex;
    align-items: center;
}

.supplier-inline {
    max-width: 100%;
    min-width: 0;
    vertical-align: middle;
}

.supplier-inline > span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.supplier-logo-upload {
    gap: 12px;
    width: 100%;
}

.supplier-logo-upload .form-control-wrap {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 14px;
}

.supplier-logo-upload .croppie-cabinet {
    width: 96px;
    max-width: 96px !important;
    padding: 0;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 5px 14px rgba(31, 53, 92, 0.1);
    margin: 0;
}

.supplier-logo-upload .croppie-cabinet .croppie-figure {
    min-height: 96px;
    height: 96px;
    border: 0;
    border-radius: 12px;
    padding: 8px;
    background: #fff;
}

.supplier-logo-upload .croppie-output {
    width: 100%;
    max-height: 78px;
    object-fit: contain;
    padding: 0;
    border: 0;
}

.supplier-logo-upload .form-note,
.supplier-logo-upload .custom-control {
    flex: 1 0 100%;
}

.supplier-logo-input {
    padding-top: 11px;
}

.supplier-select-option {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    min-width: 0;
}

.supplier-select-option .supplier-avatar {
    margin-right: 8px;
}

.receiveables-table .supplier-inline {
    gap: 14px;
}

.receiveables-table .supplier-inline .supplier-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    margin-right: 0;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(31, 53, 92, 0.1);
}

.receiveables-table .supplier-inline .supplier-avatar img {
    padding: 4px;
}

.receiveables-table .supplier-inline > span:last-child {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

@media (max-width: 767.98px) {
    .receiveables-table .supplier-inline .supplier-avatar {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
}

.suppliers-table .user-card {
    gap: 14px;
}

.suppliers-table .user-card .supplier-avatar {
    width: 72px;
    height: 72px;
    min-width: 72px;
    margin-right: 0;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(31, 53, 92, 0.1);
}

.suppliers-table .user-card .supplier-avatar img {
    padding: 4px;
}

.suppliers-table .user-card .tb-lead {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

@media (max-width: 767.98px) {
    .suppliers-table .user-card .supplier-avatar {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
}

/* Overview schedule timeline */
.overview-timeline-card .card-inner {
    padding: 18px 18px 20px;
}

.overview-timeline-shell {
    height: auto !important;
    min-height: 220px;
}

.overview-timeline-shell #overview-timeline {
    height: auto !important;
    min-height: 0;
}

.overview-loading {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .62);
}

.overview-loading.is-visible {
    display: flex;
}

.overview-loading::before {
    content: "";
    width: 26px;
    height: 26px;
    border-radius: 50%;
    border: 3px solid rgba(15, 23, 42, .12);
    border-top-color: #e71d2b;
    animation: overviewSpin .75s linear infinite;
}

@keyframes overviewSpin {
    to { transform: rotate(360deg); }
}

.ovtl-board {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    border: 1px solid #dbe4ee;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 22px rgba(15, 23, 42, .06);
    overflow: hidden;
}

.ovtl-left {
    background: #f8fafc;
    border-right: 1px solid #cbd5e1;
    z-index: 2;
}

.ovtl-corner {
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 8px;
    border-bottom: 1px solid #cbd5e1;
    color: #111827;
    font-size: 13px;
    font-weight: 800;
    background: #f1f5f9;
}

.timeline-corner-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.timeline-time-toggle {
    display: inline-flex;
    align-items: center;
    padding: 2px;
    background: #e5eaf2;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    gap: 2px;
}

.timeline-time-toggle button {
    border: 0;
    background: transparent;
    color: #526484;
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
    padding: 5px 7px;
    border-radius: 999px;
    cursor: pointer;
}

.timeline-time-toggle button.is-active {
    background: #fff;
    color: #111827;
    box-shadow: 0 1px 4px rgba(15, 23, 42, .14);
}

.ovtl-resource {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    border-bottom: 1px solid #dbe4ee;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    background: #f8fafc;
}

.ovtl-resource-unassigned {
    color: #374151;
    font-weight: 600;
}

.ovtl-resource .icon {
    font-size: 15px;
    color: #0ea5e9;
    opacity: .9;
}

.ovtl-resource-unassigned .icon {
    color: #ef4444;
}

.ovtl-right {
    min-width: 0;
    background: #fff;
}

.ovtl-scroll {
    width: 100%;
    overflow: auto;
    scrollbar-color: #94a3b8 #f1f5f9;
    scrollbar-width: thin;
}

.ovtl-scroll::-webkit-scrollbar {
    height: 11px;
    width: 11px;
}

.ovtl-scroll::-webkit-scrollbar-track {
    background: #f1f5f9;
}

.ovtl-scroll::-webkit-scrollbar-thumb {
    background: #94a3b8;
    border-radius: 999px;
    border: 2px solid #f1f5f9;
}

.ovtl-canvas {
    position: relative;
    background: #fff;
}

.ovtl-hours {
    height: 34px;
    display: flex;
    position: sticky;
    top: 0;
    z-index: 5;
    background: #f8fafc;
    border-bottom: 1px solid #cbd5e1;
}

.ovtl-hour {
    height: 34px;
    display: flex;
    align-items: center;
    padding-left: 5px;
    border-left: 1px solid #cbd5e1;
    color: #111827;
    font-size: 12px;
    font-weight: 500;
}

.ovtl-hour:first-child {
    border-left: 0;
}

.ovtl-row {
    position: relative;
    border-bottom: 1px solid #dbe4ee;
    background-image:
        linear-gradient(to right, rgba(203, 213, 225, .95) 1px, transparent 1px),
        linear-gradient(to right, rgba(226, 232, 240, .9) 1px, transparent 1px);
    background-size: 90px 100%, 45px 100%;
    background-position: 0 0, 0 0;
    cursor: pointer;
}

.ovtl-row:hover {
    background-color: #fbfdff;
}

.ovtl-past-overlay {
    position: absolute;
    top: 34px;
    bottom: 0;
    left: 0;
    background: rgba(248, 250, 252, .68);
    z-index: 4;
    pointer-events: none;
    box-shadow: inset -14px 0 20px rgba(248, 250, 252, .45);
}

.ovtl-now-line {
    position: absolute;
    top: 34px;
    bottom: 0;
    width: 2px;
    background: #ef4444;
    z-index: 5;
    pointer-events: none;
}

.ovtl-event {
    position: absolute;
    height: 26px;
    border-radius: 7px;
    border: 1px solid var(--tl-border, #0284c7);
    background: var(--tl-bg, #e0f2fe);
    color: var(--tl-text, #1f2937);
    box-shadow: 0 4px 10px rgba(15, 23, 42, .14);
    display: flex;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    z-index: 3;
}

.ovtl-event:hover {
    box-shadow: 0 8px 18px rgba(15, 23, 42, .2);
}

.ovtl-info {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #38bdf8;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    font-style: italic;
    font-family: Georgia, serif;
    text-decoration: none;
    border-radius: 6px 0 0 6px;
}

.ovtl-info:hover {
    background: #0ea5e9;
    color: #fff !important;
}

.ovtl-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    padding: 0 9px;
    font-weight: 700;
    line-height: 26px;
    font-size: 11px;
    min-width: 0;
}
