﻿/* Toolbar container */

body {
            padding: 0px;
            margin: 0px;
            height: auto;
            width: auto;
            font-size: 12px !important;
            font-family: Tahoma, "Source Sans Pro", "Helvetica Neue", Helvetica, Arial, sans-serif;
        }

.headerContainer{
    justify-content: space-between;
    height: 3.8vh !important;
    min-height: 30px;
    display: flex !important;
    align-items: center;
    background-image: url(/dist/css/images/titlebg.jpg);
    background-color: #3c8dbc; /* fallback if image missing */
    padding: 0 5px;
}

.container {
    padding: 0;
    margin: 0;
    width: 100%;
    max-width: 100%;
}

/* Header area fixes */
.main-header {
    min-height: 55px !important;
}

.clsLoadHide {
    display: block;
}



/* Layout sections */
.box {
    font-size: 14px;
    font-weight: 500;
    font-family: Tahoma, sans-serif;
}
.box.left {
    flex: 1;
}
.box.middle {
    flex: 2;
    text-align: center;
}
.box.right {
    flex: 1;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}



/* Responsive */
@media (max-width: 600px) {
    .container {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    .box {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }
}

.clsSVGHW {
    height: 14px !important;
    width: 14px !important;
}

.blink_me {
    animation: blinker 1s linear infinite;
    color: red;
    background-color: yellow;
    padding: 1px 5px;
    font-weight: bold;
}

@keyframes blinker {
    50% {
        opacity: 0;
    }
}

.bell-wrapper {
    width: 20px;
    height: 20px;
    display: inline-block;
    position: relative;
    transition: transform 0.2s ease-in-out;
    cursor: pointer;
}

    .bell-wrapper:hover {
        transform: scale(1.2);
    }

/* =====================================================================
   Kendo Window / Dialog look - same as the old ComposeEmail1 page
   (old page used the Kendo MATERIAL theme: indigo #3F51B5 title bar,
   white bold title, indigo primary buttons; "Do Not Send" / "Cancel"
   stay red through their inline style="background-color:red;").
   The new layout loads Kendo DEFAULT v14, where the title bar is grey and
   a plain <button class="k-primary"> gets no theme styling at all.
   Lives here (Email.css, loaded by _LayoutEmail) so every email page -
   New Mail, Reply/Forward/Resend, grids - gets the same windows.
   ===================================================================== */

/* -- Title bar (kendoWindow + kendoDialog) -- */
.k-window .k-window-titlebar,
.k-dialog .k-dialog-titlebar {
    background-color: #3F51B5 !important;
    color: #FFFFFF !important;
    border-bottom: none !important;
    padding: 12px 20px !important;
}

.k-window .k-window-title,
.k-dialog .k-dialog-title {
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    font-family: Tahoma, 'Source Sans Pro', 'Helvetica Neue', Helvetica, Arial, sans-serif !important;
    height: auto !important;
    line-height: 1.4 !important;
}

    .k-window .k-window-title b,
    .k-dialog .k-dialog-title b {
        color: #FFFFFF !important;
    }

/* Close / minimise / maximise icons on the indigo bar */
.k-window .k-window-titlebar .k-button,
.k-window .k-window-titlebar .k-window-titlebar-action,
.k-window .k-window-titlebar .k-icon,
.k-window .k-window-titlebar .k-svg-icon {
    color: #FFFFFF !important;
    background: transparent !important;
    border: none !important;
}

    .k-window .k-window-titlebar .k-button:hover {
        background: rgba(255, 255, 255, 0.15) !important;
    }

.k-window {
    border: none !important;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35) !important;
}

/* -- Buttons inside windows: "Send Anyway", "Ok", "Allow", "Send Mail" ... --
   No !important on background-color, so the inline red on
   "Do Not Send" / "Cancel" still wins, exactly as on the old page. */
.k-window button.k-primary,
.k-window .k-button.k-primary,
.k-dialog .k-button-solid-primary {
    background-color: #3F51B5;
    border: 1px solid #2C3A8C;
    color: #FFFFFF !important;
    font-size: 16px;
    font-family: Arial, Helvetica, sans-serif;
    padding: 3px 14px;
    min-width: 100px;
    width: auto !important;          /* compose-email.css fixes button.k-primary at 100px -> "Send Anyway" wrapped */
    white-space: nowrap;
    margin-left: 2px;
    border-radius: 0;
    cursor: pointer;
    line-height: 1.4;
    box-shadow: none;
    background-image: none;
}

    .k-window button.k-primary:hover,
    .k-window .k-button.k-primary:hover,
    .k-dialog .k-button-solid-primary:hover {
        filter: brightness(1.12);
    }

    .k-window button.k-primary:disabled,
    .k-window .k-button.k-primary:disabled {
        opacity: 0.6;
        cursor: default;
    }

/* Red buttons ("Do Not Send", "Cancel") - keep the darker red border/hover */
.k-window button.k-primary[style*="red"] {
    border-color: #B30000;
}

/* kendoDialog actions ("Subject Reminder", "VAID WORLD", "Sender Alert") render
   .k-button.k-button-primary (older builds: k-button-solid-primary), coloured coral by the default theme - force indigo */
.k-dialog .k-button.k-button-solid-primary,
.k-dialog .k-button.k-button-solid-primary:hover,
.k-dialog .k-button.k-button-solid-primary:focus,
.k-dialog .k-button.k-button-primary,                /* Kendo 2026 class name */
.k-dialog .k-button.k-button-primary:hover,
.k-dialog .k-button.k-button-primary:focus {
    background-color: #3F51B5 !important;
    border-color: #2C3A8C !important;
    color: #FFFFFF !important;
    background-image: none !important;
}
