@media (max-width: 600px) {
    .navbar-nav .nav-item {
        margin-bottom: 10px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .navbar-nav .nav-link {
        text-align: center;
    }
}
.dashboard-section {
  background: #fff;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 2px 15px rgba(0,0,0,0.1);
}

.badge {
  font-size: 0.9em;
}

.table {
  margin-top: 15px;
}

.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.hero {
    background-image: url("../images/sipnpay_logo_transparent.png");
    background-size: cover;
    background-position: center;
}

.feature-box {
    background-color: #f8f9fa;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    height: 100%;
}

.navbar-toggler {
    z-index: 1050 !important;
    position: relative !important;
    background-color: #F6AE2D !important;
    box-shadow: 5px 5px 0px #F26419 !important;
}

.nav {
    align-items: center;
}

.nav-link {
    color: #ffffff;
    margin-right: 10px;
}

.nav-item.ms-auto .nav-link {
    background-color: #dc3545;
    border-radius: 5px;
    padding: 5px 10px;
}
.nav-item.ms-auto .nav-link:hover {
    background-color: #c82333;
    color: #ffffff;
}

.dropdown-menu {
    background-color: transparent !important;
    border: none !important;
}

.comic-button {
    margin-bottom: 4px;
    margin-right: 10px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #ffffff !important;
    background-color: #F6AE2D !important;
    border: 2px solid #F6AE2D !important;
    box-shadow: 5px 5px 0px #F26419 !important;
    border-radius: 10px;
    transition: all 0.3s ease !important;
}

.comic-button:hover {
    background-color: #F26419 !important;
    border: 2px solid #F26419 !important;
    color: #ffffff !important;
    box-shadow: 5px 5px 0px #ffffff;
}

.comic-button:active {
    background-color: #F26419 !important;
    border: 2px solid #F26419 !important;
    box-shadow: none !important;
    transform: translateY(4px) !important;
}

.comic-button-blue {
    margin-right: 10px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #ffffff !important;
    background-color: #33658A !important;
    border: 2px solid #33658A !important;
    box-shadow: 5px 5px 0px #86BBD8 !important;
    border-radius: 10px;
    transition: all 0.3s ease !important;
}

.comic-button-blue:hover {
    background-color: #86BBD8 !important;
    border: 2px solid #86BBD8 !important;
    color: #ffffff !important;
    box-shadow: 5px 5px 0px #ffffff;
}

.comic-button-blue:active {
    background-color: #86BBD8 !important;
    border: 2px solid #86BBD8 !important;
    box-shadow: none !important;
    transform: translateY(4px) !important;
}

.comic-button-red {
    margin-right: 10px;
    font-weight: bold;
    text-align: center;
    text-decoration: none;
    color: #ffffff !important;
    background-color: #EF6351 !important;
    border: 2px solid #EF6351 !important;
    box-shadow: 5px 5px 0px #dc3545 !important;
    border-radius: 10px;
    transition: all 0.3s ease !important;
}

.comic-button-red:hover {
    background-color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    color: #ffffff !important;
    box-shadow: 5px 5px 0px #ffffff;
}

.comic-button-red:active {
    background-color: #dc3545 !important;
    border: 2px solid #dc3545 !important;
    box-shadow: none !important;
    transform: translateY(4px) !important;
}

.flash-messages .error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.flash-messages .success {
    background-color: #d4edda;
    color: #155724;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 10px;
}

.cookie-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.cookie-content {
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    max-width: 400px;
}

.cookie-content p {
    margin-bottom: 15px;
}

.cookie-content button {
    padding: 10px 20px;
}

/* Mobile Table Optimization */
@media (max-width: 768px) {
    /* Responsive table wrapper */
    .table-responsive {
        border: none;
        border-radius: 8px;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Hide less important columns on mobile */
    .table th:nth-child(n+5),
    .table td:nth-child(n+5) {
        display: none;
    }
    
    /* Special handling for specific tables */
    .table.admin-users-table th:nth-child(n+4),
    .table.admin-users-table td:nth-child(n+4) {
        display: none;
    }
    
    .table.admin-products-table th:nth-child(n+4),
    .table.admin-products-table td:nth-child(n+4) {
        display: none;
    }
    
    .table.admin-config-table th:nth-child(n+4),
    .table.admin-config-table td:nth-child(n+4) {
        display: none;
    }
    
    /* Make table cells more compact */
    .table td, .table th {
        padding: 0.5rem 0.25rem;
        font-size: 0.875rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 150px;
    }
    
    /* Action buttons in mobile */
    .table .btn-group {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .table .btn {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
        margin: 1px;
    }
    
    /* Show mobile-friendly action indicators */
    .mobile-actions {
        display: block !important;
    }
    
    .desktop-actions {
        display: none !important;
    }
}

@media (max-width: 576px) {
    /* Further optimization for very small screens */
    .table td, .table th {
        padding: 0.25rem 0.125rem;
        font-size: 0.75rem;
        max-width: 100px;
    }
    
    /* Hide even more columns on very small screens */
    .table th:nth-child(n+3),
    .table td:nth-child(n+3) {
        display: none;
    }
    
    .table.admin-users-table th:nth-child(n+2),
    .table.admin-users-table td:nth-child(n+2) {
        display: none;
    }
    
    .table.admin-products-table th:nth-child(n+2),
    .table.admin-products-table td:nth-child(n+2) {
        display: none;
    }
    
    .table.admin-config-table th:nth-child(n+2),
    .table.admin-config-table td:nth-child(n+2) {
        display: none;
    }
}

/* Mobile card layout for complex tables */
@media (max-width: 768px) {
    .mobile-card-layout {
        display: none;
    }
    
    .mobile-card-layout .card {
        margin-bottom: 1rem;
        border: 1px solid #dee2e6;
        border-radius: 8px;
    }
    
    .mobile-card-layout .card-header {
        background-color: #f8f9fa;
        border-bottom: 1px solid #dee2e6;
        font-weight: bold;
    }
    
    .mobile-card-layout .card-body {
        padding: 1rem;
    }
    
    .mobile-card-layout .row {
        margin-bottom: 0.5rem;
    }
    
    .mobile-card-layout .col-4 {
        font-weight: bold;
        color: #6c757d;
    }
    
    .mobile-card-layout .col-8 {
        color: #212529;
    }
    
    .mobile-card-layout .btn-group {
        margin-top: 0.5rem;
    }
    
    .mobile-card-layout .d-flex {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .mobile-card-layout .d-flex .btn {
        flex: 1;
        min-width: auto;
    }
}

/* Show mobile layout when screen is small */
@media (max-width: 768px) {
    .desktop-table-layout {
        display: none;
    }
    
    .mobile-card-layout {
        display: block !important;
    }
}

/* Hide mobile layout on larger screens */
@media (min-width: 769px) {
    .mobile-card-layout {
        display: none !important;
    }
    
    .desktop-table-layout {
        display: block;
    }
}

/* Center admin content for laptop screens */
@media (min-width: 992px) {
    /* Center the main admin container */
    .container-fluid .row {
        justify-content: center;
    }
    
    /* Limit the width of admin content for better readability */
    .container-fluid .col-md-9 {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    /* Center the inner container */
    .container-fluid .col-md-9 .container {
        max-width: 100%;
        margin: 0 auto;
    }
}

/* Further optimization for large laptop screens */
@media (min-width: 1200px) {
    .container-fluid .col-md-9 {
        max-width: 1400px;
    }
    
    /* Center tables and content within the admin area */
    .desktop-table-layout .table-responsive {
        margin: 0 auto;
    }
    
    /* Center buttons and forms */
    .container-fluid .col-md-9 .container .btn,
    .container-fluid .col-md-9 .container .form-control {
        margin-bottom: 10px;
    }
    
    /* Center button groups */
    .container-fluid .col-md-9 .container .btn-group {
        justify-content: center;
    }
}

/* Extra large screens - further centering */
@media (min-width: 1400px) {
    .container-fluid .col-md-9 {
        max-width: 1600px;
    }
    
    /* Center page titles and headers */
    .container-fluid .col-md-9 .container h1,
    .container-fluid .col-md-9 .container h2,
    .container-fluid .col-md-9 .container h3 {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    /* Center descriptive text */
    .container-fluid .col-md-9 .container p {
        text-align: center;
        max-width: 800px;
        margin: 0 auto 1.5rem;
    }
    
    /* Style action buttons properly */
    .container-fluid .col-md-9 .container .btn-success,
    .container-fluid .col-md-9 .container .btn-primary,
    .container-fluid .col-md-9 .container .btn-info {
        margin: 0.25rem 0.5rem 0.25rem 0;
        display: inline-block;
    }
    
    /* Create a button container for better layout */
    .container-fluid .col-md-9 .container .button-container {
        text-align: center;
        margin: 1rem 0;
    }
    
    /* Center flash messages */
    .container-fluid .col-md-9 .container .flash-messages {
        max-width: 800px;
        margin: 0 auto 2rem;
    }
    
    /* Center form groups */
    .container-fluid .col-md-9 .container .form-group {
        max-width: 600px;
        margin: 0 auto 1rem;
    }
    
    /* Center modal content when possible */
    .modal-dialog {
        margin: 1.75rem auto;
    }
}

/* Additional centering for medium laptop screens */
@media (min-width: 992px) and (max-width: 1199px) {
    /* Style buttons properly without breaking layout */
    .container-fluid .col-md-9 .container .btn {
        margin: 0.25rem 0.5rem 0.25rem 0;
        display: inline-block;
    }
    
    /* Group buttons together */
    .container-fluid .col-md-9 .container .btn-group {
        display: inline-flex;
        margin: 0.25rem;
    }
    
    /* Center form elements */
    .container-fluid .col-md-9 .container .form-inline {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    /* Center filter forms */
    .container-fluid .col-md-9 .container .mb-3 form {
        text-align: center;
    }
    
    .container-fluid .col-md-9 .container .mb-3 form .form-control {
        display: inline-block;
        margin: 0.25rem;
    }
}

/* Center dashboard and stats elements */
@media (min-width: 992px) {
    .stats-grid {
        max-width: 800px;
        margin: 0 auto;
        text-align: center;
    }
    
    .stats-grid p {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    /* Center summary cards */
    .card.bg-light {
        margin: 0 auto 1rem;
        max-width: 300px;
    }
    
    /* Center pagination */
    .pagination {
        justify-content: center;
    }
}

/* Ensure proper spacing and alignment */
@media (min-width: 992px) {
    .container-fluid .col-md-9 .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
    
    /* Center table containers */
    .desktop-table-layout {
        margin: 0 auto;
    }
    
    /* Center alert messages */
    .alert {
        max-width: 800px;
        margin: 0 auto 1rem;
    }
    
    /* Fix button layout issues */
    .container-fluid .col-md-9 .container .btn {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
        vertical-align: top;
    }
    
    /* Create natural button groups */
    .container-fluid .col-md-9 .container .btn:last-child {
        margin-right: 0;
    }
    
    /* Style button rows properly */
    .container-fluid .col-md-9 .container .button-row {
        margin: 1rem 0;
        text-align: left;
    }
    
    /* Center button containers when needed */
    .container-fluid .col-md-9 .container .button-row.centered {
        text-align: center;
    }
    
    /* Ensure buttons maintain proper spacing */
    .container-fluid .col-md-9 .container .button-row .btn {
        margin-right: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    /* Remove right margin from last button in row */
    .container-fluid .col-md-9 .container .button-row .btn:last-child {
        margin-right: 0;
    }
    
    /* Better button sizing for laptop screens */
    .container-fluid .col-md-9 .container .btn {
        min-width: auto;
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
}

/* Specific button styling for larger laptop screens */
@media (min-width: 1200px) {
    .container-fluid .col-md-9 .container .button-row {
        margin: 1.5rem 0;
    }
    
    .container-fluid .col-md-9 .container .btn {
        padding: 0.6rem 1.2rem;
        font-size: 1rem;
    }
}

/* Confirmation Dialog Styles */
.confirmation-modal .modal-dialog {
    max-width: 500px;
}

.confirmation-modal .modal-header {
    background-color: #dc3545;
    color: white;
    border-bottom: none;
}

.confirmation-modal .modal-header .modal-title {
    font-weight: bold;
}

.confirmation-modal .modal-body {
    padding: 2rem;
    text-align: center;
}

.confirmation-modal .modal-body .warning-icon {
    font-size: 3rem;
    color: #dc3545;
    margin-bottom: 1rem;
}

.confirmation-modal .modal-footer {
    border-top: none;
    justify-content: center;
    padding: 1rem 2rem 2rem;
}

.confirmation-modal .btn-confirm-delete {
    background-color: #dc3545;
    border-color: #dc3545;
    margin-left: 1rem;
}

.confirmation-modal .btn-confirm-delete:hover {
    background-color: #c82333;
    border-color: #bd2130;
}

/* Danger button styling enhancement */
.btn-danger.delete-btn {
    position: relative;
    transition: all 0.3s ease;
}

.btn-danger.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}


/* ================================================================
   SipNPay Homepage Redesign — scoped to .snp-home
   All rules below only affect the public landing page.
   ================================================================ */

/* --- Reset global overrides from admin styles on the homepage --- */
.snp-home .container,
.snp-home .container-fluid {
    text-align: left;
    max-width: none;
    padding: 0;
    margin: 0;
}

/* Shared wide container used on the homepage */
.snp-wide {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ----------------------------------------------------------------
   Navigation
   ---------------------------------------------------------------- */
.snp-nav {
    background-color: #2F4858;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0.6rem 0;
}

.snp-nav__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    gap: 1rem;
}

.snp-nav__brand img {
    display: block;
}

.snp-nav__links .nav-link,
.snp-nav__link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.9rem !important;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
}

.snp-nav__link:hover {
    color: #F6AE2D !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
}

.snp-nav__toggler {
    background: rgba(255, 255, 255, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 6px;
    color: white;
    padding: 0.4rem 0.7rem;
    font-size: 1rem;
    box-shadow: none !important;
}

.snp-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}

@media (max-width: 991px) {
    .snp-nav__links {
        padding: 0.75rem 0;
    }
    .snp-nav__actions {
        flex-direction: row;
        padding: 0.75rem 0 0.25rem;
        flex-wrap: wrap;
    }
}

/* ----------------------------------------------------------------
   Buttons
   ---------------------------------------------------------------- */
.snp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: background-color 0.2s ease, border-color 0.2s ease,
                box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
    line-height: 1.4;
}

.snp-btn--primary {
    background-color: #F6AE2D;
    border-color: #F6AE2D;
    color: #1a2836 !important;
}

.snp-btn--primary:hover {
    background-color: #e09d1e;
    border-color: #e09d1e;
    color: #1a2836 !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(246, 174, 45, 0.35);
}

.snp-btn--outline {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.45);
    color: rgba(255, 255, 255, 0.9) !important;
}

.snp-btn--outline:hover {
    border-color: white;
    color: white !important;
    background-color: rgba(255, 255, 255, 0.07);
}

.snp-btn--ghost {
    background-color: transparent;
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.85) !important;
}

.snp-btn--ghost:hover {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.5);
    color: white !important;
}

.snp-btn--lg {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border-radius: 10px;
}

/* ----------------------------------------------------------------
   Hero
   ---------------------------------------------------------------- */
.snp-hero {
    background: linear-gradient(140deg, #1a2e42 0%, #2F4858 55%, #1e3448 100%);
    color: white;
    padding: 100px 1.5rem 90px;
    text-align: center;
}

.snp-hero__inner {
    max-width: 760px;
    margin: 0 auto;
}

.snp-hero__badge {
    display: inline-block;
    background: rgba(246, 174, 45, 0.12);
    border: 1px solid rgba(246, 174, 45, 0.35);
    color: #F6AE2D;
    border-radius: 100px;
    padding: 0.3rem 1rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 1.75rem;
}

.snp-hero__title {
    font-size: clamp(2rem, 5.5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.12;
    margin-bottom: 1.25rem;
    letter-spacing: -0.025em;
}

.snp-hero__sub {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    color: rgba(255, 255, 255, 0.7);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.75;
}

.snp-hero__cta {
    display: flex;
    gap: 0.875rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ----------------------------------------------------------------
   Section scaffold
   ---------------------------------------------------------------- */
.snp-section {
    padding: 84px 1.5rem;
}

.snp-section--light {
    background-color: #f4f6f8;
}

.snp-section--dark {
    background-color: #2F4858;
    color: white;
}

.snp-label {
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #F6AE2D;
    margin-bottom: 0.6rem;
}

.snp-label--accent {
    color: #F6AE2D;
    text-align: left;
}

.snp-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #1a2836;
    margin-bottom: 3rem;
    line-height: 1.2;
}

.snp-title--light {
    color: white;
    text-align: left;
    margin-bottom: 1.25rem;
}

/* ----------------------------------------------------------------
   Steps
   ---------------------------------------------------------------- */
.snp-steps {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.snp-step {
    flex: 1;
    min-width: 200px;
    max-width: 270px;
    text-align: center;
    padding: 0 1.5rem;
}

.snp-step__num {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background-color: #F6AE2D;
    color: #1a2836;
    font-weight: 800;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.snp-step__icon {
    font-size: 1.9rem;
    color: #33658A;
    margin-bottom: 0.875rem;
}

.snp-step__title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #1a2836;
    margin-bottom: 0.5rem;
}

.snp-step__desc {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

.snp-steps__connector {
    flex: 0 0 48px;
    height: 2px;
    background: linear-gradient(90deg, #F6AE2D 0%, #33658A 100%);
    margin-top: 19px;
    align-self: flex-start;
}

@media (max-width: 767px) {
    .snp-steps__connector { display: none; }
    .snp-steps { gap: 2.5rem; }
    .snp-step { max-width: 100%; }
}

/* ----------------------------------------------------------------
   Feature grid
   ---------------------------------------------------------------- */
.snp-features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
}

.snp-feature {
    background: white;
    border: 1px solid #e4e8ec;
    border-radius: 12px;
    padding: 1.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-align: left;
}

.snp-feature:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.07);
}

.snp-feature__icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background-color: rgba(51, 101, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #33658A;
    margin-bottom: 1rem;
}

.snp-feature__title {
    font-size: 0.975rem;
    font-weight: 700;
    color: #1a2836;
    margin-bottom: 0.4rem;
}

.snp-feature__desc {
    font-size: 0.855rem;
    color: #6c757d;
    line-height: 1.7;
    margin: 0;
}

/* ----------------------------------------------------------------
   Split section (dark bg, text + mockup)
   ---------------------------------------------------------------- */
.snp-split {
    display: flex;
    align-items: center;
    gap: 4rem;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.snp-split__text {
    flex: 1;
    min-width: 280px;
}

.snp-split__desc {
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.75;
    margin-bottom: 1.25rem;
    font-size: 0.975rem;
}

.snp-split__visual {
    flex: 1;
    min-width: 280px;
}

.snp-checklist {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0 0;
}

.snp-checklist li {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 0;
    font-size: 0.925rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.snp-checklist li i {
    color: #F6AE2D;
    flex-shrink: 0;
}

/* ----------------------------------------------------------------
   UI Mockup widget
   ---------------------------------------------------------------- */
.snp-mockup {
    background: #1a2e42;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 28px 56px rgba(0, 0, 0, 0.35);
}

.snp-mockup__bar {
    background: rgba(255, 255, 255, 0.04);
    height: 34px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    gap: 6px;
}

.snp-mockup__bar::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #EF6351;
    box-shadow: 16px 0 0 #F6AE2D, 32px 0 0 #5dc589;
}

.snp-mockup__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: white;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.snp-mockup__badge {
    background: rgba(246, 174, 45, 0.15);
    color: #F6AE2D;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
}

.snp-mockup__stats {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.snp-mockup__stat {
    flex: 1;
    padding: 0.875rem 1rem;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.snp-mockup__stat:last-child {
    border-right: none;
}

.snp-mockup__stat-label {
    display: block;
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
}

.snp-mockup__stat-val {
    display: block;
    font-size: 0.975rem;
    font-weight: 700;
    color: white;
}

.snp-mockup__stat-val--warn {
    color: #F6AE2D;
}

.snp-mockup__order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
    gap: 0.75rem;
}

.snp-mockup__order:last-child {
    border-bottom: none;
}

.snp-mockup__pill {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.2rem 0.65rem;
    border-radius: 100px;
    flex-shrink: 0;
}

.snp-mockup__pill--open {
    background: rgba(246, 174, 45, 0.15);
    color: #F6AE2D;
}

.snp-mockup__pill--done {
    background: rgba(93, 197, 137, 0.15);
    color: #5dc589;
}

/* ----------------------------------------------------------------
   Contact
   ---------------------------------------------------------------- */
.snp-contact-wrap {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    padding: 0 1.5rem;
}

.snp-contact__desc {
    color: #6c757d;
    margin-bottom: 2rem;
    font-size: 1rem;
    line-height: 1.7;
}

/* ----------------------------------------------------------------
   Footer
   ---------------------------------------------------------------- */
.snp-footer {
    background-color: #1a2e42;
    padding: 1.75rem 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.snp-footer__inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.snp-footer__links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.snp-footer__links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s;
}

.snp-footer__links a:hover {
    color: rgba(255, 255, 255, 0.85);
}

/* ----------------------------------------------------------------
   Responsive adjustments
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .snp-hero { padding: 72px 1.5rem 60px; }
    .snp-section { padding: 60px 1.5rem; }
    .snp-split { gap: 2.5rem; }
    .snp-footer__inner { justify-content: center; text-align: center; }
    .snp-footer__links { justify-content: center; }
}

@media (max-width: 479px) {
    .snp-hero { padding: 56px 1rem 48px; }
    .snp-features { grid-template-columns: 1fr; }
    .snp-mockup__stats { flex-direction: column; }
    .snp-mockup__stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
    .snp-mockup__stat:last-child { border-bottom: none; }
}


/* ================================================================
   Auth pages (login, customer-login, superlogin)
   Scoped to .snp-auth-page
   ================================================================ */

.snp-auth-page {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f4f6f8;
}

.snp-auth {
    display: flex;
    min-height: 100vh;
}

/* Left branding panel */
.snp-auth__panel {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(160deg, #1a2e42 0%, #2F4858 60%, #1e3448 100%);
    color: white;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
}

.snp-auth__logo {
    display: inline-block;
    margin-bottom: auto;
}

.snp-auth__panel-body {
    padding: 2rem 0 1rem;
}

.snp-auth__panel-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
    font-weight: 700;
    color: #F6AE2D;
    margin-bottom: 0.6rem;
}

.snp-auth__panel-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.snp-auth__panel-sub {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.925rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

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

.snp-auth__panel-list li {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    padding: 0.35rem 0;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.snp-auth__panel-list li i {
    color: #F6AE2D;
    flex-shrink: 0;
}

/* Right form panel */
.snp-auth__form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.snp-auth__card {
    background: white;
    border-radius: 16px;
    padding: 2.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid #e4e8ec;
}

.snp-auth__card-header {
    text-align: center;
    margin-bottom: 1.75rem;
}

.snp-auth__icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(51, 101, 138, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: #33658A;
    margin: 0 auto 1rem;
}

.snp-auth__icon--super {
    background: rgba(246, 174, 45, 0.12);
    color: #e09d1e;
}

.snp-auth__title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #1a2836;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.snp-auth__sub {
    font-size: 0.875rem;
    color: #6c757d;
    margin: 0;
}

.snp-auth__alert {
    margin-bottom: 1.25rem;
    font-size: 0.875rem;
}

/* Form fields */
.snp-field {
    margin-bottom: 1.1rem;
}

.snp-field__label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.4rem;
}

.snp-field__wrap {
    position: relative;
}

.snp-field__icon {
    position: absolute;
    left: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.875rem;
    pointer-events: none;
}

.snp-field__input {
    width: 100%;
    padding: 0.65rem 0.9rem 0.65rem 2.5rem;
    border: 1.5px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.925rem;
    color: #1a2836;
    background: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    -webkit-appearance: none;
}

.snp-field__input:focus {
    border-color: #33658A;
    box-shadow: 0 0 0 3px rgba(51, 101, 138, 0.12);
    background: white;
}

.snp-field__input::placeholder {
    color: #9ca3af;
}

/* Block button modifier */
.snp-btn--block {
    display: flex;
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1.5rem;
    font-size: 0.95rem;
    margin-top: 0.5rem;
}

/* Auth footer links */
.snp-auth__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f0f0f0;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.snp-auth__alt-link,
.snp-auth__back {
    font-size: 0.825rem;
    text-decoration: none;
    color: #6c757d;
    transition: color 0.2s;
}

.snp-auth__alt-link:hover,
.snp-auth__back:hover {
    color: #33658A;
}

/* Hide left panel on small screens */
@media (max-width: 767px) {
    .snp-auth__panel { display: none; }
    .snp-auth__form-wrap { padding: 1.5rem 1rem; background: #f4f6f8; }
    .snp-auth__card { padding: 2rem 1.5rem; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
}


/* ================================================================
   App shell — admin & customer pages
   Scoped to .snp-app
   ================================================================ */

.snp-app {
    background: #f4f6f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App nav */
.snp-app-nav {
    background-color: #2F4858;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    padding: 0;
    z-index: 1030;
}

.snp-app-nav__inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    width: 100%;
    flex-wrap: nowrap;
    gap: 0.75rem;
}

.snp-app-nav__brand img {
    display: block;
}

.snp-app-nav__toggler {
    background: rgba(255, 255, 255, 0.12) !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 8px;
    color: white;
    /* Groß genug für Fingertippen: min. 44×44 px */
    padding: 0.55rem 0.85rem;
    font-size: 1.15rem;
    line-height: 1;
    min-width: 48px;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    box-shadow: none !important;
    transition: background-color 0.2s;
}
.snp-app-nav__toggler:hover,
.snp-app-nav__toggler:focus {
    background: rgba(255, 255, 255, 0.22) !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(246, 174, 45, 0.35) !important;
}
/* "Menü"-Label neben dem Hamburger-Icon */
.snp-app-nav__toggler-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

/* Nav links */
.snp-app-nav__links .nav-link,
.snp-app-nav__link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-size: 0.875rem;
    font-weight: 500;
    padding: 0.45rem 0.75rem !important;
    border-radius: 6px;
    transition: color 0.2s, background-color 0.2s;
    text-decoration: none;
    background: none !important;
    box-shadow: none !important;
    border: none !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.snp-app-nav__link:hover,
.snp-app-nav__links .nav-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.08) !important;
}

/* Dropdown */
.snp-app-nav__dropdown {
    background: #1e3448 !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 10px !important;
    padding: 0.4rem !important;
    min-width: 200px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25) !important;
}

.snp-app-nav__dropdown-item {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 0.875rem !important;
    border-radius: 6px !important;
    padding: 0.5rem 0.75rem !important;
    transition: background-color 0.15s, color 0.15s;
    display: flex;
    align-items: center;
    background: none !important;
}

.snp-app-nav__dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.08) !important;
    color: white !important;
}

/* Right-side actions */
.snp-app-nav__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

.snp-app-nav__icon-btn {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    padding: 0.3rem 0.5rem;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.2s, background-color 0.2s;
    display: flex;
    align-items: center;
}

.snp-app-nav__icon-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

/* Danger-subtle button for logout */
.snp-btn--danger-subtle {
    background-color: rgba(239, 99, 81, 0.15);
    border-color: rgba(239, 99, 81, 0.3);
    color: #f08070 !important;
}

.snp-btn--danger-subtle:hover {
    background-color: rgba(239, 99, 81, 0.25);
    border-color: rgba(239, 99, 81, 0.5);
    color: #ef6351 !important;
}

@media (max-width: 991px) {
    .snp-app-nav__links {
        padding: 0.5rem 0;
    }
    .snp-app-nav__link {
        padding: 0.5rem 0.5rem !important;
    }
    .snp-app-nav__actions {
        padding: 0.5rem 0 0.75rem;
        margin-left: 0;
        flex-wrap: wrap;
    }
    .snp-app-nav__dropdown {
        background: rgba(255,255,255,0.04) !important;
        border: none !important;
        box-shadow: none !important;
        padding: 0 0 0 1rem !important;
    }
}

/* Flash messages */
.snp-flash-wrap {
    max-width: 900px;
    margin: 1rem auto 0;
    padding: 0 1.5rem;
    width: 100%;
}

.snp-flash {
    border-radius: 8px;
    font-size: 0.9rem;
}

/* Main content area */
.snp-app-main {
    flex: 1;
    padding: 1.5rem 0 2rem;
}

/* App footer */
.snp-app-footer {
    background-color: #1e3448;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 1rem 1.5rem;
    margin-top: auto;
}

.snp-app-footer__inner {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.snp-app-footer__version {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
}

.snp-app-footer__links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.snp-app-footer__links a {
    color: rgba(255, 255, 255, 0.4);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.snp-app-footer__links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 575px) {
    .snp-app-footer__inner { justify-content: center; text-align: center; }
    .snp-app-footer__links { justify-content: center; }
}


/* ================================================================
   Customer portal pages
   Used by customer_dashboard.html and customer_orders.html
   ================================================================ */

/* Page wrapper – no horizontal constraint; hero handles its own width */
.cust-page {
    margin-top: -1.5rem; /* flush hero to the nav bar */
}

/* ── Hero banner ── */
.cust-hero {
    background: linear-gradient(135deg, #1a2e42 0%, #2c4a6a 100%);
    padding: 1.75rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.cust-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.cust-hero__greeting {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cust-hero__wave {
    font-size: 2rem;
    line-height: 1;
    flex-shrink: 0;
}

.cust-hero__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.2rem;
}

.cust-hero__name {
    font-size: 1.55rem;
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* ── Content area ── */
.cust-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* ── Stat cards ── */
.cust-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.cust-stats--3 {
    grid-template-columns: repeat(3, 1fr);
}

.cust-stat {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

.cust-stat__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cust-stat__icon--blue  { background: rgba(51,101,138,0.12);  color: #33658A; }
.cust-stat__icon--teal  { background: rgba(26,166,153,0.12);  color: #1aa699; }
.cust-stat__icon--gold  { background: rgba(246,174,45,0.15);  color: #c9890e; }
.cust-stat__icon--slate { background: rgba(100,116,139,0.12); color: #64748b; }
.cust-stat__icon--warn  { background: rgba(242,100,25,0.12);  color: #F26419; }

.cust-stat__body {
    min-width: 0;
}

.cust-stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #9ca3af;
    margin: 0 0 0.2rem;
}

.cust-stat__val {
    font-size: 1.5rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cust-stat__val--sm {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0;
}

/* ── Billing banner ── */
.cust-billing {
    background: #fff;
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    border-left: 4px solid #33658A;
}

.cust-billing--warn {
    border-left-color: #F6AE2D;
    background: #fffdf5;
}

.cust-billing__left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.cust-billing__icon {
    width: 42px;
    height: 42px;
    border-radius: 11px;
    background: rgba(246,174,45,0.15);
    color: #c9890e;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.cust-billing__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: #9ca3af;
    margin: 0 0 0.15rem;
}

.cust-billing__val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #111827;
    margin: 0;
    letter-spacing: -0.02em;
}

.cust-billing--warn .cust-billing__val {
    color: #92400e;
}

.cust-billing__right {
    text-align: right;
}

.cust-billing__info {
    font-size: 0.825rem;
    color: #6b7280;
    margin: 0 0 0.2rem;
}

.cust-billing__note {
    font-size: 0.775rem;
    color: #9ca3af;
    margin: 0;
}

/* ── Content cards ── */
.cust-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
    overflow: hidden;
}

.cust-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    gap: 1rem;
    flex-wrap: wrap;
}

.cust-card__title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cust-card__count {
    font-size: 0.7rem;
    font-weight: 700;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
}

/* ── Vereinsflieger Mitgliedsstatus / Rollen ── */
.adm-member-status {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #1f4e6e;
    background: #e8f0f6;
    padding: 0.15rem 0.55rem;
    border-radius: 20px;
    white-space: nowrap;
}

.adm-member-status--inactive {
    color: #6b7280;
    background: #f3f4f6;
}

.adm-member-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 260px;
    font-size: 0.72rem;
    color: #4b5563;
}

.adm-member-role {
    background: #f3f4f6;
    padding: 0.1rem 0.45rem;
    border-radius: 6px;
    white-space: nowrap;
}

.adm-member-roles__more[open] {
    width: 100%;
}

.adm-member-roles__extra {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.adm-member-roles__more summary {
    cursor: pointer;
    color: #33658A;
    font-weight: 600;
    padding: 0.1rem 0.2rem;
    list-style: none;
}

.adm-member-roles__more summary::-webkit-details-marker {
    display: none;
}

.adm-member-roles__more[open] summary {
    display: none;
}

/* Breite Tabellen (z. B. Benutzerliste mit Rollen) horizontal scrollbar machen */
.adm-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Orders list ── */
.cust-order {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #f9fafb;
    gap: 1rem;
    transition: background-color 0.12s;
}

.cust-order:last-child {
    border-bottom: none;
}

.cust-order:hover {
    background: #fafafa;
}

.cust-order__info {
    min-width: 0;
    flex: 1;
}

.cust-order__product {
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    margin: 0 0 0.15rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cust-order__date {
    font-size: 0.775rem;
    color: #9ca3af;
    margin: 0;
}

.cust-order__meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cust-order__qty {
    font-size: 0.8rem;
    color: #9ca3af;
    min-width: 2rem;
    text-align: right;
}

.cust-order__price {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    min-width: 3.5rem;
    text-align: right;
}

/* ── Status pills ── */
.cust-pill {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    white-space: nowrap;
}

.cust-pill--done {
    background: rgba(5,150,105,0.1);
    color: #059669;
}

.cust-pill--open {
    background: rgba(217,119,6,0.12);
    color: #b45309;
}

/* ── Empty state ── */
.cust-empty {
    padding: 3rem 1.5rem;
    text-align: center;
    color: #9ca3af;
}

.cust-empty__icon {
    font-size: 2rem;
    color: #d1d5db;
    display: block;
    margin-bottom: 0.75rem;
}

.cust-empty p {
    font-size: 0.9rem;
    margin: 0;
}

/* ── Filter form ── */
.cust-filter {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    flex-wrap: wrap;
    padding: 1.1rem 1.5rem;
}

.cust-filter__field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 140px;
}

.cust-filter__label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cust-filter__input {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-size: 0.875rem;
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.cust-filter__input:focus {
    border-color: #F6AE2D;
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
}

/* ── Outline-dark button ── */
.snp-btn--outline-dark {
    background: transparent;
    border: 1.5px solid #e5e7eb;
    color: #374151 !important;
    font-size: 0.82rem;
    padding: 0.4rem 0.9rem;
    font-weight: 600;
}

.snp-btn--outline-dark:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    color: #111827 !important;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .cust-stats     { grid-template-columns: repeat(2, 1fr); }
    .cust-stats--3  { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
    .cust-hero__name { font-size: 1.3rem; }
    .cust-content    { padding: 1.25rem 1rem 2rem; }
    .cust-billing    { flex-direction: column; gap: 0.75rem; }
    .cust-billing__right { text-align: left; }
}

@media (max-width: 575px) {
    /* Stat-Karten: 2 Spalten mit weniger Innenabstand */
    .cust-stats                { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    .cust-stats--3             { grid-template-columns: 1fr 1fr; gap: 0.6rem; }
    /* Weniger Padding & kleineres Icon damit der Text nicht abgeschnitten wird */
    .cust-stat                 { padding: 0.85rem 0.875rem; gap: 0.65rem; }
    .cust-stat__icon           { width: 36px; height: 36px; font-size: 0.95rem; border-radius: 9px; }
    .cust-stat__val            { font-size: 1.2rem; }
    .cust-stat__val--sm        { font-size: 0.9rem; }
    .cust-stat__label          { font-size: 0.66rem; }

    .cust-filter               { flex-direction: column; }
    .cust-filter__field        { min-width: 100%; }
    .cust-order__meta          { gap: 0.5rem; }
}

/* Phones ≤ 480 px (iPhone SE, Galaxy A-Serie): eine Spalte für volle Lesbarkeit */
@media (max-width: 480px) {
    .cust-stats,
    .cust-stats--3 {
        grid-template-columns: 1fr 1fr; /* bleibt 2-spaltig aber kompakter */
    }
    /* Horizontales Layout: Icon links, Text rechts — kein Abschneiden mehr */
    .cust-stat {
        padding: 0.75rem 0.875rem;
    }
}


/* ================================================================
   Admin dashboard
   Reuses cust-hero / cust-card / cust-content where possible
   ================================================================ */

.adm-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 1.75rem 1.5rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Two-column grid for side-by-side cards */
.adm-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

/* ── Ranked list (top customers / cancellers) ── */
.adm-rank-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid #f9fafb;
    transition: background-color 0.12s;
}
.adm-rank-item:last-child { border-bottom: none; }
.adm-rank-item:hover      { background: #fafafa; }

.adm-rank__num {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 0.75rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.adm-rank__num--1 { background: rgba(246,174,45,0.18); color: #92400e; }
.adm-rank__num--2 { background: rgba(148,163,184,0.20); color: #475569; }
.adm-rank__num--3 { background: rgba(180,100,50,0.14); color: #7c3b13; }

.adm-rank__name {
    flex: 1;
    font-size: 0.9rem;
    font-weight: 600;
    color: #111827;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-rank__badge {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
    background: rgba(51,101,138,0.10);
    color: #33658A;
}
.adm-rank__badge--danger {
    background: rgba(220,38,38,0.10);
    color: #dc2626;
}

/* ── Forecast section header (title + period selector) ── */
.adm-forecast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}

.adm-forecast-select {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #6b7280;
}
.adm-forecast-select select {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-size: 0.8rem;
    padding: 0.3rem 0.6rem;
    outline: none;
    cursor: pointer;
    transition: border-color 0.18s;
}
.adm-forecast-select select:focus {
    border-color: #F6AE2D;
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
}

.adm-forecast-note {
    font-size: 0.78rem;
    color: #9ca3af;
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    margin: 0;
}

/* ── Collapsible forecast ── */
/* The divider sits on the body, so the closed card has no stray line at the bottom */
.adm-forecast-header--toggle {
    border-bottom: none;
    flex-wrap: nowrap;
    gap: 0.5rem;
}
.adm-forecast-header--toggle .cust-card__title {
    white-space: nowrap;
}
.adm-forecast-toggle {
    flex-shrink: 0;
}
.adm-forecast-body {
    border-top: 1px solid #f3f4f6;
}
.adm-forecast-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding: 0.6rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
}
.adm-forecast-toolbar .adm-forecast-note {
    padding: 0;
    border-bottom: none;
}
.adm-forecast-toggle .fa-chevron-down {
    transition: transform 0.2s ease;
}
.adm-forecast-toggle[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}
.adm-forecast-toggle[aria-expanded="true"] .adm-forecast-toggle__show,
.adm-forecast-toggle[aria-expanded="false"] .adm-forecast-toggle__hide {
    display: none;
}
@media (prefers-reduced-motion: reduce) {
    .adm-forecast-toggle .fa-chevron-down { transition: none; }
}

/* ── Forecast table ── */
.adm-table {
    width: 100%;
    border-collapse: collapse;
}
.adm-table thead th {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    padding: 0.7rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
    white-space: nowrap;
    text-align: left;
}
.adm-table tbody td {
    padding: 0.8rem 1.5rem;
    color: #374151;
    border-bottom: 1px solid #f9fafb;
    font-size: 0.875rem;
}
.adm-table tbody tr:last-child td { border-bottom: none; }
.adm-table tbody tr:hover td      { background: #fafafa; }

/* ── Forecast mobile cards ── */
.adm-forecast-cards {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.adm-forecast-card {
    background: #f9fafb;
    border-radius: 10px;
    padding: 1rem;
    border: 1px solid #f0f0f0;
}
.adm-forecast-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.6rem;
}
.adm-forecast-card__row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #9ca3af;
    padding: 0.15rem 0;
}
.adm-forecast-card__val {
    font-weight: 600;
    color: #374151;
}

/* ── Responsive ── */
@media (max-width: 991px) {
    .adm-grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
    .adm-content { padding: 1.25rem 1rem 2rem; }
}


/* ================================================================
   Shared admin utilities
   ================================================================ */

/* Small button modifier */
.snp-btn--sm {
    font-size: 0.78rem;
    padding: 0.3rem 0.65rem;
    border-radius: 7px;
    font-weight: 600;
}

/* General modal modernisation (confirmation-modal overrides via higher specificity) */
.modal-content {
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 20px 60px rgba(0,0,0,0.12);
}
.modal-header {
    border-bottom-color: #f3f4f6;
    padding: 1.25rem 1.5rem;
    align-items: center;
}
.modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
}
.modal-body {
    padding: 1.25rem 1.5rem;
}
.modal-footer {
    border-top-color: #f3f4f6;
    padding: 1rem 1.5rem;
}
.modal-body .form-group,
.modal-body .mb-3 {
    margin-bottom: 1rem;
}
.modal-body label {
    font-size: 0.8rem;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.3rem;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.modal-body .form-control,
.modal-body .form-select {
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.9rem;
    padding: 0.55rem 0.75rem;
    background: #f9fafb;
    color: #111827;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.modal-body .form-control:focus,
.modal-body .form-select:focus {
    border-color: #F6AE2D;
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
    background: #fff;
    outline: none;
}

/* Search bar inside a card */
.adm-search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.adm-search-row__wrap {
    position: relative;
    flex: 1;
    min-width: 180px;
    max-width: 400px;
}
.adm-search-row__icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.8rem;
    pointer-events: none;
}
.adm-search-row__input {
    width: 100%;
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-size: 0.875rem;
    padding: 0.48rem 0.75rem 0.48rem 2.2rem;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}
.adm-search-row__input:focus {
    border-color: #F6AE2D;
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
    background: #fff;
}
.adm-search-row__select {
    width: auto;
    min-width: 160px;
    background-color: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 8px;
    color: #111827;
    font-size: 0.875rem;
    padding: 0.42rem 2rem 0.42rem 0.75rem;
}
.adm-search-row__select:focus {
    border-color: #F6AE2D;
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
    background-color: #fff;
}
.adm-search-row__count {
    font-size: 0.78rem;
    color: #9ca3af;
    white-space: nowrap;
    margin-left: auto;
}

/* Mobile user cards */
.adm-user-card {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f9fafb;
    transition: background-color 0.12s;
}
.adm-user-card:last-child { border-bottom: none; }
.adm-user-card:hover      { background: #fafafa; }

.adm-user-card__name {
    font-size: 0.9rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 0.1rem;
}
.adm-user-card__meta {
    font-size: 0.75rem;
    color: #9ca3af;
    margin: 0 0 0.65rem;
}
.adm-user-card__row {
    display: flex;
    gap: 0.5rem;
    font-size: 0.8rem;
    color: #374151;
    margin-bottom: 0.2rem;
}
.adm-user-card__row-label {
    color: #9ca3af;
    min-width: 64px;
    flex-shrink: 0;
    font-weight: 500;
}
.adm-user-card__actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 0.75rem;
}

/* Inline form inputs (inventory table) */
.adm-inline-form {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}
.adm-inline-input {
    background: #f9fafb;
    border: 1.5px solid #e5e7eb;
    border-radius: 7px;
    color: #111827;
    font-size: 0.82rem;
    padding: 0.3rem 0.55rem;
    outline: none;
    transition: border-color 0.18s;
}
.adm-inline-input:focus {
    border-color: #F6AE2D;
    box-shadow: 0 0 0 3px rgba(246,174,45,0.15);
}
.adm-inline-input[type="number"] { width: 80px; }
.adm-inline-input[type="text"]   { min-width: 100px; flex: 1; }

/* Config key-value rows */
.adm-config-list { padding: 0 1.5rem 1.25rem; }
.adm-config-row {
    display: flex;
    gap: 1rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid #f9fafb;
    font-size: 0.875rem;
    align-items: baseline;
    flex-wrap: wrap;
}
.adm-config-row:last-child { border-bottom: none; }
.adm-config-key {
    min-width: 200px;
    flex-shrink: 0;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #9ca3af;
}
.adm-config-val {
    color: #111827;
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
}

/* Log type pill */
.adm-log-pill {
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.adm-log-pill--error { background: rgba(220,38,38,0.10); color: #dc2626; }
.adm-log-pill--info  { background: rgba(51,101,138,0.10); color: #33658A; }

/* Log content box */
.adm-log-content {
    max-height: 100px;
    overflow-y: auto;
    font-family: monospace;
    font-size: 0.78rem;
    color: #374151;
    background: #f9fafb;
    border-radius: 6px;
    padding: 0.4rem 0.65rem;
    border: 1px solid #f0f0f0;
    line-height: 1.5;
}

/* Pagination */
.adm-pagination {
    display: flex;
    justify-content: center;
    gap: 0.3rem;
    padding: 1rem 1.5rem;
    border-top: 1px solid #f3f4f6;
    flex-wrap: wrap;
}
.adm-page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 0.5rem;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #6b7280;
    text-decoration: none;
    border: 1.5px solid #e5e7eb;
    background: #fff;
    transition: all 0.15s;
}
.adm-page-link:hover { background: #f9fafb; border-color: #d1d5db; color: #111827; }
.adm-page-link--active {
    background: linear-gradient(135deg, #F6AE2D, #F26419);
    border-color: transparent;
    color: #fff !important;
}

/* Barcode generator preview */
.adm-barcode-preview {
    margin-top: 1.5rem;
    padding: 1.5rem;
    background: #f9fafb;
    border: 1.5px dashed #e5e7eb;
    border-radius: 12px;
    text-align: center;
    min-height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
}
.adm-barcode-preview img {
    max-width: 100%;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

/* Connection test result */
.adm-test-result {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    margin-top: 0.75rem;
    font-family: monospace;
}


/* ================================================================
   Mobile & Touch Optimisierungen
   Mobile-First Korrekturen für iOS/Android
   Breakpoints: 479px (very small), 575px (small), 767px (mobile), 991px (tablet)
   ================================================================ */

/* ----------------------------------------------------------------
   1. Globale Basis
   ---------------------------------------------------------------- */

/* Horizontal Scroll auf der gesamten Seite verhindern */
html {
    overflow-x: hidden;
}

/* Tap-Highlight in App-Farbe statt dem Standard-Blau */
a,
button,
[role="button"] {
    -webkit-tap-highlight-color: rgba(246, 174, 45, 0.18);
}

/* Smooth Scrolling für alle Anker */
html {
    scroll-behavior: smooth;
}

/* ----------------------------------------------------------------
   2. iOS Auto-Zoom Fix
   iOS Safari zoomt automatisch ein, wenn ein input/select focus erhält
   und font-size < 16px ist. Fix: font-size auf genau 1rem (= 16px) setzen.
   Nur auf echten Touch-Geräten aktiv (pointer: coarse).
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    input:not([type="checkbox"]):not([type="radio"]),
    select,
    textarea {
        font-size: 1rem !important; /* = 16px → verhindert iOS Zoom */
    }
}

/* ----------------------------------------------------------------
   3. Touch-Targets — Mindestgröße 44×44 px (Apple HIG / WCAG 2.5.5)
   Nur auf Geräten ohne Maus aktiv (hover: none, pointer: coarse).
   ---------------------------------------------------------------- */
@media (hover: none) and (pointer: coarse) {
    /* Hauptbuttons */
    .snp-btn {
        min-height: 44px;
        padding-top: 0.65rem;
        padding-bottom: 0.65rem;
    }

    /* Kleine Buttons (sekundäre Aktionen) – etwas weniger streng */
    .snp-btn--sm {
        min-height: 38px;
    }

    /* Paginierung */
    .adm-page-link {
        min-width: 44px;
        height: 44px;
    }

    /* Formularfelder */
    .cust-filter__input,
    .adm-search-row__input,
    .snp-field__input,
    .adm-inline-input,
    .modal-body .form-control,
    .modal-body .form-select {
        min-height: 44px;
    }

    /* Nav-Links im aufgeklappten Mobile-Menü */
    .snp-app-nav__link,
    .snp-app-nav__dropdown-item {
        min-height: 44px;
        display: flex;
        align-items: center;
    }
}

/* ----------------------------------------------------------------
   4. Navigation — Mobile Verbesserungen
   ---------------------------------------------------------------- */
@media (max-width: 991px) {
    /* Weniger seitliches Padding im Nav-Container. Umbruch erlauben, damit das
       aufgeklappte Menü unter Logo und Menü-Button steht statt als dritte Spalte daneben */
    .snp-app-nav__inner {
        padding: 0.4rem 1rem;
        flex-wrap: wrap;
    }
    .snp-app-nav__toggler {
        margin-left: auto;
    }
    .snp-app-nav__inner > .navbar-collapse {
        flex-basis: 100%;
    }

    /* Mehr Abstand zwischen Nav-Einträgen im ausgeklappten Menü */
    .snp-app-nav__links .nav-item {
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    .snp-app-nav__links .nav-item:last-child {
        border-bottom: none;
    }
}

@media (max-width: 575px) {
    .snp-app-nav__inner {
        padding: 0.35rem 0.75rem;
    }
    /* Logo etwas kleiner auf sehr kleinen Screens */
    .snp-app-nav__brand img {
        height: 32px;
    }
}

/* ----------------------------------------------------------------
   5. Hero-Banner — Responsives Stacking
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    .cust-hero {
        padding: 1.35rem 1.25rem;
    }
}

@media (max-width: 575px) {
    /* Titel und Buttons untereinander statt nebeneinander */
    .cust-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.875rem;
    }

    /* Button-Gruppe im Hero: volle Breite, scrollbar bei vielen Buttons */
    .cust-hero__inner > div:last-child,
    .cust-hero__inner > a:last-child {
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .cust-hero {
        padding: 1.1rem 1rem;
    }

    .cust-hero__name {
        font-size: 1.2rem;
    }
}

/* ----------------------------------------------------------------
   6. Content-Bereiche — Padding auf kleinen Screens reduzieren
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .adm-content,
    .cust-content {
        padding: 0.875rem 0.75rem 2rem;
        gap: 0.875rem;
    }

    /* Card-Header: weniger seitliches Padding */
    .cust-card__header {
        padding: 0.85rem 1rem;
        gap: 0.5rem;
    }

    /* Card-Titel: Zeilenumbruch zulassen */
    .cust-card__title {
        flex-wrap: wrap;
    }

    /* User-Cards: kompakteres Padding */
    .adm-user-card {
        padding: 0.85rem 1rem;
    }

    /* Search-Bar: volle Breite */
    .adm-search-row {
        padding: 0.65rem 1rem;
    }
    .adm-search-row__wrap {
        max-width: 100%;
        min-width: unset;
    }

    /* Log-Inhalt: auf kleinen Screens weniger hoch */
    .adm-log-content {
        max-height: 80px;
    }
}

/* ----------------------------------------------------------------
   7. Stat-Cards — 1-Spalte auf sehr kleinen Screens (≤ 360 px, z. B. ältere Androids)
   ---------------------------------------------------------------- */
@media (max-width: 360px) {
    .cust-stats,
    .cust-stats--3 {
        grid-template-columns: 1fr;
    }
    .cust-stat {
        padding: 0.75rem 1rem;
        gap: 0.75rem;
    }
    .cust-stat__icon {
        width: 38px;
        height: 38px;
    }
}

/* ----------------------------------------------------------------
   8. Filter-Form — vollständiges Stacking + Submit volle Breite
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .cust-filter {
        padding: 1rem;
        gap: 0.65rem;
    }

    /* Jedes Feld nimmt die volle Breite ein */
    .cust-filter__field {
        min-width: 100%;
        width: 100%;
    }

    /* Submit-Button volle Breite */
    .cust-filter__action {
        width: 100%;
    }
    .cust-filter__action .snp-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ----------------------------------------------------------------
   9. Konfiguration Key-Value-Zeilen — stacked auf Mobile
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .adm-config-row {
        flex-direction: column;
        gap: 0.1rem;
        padding: 0.65rem 0;
    }
    /* Key-Label: keine fixe Mindestbreite mehr */
    .adm-config-key {
        min-width: unset;
        width: 100%;
    }
    .adm-config-list {
        padding: 0 1rem 1rem;
    }
}

/* ----------------------------------------------------------------
   10. Tabellen — horizontales Scrollen als Fallback
   Falls adm-table doch auf kleinen Screens sichtbar ist (z. B. Landscape)
   ---------------------------------------------------------------- */
@media (max-width: 767px) {
    /* Wrapper-Container scrollt horizontal statt die Seite zu brechen */
    .cust-card .d-none.d-md-block {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* Tabellenköpfe und Zellen: weniger seitliches Padding */
    .adm-table thead th,
    .adm-table tbody td {
        padding: 0.65rem 1rem;
        white-space: nowrap;
    }
}

/* ----------------------------------------------------------------
   11. Inline-Formulare (Inventar) — Stack-Layout auf Mobile
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .adm-inline-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
    .adm-inline-input[type="number"],
    .adm-inline-input[type="text"] {
        width: 100%;
        min-width: unset;
    }
}

/* ----------------------------------------------------------------
   12. Modals — volle Breite auf kleinen Screens
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    /* Minimaler Außenabstand statt 0.5rem auto */
    .modal-dialog {
        margin: 0.4rem 0.5rem;
        max-width: calc(100vw - 1rem);
    }

    /* modal-lg soll auf Mobile nicht breiter als der Screen sein */
    .modal-dialog.modal-lg {
        max-width: calc(100vw - 1rem);
    }

    /* 2-Spalten-Grid in modal-body → 1-Spalte */
    .modal-body .row,
    .modal-body div[style*="grid-template-columns:1fr 1fr"],
    .modal-body div[style*="grid-template-columns: 1fr 1fr"] {
        display: flex !important;
        flex-direction: column !important;
    }

    .modal-body {
        padding: 1rem;
    }
    .modal-header,
    .modal-footer {
        padding: 0.875rem 1rem;
    }
    .modal-content {
        border-radius: 10px;
    }
}

/* ----------------------------------------------------------------
   13. Auth-Seiten — Karten-Padding auf Mobile reduzieren
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .snp-auth__card {
        padding: 1.5rem 1.25rem;
        border-radius: 12px;
    }
    .snp-auth__form-wrap {
        padding: 1rem 0.75rem;
    }
}

/* ----------------------------------------------------------------
   14. App-Footer — Footer-Padding anpassen
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .snp-app-footer__inner {
        justify-content: center;
        text-align: center;
    }
    .snp-app-footer__links {
        justify-content: center;
        gap: 0.875rem;
    }
}

/* ----------------------------------------------------------------
   15. Safe-Area Insets — iPhone Notch / Dynamic Island / Home-Bar
   Stellt sicher, dass Inhalte nicht hinter Hardware-Elemente rutschen.
   Funktioniert nur mit viewport-fit=cover (s. <meta name="viewport">).
   ---------------------------------------------------------------- */
@supports (padding: env(safe-area-inset-bottom)) {
    /* Nav: Abstand oben für Status-Bar (Notch / Dynamic Island) */
    .snp-app-nav.sticky-top {
        padding-top: env(safe-area-inset-top);
    }

    /* Footer: Abstand unten für die Home-Indicator-Leiste */
    .snp-app-footer {
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    /* Mobile-Menü aufgeklappt: linker Safe-Area-Bereich */
    @media (max-width: 991px) {
        .snp-app-nav__inner {
            padding-left: max(1rem, env(safe-area-inset-left));
            padding-right: max(1rem, env(safe-area-inset-right));
        }
    }
}

/* ----------------------------------------------------------------
   16. Barcode-Generator — Bild auf Mobile zentrieren
   ---------------------------------------------------------------- */
@media (max-width: 575px) {
    .adm-barcode-preview {
        padding: 1rem;
        min-height: 90px;
    }
}

/* ----------------------------------------------------------------
   17. Billing-Banner — Stack auf kleinen Screens
   (Ergänzung zu bestehendem 767px-Block)
   ---------------------------------------------------------------- */
@media (max-width: 400px) {
    .cust-billing {
        padding: 1rem;
    }
    .cust-billing__val {
        font-size: 1.2rem;
    }
}

/* ----------------------------------------------------------------
   18. Landscape-Phones — Höhenoptimierung
   Auf Querformat-Phones (z. B. iPhone SE) weniger vertikalen Whitespace
   ---------------------------------------------------------------- */
@media (max-height: 500px) and (orientation: landscape) {
    .cust-hero {
        padding: 0.875rem 1.25rem;
    }
    .snp-auth {
        align-items: flex-start;
        overflow-y: auto;
    }
    .snp-auth__card {
        margin: 1rem auto;
    }
}


/* ================================================================
   Legal pages (Impressum, Datenschutz)
   Standalone pages not extending a base template
   ================================================================ */

.snp-legal-page {
    background: #f4f6f8;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Slim sticky nav */
.snp-legal-nav {
    background: #2F4858;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Hero banner (same gradient as admin/customer hero) */
.snp-legal-hero {
    background: linear-gradient(135deg, #1a2e42 0%, #2c4a6a 100%);
    padding: 2.25rem 1.5rem;
    color: white;
}

.snp-legal-hero__inner {
    max-width: 800px;
    margin: 0 auto;
}

.snp-legal-hero__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: rgba(255,255,255,0.5);
    margin: 0 0 0.3rem;
}

.snp-legal-hero__title {
    font-size: clamp(1.5rem, 4vw, 2rem);
    font-weight: 800;
    color: #fff;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Main content wrapper */
.snp-legal-main {
    flex: 1;
    padding: 2rem 1.5rem 3rem;
}

/* Prose card */
.snp-legal-prose {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 14px;
    padding: 2.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.06);
    border: 1px solid #f0f0f0;
}

/* Typography inside the prose card */
.snp-legal-prose h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: #1a2836;
    margin: 2rem 0 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #f3f4f6;
    letter-spacing: -0.01em;
}
.snp-legal-prose h2:first-child { margin-top: 0; }

.snp-legal-prose h3 {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2836;
    margin: 1.5rem 0 0.4rem;
}

.snp-legal-prose h4 {
    font-size: 0.8rem;
    font-weight: 700;
    color: #F26419;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 1.5rem 0 0.4rem;
}

.snp-legal-prose h5 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #374151;
    margin: 1rem 0 0.3rem;
}

.snp-legal-prose p {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.8;
    margin: 0 0 0.875rem;
}

.snp-legal-prose ul {
    padding-left: 1.5rem;
    margin: 0 0 0.875rem;
}

.snp-legal-prose ul li {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.8;
    margin-bottom: 0.4rem;
}

.snp-legal-prose a {
    color: #33658A;
    word-break: break-all;
}
.snp-legal-prose a:hover { color: #F26419; }

.snp-legal-prose strong { color: #1a2836; }

/* Footer */
.snp-legal-footer {
    background: #1e3448;
    border-top: 1px solid rgba(255,255,255,0.06);
    padding: 1.25rem 1.5rem;
    margin-top: auto;
}

.snp-legal-footer__inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.snp-legal-footer__inner a {
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    font-size: 0.84rem;
    transition: color 0.2s;
}
.snp-legal-footer__inner a:hover { color: rgba(255,255,255,0.85); }

@media (max-width: 575px) {
    .snp-legal-hero    { padding: 1.5rem 1rem; }
    .snp-legal-prose   { padding: 1.5rem 1.25rem; border-radius: 10px; }
    .snp-legal-main    { padding: 1rem 0.75rem 2rem; }
    .snp-legal-nav     { padding: 0.5rem 1rem; }
}


/* ================================================================
   Application / System log viewer
   ================================================================ */

/* 2-column layout: narrow sidebar + wide log panel */
.adm-log-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 991px) {
    .adm-log-layout { grid-template-columns: 1fr; }
}

/* File list items inside the sidebar card */
.adm-log-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.25rem;
    border-bottom: 1px solid #f9fafb;
    text-decoration: none;
    gap: 0.75rem;
    transition: background-color 0.12s;
}
.adm-log-file-item:last-child { border-bottom: none; }
.adm-log-file-item:hover      { background: #f9fafb; }

.adm-log-file-item--active {
    background: rgba(51,101,138,0.06);
    border-left: 3px solid #33658A;
}

.adm-log-file-item__name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}
.adm-log-file-item--active .adm-log-file-item__name { color: #33658A; }

.adm-log-file-item__right {
    text-align: right;
    flex-shrink: 0;
}

.adm-log-file-item__size {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #6b7280;
}

.adm-log-file-item__date {
    display: block;
    font-size: 0.68rem;
    color: #9ca3af;
}

/* Dark terminal log viewer */
.adm-log-viewer {
    background: #0d1117;
    border-radius: 0 0 14px 14px;
    height: 68vh;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.adm-log-viewer__inner {
    padding: 0.75rem 0;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.78rem;
    line-height: 1.65;
}

/* Individual log lines */
.adm-log-line {
    padding: 0.05rem 1.25rem;
    color: #c9d1d9;
    white-space: pre-wrap;
    word-break: break-all;
    transition: background-color 0.1s;
}
.adm-log-line:hover { background: rgba(255,255,255,0.03); }

.adm-log-line--error   { color: #f87171; }
.adm-log-line--warning { color: #fbbf24; }
.adm-log-line--info    { color: #7dd3fc; }
.adm-log-line--debug   { color: #6b7280; }
.adm-log-line--highlight {
    background: rgba(246,174,45,0.18) !important;
    color: #fff;
}

/* Dark search bar that sits inside the terminal header */
.adm-log-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.adm-log-search__input {
    flex: 1;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 6px;
    color: #e6edf3;
    font-size: 0.85rem;
    padding: 0.4rem 0.75rem;
    outline: none;
    transition: border-color 0.18s;
    font-family: inherit;
}
.adm-log-search__input::placeholder { color: rgba(255,255,255,0.3); }
.adm-log-search__input:focus {
    border-color: rgba(246,174,45,0.5);
    background: rgba(255,255,255,0.1);
}

/* Terminal top bar (mimics macOS window chrome) */
.adm-log-terminal-bar {
    background: #161b22;
    border-bottom: 1px solid rgba(255,255,255,0.07);
    padding: 0.6rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    border-radius: 14px 14px 0 0;
    flex-wrap: wrap;
}

.adm-log-terminal-bar__dots {
    display: flex;
    gap: 6px;
    align-items: center;
}

.adm-log-terminal-bar__dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}
.adm-log-terminal-bar__dot--red    { background: #ff5f57; }
.adm-log-terminal-bar__dot--yellow { background: #ffbd2e; }
.adm-log-terminal-bar__dot--green  { background: #28c840; }

.adm-log-terminal-bar__file {
    font-family: monospace;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.45);
    flex: 1;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.adm-log-terminal-bar__actions {
    display: flex;
    gap: 0.4rem;
}

@media (max-width: 575px) {
    .adm-log-viewer { height: 55vh; }
    .adm-log-viewer__inner { font-size: 0.72rem; }
}

/* ================================================================
   Superadmin – Nutzeraktivität
   ================================================================ */
.act-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}
.act-grid > .cust-card { margin-bottom: 0; }
@media (max-width: 991px) {
    .act-grid { grid-template-columns: 1fr; }
}

.act-card-body { padding: 0 1.5rem 1.25rem; }
.act-chart { position: relative; height: 280px; }
.act-chart--sm { height: 240px; }
.act-meta { font-size: 0.78rem; color: #6b7280; margin: 0.25rem 0 0; }

.act-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.act-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; }
.act-table th:first-child, .act-table td:first-child { padding-left: 1.5rem; }
.act-table th {
    font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
    color: #6b7280; background: #f9fafb; padding: 0.6rem 0.75rem; text-align: left; white-space: nowrap;
}
.act-table td { padding: 0.65rem 0.75rem; border-top: 1px solid #f3f4f6; color: #374151; white-space: nowrap; }
.act-table tbody tr:hover td { background: #fafafa; }
.act-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.act-table a { color: #111827; font-weight: 600; text-decoration: none; }
.act-table a:hover { color: #2E6DA4; text-decoration: underline; }

.act-pill {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.72rem; font-weight: 600; border-radius: 20px; padding: 0.15rem 0.6rem;
    background: #f3f4f6; color: #374151;
}
.act-pill--sehr-aktiv   { background: #dcfce7; color: #166534; }
.act-pill--regelmaessig { background: #dbeafe; color: #1e40af; }
.act-pill--gelegentlich { background: #fef3c7; color: #92400e; }
.act-pill--inaktiv      { background: #f3f4f6; color: #6b7280; }

/* Inline bar for "Meistgenutzte Seiten" */
.act-bar { display: flex; align-items: center; gap: 0.6rem; min-width: 140px; }
.act-bar__track { flex: 1; height: 8px; background: #eef2f7; border-radius: 4px; overflow: hidden; }
.act-bar__fill { height: 100%; background: #2E6DA4; border-radius: 0 4px 4px 0; }

.act-details { padding: 0 1.5rem 1.25rem; font-size: 0.82rem; }
.act-details summary { cursor: pointer; color: #2E6DA4; font-weight: 600; }
.act-details .act-table-wrap { margin-top: 0.75rem; max-height: 320px; overflow-y: auto; }

.act-search {
    width: 100%; max-width: 260px; background: #f9fafb; border: 1.5px solid #e5e7eb;
    border-radius: 8px; padding: 0.4rem 0.7rem; font-size: 0.84rem;
}
.act-search:focus { outline: none; border-color: #F6AE2D; box-shadow: 0 0 0 3px rgba(246,174,45,0.15); }

.act-note { font-size: 0.78rem; color: #9ca3af; margin: 0 0 1.5rem; }

/* Session timeline on the user page */
.act-session { padding: 0.9rem 1.5rem; border-top: 1px solid #f3f4f6; }
.act-session__head {
    display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: baseline;
    font-size: 0.82rem; color: #6b7280; margin-bottom: 0.5rem;
}
.act-session__head strong { color: #111827; font-size: 0.88rem; }
.act-steps { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; margin: 0; padding: 0; list-style: none; }
.act-step {
    font-size: 0.75rem; border-radius: 6px; padding: 0.15rem 0.5rem;
    background: #f3f4f6; color: #374151; white-space: nowrap;
}
.act-step--action { background: #fff7ed; color: #9a3412; }
.act-step--login, .act-step--logout { background: #eef2f7; color: #1e3a5f; }
.act-step__time { color: #9ca3af; margin-right: 0.25rem; font-variant-numeric: tabular-nums; }
.act-steps__arrow { color: #d1d5db; font-size: 0.65rem; }
.act-sub { font-size: 0.74rem; color: #9ca3af; margin-top: 0.1rem; }
.act-sort {
    all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 0.3rem;
    font: inherit; color: inherit; letter-spacing: inherit; text-transform: inherit;
}
.act-sort::after { content: '\f0dc'; font-family: 'Font Awesome 6 Free'; font-weight: 900; font-size: 0.6rem; color: #d1d5db; }
.act-sort[aria-sort="ascending"]::after  { content: '\f0de'; color: #2E6DA4; }
.act-sort[aria-sort="descending"]::after { content: '\f0dd'; color: #2E6DA4; }
.act-sort:focus-visible { outline: 2px solid #2E6DA4; outline-offset: 2px; border-radius: 3px; }
.act-table th.num .act-sort { justify-content: flex-end; }
.act-stat-sub { font-size: 0.74rem; color: #9ca3af; margin: 0.1rem 0 0; }
.act-code {
    display: block; margin-top: 0.4rem; padding: 0.5rem 0.7rem; border-radius: 8px;
    background: #f8f9fa; border: 1px solid #e5e7eb; font-size: 0.78rem; color: #111827;
    overflow-x: auto; white-space: nowrap;
}

/* ── Werkstatt ───────────────────────────────────────────────────── */
.ws-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.ws-tabs__link {
    font-size: 0.8rem;
    font-weight: 600;
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.18);
    white-space: nowrap;
}

.ws-tabs__link:hover {
    color: #fff;
    background: rgba(255,255,255,0.08);
}

.ws-tabs__link--active {
    color: #111827;
    background: #F6AE2D;
    border-color: #F6AE2D;
}

.ws-tabs__link--active:hover {
    color: #111827;
    background: #F6AE2D;
}

.ws-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
    padding: 1.25rem 1.5rem 1.5rem;
}

.ws-cart {
    border: 1.5px solid #e5e7eb;
    border-left: 4px solid #059669;
    border-radius: 10px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.ws-cart--out {
    border-left-color: #d97706;
}

.ws-cart__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.ws-cart__door {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin: 0;
}

.ws-cart__name {
    font-size: 1rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.ws-cart__desc {
    font-size: 0.8rem;
    color: #6b7280;
    margin: 0;
}

.ws-cart__loan {
    font-size: 0.82rem;
    color: #374151;
    background: rgba(217,119,6,0.08);
    border-radius: 8px;
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.15rem 0.4rem;
    align-items: baseline;
}

.ws-cart__loan span {
    color: #6b7280;
    font-size: 0.78rem;
}

.ws-cart__warn,
.ws-cart__loan .ws-cart__warn {
    color: #c2410c;
    font-size: 0.75rem;
    font-weight: 600;
}

.ws-cart__issues {
    font-size: 0.78rem;
    font-weight: 600;
    color: #c2410c;
    text-decoration: none;
}

.ws-cart__roles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    align-items: center;
    font-size: 0.72rem;
}

.ws-cart__roles-label {
    color: #9ca3af;
    font-weight: 600;
    margin-right: 0.15rem;
}

.ws-cart__actions {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.ws-pill--danger {
    background: rgba(220,38,38,0.1);
    color: #dc2626;
}

/* label.… – sonst gewinnt ".modal-body label" (Großbuchstaben) */
label.ws-radio {
    display: inline-flex;
    gap: 0.4rem;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #374151;
    margin: 0;
    cursor: pointer;
}

.ws-role-picker {
    max-height: 220px;
    overflow-y: auto;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-top: 0.4rem;
    padding: 0.25rem 0;
}

label.ws-role-picker__item {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    padding: 0.3rem 0.75rem;
    margin: 0;
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: normal;
    color: #374151;
    cursor: pointer;
}

.ws-role-picker__item:hover {
    background: #f9fafb;
}

.ws-issues {
    display: flex;
    flex-direction: column;
}

.ws-issue {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #f3f4f6;
    border-left: 4px solid #dc2626;
}

.ws-issue:last-child {
    border-bottom: none;
}

.ws-issue--resolved {
    border-left-color: #059669;
}

.ws-issue__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.6rem;
}

.ws-issue__facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.5rem 1.5rem;
    margin: 0 0 0.75rem;
}

.ws-issue__facts dt {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
}

.ws-issue__facts dd {
    font-size: 0.85rem;
    color: #111827;
    margin: 0;
}

.ws-issue__facts dd span {
    color: #6b7280;
    font-size: 0.8rem;
}

.ws-issue__form {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.ws-issue__form input {
    flex: 1;
    min-width: 200px;
    max-width: 480px;
}
