@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@font-face {
    font-family: 'Montserrat';
    src: url('/font/Montserrat-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/font/Montserrat-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Montserrat';
    src: url('/font/Montserrat-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

:root {
  --black: black;
  --white: white;
  --yellow: #ffdd00;
  --corporate-blue: #023f88;
  --action-blue: #007aff;
  --bright-blue: #00bdf2;
  --subtle-blue: #b9e5fb;
  --gradients-subtle-blue-50: #f0f9ff;
  --gradients-subtle-blue-700: #07699d;
  --gradients-subtle-blue-950: #0a3047;
  --gradients-green-100: #e7f5d2;
  --gradients-green-700: #486b20;
  --secondary-green: #8dc63f;
  --red: #ff0000;
  --gradients-red-700: #d70000;
  --gradients-pink-700: #ca0c47;
/* Background grey is called greyscale lighter grey in Figma */
  --background-grey: #f6f6f6;
  --black-inactive: #00000080;
  --greyscale-black-inactive: rgba(0, 0, 0, 0.3);
  --greyscale-light-grey: #e5e5e5;
  --greyscale-subtle-grey: #bbbbbb;
  --greyscale-grey: #777777;
  --greyscale-dark-grey: #4a4a4a;
  --disabled-grey: #0000004d;
  --disabled-opacity: 0.3;
  
  --item-border: 1px solid var(--greyscale-subtle-grey);
  --item-border-toast: 1px solid var(--greyscale-light-grey);
  --border-radius: 4px;
  --box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.10);
}

html, body {
    font-family: 'Montserrat', Helvetica, Arial, sans-serif;
}

body {
    background-color: var(--background-grey);
    color: var(--black);
}

.h1-bold {
    font-weight: 700;
    font-size: 42px;
    line-height: 48px;
    margin: 0;
}

.h2-bold {
    font-weight: 700;
    font-size: 32px;
    line-height: 40px;
    margin: 0;
}

.h3-regular {
    font-weight: 400;
    font-size: 24px;
    line-height: 32px;
    margin: 0;
}

.h4-medium {
    font-weight: 500;
    font-size: 18px;
    line-height: 24px;
    margin: 0;
}

.body-bold {
    font-weight: 700;
    font-size: 14px;
    line-height: 24px;
    margin: 0px;
}

.body-medium {
    font-weight: 500;
    font-size: 14px;
    line-height: 24px;
    margin: 0px;
}

.body-regular {
    font-weight: 400;
    font-size: 14px;
    line-height: 24px;
    margin: 0px;
}

.small-medium {
    font-weight: 500;
    font-size: 12px;
    line-height: 20px;
    margin: 0px;
}

.smallest-medium {
    font-weight: 500;
    font-size: 10px;
    line-height: 16px;
    margin: 0px;
}

.topbar {
    background-color: var(--white);
    color: var(--corporate-blue);
    box-shadow: none;
    gap: 0px;
    padding: 16px 32px;
    border-bottom: var(--item-border);
}

.navmenu {
    box-shadow: none;
    padding: 12px 32px;
}

.required {
    color: var(--red);
}

/* Override TelerikMenu styles */
/* Set background color for the menu */
.k-menu:not(.k-context-menu) {
    background-color: var(--white);
}

/* Add a bottom border to menu links to avoid layout shift */
.k-menu-link {
    border-bottom: 2px solid var(--white);
}

    /* Add a bottom border for the top menu item when it is active, i.e. on hover and when popup is open */
    .k-menu-link.k-state-active,
    .k-menu-link.k-active {
        border-bottom: 2px solid var(--corporate-blue);
    }

/* Remove shadow around menu item when clicked */
.k-menu:not(.k-context-menu) > .k-item:focus {
    box-shadow: none;
}

/* Set text color on menu links */
.k-menu-link {
    color: var(--greyscale-dark-grey);
}

/* Remove arrow on menu items */
.k-menu-expand-arrow {
    display: none;
}

/* Style the active menu link */
.k-menu-link:active {
    color: var(--greyscale-dark-grey);
    background-color: var(--white);
}

/* Style the popup menu border */
.k-menu-popup {
    border-bottom: 1px solid var(--greyscale-dark-grey);
    border-left: 1px solid var(--greyscale-dark-grey);
    border-right: 1px solid var(--greyscale-dark-grey);
    border-top: none;
    box-shadow: none;
}

/* Telerik dropdown list */
.k-picker-solid {
    background-color: var(--white);
}

.k-list .k-selected, .k-list .k-selected:hover {
    background-color: var(--white);
    color: var(--black);
    text-decoration: underline;
}

.k-list-item:hover {
    background-color: var(--white);
    color: var(--black);
    text-decoration: underline;
}

/* TelerikWindow/Modal */
.k-window {
    border-radius: var(--border-radius) !important;
}

.k-window-content {
    padding-inline: 0px !important;
}

    .k-window-content:first-child {
        padding-top: 0px !important;
    }

    .k-window-content:last-child {
        padding-bottom: 0px !important;
    }

/* TelerikTextBox styles */
.k-input-solid.k-invalid {
    border-color: var(--gradients-red-700);
}

/* TelerikGrid — remove alternating row color */
.k-grid .k-alt {
    background-color: inherit;
}

.k-grid .k-table-row.k-table-alt-row {
    background-color: inherit;
}

.k-toolbar-solid {
    background-color: var(--white);
    padding: 0px 0px 24px 0px;
    border: none;
}

.k-grid {
    border: none;
}

    .k-grid .k-table-row, .k-grid .k-table-th {
        border: none;
    }

    .k-grid .k-table-tbody .k-table-row {
        cursor: pointer;
    }

    .k-grid .k-sort-icon,
    .k-grid .k-i-sort-asc-sm,
    .k-grid .k-i-sort-desc-sm {
        color: var(--corporate-blue, #023F88);
    }

    .k-grid .k-grid-content {
        overflow-y: hidden;
        overflow-x: auto;
    }

    .k-grid .k-grid-header {
        padding-right: 0 !important;
    }

    .k-grid td, .k-grid .k-table-td {
        border-left: none;
        border-top: none;
        border-right: none;
        border-bottom: 1px solid var(--Grayscale-Light-Gray, #E5E5E5);
    }

        .k-grid .k-table-td .truncate {
            overflow: hidden;
            white-space: nowrap;
            text-overflow: ellipsis;
            display: block;
        }

    .k-grid .k-searchbox {
        width: 100%;
        border-radius: 8px;
        border: 1px solid var(--Grayscale-Lighter-Gray, #F6F6F6);
        background: var(--Grayscale-Lighter-Gray, #F6F6F6);
        box-shadow: none;
        color: var(--Grayscale-Black, #000);
        font-family: Montserrat;
        font-size: 14px;
        font-style: normal;
        font-weight: 400;
        line-height: 24px; /* 171.429% */
    }

        .k-grid .k-searchbox:hover,
        .k-grid .k-searchbox:focus-within {
            border-color: var(--Grayscale-Lighter-Gray, #F6F6F6);
            box-shadow: none;
        }

        .k-grid .k-searchbox .k-input-inner {
            background-color: transparent;
            color: #4A4A4A;
            padding: 4px 0px;
        }

        .k-grid .k-searchbox .k-input-icon {
            color: #777777;
        }

    .k-grid .k-toolbar .k-toolbar-item:has(.k-searchbox) {
        width: 100%;
    }

.k-toolbar-item:has(.k-searchbox) > span {
    display: flex;
    width: 1300px;
    height: 40px;
    padding: 12px 8px;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.k-table-thead, .k-table-header, .k-table-group-sticky-header {
    background: var(--Grayscale-Lighter-Gray, #F6F6F6);
}

.k-grid .k-table-td, .k-grid td {
    color: var(--Grayscale-Dark-Gray, #4A4A4A);
    font-family: Montserrat;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

/* TelerikGrid built-in pager */
.k-pager {
    border-top: 1px solid #E5E5E5 !important;
    border-bottom: none !important;
    border-left: none !important;
    border-right: none !important;
    background: transparent !important;
    padding: 8px 16px !important;
    font-family: Montserrat !important;
    font-size: 14px !important;
}

.k-pager-nav {
    color: #023F88 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

    .k-pager-nav:hover,
    .k-pager-nav:focus {
        color: #023F88 !important;
        background: transparent !important;
        box-shadow: none !important;
    }

/* Hide all unselected page number buttons, show only current */
.k-pager-numbers .k-button:not(.k-selected):not(.k-state-selected),
.k-pager-numbers-wrap .k-button:not(.k-selected):not(.k-state-selected),
.k-pager-numbers li:not(.k-current-page) {
    display: none !important;
}

.k-pager-numbers .k-selected,
.k-pager-numbers .k-state-selected,
.k-pager-numbers-wrap .k-selected,
.k-pager-numbers .k-current-page .k-button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 28px !important;
    height: 28px !important;
    background: #023F88 !important;
    color: #fff !important;
    border-radius: 4px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    border: none !important;
    box-shadow: none !important;
}

.k-pager-info {
    color: #4A4A4A !important;
    font-family: Montserrat !important;
    font-size: 14px !important;
    font-weight: 400 !important;
}

/* Customers + ProductionSites shared */
.form-label {
    color: var(--greyscale-dark-grey) !important;
}

.bottom-bar-container {
    width: 100%;
    background: var(--background-grey);
    border-radius: var(--border-radius);
    padding: 16px;
    box-shadow: var(--box-shadow);
    margin-top: 20px;
}

.bottom-bar-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: var(--greyscale-dark-grey);
}

.warning-container {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--red);
}

.warning-icon {
    display: flex;
}

.bottom-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
}

.confirm-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
