* {
    padding: 0;
    margin: 0;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
    background: #f6f6f6;
    --brinkmann-blue: #009ee0;
    --brinkmann-pink: #db0099;
    --brinkmann-holiday: green;
    --brinkmann-sick: rgb(216, 216, 106);
    --brinkmann-parental: blue;
    --brinkmann-college: orange;
    --brinkmann-workshop: rgb(224, 166, 57);
    font-size: 14px;
    color: #777;
    height: 100%;
    box-sizing: border-box;
}

button {
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

#app {
    height: 100%;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.login-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-wrap2 {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
}

.login-wrap .messages {
    align-self: center;
    max-width: 250px;
    margin-bottom: 25px;
    background: var(--brinkmann-pink);
    color: #fff;
    box-sizing: border-box;
    padding: 8px 12px;
}

ul.typo3-messages {
    text-align: center;
    margin-top: 50px;
    position: absolute;
    width: 100%;
}

ul.typo3-messages li {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    background: var(--brinkmann-blue);
    color: #fff;
    padding: 8px 12px;
}

.login-wrap .messages.welcome {
    display: none;
}

.login-wrap.recovery ul {
    font-size: 12px;
    list-style: none;
}

.login-wrap.recovery ul.errors {
    background: var(--brinkmann-pink);
    color: #fff;
    padding: 8px 12px;
    margin-top: 12px;
    margin-bottom: 12px;
}

.login-wrap.recovery ul.requirements {
    margin-top: 12px;
    margin-bottom: 12px;
}

.login-wrap a.back,
.login-wrap a.forgot {
    display: block;
    margin-top: 12px;
    text-decoration: none;
    color: var(--brinkmann-blue);
    text-align: center;
}


.login-inner {
    align-self: center;
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 5px;
    padding: 2rem;
}

.login-inner .logo-wrap {
    text-align: center;
    margin-bottom: 12px;
}

.login-inner .logo-wrap img {
    width: 120px;
    height: auto;
}

.form-field {
    margin-bottom: 25px;
}

.form-field.nomarg {
    margin-bottom: 0;
}

.form-field label {
    display: block;
    font-size: 12px;
    margin-bottom: 3px;
}

.form-field input {
    padding: 7px 8px;
    min-width: 250px;
    width: 100%;
    border: 1px solid #cccc;
    border-radius: 3px;
    outline: none;
    box-sizing: border-box;
    color: #777;
}

input[type="submit"] {
    width: 100%;
    padding: 10px 8px;
    background: var(--brinkmann-blue);
    color: #fff;
    border: none;
    cursor: pointer;
}

input[type="submit"]:hover {
    opacity: 0.7;
}

p {
    margin: 0;
}

header {}

.topbar {
    display: flex;
    justify-content: space-between;
    color: #fff;
    background: var(--brinkmann-blue);
    transition: background-color 0.2s ease;
}

.topbar.loading {
    background: var(--brinkmann-pink);
}

.topbar p.info {
    text-align: center;
    align-self: center;
}

.topbar img {
    height: 40px;
    width: auto;
    margin-left: 15px;
}

.logout-wrap {
    align-self: center;
    display: flex;
    margin-right: 15px;
}

.logout-wrap p.logout {
    margin-left: 5px;
    cursor: pointer;
}

.logout-wrap p.logout:hover {
    opacity: 0.7;
}

.navbar {
    background: #f2f1ef;
    display: flex;
    justify-content: space-between;
}

.navbar ul {
    display: flex;
    list-style: none;
}

.navbar ul li a {
    display: block;
    padding: 6px 15px;
    text-decoration: none;
    color: #333;
}

.navbar ul li a.active,
.navbar ul li a:hover {
    background: var(--brinkmann-blue);
    color: #fff
}


#subheader {
    padding: 10px 15px;

    border-top: 1px solid #e3e3e3;
    border-bottom: 1px solid #e3e3e3;

    font-size: 12px;
    display: flex;
}

#subheader>div {
    align-self: center;
}

#subheader .usergroup-select {
    margin-right: 30px;
    cursor: pointer;
    align-self: center;
}

#subheader .usergroup-select.selected {
    color: var(--brinkmann-blue);
}

#subheader .usergroup-select i {
    margin-right: 4px;
}

#subheader .project-filter {
    display: flex;
}

#subheader button {
    align-self: center;
}

.spacer {
    flex-grow: 1;
}

.icon-control {
    display: flex;
    cursor: pointer;
    background: #fff;
    padding: 6px 12px 6px 3px;
    border: 1px solid #ccc;
    border-radius: 3px;
}

.icon-control.no-bg {
    background: none;
    padding: 0;
    border: none;
    border-radius: 0;
    color: unset;
}

.icon-control.no-bg i {
    color: unset;
}

.icon-control.no-bg:hover p {
    color: unset;
}


.icon-control p,
.icon-control i {
    align-self: center;
}

.icon-control i {
    font-size: 14px;
    color: #fff;
    margin-right: 5px;
    color: var(--brinkmann-blue);
}

.icon-control.important i {
    color: var(--brinkmann-pink);
}

.icon-control:hover p {
    color: var(--brinkmann-blue);
}

.icon-control.important:hover p {
    color: var(--brinkmann-pink);
}

.icon-control.file-input {
    position: relative;
}

.icon-control input[type="file"] {
    display: none;
}

#container {
    width: 100%;
    position: relative;
}

.view {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    overflow: hidden;
}

#content-top {
    padding: 16px 15px;
    display: none;
}

#content-bottom {
    top: 50%;
    left: 0;
    width: 100%;
    height: 50%;
    box-sizing: border-box;
    position: absolute;
    overflow: hidden;
}

.asset-form {
    background: #fff;
    max-width: 1000px;
    padding: 20px;
    border-radius: 5px;
    border-top: 4px solid var(--brinkmann-blue);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: #777;
}

.asset-form .border-bottom {
    border-bottom: 1px solid #e3e3e3;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.asset-form label.section {
    display: block;
    margin-bottom: 12px;
    font-size: 16px;
    color: var(--brinkmann-blue);
}

.asset-form-body {
    display: flex;
    flex-wrap: wrap;
}

.asset-form-body .form-field {
    margin-bottom: 15px;
    width: 240px;
}

.asset-form-body .form-field label {
    color: #777
}

.asset-form-body .form-field input {
    width: 90%;
    min-width: 0;
    border-color: var(--brinkmann-blue);
}

.asset-form-footer {
    margin-top: 50px;
    display: flex;
    justify-content: space-between;
}

.asset-form-footer button {
    margin-right: 10px;
}

.asset-form-footer button:last-child {
    margin-right: 0;
}

.asset-form-mobile-access {
    margin-top: 15px;
    margin-bottom: 15px;
}

.asset-form-mobile-access .inner {
    display: flex;   
}

.asset-form-mobile-access .inner button {
    margin-left: 20px;
}

.asset-form .teams-hint {
    margin: -4px 0 12px;
    font-size: 13px;
}
.asset-form .team-asset {
    display: flex;
    align-items: center;
    max-width: 360px;
    margin-bottom: 8px;
    padding: 8px 12px;
    background: #f5f8fa;
    border: 1px solid #e3e3e3;
    border-left: 3px solid var(--brinkmann-blue);
    border-radius: 4px;
}
.asset-form .team-asset .team-name {
    flex: 1;
    color: #555;
}
.asset-form .team-asset .badge {
    margin-right: 12px;
    padding: 1px 8px;
    font-size: 11px;
    color: #fff;
    background: var(--brinkmann-blue);
    border-radius: 10px;
}
.asset-form .team-asset i {
    cursor: pointer;
}
.asset-form .team-asset i:hover {
    color: var(--brinkmann-pink);
}
.asset-form .new-team-btn {
    margin-top: 12px;
    background: none;
    color: var(--brinkmann-blue);
    border: 1px solid var(--brinkmann-blue);
}
.asset-form .new-team-btn i,
.asset-form .new-team-btn p {
    color: var(--brinkmann-blue);
}



/*
.side-panel {
    width: 290px;
    height: 100%;
    overflow: auto;
    right: 0;
    top: 0;
    box-sizing: border-box;
    background: #f6f6f6;
    display: flex;
    flex-direction: column;
}

.side-panel-body {
    padding: 20px;

}

.side-panel-body .form-field {
    margin-bottom: 15px;
}

.side-panel-footer button {
    width: 100%
}

.side-panel-footer button.no-bg {
    background: none;
    border: none;
}

.side-panel-body button.share {
    margin-top: 15px;
}

.side-panel-body button i {
    color: var(--brinkmann-blue);
}

.side-panel-footer .button-wrap {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
}

.side-panel-footer {

    padding: 20px;
    border-bottom: 1px solid #e3e3e3;
}
    */

fieldset {
    border: none;
    border-right: 1px solid #ccc;
    padding: 0;
    padding-right: 20px;
    padding-top: 3px;
    margin-right: 20px;
}

legend {
    font-size: 11px;

}

.form.employee .flex {}

.form.employee .right fieldset {
    display: block;
}

.form.employee .form-field {
    width: 25%;
}

.form.employee .form-field input {
    max-width: 90%;
}

.checkbox {
    cursor: pointer;
    display: flex;
}

.checkbox i {
    margin-right: 5px;
    font-size: 20px;
    color: var(--brinkmann-blue);
}

.checkbox span {
    align-self: center;
    font-size: 12px;
}

.content {
    flex-grow: 1;
}

.content.col2 {
    display: flex;
}

.content {
    flex-grow: 1;
    scrollbar-width: 20px;
    overflow: hidden;
}

.table-wrap {
    height: 100%;
    overflow: auto;
    flex-grow: 1;
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 12px;
}

.schedule-view .table-wrap {
    height: 100%;
}

tr.selected td {
    background-color: var(--brinkmann-pink) !important;
    color: #fff !important;
}

tr.deleted td {
    text-decoration: line-through;
}

.schedule-view td.title label {
    position: absolute;
    left: 6px;
    top: 6px;
    width: 150px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.schedule-view table.employees tr.date {
    display: none;
}

.schedule-view tr.project td:first-child {
    background-color: #f2f1ef;
}

.schedule-view tr.project td.in-project {
    background-color: var(--brinkmann-blue);
    color: #fff;
    text-align: center;
}

.schedule-view tr.project.selected td.title {
    color: var(--brinkmann-blue) !important;
}

.schedule-view tr.sick td:first-child {
    background-color: rgb(250, 226, 13);
    color: #fff;
    text-align: center;
}

.schedule-view tr.holiday td:first-child {
    background-color: green;
    color: #fff;
    text-align: center;
}

.schedule-view table {
    table-layout: fixed;
}

.schedule-view table td {
    width: auto;
    box-sizing: border-box;
}

.schedule-view table tr.group td {
    background-color: #f2f1ef;
    font-weight: bold;
}

.schedule-view table.asset-project td.title {
    width: 150px;
}

.schedule-view table.asset-project td>div {
    border: 1px solid #e3e3e3;
    border-radius: 4px;
    min-height: 2rem;
    padding: 5px;
}

.schedule-view table.project-asset td.title {
    width: 300px;
}

.schedule-view table.project-asset tr.header td.title {
    text-align: left;
    padding: 0;
    background: #fff;
}

.schedule-view table.project-asset tr.header td.title i {}

.schedule-view table.project-asset tr.header td.title input {
    background: #fff;
    border: none;
    line-height: 23px;
    padding-left: 3px;
    width: 110px;
}

.schedule-view table.project-asset tr.header td.title input:focus {
    outline: none;
}

.schedule-view table.project-asset td.title span {

    display: inline-block;
    padding: 1px;
    margin-right: 6px;
}

.schedule-view table.project-asset td.caret {
    width: 30px;
}

.schedule-view table.project-asset td {
    background: #f2f1ef;
}

.schedule-view table.project-asset tbody td {
    background: #fff;
}

/* All collapsed (non-active) project rows stay white like everything else,
   but faded via opacity so the active, expanded project (pink, with its
   team rows) still visibly stands out from the rest as a group. */
.schedule-view table.project-asset tbody > tr:first-child:not(.selected) {
    opacity: 0.6;
}

.assignment-cell {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.assignment-cell div {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.assignment-cell div.inactive {
    opacity: 0.3;
}

.assignment-cell i {
    font-size: 18px;
    margin-right: 3px;
}

.assignment-cell span {
    font-size: 16px;
}

.assignment-select-cell {
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.assignment-select-cell div {
    flex: 1 1 0;
    min-width: 0;
}

.assignment-select-cell div i {
    margin-left: auto;
    margin-right: auto;
    display: block;
    font-size: 20px;
}

.assignment-select-cell div i {
    color: var(--brinkmann-pink);
}

.assignment-select-cell div i.confirm {
    color: #f2f1ef !important;
}

.project-cell {
    background-color: var(--brinkmann-blue);
    color: #fff;
    position: relative;
    padding-right: 15px;
}

.project-cell.holiday {
    background-color: var(--brinkmann-holiday);   
}
.project-cell.sick {
    background-color: var(--brinkmann-sick);   
}
.project-cell.parental {
    background-color: var(--brinkmann-parental);   
}
.project-cell.college {
    background-color: var(--brinkmann-college);   
}
.project-cell.workshop {
    background-color: var(--brinkmann-workshop);   
}

.project-cell span {
    background: rgba(255, 255, 255, 0.6);
    color: #000;
    display: inline-block;
    padding: 1px 3px 1px 3px;
    margin-right: 6px;
    border-radius: 2px;
}

.project-cell.current {
    background-color: var(--brinkmann-pink);
}

.project-cell.faded {
    opacity: 0.35;
}

.project-cell .del-layer {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    display: none;
    background: rgba(0, 0, 0, 0.5);
}

.project-cell .del-layer i {
    align-self: center;
    font-size: 20px;
}

.project-cell:hover .del-layer {
    display: flex;
}

tr.header td {
    position: sticky;
    top: 0;
    z-index: 10;
}

tr:hover td {
    background: #f6f6f6;
}

tr.disabled {
    background: #e3e3e3 !important;
    color: #333 !important;
}

th {
    background: #f2f1ef;
    font-weight: normal;
    padding: 4px 10px;
    text-align: left;
    border-right: 1px solid #f6f6f6;
}

th:first-child {
    border-bottom: 1px solid #f6f6f6;
}

td {
    border: 1px solid #e3e3e3;
    padding: 4px 10px;
    height: 18px;
    cursor: pointer;
    background: #fff;
}

tr.header td {
    text-align: center;
    background-color: #f2f1ef;

}

.project-table-outer-wrap .table-wrap {
    height: 50%;
    overflow: auto;

}

div.project {
    position: absolute;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 1;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
}

div.project.selected {
    border: 3px solid red;
}

.month-select {
    display: flex;

    padding: 6px 3px 6px 3px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 14px;
}

.month-select label,
.month-select i {
    align-self: center;
}

.month-select i {
    cursor: pointer;
    color: var(--brinkmann-blue);
}

label {
    margin: 0;
}

.tools {
    align-self: center;
}

progress {
    visibility: hidden;
}

progress.active {
    visibility: visible;
}

.api-link {
    display: none;
}

select {
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0 1em 0 0;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: 12px;
    cursor: inherit;
    line-height: inherit;
    outline: none;
    color: #777;
}

select::-ms-expand {
    display: none;
}

.select-wrap {
    width: 100%;
    min-width: 15ch;
    max-width: 30ch;
    border: 1px solid #ccc;

    padding: 0.25em 0.5em;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1.1;
    background-color: #f6f6f6;

    display: grid;
    grid-template-areas: "select";
    align-items: center;
}

.select-wrap::after {
    content: "";
    width: 0.8em;
    height: 0.5em;
    background-color: var(--brinkmann-blue);
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
    justify-self: end;
    pointer-events: none;
}

select,
.select-wrap:after {
    grid-area: select;
}

#overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 62, 87, 0.8);
    display: flex;
    justify-content: center;
}

#overlay>div {
    align-self: center;
}

#dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 62, 87, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 20;
}

#dialog-overlay:empty {
    display: none;
}

.dialog-box {
    background: #fff;
    max-width: 400px;
    padding: 20px;
    border-radius: 5px;
    border-top: 4px solid var(--brinkmann-blue);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    color: #777;
}

.dialog-message {
    margin-bottom: 20px;
    white-space: pre-line;
}

.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

#overlay:empty {
    display: none;
}


.styled-select {
    position: relative;
    box-sizing: border-box;
    cursor: pointer;
    color: #000;
}


.styled-select-inner {
    width: 100%;
    display: flex;
    justify-content: space-between;
    background: var(--brinkmann-pink);
    color: #fff;
    padding: 6px 3px 6px 12px;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
    box-sizing: border-box;
}

.open .styled-select-inner {
    border-bottom-color: #fff;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.styled-select-inner p {
    position: relative;

}

.styled-select-inner span.fake {
    opacity: 0;
}

.styled-select-inner span.real {
    position: absolute;
    left: 0;
}

.styled-select-inner i {
    font-size: 14px;
    margin-left: 5px;
    color: #fff;
    align-self: center;
}

.open .styled-select-inner i {
    transform: rotate(180deg)
}

.styled-select .styled-select-options {
    display: none;
    background: #f6f6f6;
    position: absolute;
    z-index: 100;
    width: 100%;
    border: 1px solid #ccc;
    border-top: none;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    box-sizing: border-box;
    max-height: 500px;
    overflow: auto;
}

.styled-select.open .styled-select-options {
    display: block;
}


.styled-select .styled-select-options label {
    display: block;
    padding: 6px 3px 6px 10px;
    cursor: pointer;
}

.styled-select .styled-select-options label:hover {
    background: var(--brinkmann-pink);
    color: #fff;
}

.icon-select {
    display: flex;
}

.icon-select .item {
    display: flex;
    flex-direction: column;
    padding: 0;
    padding-right: 20px;
    margin-right: 20px;
    user-select: none;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.icon-select .item:last-child {
    border-right: 1px solid #ccc;
}

.icon-select .item i {
    display: block;
    font-size: 20px;
    align-self: center;
    margin-bottom: 5px;
    color: rgba(0, 0, 0, 0.2)
}

.icon-select .item.selected i,
.icon-select .item.selected label {
    color: #333;
    color: var(--brinkmann-blue);
}

.icon-select.viewmode-select .item.selected i,
.icon-select.viewmode-select .item.selected label {
    color: var(--brinkmann-pink);
}

.asset-team-label {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.asset-team-label .team-name {
    font-size: 11px;
    color: #999;
}

i.fa-solid.fa-square.holiday{
    color:var(--brinkmann-holiday);
    cursor:not-allowed;
}
i.fa-solid.fa-square.sick{
    color:var(--brinkmann-sick);
    cursor:not-allowed;
}
i.fa-solid.fa-square.parental{
    color:var(--brinkmann-parental);
    cursor:not-allowed;
}
i.fa-solid.fa-square.college{
    color:var(--brinkmann-college);
    cursor:not-allowed;
}
i.fa-solid.fa-square.workshop{
    color:var(--brinkmann-workshop);
    cursor:not-allowed;
}





@media (max-width: 768px) {
    .private-schedule-view .dates-wrap {
        display: block;
    }

    .private-schedule-view .date-cell {
        width: 100%;
        margin: 0;
        margin-bottom: 5px;
        position: static;
    }

    .private-schedule-view .date-cell img {
        display: none;
    }

    .private-schedule-view .date-cell-inner {
        display: flex;
        position: static;
    }

    .private-schedule-view .date-cell-inner-day {
        position: static;
        margin: 5px;
    }
}
/* Open vacation request: hatched in the vacation color, layered on top of
   whatever the cell already shows (assignment, other category, empty). */
.vacation-pending {
    background-image: repeating-linear-gradient(45deg, rgba(0, 128, 0, 0.55) 0 4px, transparent 4px 8px);
    cursor: pointer;
}

/* Project view: the pending cell is one big click target, so hide the
   per-category checkboxes (visibility keeps the row height stable) and let
   the hatching run edge to edge. */
.assignment-select-cell.vacation-pending i {
    visibility: hidden;
}

.schedule-view table.project-asset td:has(> .vacation-pending) {
    padding: 0;
}

.dialog-title {
    margin: 0 0 10px;
    color: var(--brinkmann-blue);
    font-size: 16px;
}
