/*
 * Freeset – Azzurro-Farbschema und optische Auffrischung (18.10.2026)
 * Wird in allen Layouts als letztes Stylesheet geladen.
 *
 * Azzurro      #1a86d9
 * dunkel       #156db3
 * sehr dunkel  #145f9c
 * hell         #a9d4f5
 * Hauch        #eef6fd
 */

/* Schrift und Grundfläche */
body {
    font-family: "Inter", "Open Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    color: #4a5563;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    color: #24313f;
    letter-spacing: -0.01em;
}

#page-wrapper {
    background-color: #f4f7fb;
    border-left-color: #e6edf3;
}

/* Kopfzeile und Seitentitel */
.navbar-static-top {
    background: #ffffff;
    border-bottom: 1px solid #e6edf3;
}

.page-heading {
    background: #ffffff;
    border-bottom: 1px solid #e6edf3;
    box-shadow: 0 1px 2px rgba(16, 42, 67, 0.04);
}

/* Seitenleiste */
.navbar-default .nav > li > a {
    transition: background-color 0.15s ease, color 0.15s ease;
}

.nav > li.active {
    background: #eef6fd;
    border-left: 3px solid #1a86d9;
}

.nav > li.active > a,
.nav > li.active > a i {
    color: #1a86d9;
}

.navbar-default .nav > li > a:hover,
.navbar-default .nav > li > a:focus {
    background-color: #1a86d9;
    color: #ffffff;
}

ul.nav-second-level li.active a,
ul.nav-second-level li a:hover {
    color: #1a86d9;
}

/* Boxen */
.ibox {
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(16, 42, 67, 0.08), 0 6px 16px rgba(16, 42, 67, 0.04);
    background: #ffffff;
}

.ibox-title {
    border: none;
    border-bottom: 1px solid #eef2f6;
    border-radius: 10px 10px 0 0;
    background: #ffffff;
}

.ibox-title h5 {
    font-weight: 600;
    color: #24313f;
}

.ibox-content {
    border: none;
    border-radius: 0 0 10px 10px;
}

.ibox-content:only-child {
    border-radius: 10px;
}

/* Buttons */
.btn {
    border-radius: 6px;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
    background-color: #1a86d9;
    border-color: #1a86d9;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:focus,
.btn-primary:active:hover,
.btn-primary.active:hover,
.btn-primary.active:focus,
.open .dropdown-toggle.btn-primary {
    background-color: #156db3;
    border-color: #156db3;
}

.btn-white:hover,
.btn-white:focus {
    border-color: #a9d4f5;
    color: #1a86d9;
}

/* Formulare */
.form-control,
.input-group-addon {
    border-radius: 6px;
    border-color: #dfe6ed;
}

.input-group .form-control:not(:first-child),
.input-group-addon:not(:first-child) {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.input-group .form-control:not(:last-child),
.input-group-addon:not(:last-child) {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.form-control:focus {
    border-color: #1a86d9;
    box-shadow: 0 0 0 3px rgba(26, 134, 217, 0.15);
}

/* Tabellen */
.table > thead > tr > th {
    color: #6b7785;
    font-weight: 600;
    border-bottom: 2px solid #e6edf3;
}

.table-hover > tbody > tr:hover {
    background-color: #f5faff;
}

/* Reiter */
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
    border-top: 2px solid #1a86d9;
}

/* Checkboxen (iCheck-Grafik ist grün, wird blau eingefärbt) */
.icheckbox_square-green,
.iradio_square-green {
    -webkit-filter: hue-rotate(40deg);
    filter: hue-rotate(40deg);
}

/* Ladebalken */
.pace .pace-progress {
    background: #1a86d9;
}

/* Feinschliff (18.10.2026) */

/* Kennzahl-Kacheln im Dashboard */
.widget.green-bg,
.widget.navy-bg,
.widget.blue-bg {
    background: linear-gradient(135deg, #1a86d9 0%, #145f9c 100%);
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(20, 95, 156, 0.18);
    padding: 18px 20px;
    color: #ffffff;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.widget.green-bg:hover,
.widget.navy-bg:hover,
.widget.blue-bg:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(20, 95, 156, 0.24);
}

.widget.green-bg h1, .widget.green-bg h2, .widget.green-bg h3, .widget.green-bg h4, .widget.green-bg h5,
.widget.green-bg a, .widget.green-bg span {
    color: #ffffff;
}

/* Kleine Buttons und Button-Gruppen */
.btn-white {
    border-color: #dfe6ed;
    color: #4a5563;
}

.btn-group > .btn-white.active,
.btn-group > .btn-white:active {
    background: #eef6fd;
    border-color: #a9d4f5;
    color: #1a86d9;
    box-shadow: none;
}

/* Seitenleiste: aktiver Unterpunkt */
ul.nav-second-level li.active > a {
    font-weight: 600;
}

/* Kalender */
.fc-state-highlight,
.fc-unthemed .fc-today {
    background: #eef6fd;
}

/* Paginierung */
.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover {
    background-color: #1a86d9;
    border-color: #1a86d9;
}

.pagination > li > a {
    color: #1a86d9;
}

/* Hinweise und Labels */
.label-primary,
.badge-primary {
    background-color: #1a86d9;
}

.alert-info {
    background-color: #eef6fd;
    border-color: #cfe5f8;
    color: #145f9c;
}

/* Summenzeilen in Tabellen (statt gelb) */
.kv-page-summary,
.kv-page-summary td,
.table > tbody > tr.kv-page-summary > td,
.table > tfoot > tr > td.warning,
.table > tbody > tr.warning > td {
    background-color: #eef6fd;
    border-top-color: #cfe5f8;
}

/* Datumsfelder: Text vertikal mittig (Bootstrap-3-Sonderregel aufheben) */
input[type="date"].form-control,
input[type="date"].input-sm,
input[type="date"].form-control.input-sm {
    line-height: 1.42857143;
    padding-top: 4px;
    padding-bottom: 4px;
}

/* Erfolgs-Hinweise und -Elemente in Azzurro statt Grün (Balkendiagramme bleiben grün) */
.alert-success {
    background-color: #eef6fd;
    border-color: #cfe5f8;
    color: #145f9c;
}

.alert-success .alert-link,
.alert-success a {
    color: #0f4f85;
}

.label-success,
.badge-success,
.label-primary,
.badge-primary {
    background-color: #1a86d9;
    color: #ffffff;
}

.btn-success {
    background-color: #1a86d9;
    border-color: #1a86d9;
    color: #ffffff;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active,
.btn-success.active {
    background-color: #156db3;
    border-color: #156db3;
    color: #ffffff;
}

.text-success {
    color: #1a86d9;
}

.panel-success > .panel-heading {
    background-color: #1a86d9;
    border-color: #1a86d9;
    color: #ffffff;
}

.panel-success {
    border-color: #1a86d9;
}

#toast-container > .toast-success,
.toast-success {
    background-color: #1a86d9;
}

.swal2-icon.swal2-success {
    border-color: #1a86d9 !important;
}

.swal2-icon.swal2-success [class^='swal2-success-line'] {
    background-color: #1a86d9 !important;
}

.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(26, 134, 217, 0.3) !important;
}
