/* Write your CSS code. */
@media print {
    ::-webkit-scrollbar {
        display: none;
    }
}

.background-color-red {
    background-color: red !important;
}

.table > tbody > tr.background-color-red > td,
.table > tbody > tr.background-color-red > th,
.table-striped > tbody > tr.background-color-red:nth-of-type(odd) > td,
.table-striped > tbody > tr.background-color-red:nth-of-type(odd) > th {
    background-color: red !important;
    color: white !important;
}

.table > tbody > tr.background-color-red > td a,
.table > tbody > tr.background-color-red > th a {
    color: white !important;
}

.customer-item {
    display: flex;
    padding: 5px;
    border-bottom: 1px solid #ddd;
}

.customer-id {
    width: 60px;
    font-weight: bold;
    color: #555;
}

.k-multiselect {
    height: auto; /* or a fixed height like 150px */
    max-height: 120px; /* set a reasonable max-height if needed */
    overflow-y: auto; /* enable scrolling if items overflow */
}

.readonly {
    pointer-events: none; /* Prevents interaction */
    background-color: #e9ecef; /* Gives a readonly-like appearance */
    opacity: 1; /* Keeps it fully visible */
}
.customer-details {
    flex: 1;
    padding-left: 10px;
}

.customer-name {
    font-size: 14px;
    font-weight: bold;
    color: #000;
}

.customer-contact {
    font-size: 12px;
    color: #777;
}

/* Project product combobox: keep image/placeholder + name on one line */
.product-combo-item{
    display: flex;
    align-items: center;
    padding: 5px;
}
.product-combo-item .product-image-wrapper{
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    margin-right: 10px;
}
.product-combo-item img.product-image{
    width: 30px;
    height: 30px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}
.product-combo-item .product-image-placeholder{
    width: 30px;
    height: 30px;
    background-color: #f0f0f0;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #ccc;
}
.product-combo-item .product-name-text{
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.no-data {
    padding: 10px;
    text-align: center;
    color: #999;
}
.field-validation-error {
    color: #b94a48;
}

.hideInfo {
    display: none;
}

.field-validation-valid {
    display: none;
}

input.input-validation-error {
    border: 1px solid #b94a48;
}

.pl-0 {
    padding-left: 0px;
}
.fc-time {
    font-weight: bold;
}

.mb-1 {
    margin-bottom: 5px;
}
select.input-validation-error {
    border: 1px solid #b94a48;
}

body > .k-loading-mask {
    position: fixed;
    z-index: 9999;
}

@media (max-width: 767px) {
    .fixed .content-wrapper,
    .fixed .right-side {
        padding-top: 50px;
    }

    .main-sidebar,
    .control-sidebar {
        padding-top: 50px;
    }

    .main-header {
        display: flex;
        flex-wrap: nowrap;
        align-items: stretch;
        max-height: 50px;
    }

    .main-header .logo {
        align-items: center;
        display: flex;
        flex: 0 0 50px;
        float: none;
        justify-content: center;
        width: 50px;
    }

    .main-header .logo .logo-lg {
        display: none;
    }

    .main-header .logo .logo-mini {
        display: block;
    }

    .main-header .navbar {
        align-items: center;
        display: flex;
        flex: 1 1 auto;
        flex-wrap: nowrap;
        float: none;
        margin: 0;
        min-width: 0;
        width: auto;
    }

    .main-header .sidebar-toggle {
        flex: 0 0 44px;
        float: none;
        width: 44px;
    }

    .main-header .navbar-custom-menu {
        flex: 1 1 auto;
        float: none;
        min-width: 0;
        width: auto;
    }

    .main-header .navbar-custom-menu > .navbar-nav {
        align-items: center;
        display: flex;
        flex-wrap: nowrap;
        margin: 0;
        width: 100%;
    }

    .main-header .navbar-custom-menu > .navbar-nav > li:not(#franchiseeGroup) {
        flex: 0 0 auto;
    }

    .main-header .navbar-custom-menu > .navbar-nav > #franchiseeGroup {
        flex: 1 1 auto;
        min-width: 0;
    }

    .main-header .navbar-custom-menu > .navbar-nav > #franchiseeGroup > a {
        overflow: hidden;
        padding-left: 0;
        padding-right: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .main-header .navbar-custom-menu > .navbar-nav > #franchiseeGroup #currentFranchisee {
        display: inline-block;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        vertical-align: top;
        white-space: nowrap;
    }
}

.custom-editor-window .k-loading-mask {
    display: none;
}

input[type="checkbox"].input-validation-error {
    border: 0 none;
}

.validation-summary-errors {
    color: #b94a48;
}

.validation-summary-valid {
    display: none;
}

.toggle {
    width: 103px;
    height: 20px;
}

.pagination {
    margin: 0px !important;
}

.full-width {
    width: 100% !important;
}

.k-loading-image {
    z-index: 1051 !important;
}

.padding-right-10 {
    padding-right: 10px;
}

.editbtn {
    background-color: #f39c12 !important;
    border-radius: 3px;
    border: 3px solid #f39c12;
}

.printbtn {
    background-color: #5bc0de !important;
    border-radius: 3px;
    padding: 2px 5px;
    border: 3px solid #5bc0de;
}

.invoicebtn {
    background-color: #28a745 !important;
    border-radius: 3px;
    padding: 2px 5px;
    border: 3px solid #28a745;
}

.imagebtn {
    background-color: #9933ff !important;
    border-radius: 3px;
    padding: 2px 5px;
    border: 3px solid #9933ff;
}

.primarybtn {
    background-color: #D92D30 !important;
    border-radius: 3px;
    padding: 2px 5px;
    border: 3px solid #D92D30;
}

    .primarybtn > i {
        color: white;
    }

.continuebtn {
    background-color: #00c0ef !important;
    border-radius: 3px;
    border: 3px solid #00c0ef;
}

    .continuebtn > i {
        color: white;
    }

.prewhiteSpace {
    white-space: pre-wrap;
}

.deletebtn {
    background-color: red !important;
    border-radius: 3px;
    cursor: pointer;
    border: 3px solid red;
}

.margin-2 {
    margin: 2px;
}

.deletebtn > i {
    color: white;
}

.skipbtn {
    background-color: #28a745 !important;
    border-radius: 3px;
    border: 3px solid #28a745;
}

    .skipbtn > i {
        color: white;
    }

.editbtn > i {
    color: white;
}

.dataTables_wrapper {
    font-size: 12px;
}

.uk-timeline .uk-timeline-item .uk-card {
    max-height: 300px;
}

.uk-timeline .uk-timeline-item {
    display: flex;
    position: relative;
}

    .uk-timeline .uk-timeline-item::before {
        background: #dadee4 !important;
        content: "" !important;
        height: 100% !important;
        left: 19px !important;
        position: absolute !important;
        top: 20px !important;
        width: 2px !important;
        z-index: 0 !important;
    }


    .uk-timeline .uk-timeline-item .uk-timeline-icon .uk-badge {
        margin-top: 20px;
        width: 40px;
        height: 40px;
    }

    .uk-timeline .uk-timeline-item .uk-timeline-content {
        -ms-flex: 1 1 auto;
        flex: 1 1 auto;
        padding: 0 0 0 1rem;
    }


.uk-timeline-icon {
    z-index: 1;
}

.ellipsis {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: #f6f6f6;
}

.text-Decoration-line-through {
    text-decoration-line: line-through !important;
}

.tableHeaderFixed > thead th {
    position: sticky !important;
    top: 0;
    z-index: 1;
    background: white;
}

.pb-3 {
    padding-bottom: 0.75rem;
}

.pb-4 {
    padding-bottom: 1.25rem;
}

.background-color-grey {
    background-color: #d6dcea
}

.mr-3 {
    margin-right: 0.75rem;
}

.numbering {
    border-radius: 20px;
    padding-left: 12px;
    background-color: #D92D30;
    color: white;
}

.numbering-red {
    border-radius: 20px;
    padding-left: 12px;
    background-color: #b22222;
    color: white;
}

.row-selected:hover {
    background: #e1e1e1;
    cursor: pointer;
}

.form-checkbox {
    width: 1.5rem;
    height: 1.5rem;
    margin-left: 10px !important
}
.background-color-calendar {
    background-color: #f2e18f
}
.pl-4 {
    padding-left: 25px !important;
}
.pl-1 {
    padding-left: 5px !important;
}
.pl-0{
    padding-left:0px !important;
}
.pr-0{
    padding-right:0px !important;
}
.pt-0{
    padding-top:0px !important;
}
.br-0{
    border:0px !important
}
.mt-2{
    margin-top:12px;
}
.mt-1{
    margin-top:5px;
}
.mb-1{
    margin-bottom:5px;
}
.mb-2{
    margin-bottom:12px;
}
.fc-title{
    font-weight:500 !important;
}

.float-right {
    float: right;
}

.title-header {
    font-size: 26px;
    padding-bottom: 5px;
}

.custom-checkbox {
    display: none; /* Hide the actual checkbox */
}

    .custom-checkbox + label {
        background-color: #ccc; /* Default background color */
        color: white; /* Text color */
        padding: 5px 10px; /* Padding inside the label */
        border-radius: 5px; /* Rounded corners for button-like appearance */
        display: inline-block; /* Allows width and padding to be set */
        cursor: pointer; /* Pointer cursor on hover */
        transition: background-color 0.3s; /* Smooth transition for background color */
    }

    .custom-checkbox:checked + label {
        background-color: #D92D30; /* Background color when checked */
    }

    .custom-checkbox + label:hover {
        background-color: #666; /* Darker background on hover */
    }

    .custom-checkbox:checked + label:hover {
        background-color: #C02629; /* Slightly darker red when checked and hovered */
    }

    .custom-checkbox + label {
        margin-right: 5px; /* Space between each button */
        margin-bottom: 5px; /* Space below each button if wrapping occurs */
    }
.locked-date {
    text-decoration: line-through;
    color: grey;
}

    .locked-date::before {
        content: "\f023"; /* Unicode for Font Awesome lock icon */
        font-family: 'Font Awesome 5 Free'; /* Adjust based on your Font Awesome version */
        padding-right: 5px;
    }

.tableDateDetails {
    background-color: #ccc;
}
.form-group .control-label {
    text-align: right; /* Aligns labels to the right, close to the input fields */
    padding-right: 10px; /* Adds some space between the label and the input field */
}

.form-control {
    width: 100%; /* Ensures that input takes the full width of its container */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .form-group .control-label {
        text-align: left; /* Aligns labels to the left on smaller screens */
        padding-right: 0;
    }
}
.float-right{
    float:right;
}


.combobox-item {
    display: flex;
    padding: 5px;
    font-size: 12px;
    border-bottom: 1px solid #ddd;
}

.item-id {
    font-weight: bold;
    color: #555;
}

.item-details {
    flex: 1;
    flex-direction: row;
    padding-left: 10px;
}

.item-1 {
    font-weight: bold;
    color: #000;
}

.item-2 {
    color: #777;
}
.ml-3{
    margin-left:15px;
}

/* Shared Card/List controls for every populated Guideline tab. */
.guideline-section-actions{align-items:center;display:flex;flex:0 0 auto;gap:8px;min-width:0}
.guideline-view-toggle{align-items:stretch;background:#fff;border:1px solid #e5e7eb;border-radius:7px;display:inline-flex;overflow:hidden}
.guideline-view-toggle-btn{align-items:center;background:#fff;border:0;border-radius:0;color:#8b93a1;display:inline-flex;font-size:12px;font-weight:500;gap:6px;height:32px;justify-content:center;line-height:1;padding:0 10px;white-space:nowrap}
.guideline-view-toggle-btn+.guideline-view-toggle-btn{border-left:1px solid #e5e7eb}
.guideline-view-toggle-btn:hover,.guideline-view-toggle-btn:focus{background:#fff8f8;color:#D92D30;outline:0}
.guideline-view-toggle-btn.active{background:#fff1f1;color:#D92D30;font-weight:600}

/* Video list view */
.guideline-video-cards.guideline-view-list{display:block!important;width:100%}
.guideline-video-cards.guideline-view-list .guideline-video-card{align-items:center;background:#fff;border:0!important;border-bottom:1px solid #edf0f3!important;border-radius:0!important;box-shadow:none!important;display:grid!important;gap:12px;grid-template-columns:42px minmax(0,1fr) 32px;margin:0!important;max-width:none!important;min-height:62px;padding:10px 12px!important;width:100%!important}
.guideline-video-cards.guideline-view-list .guideline-video-card:last-child{border-bottom:0!important}
.guideline-video-cards.guideline-view-list .guideline-video-preview{align-items:center;background:#fff1f1!important;border:0!important;border-radius:8px!important;display:flex;grid-column:1;grid-row:1;height:42px!important;justify-content:center;min-height:0!important;overflow:hidden;width:42px!important}
.guideline-video-cards.guideline-view-list .guideline-video-preview>img{height:100%!important;object-fit:cover!important;width:100%!important}
.guideline-video-cards.guideline-view-list .guideline-video-preview>i{color:#D92D30;font-size:17px!important}
.guideline-video-cards.guideline-view-list .guideline-video-meta{align-self:center;grid-column:2;grid-row:1;min-width:0;padding:0!important}
.guideline-video-cards.guideline-view-list .guideline-video-title{color:#111827;font-size:13px;font-weight:600;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guideline-video-cards.guideline-view-list .guideline-video-type{color:#8b93a1;font-size:11px;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guideline-video-cards.guideline-view-list .guideline-item-menu{align-self:center;grid-column:3;grid-row:1;justify-self:end;position:static!important}

/* Video card view */
.guideline-video-cards.guideline-view-card{display:grid!important;gap:12px;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));width:100%}
.guideline-video-cards.guideline-view-card .guideline-video-card{margin:0!important;max-width:none!important;min-width:0;position:relative;width:auto!important}
.guideline-video-cards.guideline-view-card .guideline-video-preview{aspect-ratio:16/9;height:auto!important;min-height:120px;width:100%!important}

/* Document list view */
.guideline-pdf-cards.guideline-view-list .guideline-doc-table-scroll{overflow:visible}
.guideline-pdf-cards.guideline-view-list .guideline-doc-table,.guideline-pdf-cards.guideline-view-list .guideline-doc-table-body{min-width:0!important;width:100%!important}
.guideline-pdf-cards.guideline-view-list .guideline-doc-table-header{display:none!important}
.guideline-pdf-cards.guideline-view-list .guideline-doc-table-row{align-items:center;background:#fff;border:0!important;border-bottom:1px solid #edf0f3!important;display:grid!important;gap:2px 12px;grid-template-columns:42px minmax(0,1fr) 32px!important;min-height:66px;padding:10px 12px!important}
.guideline-pdf-cards.guideline-view-list .guideline-doc-table-row:last-child{border-bottom:0!important}
.guideline-pdf-cards.guideline-view-list .guideline-doc-col-document{display:contents!important}
.guideline-pdf-cards.guideline-view-list .guideline-doc-file-icon{align-items:center;align-self:center;background:#fff1f1;border:0;border-radius:8px;color:#D92D30;display:flex;font-size:9px;font-weight:700;grid-column:1;grid-row:1/span 3;height:42px;justify-content:center;margin:0;width:42px}
.guideline-pdf-cards.guideline-view-list .guideline-doc-title-cell{grid-column:2;grid-row:1;min-width:0;padding:0!important}
.guideline-pdf-cards.guideline-view-list .guideline-doc-title-text{color:#111827;font-size:13px;font-weight:600;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guideline-pdf-cards.guideline-view-list .guideline-doc-file-meta{grid-column:2;grid-row:2;min-width:0}
.guideline-pdf-cards.guideline-view-list .guideline-doc-file-name,.guideline-pdf-cards.guideline-view-list .guideline-doc-file-sub,.guideline-pdf-cards.guideline-view-list .guideline-doc-date{color:#8b93a1;font-size:11px;line-height:1.3}
.guideline-pdf-cards.guideline-view-list .guideline-doc-file-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.guideline-pdf-cards.guideline-view-list .guideline-doc-file-sub{display:none}
.guideline-pdf-cards.guideline-view-list .guideline-doc-date{grid-column:2;grid-row:3;padding:0!important}
.guideline-pdf-cards.guideline-view-list .guideline-doc-actions{align-self:center;grid-column:3;grid-row:1/span 3;justify-self:end;padding:0!important}

/* Document card view */
.guideline-pdf-cards.guideline-view-card .guideline-doc-table-scroll{overflow:visible}
.guideline-pdf-cards.guideline-view-card .guideline-doc-table{min-width:0!important;width:100%!important}
.guideline-pdf-cards.guideline-view-card .guideline-doc-table-header{display:none!important}
.guideline-pdf-cards.guideline-view-card .guideline-doc-table-body{display:grid!important;gap:12px;grid-template-columns:repeat(auto-fill,minmax(220px,1fr))}
.guideline-pdf-cards.guideline-view-card .guideline-doc-table-row{background:#fff;border:1px solid #e5e7eb!important;border-radius:9px;display:block!important;min-width:0;padding:14px!important;position:relative}
.guideline-pdf-cards.guideline-view-card .guideline-doc-col-document{align-items:flex-start;display:flex!important;gap:10px;min-width:0;padding-right:28px}
.guideline-pdf-cards.guideline-view-card .guideline-doc-file-icon{align-items:center;background:#fff1f1;border:0;border-radius:8px;color:#D92D30;display:flex;flex:0 0 46px;font-size:9px;font-weight:700;height:46px;justify-content:center;margin:0;width:46px}
.guideline-pdf-cards.guideline-view-card .guideline-doc-file-meta,.guideline-pdf-cards.guideline-view-card .guideline-doc-title-cell{min-width:0}
.guideline-pdf-cards.guideline-view-card .guideline-doc-title-cell{margin-top:12px;padding:0!important}
.guideline-pdf-cards.guideline-view-card .guideline-doc-title-text{color:#111827;font-size:13px;font-weight:600;overflow-wrap:anywhere}
.guideline-pdf-cards.guideline-view-card .guideline-doc-date{color:#8b93a1;font-size:11px;margin-top:5px;padding:0!important}
.guideline-pdf-cards.guideline-view-card .guideline-doc-actions{padding:0!important;position:absolute;right:8px;top:8px}

@media (max-width:767px){
    .guideline-video-section-header{align-items:flex-start!important;flex-wrap:wrap;gap:8px}
    .guideline-section-actions{justify-content:space-between;width:100%}
    .guideline-video-cards.guideline-view-card,.guideline-pdf-cards.guideline-view-card .guideline-doc-table-body{grid-template-columns:minmax(0,1fr)}
}
