body {
}

.allow-button {
    background-color: var(--paleda-background-color);
    border: 1px solid transparent;
    text-decoration: none;
    font-size: 16px;
    margin: 20px 6px 6px 6px;
    cursor: pointer;
    border-radius: 5px;
    color: var(--paleda-font-color);
}

.cookie-popup-content {
    padding: 15px;
}

.cookie-header{
    margin-bottom:15px;
}


.outer-login-container {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 100vh; 
}

.login-form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 350px;
    min-height: 300px; 
}

.form-input-item {
    display: flex;
    flex-direction: column; 
    margin-bottom: 15px;
}

    .form-input-item label {
        font-weight: bold; 
        margin-bottom: 5px; 
    }

    .form-input-item input {
        padding: 8px;
        border: 1px solid #ccc;
        border-radius: 5px;
        width: 100%; 
        box-sizing: border-box; 
    }

/*.overflow-auto {
    overflow: auto;
}*/

/*.gridlayout-item {
    font-size: 1.2em;
    font-weight: 500;
    text-align: center;
    height: 100%;
    padding: 0.5rem;
    text-align: center;
    position: relative;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .gridlayout-item:before {
        content: " ";
        position: absolute;
        z-index: -1;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        opacity: 0.4;
    }
.gridlayout-footer {
    position: relative;
    width: 100%;
    bottom: 0;
}*/

.n2c-navcomponent-text {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Notification list, shared by the bell dropdown and the Händelser page.
   DxDropDown renders its body outside the component, so scoped CSS cannot reach it, and the bundler
   regenerates wwwroot/paleda.se.components.css from this folder on every build. */
.notification-page {
	max-width: 60rem;
	margin: 1.5rem auto;
	padding: 0 1rem;
}

.notification-page-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: 1rem;
}

.notification-page-title {
	margin: 0;
	font-size: 1.4rem;
}

.notification-panel-title {
	font-weight: 600;
}

.notification-mark-all {
	padding: 0;
	border: 0;
	background: none;
	color: var(--paleda-accent, #8a9a5b);
	cursor: pointer;
	font-size: 0.8rem;
	text-decoration: underline;
}

.notification-empty {
	margin: 0.5rem 0;
	color: rgba(0, 0, 0, 0.6);
	font-size: 0.9rem;
}

.notification-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

.notification-item {
	display: flex;
	gap: 0.6rem;
	padding: 0.6rem 0.25rem;
	border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.notification-item:first-child {
	border-top: 0;
}

/* Unread events carry a tint, so the badge count and the list agree at a glance. */
.notification-item-unread {
	background-color: rgba(138, 154, 91, 0.08);
}

.notification-item-icon {
	margin-top: 0.15rem;
	color: var(--paleda-accent, #8a9a5b);
}

.notification-item-body {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	min-width: 0;
}

.notification-item-title {
	padding: 0;
	border: 0;
	background: none;
	color: inherit;
	cursor: pointer;
	font-weight: 600;
	text-align: left;
}

.notification-item-title:hover {
	text-decoration: underline;
}

.notification-item-message {
	margin: 0;
	font-size: 0.85rem;
	line-height: 1.35;
}

.notification-item-footer {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin-top: 0.15rem;
}

.notification-item-time {
	color: rgba(0, 0, 0, 0.55);
	font-size: 0.75rem;
}

.notification-item-link,
.notification-item-read {
	padding: 0;
	border: 0;
	background: none;
	color: var(--paleda-accent, #8a9a5b);
	cursor: pointer;
	font-size: 0.8rem;
	text-decoration: underline;
}

.notification-see-all {
	color: var(--paleda-accent, #8a9a5b);
	font-size: 0.85rem;
}

.paleda-grid {
    width: 100%;
    max-width: 100%;
}

.paleda-grid .dxbl-grid-table > tbody > tr > td {
    vertical-align: top;
}

.striped-table table tbody tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.05);
}

.paleda-grid--virtual {
    height: clamp(360px, calc(100vh - 220px), 760px);
}

.paleda-grid--compact {
    max-height: clamp(260px, calc(100vh - 260px), 560px);
}

@media (max-width: 768px) {
    .paleda-grid--virtual {
        height: clamp(320px, calc(100vh - 170px), 640px);
    }

    .paleda-grid--compact {
        max-height: clamp(220px, calc(100vh - 220px), 480px);
    }
}

body {
    /* Brand colours belong to the shared theme (paleda.se.Theming/wwwroot/paleda.theme.css).
       These aliases only forward them, so no app can drift to a colour of its own. The literal
       fallbacks apply when a non-Paleda DevExpress theme is selected in Admin. */
    --paleda-background-color: var(--paleda-color-primary, #B3BB7F);
    --paleda-secondary-background-color: var(--paleda-color-surface-muted, #E9ECEF);
    --paleda-font-color: var(--paleda-color-text, #212529);
    --paleda-font-color-grey: var(--paleda-color-text-muted, rgba(0,0,0,50%));
}

html, body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.product-public-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0.75rem;
    align-items: stretch;
}

.product-public-card {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.10);
    height: 100%;
    padding: 0.75rem;
}

.product-public-card-layout,
.product-public-card-layout .dxbl-gridlayout-root {
    height: 100%;
}

.product-public-image-cell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 120px;
}

.product-public-image-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.product-public-content {
    text-align: center;
}

.product-public-card h2 {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 0.35rem;
}

.product-public-card p {
    font-size: 0.9rem;
    line-height: 1.35;
    margin: 0 0 0.25rem;
}

.product-public-badge {
    background-color: lawngreen;
    border-radius: 4px;
    color: black;
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    padding: 0.15rem 0.5rem;
}

.product-public-description {
    display: -webkit-box;
    font-size: 0.875rem;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-public-action {
    display: flex;
    justify-content: center;
}

.product-details-popup {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-details-summary {
    text-align: center;
}

.product-details-summary h4 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.product-image-carousel-single,
.product-image-carousel-item {
    align-items: center;
    background-color: var(--paleda-background-color);
    display: flex;
    height: 100%;
    justify-content: center;
    padding: 1.25rem;
}

.paleda-button {
    background-color: var(--paleda-background-color);
    color: var(--black);
    border-color: #6c757d;
    border-radius: 0.25rem;
    padding: 0.375rem 0.75rem;
}

    .paleda-button:hover {
        background-color: var(--paleda-color-primary-hover, #8f9861) !important;
        color: #fff;
        border-color: #6c757d;
    }

    .paleda-button:active {
        background-color: var(--paleda-color-primary-active, #c5bd7b) !important;
        color: #fff;
        border-color: lightgrey !important;
        border-width: medium;
    }

    .paleda-button:focus {
        background-color: var(--paleda-color-primary-active, #c5bd7b) !important;
        color: #fff;
        border-color: lightgrey !important;
        border-width: medium;
    }

.dxbl-treeview-items-container {
    padding-top: 10px !important;
}

.dxbl-treeview-item .dxbl-treeview-item-content {
    height: 21px;
    margin-bottom: 0 !important;
    font-size: 13.3333px;
}

.dxbl-treeview-item .dxbl-treeview-item .dxbl-treeview-item-content {
    height: 18px;
    font-size: 13px;
}

@media (max-width: 450px) {
    dxbl-menu-item a.dxbl-btn {
        font-size: 14px;
        padding-top: 4px;
        padding-bottom: 4px;
    }
}

@media (min-width: 451px) {
    dxbl-menu-item a.dxbl-btn {
        font-size: 16px;
    }
}

a {
    font-size: 16px;
    text-decoration: none;
    color: var(--black);
}

p {
    font-size: 16px;
    color: var(--black);
    margin-bottom: 0;
}

.accordion-button {
    position: static !important;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.loading-indicator-class {
    z-index: 1000;
    position: absolute;
    width: -webkit-fill-available;
    height: -webkit-fill-available;
    background-color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
}

button.dxbl-btn.dxbl-menu-dropdown-item {
    font-size: medium;
}

.custom-menu-logo-container {
    padding-left: 3em;
}

@media only screen and (max-width: 1300px) {

    .custom-html-content td {
        vertical-align: baseline;
    }

    .custom-menu-logo-container {
        padding-left: 1em;
    }

    dxbl-menu-item .dxbl-btn {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .custom-html-content img {
        width: 100%;
        height: 100%;
    }
}

.sidebar {
    min-width: max-content;
    width: max-content;
    max-width: max-content;
}

.sidebar .dxbl-scroll-viewer-vert-scroll-bar {
    visibility: hidden;
}

.layout-wrapper {
    padding: 6px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.footer-content-wrapper {
    display: flex;
    justify-content: center; 
    align-items: center; 
    height: 100%; 
    text-align: center; 
    padding: 10px; 
}
    .footer-content-wrapper a {
        font-weight: bold;
    }
footer-content-wrapper p{
    margin: 0;
    font-size: 14px;  
    word-wrap: break-word;  
    line-height: 1.5;  
    text-align: center !important;
}

