/* ===========================
   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;
}

.logo-box {
    background-color: #6abf69;
    width: 48px;
    height: 48px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-box svg {
    width: 28px;
    height: 28px;
    fill: white;
}

.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: 860px;
    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 {
    background: #f0f0f0;
}

.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;
    width: 100%;
    transition: background 0.15s;
}

.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;
}