﻿
:root {
    /* color variables */
    --primary-color: #29aae2; /*ccs blue*/
    --secondary-color: #8cc63f; /*ccs green*/
    --tertiary-color: #808285; /*ccs gray*/

    --inactive-secondary-color: #BDDBF1; /*this is used for the text of inactive tabs in a tab control*/
    --background-color: #ECF4F9; /*this is the background color for the entire page*/
    --secondary-background-color: #343a40; /*this is the background color for the top row (dark charcoal color)*/
    --teriary-background-color: #F7F7F7; /*this is the background color for sections in a layout or for the pre-login background.*/

    --primary-hover-color: #f5f5f5; /*this is the hover color for lists and tables*/
    /* text color variables */
    --primary-text-color: #212529; /*this is the text color for primary backgrounds (black)*/
    --secondary-text-color: #FFF; /*this is the text color for secondary backgrounds (white)*/
    --tertiary-text-color: #808285; /*this is the text color for tertiary colors (gray)*/
}

/*color classes*/
.ccs-primary-color {
    color: var(--primary-color) !important;
}

.ccs-secondary-color {
    color: var(--secondary-color) !important;
}

.ccs-tertiary-color {
    color: var(--tertiary-color) !important;
}

.ccs-primary-background-color {
    background-color: var(--primary-color) !important;
}

.ccs-secondary-background-color {
    background-color: var(--secondary-color) !important;
}

.ccs-tertiary-background-color {
    background-color: var(--tertiary-color) !important;
}

.ccs-primary-text-color {
    color: var(--primary-text-color) !important;
}

.ccs-secondary-text-color {
    color: var(--secondary-text-color) !important;
}

.ccs-tertiary-text-color {
    color: var(--tertiary-text-color) !important;
}

.ccs-background-color {
    background-color: var(--background-color) !important;
}

.ccs-body {
    background-color: var(--background-color) !important;
}

/* Utility classes */

.ccs-cursor-pointer {
    cursor: pointer !important;
}
/*default style for what a card should look like.*/
/*Can be applied to cards or anything that looks like a card. IE MudCard, MudDialog, MudPaper etc*/
.ccs-card {
    border-top: 5px solid var(--primary-color);
}

.ccs-card.error {
    border-top: 5px solid var(--mud-palette-error);
}

.ccs-card-title {
    color: var(--primary-color);
    font-size: 15pt !important;
}

.ccs-selected-list-item {
    background-color: var(--primary-hover-color) !important;
}

.ccs-card .mud-card-actions {
    justify-content: end;
}

.ccs-edititem-card {
    padding: 20px;
    padding-top: 30px;
}

.ccs-selected-list-item {
    background-color: var(--primary-hover-color) !important;
}

.ccs-textfield input {
    text-align: right;
}

.crud-save-btn {
    /*    position: absolute !important;
    right: 4rem;
    bottom: 6rem;*/
}

.crud-cancel-btn {
    /*    position: absolute !important;
    right: 8rem;
    bottom: 6rem;*/
    background-color: var(--secondary-background-color) !important;
}

.ccs-small-fab {
    height: 32px !important;
    width: 32px !important;
    min-height: 32px !important;
}

    .ccs-small-fab svg {
        color: white !important;
    }

.ccs-tiny-fab {
    height: 18px !important;
    width: 18px !important;
    min-height: 18px !important;
}

    .ccs-tiny-fab svg {
        color: white !important;
    }

.ccs-invisible {
    visibility: hidden;
}

.ccs-show-hover:hover .ccs-invisible {
    visibility: visible;
}

.ccs-footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 2.5rem;
}

/*Apply to MudTabs to make it display with css colors. Selected tab is white. other tabs are blue. /*/
.ccs-tab {
    background-color: white;
}

    .ccs-tab .mud-tabs-tabbar-content {
        background-color: var(--primary-color);
    }

    .ccs-tab .mud-tabs-tabbar-wrapper {
        width: 99% !important;
    }

        .ccs-tab .mud-tabs-tabbar-wrapper .mud-tooltip-root {
            width: 95% !important;
        }

    .ccs-tab .mud-tab {
        background-color: var(--primary-color) !important;
        color: var(--secondary-text-color) !important;
        font-weight: 600;
    }

        .ccs-tab .mud-tab.mud-tab-active {
            background-color: white !important;
            color: var(--primary-color) !important;
            border-left: 5px solid #28AAE1 !important;
            border-right: 5px solid #28AAE1 !important;
        }

    .ccs-tab .mud-tab-slider {
        visibility: hidden;
    }

    .ccs-tab .mud-tabs-panels {
        padding: 5px;
    }

/*CCS Nav Menu CLasses*/
/*new nav classes*/
.css-nav-item {
    border-bottom: 1px solid rgba(0, 0, 0, .125) !important;
}

    .css-nav-item:hover:not(.mud-nav-group), .css-nav-sub-item:hover, .mud-nav-link:hover {
        background-color: var(--secondary-background-color) !important;
    }

    .css-nav-item .mud-icon-root {
        color: #FFF !important;
        font-size: 1.5rem !important;
    }

    .css-nav-item .mud-nav-link-text {
        color: #FFF !important;
        font-size: 1rem !important;
    }

.css-nav-sub-item .mud-nav-link-text p {
    color: #FFF !important;
    font-size: 0.8rem !important;
    margin-left: 6px;
}

.sub-menu-group-header {
    background-color: #28AAE1;
    color: #FFF;
    font-size: 0.6rem;
    padding: 8px 0 8px 20px;
}

    .sub-menu-group-header:first-of-type {
        border-top: 1px solid #407d91ba !important;
    }

/*

.ccs-nav {
}

    .ccs-nav .nav-item {
        font-size: 0.9rem;
        padding: 0 !important;
    }

        .ccs-nav .nav-item:first-of-type {
            padding-top: 1rem;
        }

        .ccs-nav .nav-item:last-of-type {
            padding-bottom: 1rem;
        }

        .ccs-nav .nav-item .nav-link {
            color: var(--secondary-text-color);
            background: none;
            border: none;
            height: 3rem;
            display: flex;
            align-items: center;
            line-height: 3rem;
            width: 100%;
            border-bottom: 1px solid rgba(0, 0, 0, .125);
        }

            .ccs-nav .nav-item .nav-link:hover {
                background-color: #343A40;
                color: white;
            }

    .ccs-nav .nav-scrollable {
        display: none;
    }

    .ccs-nav .navbar-toggler:checked ~ .nav-scrollable {
        display: block;
    }

*/

@media (min-width: 641px) {
    .ccs-nav .navbar-toggler {
        display: none;
    }

    .ccs-nav .nav-scrollable {
        /* Never collapse the sidebar for wide screens */
        display: block;
        /* Allow sidebar to scroll for tall menus */
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}



/*table*/
.ccs-table {
}

    .ccs-table th {
        font-weight: bold !important;
        background-color: var(--primary-color) !important;
    }

    .ccs-table tbody tr:hover {
        background-color: var(--primary-hover-color);
    }

    .ccs-table .ccs-table-showOnHover {
        visibility: hidden;
    }

    .ccs-table tbody tr:hover .ccs-table-showOnHover {
        visibility: visible;
    }

    .ccs-table thead {
        background-color: var(--primary-color);
        color: var(--secondary-text-color) !important;
    }

        .ccs-table thead span {
            color: var(--secondary-text-color) !important;
        }

    .ccs-table .mud-table-root .mud-table-head .mud-table-cell {
        color: var(--secondary-text-color) !important;
    }

    .ccs-table th {
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }

    .ccs-table td {
        padding-top: 7px !important;
        padding-bottom: 7px !important;
    }

    .ccs-table .row-clickable {
        cursor: pointer
    }

    .ccs-table .mud-toolbar .mud-menu .mud-button-root {
        background-color: var(--mud-palette-primary) !important;
        color: var(--mud-palette-primary-text) !important;
        --mud-ripple-color: var(--mud-palette-primary-text) !important;
        --mud-ripple-opacity: var(--mud-ripple-opacity-secondary) !important;
        padding: 0;
        font-family: var(--mud-typography-button-family);
        font-size: var(--mud-typography-button-size);
        font-weight: var(--mud-typography-button-weight);
        line-height: var(--mud-typography-button-lineheight);
        letter-spacing: var(--mud-typography-button-letterspacing);
        text-transform: var(--mud-typography-button-text-transform);
        height: 32px !important;
        width: 32px !important;
    }

    .ccs-table .mud-toolbar .mud-menu .mud-button-root:hover {
        background-color: var(--mud-palette-primary-darken) !important;
    }
    /*
    .ccs-table p {
        font-size: 0.8rem !important;
    }

    .ccs-table tr {
        height: 41px !important;
    }

  .ccs-table td:last-of-type {
        position: relative;
    }

        .ccs-table td:last-of-type > .action-buttons {
            display: none;
            position: absolute;
            top: 50%;
            left: 40%;
            transform: translate(-50%, -50%);
            z-index: 1;
        }

    .ccs-table tr:hover td:last-of-type > .action-buttons {
        display: block;
    }

    .ccs-table.mud-table-sticky-header * table thead * th {
        background-color: .action-buttons(--primary-color) !important;
    }

    .ccs-table td:last-of-type > .action-buttons .mud-fab-size-small {
        height: 30px !important;
        width: 36px !important;
    }*/
    .ccs-fab-container {
        position: fixed;
        bottom: 50px;
        right: 50px;
        padding-right: 40px;
    }

.ccs-timezone-container {
    position: fixed;
    bottom: 20px;
    right: 50px;
    padding-right: 40px;
}


.ccs-overlay {
    vertical-align: middle;
    z-index: 1101 !important;
}

.ccs-overlay .mud-card {
    max-height: 90%;
}

    .ccs-overlay .mud-card-content {
        overflow-x: auto;
    }



.ccs-overlay .mud-overlay-content {
    max-height: 90vh;
    vertical-align: middle;
    overflow-y: auto;
    display: flex;
    justify-content: center;
    padding: 15px;
}

.justify-self-start {
    justify-self: start;
}
img, svg {
    vertical-align: middle;
}


/*
    ANIMATIONS
*/
/* Slide in from left animation */
@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Slide out to left animation */
@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

/* Make the numeric input resemble Mud TextField and have explicit size */
input.ccs-mud-like-input,
input.mud-input-control.ccs-mud-like-input {
    width: 3.6rem; /* compact width; adjust to taste */
    height: 36px; /* matches Mud height */
    line-height: 1;
    padding: 0.375rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(0,0,0,0.12);
    background: var(--mud-palette-background, #fff);
    box-sizing: border-box;
    text-align: center; /* center numeric text horizontally */
}

/* remove default top alignment if any */
.mud-table td .ccs-input-wrap {
    align-items: center;
}

/* Optional: reduce inner input outline to match Mud */
input.ccs-mud-like-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(63,81,181,0.08);
    border-color: rgba(63,81,181,0.5);
}

