﻿html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


.active{
    background-color:darkgrey;
    color:dimgrey;
}

.required-caption:after {
    content: '*';
    color: red;
}


.containerer {
    display: flex; /* Set display to flex to enable flexbox layout */
    justify-content: space-between; /* Align items with space between them */
    align-items: center; /* Align items vertically in the center */
}

.itemer {
    /* Additional styling for the items */
    padding: 10px;
 /*   border: 1px solid black;*/
}


#info-panel {
    position: absolute; /* Wichtig für das Verschieben */
    width: 350px;
    min-height: 150px;
    background-color: #ffffff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000; /* Stellt sicher, dass das Panel über anderen Elementen liegt */
    display: none; /* Standardmäßig ausgeblendet, wird per JS eingeblendet */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* Header-Bereich, der zum Verschieben dient */
#info-panel-header {
    padding: 12px 15px;
    cursor: move; /* Zeigt an, dass das Element verschiebbar ist */
    background-color: #f7f7f7;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    #info-panel-header h5 {
        margin: 0;
        font-weight: 600;
        color: #333;
    }

/* Inhalt des Panels */
#info-panel-content {
    padding: 15px;
    line-height: 1.6;
    color: #555;
}

/* Buttons zum Ein- und Ausblenden */
.panel-toggle-button {
    cursor: pointer;
    border: none;
    background: none;
    font-size: 16px;
    color: #888;
    padding: 5px;
}

    .panel-toggle-button:hover {
        color: #000;
    }

#show-panel-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}


/* =====================================
   NAVBAR – kompakt & ruhig
   ===================================== */

.navbar {
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.navbar-brand img {
    max-height: 48px;
}

/* Hauptmenüpunkte */
.navbar-nav .nav-link {
    padding: 0.35rem 0.75rem;
    font-size: 0.95rem;
    color: #212529;
}

    .navbar-nav .nav-link.active {
        background-color: #e9ecef;
        border-radius: 3px;
    }

/* Dropdown */
.dropdown-menu {
    padding: 0.25rem 0;
    min-width: 220px;
    border-radius: 3px;
}

.dropdown-item {
    padding: 0.35rem 1rem;
    font-size: 0.9rem;
}

    .dropdown-item.active,
    .dropdown-item:active {
        background-color: #0d6efd;
        color: #fff;
    }

/* Divider feiner */
.dropdown-divider {
    margin: 0.3rem 0;
}

/* Admin-Panel Link */
.nav-link.text-primary {
    font-weight: 600;
}

/* =====================================
   Top-Navigation Indicator – dezent
   ===================================== */

.navbar-nav .nav-item {
    position: relative;
}

.navbar-nav .nav-link::before {
    content: "";
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 2px; /* ↓ weniger dominant */
    opacity: 0.85; /* ↓ softer */
    transform: scaleX(0);
    transition: transform 0.15s ease-in-out, background-color 0.15s, opacity 0.15s;
}

/* AKTIV → ruhiges Überschriften-Blau */
.navbar-nav .nav-link.active::before {
    background-color: #3B7DD8; /* exakt wie "Suchen" */
    transform: scaleX(1);
}

/* HOVER → etwas kräftiger, aber kurz */
.navbar-nav .nav-link:not(.active):hover::before,
.navbar-nav .nav-link:not(.active):focus::before {
    background-color: #0d6efd; /* Bootstrap Blau */
    opacity: 0.6; /* ↓ weniger aggressiv */
    transform: scaleX(1);
}

/* Kein Hintergrund */
.navbar-nav .nav-link.active {
    background-color: transparent;
}



/* =====================================
   Top-Navigation Mobile
   ===================================== */

@media (max-width: 991.98px) {
    .navbar-nav .nav-link::before {
        display: none;
    }
}
@media (max-width: 991.98px) {

    /* Hauptmenü */
    .navbar-nav .nav-item {
        border-bottom: 1px solid #e6e6e6;
    }

    .navbar-nav .nav-link {
        padding: 0.6rem 0.75rem;
        font-weight: 500;
    }

    /* Submenü */
    .dropdown-menu {
        position: static;
        float: none;
        border: none;
        box-shadow: none;
        padding-left: 1rem;
        margin-top: 0;
    }

    .dropdown-item {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }

    .dropdown-divider {
        display: none;
    }
}
/* 🔴 Haupt-Statuspunkt */
.status-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: block;
}

.status-dot-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    overflow: visible;
}

.status-dot-action {
    background-color: #1976d2; /* blau */
}

.status-dot-secondary {
    position: absolute;
    top: -3px;
    right: -16px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(25,118,210,0.15);
    border: 1.5px solid rgba(25,118,210,0.6);
    z-index: 2;
}

.status-dot-overdue {
    animation: overduePulse 1.2s infinite;
}

.status-dot-takeover {
    background-color: #f57c00;
}

@keyframes overduePulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.4);
        opacity: 0.4;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}
/* Farben */
.status-archiv {
    background-color: #2e7d32;
}

.status-ausgeliehen {
    background-color: red;
}

.status-erstellt {
    background-color: #1565c0;
}

.status-vernichtet {
    background-color: #616161;
}

.status-zurueck {
    background-color: #616161;
}

.status-process-printed {
    background-color: #fbc02d; /* Gelb */
}

.status-process-approved {
    background-color: #2e7d32; /* Grün */
}

.status-process-rejected {
    background-color: #d32f2f; /* Rot */
}

.legend-content {
    font-size: 13px;
}

.legend-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

    .legend-list li {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 8px;
    }

.status-dot-orange {
    background-color: #ff9800;
}

.status-lock-icon {
    color: #d32f2f; /* kräftiges Rot */
    font-size: 24px; /* größer als Standard */
    line-height: 1;
    vertical-align: middle;
}

.fileuploader-primary
.dx-fileuploader-button.dx-button {
    background-color: var(--dx-color-primary);
    border-color: var(--dx-color-primary);
    color: #fff;
}

    .fileuploader-primary
    .dx-fileuploader-button.dx-button.dx-state-hover {
        /*background-color: #0a58ca;*/ /* 🔑 DevExtreme Hover */
        background-color: rgb(56,139,227);
        border-color: rgb(56,139,227);
        color: #fff;
    }

    .fileuploader-primary
    .dx-fileuploader-button.dx-button.dx-state-active {
        background-color: #0a58ca;
        border-color: #0a58ca;
    }
