﻿/*HTML tags*/
a.navbar-brand {
    white-space: normal;
    text-align: center;
    word-break: break-all;
}

a {
    color: #0077cc;
}

h2 {
    padding-bottom: 1rem;
    padding-top: 1rem;
}


/*Classes*/
.border-top {
    border-top: 1px solid #e5e5e5;
}

.border-bottom {
    border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
    box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

button.accept-policy {
    font-size: 1rem;
    line-height: inherit;
}

.button-group {
    display: flex;
    justify-content: flex-end; /* Align buttons to the right */
    margin-top: 20px; /* Space above buttons */
}

.button-group button {
    margin-left: 10px; /* Space between buttons */
}

.button-delete-group {
    margin-top: 0;
    padding-right: 20px;
    padding-bottom: 20px;
}

.compensation-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.culture-button {
    background-color: #fff;
    color: #1b6ec2;
}

.edit-section {
    display: flex;
    flex-direction: column; /* Stack children vertically */
    justify-content: center; /* Center content vertically */
    align-items: center; /* Center content horizontally */
    height: 100%;
    width: 100%;
    padding: 20px;
}

.credit-field {
    max-width: 80px; /* Adjust as needed */
}

.excel-table {
    border: 1px solid;
    margin-top: 20px;
    width: 100%;
    border-collapse: collapse;
}

.excel-table tr {
    border: 1px dashed grey;
}

.excel-table th, td {
    padding-left: 5px;
    padding-right: 5px;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    white-space: nowrap;
    line-height: 60px;
}

.min-vh-70 {
    min-height: 70vh;
}

.nav-pills .nav-link.active, .nav-pills .show > .nav-link {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.open-button-cell {
    text-align: center;
}

.table-responsive {
    overflow-x: auto;
}

.hide-on-narrow {
    display: table-cell;
}

.flex-container {
    display: flex;
}

.name-field, .credit-field {
    flex: 1; /* Make name and credit fields take equal space */
}

.description-field {
    flex: 2; /* Make description field twice as wide as name/credit fields */
}
.table {
    border-collapse: collapse;
    width: 100%;
}

.table-compensation {
    width: 100%;
    margin-bottom: 40px;
}

.table-compensation-archived {
    background-color: #F4F1F1;
}

.table-compensation-title {
    font-weight: 500;
    margin-top: 10px;
    position: absolute; /* Position the title absolutely */
    left: 50%; /* Center the title horizontally */
    transform: translateX(-50%); /* Adjust to ensure exact center */
}

.table-compensation-title-container {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 10px;
    width: 40%;
    text-align: right;
    margin-bottom: 10px;
}

.table-compensation-wrapper {
    width: 40%;
}

.table-compensation-title-container button {
    margin-left: auto;
}

.table-contracts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.table td, .table th {
    padding: 1px 2px; /* Reduced vertical padding */
    line-height: 1.5; /* Adjust line height for content */
    border-bottom: 1px solid #ddd; /* Optional: bottom border for separation */
}

.table-compensation th {
    font-weight: 500;
}

.table-compensation th, .table-compensation td {
    color: grey;
    line-height: 1;
    border: 1px dashed;
}

.table-cell-calendar {
    text-align: center;
}

.table-cell-number {
    text-align: end;
}

.table-edit-button-cell {
    width: 50px;
    text-align: center;
}

.table-head-calendar {
    text-align: center;
}

.table-head-number {
    text-align: right;
}

.table-responsive {
    display: block;
    width: 100%;
    overflow-x: auto;
}

.vertical-form {
    display: flex;
    flex-direction: row; /* Stack form elements vertically */
    justify-content: center; /* Center content horizontally */
    width: 100%;
}

.vertical-form-element {
    margin-left: 5px;
    margin-right: 5px;
}


/*IDs*/
#cookieConsent {
    position: fixed;
    bottom: 0;
    background-color: #f4f4f4;
    color: #000;
    width: 100%;
    padding: 10px;
    text-align: center;
    border-top: 1px solid #ccc;
    z-index: 1000;
}

#errorModal .modal-content {
    background-color: #FBB4A5; /* Light grey background */
}

#errorModal .modal-header {
    background-color: #343a40; /* Dark background */
    color: white;
}

#errorModal .modal-footer {
    background-color: #343a40; /* Dark background */
}


/*@media*/
@media (max-width: 1200px) {
    .vertical-form {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .table-compensation-title-container {
        width: 60%;

    }

    .table-compensation-wrapper {
        width: 60%;
    }
}

@media (max-width: 600px) {
    .hide-on-narrow {
        display: none; /* Hide elements on narrow screens */
    }
    .edit-field {
        width: 100%; /* Ensure inputs fill the cell */
    }
}
