body {
    font-family: Calibri, Arial, sans-serif;
}

.container {
    display: flex;
    height: 100vh;
}

.sidebar {
    width: 20%;
    padding: 10px;
    background-color: #f4f4f4;
    height: 100vh;
}

.content {
    width: 80%;
    padding: 10px;
    overflow-y: auto;
}

.header {
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
}

.header a {
    color: white;
    text-decoration: none;
}

.messages {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    padding: 10px;
    background-color: #333;
    color: white;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    border-top: 1px solid #ccc;
}

/* Inline actions (delete form / edit link) inside table cells */
.inline {
    display: inline;
}

/* Filter bar used on the dashboard / leaves page */
.filter-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 20px;
}

.filter-row--wrap {
    flex-wrap: wrap;
}

.filter-col {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.filter-col label {
    margin-bottom: 5px;
}

/* Calendar section on the leaves page */
.calendar {
    margin-top: 20px;
}

/* SAP-style error bar at the bottom of the viewport */
.error-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #bb0000;
    color: white;
    padding: 12px 40px 12px 20px;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    font-family: Calibri, Arial, sans-serif;
    max-height: 40vh;
    overflow-y: auto;
}

.error-bar--dismissed {
    display: none;
}

.error-bar__title {
    display: block;
    margin-bottom: 6px;
    font-size: 15px;
}

.error-bar__list {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.error-bar__list li {
    margin: 2px 0;
    color: white;
}

.error-bar__close {
    position: absolute;
    top: 6px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    padding: 2px 6px;
}

.error-bar__close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

/* Errors are already shown in the SAP-style error bar at the bottom;
   hide Django's inline errorlist inside the form to avoid duplication. */
#entity-form .errorlist {
    display: none;
}
