/* ERPNext HR UI — Eigene Styles */

/* Basis */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background: #f0f2f5;
}

#app {
    min-height: 100vh;
}

/* Layout-Anpassungen */
.ant-layout-sider {
    overflow: auto;
}

.ant-layout-content {
    overflow: auto;
}

/* Karten */
.ant-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.ant-card-head {
    border-bottom: 1px solid #f0f0f0;
}

/* Statistik-Karten */
.ant-statistic-title {
    font-size: 13px;
    color: #666;
}

.ant-statistic-content-value {
    font-weight: 600;
}

/* Tabellen */
.ant-table-thead > tr > th {
    background: #fafafa;
    font-weight: 600;
    font-size: 13px;
    color: #333;
}

.ant-table-tbody > tr:hover > td {
    background: #f6f9ff;
}

/* Tags */
.ant-tag {
    font-size: 12px;
    border-radius: 4px;
}

/* Formulare */
.ant-form-item-label > label {
    font-weight: 500;
    color: #444;
}

/* Upload-Bereich */
.ant-upload-drag {
    border-radius: 8px;
    border: 2px dashed #d9d9d9;
    background: #fafafa;
    transition: border-color 0.2s;
}

.ant-upload-drag:hover {
    border-color: #C30A14;
    background: #f0f5ff;
}

/* Seitenleiste: nur der Menübereich scrollt (dezente Scrollbar), Logo + Benutzerinfo bleiben fest */
.ant-layout-sider-children { overflow: hidden; }
.sider-menu-scroll { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.2) transparent; }
.sider-menu-scroll::-webkit-scrollbar { width: 6px; }
.sider-menu-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 3px; }

/* Seitenleiste - Menü-Gruppen */
.ant-menu-item-group-title {
    font-size: 10px !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: rgba(255, 255, 255, 0.35) !important;
    padding-top: 16px !important;
}

/* Fortschrittsbalken */
.ant-progress-inner {
    background-color: #e8e8e8;
}

/* Beschreibungen */
.ant-descriptions-item-label {
    font-weight: 500;
    background: #fafafa;
    color: #555;
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .ant-layout-sider {
        display: none;
    }

    .ant-layout {
        margin-left: 0 !important;
    }
}

/* Ladeanimation */
.loading-screen {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    flex-direction: column;
    gap: 16px;
    background: #f0f2f5;
}

/* Hover-Effekt auf Tabellenzeilen */
.ant-table-tbody > tr {
    cursor: pointer;
    transition: background 0.15s;
}

/* Abzeichen auf Menüpunkten */
.ant-badge-count {
    font-size: 10px;
    min-width: 16px;
    height: 16px;
    line-height: 16px;
}

/* Header-Schatten */
.ant-layout-header {
    height: 56px;
    line-height: 56px;
}

/* Sticky Header */
.ant-layout-header {
    position: sticky;
    top: 0;
    z-index: 100;
    width: 100%;
}
