@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}


.custom-control-log {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
}

.main-container {
    margin-top: 0px; /* Decreased margin at the top */
    padding-bottom: 0px; /* Space for links at the bottom */
}
/* Provide sufficient contrast against white background */
a {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.form-group label {
    font-weight: 500;
}

span.field-validation-error,
.validation-summary-errors {
    color: #dc3545;
    font-size: smaller;
}

html {
    font-size: 14px !important;
}

.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

html {
    position: relative;
    min-height: 100%;
}

body {
    /* Margin bottom by footer height */
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
}

.footer {
    width: 100%;
    white-space: nowrap;
    line-height: 60px; /* Vertically center the text there */
}

input[type=datetime-local] {
    width: 80%;
}

img.img-body-cam {
    max-width: 80% !important;
    height: auto;
}

td.gj-grid-management-column i.gj-icon {
    font-size: 1rem;
}

    td.gj-grid-management-column i.gj-icon.pencil,
    td.gj-grid-management-column i.gj-icon.cancel {
        color: #007bff;
    }

    td.gj-grid-management-column i.gj-icon.delete {
        color: #dc3545;
    }

    td.gj-grid-management-column i.gj-icon.check-circle {
        color: #28a745;
    }

.es-list {
    max-height: 320px !important;
}

.form-control {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

a.cws-footer-link,
a.cws-footer-link :hover,
a.cws-footer-link :visited {
    color: #EA6326;
    text-decoration: none;
}

.bg-cws-orange {
    background-color: #EA6326;
}

#loader,
#loader-p {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
}

/* p3-44: report loading progress (shown by loaderProgress in reports.js) */
#loader-progress-box {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 340px;
    background: #ffffff;
    border-radius: 8px;
    padding: 18px 22px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.35);
}

#loader-progress-label {
    font-size: 14px;
    color: #333333;
    margin-bottom: 10px;
}

#loader-progress-track {
    height: 12px;
    background: #e9ecef;
    border-radius: 6px;
    overflow: hidden;
}

#loader-progress-bar {
    height: 100%;
    width: 0%;
    background: #007bff;
    border-radius: 6px;
    transition: width 0.3s ease;
}

#loader-progress-percent {
    margin-top: 8px;
    font-size: 13px;
    font-weight: bold;
    color: #0366d6;
}

.wand-scan-subtext {
    display: block;
    font-size: 13.5px;
}

.fw-bold {
    font-weight: 500;
}

.tbl-settings thead th {
    background-color: #f5f5f5;
}

#client_type_settings th:last-child,
#client_site_settings th:last-child {
    width: 130px !important;
}

#ucaTreeView {
    max-height: 60vh;
    overflow-y: scroll;
}

#events-list {
    padding-left: 1rem;
}

.event-type-check {
    padding-left: 0px;
    margin-bottom: 0.8rem;
}

    .event-type-check > .form-check-label {
        width: 92%;
    }

.event-type {
    margin-left: 0.8rem;
}

i.client-status-circle {
    color: rgba(0,0,0,.4);
}

.container.slogan {
    width: 100%;
}

/* -- media -- */
@media (min-width: 768px) {
    .container.slogan {
        width: 85%;
    }
}

@media (min-width: 1024px) {
    .container.slogan {
        width: 75%;
    }

    #Report_SiteColourCodeId {
        width: 30% !important;
    }
}

@media (min-width: 1400px) {
    .container.slogan {
        width: 60%;
    }
}

@media screen and (max-height: 700px) and (orientation: landscape) {
    .slogan p, .slogan .my-2 {
        font-size: 0.95rem;
        margin-top: 0.25rem !important;
        margin-bottom: 0.25rem !important;
    }

    .slogan.pb-3, .slogan.pb-md-3 {
        padding-bottom: 0.5rem !important;
    }

    a.navbar-brand img {
        height: 45px;
    }
}

.login-disclaimer {
    width: 75%;
}

@media screen and (max-height: 700px) and (orientation: landscape), screen and (max-width: 800px) {
    .login-disclaimer {
        width: 100%;
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

        .login-disclaimer br {
            display: none;
        }
}

@media (min-width: 768px) {
    html {
        font-size: 14px !important;
    }

    .footer {
        line-height: 60px !important;
    }

    .event-type-check > .form-check-label {
        width: 98%;
        font-size: 0.97rem;
    }
}

@media screen and (width: 768px) {
    .col-ipad-100 {
        -ms-flex: 0 0 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }

    .col-ipad-50 {
        -ms-flex: 0 0 50%;
        flex: 0 0 50%;
        max-width: 50%;
    }

    .col-ipad-30 {
        -ms-flex: 0 0 33.33%;
        flex: 0 0 33.33%;
        max-width: 33.33%;
    }

    .col-ipad-25 {
        -ms-flex: 0 0 25%;
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* -- patrol data report -- */

.full-width {
    width: 99vw; /* 100vw is adding a horizontal page scroll */
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding-left: 5%;
    padding-right: 5%;
}

#monthly_patrol_data_wrapper {
    width: 100%;
}

#monthly_patrol_data td {
    white-space: nowrap;
}

.action-taken {
    min-width: 350px;
    white-space: pre-wrap !important;
}

.alarm {
    min-width: 80px;
    white-space: pre-wrap !important;
}

button.multiselect-option.dropdown-item > .form-check > label {
    font-weight: 400;
}

.custom-switch.duty-day-switch .custom-control-label::before {
    color: #fff;
    border-color: #17a2b8;
    background-color: #17a2b8;
}

.custom-switch.duty-day-switch .custom-control-label::after {
    background-color: #fff;
}

.custom-switch.duty-day-switch .custom-control-input:checked ~ .custom-control-label::before {
    color: #fff;
    border-color: #007bff;
    background-color: #007bff;
}

/* -- daily guard log -- */

.btn-dgl-edit {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    font-size: 13px;
}

#patrol_cars_log.table td,
#custom_field_log.table td {
    padding: 0.5rem
}

    #patrol_cars_log.table td[data-mode=edit] [data-role=edit] input[type=text],
    #custom_field_log.table td[data-mode=edit] [data-role=edit] input[type=text] {
        padding-left: 0px;
    }

#cs-pocs th:last-child,
#cs-locations th:last-child {
    width: 150px !important;
}

.site-cf-col-lbl {
    position: relative;
    width: 100px;
    padding-right: 0;
    padding-left: 15px;
}

.site-cf-col-ctrl {
    position: relative;
    width: 150px;
    padding-right: 0;
    padding-left: 0;
    margin-right: 0;
}

.tel-input-box {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding-left: 0.5rem;
    overflow: hidden;
    font-family: sans-serif;
}

    .tel-input-box .prefix {
        font-weight: 300;
        font-size: 14px;
        color: #495057;
        min-width: 45px;
    }

    .tel-input-box input {
        flex-grow: 1;
        font-size: 14px;
        background: #fff;
        border: none;
        outline: none;
        padding: 0.5rem;
        color: #495057;
    }

    .tel-input-box:focus-within {
        color: #495057;
        background-color: #fff;
        border-color: #80bdff;
        outline: 0;
        box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    }

    .tel-input-box > .form-control:focus {
        box-shadow: 0 0 0 0 !important;
    }

.btn-duress.btn-md {
    width: 80px;
    height: 80px;
    padding: 7px 10px;
    border-radius: 40px;
    font-size: 12px;
    font-weight: bold;
    text-align: center;
    color: #fff;
    border: 5px solid #C0C0C0;
    background-color: #F7CF15;
}

    .btn-duress.btn-md.active {
        border-color: #C0C0C0 !important;
        background-color: #ff0000;
    }

/*  gijgo grid group column set bg-light color */
tr[role=group] {
    background-color: #f8f9fa !important;
}

@media (min-width: 1024px) {
    .col-md-2-tight {
        -ms-flex: 0 0 13%;
        flex: 0 0 13%;
        max-width: 13%;
    }
}

/* -- vehicle key log -- */

.kvl-rec-filter > .btn-outline-primary:hover,
.kvl-rec-filter.show > .btn-outline-primary {
    color: #007bff !important;
    background-color: white !important;
    border-color: #007bff !important;
}

table.dataTable td.dt-control:before {
    font-family: FontAwesome;
    content: "\f055";
    color: #28a745;
    background-color: #fff;
}

table.dataTable tr.dt-hasChild td.dt-control:before {
    font-family: FontAwesome;
    content: "\f056";
    color: #dc3545;
    background-color: #fff;
}

#tbl_kvl_fields th:last-child {
    width: 180px !important;
}

#vehicle_key_daily_log_filter {
    display: none;
}

#form_new_vehicle_and_key_log label {
    font-size: 13px;
}

#key_vehicle_log_profiles tbody tr.selected {
    background-color: #e5ecf8;
}

/* -- radio check -- */

.rc-client-status {
    font-size: 1.25em;
}

/* -- */
/* -- DownloadSelecter Page -- */
/* p7-141 GUI update - responsive card grid for the Downloads main menu */
#dvDownloadSelecterOuter {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
    text-align: center;
    margin: 1rem auto 2rem;
    max-width: 1180px;
}

.dwnl-card-col {
    display: flex;
}

a.dwnl-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 200px;
    border: 1px solid #dbe2ea;
    border-radius: 10px;
    background-color: #fff;
    overflow: hidden;
    text-decoration: none;
    color: #212529;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .06);
    transition: transform .15s ease-in-out, box-shadow .15s ease-in-out, border-color .15s ease-in-out;
}

    a.dwnl-card:hover,
    a.dwnl-card:focus {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(24, 97, 172, .22);
        border-color: #1b6ec2;
        text-decoration: none;
        color: #212529;
    }

    a.dwnl-card:active {
        transform: translateY(0);
        box-shadow: 0 2px 6px rgba(0, 0, 0, .12);
    }

    a.dwnl-card:focus-visible {
        outline: 3px solid #eb804d;
        outline-offset: 2px;
    }

.dwnl-card-title {
    display: block;
    background-color: #1861ac;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: .01em;
    padding: .75rem .5rem;
}

a.dwnl-card:hover .dwnl-card-title {
    background-color: #1b6ec2;
}

.dwnl-card-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.25rem .75rem;
}

.dwnl-card-icon {
    font-size: 3rem;
    line-height: 1;
    color: #1861ac;
    margin-bottom: .75rem;
    transition: color .15s ease-in-out;
}

a.dwnl-card:hover .dwnl-card-icon {
    color: #eb804d;
}

.dwnl-card-text {
    display: block;
    font-size: .875rem;
    color: #6c757d;
}

@media (max-width:1199px) {
    #dvDownloadSelecterOuter {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width:575px) {
    #dvDownloadSelecterOuter {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    a.dwnl-card {
        min-height: 130px;
        flex-direction: row;
        align-items: stretch;
    }

    .dwnl-card-title {
        display: flex;
        align-items: center;
        text-align: left;
        width: 45%;
        padding: 1rem;
    }

    .dwnl-card-body {
        padding: 1rem;
    }
}

/* p7-141 Breadcrumb on the Downloads detail pages */
.dwnl-breadcrumb {
    background-color: transparent;
    padding: 0 0 .25rem 0;
    margin-bottom: .25rem;
    font-size: .9rem;
}

    .dwnl-breadcrumb .breadcrumb-item a {
        color: #1861ac;
    }

    .dwnl-breadcrumb .breadcrumb-item.active {
        color: #6c757d;
    }

/* p7-141 Category tabs on the Downloads page (Training / Multimedia) */
.dwnl-catg-tabs .nav-link {
    color: #1861ac;
    font-weight: 500;
    padding: .6rem 1.25rem;
    cursor: pointer;
}

    .dwnl-catg-tabs .nav-link.active {
        color: #212529;
        font-weight: 600;
        border-bottom-color: transparent;
    }

    .dwnl-catg-tabs .nav-link:hover {
        background-color: #f1f5fa;
    }

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

.centerIcon {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* p7-141 - card grid handles its own breakpoints, only the legacy image links need stacking */
@media (max-width:992px) {
    #dvcompanysop, #dvtraining, #dvmultimedia, #dvformsandtemplates {
        margin-bottom: 7px;
    }
}

.imgIcon {
    width: 25px;
    height: 25px;
}

#container {
    text-align: center;
}

.dynamic-link {
    width: 150px;
    margin: 3px;
}

.button-container-div {
    text-align: center;
}

    /* p7-141 keep the Downloads page View/Download buttons on a single line */
    .button-container-div.text-nowrap {
        white-space: nowrap;
    }

.grouped-column {
    background-color: #EFEFEF;
}

/* Dark Mode Change 20/09/2023 Start*/
.dark-mode {
    background-color: #333;
    color: #fff;
}

    .dark-mode .bg-white {
        background-color: #333 !important;
        color: #fff;
    }

    .dark-mode .bg-cws-orange {
        background-color: #EA6326 !important;
    }

    .dark-mode .odd {
        background-color: #333 !important;
    }

    .dark-mode table.dataTable tbody tr {
        background-color: #333 !important;
    }

    .dark-mode table.dataTable tbody > tr td {
        background-color: #333 !important;
    }

        .dark-mode table.dataTable tbody > tr td.initial-call-colour,
        .dark-mode table.dataTable tbody tr.initial-call-colour,
        .dark-mode td.initial-call-colour,
        .dark-mode tr.initial-call-colour,
        .dark-mode .initial-call-colour {
            background-color: #FCF3CF !important;
            color: #333 !important;
        }

        .dark-mode table.dataTable tbody > tr td.entry-time-colour,
        .dark-mode table.dataTable tbody tr.entry-time-colour,
        .dark-mode td.entry-time-colour,
        .dark-mode tr.entry-time-colour,
        .dark-mode .entry-time-colour {
            background-color: #A9DFBF !important;
            color: #333 !important;
        }

        .dark-mode table.dataTable tbody > tr td.exit-time-colour,
        .dark-mode table.dataTable tbody tr.exit-time-colour,
        .dark-mode td.exit-time-colour,
        .dark-mode tr.exit-time-colour,
        .dark-mode .exit-time-colour {
            background-color: #F5B7B1 !important;
            color: #333 !important;
        }

        .dark-mode table.dataTable tbody > tr td.lv-time-colour,
        .dark-mode table.dataTable tbody tr.lv-time-colour,
        .dark-mode td.lv-time-colour,
        .dark-mode tr.lv-time-colour,
        .dark-mode .lv-time-colour {
            background-color: #F5B7B1 !important;
            color: #333 !important;
        }

    .dark-mode table.dataTable thead > tr th.kv-dailylog-group-th,
    .dark-mode table.dataTable thead tr.kv-dailylog-group-th,
    .dark-mode th.kv-dailylog-group-th,
    .dark-mode tr.kv-dailylog-group-th,
    .dark-mode .kv-dailylog-group-th {
        background-color: #333 !important;
    }

    .dark-mode .table-bordered {
        color: #fff;
    }

    .dark-mode .modal-content {
        position: relative;
        display: flex;
        flex-direction: column;
        width: 100%;
        pointer-events: auto;
        background-color: #333 !important;
        background-clip: padding-box;
        border: 1px solid #fff;
    }

    .dark-mode .es-list {
        max-height: 320px !important;
        background-color: #fff;
        color: #333
    }

    .dark-mode #list_product {
        background-color: #fff;
        color: #333
    }

    .dark-mode .fa-clipboard {
        background-color: #fff;
        color: #333
    }

    .dark-mode .table-hover tbody tr:hover {
        color: #fff;
        background-color: rgba(0,0,0,.075);
    }


    .dark-mode.btn-primary {
        color: #fff;
        background-color: #007bff;
        border-color: #007bff;
    }

    .dark-mode.fa-sign-out {
        background-color: transparent !important;
    }

    .dark-mode a:hover {
        color: #F36523;
        text-decoration: none;
    }

    .dark-mode.bg-cws-orange {
        background-color: #EA6326 !important;
    }

    .dark-mode.border-dark {
        border-color: #fff !important;
    }

    .dark-mode.d-md-inline-flex {
        background-color: transparent !important;
    }

    .dark-mode.fa-search {
        background-color: transparent !important;
    }

    .dark-mode.card {
        border-color: #fff !important;
    }

    .dark-mode.text-muted {
        color: #fff !important;
    }

    .dark-mode.fa-plus {
        background-color: transparent !important;
    }

    .dark-mode.list-group-item {
        color: #333 !important;
    }

    .dark-mode #Report_SiteColourCodeId {
        background-color: #4D4746 !important;
    }

    .dark-mode #kvl_list_plates {
        color: #4D4746 !important;
    }

    .dark-mode #myTable th {
        /* Your CSS styles for <th> elements here */
        background-color: lightblue;
        color: white;
        font-weight: bold;
    }

    .dark-mode.gj-grid thead th {
        background-color: #333;
        color: #fff;
    }

    .dark-mode.fa-sign-in {
        background-color: transparent !important;
    }

    .dark-mode .list-group-item {
        color: white !important;
    }

    .dark-mode #kvl-attachment-list li {
        color: #333 !important;
    }





/* Dark Mode Change 20/09/2023 End*/

/* Dark Mode for roster/Booking is injected at runtime from Booking.cshtml
   (scoped to that page only) so it never affects other pages. */

/* for scroll events -start*/
.marquee-style {
    background-color: dimgrey;
    font-size: 20px;
    font-family: georgia;
    font-style: italic;
    font-weight: bold;
    color: White;
    text-shadow: 2px 2px 8px #FF0000;
}

.marquee-stylenew {
    background-color: #737CA1;
    font-size: 16px;
    font-family: georgia;
    font-style: italic;
    font-weight: bold;
    color: White;
    /*text-shadow: 2px 2px 8px #FF0000;*/
}

.dark-mode .marquee-style {
    background-color: white;
    font-size: 20px;
    font-family: georgia;
    font-style: italic;
    font-weight: bold;
    color: black;
    text-shadow: 2px 2px 8px #fff;
}

.dark-mode .marquee-stylenew {
    background-color: white;
    font-size: 16px;
    font-family: georgia;
    font-style: italic;
    font-weight: bold;
    color: black;
    /*text-shadow: 2px 2px 8px #fff;*/
}

.dark-mode .lblclass {
    background-color: white;
    color: black;
}

pre {
    font-size: 16px;
    font-family: georgia;
    font-style: italic;
    font-weight: bold;
    color: White;
    overflow: hidden;
    margin-bottom: 0px;
    margin-top: 5px;
    height: auto;
    width: auto;
    /*text-shadow: 2px 2px 8px #FF0000;*/
}

#divmarqueeLiveEvents {
    overflow: hidden;
    display: grid;
}

    #divmarqueeLiveEvents .dark-mode {
        background-color: white;
        color: black;
    }

pre.dark-mode {
    background-color: white;
    color: black;
    overflow: hidden;
    margin-top: 5px;
    margin-bottom: 0px;
    height: auto;
    width: auto;
}


/* for scroll events -end*/
/*form trafiic lights-start*/
.initial-call-colour {
    background-color: #FCF3CF;
}

.entry-time-colour {
    background-color: #A9DFBF;
}

.exit-time-colour {
    background-color: #F5B7B1;
}

.lv-time-colour {
    background-color: #F5B7B1;
}

.btn-lv-quick-color {
    background-color: #fd7e14;
    border-color: #fd7e14;
    color: #FFFFFF;
}

.kv-dailylog-group-th {
    background-color: #EAF0ED;
}

.page-break {
    page-break-after: always;
}

.no-padding {
    padding-left: 1px !important;
    padding-right: 1px !important;
}

#user_settings tbody div[data-role="display"] {
    vertical-align: middle;
    text-indent: 0;
    white-space: normal !important; /* Override white-space: pre-wrap */
    -ms-word-break: break-word;
    word-break: break-word;
}

p.center-or-justify:only-child {
    text-align: justify;
    text-align-last: center; /* Align last line center if only one line */
}

.text-orange {
    color: #ff8c00;
}

/* PDF Export custom scaling styles to fit wide DataTables on Portrait A4 */
.pdf-export-active #monthly_patrol_data_wrapper .dataTables_scrollBody,
.pdf-export-active #monthly_patrol_data_wrapper .dataTables_scrollHead,
.pdf-export-active #monthly_patrol_data_wrapper .dataTables_scroll {
    overflow: visible !important;
    max-height: none !important;
}

.pdf-export-active #monthly_patrol_data {
    table-layout: auto !important;
    width: 100% !important;
}

    .pdf-export-active #monthly_patrol_data th,
    .pdf-export-active #monthly_patrol_data td {
        white-space: normal !important;
        word-break: break-word !important;
        font-size: 5px !important;
        padding: 1px !important;
        line-height: 1.1 !important;
    }

    .pdf-export-active #monthly_patrol_data th {
        font-size: 5.3px !important;
        font-weight: bold !important;
    }

.pdf-export-active .action-taken {
    min-width: 70px !important;
    white-space: normal !important;
}

.pdf-export-active .alarm {
    min-width: 30px !important;
    white-space: normal !important;
}


.stock-modal {
    border-radius: 0;
}

.stock-header {
    background: #98d63b;
    color: #fff;
    padding: 10px 15px;
}

.stock-header .modal-title {
    font-weight: 500;
    font-size: 15px;
    letter-spacing: 1px;
}

.stock-header .close {
    color: #fff;
    opacity: 1;
    font-size: 32px;
    text-shadow: none;
}

.stock-title {
    color: #666;
    font-weight: 600;
    margin-bottom: 25px;
}

.replicate-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 20px;
}

.btn-replicate {
    border: 2px solid #5ed67d;
    color: #4fbf68;
    background: #fff;
    border-radius: 10px;
    font-size: 24px;
    font-weight: bold;
    height: 50px;
    transition: .2s;
}

.btn-replicate:hover,
.btn-replicate:focus {
    background: #5ed67d;
    color: #fff;
}