body {
    background-color: #f0f2f5;
    color: #333333;
    overflow-x: hidden;
}

.dashboard-td-vertical {
    vertical-align: top;
    min-width: 160px;
}

.footer {
    background-color: #155c8f;
    font-size: .8em;
    height: 40px;
    color: #ffffff;
}

.footer > .container {
    padding-right: 15px;
    padding-left: 15px;
}

.not-set {
    color: #cc5555;
    font-style: italic;
}

/* add sorting icons to gridview sort links */
a.asc:after, a.desc:after {
    content: "";
    left: 3px;
    display: inline-block;
    width: 0;
    height: 0;
    border: solid 5px transparent;
    margin: 4px 4px 2px 4px;
    background: transparent;
}

a.asc:after {
    border-bottom: solid 7px #155c8f;
    border-top-width: 0;
}

a.desc:after {
    border-top: solid 7px #155c8f;
    border-bottom-width: 0;
}

.grid-view th,
.grid-view td:last-child {
    white-space: nowrap;
}

.grid-view .filters input,
.grid-view .filters select {
    min-width: 50px;
}

.hint-block {
    display: block;
    margin-top: 5px;
    color: #d9d9d9;
}

.error-summary {
    color: #ffffff;
    background: #a94442;
    border-left: 3px solid #eed3d7;
    padding: 10px 20px;
    margin: 0 0 15px 0;
}

/* align the logout "link" (button in form) of the navbar */
.nav li > form > button.logout {
    padding-top: 7px;
    color: rgba(255, 255, 255, 0.5);
}

@media (max-width: 991.98px) {
    .container, .container-fluid {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .row {
        margin-left: -12px !important;
        margin-right: -12px !important;
    }

    .row > * {
        padding-left: 12px !important;
        padding-right: 12px !important;
    }

    .card {
        border-radius: 0;
        margin-left: -12px !important;
        margin-right: -12px !important;
        border-left: none;
        border-right: none;
        box-shadow: none !important;
    }

    /* Alle GridViews und Tabellen mit .responsive-table auf Mobile/Tablet optimieren */
    .grid-view table.table,
    .responsive-table {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }

    .grid-view table.table thead,
    .responsive-table thead {
        display: none !important;
    }

    .grid-view table.table tbody,
    .grid-view table.table tr,
    .grid-view table.table td,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block !important;
        width: 100% !important;
    }

    .grid-view table.table tr,
    .responsive-table tr {
        margin-bottom: 1rem;
        border-top: 1px solid #dee2e6 !important;
        border-bottom: 1px solid #dee2e6 !important;
        background-color: #ffffff !important;
    }

    .grid-view table.table td,
    .responsive-table td {
        text-align: right !important;
        padding: 0.75rem 1rem !important;
        border: none !important;
        border-bottom: 1px solid #f8f9fa !important;
        white-space: normal !important;
        word-break: break-word !important;
        position: relative;
    }

    .grid-view table.table td::before,
    .responsive-table td::before {
        content: attr(data-label);
        float: left;
        font-weight: bold;
        padding-right: 10px;
        color: #495057;
    }

    /* Letzte Spalte (ActionColumn) spezialbehandlung */
    .grid-view table.table td:last-child,
    .responsive-table td:last-child {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: flex-end !important;
        gap: 0.5rem !important;
        background-color: #f8f9fa !important;
        border-bottom: none !important;
        padding: 1rem !important;
    }

    .grid-view table.table td:last-child::before,
    .responsive-table td:last-child::before {
        content: attr(data-label);
        width: 100%;
        margin-bottom: 0.5rem;
        text-align: left;
    }

    .nav li > form > button.logout {
        display: block;
        text-align: left;
        width: 100%;
        padding: 10px 0;
    }

    .navbar-menu-center {
        position: absolute;
        left: 15px;
        display: flex;
        align-items: center;
        gap: 2px;
    }

    .navbar-menu-center .btn {
        padding: 0.3rem 0.4rem !important;
        font-size: 1.1rem !important;
        border: none !important;
        margin-left: 0 !important;
    }

    .mail-shortcut-btn,
    .chat-shortcut-btn,
    .dms-shortcut-btn {
        margin-left: 0 !important;
    }

    .navbar-brand {
        margin-right: 0;
        margin-left: auto;
    }

    /* Dashboard-Tabellen auf Mobile stapeln */
    .table-responsive:has(.dashboard-weekly-table),
    .table-responsive:has(.dashboard-monthly-table) {
        overflow-x: visible !important;
        display: block !important;
    }

    .dashboard-weekly-table,
    .dashboard-monthly-table,
    .dashboard-weekly-table thead,
    .dashboard-monthly-table thead,
    .dashboard-weekly-table tbody,
    .dashboard-monthly-table tbody,
    .dashboard-weekly-table tr,
    .dashboard-monthly-table tr,
    .dashboard-weekly-table th,
    .dashboard-monthly-table th,
    .dashboard-weekly-table td,
    .dashboard-monthly-table td {
        display: block !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .dashboard-td-vertical {
        min-width: 0 !important;
        border-bottom: 1px solid #dee2e6 !important;
    }

    .dashboard-weekly-table thead,
    .dashboard-monthly-table thead {
        display: none !important;
    }

    .dashboard-weekly-table td,
    .dashboard-monthly-table td {
        min-width: 0 !important;
        border: none !important;
        border-bottom: 1px solid #dee2e6 !important;
        padding: 1rem !important;
        word-break: break-word !important;
    }

    .dashboard-td-vertical {
        min-width: 0 !important;
    }

    .dashboard-weekly-table tr,
    .dashboard-monthly-table tr {
        border: none !important;
        margin-bottom: 0 !important;
    }

    /* Stack the dropdown into a single column and show shortcuts above menu */
    .main-menu-dropdown.show {
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas:
            "shortcuts"
            "menu";
    }

    .main-menu-dropdown .menu-column {
        border-right: none;
        padding-right: 0;
        margin-top: 0.5rem;
    }

    .main-menu-dropdown .shortcuts-column {
        padding-left: 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
        padding-bottom: 0.5rem;
        margin-bottom: 0.5rem;
    }


    /* Mail Client Mobile Optimierung */
    .mail-client-container {
        flex-direction: column;
        height: auto !important;
        position: relative;
    }

    .mail-folders {
        display: none;
        width: 260px !important;
        flex: none !important;
        position: absolute;
        left: 0;
        top: 0;
        bottom: 0;
        z-index: 1050;
        box-shadow: 5px 0 15px rgba(0,0,0,0.1);
    }

    .mail-folders.show {
        display: block !important;
    }

    .mail-list {
        width: 100% !important;
        flex: none !important;
        height: 350px !important;
    }

    .mail-preview {
        width: 100% !important;
        flex: none !important;
        height: 500px !important;
        border-top: 1px solid #dee2e6;
    }
}

.nav > li > form > button.logout:focus,
.nav > li > form > button.logout:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.75);
}

.nav > li > form > button.logout:focus {
    outline: none;
}

body::after {
    content: "";
    background-image: url("../images/logo_tp_1000x1000.png");
    background-size: 20%;
    background-position: 95% 85%;
    background-repeat: no-repeat;
    opacity: 0.35;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    position: fixed;
    z-index: -1;
    pointer-events: none;
}

a {
    color: #155c8f;
}

a:hover {
    color: #0d4a78;
}

.breadcrumb {
    background-color: #e8eaed;
    border-radius: 0.25rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    color: #333333;
}

.breadcrumb-item.active {
    color: #555555;
}

.breadcrumb-item a {
    color: #155c8f;
}

.breadcrumb-item + .breadcrumb-item::before {
    color: #555555;
}

.card {
    background-color: #ffffff;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    margin-bottom: 1rem;
}

.card-header {
    background-color: #f5f7fa;
    color: #333333;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: #155c8f;
    border-color: #155c8f;
}

.btn-primary:hover {
    background-color: #0d4a78;
    border-color: #0d4a78;
}

/* Ensure utility bg-primary matches our primary button color */
.bg-primary {
    background-color: #155c8f !important;
}

/* Make outline-primary use the same primary color, including hover */
.btn-outline-primary {
    color: #155c8f;
    border-color: #155c8f;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    color: #ffffff;
    background-color: #155c8f;
    border-color: #155c8f;
}

/* View enhancements (customers, contact-person) */
.app-customers-view .avatar-circle,
.contact-person-view .avatar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Mobile spacing for action buttons on customer view */
@media (max-width: 575.98px) {
    .app-customers-view .btn {
        margin-top: .25rem;
        margin-bottom: .25rem;
    }

    /* Wrap buttons and add gap under breadcrumb area */
    .app-customers-view {
        /* ensure inline buttons wrap nicely */
    }

    /* For header action buttons within card header */
    .app-customers-view .card-header .d-flex.gap-2 {
        flex-wrap: wrap;
        gap: .4rem !important;
    }

    /* Ensure top buttons (Back, Toggle, Delete, Diagnosen, Allergien) also wrap and have spacing */
    .app-customers-view > a.btn {
        display: inline-flex;
        margin-right: .35rem;
    }
}

/* Improve spacing and readability of DetailView */
.app-customers-view .detail-view tr > th,
.contact-person-view .detail-view tr > th {
    width: 240px;
    color: #475569; /* slate-ish */
    background-color: #f9fafb;
}

.app-customers-view .detail-view tr > td,
.contact-person-view .detail-view tr > td {
    color: #111827;
}

/* Subtle badge fallbacks if Bootstrap 5.3 subtle colors not available */
.badge.bg-success-subtle.text-success-emphasis {
    background-color: #e6f4ea;
    color: #1e7e34;
}

.badge.bg-secondary-subtle.text-secondary-emphasis {
    background-color: #f1f3f5;
    color: #495057;
}

.table {
    background-color: #ffffff;
    color: #333333;
}

.table thead th {
    background-color: #f5f7fa;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
}

.table td, .table th {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.alert {
    border-radius: 0;
}

/* Login page styling */
.login-container {
    margin-top: 0.5rem;
}

.login-logo {
    max-width: 300px;
    height: auto;
    margin-bottom: 2rem;
}

.login-box {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 1.5rem 2rem 2rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: #333333;
    min-width: 410px;
}

.login-box h1 {
    color: #155c8f;
    font-weight: 600;
}

.login-box .flash-messages .alert {
    margin-bottom: 0;
    border-radius: 4px;
}

.login-box .alert-success {
    color: #0f5132;
    background-color: #d1e7dd;
    border-color: #badbcc;
}

.login-box .alert-danger {
    color: #842029;
    background-color: #f8d7da;
    border-color: #f5c2c7;
}

.login-box .alert-warning {
    color: #664d03;
    background-color: #fff3cd;
    border-color: #ffecb5;
}

.login-box .alert-info {
    color: #055160;
    background-color: #cff4fc;
    border-color: #b6effb;
}

.login-box .form-group {
    margin-top: 1.5rem;
}

.login-box .form-control:focus {
    border-color: #155c8f;
    box-shadow: 0 0 0 0.25rem rgba(21, 92, 143, 0.25);
}

.login-box .form-check-input:checked {
    background-color: #155c8f;
    border-color: #155c8f;
}

/* Special styling for the login page */
.login-page {
    background-color: #155c8f !important;
    color: #ffffff !important;
}

/* Navbar styling */
.navbar.navbar-dark.bg-dark {
    background-color: #155c8f !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Left-aligned menu button in navbar */
.navbar-menu-center {
    position: absolute;
    left: 15px;
    display: flex;
    align-items: center;
    height: 100%;
    order: 1;
}

.navbar-no-padding {
    padding: 0 !important;
}

/* Navbar Logo */
.navbar-logo {
    max-height: 50px;
}

.navbar-brand {
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0 0 0 auto;
}

/* Increased spacing between navbar elements */
.navbar-nav .nav-item {
    margin-right: 30px;
}

.navbar-nav {
    margin-left: 40px;
}

/* Navbar link enhancements */
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-size: 10px;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #ffffff;
}

/* Hover-Effekt für Navbar-Links */
.navbar-dark .navbar-nav .nav-link:after {
    content: "";
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s;
}

/* Ausnahme für Dropdown-Menüs - kein Strich anzeigen */
.navbar-dark .navbar-nav .dropdown > .nav-link:after,
.navbar-dark .navbar-nav .dropdown.show > .nav-link:after,
.navbar-dark .navbar-nav .dropdown.active > .nav-link:after,
.navbar-dark .navbar-nav .dropdown > .nav-link.active:after,
.navbar-dark .navbar-nav .dropdown > .nav-link:hover:after,
.navbar-dark .navbar-nav .dropdown.show .nav-link:after {
    display: none !important;
}

/* Alle Dropdown-Links sollen den Hover-Effekt für Text behalten */
.navbar-dark .navbar-nav .dropdown > .nav-link:hover,
.navbar-dark .navbar-nav .dropdown.active > .nav-link:hover,
.navbar-dark .navbar-nav .dropdown.show > .nav-link:hover {
    color: #ffffff !important;
}

/* Aktiven Dropdown-Link hervorheben */
.navbar-dark .navbar-nav .dropdown.active > .nav-link,
.navbar-dark .navbar-nav .dropdown > .nav-link.active,
.navbar-dark .navbar-nav .dropdown.show > .nav-link {
    color: #ffffff !important;
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-link:hover:after {
    width: 100%;
}

/* Aktiver Navbar-Link */
.navbar-dark .navbar-nav .nav-item.active .nav-link {
    color: #ffffff;
    font-weight: 600;
}

.navbar-dark .navbar-nav .nav-item.active .nav-link:after {
    content: "";
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
}

/* Icon in navbar */
.navbar-dark .navbar-nav .nav-link i {
    margin-right: 5px;
}

/* Adjust right-side elements */
.navbar .d-flex {
    margin-left: 30px;
}

/* Größerer Login/Logout-Button */
.navbar .btn {
    font-size: 18px;
    padding: 8px 16px;
}

/* Dashboard cards styling */
.site-index .card {
    transition: all 0.3s ease;
    height: 100%;
}

/* Der Hover-Effekt wird deaktiviert
.site-index .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}
*/

.site-index .card-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.site-index .card-title {
    color: #155c8f;
    font-weight: 600;
    margin-bottom: 0;
}

.site-index .card-body {
    padding: 1rem 1.25rem;
}

.site-index .card-footer {
    background-color: transparent;
    border-top: none;
    padding: 0.5rem 1.25rem 1.25rem;
}

.site-index .btn-primary {
    background-color: #155c8f;
    border-color: #155c8f;
    transition: background-color 0.2s;
}

.site-index .btn-primary:hover {
    background-color: #0d4a78;
    border-color: #0d4a78;
}

.site-index .card-text {
    color: #555555;
    line-height: 1.6;
}

.site-index .jumbotron h1 {
    color: #155c8f;
    font-weight: 300;
    margin-bottom: 1.5rem;
}

/* Counter styling */
.counter-container {
    padding: 15px 0;
}

.counter-number {
    font-size: 2rem;
    font-weight: 600;
    color: #155c8f;
    margin-bottom: 0.5rem;
    line-height: 1;
    transition: color 0.3s;
}

.counter-label {
    font-size: 1rem;
    color: #666666;
    font-weight: 500;
}

.card:hover .counter-number {
    color: #0d4a78;
}

/* Language dropdown styling */
.language-dropdown .btn-outline-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
}

.language-dropdown .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.language-dropdown .dropdown-menu {
    min-width: 8rem;
    margin-top: 0.5rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    border: none;
}

.language-dropdown .dropdown-item.active {
    background-color: #155c8f;
    color: #ffffff;
}

.language-dropdown .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #155c8f;
}

.login-box .language-dropdown .btn-outline-secondary {
    color: #155c8f;
    border-color: #dee2e6;
    background-color: transparent;
}

.login-box .language-dropdown .btn-outline-secondary:hover {
    background-color: #f8f9fa;
}

/* Simple language selector styling */
.language-selector {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.language-selector .lang-link {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    color: #155c8f;
    background-color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.language-selector .lang-link:hover {
    background-color: #ffffff;
    color: #0d4a78;
}

.language-selector .lang-link.active {
    background-color: #155c8f;
    color: #ffffff;
}

.login-box .language-selector {
    margin-top: 0.25rem;
    margin-right: 0.25rem;
}

.login-box .language-selector .lang-link {
    color: #155c8f;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
}

.login-box .language-selector .lang-link:hover {
    background-color: #e9ecef;
}

.login-box .language-selector .lang-link.active {
    background-color: #155c8f;
    color: #ffffff;
    border-color: #155c8f;
}

/* Dropdown-Menü in der Navbar */
.navbar-dark .navbar-nav .dropdown-menu {
    background-color: #ffffff;
    border: none;
    border-radius: 0.25rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    margin-top: 0.5rem;
}

.navbar-dark .navbar-nav .dropdown-item {
    color: #333333;
    padding: 0.5rem 1rem;
    transition: all 0.2s;
}

.navbar-dark .navbar-nav .dropdown-item:hover {
    background-color: #f8f9fa;
    color: #155c8f;
}

.navbar-dark .navbar-nav .dropdown-item.active,
.navbar-dark .navbar-nav .dropdown-item:active {
    background-color: #155c8f;
    color: #ffffff;
}

.navbar-dark .navbar-nav .dropdown-item i {
    margin-right: 8px;
    color: #155c8f;
}

.navbar-dark .navbar-nav .dropdown-item.active i,
.navbar-dark .navbar-nav .dropdown-item:active i {
    color: #ffffff;
}

.navbar-dark .navbar-nav .dropdown.show .nav-link {
    color: #ffffff;
}

.navbar-dark .navbar-nav .dropdown.show .nav-link:after {
    width: 0 !important;
}

/* Main Menu Button Styling */
.main-menu-button {
    font-size: 1.35rem; /* make text a bit larger */
    padding: 0.5rem 0.75rem;
    border-radius: 0.25rem;
    margin-right: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    border: none !important; /* hide outline border from btn-outline-light */
    background: transparent !important; /* transparent background */
}

.main-menu-button i {
    font-size: 2rem; /* make icon a bit larger */
    margin-right: 0.5rem;
}

.main-menu-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.main-menu-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(255, 255, 255, 0.25);
}

/* Main Menu Dropdown Styling */
.main-menu-dropdown {
    width: 90vw;
    max-width: 605px;
    padding: 1.25rem;
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.2);
    margin-top: 0.75rem;
    max-height: calc(100vh - 120px);
    max-height: calc(100dvh - 120px);
    /* Make dropdown content scrollable on small screens */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    display: none;
    grid-template-columns: 60% 40%; /* adjusted for square tiles */
    grid-template-areas: "menu shortcuts";
}

/* When the main menu is open, lock background scroll */
html.menu-open,
body.menu-open {
    overflow: hidden;
    height: 100vh; /* prevent iOS rubber band */
}

@media (max-width: 991.98px) {
    /* Ensure dropdown fits viewport on mobile and remains scrollable */
    .main-menu-dropdown {
        width: 100vw;
        max-width: none;
        left: 0 !important;
        right: 0 !important;
    }
}

/* Show the dropdown when it has the 'show' class */
.main-menu-dropdown.show {
    display: grid;
}

.main-menu-dropdown .menu-column {
    border-right: 1px solid rgba(0, 0, 0, 0.1);
    padding-right: 1rem;
    grid-area: menu;
}

.main-menu-dropdown .shortcuts-column {
    padding-left: 0.5rem;
    grid-area: shortcuts;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0.5rem;
}

.shortcut-grid.dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
}

/* Entferne spezielle Media-Queries für Dashboard-Grid, um Konsistenz zu wahren */

@media (min-width: 350px) and (max-width: 991.98px) {
    .shortcut-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 500px) and (max-width: 991.98px) {
    .shortcut-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.shortcut-tile-wrapper {
    position: relative;
}

.shortcut-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    height: 100%;
    width: 100%;
    min-height: 90px;
    padding: 10px 5px;
    text-decoration: none;
    color: #333;
    transition: all 0.2s ease;
}

.shortcut-tile:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-2px);
    text-decoration: none;
    color: #155c8f;
}

.shortcut-tile-icon {
    font-size: 1.5rem;
    margin-bottom: 2px;
    color: #155c8f;
}

.shortcut-tile-label {
    font-size: 0.75rem;
    line-height: 1.1;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    word-break: break-word;
}

.delete-shortcut-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    opacity: 0;
    transition: opacity 0.2s ease;
    text-decoration: none;
    z-index: 10;
}

.shortcut-tile-wrapper:hover .delete-shortcut-btn {
    opacity: 1;
}

.delete-shortcut-btn:hover {
    background: #bd2130;
    color: #fff;
}

.main-menu-dropdown .shortcuts-placeholder {
    color: #777777;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    font-style: italic;
}

.main-menu-dropdown .dropdown-header {
    color: #155c8f;
    font-weight: 600;
    font-size: 1rem;
    padding: 0.5rem 1rem;
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.main-menu-dropdown .dropdown-item {
    padding: 0.6rem 1rem;
    color: #333333;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.main-menu-dropdown .dropdown-item i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: #155c8f;
    width: 20px;
    text-align: center;
}

.main-menu-dropdown .dropdown-item:hover {
    background-color: #f5f7fa;
    color: #155c8f;
    transform: translateX(5px);
}

.main-menu-dropdown .dropdown-item.active {
    background-color: #e8f0f8;
    color: #155c8f;
    font-weight: 500;
}

.main-menu-dropdown .dropdown-item.active i {
    color: #155c8f;
}

.main-menu-dropdown .dropdown-divider {
    margin: 0.5rem 0;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

/* Logout button in dropdown */
.dropdown-item-form {
    padding: 0;
    margin: 0;
}

.logout-item {
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    padding: 0.6rem 1rem;
    color: #333333;
    transition: all 0.2s;
    display: flex;
    align-items: center;
}

.logout-item:hover {
    background-color: #f5f7fa;
    color: #155c8f;
    transform: translateX(5px);
}

.logout-item i {
    margin-right: 10px;
    font-size: 1.1rem;
    color: #155c8f;
    width: 20px;
    text-align: center;
}

/* Modern GridView styling ohne Rahmen */
.grid-view table.table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    border: none !important;
}

.grid-view table.table thead th,
.grid-view table.table thead td,
.grid-view table.table tbody th,
.grid-view table.table tbody td,
.grid-view table.table tfoot th,
.grid-view table.table tfoot td {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

.grid-view table.table tr.filters,
.grid-view table.table tr.filters td,
.grid-view table.table tr.filters th {
    border: none !important;
    border-bottom: none !important;
    border-top: none !important;
    box-shadow: none !important;
}

/* Stil für abwechselnde Zeilen behalten, aber ohne Rahmen */
.grid-view table.table-striped > tbody > tr:nth-of-type(odd) > * {
    border: none !important;
    background-color: rgba(0, 0, 0, 0.02) !important;
}

/* Hover-Effekt behalten aber ohne Rahmen */
.grid-view table.table-hover > tbody > tr:hover > * {
    border: none !important;
}

/* Verbesserte abwechselnde Zeilenfarben für Tabellen */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(0, 0, 0, 0.02);
}


/* =========================
   Customers index tweaks
   ========================= */
.app-customers-index .card.shadow {
    /* Make the table card shadow very subtle */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05) !important;
}

/* Make table header stand out a bit more on customers index */
.app-customers-index .grid-view table thead th,
.app-customers-index table thead th {
    border-bottom: 2px solid #ffffff;
    color: #374151; /* keep header text readable */
}

/* Improve visibility of the "Search & Filter" card header */
.app-customers-index .card .card-header.collapse-toggle {
    border-bottom: 1px solid #b9c9d4;
}

/* Reduce left/right spacing on md view so table spans nearly full width */
@media (min-width: 768px) and (max-width: 991.98px) {
    /* Expand the container only on customers index page */
    .container:has(.app-customers-index) {
        max-width: 100%;
    }
}

.bg-light-samydox {
    background-color: #ccdae3 !important;
}

/* =========================
   Breadcrumbs styling
   ========================= */
.breadcrumb {
    background-color: #ccdae3;
}

/* Rounded corners for the customers table */
.app-customers-index .grid-view .table {
    border-radius: .5rem; /* Bootstrap-ish rounded corners */
    overflow: hidden;
}

/* Quick Access small colorful box */
.quick-access-box {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.quick-access-box .card-header {
    background: linear-gradient(135deg, #f6f9ff, #eef4ff);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.qa-item {
    display: inline-flex;
    width: 100%;
    border-radius: 10px;
    padding: 10px 12px;
    color: #1b1f23;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.08s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.qa-item i {
    font-size: 1.1rem;
}

.qa-item:hover {
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

/* Color variants */
.qa-customers {
    background: linear-gradient(135deg, #e8f5ff, #d9efff);
    border: 1px solid #cfe8ff;
}

.qa-appointments {
    background: linear-gradient(135deg, #e9fff4, #d6ffed);
    border: 1px solid #c6f7e2;
}

.qa-invoice {
    background: linear-gradient(135deg, #fff6e8, #ffefd6);
    border: 1px solid #ffe3b8;
}

.qa-reports {
    background: linear-gradient(135deg, #f5eaff, #ecdeff);
    border: 1px solid #e2ccff;
}

/* Update info outer box */
.update-info-box {
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.update-info-box .card-header {
    background: #f8fafc;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Update cards inside */
.update-card {
    border: 1px solid rgba(0, 0, 0, 0.18);
    border-radius: .5rem;
}

.update-card .card-header {
    background: #ffffff;
}

.update-card.major {
    border-left: 4px solid #dc3545;
}

.update-card .version-badge {
    font-weight: 600;
}

.update-card .date-badge {
    background: #eef2f7;
    color: #555555;
}

/* Compact tweaks for right side */
@media (min-width: 992px) {
    .quick-access-box .card-body {
        padding-top: .5rem;
        padding-bottom: .5rem;
    }

    .update-info-box .card-body {
        padding-top: .5rem;
        padding-bottom: .5rem;
    }
}

/* Mobile Navbar Optimization */
@media (max-width: 991.98px) {
    .navbar-menu-center {
        left: 8px !important;
    }

    .main-menu-button {
        font-size: 1.1rem !important;
        padding: 0.35rem 0.6rem !important;
        margin-right: 0.5rem !important;
    }

    .main-menu-button i {
        font-size: 1.5rem !important;
        margin-right: 0.3rem !important;
    }

    .mail-shortcut-btn {
        padding: 0.35rem 0.6rem !important;
        margin-left: 0.25rem !important;
    }

    .mail-shortcut-btn i {
        font-size: 1.3rem !important;
    }

    .unread-mail-badge-global {
        font-size: 0.5rem !important;
        padding: 0.1rem 0.25rem !important;
        top: 1px !important;
        right: 1px !important;
    }

    .navbar-logo {
        max-height: 35px !important;
    }

    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.pagination .page-link {
    color: #155c8f;
}

.pagination .page-item.active .page-link {
    background-color: #155c8f;
    border-color: #155c8f;
    color: #ffffff;
}

.pagination .page-link:hover {
    color: #0d4a78;
    background-color: #e9ecef;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d;
}
