#logged_hours .counter-icon {
    font-size: 1.2em;
    margin-left: -1%;
    margin-top: -1%;
}

#server_table tr > * {
    padding: 0.2rem 0.25rem;
}

#server_table tr > td:nth-child(7) {
    padding-right: 1rem;
}

.offcanvas-size-xl {
    --offcanvas-width: 700px
}

.offcanvas-size-xxl {
    --offcanvas-width: 1200px
}

.offcanvas-size-xxxl {
    --offcanvas-width: 1500px
}

.offcanvas-size-50 {
    --offcanvas-width: 50%
}

.offcanvas-size-60 {
    --offcanvas-width: 60%
}

.offcanvas-size-70 {
    --offcanvas-width: 70%
}

.offcanvas-size-80 {
    --offcanvas-width: 80%
}

.offcanvas-size-90 {
    --offcanvas-width: 90%
}

.fs-7 {
    font-size: 0.75rem !important
}

.fs-8 {
    font-size: 0.65rem !important
}

.fs-9 {
    font-size: 0.55rem !important
}

input.no-spin[type="number"] {
    -moz-appearance: textfield;
}

input.no-spin[type="number"]::-webkit-inner-spin-button,
input.no-spin[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.server_addon_types .subscription-badges {
    position: absolute;
    /*left: 16.66666667%;*/
    z-index: 1;
    padding-left: .3125rem;
    top: -.8125rem;
}

.server_addon_types .subscription-badges [class^="ph-"] {
    vertical-align: -.063rem;
    font-weight: bold;
}

table.dataTable td:last-child {
    white-space: nowrap;
}

.table-xxs {
    --table-cell-padding-y: 0;
    --table-cell-padding-x: 0.15rem;
}

.input-group span.select2 {
    width: auto !important;
}

.input-group:has(.select2) {
    padding-left: 1px;
}

input:disabled {
    cursor: not-allowed;
}

.offcanvas-header .btn-reload {
    padding: calc(1.25rem * .5) calc(1.25rem * .5);
    margin-top: calc(-.5 * 1.25rem);
    margin-right: calc(-.5 * 1.25rem);
    margin-bottom: calc(-.5 * 1.25rem);
}

.btn-reload {
    transition: all var(0.15s) ease-in-out;
}

/*
 |------------------------------------------------------------
 | Kommentare: Inline-Bilder responsiv innerhalb des Contents
 | Ziel: Bilder sollen den Content-Bereich nicht überlaufen und
 |       nur verkleinert werden, wenn sie breiter als der
 |       Container sind (keine künstliche Vergrößerung).
 |------------------------------------------------------------
 */
.comment-content img {
    max-width: 100% !important; /* skaliert nur herunter, wenn nötig */
    height: auto !important;    /* Seitenverhältnis beibehalten */
    display: inline-block;      /* stabil in Flow, ohne Blocksprung */
}

/* Falls der Editor feste Größen-Attribute setzt, verhindert dies Overflow
   in typischen Wrappern wie figure. */
.comment-content figure img {
    max-width: 100% !important;
    height: auto !important;
}

.btn-reload {
    box-sizing: content-box;
    width: 1em;
    height: 1em;
    padding: 0.25em 0.25em;
    color: #000;
    background: transparent url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIzMiIgaGVpZ2h0PSIzMiIgZmlsbD0iIzAwMDAwMCIgdmlld0JveD0iMCAwIDI1NiAyNTYiPjxwYXRoIGQ9Ik0yMjQsNDhWOTZhOCw4LDAsMCwxLTgsOEgxNjhhOCw4LDAsMCwxLDAtMTZoMjguNjlMMTgyLjA2LDczLjM3YTc5LjU2LDc5LjU2LDAsMCwwLTU2LjEzLTIzLjQzaC0uNDVBNzkuNTIsNzkuNTIsMCwwLDAsNjkuNTksNzIuNzEsOCw4LDAsMCwxLDU4LjQxLDYxLjI3YTk2LDk2LDAsMCwxLDEzNSwuNzlMMjA4LDc2LjY5VjQ4YTgsOCwwLDAsMSwxNiwwWk0xODYuNDEsMTgzLjI5YTgwLDgwLDAsMCwxLTExMi40Ny0uNjZMNTkuMzEsMTY4SDg4YTgsOCwwLDAsMCwwLTE2SDQwYTgsOCwwLDAsMC04LDh2NDhhOCw4LDAsMCwwLDE2LDBWMTc5LjMxbDE0LjYzLDE0LjYzQTk1LjQzLDk1LjQzLDAsMCwwLDEzMCwyMjIuMDZoLjUzYTk1LjM2LDk1LjM2LDAsMCwwLDY3LjA3LTI3LjMzLDgsOCwwLDAsMC0xMS4xOC0xMS40NFoiPjwvcGF0aD48L3N2Zz4=") center/1em auto no-repeat;
    border: 0;
    border-radius: .375rem;
    opacity: 0.65;
}

.btn-reload:hover {
    color: #000;
    text-decoration: none;
    opacity: 1;
}

.copy-to-clipboard {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.copy-btn {
    padding: 0.25rem 0.5rem;
}

.copy-btn > i {
    font-size: 1rem;
}

.page-title {

}

.page-subtitle {
    font-size: 1rem !important;
    font-weight: 400 !important;
    --text-opacity: 1;
    color: rgba(var(--body-color-rgb), 0.75) !important;
}

.datatable-header, .datatable-footer {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
}

.sidebar-size-xl {
    --sidebar-width: 21.75rem
}

.sidebar-size-xxl {
    --sidebar-width: 23.75rem
}

.sidebar-size-xxxl {
    --sidebar-width: 25.75rem
}

.sidebar-size-50 {
    --sidebar-width: 50%
}

.sidebar-size-60 {
    --sidebar-width: 60%
}

.sidebar-size-70 {
    --sidebar-width: 70%
}

.sidebar-size-80 {
    --sidebar-width: 80%
}

.sidebar-size-90 {
    --sidebar-width: 90%
}

.ep-echarts-tooltip {
    z-index: 2000 !important;
}

.btn-xs {
    --btn-line-height: 0.7;
    --btn-padding-x: 0.6rem;
    --btn-padding-y: 0.4rem;
    font-size: 0.7rem !important;
}

.btn-xs i {
    font-size: 0.84rem !important;
}

#dashboard-content .card .card-header {
    height: 41px;
    padding: 0.6rem 1.25rem;
    position: relative;
    z-index: 2;
    overflow: visible;
}

/* Ensure dropdowns in dashboard overlay DataTables scroll area */
#dashboard-content .dropdown-menu {
    z-index: 2000 !important;
}

#dashboard-content .card-header ul.nav li.nav-item a.nav-link {
    padding: 0.4rem 0.45rem;
    font-size: 0.7rem !important;
}

#dashboard-content .card-header ul.nav li.nav-item a.nav-link i {
    font-size: 0.84rem !important;
}

#dashboard-content .card-header ul.nav li.nav-item a.nav-link .badge {
    padding: 0.08rem;
    font-size: 0.7rem !important;
}

#dashboard-content .card-header .input-group {
    --input-group-addon-padding-y: 0.4rem;
    --input-group-addon-padding-x: 0.45rem;
    --input-group-addon-bg: var(--gray-100);
    --input-group-addon-color: var(--body-color);
    --input-group-addon-font-size: 0.84rem;
    --input-group-addon-font-weight: 400;
    --input-group-addon-line-height: 0.7;
    --input-group-addon-border-width: var(--border-width);
    --input-group-addon-border-color: var(--gray-400);
    --input-group-addon-border-radius: var(--border-radius);
}

#dashboard-content .card-header .input-group > input {
    --input-padding-y: 0.4rem;
    --input-padding-x: 0.45rem;
    --input-font-size: 0.84rem;
    --input-line-height: 0.7;
    --input-border-radius: var(--border-radius);
}

#dashboard-content .card-header .input-group > .input-group-text {
    --input-group-addon-padding-y: 0.2rem;
    --input-group-addon-padding-x: 0.45rem;
    --input-group-addon-font-size: 0.7rem;
    --input-group-addon-line-height: var(--body-line-height-sm);
    --input-group-addon-border-radius: var(--border-radius-sm);
}

#dashboard-content .card-header .input-group > .input-group-text i {
    font-size: 0.84rem !important;
}

#dashboard-content .table, #dashboard-content .table-sm {
    --table-cell-padding-y: 0.3rem;
    --table-cell-padding-x: 0.25rem;
}
/* Fix: Keep form elements (Select2) inside .js-editable-row container */
.js-editable-row .js-editor .d-flex {
    min-width: 0; /* allow flex children to shrink within container */
}

/* Also allow the right-side flex column to shrink within the row */
.js-editable-row > .flex-fill {
    min-width: 0;
}

.js-editable-row .js-editor .form-select,
.js-editable-row .js-editor .select2-container {
    max-width: 100%;
}

/* Force Select2 to respect container width and truncate long text */
.js-editable-row .js-editor .select2-container {
    display: block; /* avoid inline-block overflows in right-aligned cells */
    width: 100% !important; /* take all available width of the right column */
}

/* Help Select2 calculate width correctly when class 'select2' is on the <select> */
.js-editable-row .js-editor select.select2 {
    width: 100% !important;
}

.js-editable-row .js-editor .select2-container .select2-selection--single {
    max-width: 100%;
    width: 100% !important;
}

.js-editable-row .js-editor .select2-selection__rendered {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* prevent long names from expanding container */
}

.js-favorite-toggle:hover .icon-star-empty3 {
    content: "\ece1";
}

.js-favorite-toggle:hover i.icon-star-empty3:before {
    content: "\ece1";
}

.logged-hours-scroll-container {
    max-height: 300px;
}

/* Searchbar styles */
.daterangepicker {
    max-width: none !important;
    width: auto !important;
    z-index: 1100 !important;
}

#search-icon {
    transition: transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                color 0.4s ease-in-out,
                text-shadow 0.4s ease-in-out;
}

@keyframes ph-searching {
    0% { transform: translate(-4px, -4px) rotate(-10deg); }
    25% { transform: translate(5px, -2px) rotate(10deg); }
    50% { transform: translate(3px, 5px) rotate(-5deg); }
    75% { transform: translate(-6px, 3px) rotate(5deg); }
    100% { transform: translate(-4px, -4px) rotate(-10deg); }
}

@keyframes ph-file-search {
    0% { opacity: 0; transform: scale(0.6); }
    15% { opacity: 0.7; transform: scale(1); }
    85% { opacity: 0.7; transform: scale(1); }
    100% { opacity: 0; transform: scale(0.6); }
}

.searching-icon {
    transform: translate(-4px, -4px) rotate(-10deg);
    animation: ph-searching 1.4s infinite ease-in-out 0.6s;
    display: flex !important;
    color: #3498db !important;
    text-shadow: 0 0 8px rgba(52, 152, 219, 0.5);
    z-index: 10;
    pointer-events: none;
}

.searching-file {
    animation: ph-file-search 1.4s infinite ease-in-out;
    display: flex !important;
    opacity: 0.7;
    color: #fff !important;
    z-index: 9;
    pointer-events: none;
}

/* ==========================================================================
   Ultra-Kompakteres V2 Layout (Noch kleinere Schriften & Abstände)
   ========================================================================== */

/* Basis-Schriftgröße nochmals reduzieren (ca. 13px) */
.layout-compact body {
    font-size: 0.8125rem !important;
    line-height: 1.3 !important;
}

/* Überschriften verkleinern */
.layout-compact h1, .layout-compact .h1 { font-size: 1.25rem !important; }
.layout-compact h2, .layout-compact .h2 { font-size: 1.125rem !important; }
.layout-compact h3, .layout-compact .h3 { font-size: 1rem !important; }
.layout-compact h4, .layout-compact .h4 { font-size: 0.9375rem !important; }
.layout-compact h5, .layout-compact .h5, .layout-compact h6, .layout-compact .h6 { font-size: 0.875rem !important; }

/* --------------------------------------------------------------------------
   Cards (Karten) - Maximale Platzersparnis
   -------------------------------------------------------------------------- */
.layout-compact .card {
    margin-bottom: 0.75rem !important;
}

.layout-compact .card-title {
    font-size: 0.9375rem !important;
    margin-bottom: 0 !important;
}

.layout-compact .card-header,
.layout-compact .card-footer {
    padding: 0.5rem 0.75rem !important;
}

.layout-compact .card-body {
    padding: 0.75rem !important;
}

/* --------------------------------------------------------------------------
   Tabellen (DataTables & normale Tabellen)
   -------------------------------------------------------------------------- */
.layout-compact .table th,
.layout-compact .table td {
    padding: 0.35rem 0.5rem !important; /* Sehr schmale Zellen */
    font-size: 0.8125rem !important;
}

.layout-compact table.dataTable thead th,
.layout-compact table.dataTable thead td {
    padding: 0.35rem 0.5rem !important;
}

/* --------------------------------------------------------------------------
   Buttons, Inputs & Badges (Noch kompakter)
   -------------------------------------------------------------------------- */
.layout-compact .btn {
    padding: 0.2rem 0.5rem !important; /* Nochmals weniger Padding */
    font-size: 0.8125rem !important;
    line-height: 1.2 !important; /* Zeilenhöhe reduzieren */
    min-height: auto !important;
    align-items: center;
    justify-content: center;
    gap: 0.25rem; /* Abstand zwischen Icon und Text im Button verkleinern */
}

/* Icons innerhalb von Buttons verkleinern */
.layout-compact .btn i, .layout-compact .btn svg {
    font-size: 0.875rem !important; /* Icons leicht verkleinern */
    margin: 0 !important; /* Verhindern, dass Icons eigene Ränder mitbringen */
}

/* Icon-Only Buttons (z.B. für Tabellen-Aktionen) */
.layout-compact .btn-icon {
    padding: 0.2rem !important;
    height: 1.75rem !important;
}

.layout-compact .form-control,
.layout-compact .form-select,
.layout-compact .input-group-text {
    padding: 0.2rem 0.5rem !important;
    font-size: 0.8125rem !important;
    min-height: auto !important;
    height: auto !important;
    line-height: 1.2 !important;
}

.layout-compact .form-control-feedback-icon {
    --input-icon-padding-y: 0.02rem;
    --input-icon-padding-x: 0.475rem;
}


/* Select2 an kompaktes Design anpassen */
.layout-compact .select2-container .select2-selection--single,
.layout-compact .select2-container .select2-selection--multiple {
    min-height: auto !important;
    height: auto !important;
    font-size: 0.8125rem !important;
    padding: 0.2rem 0.5rem !important;
}

.layout-compact .select2-container .select2-selection--single .select2-selection__rendered {
    line-height: 1.2 !important;
    padding-left: 0 !important;
    padding-right: 1.5rem !important;
}

.layout-compact .select2-container .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
}

.layout-compact .select2-results__option {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8125rem !important;
}

.layout-compact select, .layout-compact .form-select {
    min-width: 3.5rem !important;
}

/* Suchleiste im Header in Standardgröße belassen */
#search-container > .form-control-feedback .form-control,
#search-container > .form-control-feedback .btn {
    padding: 0.4375rem 0.875rem !important;
    padding-left: calc(var(--input-padding-x) * 2 + var(--icon-font-size))!important;
    font-size: 0.875rem !important;
    min-height: calc(1.5em + 0.875rem + 2px) !important;
    height: calc(1.5em + 0.875rem + 2px) !important;
    line-height: 1.5 !important;
}

#search-container .form-control-feedback-icon {
    --input-icon-padding-y: 0.4rem;
    --input-icon-padding-x: 0.85rem;
}

.layout-compact .form-label {
    margin-bottom: 0.15rem !important;
    font-size: 0.75rem !important; /* Labels sehr klein (12px) */
    font-weight: 600 !important;
}

.layout-compact .mb-3 {
    margin-bottom: 0.5rem !important;
}

.layout-compact .badge {
    font-size: 0.7rem !important;
    padding: 0.2rem 0.4rem !important;
}

/* --------------------------------------------------------------------------
   Navigation, Sidebars & Dropdowns
   -------------------------------------------------------------------------- */
/*
.nav-link {
    padding: 0.3rem 0.6rem !important;
    font-size: 0.8125rem !important;
    line-height: 1.2 !important;
    gap: 0.4rem !important; !* Abstand zwischen Icon und Text im Menü *!
}
*/

/* Sidebar spezifische Navigations-Links */
.layout-compact .sidebar .nav-link {
   // padding: 0.3rem 0.75rem !important;
    font-size: 0.8125rem !important;
   // min-height: auto !important; /* Oft haben Sidebar-Links eine feste Mindesthöhe */
}

/* Icons in der Sidebar */
.layout-compact .sidebar .nav-link i {
    font-size: 1rem !important; /* Icons nicht zu riesig machen */
    margin-right: 0.5rem !important; /* Abstand Text <-> Icon reduzieren */
}

.layout-compact .sidebar .nav-item-submenu > .nav-link::after {
    top: 0.4rem;
}

.layout-compact .sidebar-section-header {
    padding: 0.5rem 0.75rem !important;
    font-size: 0.75rem !important;
}



/* Dropdown-Menüs kompakter machen */
.layout-compact .dropdown-menu {
    padding: 0.5rem !important;
    font-size: 0.8125rem !important;
}

.layout-compact .dropdown-item {
    padding: 0.3rem 0.75rem !important;
}

/* Header-Tabs (falls vorhanden) */
.layout-compact .nav-tabs .nav-link {
    padding: 0.4rem 0.75rem !important;
}

/* Page Header anpassen */
.layout-compact .page-header {
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
    margin-bottom: 0.75rem !important;
}
.layout-compact .page-title {
    padding: 0.25rem 0 !important;
    font-size: 1.125rem !important;
}

/* -------------------------------------------------- */
/* Event Calendar – Nicht genehmigte Events           */
/* -------------------------------------------------- */
.ec-event.ec-event-unapproved {
    opacity: 0.75;
    border-style: solid !important;
    border-color: transparent !important;
    outline: 2px dashed currentColor !important;
    outline-offset: -2px !important;
}

.ec-event.ec-event-unapproved .ec-event-body {
    background-image: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 4px,
        rgba(0, 0, 0, 0.15) 4px,
        rgba(0, 0, 0, 0.15) 8px
    );
    background-size: auto;
}

/* -------------------------------------------------- */
/* Event Calendar – Expander als Link                 */
/* -------------------------------------------------- */
.ec-expander {
    background: none !important;
    border: none !important;
    padding: 0 !important;
    color: var(--primary) !important;
    font-size: inherit !important;
    cursor: pointer !important;
    text-decoration: underline !important;
    box-shadow: none !important;
}

.ec-expander:hover,
.ec-expander:focus {
    color: var(--primary) !important;
    text-decoration: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* -------------------------------------------------- */
/* Event Calendar – Dark Mode                         */
/* Aktiviert wenn das Limitless-Theme auf Dark steht  */
/* Farben orientieren sich an den Theme-Variablen aus */
/* [data-color-theme=dark] in all.css                 */
/* -------------------------------------------------- */
[data-color-theme="dark"] .ec {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
    color-scheme: dark;

    /* Graustufen – abgeleitet von --gray-* und --body-bg / --card-bg des Themes */
    --ec-color-50:  #202125; /* --body-bg */
    --ec-color-100: #2c2d33; /* --card-bg */
    --ec-color-200: #39393d; /* --gray-100 */
    --ec-color-300: #46474a; /* --gray-300 */
    --ec-color-400: #4d4d51; /* --gray-400 / --border-color */

    /* Haupthintergrund, Rahmen, Buttons */
    --ec-bg-color:                  #2c2d33;          /* --card-bg */
    --ec-border-color:              #4d4d51;          /* --border-color */
    --ec-button-bg-color:           #39393d;          /* --gray-100 */
    --ec-button-border-color:       #4d4d51;          /* --border-color */
    --ec-button-text-color:         #f4f4f4;          /* --gray-900 (hell im Dark Mode) */
    --ec-button-active-bg-color:    #46474a;          /* --gray-300 */
    --ec-button-active-border-color:#6e6f71;          /* --gray-500 */

    /* Textfarbe */
    --ec-text-color:                #f4f4f4;          /* --gray-900 */

    /* Heute-Highlight: warmer Hauch (--warning #f58646 mit geringer Deckkraft) */
    --ec-today-bg-color:            rgba(245, 134, 70, 0.12);

    /* Auswahl-Highlight: primäre Blau-Akzentfarbe (--primary #0c83ff) */
    --ec-highlight-color:           rgba(12, 131, 255, 0.15);

    /* Jetzt-Indikator: Danger-Farbe des Themes */
    --ec-now-indicator-color:       #EF4444;          /* --danger */

    /* Popup-Hintergrund */
    --ec-popup-bg-color:            #2c2d33;          /* --card-bg */

    /* Hintergrund-Events etwas opaker */
    --ec-bg-event-opacity:          0.5;
}

.ec-event-title {
    padding: 0;
    font-size: 11px;
}

/* ─── Stechuhr Widget ─── */
.stechuhr-layout {
    display: flex;
    align-items: stretch;
}
.stechuhr-clock-wrap {
    flex-shrink: 0;
    width: 35%;
    max-width: 130px;
    padding: .75rem;
    border-right: 1px solid var(--border-color, rgba(0,0,0,.10));
    display: flex;
    align-items: center;
    justify-content: center;
}
.stechuhr-clock-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}
.stechuhr-stats {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid var(--border-color, rgba(0,0,0,.10));
}
.stechuhr-stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: .3rem .75rem;
}
.stechuhr-stat-item + .stechuhr-stat-item {
    border-top: 1px solid var(--border-color, rgba(0,0,0,.10));
}
.stechuhr-actions {
    padding: .5rem .75rem;
    border-top: 1px solid var(--border-color, rgba(0,0,0,.10));
}
.stechuhr-stat-key {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--gray-500, #888780);
}
.stechuhr-stat-val {
    font-size: 14px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}
.stechuhr-punch-btn {
    width: 100%;
    padding: 5px 8px;
    font-size: 11px;
    border: 1px solid var(--border-color, rgba(0,0,0,.22));
    border-radius: 6px;
    cursor: pointer;
    background: transparent;
    color: var(--gray-500, #888780);
    transition: all .15s;
}
.stechuhr-punch-btn:hover {
    color: var(--body-color, #1A1917);
    border-color: var(--body-color, #1A1917);
}
.stechuhr-punch-btn.running {
    background: rgba(29, 158, 117, .1);
    color: #085041;
    border-color: #1D9E75;
}
.stechuhr-punch-btn:disabled {
    opacity: .5;
    cursor: not-allowed;
}
.stechuhr-log {
    padding: .4rem .85rem .5rem;
    border-top: 1px solid var(--border-color, rgba(0,0,0,.10));
}
.stechuhr-log:empty {
    display: none;
}
.stechuhr-log-row {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    font-family: 'DM Mono', monospace;
    color: var(--gray-500, #888780);
    padding: 2px 0;
    border-top: 1px dashed var(--border-color, rgba(0,0,0,.10));
}
.stechuhr-log-row:first-child {
    border-top: none;
}

/* Dashboard Widget Context Menu */
#widget-context-menu {
    min-width: 220px;
    border-radius: 0.375rem;
}
#widget-context-menu .dropdown-item {
    padding: 0.4rem 1rem;
    font-size: 0.875rem;
}
