@import url('open-iconic/font/css/open-iconic-bootstrap.min.css');

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

:root {
    --avatar-size: 2rem;
}

a, .btn-link {
    color: #0366d6;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn-danger-red {
    color: #ffffff;
    background-color: #e50019;
}

.btn-holidays {
    color: #ffffff;
    background-color: #5ad69c;
}

/* "Hours requests" on /Boards and on a project board: it has to read as a button, not as a link. */
.btn.btn-hours-requests {
    color: #1f3a5f;
    background-color: #fff;
    border: 1px solid #1f3a5f;
    font-weight: 600;
}

    .btn.btn-hours-requests:hover, .btn.btn-hours-requests.active {
        color: #fff;
        background-color: #1f3a5f;
    }

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* CALENDAR SECTION */
.calendarContainer {
    height: 350px
}

.festiveDay {
    background-color: forestgreen;
    border-radius: 10%;
}
@keyframes wiggle {
    0% {
        transform: rotate(0deg);
    }

    25% {
        transform: rotate(-5deg);
    }

    75% {
        transform: rotate(5deg);
    }

    100% {
        transform: rotate(0deg);
    }
}
.userHoliday {
    background-color: #5ad69c;
    border-radius: 10%;
}
.userHolidayWiggle {
    background-color: #5ad69c;
    border-radius: 10%;
    animation: wiggle 0.8s infinite;
}
.userSickDayValidated {
    box-sizing: border-box;
    background-color: #ffc000;
    border-radius: 10%;
}
.userSickDayUnvalidated {
    box-sizing: border-box;
    border-style: solid;
    border-color: #ffc000;
    border-radius: 10%;
}
.userPaidLeaveValidated {
    background-color: hotpink;
    border-radius: 10%;
}
.userPaidLeaveUnvalidated {
    border-style: solid;
    border-color: hotpink;
    border-radius: 10%;
}
.userHalfDayPaidLeaveValidated {
    background: linear-gradient(45deg,hotpink 50%,white 50%);
    border-radius: 10%;
}
.userHalfDayPaidLeaveUnvalidated {
    box-sizing: border-box;
    background: linear-gradient( to top right, rgba(0,0,0,0) 0%, rgba(0,0,0,0) calc(50% - 2px), rgba(255,105,180,1) calc(50% - 2px), rgba(255,105,180,1) 50%, rgba(0,0,0,0) 50%, rgba(0,0,0,0) 100%);
    border-left: solid hotpink;
    border-bottom: solid hotpink;
    border-radius: 10%;
}
.pendingLegend {
    box-sizing: border-box;
    border-radius: 10%;
    border-width: 2px;
    border-style: solid;
    border-image: linear-gradient(to right, #ffc000, hotpink) 1;
}

.userAvailability {
    background-color: #0d85eb;
    border-radius: 10%;
}

.weekendDay {
    background-color: grey;
    border-radius: 10%;
}

/* END CALENDAR SECTION */

.idener-font-color {
    color: #44546A;
}

.navbar.bg-light {
    background-color: rgba(0,0,0,.03) !important;
}

/* Board, cards and card lists*/
.card-list-column {
    background-color: #ebecf0;
    border-width: 0;
    border-radius: 10px;
    margin: 5px;
    padding: 5px;
    text-align: center;
    min-width: 272px;
    width: 272px;
}

.card-list-title {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.board-card {
    margin-bottom: 5px;
    border: none;
    box-shadow: 0 1px 0 #091e4240;
}

.board-card-overdue {
    border: 2px solid #f6c343 !important;
    box-shadow: 0 0 0 1px #f6c34380;
}

.board-card-title {
    margin-bottom: 0px;
    font-size: 0.8rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.board-card-content {
    margin: 5px;
    cursor: pointer;
}

.board-card-meta {
    display: flex;
    flex-direction: column;
    margin-top: 5px;
}

.board-card-meta-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
}

.board-card-overdue-row {
    margin-bottom: 4px;
}

.board-card-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    border: 1px solid #ced4da;
    border-radius: 23px;
    background-color: white;
    padding-left: 5px;
    padding-right: 5px;
    white-space: nowrap;
}

.board-card-overdue-indicator {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0 5px;
    max-width: 100%;
    border-radius: 8px;
    background-color: #fff3cd;
    color: #8a6d1d;
    font-weight: 600;
    font-size: 0.65rem;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.board-card-date-range {
    display: inline-flex;
    align-items: center;
    line-height: 1.35;
}

.board-card-participants {
    margin-left: auto;
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
}

    .board-card-participants .fa {
        line-height: unset;
    }

.user-icon {
    border: 1px solid #ced4da;
    font-weight: normal;
    align-self: center;
}

.user-icon-big {
    border: 1px solid #ced4da;
    font-weight: normal;
    font-size: 100%;
    align-self: center;
}

/* Removable people chips, currently used for the invited people of a proposal */
.person-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 6px;
}

.person-chip {
    border: 1px solid #ced4da;
    font-weight: normal;
    font-size: 85%;
    color: #212529;
}

.mandatory {
    border: 2px solid rgba(0, 0, 0, 1) !important;
}

.optional {
    border: 2px dotted black !important;
}

.holiday-sick-table td, .holiday-sick-table th {
    padding: .3rem;
}

.effortInput {
    border: none;
    text-align: center;
    background-color: hsla(0, 100%, 100%, 0);
    width: 6ch;
    padding: 0;
    height: auto;
}

.project-effort-table {
    display: inline-flex;
    flex-direction: row;
}

/*.effort-input-container:nth-child(even) {
    background-color: lightskyblue;
}

.effort-input-container:nth-child(odd) {
    background-color: white;
}*/

.work-distribution-person:nth-child(odd) {
    background-color: white;
}

.work-distribution-person:nth-child(even) {
    background-color: lightgrey;
}

.work-distribution-title {
    text-align: center;
    font-weight: bold;
}

.vertically-centered-label {
    display: flex;
    align-items: center;
    margin: 0px;
}

.checkin-button.focus, .checkin-button:focus {
    box-shadow: none !important;
}

.btn.focus, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgb(0 123 255 / 25%);
}

.checkin-action-last {
    box-shadow: 0px 0px 40px 0px yellow;
}

.user-panel-modal {
    /*background-color: #F2F2F2;*/
    border-radius: 1.25rem !important;
}

    .user-panel-modal .modal-title {
        flex-grow: 1;
    }

.user-panel-create-button {
    margin-bottom: 12px;
}

.Hidden {
    display: none;
}

.card-modal .modal-content {
    border-radius: 1.25rem !important;
}

.card-modal .modal-dialog {
    max-width: max-content;
}

.card-modal-button-description {
    width: 100%;
    text-align: left;
    border: 1px solid #ced4da;
}

.card-modal-button-date {
    border: 1px solid #ced4da;
}

.card-modal-table td {
    vertical-align: middle;
    text-align: center;
    padding: 3px 3px;
}

.card-modal-table tr {
    padding: 3px 0px;
}

.card-modal-table th {
    border-top: none;
    text-align: center;
}

    .card-modal-table th button {
        align-self: end;
    }

.card-modal-table td p {
    margin-bottom: 0px;
    padding: 3px 7px;
}

.card-modal-new-assignment-button {
    border-radius: 50% !important;
    border: 1px solid #ced4da;
}

.card-modal-status-circle {
    color: green;
}

.effort-type-title {
    padding: 7px;
    border-radius: 6px;
    text-align: center;
    margin-top: .5rem;
    margin-bottom: .5rem;
}

.dot {
    height: 15px;
    width: 15px;
    background-color: #FF9600;
    border-radius: 50%;
    display: inline-block;
    margin-bottom: -2px;
}

standard-grey-bordered {
    border: 1px solid #ced4da;
}

standard-round-bordered {
    border-radius: 50%;
}

/* Responsive layout - makes a one column layout instead of a two-column layout */
@media (max-width: 800px) {
    .card-list-column {
        background-color: #ebecf0;
        border-width: 0;
        border-radius: 10px;
        margin: 5px;
        padding: 5px;
        text-align: center;
        width: 100%;
    }
}

.effort-with-actual-container {
    background-color: hsla(0, 100%, 100%, 0.3);
    text-align: center;
    border-color: lightgray;
    border-style: solid;
    border-width: 2px;
    width: 12ch;
}

    .effort-with-actual-container.positive-value {
        background-color: #B2EAB2;
    }

    .effort-with-actual-container.saving {
        background-color: hsla(40, 100%, 42%, 0.3);
    }

    .effort-with-actual-container.justified-user {
        border-color: black;
    }

.effort-without-actual-container {
    background-color: hsla(0, 100%, 100%, 0.3);
    text-align: center;
    border-color: lightgray;
    border-style: solid;
    border-width: 2px;
    width: 6ch;
}

    .effort-without-actual-container.positive-value {
        background-color: #B2EAB2;
    }

    .effort-without-actual-container.saving {
        background-color: hsla(40, 100%, 42%, 0.3);
    }

    .effort-without-actual-container.justified-user {
        border-color: black;
    }

.potentially-justified-user {
    border-color: black;
    border-style: dashed !important;
}

.actual-used-effort-workdistribution {
    width: 6ch;
}

.snow-shadow {
    border-radius: 50%;
    box-shadow: 0 0 50px 0px rgba(0, 0, 0, 0.1) inset;
}

.small-card .card-header {
    padding: 0 !important;
}

.small-card .m-1.p-1 {
    margin: 0 !important;
    padding: 0 !important;
}

.small-card .mb-0 {
    margin-bottom: 0 !important;
}

.small-card .card-body {
    padding: 0.3rem !important;
    margin-bottom: 0 !important;
}

    .small-card .card-body p {
        margin-bottom: 0 !important;
    }

.topic-writer-badge {
    border: 1px solid #ced4da; /* light border for non-coordinated */
    font-weight: normal;
    align-self: center;
    color: black; /* default text color */
    background-color: white; /* default background */
}

    .topic-writer-badge.coordinated {
        border: 2px solid rgba(0, 0, 0, 1) !important; /* strong border for coordinated */
    }

.workdistribution-table {
    width: auto !important;
    min-width: max-content;
}

    .workdistribution-table thead tr:first-child th {
        position: sticky;
        top: 0;
        height: 50px;
        background: white;
        z-index: 3;
    }

    .workdistribution-table thead tr:nth-child(2) th {
        position: sticky;
        top: 50px;
        background: white;
        z-index: 2;
    }

    .workdistribution-table th:first-child,
    .workdistribution-table tbody tr > td:first-child {
        position: sticky;
        left: 0;
        background: white;
        z-index: 2;
    }

    .workdistribution-table thead tr:first-child th:first-child {
        z-index: 4;
    }

    .workdistribution-table thead tr:nth-child(2) th:first-child {
        z-index: 3;
    }

    .workdistribution-table .highlight {
        background: rgb(198, 198, 222) !important;
    }

.fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}