@import "https://cdn.jsdelivr.net/npm/bootstrap@5.3.2/dist/css/bootstrap.min.css";
@import "https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css";
@import url('https://fonts.googleapis.com/css2?family=Montserrat+Alternates:wght@100;300;400;500;600;700;800&display=swap');

.ms-3 {
    margin-left: 0rem !important;
}

.mgl-left {
    border-left: 1px solid #ededed !important;

}



.navbar {
    background-color: transparent !important;
    border-bottom: none;
}

.profection-footer {
    background-color: var(--profection-anthracite) !important;
    z-index: 100000 !important;
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 40px !important;
    color: white !important;
    padding: 10px 20px !important;
}

.profection-footer p,
.profection-footer span,
.profection-footer a {
    color: white !important;
}

/* Custom styles */
.logo-placeholder {
    width: 150px;
    height: 75px;
    background-image: url("/assets/images/profection_logo-27949296c5946fee1879dd589423a616.svg?vsn=d");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: left center;
    display: block;
}

/* Custom Bootstrap overrides */
:root {
    --bs-primary: #0d6efd;
    --bs-secondary: #6c757d;
    --bs-success: #198754;
    --bs-info: #0dcaf0;
    --bs-warning: #ffc107;
    --bs-danger: #dc3545;
    --bs-light: #f8f9fa;
    --bs-dark: #212529;
    --profection-blue: #457a86 !important;
    --profection-mid-green: #90afa0 !important;
    --profection-anthracite: #344248 !important;
    --profection-gradient: #f0faff !important;
}

.heading-main {
    font-size: 2.5rem;
    font-weight: 600;
    color: var(--bs-dark);
}

.heading-sub {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--bs-dark);
}

.text-main {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--bs-dark);
    font-family: Verdana, Geneva, sans-serif;
    font-style: normal;
}

.text-sub {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--bs-dark);
}



.card {
    border-width: 0px !important;
}

.profection-anthracite {
    background-color: var(--profection-anthracite) !important;
}

.profection-mid-green {
    background-color: var(--profection-mid-green) !important;
}

.profection-gradient {
    background: linear-gradient(to right, var(--profection-mid-green), var(--profection-anthracite));
}

/* Enhanced Bootstrap Navigation */
.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
}

.navbar-nav {
    align-items: stretch;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: stretch;
    margin-right: 30px;
}

.navbar-nav .nav-item:last-child {
    margin-right: 0;
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: #0F172A !important;
    border-bottom: 2px solid transparent;
    display: flex;
    align-items: center;
    transition: border-color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #0F172A !important;
    border-bottom: 2px solid #90afa0;
}

.navbar-nav .nav-link.active {
    color: #0F172A !important;
    font-weight: 600;
    border-bottom: 2px solid #90afa0;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* CTA Button in Navbar */
.navbar .btn-primary {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar .btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Responsive navigation */
@media (max-width: 768px) {
    .navbar-nav {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem 0;
    }

    .navbar .btn-primary {
        margin-top: 0.5rem;
        width: 100%;
        text-align: center;
    }

    .navbar-collapse {
        border-top: 1px solid rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
        padding-top: 1rem;
    }
}

/* Profile Dropdown (Microsoft-Style) */
.profile-avatar {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border: 2px solid #dee2e6;
    transition: border-color 0.3s ease;
}

.btn:hover .profile-avatar {
    border-color: #9e621b !important;
}

.profile-avatar-lg {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border: 2px solid #dee2e6;
}

.profile-dropdown-menu {
    min-width: 280px;
    border-radius: 8px;
}

.profile-dropdown-header {
    border-radius: 8px 8px 0 0;
}

.profile-menu-icon {
    font-size: 1.1rem;
}

.fas,
.far,
.fab,
.fa,
.fa-solid,
.fa-regular,
.fa-brands,
i[class*="fa-"] {
    color: #4e6b5d !important;
}

.btn:not(.btn-link) i[class*="fa-"],
.btn-primary i,
.btn-secondary i,
.btn-success i,
.btn-danger i,
.btn-warning i,
.btn-info i,
.btn-dark i {
    color: #0F172A !important;
}

p,
span,
a,
li,
button,
input,
select,
textarea,
label,
th,
td,
.btn,
.form-control,
.form-select {
    color: #0F172A;
    font-family: Verdana, Geneva, sans-serif;
    font-style: normal;
    font-weight: 400;
    font-size: 0.9rem;
}

h1,
h2 {
    color: #0F172A !important;
    font-family: 'Montserrat Alternates', system-ui, sans-serif !important;
    font-style: normal;
    font-weight: 800;
}

h3,
h4,
h5,
h6 {
    color: #0F172A !important;
    font-family: 'Montserrat Alternates', system-ui, sans-serif;
    font-style: normal;
    font-weight: 700;
}

.text-profection-blue {
    color: var(--profection-blue) !important;
}

.text-profection-mid-green {
    color: var(--profection-mid-green) !important;
}

.text-profection-anthracite {
    color: var(--profection-anthracite) !important;
}


.navbar-nav .nav-link.active {
    color: #0F172A !important;
    border-bottom: 2px solid #90afa0;
}

.navbar-nav .nav-link:hover {
    color: #0F172A !important;
    border-bottom: 2px solid #90afa0;
}

.navbar-nav .nav-link:active {
    color: #0F172A !important;
}

.navbar-nav .nav-link:focus {
    color: #0F172A !important;
}

.navbar-nav .nav-link:visited {
    color: #0F172A !important;
}

.dropdown-menu .dropdown-item {
    color: #0F172A;
    font-weight: 500;
    border-left: 2px solid transparent;
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.dropdown-menu .dropdown-item:hover {
    color: #0F172A !important;
    background-color: #f3faf7;
    border-left: 2px solid #90afa0;
}

.btn-mid-green,
.btn-anthracite,
.btn-blue,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-danger,
.btn-warning,
.btn-info,
.btn-dark {
    background-color: #f5ac62 !important;
    color: #0F172A !important;
    border-color: #f5ac62 !important;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:not(.rechnung-tile-btn):not(.faq-card-btn):not(.btn-link):hover {
    background-color: #9e621b !important;
    border-color: #9e621b !important;
    color: #fff !important;
}

.btn:not(.rechnung-tile-btn):not(.faq-card-btn):not(.btn-link):hover i {
    color: #fff !important;
}

.btn.btn-link:hover i {
    color: #f5ac62 !important;
}

.text-profection-blue {
    color: var(--profection-blue) !important;
}

.text-profection-mid-green {
    color: var(--profection-mid-green) !important;
}

.text-profection-anthracite {
    color: var(--profection-anthracite) !important;
}


.profection-blue-background {
    background-color: var(--profection-blue) !important;
}

.text-white {
    color: white !important;
}

input:focus {
    outline: none !important;
    border-color: var(--profection-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(69, 122, 134, 0.15) !important;
}

select:focus {
    outline: none !important;
    border-color: var(--profection-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(69, 122, 134, 0.15) !important;
}

.form-select {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

.form-select:focus {
    border-color: var(--profection-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(69, 122, 134, 0.15) !important;
}

select.form-select.quick-rechnung,
select.form-select.nav-select-branded {
    background-color: #fff !important;
    color: #212529 !important;
    border-color: #dee2e6 !important;
}

select.form-select.quick-rechnung:hover,
select.form-select.quick-rechnung:focus,
select.form-select.quick-rechnung:active,
select.form-select.nav-select-branded:hover,
select.form-select.nav-select-branded:focus,
select.form-select.nav-select-branded:active {
    border-color: var(--profection-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(69, 122, 134, 0.15) !important;
}



.cta {
    padding: 2rem !important;
    border: 1px solid rgba(41, 41, 41, 0.12) !important;

    border-radius: 0.5rem;

    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

#rechnung-type {
    width: 100% !important;
    border: 1px solid #dee2e6 !important;
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    background-color: #fff !important;
    color: #212529 !important;
    margin-top: 1.5rem;
}

#rechnung-type:hover,
#rechnung-type:active,
#rechnung-type:focus {
    border-color: var(--profection-blue) !important;
    box-shadow: 0 0 0 0.2rem rgba(69, 122, 134, 0.15) !important;
    outline: none !important;
}

option.select-separator {
    color: var(--profection-anthracite) !important;
    background-color: #f0f0f0 !important;
    text-align: center !important;
}

/* Phoenix LiveView Flash Notifications (Bootstrap 5) */
.phx-flash {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 9999;
    min-width: 320px;
    max-width: 480px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    cursor: pointer;
}

#flash-group {
    position: fixed;
    top: 0;
    right: 0;
    z-index: 9999;
    pointer-events: none;
}

#flash-group>.phx-flash {
    position: relative;
    top: auto;
    right: auto;
    margin: 1rem 1rem 0 auto;
    pointer-events: auto;
}

.table,
.table th,
.table td,
table th,
table td,
thead th {
    font-size: 0.9rem !important;
    color: #0F172A !important;
}

th,
.table th,
thead th {
    font-weight: 600 !important;
}

/* Dashboard pagination */
.pagination .page-link {
    background-color: #f5ac62 !important;
    border-color: #f5ac62 !important;
    color: #0F172A !important;
}

.pagination .page-item.active .page-link {
    background-color: #9e621b !important;
    border-color: #9e621b !important;
    color: #fff !important;
}

.pagination .page-link:hover {
    background-color: #9e621b !important;
    border-color: #9e621b !important;
    color: #fff !important;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    background-color: #fff !important;
}

/* Kunden-Feld Skeleton-Animation (BPM lädt) */
.kunden-field-skeleton {
    background: linear-gradient(90deg, #e9ecef 25%, #f8f9fa 50%, #e9ecef 75%) !important;
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s ease-in-out infinite;
    color: transparent !important;
    pointer-events: none;
}

@keyframes skeleton-pulse {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Kunden-Feld Shimmer (DAL lädt, BPM-Daten bereits angezeigt) */
.kunden-field-shimmer {
    border-color: var(--profection-blue) !important;
    box-shadow: 0 0 0 1px rgba(0, 123, 255, 0.25);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* Kurzer Highlight bei Feld-Update durch DAL */
.kunden-field-updated {
    animation: field-highlight 0.8s ease-out;
}

@keyframes field-highlight {
    0% {
        box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.4);
    }

    100% {
        box-shadow: none;
    }
}

/* Toggle switches and checkboxes */
.form-check-input {
    background-color: #f5ac62 !important;
    border-color: #f5ac62 !important;
}

.form-check-input:checked {
    background-color: #9e621b !important;
    border-color: #9e621b !important;
}

.form-check-input:focus {
    border-color: #f5ac62 !important;
    box-shadow: 0 0 0 0.25rem rgba(245, 172, 98, 0.25) !important;
}

.form-check-input:checked:focus {
    background-color: #9e621b !important;
    border-color: #9e621b !important;
    box-shadow: 0 0 0 0.25rem rgba(158, 98, 27, 0.25) !important;
}

/* Dashboard toggle switch sizing */
#filter_sap_offen,
#filter_dms_offen,
#filter_ohne_bpid {
    width: 2.5em;
    height: 1.25em;
    margin-top: 0.15em;
}

/* Leistungsart accordion compact header */
.la-accordion .accordion-button {
    padding: 0.375rem 0.75rem;
    font-size: 0.9rem;
    min-height: auto;
    background-color: #fff !important;
    color: #0F172A !important;
}

.la-accordion .accordion-button:not(.collapsed) {
    background-color: #fff !important;
    color: #0F172A !important;
    box-shadow: none;
}

.la-accordion .accordion-header {
    display: flex;
    align-items: center;
}

.la-accordion .accordion-header .accordion-button {
    flex: 1;
}

.la-accordion.la-single .btn-remove-la {
    opacity: 0.3;
    pointer-events: none;
}

.positions-container.position-single .btn-remove-position {
    display: none;
}

.btn-remove-position {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
    background-color: #f5ac62 !important;
    border-color: #f5ac62 !important;
    color: #0F172A !important;
    transition: all 0.3s ease;
}

.btn-remove-position:hover {
    background-color: #9e621b !important;
    border-color: #9e621b !important;
    color: #fff !important;
}

.btn-remove-position:hover i {
    color: #fff !important;
}

.la-accordion .accordion-header .btn-remove-la {
    padding: 0.25rem 0.5rem;
    margin: 0.25rem 0.75rem;
    background-color: #f5ac62;
    border-color: #f5ac62;
    color: #0F172A;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.5rem;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.la-accordion .accordion-header .btn-remove-la:hover {
    background-color: #9e621b;
    border-color: #9e621b;
    color: #fff;
}

.la-accordion .accordion-header .btn-remove-la:hover i {
    color: #fff;
}

/* Rechnung card grid on home page */
.rechnung-tile-card {
    aspect-ratio: 1 / 1;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.rechnung-tile-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.rechnung-tile-card .card-body {
    justify-content: center;
}

.rechnung-tile-btn {
    font-size: 0.9rem;
    color: #bbb;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 0.25rem;
    padding: 0.3rem 0.85rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: visibility 0s 0.25s, opacity 0.25s ease, transform 0.25s ease,
                background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none !important;
}

.card:hover .rechnung-tile-btn {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: visibility 0s 0s, opacity 0.25s ease, transform 0.25s ease,
                background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.rechnung-tile-btn:hover {
    text-decoration: none !important;
}

.tile-drag-ready .rechnung-tile-card {
    outline: 2px dashed #f5ac62;
    outline-offset: -2px;
    cursor: grab;
}

.tile-dragging {
    opacity: 0.4;
}

.tile-dragging .rechnung-tile-card {
    cursor: grabbing;
}

.tile-drag-over {
    outline: 2px solid #f5ac62;
    outline-offset: -2px;
    background-color: rgba(245, 172, 98, 0.08);
    border-radius: 0.5rem;
}

.faq-clickable-card {
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.faq-clickable-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    transform: translateY(-2px);
}

.faq-card-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #bbb;
    font-size: 0.9rem;
    padding: 0.3rem 0.85rem;
    visibility: hidden;
    opacity: 0;
    transform: translateY(4px);
    transition: visibility 0s 0.25s, opacity 0.25s ease, transform 0.25s ease,
                background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-decoration: none !important;
}

.card:hover .faq-card-btn {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
    transition: visibility 0s 0s, opacity 0.25s ease, transform 0.25s ease,
                background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.faq-card-btn:hover {
    text-decoration: none !important;
}