﻿/*Telerik Notification css*/
.custom-notification-parent {
    position: absolute; /* lets the notifications use this parent for positioning */
    left: 50%;
    top: 10%;
    transform: translate(-50%, -50%);
    z-index: 10000; /* depends on other z-indexes on the page */
}
.custom-positioned-notifications {
    position: relative; /* force the individual notifications respect the position of their parent */
    flex-wrap: nowrap !important; /* display the individual notifications in a single column */
}
.telerik-card-container {
    position: relative;
}
.custom-positioned-notifications .k-notification {
    padding: 10px 20px; /* Increase padding for a larger notification */
    font-size: 1.5rem; /* Increase font size */
}

/*Validation error css*/
.store-error {
    color: #C41230; /* Primary red color */
    background-color: #fdd; /* Light red background */
    border: 1px solid #C41230; /* Red border */
    padding: 10px;
    padding-left: 20px;
    border-radius: 5px;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 10px;
    list-style-type: none; /* Remove default dots */
}
.store-error li::before {
    content: "! "; /* Add exclamation mark */
    color: #C41230; /* Optional: Change color to your primary color */
    font-weight: bold; /* Optional: Make it bold */
}

/*Button css*/
.active-button {
    background-color: #c41230; 
    color: white;
}
.active-button:hover {
    background-color: #a10f25; /* Darker shade for hover */
    color: white;
}

.red-textbox {
    background-color: #ffcccc; /* Light red background */
    border: 1px solid #cc0000; /* Darker red border */
    color: #000000 !important; /* Text color (optional) */
}

/*Telerik items*/
.k-textbox {
    border: 1px solid #cccccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.k-input {
    border: 1px solid #cccccc;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.k-focus {
    border: 1px solid #cccccc;
    box-shadow: 0 3px 6px black !important;
}

/* Small screen/mobile css used in stocked item table */
@media (max-width: 1200px) {
    .shrinks-on-mobile {
        margin-top: 0px
    }

    .shrinks-on-mobile th.k-header {
        padding: 5px
    }

    .shrinks-on-mobile .k-master-row td {
        padding: 5px
    }

    .shrinks-on-mobile .k-grid-content {
        overflow-y: auto;
    }

    .shrinks-on-mobile .k-grid-header,
    .shrinks-on-mobile .k-grid-footer {
        padding-right: 0;
    }

    .shrinks-on-mobile .k-grid-header-wrap,
    .shrinks-on-mobile .k-grid-footer-wrap {
        border-right-width: 0;
    }

    .hidden-on-mobile {
        display: none;
    }

    .visible-on-mobile {
        display: block;
    }
}

/* Handles hiding/showing mobile specific rows */
@media (min-width: 1201px) {
    .hidden-on-mobile {
        display: block;
    }

    .visible-on-mobile {
        display: none;
    }
}

@media (min-width: 900px) {
    .inline-form {
        display: flex;
        gap: 20px; /* Space between the two groups */
    }

    .form-group {
        display: flex;
        flex-direction: column;
    }
}

/*Navigation buttons css*/
.bg-black {
    background-color: #000000;
}

.bg-teal {
    background-color: #008F91;
}

.bg-blue-dark {
    background-color: #043673;
}

.bg-blue-light {
    background-color: #007BC0;
}

.bg-green {
    background-color: #00853E;
}

.bg-purpe {
    background-color: #6A1B9A;
}

.bg-orange {
    background-color: #823E13;
}

.bg-red-rose {
    background-color: #E71321;
}
.nav-link {
    border: 4px solid !important;
}
a.nav-btn-home {
    background-color: transparent;
    border: 4px solid #008285 !important;
    color: #FFFFFF !important;
    border-radius: 4px;
}

a:hover.nav-btn-home,
a:focus.nav-btn-home {
    background-color: #008285 !important;
}

a.nav-btn-home.active {
    background-color: #008285 !important;
}

a.nav-btn-standard-catalog {
    background-color: transparent;
    border: 4px solid #043673 !important;
    color: #FFFFFF !important;
    border-radius: 4px;
}

a:hover.nav-btn-standard-catalog,
a:focus.nav-btn-standard-catalog {
    background-color: #043673 !important;
}

a.nav-btn-standard-catalog.active {
    background-color: #043673 !important;
}

a.nav-btn-warehouse-catalog {
    background-color: transparent;
    border: 4px solid #00853E !important;
    color: #FFFFFF !important;
    border-radius: 4px;
}

a:hover.nav-btn-warehouse-catalog,
a:focus.nav-btn-warehouse-catalog {
    background-color: #00853E !important;
}

a.nav-btn-warehouse-catalog.active {
    background-color: #00853E !important;
}

a.nav-btn-special-orders {
    background-color: transparent;
    border: 4px solid #007BC0 !important;
    color: #FFFFFF !important;
    border-radius: 4px;
}

a:hover.nav-btn-special-orders,
a:focus.nav-btn-special-orders {
    background-color: #007BC0 !important;
}

a.nav-btn-special-orders.active {
    background-color: #007BC0 !important;
}

a.nav-btn-tool-orders {
    background-color: transparent;
    border: 4px solid #823E13 !important;
    color: #FFFFFF !important;
    border-radius: 4px;
}

a:hover.nav-btn-tool-orders,
a:focus.nav-btn-tool-orders {
    background-color: #823E13 !important;
}

a.nav-btn-tool-orders.active {
    background-color: #823E13 !important;
}


a.nav-btn-view-orders {
    background-color: transparent;
    border: 4px solid #6A1B9A !important;
    color: #FFFFFF !important;
    border-radius: 4px;
}

a:hover.nav-btn-view-orders,
a:focus.nav-btn-view-orders {
    background-color: #6A1B9A !important;
}

a.nav-btn-view-orders.active {
    background-color: #6A1B9A !important;
}

a.nav-btn-admin {
    background-color: transparent;
    border: 4px solid #E71321 !important;
    color: #FFFFFF !important;
    border-radius: 4px;
}

a:hover.nav-btn-admin,
a:focus.nav-btn-admin {
    background-color: #E71321 !important;
}

a.nav-btn-admin.active {
    background-color: #E71321 !important;
}

.button-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center; /* Center vertically */
    min-height: 60vh; /* Centers within viewport height */
    gap: 30px;
}

/* Uniform button size */
.custom-button {
    width: 150px;
    height: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: white;
    border-radius: 8px;
    padding: 10px;
}

.custom-button p {
    margin: 0;
    line-height: 1.2;
}

@media (max-width: 809px) {
    .custom-button {
        width: 120px;
        height: 80px;
        padding: 5px; /* reduce internal spacing */
    }

    .custom-button svg {
        display: none; /* hide the icon */
    }

    .button-container {
        gap: 10px;
        min-height: 0vh; /* Centers within viewport height */
    }
}

.custom-button.blue-dark {
    background-color: rgba(4, 54, 115, 0.6); /* Blue with opacity */
    border: 4px solid #043673; /* Blue border */
}
.custom-button.blue-light {
    background-color: rgba(0, 123, 192, 0.6); /* LightBlue with opacity */
    border: 4px solid #007BC0; /* LightBlue border */
}
.custom-button.green {
    background-color: rgba(0, 133, 62, 0.6); /* Green with opacity */
    border: 4px solid #00853E; /* Green border */
}
.custom-button.orange {
    background-color: rgba(130, 62, 19, 0.6);
    border: 4px solid #823E13; /* Orange border */
}
.custom-button.purple {
    background-color: rgba(106, 27, 154, 0.6);
    border: 4px solid #6A1B9A; /* Purple border */
}
.custom-button.red-rose {
    background-color: rgba(231, 19, 33, 0.6); /* Red with opacity */
    border: 4px solid #E71321; /* Red border */
}
.custom-button p {
    margin-top: 10px;
    color: white;
    font-weight: bold;
    font-size: 16px;
    text-decoration: none;
    margin-bottom: 0px;
}

/*Homescreen background css*/
.top-row{
    border-bottom: 0px !important;
    z-index: 9999 !important;
}
html, body {
    height: 100%; /* Make sure the body takes up full viewport height */
}
@media(min-width:810px) {
    .home-page {
        margin: 0;
        position: fixed;
        left: 250px;
        top: 56px;
        width: calc(100vw - 250px );
        height: calc(100vh - 56px); /* Ensure the article takes up full viewport height */
    }
}
@media(max-width:809.98px) {
    .home-page {
        margin: 0;
        position: fixed;
        left: 0;
        width: 100vw;
        height: 100vh;
    }
}
.home-page.background {
    background-image: url('../images/background.jpg'); /* Path to your background image */
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* Optional: gives parallax effect */
    height: 100%; /* Background should cover the screen */
}

.home-page .content {
    position: relative;
    z-index: 1; /* Ensure content is above background */
    padding: 20px;
}

.header-background {
    display: inline-block;
    background-color: rgba(50, 50, 50, 0.75); /* Darker gray with transparency */
    color: white; /* White text for contrast */
    padding: 6px 12px; /* Slightly more padding */
    border-radius: 16px; /* More rounded corners */
}

.header-spacing {
    margin-top: 20px;
    margin-bottom: 10px;
}

/*Misc color coding for pages*/
.green {
    color: #00853E;
}

.purple {
    color: #6A1B9A;
}

.blue-dark {
    color: #043673;
}

.blue-light {
    color: #007BC0;
}

.orange {
    color: #823E13;
}

.icon-green {
    color: #00853E;
    fill: #00853E;
}

.icon-purple {
    color: #6A1B9A;
    fill: #6A1B9A;
}

.icon-blue-dark {
    color: #043673;
    fill: #043673;
}

.icon-blue-light {
    color: #007BC0;
    fill: #007BC0;
}
.icon-orange {
    color: #823E13;
    fill: #823E13;
}

/*Primary and secondary buttons*/
button.btn-primary-cmu {
    background-color: #000;
    color: #fff;
}

button:hover.btn-primary-cmu,
button:focus.btn-primary-cmu {
    background-color: #C41230;
    color: #fff;
}

button.btn-secondary-cmu {
    background-color: transparent;
    border: 1px solid #000;
    color: #000;
}

button:hover.btn-secondary-cmu, button:focus.btn-secondary-cmu {
    background-color: #C41230;
    border: 1px solid #C41230;
    color: #fff;
}

.align-right{
    float:right;
}

.btn-width-large {
    width: 200px;
}

.btn-width-medium {
    width: 125px;
}

.btn-width-small {
    width: 70px;
}

.k-grid-header .k-header {
    font-weight: bold;
}

/*Cart Css*/
.cmu-card-footer {
    background-color: #f0f0f0; /* Use a lighter gray for the background */
    display: flex; /* Enable flexbox */
    flex-direction: column; /* Arrange items in a column */
    justify-content: center; /* Center items vertically */
    align-items: center; /* Center items horizontally */
    padding: 1rem; /* Add padding inside the footer */
    gap: 0.5rem; /* Add space between items */
}

.truncated-text {
    display: -webkit-box; /* Required for -webkit-line-clamp */
    -webkit-line-clamp: 2; /* Truncate to 2 lines */
    -webkit-box-orient: vertical; /* Set the box orientation to vertical */
    overflow: hidden; /* Hide overflow content */
    text-overflow: ellipsis; /* Add ellipsis (...) */
    white-space: normal; /* Allow wrapping */
    margin: 0; /* Remove margin to avoid extra space */
    padding: 0; /* Remove padding to avoid extra space */
    vertical-align: top; /* Align spans properly when inline */
    word-break: break-word;
}

.smaller-text {
    font-size: .9rem;
}

.cart-header {
    display: flex;
    align-items: center; /* Vertically center-align items */
    justify-content: space-between; /* Push header and count to opposite ends */
}

.cart-item-count{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0.5rem 1rem; /* Adds horizontal padding to accommodate text */
    border-radius: 1rem; /* Adjusted for rounded rectangle */
    color: white;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    white-space: nowrap; /* Prevents text from wrapping */
}

.centered-textbox .k-input-inner {
    text-align: center; /* Centers the text horizontally */
}

.input-wrapper-single {
    width: 300px; /* Fixed width for each container */
    box-sizing: border-box; /* Includes padding and border in width */
    display: flex;
    flex-direction: column; /* Stack text box and label vertically */
    align-items: flex-start; /* Align content to the left */
}

.input-wrapper-double {
    width: 615px; /* Fixed width for each container */
    box-sizing: border-box; /* Includes padding and border in width */
    display: flex;
    flex-direction: column; /* Stack text box and label vertically */
    align-items: flex-start; /* Align content to the left */
}

@media (min-width: 1500px) {
    .card-container {
        display: flex;
        flex-wrap: wrap; 
        gap: 1rem; 
        align-items: flex-start; 
    }

    .cart-card {
        width: 400px; 
        box-sizing: border-box; 
    }

    .main-card {
        flex: 1; 
        width: calc(100% - 400px); 
        box-sizing: border-box; 
    }
}
@media (max-width: 1499px) {
    .cart-card {
        width: 100%;
    }
    .main-card {
        width: 100%;
    }
    .card-container {
        flex-direction: column;
    }
}

.btn-full-width{
    width:100%;
}

/*Grid Css*/
.grid-no-scroll .k-grid-content {
    overflow-y: auto;
}

.grid-no-scroll .k-grid-header,
.grid-no-scroll .k-grid-footer {
    padding-right: 0; /* version 2.26 and older requires !important here */
}

.grid-no-scroll .k-grid-header-wrap,
.grid-no-scroll .k-grid-footer-wrap {
    border-right-width: 0;
}

.icon-red {
    color: #E71321;
    fill: #E71321;
}

/*Model valid/invalid text*/
.k-valid {
    border-color: #cccccc !important; /*This gets rid of green border of items in editform to handle the internal form causing css issues*/
}

.k-invalid {
    border-color: #cccccc !important; /*This gets rid of green border of items in editform to handle the internal form causing css issues*/
}

.k-file-validation-message {
    color: red !important;
}

/*Misc*/
.flexable-wrap {
    display: flex;
    flex-wrap: wrap; /* Allows items to wrap onto the next row */
    gap: 1rem; /* Space between items */
    justify-content: flex-start; /* Align items to the left */
}

.info-banner {
    border-radius: 12px; /* Rounded edges */
    width: 100%; /* Ensures it spans the entire container */
    padding: 16px; /* Adds spacing inside */
    box-sizing: border-box; /* Ensures padding doesn't affect width */
    font-weight: bold; /* Improves readability */
}

.info-orange {
    background-color: rgba(130, 62, 19, 0.2); /* Regular orange with 20% opacity */
    border: 4px solid #823E13; /* Regular darker orange border */
}
.info-blue-light {
    background-color: rgba(0, 123, 192, 0.2); /* Regular light blue with 20% opacity */
    border: 4px solid #007BC0; /* Regular light blue border */
}

.content-wrapper {
    position: relative;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.7);
}

.database-label {
    position:absolute; 
    bottom:0; 
    border:solid; 
    border-width:2px; 
    width:100%;
    color:white;
    border-color:white;
}

.padded-bottom{
    margin-bottom:10px;
}

.padded-top {
    margin-top: 10px;
}

.label{
    display:block;
}

.icon-medium{
    width:80px;
    height:80px;
}

.btn-red {
    background-color: #d9534f;
}

.btn-green {
    background-color: #5cb85c;
}

.btn-red:hover {
    background-color: #c9302c;
}

.btn-green:hover {
    background-color: #4cae4c;
}

.nav-link-content {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0; /* Keep top/bottom spacing of the button */
}

.nav-link-text {
    white-space: normal; /* Allow wrapping */
    line-height: 1.2; /* Tighter line spacing within wrapped text */
    display: inline-block;
}

.description-col {
    min-width: 100px;
}