/* ===========================
   Layout & Base
=========================== */
body {
    background-color: #f8f9fa;
    font-family: Arial, sans-serif;
}

/* ===========================
   Navbar
=========================== */
.navbar-custom {
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: flex-start;	
}

.logo-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box img {
    width: 100%;
    height: 100%;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-size: 15px;
}

.nav-links a.active {
    font-weight: bold;
    border-bottom: 2px solid #333;
}

/* ===========================
   Main Container
=========================== */
.container-main {
    max-width: 98%;
    margin: 30px auto;
    background: #fff;
    padding: 20px 30px;
    border-radius: 4px;
}

.class-header {
    text-align: right;
    font-size: 18px;
    margin-bottom: 16px;
    color: #333;
}

/* ===========================
   Bootstrap Table Utility Classes
=========================== */
.table-autofit {
    width: 100%;
    table-layout: auto;
}

.table-head-bordered thead th {
    border-top: 2px solid #dee2e6;
    border-bottom: 2px solid #dee2e6;
}

.table-heading-nowrap thead th {
    white-space: nowrap;
}

.table-list tbody tr td {
    vertical-align: middle;
}

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

/* ===========================
   Table Cells
=========================== */
.table th {
    font-weight: 600;
    font-size: 13px;
    text-align: center;
    padding: 16px 12px;
    color: #555;
}

.table td {
    text-align: center;
    padding: 4px 8px;
    font-size: 14px;
    color: #333;
}

.table tbody tr {
    border-bottom: 1px solid #e0e0e0;
}

.table td.nr-cell {
    padding: 18px 12px;
    color: #555;
    font-size: 14px;
    width: 60px;
}

/* ===========================
   Editable Inputs
=========================== */
.table td input[type="text"],
.table td input[type="date"] {
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    width: 100%;
    font-size: 14px;
    color: #333;
    padding: 10px 4px;
    border-radius: 4px;
    transition: background 0.15s;
}

.table td input[type="text"]:hover,
.table td input[type="date"]:hover {
}

.table td input[type="text"]:focus,
.table td input[type="date"]:focus {
    background: #eef6ff;
    outline: 2px solid #90c8ff;
}

.table td select {
    border: none;
    outline: none;
    background: transparent;
    text-align: center;
    font-size: 14px;
    color: #333;
    padding: 10px 4px;
    cursor: pointer;
    border-radius: 4px;
    transition: background 0.15s;
    //width: 100%;
    width: 70px;
}

.table td select:hover {
    background: #f0f0f0;
}

.table td select:focus {
    background: #eef6ff;
    outline: 2px solid #90c8ff;
}

/* ===========================
   Row Controls
=========================== */
.row-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.row-controls label {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.row-controls input[type="number"] {
    width: 70px;
    padding: 5px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
}

/* ===========================
   Buttons
=========================== */
.btn-apply {
    background-color: #6abf69;
    color: white;
    border: none;
    padding: 6px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-apply:hover {
    background-color: #57a857;
}

.delete-row-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    padding: 0 4px;
    line-height: 1;
    transition: color 0.2s;
}

.delete-row-btn:hover {
    color: #e05252;
}

.add-row-btn {
    background: none;
    border: 1px dashed #aaa;
    color: #888;
    font-size: 13px;
    padding: 6px 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.2s;
}

.add-row-btn:hover {
    border-color: #6abf69;
    color: #6abf69;
}

#klasseInput {
    font-size: 18px;
    font-weight: bold;
    border: none;
    outline: none;
    background: transparent;
    width: 60px;
    text-align: left;
    border-bottom: 1px solid #ccc;
}

#klasseInput:focus {
    border-bottom: 1px solid #90c8ff;
}

.btn-row-download {
    background: linear-gradient(135deg, #444 0%, #222 100%);
    color: #fff;
    border: none;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-row-download:hover {
    opacity: 0.85;
}

/* ===========================
   Print Button
=========================== */
.btn-print {
    margin-left: auto;
    background: linear-gradient(135deg, #444 0%, #222 100%);
    color: #fff;
    border: none;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: opacity 0.2s;
}

.btn-print:hover {
    opacity: 0.85;
}

/* ===========================
   Table wrapper (horizontal scroll)
=========================== */
.table-wrapper {
    overflow-x: auto;
}

/* ===========================
   Name cell (left-aligned)
=========================== */
.table td.name-cell {
    text-align: center;
    padding: 14px 12px;
    white-space: nowrap;
}

/* ===========================
   Deutsch group header
=========================== */
thead tr:first-child th {
    border-bottom: 1px solid #dee2e6;
    background-color: #f9f9f9;
    text-align: center;
}

thead tr:nth-child(2) th {
    font-size: 12px;
    color: #666;
    padding-top: 6px;
    padding-bottom: 10px;
}

/* ===========================
   Width
=========================== */

.w-50p {
	width: 50px !important;
}

.w-200p {
	width: 200px !important;
}

/* ===========================
   Alert / info box
=========================== */
.alert-info-box {
    padding: 14px 18px;
    background: #f0f4ff;
    border-left: 4px solid #90c8ff;
    border-radius: 4px;
    font-size: 14px;
    color: #444;
    margin-bottom: 20px;
}

.alert-info-box a {
    color: #4a90d9;
    text-decoration: underline;
}

/* ===========================
   Print styles
=========================== */
@media print {
    .navbar-custom,
    .btn-print {
        display: none;
    }

    .container-main {
        margin: 0;
        padding: 10px;
        box-shadow: none;
    }

    .table td select {
        border: none;
        appearance: none;
        background: transparent;
    }
}

/* ===========================
   Login Modal
=========================== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: #fff;
    border-radius: 8px;
    padding: 36px 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.15);
}

.modal-box h3 {
    text-align: center;
    font-size: 20px;
    color: #222;
    margin-bottom: 6px;
}

.modal-subtitle {
    text-align: center;
    font-size: 13px;
    color: #888;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #555;
    margin-bottom: 5px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s;
}

.form-group input:focus {
    border-color: #6abf69;
}

.btn-login {
    width: 100%;
    background-color: #6abf69;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 4px;
}

.btn-login:hover { background-color: #57a857; }
.btn-login:disabled { background-color: #aaa; cursor: not-allowed; }

.error-box {
    background: #fff0f0;
    border-left: 4px solid #e05252;
    color: #c0392b;
    font-size: 13px;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 16px;
}