.mainLoginPanel {
	width:75%;
}
.mainContainer {
	margin-left:auto;
	margin-right:auto;
	margin-top:50px;
}



@media (min-width: 992px) {
	.mainLoginPanel {
		width:30%;
	}
	.mainContainer {
		margin-top:50px;
		margin-left:auto;
		margin-right:auto;
	}
}


/* Styla TEXTEN inuti den aktiva knappen */
.active-page .menu_btn_txt {
    /* Ändra textfärgen till vit */
    color: #fff !important; 
    font-weight: bold;
	font-size:1.2vw;
}

/* Du kanske även vill justera de vanliga knapparna, om de idag är gula*/
.menu_btn_txt {
    /* Exempel: Anta att icke-aktiva knappar har gul text som standard */
    color: #f0ad4e;
	font-size: 1.3vw;
}

/* === Mini-version av svensk registreringsskylt + system-tagg ===
   Anvands i notisdropdownen, zeekr-loggen och pa fler stallen dar texten
   borjar med [REGNR] eller [Import]/[Backup]. */
.wms-reg-plate-mini {
    display: inline-flex;
    align-items: center;
    font-family: 'Arial Black', 'Arial', sans-serif;
    font-weight: 900;
    font-size: 12px;
    letter-spacing: 1.2px;
    color: #1a1a1a;
    background: #fff;
    border: 1.5px solid #0A2F4B;
    border-radius: 4px;
    padding: 1px 7px 1px 18px;
    position: relative;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.4;
}
.wms-reg-plate-mini::before {
    content: "S";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2b76f0;
    color: #fff;
    font-family: 'Arial Black', sans-serif;
    font-size: 8px;
    letter-spacing: 0;
    border-right: 1px solid #0A2F4B;
}
.wms-system-tag-mini {
    display: inline-flex;
    align-items: center;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    font-size: 10px;
    letter-spacing: 0.8px;
    color: #ffffff;
    background: #0A2F4B;
    border-radius: 4px;
    padding: 2px 7px;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
    line-height: 1.4;
}

/* Notisdropdown: papperskorg – btn-link ger annars understrykning under ikonen */
.notif-delete-btn,
.notif-delete-btn:hover,
.notif-delete-btn:focus,
.notif-delete-btn:focus-visible,
.notif-delete-btn:active {
    text-decoration: none !important;
    box-shadow: none !important;
}

/* === Slide-up-animation när en notis tas bort i klocklistan ===
   Egna padding/border-regler så att animationen inte krockar med Bootstraps
   `!important`-utiliteter (.p-3 / .border-bottom). */
.notification-item {
    padding: 1rem;
    border-bottom: 1px solid rgba(10, 47, 75, 0.1);
    transition: background-color .25s ease;
    will-change: max-height, opacity, transform, padding;
}
.notification-item:last-child {
    border-bottom: none;
}
.notification-item.notif-removing {
    animation: wmsNotifSlideUp .38s cubic-bezier(.25, .1, .25, 1) forwards;
    pointer-events: none;
    overflow: hidden;
    transform-origin: top center;
    border-bottom-color: transparent !important;
}
.notification-item.notif-removing .notif-delete-btn {
    color: #dc3545 !important;
    transform: scale(1.15);
    transition: transform .1s ease;
}
@keyframes wmsNotifSlideUp {
    0%, 18% {
        background-color: rgba(220, 53, 69, 0.24);
        max-height: var(--notif-h, 200px);
        opacity: 1;
        transform: translateY(0);
        padding-top: 1rem;
        padding-bottom: 1rem;
        border-bottom-width: 1px;
    }
    100% {
        background-color: rgba(220, 53, 69, 0);
        max-height: 0;
        opacity: 0;
        transform: translateY(-6px);
        padding-top: 0;
        padding-bottom: 0;
        margin-top: 0;
        margin-bottom: 0;
        border-bottom-width: 0;
    }
}

/* === WMS Avatar (cirkulär profilbild eller initial-fallback) === */
.wms-avatar {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50% !important;
    overflow: hidden !important;
    flex-shrink: 0;
    font-family: 'Work Sans', sans-serif;
    font-weight: 700;
    color: #ffffff;
    background-color: #1C496A;
    line-height: 1;
    user-select: none;
    vertical-align: middle;
    text-decoration: none !important;
    box-sizing: border-box;
    aspect-ratio: 1 / 1;
}
.wms-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.wms-avatar-initials {
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.wms-avatar-system {
    color: #ffffff;
}
.wms-avatar-system i {
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wms-avatar-bordered {
    border: 2px solid #ffffff;
    box-shadow: 0 0 0 1px rgba(10, 47, 75, 0.15);
}
/* Vit/teal ring: håll cirkel proportioner (flex column får annars full bredd → äggform) */
.wms-avatar-ring-teal {
    box-shadow: 0 0 0 2px #18A0A8;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    border-radius: 50%;
    line-height: 0;
}

/* Liten name+avatar-grupp som vanligen används i listor och cellrader */
.wms-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    line-height: 1.2;
}
.wms-user-chip .wms-user-chip-name {
    font-weight: 500;
    color: inherit;
}
.wms-profile-card-trigger {
    cursor: pointer;
}
.wms-profile-hover-card {
    position: fixed;
    z-index: 1085;
    min-width: 260px;
    max-width: 320px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid rgba(10, 47, 75, 0.12);
    border-radius: 14px;
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
    transition: opacity .14s ease, transform .14s ease;
}
.wms-profile-hover-card.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.wms-profile-hover-semester {
    border-top: 1px solid rgba(10, 47, 75, 0.08);
    padding-top: 0.75rem;
}
.wms-profile-hover-semester-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 0.35rem;
}
.wms-profile-week-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.wms-profile-week-badge {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-size: 0.75rem;
    padding: 0.28rem 0.55rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
}
.wms-profile-week-badge-vacation {
    background: rgba(24, 160, 168, 0.12);
    color: #1C496A;
}
.wms-profile-week-badge-substitute {
    background: rgba(10, 47, 75, 0.1);
    color: #1C496A;
}

/* === Global chattwidget (desktop) === */
:root {
    --wms-chat-fab-size: 58px;
    --wms-chat-fab-gap: 12px;
    --wms-chat-fab-bottom: 22px;
    --wms-chat-fab-right: 22px;
}

/*
 * Chat FAB dock: sized to the visual viewport via top+height in chat_widget.js
 * (no transform — transforms on fixed layers mis-position on iOS Safari after keyboard).
 * Never uses --inv-keyboard-inset; inventering keyboard lift is scoped to #invStockQuickBar only.
 */
.wms-chat-fab-dock {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1040;
    pointer-events: none;
    overflow: visible;
}
.wms-chat-fab {
    position: absolute;
    top: auto;
    left: auto;
    right: max(var(--wms-chat-fab-right), env(safe-area-inset-right, 0px));
    bottom: max(var(--wms-chat-fab-bottom), env(safe-area-inset-bottom, 0px));
    width: var(--wms-chat-fab-size);
    height: var(--wms-chat-fab-size);
    border-radius: 50%;
    border: 0;
    background: linear-gradient(135deg, #0A2F4B 0%, #18A0A8 100%);
    color: #fff;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 28px rgba(10, 47, 75, 0.28);
    pointer-events: auto;
    transform: none;
}
.wms-chat-fab i {
    font-size: 1.45rem;
    line-height: 1;
}
.wms-chat-fab-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #dc3545;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #fff;
}
.wms-chat-widget-panel {
    position: absolute;
    top: auto;
    left: auto;
    right: max(var(--wms-chat-fab-right), env(safe-area-inset-right, 0px));
    bottom: calc(
        max(var(--wms-chat-fab-bottom), env(safe-area-inset-bottom, 0px))
        + var(--wms-chat-fab-size)
        + var(--wms-chat-fab-gap)
    );
    width: min(390px, calc(100vw - 28px));
    height: min(620px, calc(100vh - 126px));
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(10, 47, 75, 0.12);
    box-shadow: 0 18px 48px rgba(10, 47, 75, 0.24);
    z-index: 2;
    display: none;
    overflow: hidden;
    pointer-events: auto;
    transform: none;
}
.wms-chat-widget-panel.is-open {
    display: flex;
}
.wms-chat-widget-header {
    background: #0A2F4B;
    color: #fff;
}
.wms-chat-widget-body {
    min-height: 0;
}
.wms-chat-widget-thread-list,
.wms-chat-widget-messages {
    overflow-y: auto;
}
.wms-chat-widget-thread-list {
    max-height: 300px;
}
.wms-chat-widget-thread {
    cursor: pointer;
    border: 0;
    border-bottom: 1px solid #eef2f7;
    text-align: left;
}
.wms-chat-widget-thread:hover,
.wms-chat-widget-thread:focus {
    background-color: #eef3f7;
}
.wms-chat-widget-thread.has-unread {
    background-color: #eef3f7;
}
.wms-chat-widget-thread.has-unread:hover,
.wms-chat-widget-thread.has-unread:focus {
    background-color: #eef3f7;
}
.wms-chat-thread-title-wrap {
    position: relative;
    display: block;
    min-width: 0;
}
.wms-chat-thread-title-line {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.wms-chat-group-members-inline {
    color: #6c757d;
    font-weight: 400;
    margin-left: .25rem;
    cursor: help;
}
.wms-chat-group-members-popover {
    display: none;
    position: fixed;
    z-index: 1065;
    width: min(300px, 82vw);
    max-height: 260px;
    overflow-y: auto;
    background: #fff;
    border: 1px solid #dbe7ea;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(10,47,75,.16);
    padding: .75rem;
    cursor: default;
}
.wms-chat-group-members-popover.is-visible {
    display: block;
}
.wms-chat-group-member-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    padding: .28rem 0;
    color: #212529;
}
.wms-chat-open-title-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
}
.wms-chat-hide-confirm {
    display: none;
    position: fixed;
    z-index: 1070;
    width: min(270px, 82vw);
    background: #fff;
    border: 1px solid #dbe7ea;
    border-radius: 14px;
    box-shadow: 0 12px 34px rgba(10,47,75,.16);
    padding: .85rem;
    color: #212529;
}
.wms-chat-hide-confirm.is-visible {
    display: block;
}
.wms-chat-thread-time,
.wms-chat-message-time {
    font-size: .72rem;
    white-space: nowrap;
}
.wms-chat-thread-actions {
    display: none;
}
.wms-chat-thread-action-btn {
    border: 0;
    background: transparent;
    color: #6c757d;
    line-height: 1;
    padding: .1rem;
}
.wms-chat-thread-action-btn:hover,
.wms-chat-thread-action-btn:focus {
    color: #0A2F4B;
}
.wms-chat-widget-thread:hover .wms-chat-thread-time,
.wms-chat-widget-thread:focus .wms-chat-thread-time,
.wms-chat-widget-thread:focus-within .wms-chat-thread-time {
    display: none;
}
.wms-chat-widget-thread:hover .wms-chat-thread-actions,
.wms-chat-widget-thread:focus .wms-chat-thread-actions,
.wms-chat-widget-thread:focus-within .wms-chat-thread-actions {
    display: inline-flex;
}
.wms-chat-muted-indicator {
    color: #6c757d;
}
.wms-chat-add-people-panel {
    background: #eef9fa;
    border-color: rgba(24,160,168,.35) !important;
    box-shadow: 0 8px 20px rgba(10,47,75,.07);
}
.wms-chat-add-people-panel .btn-close {
    transform: scale(.72);
}
.wms-chat-widget-message {
    max-width: 82%;
    border-radius: 14px;
    padding: .55rem .7rem;
    background: #fff;
    box-shadow: 0 2px 8px rgba(10,47,75,.06);
}
.wms-chat-compose {
    align-items: flex-end;
}
.wms-chat-compose-actions {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}
.wms-chat-attach-btn {
    width: 2.2rem;
    height: 2.2rem;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.wms-chat-pending-files {
    display: flex;
    flex-wrap: wrap;
    gap: .35rem;
    margin-bottom: .45rem;
}
.wms-chat-pending-file {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    background: #fff;
    border: 1px solid #dbe7ea;
    border-radius: 999px;
    padding: .15rem .45rem;
    font-size: .72rem;
}
.wms-chat-pending-file button {
    border: 0;
    background: transparent;
    line-height: 1;
    color: #6c757d;
    padding: 0;
}
.wms-chat-attachments {
    display: flex;
    flex-direction: column;
    gap: .4rem;
    margin-top: .3rem;
}
.wms-chat-attachment-image-btn {
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: zoom-in;
    line-height: 0;
}
.wms-chat-attachment-image-thumb {
    display: block;
    max-width: min(140px, 100%);
    max-height: 100px;
    width: auto;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}
.wms-chat-attachment-file {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .3rem .5rem;
    border-radius: 10px;
    background: rgba(10,47,75,.06);
    color: inherit;
    text-decoration: none;
}
.wms-chat-widget-message.mine .wms-chat-attachment-file {
    background: rgba(255,255,255,.14);
    color: #fff;
}
.chat-message-stack {
    display: flex;
    flex-direction: column;
    max-width: 82%;
}
.chat-message-stack.is-mine {
    align-items: flex-end;
    margin-left: auto;
}
.chat-read-receipts-wrap {
    position: relative;
    margin-top: .15rem;
    align-self: flex-end;
}
.chat-read-receipts {
    display: flex;
    align-items: center;
    min-height: 16px;
}
.chat-read-avatar {
    display: inline-flex;
    margin-left: -5px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #fff;
    box-shadow: 0 0 0 1px rgba(10,47,75,.08);
}
.chat-read-avatar:first-child {
    margin-left: 0;
}
.chat-read-avatar-img,
.chat-read-avatar-initials {
    display: block;
    border-radius: 50%;
}
.chat-read-overflow {
    font-size: .65rem;
    color: #6c757d;
    margin-left: 3px;
    font-weight: 600;
}
.chat-read-pending {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #adb5bd;
    display: inline-block;
}
.chat-read-receipts-popover {
    display: none;
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    z-index: 1085;
    min-width: 170px;
    max-width: 240px;
    background: #fff;
    border: 1px solid #dbe7ea;
    border-radius: 12px;
    box-shadow: 0 10px 28px rgba(10,47,75,.14);
    padding: .55rem .7rem;
    color: #212529;
}
.chat-read-receipts-wrap:hover .chat-read-receipts-popover,
.chat-read-receipts-wrap:focus-within .chat-read-receipts-popover {
    display: block;
}
.wms-chat-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.wms-chat-image-lightbox.is-open {
    display: flex;
}
.wms-chat-image-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.85);
}
.wms-chat-image-lightbox-stage {
    position: relative;
    z-index: 1;
    max-width: min(calc(100vw - 2rem), 100%);
    max-height: min(calc(100vh - 2rem), 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.wms-chat-image-lightbox-img {
    max-width: min(calc(100vw - 2rem), 100%);
    max-height: min(calc(100vh - 4rem), 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0,0,0,.35);
}
.wms-chat-image-lightbox-close {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 2;
    border: 0;
    background: rgba(255,255,255,.15);
    color: #fff;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}
body.wms-chat-lightbox-open {
    overflow: hidden;
}
.wms-chat-widget-message.mine {
    margin-left: 0;
    background: #0A2F4B;
    color: #fff;
}
.wms-chat-widget-message.mine .text-muted {
    color: rgba(255,255,255,.7) !important;
}
.wms-chat-widget-messages {
    background: #f8fafc;
    border-radius: 12px;
    padding: .75rem;
}
.wms-chat-max-dialog {
    max-width: min(1180px, calc(100vw - 2rem));
}
.wms-chat-max-dialog .modal-content {
    border-radius: 18px;
    overflow: hidden;
}
.wms-chat-max-frame {
    width: 100%;
    height: min(82vh, 820px);
    border: 0;
    display: block;
    background: #f4f7f6;
}
.wms-chat-recipient-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    min-height: 38px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.25rem;
    background: #fff;
}
.wms-chat-recipient-chips {
    display: contents;
}
.wms-chat-recipient-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-radius: 999px;
    background: rgba(24, 160, 168, 0.12);
    color: #0A2F4B;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.22rem 0.45rem;
}
.wms-chat-recipient-chip button {
    border: 0;
    background: transparent;
    color: inherit;
    line-height: 1;
    padding: 0;
    font-weight: 700;
}
#wmsChatUserSearch {
    flex: 1 1 120px;
    min-width: 120px;
}
.wms-user-email-picker {
    position: relative;
}
.wms-user-email-picker.in-input-group {
    flex: 1 1 auto;
    min-width: 0;
}
.wms-user-picker-box {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
    min-height: 38px;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 0.25rem;
    background: #fff;
}
.in-input-group .wms-user-picker-box {
    border: 0;
    border-radius: 0;
    min-height: 0;
    padding: 0;
    background: transparent;
}
.input-group > .wms-user-email-picker.in-input-group {
    flex: 1 1 auto;
    min-width: 0;
    width: 1%;
}
.wms-user-picker-input {
    flex: 1 1 120px;
    min-width: 120px;
}
.wms-user-picker-list {
    max-height: 240px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    margin-top: 0.35rem;
}
.wms-user-picker-list .list-group-item:first-child {
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}
.wms-user-picker-list .list-group-item:last-child {
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
}
.chat-external-notice {
    background: #fff8e1;
    border: 1px solid #ffe08a;
    color: #6b5200;
    border-radius: 10px;
}
@media (max-width: 991.98px) {
    .wms-chat-widget-panel {
        left: 10px;
        right: 10px;
        bottom: calc(
            max(var(--wms-chat-fab-bottom, 22px), env(safe-area-inset-bottom, 0px))
            + var(--wms-chat-fab-size, 58px)
            + var(--wms-chat-fab-gap, 12px)
        );
        width: auto;
        height: min(78vh, 640px);
        max-height: calc(100vh - 96px);
        border-radius: 16px;
        z-index: 1090;
    }
    .wms-chat-widget-panel.is-open {
        display: flex !important;
    }
    .wms-chat-widget-thread-list {
        max-height: 38vh;
    }
    .wms-chat-widget-messages {
        min-height: 0;
    }
    #wmsChatMaximize {
        display: none !important;
    }
}

/* === Cropper-modal: anpassa Cropper.js till projektets tema === */
.wms-cropper-canvas {
    max-height: 60vh;
    background: #f4f7f6;
    border-radius: 8px;
    overflow: hidden;
}
.wms-cropper-canvas img {
    display: block;
    max-width: 100%;
}
/* Cropper.js viewport som cirkel */
.cropper-view-box,
.cropper-face {
    border-radius: 50% !important;
}
.cropper-view-box {
    outline: 2px solid #18A0A8 !important;
    outline-color: rgba(24, 160, 168, 0.85);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
}
.cropper-crop-box {
    overflow: hidden;
}
.cropper-line,
.cropper-point {
    background-color: #18A0A8;
}
.cropper-modal {
    background-color: #0A2F4B;
    opacity: 0.55;
}

/* === WMS / WMS primärknapp (gradient) — laddas globalt via head_ui_common === */
.btn-wms-gradient {
    background-image: linear-gradient(135deg, #004f63 0%, #00c0b3 100%);
    border: none;
    color: #ffffff !important;
    font-family: 'Patua One', cursive;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 6px;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-image 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    display: inline-flex;
    align-items: center;
}
.btn-wms-gradient i {
    margin-right: 8px;
    font-size: 1.1em;
}
.btn-wms-gradient:hover {
    background-image: linear-gradient(135deg, #006078 0%, #00d4c6 100%);
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
    text-decoration: none;
}
.btn-wms-gradient:active {
    transform: translateY(1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.btn-wms-gradient:focus-visible {
    outline: 2px solid #18a0a8;
    outline-offset: 2px;
}
