@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css');

body {
    color: #555555;
}
a:hover, a:active {
    text-decoration: none;
}
nav.breadcrumb {
    display: none;
}
body.gin-login .user-form-page__user-form {
    background: #CCCCCC;
}
h2 a {
    font-size: 0.7em;
    color: #333;
}
.gin--horizontal-toolbar #toolbar-administration .toolbar-lining,
.gin--horizontal-toolbar #toolbar-administration .toolbar-lining ul,
.gin--horizontal-toolbar #toolbar-administration .toolbar-lining li a {
    background: #333333;
    color: #FFFFFF;
}
.gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .menu-item > .toolbar-icon.is-active {
    color: #333333;
    background: #CCCCCC;
}
.gin--horizontal-toolbar #toolbar-administration .toolbar-lining li:active a {
    color: #333333;
}
.gin--horizontal-toolbar #toolbar-administration .toolbar-lining li:active a:hover,
.gin--horizontal-toolbar #toolbar-administration .toolbar-menu-administration .menu-item .menu-item:hover > .toolbar-icon {
    color: #FFFFFF;
    background: #333333;
}
.toolbar .toolbar-bar #toolbar-item-administration-search::before, 
.toolbar .toolbar-bar .toolbar-menu-administration .toolbar-icon::before, 
.toolbar .toolbar-bar .toolbar-menu-administration .responsive-preview-icon::before, 
.toolbar .toolbar-bar .toolbar-tab > .toolbar-icon-edit.toolbar-item::before, 
.toolbar .toolbar-bar .toolbar-icon-toggle-vertical::before, 
.toolbar .toolbar-bar .toolbar-icon-toggle-horizontal::before {
    background: #999999;
}
.toolbar-bar .toolbar-menu-administration .menu-item__menu_link_content .toolbar-icon::before {
    --icon: url(/themes/contrib/gin/dist/media/sprite.svg#content-view);
}
.is-horizontal .tabs--primary .tabs__link {
    background: #FFFFFF;
    border-radius: 0.5rem;
    padding: 0.6em 1.7em;
    color: #777777;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 0.8em;
    border: 2px solid #777777;
}
.is-horizontal .tabs--primary .tabs__link.is-active {
    color: #FFFFFF;
    background: #777777;
}
.status a {
    background: #999999;
    color: #FFFFFF;
    padding: 0.2em 0.8em;
    border-radius: 5px;
    text-transform: uppercase;
    font-size: 0.8em;
}
.Following a,
.Low a {
    background: #333333;
}
.Progress a {
    background: #1b7ecf;
}
.Cancelled a,
.Dropped a,
.Urgent a {
    background: #DC0000;
}
.Pending a,
.High a {
    background: #f2db05;
    color: #333333;
}
.Completed a {
    background: #0ba331;
}
/* Adjust the table to accomodate tasks and subtasks */
table.views-table tr th {
    background: #EEEEEE;
}
.table-tasks table {
    width: 100%;
    border-collapse: collapse;
}
.table-tasks tbody tr {
    display: flex;
    flex-wrap: wrap; /* Enable wrapping for table cells */
}
.table-tasks thead tr {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #999;
}
.table-tasks thead th:nth-child(7) {
    display: none;
}
.table-tasks tbody td,
.table-tasks th{
    padding: 1em 0.2em;
    flex: 1; 
    box-sizing: border-box;
}
.table-tasks tbody td:nth-child(7) {
    flex: 0 0 100%; /* Move the 7th cell to a new row */
    text-align: center; /* Optional: Centre-align content */
    padding: 0;
}
.table-tasks tbody td:nth-of-type(4), 
.table-tasks th:nth-of-type(4) {
    flex: 1.2;
}
.table-tasks tbody td:nth-of-type(5), 
.table-tasks th:nth-of-type(5) {
    flex: 0.6;
}
.table-tasks tbody td:nth-of-type(6), 
.table-tasks th:nth-of-type(6) {
    flex: 0.6;
}
/* End of Adjust the table to accomodate tasks and subtasks */

/* start Adjust Entity Clone */
.entity-clone-form .form-item--take-ownership,
.entity-clone-form .form-item--no-suffix,
.entity-clone-form .form-item--status {
    display: none;
}
/* end Adjust Entity Clone */
/* start Editorial Task */
fieldset#edit-field-published-timestamp-0 {
    border: 0;
    padding: 0;
}
fieldset#edit-field-published-timestamp-0 span.fieldset__label {
    padding: 0;
}
fieldset#edit-field-published-timestamp-0 .fieldset__wrapper,
fieldset#edit-field-published-timestamp-0 .form-item.form-datetime-wrapper,
#edit-field-date-wrapper .js-form-item {
    margin: 0;
}
.field--name-field-sources .tabledrag-toggle-weight-wrapper,
.field--name-field-sources thead,
.field--type-smartdate .tabledrag-toggle-weight-wrapper,
.field--type-smartdate #field-sources-values thead,
.field--name-field-sources .js-filter-wrapper,
.field--name-field-summary .js-filter-wrapper,
.field--type-smartdate thead,
.field--type-smartdate .field-actions,
.form-type--textarea .filter-wrapper,
.tabledrag-toggle-weight-wrapper  {
    display: none;
}
.smartdate--widget .duration-wrapper {
    display: block !important;
    padding-bottom: 10px;
}
.smartdate--widget .time-end {
    visibility: visible !important;
}
/* end Editorial Task */
/* start Select Box */
.form-type--select .form-select {
    background-color: #f8fafe;
    border: 1px solid #3b5282;
}
.form-type--select .form-element.chosen-container-single .chosen-single {
    min-width: 200px;
}
.form-type--select .chosen-container .chosen-results li {
    padding: 8px 6px;
    border-bottom: 1px solid #86abf7;
}
.form-type--select .chosen-container .chosen-results li:last-child {
    border-bottom: 0;
}
.form-type--select .chosen-container .chosen-drop {
    left: 0;
    padding-top: 5px;
    top: 1px;
}
.chosen-container-multi .chosen-results {
    padding-top: 40px;
}
.field--widget-options-buttons input.form-boolean--type-radio,
.field--widget-options-buttons .form-wrapper .form-radios .form-type--radio:first-of-type {
    display: none;
}
.field--widget-options-buttons .form-radios {
    display: flex;
    flex-wrap: wrap;
}
.field--widget-options-buttons .form-radios .form-type--boolean {
    margin: 0 1em 0 0;
}
.field--widget-options-buttons .form-wrapper .form-radios label {
    position: relative;
    color: #6e98eb;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.8em;
    border: 2px solid #6e98eb;
    padding: 0.6em 1em;
    border-radius: 0.5em;
    font-weight: bold;
}
.field--widget-options-buttons .form-wrapper .form-radios label:before {
    content: "";
    height: 1em;
    width: 1em;
    border: 3px solid #6e98eb;
    border-radius: 50%;
}
.field--widget-options-buttons .form-wrapper .form-radios input.form-boolean--type-radio:checked + label:before {
    height: 0.5em;
    width: 0.5em;
    border: 0.4em solid #FFFFFF;
    background-color: #6e98eb;
} 
.field--widget-options-buttons .form-wrapper .form-radios input.form-boolean--type-radio:checked + label {
    background-color: #6e98eb;
    color: #FFFFFF;
}
/* end Editorial Task */
.form-wrapper .form-item__label,
.tabs__link.is-active, 
.claro-details__summary[aria-expanded=true], 
.horizontal-tabs ul.horizontal-tabs-list li.horizontal-tab-button.selected a,
.field--widget-options-buttons .form-wrapper .fieldset__label {
    text-transform: uppercase;
    color: #999999;
    font-size: 0.9em;
}
.field--widget-options-buttons .form-wrapper .fieldset__label  {
    font-size: 0.8em;
    padding-bottom: 0.2em;
}
.form-item__description, 
.fieldset__description, 
.filter-guidelines__item,
.claro-details__description {
    color: #999999;
    max-width: 100%;
}
.field--widget-inline-entity-form-complex .claro-details__wrapper.details-wrapper {
    margin: 0;
    padding: 10px;
}
.field--widget-inline-entity-form-complex .ief-form.ief-form-bottom {
    border: 0;
    margin: 0;
}
.field--widget-inline-entity-form-complex .fieldset__wrapper,
.field--widget-inline-entity-form-complex .claro-details__wrapper.details-wrapper {
    padding: 0 15px;
    margin: 10px 0 0;
}
.field--widget-inline-entity-form-complex fieldset.fieldset__wrapper {
    padding: 0;
}
.field--widget-inline-entity-form-complex:hover .gin-horizontal-scroll-shadow,
.field--widget-inline-entity-form-complex:hover tr th {
    background:#EEEEEE;
}
.block-system > form .gin-layer-wrapper {
    padding-block-end: 0;
}
.field--widget-inline-entity-form-complex fieldset {
    padding: 0;
    margin: 0;
}
.field--widget-inline-entity-form-complex .field--type-datetime .js-form-wrapper {
    border: 0;
}
.field--widget-inline-entity-form-complex span.fieldset__label {
    padding-bottom: 0;
    margin-bottom: 0;
}
.field--widget-inline-entity-form-complex .field--type-datetime span.fieldset__label,
fieldset .fieldset__label {
    padding: 0;
    color: #999999;
    font-size: 0.7em;
    text-transform: uppercase;
}
.field--widget-inline-entity-form-complex span.fieldset__label {
    color: #999999;
    font-size: 0.7em;
    text-transform: uppercase;
}
h4.form-item__label.form-item__label--multiple-value-form {
    font-size: 1em;
}
.field--widget-inline-entity-form-complex .field--type-datetime .form-item.form-datetime-wrapper {
    margin: 0;
}
.field--type-entity-reference .form-wrapper:hover,
.field--type-entity-reference tr.draggable:hover {
    background: #f8fafe;
}
.field--widget-smartdate-inline tr.draggable {
    border: 0;
}
.messages.messages--status {
    color: #FFFFFF;
    background: #038724;
}

.field--widget-inline-entity-form-complex .form-wrapper:hover,
.field--widget-inline-entity-form-complex .form-wrapper:hover table tr:hover,
.field--widget-inline-entity-form-complex .form-wrapper:hover table tr:hover,
.field--widget-inline-entity-form-complex .claro-details__summary:hover {
    background: #EEEEEE;
}

/* task page */
.table-tasks tbody td:first-child, 
.table-tasks th:first-child {
    flex: 4;
}
.node--type-task .node__content {
    background: #FFFFFF;
}
.node--type-task .field {
    display: flex;
    padding: 0.6em 1em;
    border-bottom: 1px solid #EEEEEE;
}
.node--type-task .field--name-field-checklists {
    display: block;
}
.node--type-task .field__label,
.node__content .field__label {
    width: 120px;
    font-weight: bold; 
    flex-shrink: 0; /* Prevent shrinking of labels */
    text-transform: uppercase;
    font-size: 0.9em;
}
.node--type-task .field__item {
    flex: 1; /* Take the remaining space dynamically */
    word-wrap: break-word; /* Handle long content gracefully */
}
.node--type-task .field__item .field--name-field-first-name,
.node--type-task .field__item .field--name-field-last-name,
.views-table .field--name-field-first-name,
.views-table .field--name-field-last-name {
    display: inline-block;
    padding: 0;
    border: 0;
}
.checklist-item__meta {
    text-align: right;
}
.checklist-item__completed-by {
    font-weight: 500;
    margin-right: 0.5rem;
    color: #CCCCCC;
    font-style: italic;
    margin-right:0;
  }
.checklist-item__completed-time {
    color: #CCCCCC;
    font-style: italic;
    margin-left: 0;
  }
.field--type-task-checklist .task-checklist-item {
    display: flex;
    gap: 10px;
}
.field--type-task-checklist .task-checklist-status-wrapper {
    padding-top: 10px;
}
.profile-form .form-type--vertical-tabs {
    display: none;
}
.field--name-field-period fieldset {
    margin: 0 0 20px;
}
.field--name-field-period span.fieldset__label {
    margin-bottom: 10px;
}
.field--name-field-check-in-out .fieldset__label {
    display: none;
}
.field--name-field-check-in-out .form-radios {
    flex-direction: row-reverse;
    align-items: center;
    justify-content: center;
    gap: 2em;
}
.field--name-field-check-in-out .form-wrapper .form-radios label {
    font-size: 2em;
}
.box-new-node-form .form-item--field-check-in-out:nth-of-type(2),
.box-existing-node-form .form-item--field-check-in-out:nth-of-type(3) {
    display: none;
}
.checkinout {
    text-align: center;
}
.checkinout a {
    background: #FFFFFF;
    color: #333333;
    padding: 1em 3em;
    font-size: 1em;
    text-transform: uppercase;
    border-radius: 0.5em;
    border: 2px solid #333333;
    text-decoration: none;
    font-weight: bold;
    margin-right: 1em;
}
.region-sticky__items__inner {
    justify-content: flex-end;
}
/* media */
fieldset#field_media-media-library-wrapper {
    padding: 0;
    border: 0;
    margin: 0;
}
fieldset .fieldset__label {
    padding: 1em;
}
.media-library-widget .media-library-widget-empty-text {
    font-size: 0.8em;
    color: #999999;
}
.play-icon {
    display: inline-block;
}
/* menu */
ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    background: #ffffff;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    position: relative;
}

/* First level menu items */
.menu > .menu-item {
    position: relative;
    transition: all 0.3s ease;
    list-style: none;
}
.menu > .menu-item > a {
    padding: 1.2rem 1.5rem;
    color: #333;
    text-decoration: none;
    display: flex;
    align-items: center;
    font-weight: 500;
    transition: color 0.3s ease;
}

/* Add icons to first level items */
.menu > .menu-item > a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5rem;
}

.menu > .menu-item:first-child > a::before {
    content: "\f015"; /* home icon */
}

.menu > .menu-item:nth-child(2) > a::before {
    content: "\f073"; /* calendar icon */
}
.menu > .menu-item:nth-child(3) > a::before {
    content: "\f0ae"; /* tasks icon */
}
.menu > .menu-item:nth-child(4) > a::before {
    content: "\f188"; /* bug icon */
}

/* Hover effect for first level */
.menu > .menu-item:hover > a {
    color: #2563eb;
    background: #f8fafc;
}

/* Second level dropdown */
.menu-item--expanded > ul.menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 600px;
    background: #ffffff;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    padding: 1rem;
    border-radius: 0.5rem;
    z-index: 100;
}

/* Show dropdown on hover */
.menu-item--expanded:hover > ul.menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Second level menu items */
.menu-item--expanded > ul.menu .menu-item {
    margin: 0.5rem 0;
}

.menu-item--expanded > ul.menu .menu-item a {
    padding: 0.75rem 1rem;
    color: #4b5563;
    text-decoration: none;
    display: flex;
    align-items: center;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
}

/* Add icons to second level items */
.menu-item--expanded > ul.menu .menu-item a::before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 0.5rem;
    content: "\f054"; /* chevron-right icon */
    font-size: 0.875rem;
    color: #6b7280;
}

/* Hover effect for second level */
.menu-item--expanded > ul.menu .menu-item a:hover {
    background: #f1f5f9;
    color: #2563eb;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .menu {
        flex-direction: column;
        padding: 1rem;
    }

    .menu > .menu-item {
        width: 100%;
    }

    .menu-item--expanded > ul.menu {
        position: static;
        min-width: 100%;
        grid-template-columns: 1fr;
        box-shadow: none;
        padding: 0 0 0 1.5rem;
        opacity: 1;
        visibility: visible;
        transform: none;
    }

    .menu > .menu-item > a {
        padding: 1rem;
    }

    /* Add dropdown indicator for mobile */
    .menu-item--expanded > a::after {
        content: "\f107"; /* angle-down icon */
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        margin-left: auto;
    }
}
/* end menu */
/* comments */
.node--type-task .field--type-comment {
    display: block;
    max-width: 800px;
    margin-left: 250px;
}
.field--type-comment h2.title {
    font-size: 1.2em;
    font-weight: bold;
}
.field--type-comment .comment {
    border-bottom: 1px solid #DDDDDD;
    padding: 1em;
}
.field--type-comment p.comment__submitted, 
.field--type-comment p.comment__submitted a {
    font-style: italic;
    color: #999999;
    margin: 0;
    text-align: right;
}
.field--type-comment .field {
    border: 0;
    display: block;
}
.field--type-comment .field__label {
    width: 180px;
}
.field--type-comment .field--name-comment-body {
    padding-top: 0
}
.field--type-comment .field--type-entity-reference {
    padding-bottom: 0;
}
.field--type-comment .form-type--textarea label, 
.field--type-comment mark {
    display: none;
}
/* end comments */
.createdtime {
    font-size: 0.7em;
    color: #999999;
    font-style: italic;
}
.field--name-field-supervisor-feedback .field__item {
    background: #f2db05;
    padding: 0.2em 0.8em;
    display: inline-block;
}
.view-messages-notifications .item-list ul li {
    list-style: none;
    margin: 0;
    padding: 1em 0;
    border-bottom: 1px solid #ddd;
}
.view-messages-notifications .message-display p {
    margin: 0;
}
.user-time-stamp {
    font-style: italic;
    color: #999999;
    margin: 0;
}
.node__content article.profile {
    display: flex;
    gap: 0.2em;
}
td.my-penalties-total {
    font-size: 3em;
    background: #FF0000;
    color: #FFFFFF;
    text-align: center;
}
.profile .field--name-field-first-name {
    display: inline-block;
}
.profile .field--name-field-last-name {
    display: inline-block;
}
.view-footer a {
    background: #003ecc;
    color: #FFFFFF;
    padding: 0.2em 0.8em;
    font-size: 1.3em;
}