/*
=================================================================s
   Variables
=================================================================
*/

:root {
    --red: #cd1316;
    --dark-red: #870d0e;
    --white: #fff;
    --dt-row-selected: 205, 19, 22;
}


/*
=================================================================s
   LAYOUT & CONTAINER
=================================================================
*/

.servicecenter .row-servicecenter {
    margin-bottom: 0.5rem;
}

.servicecenter .inner {
    display: flex;
    flex-wrap: wrap;
}

.servicecenter .inner > div {
    margin-bottom: 1rem;
}

/*
=================================================================
   RESET-BUTTON & LENGTH-CONTAINER
=================================================================
*/

.servicecenter-reset-wrapper {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.servicecenter-reset-wrapper .btn {
    flex-grow: 1;
    transition: background-color 0.3s ease, color 0.3s ease;
    line-height: 1em;
    min-width: max-content;
    background-color: var(--red);
    color: var(--white);
    border: none;
}

.servicecenter-reset-wrapper .btn:hover,
.servicecenter-reset-wrapper .btn:focus {
    background-color: var(--dark-red);
    color: var(--white);
}

#servicecenter-reset {
    display: none;
}

#servicecenter-reset.is-visible {
    display: inline-block;
}

.servicecenter-length {
    flex-grow: 2;
}

.dataTables_length {
    width: 100%;
}

.dataTables_length * {
    width: 100%;
    margin: 0;
}

/*
=================================================================
   FORMULARS & SELECTS (STYLING)
=================================================================
*/

#stadtteilname.form-select,
.dataTables_length select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 6px 12px;
    padding-right: 30px;
    background-image: url('data:image/svg+xml;utf8,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6 9L12 15L18 9" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" stroke="currentColor"/></svg>');
    background-repeat: no-repeat;
    background-position: right 5px center;
    background-size: 20px;
    cursor: pointer;
}

/*
=================================================================
   DATATABLES TABLE & PAGINATION
=================================================================
*/

#servicecenter-table {
    margin-bottom: 2rem;
}

.servicecenter-table thead {
    display: none;
}

.servicecenter-table.has-results thead {
    display: table-header-group;
}

.pagination {
    margin: 0;
}

.dataTables_info {
    float: none !important;
}

/*
=================================================================
   DATATABLES LOADING OVERLAY (PROCESSING)
=================================================================
*/

.dataTables_processing {
    background-color: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid #ddd !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    width: 100% !important;
    height: 100%;
    position: absolute;
    top: 0 !important;
    left: 0 !important;
    margin: 0 !important;
    z-index: 10;
}

.dataTables_processing > div:last-child {
    margin: auto !important;
    top: 50%;
    transform: translateY(-50%);
}

/*
=================================================================
   RESPONSIVE / MEDIA QUERIES
=================================================================
*/

@media (max-width: 638px) {
    #servicecenter-table_wrapper table {
        overflow-x: auto;
        display: block;
        font-size: 18px;
    }
}

@media (min-width: 639px) and (max-width: 960px) {
    #servicecenter-table_wrapper table {
        font-size: 18px;
    }
}

@media (max-width: 960px) {
    .dataTables_info,
    .dataTables_paginate {
        font-size: 18px;
    }
}

@media (min-width: 961px) {
    .dataTables_info {
        float: left !important;
    }
}