﻿/*minerva.css*/

/*- overwrites*/
h1 {
    color: #495057;
    font-size: 1.8rem;
    margin-bottom: 12px;
}

h2 {
    color: #495057;
    font-size: 1.6rem;
    margin-bottom: 12px;
}

h3 {
    color: #495057;
    font-size: 1.4rem;
    margin-bottom: 12px;
}

h4 {
    color: #495057;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

h5 {
    color: #495057;
    font-size: 1.1rem;
    margin-bottom: 12px;
}

h6 {
    color: #495057;
    font-size: 1rem;
    margin-bottom: 12px;
}

th {
    color: #495057 !important;
}

/*- specific new classes*/

.m-headingUnderline {
    border: none; /* remove default border */
    height: 1px; /* thin line */
    background-color: #ccc; /* light grey color */
    margin: 20px 15%; /* 15% margin on left/right, 20px top/bottom */
    box-shadow: 0 2px 4px rgba(0,0,0,0.2); /* subtle shadow for depth */
}

.m-filter-type-display {
    font-size: 1.17em;
    font-weight: bold; /* 700*/
}

.m-filter-value-display {
    font-size: 1.17em;
    font-weight: 500; /*medium */
    color: darkgrey;
}

.m-image-drop-area .k-upload-dropzone {
    height: 300px;
}

.m-Install-colour {
    background-color: #ff2a1b;
    color: white;
}

.m-DropOff-colour {
    background-color: #f39f18;
    color: black;
}

.m-Delivery-colour {
    background-color: #999950;
    color: white;
}

.m-Snag-colour {
    background-color: #6f4f28;
    color: white;
}

.m-SiteVisit-colour {
    background-color: #287233;
    color: white;
}

.m-StripOut-colour {
    background-color: #edff21;
    color: black;
}

.m-Collection-colour {
    background-color: #f39f18;
    color: white;
}

.m-LocalRun-colour {
    background-color: #7a888e;
    color: white;
}

.m-Courier-colour {
    background-color: #00bb2d;
    color: white;
}

.m-Other-colour {
    background-color: #00bb2d;
    color: white;
}

/*label above display*/

.m-LabelAboveWrapper {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.m-choice-label {
    font-weight: 700;
    margin-bottom: 8px;
/*    font-size:105%;*/
}

.m-LabelAbove {
    text-align: left;
}

.m-LabelAboveBlock {
    width: 100%;
}

.m-cardTitleGreyWhite {
    background-color: slategrey;
    color: white;
}

.m-TextRight {
    text-align: right;
}

/*alternatite colurs from grid rows*/
.m-even-row {
    background-color: #e0f7fa !important; /* Light Blue */
}

.m-odd-row {
    background-color: #ffffff !important; /* White */
}

.m-Component {
    margin-bottom: 12px; /*// was 15px*/
}

.m-NegativeDisplay {
    color: red;
}

.m-WarningDisplay {
    color: white;
    background-color: red;
    font-size: 2em;
    padding: 5px;
}

.m-CarouselBackgroundGrey .k-scrollview-next {
    background-color: lightgrey;
    opacity: 0.5;
}

/* enable absolute positioning inside the Carousel template */
.m-CarouselImageWithText {
    position: relative;
}

    /* style the overlay text inside the Carousel */
    .m-CarouselImageWithText > p {
        position: absolute;
        top: 1rem;
        left: 1.6rem;
        color: rgba(255, 255, 255, .8);
        margin: 0;
        font-style: italic;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
    }

.m-box {
    position: relative;
    width: auto;
    height: 300px;
    overflow: hidden;
    background: #000;
    transition: .1s;
}

    .m-box .m-imgbox {
        position: relative;
        display: inline-block;
        background-color: white;
    }

.box .m-imgbox img {
    transition: .1s;
}

.m-imgbox {
    background-color: white;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.m-box:hover .m-imgbox img {
    opacity: .5;
}

.m-box .content {
    position: absolute;
    bottom: 0px;
    left: 0;
    /* padding: 20px;*/
    box-sizing: border-box;
    transition: .1s;
    opacity: 1;
}

.m-box .content-end {
    position: absolute;
    bottom: 0px;
    right: 0;
    /* padding: 20px;*/
    box-sizing: border-box;
    transition: .1s;
    opacity: 1;
}

.m-box .content-hover {
    position: absolute;
    bottom: 0px;
    left: 0;
    padding: 20px;
    box-sizing: border-box;
    transition: .1s;
    opacity: 0;
}

.m-box:hover .content-hover {
    opacity: 0.7;
    bottom: 0;
}

.m-box .content p {
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    background-color: darkgreen;
}

.m-box .banner {
    position: absolute;
    top: 0px;
    left: 0;
    height: 30px;
    /* padding: 20px;*/
    box-sizing: border-box;
    transition: .1s;
    opacity: 1;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    background-color: darkgreen;
}

.m-box .banner-end {
    position: absolute;
    top: 0px;
    right: 0;
    height: 30px;
    /* padding: 20px;*/
    box-sizing: border-box;
    transition: .1s;
    opacity: 1;
    font-size: 18px;
    color: #fff;
    font-weight: 400;
    background-color: darkgreen;
}

.m-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black */
    color: white;
    text-align: center;
    line-height: 30px; /* Center the text vertically */
    font-size: 16px;
}

.m-section {
    background-color: #f7f9fc;
    background-color: #fff;
    border: 0 solid transparent;
    background-clip: border-box;
    border-radius: 0.4rem;
    padding: 1rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(41, 48, 66, 0.12), 0 1px 4px rgba(41, 48, 66, 0.08);
    margin: 10px 10px 10px 10px;
    padding: 20px 20px 20px 20px;
    height: calc(100% - 20px); /* 100% - margin - padding */
}

.m-section-area {
    background-color: #f7f9fc;
    background-color: #fff;
    border: 0 solid transparent;
    background-clip: border-box;
    border-radius: 0.4rem;
    padding: 1rem;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(41, 48, 66, 0.12), 0 1px 4px rgba(41, 48, 66, 0.08);
    margin: 10px 10px 20px 10px;
    padding: 20px 20px 20px 20px;
}


/*.m-section {
    position: relative;
    margin-bottom: 24px;*/ /* vertical spacing */
    /*padding: 1rem;*/ /* inner padding for the content */
/*}*/

    /* This is the "card" that sits inside the column */
    /*.m-section::before {
        content: "";
        position: absolute;
        inset: 0.5rem;*/ /* how far in from the edges (controls spacing) */
        /*background-color: #fff;
        border-radius: 0.4rem;
        box-shadow: 0 4px 12px rgba(41, 48, 66, 0.12), 0 1px 4px rgba(41, 48, 66, 0.08);
        z-index: 0;
    }*/

    /* Make sure the actual content is above the pseudo-card */
    /*.m-section > * {
        position: relative;
        z-index: 1;
    }*/

.m-endofpage {
    border-top: 1px solid #ccc;
    height: 60px;
    background-color: #e1dddd;
    box-shadow: 0 -5px 10px -5px rgba(0, 0, 0, 0.3);
    position: relative;
}

.m-DataPanel {
    background-color: lemonchiffon;
}

.m-checkboxvertical {
    display: flex;
    flex-direction: column;
}

.m-checkboxhorizontal {
    display: flex;
    flex-direction: row;
    gap: 10px; /* Adjust the space between checkboxes */
}

.m-checkboxitem {
    display: flex;
    align-items: center;
}

/* used on the product single page */
.detail-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid #f0f0f0;
    padding: 0.3rem 0;
    font-size: 1rem;
}

.component-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.2rem 2.5rem; /* row-gap column-gap */
}

/* enable absolute positioning inside the Carousel template */
.image-with-text {
    position: relative;
}

    /* style the overlay text inside the Carousel */
    .image-with-text > p {
        position: absolute;
        top: 1rem;
        left: 1.6rem;
        color: rgba(255, 255, 255, .8);
        margin: 0;
        font-style: italic;
        text-shadow: 1px 1px 2px rgba(0, 0, 0, .8);
    }

.images-nav {
    text-align: center;
    margin-top: 7px;
    display: flex;
    width: 550px;
    overflow-x: auto;
}

.image-thumbnail {
    width: 80px;
    height: 50px;
    border: outset;
    margin: 1px 1px 1px 1px
}

.container-nav {
    display: flex;
    justify-content: center;
}

.detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem 2.5rem; /* row-gap column-gap */
}


/* Inbox-style notification */

.inbox-notification {
    position: relative;
    background-color: var(--kendo-color-surface, #ffffff);
    border: 1px solid rgba(28, 34, 55, 0.12);
    border-left-width: 4px;
    border-radius: 16px;
    padding: 16px 48px 16px 18px;
    margin-bottom: 14px;
    box-shadow: 0 8px 24px rgba(28, 34, 55, 0.08), 0 2px 6px rgba(28, 34, 55, 0.05);
    font-family: var(--kendo-font-family);
    color: var(--kendo-color-on-base, #495057);
    will-change: transform, box-shadow;
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1), box-shadow 320ms cubic-bezier(.22, 1, .36, 1);
}
    .inbox-notification:hover {
        transform: translate3d(0, -2px, 0);
        box-shadow: 0 14px 36px rgba(28, 34, 55, 0.12), 0 4px 10px rgba(28, 34, 55, 0.08);
    }

.inbox-notification-title {
    margin: 0 0 6px 0;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.3;
    color: #495057;
}

.inbox-notification {
    font-size: 14px;
    line-height: 1.45;
}

    .inbox-notification a {
        color: var(--kendo-color-primary);
        text-decoration: none;
        font-weight: 500;
    }

        .inbox-notification a:hover {
            text-decoration: underline;
        }

    /* Severity indicator */
    .inbox-notification.alert-primary {
        border-left-color: var(--kendo-color-primary);
    }

    .inbox-notification.alert-success {
        border-left-color: var(--kendo-color-success);
    }

    .inbox-notification.alert-warning {
        border-left-color: var(--kendo-color-warning);
    }

    .inbox-notification.alert-danger {
        border-left-color: var(--kendo-color-error);
    }

    .inbox-notification.alert-info {
        border-left-color: var(--kendo-color-info);
    }

    .inbox-notification .btn-close {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        position: absolute;
        top: 12px;
        right: 12px;
        width: 34px !important;
        height: 34px !important;
        padding: 0 !important;
        border-radius: 10px !important;
        opacity: 0.65 !important;
        transition: opacity 260ms cubic-bezier(.22, 1, .36, 1), transform 260ms cubic-bezier(.22, 1, .36, 1), background-color 260ms cubic-bezier(.22, 1, .36, 1) !important;
    }

        .inbox-notification .btn-close:hover {
            opacity: 1 !important;
            transform: scale(1.06);
            background-color: rgba(28, 34, 55, 0.08) !important;
        }

/* Ticket-style notification */

@property --angle {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}

.ticketNotification.k-notification-group {
    padding: 14px !important;
    gap: 14px !important;
}

.ticketNotification .k-notification {
    width: clamp(320px, 25vw, 720px) !important;
    border-radius: 18px !important;
    overflow: hidden !important;
    border-width: 1px !important;
    border-style: solid !important;
    padding: 18px 18px !important;
    box-shadow: 0 28px 80px rgba(28, 34, 55, 0.18), 0 8px 22px rgba(28, 34, 55, 0.10), 0 2px 6px rgba(28, 34, 55, 0.08) !important;
    position: relative;
    transform: translate3d(0, 0, 0);
    will-change: transform, box-shadow;
    transition: transform 320ms cubic-bezier(.22, 1, .36, 1), box-shadow 320ms cubic-bezier(.22, 1, .36, 1) !important;
}

    .ticketNotification .k-notification:hover {
        transform: translate3d(0, -4px, 0);
        box-shadow: 0 34px 95px rgba(28, 34, 55, 0.20), 0 10px 26px rgba(28, 34, 55, 0.12), 0 2px 8px rgba(28, 34, 55, 0.10) !important;
    }

    .ticketNotification .k-notification::after {
        content: "";
        position: absolute;
        inset: 0;
        border-radius: 18px;
        padding: 1px;
        pointer-events: none;
        opacity: 0;
        --angle: 0deg;
        background: conic-gradient( from var(--angle), transparent 0deg, currentColor 90deg, transparent 180deg, transparent 360deg );
        -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
        -webkit-mask-composite: xor;
        mask-composite: exclude;
        transition: opacity 260ms cubic-bezier(.22, 1, .36, 1);
    }

    .ticketNotification .k-notification:hover::after {
        opacity: 1;
        animation: notification-rotate 3.5s linear infinite;
    }

.ticketNotification .k-notification-primary {color: var(--kendo-color-primary);}

.ticketNotification .k-notification-success {color: var(--kendo-color-success);}

.ticketNotification .k-notification-error {color: var(--kendo-color-error);}

.ticketNotification .k-notification-warning {color: var(--kendo-color-warning);}

.ticketNotification .k-notification-info {color: var(--kendo-color-info);}

@keyframes notification-rotate {
    to {
        --angle: 360deg;
    }
}

.k-notification.k-notification-error .k-notification-status {color: color-mix(in srgb, var(--kendo-color-error) 75%, #ffffff) !important;}

.k-notification.k-notification-success .k-notification-status {color: color-mix(in srgb, var(--kendo-color-success) 75%, #ffffff) !important;}

.k-notification.k-notification-warning .k-notification-status {color: color-mix(in srgb, var(--kendo-color-warning) 75%, #ffffff) !important;}

.k-notification.k-notification-info .k-notification-status {color: color-mix(in srgb, var(--kendo-color-info) 75%, #ffffff) !important;}

.ticketNotification .k-notification-content {
    font-family: var(--kendo-font-family) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    line-height: 1.35 !important;
    position: relative;
    z-index: 1;
}

.ticketNotification .k-notification-status {
    width: 22px !important;
    height: 22px !important;
    opacity: 0.9 !important;
}

.ticketNotification .k-notification-close-action {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    opacity: 0.65 !important;
    transition: opacity 260ms cubic-bezier(.22, 1, .36, 1), transform 260ms cubic-bezier(.22, 1, .36, 1), background-color 260ms cubic-bezier(.22, 1, .36, 1) !important;
}

    .ticketNotification .k-notification-close-action:hover {
        opacity: 1 !important;
        transform: scale(1.06);
        background-color: rgba(28, 34, 55, 0.08) !important;
    }

    .ticketNotification .k-notification-close-action .k-icon,
    .ticketNotification .k-notification-close-action .k-svg-icon {
        width: 18px !important;
        height: 18px !important;
    }


.grid-cell-overdue {
    /*background-color: var(--kendo-color-error) !important;*/
    /*color: white !important;*/
    color: var(--kendo-color-error) !important;
}

.grid-cell-due-soon {
    /*background-color: var(--kendo-color-warning) !important;*/
    color: var(--kendo-color-warning) !important;
}