.asc,
.desc {
    background-color: #225d9f;
}

th {
    background: #173b64;
}

tr {
    background: #225d9f;
}

.table-hover tbody tr:hover,
.table-hover tbody tr:hover th {
    background: #173b64;
    color: #fff;
}

.filtru-data.activ,
[class^="ghiseul"].activ {
    background: #173b64;
}

.divTableRow.theader {
    background: #173b64;
}

.divTableBody {
    display: table-row-group;
}

#focus {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 80px;
    padding-left: 20px;
    padding-right: 20px;
}

.divTable {
    padding: 0 20px;
    display: table;
    width: 100%;
}

.divTableRow {
    display: table-row;
}

.divTableCell {
    border: 1px solid #999999;
    display: table-cell;
    padding: 3px 10px;
}

body {
    background: #225d9f;
    color: white;
    font-family: "Arial", sans-serif;
    margin: auto;
    padding-bottom: 100px;
}

a {
    color: white;
}


/* HEADER */

.header {
    background-color: #cd4a59;
    box-shadow: 1px 1px 4px 0 rgba(0, 0, 0, .1);
    position: fixed;
    width: 100%;
    z-index: 3;
    color: white;
}

.menu {
    margin: 0;
}

.header ul {
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.header li {
    font-weight: 600;
    padding: 26px 20px;
    border-left: 1px solid #ffffff;
    text-decoration: none;
    cursor: pointer;
}

.header li:hover,
.header .menu-btn:hover {
    background-color: #173b64;
}

.header .logo {
    display: flex;
    float: left;
    font-size: 2em;
    padding: 10px 20px;
    text-decoration: none;
}

@media (max-width:880px) {
    .header .logo {
        display: flex;
        float: none;
        border-bottom: 1px solid white;
        font-size: 1.5em;
        padding: 0;
        text-decoration: none;
        width: 100%;
        justify-content: left;
    }
}

.filtru-data {
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    font-size: 14px;
    border: 1px solid white;
    margin: 0 5px;
    padding: 5px;
}

span.details,
.mybutt {
    background: #cd4a59;
    padding: 2px;
    margin-right: 8px;
    border: 1px solid;
    border-radius: 5px;
    cursor: pointer;
    font-size: 20px;
}

[class^="details-"] {
    display: none;
}

.neprez {
    background-color: grey;
}

.prez {
    background-color: green;
}

td.interval.interval-activ {
    background: green;
}

td.interval.interval-inactiv {
    background: darkgrey;
}

html {
    text-align: center;
}

.navbar .navbar-toggler {
    border: none;
    background: none;
}

.navbar .navbar-toggler .navbar-toggler-icon {
    width: 1.5em;
    height: 1.5em;
    border-radius: 0.25em;
    box-shadow: 0 0.125em 0.25em black;
    transition: all 0.3s ease-out;
}

@media (min-width: 992px) {
    .navbar .navbar-toggler {
        display: none;
    }
}

table#table {
    color: white;
}

span.pagination-info {
    color: white;
}

.center {
    display: flex;
    padding-top: 80px;
    align-items: center;
    flex-direction: column;
}

.button-zone {
    margin: 20px;
    display: flex;
    justify-content: flex-end;
    align-content: center;
    flex-direction: row;
}

.create-zone {
    margin: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    border-radius: 10px;
    padding: 20px;
}

li.nav-item>a:hover {
    color: rgb(193, 193, 193) !important;
}

.nav-tabs .nav-item.show .nav-link,
.nav-tabs .nav-link.active {
    color: #495057 !important;
}

div#details {
    padding: 20px;
}

ul.nav.nav-tabs {
    justify-content: center;
}

.tab-content>.active {
    justify-content: center;
    /* Align horizontally */
    align-items: center;
    /* Align vertically */
}

input[type="text"],
input[type="password"] {
    background-color: #f9f9f9;
    border: 1px solid #6d6d6d;
    padding: 12px;
}

label {
    font-weight: bold;
    margin-right: 10px;
}

input[type="submit"] {
    background-color: #4CAF50;
    color: white;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    margin-top: 20px;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: #3e8e41;
}

.titles {
    padding: 20px;
    text-align: center;
}

form {
    width: 900px;
}

.titles svg {
    width: 40px;
    height: 40px;
}

.btn-primary {
    width: 100%;
}

input.btn.btn-primary {
    width: 100%;
    color: white;
    background: #28a745;
    padding: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

input:read-only {
    background-color: #eee;
    border: none;
    color: #888;
    cursor: default;
    outline: none;
    padding: 5px;
}

.form-group {
    border: 1px white solid;
    padding: 5px;
    margin: 10px 0;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
}

.select2-container--default .select2-results {
    color: black;
}

.select2-container--default .select2-selection--multiple .select2-selection__rendered {
    padding: 3px !important;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice {
    margin-right: 2px !important;
    ;
    margin-top: 2px !important;
    ;
    padding: 2px !important;
    ;
}

li.select2-selection__choice {
    background-color: #00751b !important;
    color: white;
}

.select2-container--default .select2-selection--multiple .select2-selection__choice__remove {
    color: #fff !important;
    margin-right: 5px !important;
}

.th-inner.sortable.both {
    max-width: 500px;
    height: 60px;
}

.fixed-table-container tbody td .th-inner,
.fixed-table-container thead th .th-inner {
    padding: 8px;
    line-height: 16px;
    vertical-align: top;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: pre-line;
    word-break: break-word;
}

form.form-inline.my-2.my-lg-0 {
    display: contents;
}

.table thead th,
.table td,
.table th {
    padding: 3px;
    color: white;
    font-weight: 500;
    font-size: 10pt !important;
}

#vacationModal {
    color: black;
}

a:hover {
    color: #bbbbbb !important;
    text-decoration: none;
}

input.vacation_days {
    width: 50px;
}

.floating-window {
    position: fixed;
    right: 10px;
    top: 70px;
    width: 350px;
    z-index: 997;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
}

.floating-window label {
    color: #173b64;
    padding: 5px;
    text-align: center;
    width: 100%;
}

.floating-window td {
    background: #225d9f;
}

.floating-window {
    /* existing styles */
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: white;
}

.floating-window-header {
    cursor: pointer;
    padding: 10px;
    background-color: #ebf5ff;
    border-bottom: 1px solid #ddd;
    color: #225d9f;
    display: flex;
    flex-direction: row-reverse;
    align-items: center;
}

.collapse-indicator {
    margin-right: 10px;
}

.floating-window-content {
    padding: 5px;
}

label {
    margin-bottom: 0;
}

.alert {
    transition: opacity 0.5s ease-in-out;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

.alert-success {
    animation: fadeInOut 2s ease-in-out;
}

.print-popup {
    font-family: Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.5;
    color: black;
}

.header-info {
    font-weight: 600;
    position: relative;
    top: 20mm;
    left: 0;
    font-size: 16pt;
}

.document-title {
    text-align: center;
    margin-top: 40mm;
    font-weight: bold;
    font-size: 18pt;
    margin-bottom: 10mm;
}

.document-body {
    margin: 0;
    line-height: 2;
    font-size: 16px;
}

.signature-section {
    display: flex;
    justify-content: space-between;
    margin-top: 50mm;
}

.signature-line {
    border-top: 1px solid black;
    width: 40%;
    text-align: center;
    padding-top: 5mm;
    font-size: 18px;
}

@media print {
    body * {
        visibility: hidden;
    }
    .print-popup,
    .print-popup * {
        visibility: visible;
    }
    .print-popup button {
        display: none;
    }
    .table thead th,
    .table td,
    .table th {
        padding: 3px;
        color: black;
        font-weight: 500;
        font-size: 10pt !important;
    }
}

@page {
    size: A4;
    margin: 0;
}

#vacationForm .form-row {
    margin-left: -5px;
    margin-right: -5px;
}

#vacationForm .form-row>.form-group {
    padding-left: 5px;
    padding-right: 5px;
}

#vacationForm label {
    margin-bottom: 0.25rem;
}

#vacationForm .form-control {
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
}

@media (max-width: 767px) {
    #vacationForm .form-row {
        flex-direction: column;
    }
    #vacationForm .form-row>.form-group {
        width: 100%;
    }
}

.vacation-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
}

[title="Naștere/Căsătorie Copil"] {
    background-color: #FF5722;
    color: rgb(255, 255, 255);
}

a[title="Concediu de Odihnă"] {
    background-color: #930028;
    color: #ffffff;
}

[title="Concediu de Odihnă Restant"] {
    background-color: #4f003d;
}

a[title="Recuperări"] {
    background-color: #b80000;
    color: #ffffff;
}

a[title="Rechemare"] {
    background-color: #b6b116;
    color: #ffffff;
}

a[title="Deces Rudă"] {
    background-color: black;
    color: #ffffff;
}

a[title="Concediu Medical"] {
    background-color: #4610a3;
    color: #ffffff;
}

a[title="Control Medical Anual"] {
    background-color: #673AB7;
    color: #ffffff;
}

a[title="Transferat"] {
    background-color: #FF5722;
    /* Portocaliu pentru transferuri */
}

a[title="Pensionat"] {
    color: red;
    /* Culoarea textului */
    background-color: #f0f0f0;
    /* Culoarea fundalului */
    border: 1px solid #ccc;
    /* Bordură */
}

.vacation-indicator[title="Recuperari"] {
    background-color: #2196F3;
    /* Albastru pentru recuperări */
}

.no-vacation-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 5px;
    background-color: #cccccc;
    /* Gri deschis pentru "nu este în concediu" */
    font-size: 10px;
    line-height: 10px;
    text-align: center;
    color: #ffffff;
}

.employee-status {
    display: block;
    padding: 5px;
    text-decoration: none;
    color: white;
    font-weight: bold;
}

.employee-status:hover {
    text-decoration: none;
    color: white;
    opacity: 0.9;
}

.at-work {
    background-color: #28a745;
    /* Verde pentru "LA MUNCĂ" */
}

.floating-window-content * {
    padding: 5px !important;
    font-size: 14px !important;
}

.filter-zone {
    padding: 10px;
    font-size: 16px;
    display: inline-flex;
}

.conducere-zone {
    display: flex;
    justify-content: center;
}

.sign {
    padding-top: 50px;
}


/*CSS PONTAJE*/

.filter-controls label {
    color: black;
}

.table-bordered td,
.table-bordered th {
    border: 1px solid #666666 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.table thead th {
    border-bottom: 2px solid #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

table#pontajTable td,
table#pontajTable th {
    color: black;
    background: white;
}

.header-content {
    color: black;
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.header-content img {
    height: 50px;
    width: auto;
}

.print-legend {
    text-align: right;
}

@media print {
    .table-bordered td,
    .table-bordered th {
        border: 1px solid #666666;
    }
    .table thead th {
        border-bottom: 2px solid #000000;
    }
    .header-content {
        padding: 0;
        margin-bottom: 30px;
    }
    #printHeader {
        display: none !important;
        /* Ascundem header-ul duplicat la printare */
    }
}

.pontaje-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

@media print {
    body * {
        visibility: hidden;
    }
    .pontaje-print-area,
    .pontaje-print-area * {
        visibility: visible;
    }
    .pontaje-print-area {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
    .print-controls,
    .filter-controls {
        display: none;
    }
    #printHeader {
        display: block !important;
        margin-bottom: 20px;
    }
    @page {
        size: landscape;
        margin: 10mm;
    }
    .legend-section {
        page-break-inside: avoid;
    }
}

.pontaje-container {
    background: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

#pontajTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#pontajTable th,
#pontajTable td {
    color: black !important;
    border: 1px solid #000 !important;
    padding: 4px !important;
    font-size: 12px !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#pontajTable th:first-child,
#pontajTable td:first-child {
    text-align: left;
    width: 200px;
    white-space: normal;
}

#pontajTable th:last-child,
#pontajTable td:last-child {
    width: 80px;
}


/* Stiluri specifice pentru printare */

@media print {
    .table-responsive {
        overflow-x: visible !important;
    }
    #pontajTable {
        font-size: 10pt !important;
        width: 100% !important;
        table-layout: fixed !important;
        page-break-inside: avoid !important;
    }
    #pontajTable th,
    #pontajTable td {
        page-break-inside: avoid !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        color: black !important;
        border: 1px solid #000 !important;
    }
    #pontajTable th {
        background-color: #fff !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
    /* Setăm dimensiunile coloanelor pentru printare */
    #pontajTable th:not(:first-child):not(:last-child),
    #pontajTable td:not(:first-child):not(:last-child) {
        width: 20px !important;
        max-width: 20px !important;
        min-width: 20px !important;
    }
    #pontajTable th:first-child,
    #pontajTable td:first-child {
        width: 200px !important;
        max-width: 200px !important;
    }
    #pontajTable th:last-child,
    #pontajTable td:last-child {
        width: 60px !important;
        max-width: 60px !important;
    }
    /* Forțăm orientarea landscape și dimensiunea A4 */
    @page {
        size: A4 landscape;
        margin: 15mm;
    }
}


/* Stiluri pentru diferite statusuri în tabel */

.status-co {
    background-color: #6d0055 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.status-transferred {
    background-color: #53006d !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.status-cor {
    background-color: #4f003d !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.status-cm {
    background-color: #cca700 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.status-ces {
    background-color: #002c7e !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.status-cfs {
    background-color: #ff9d00 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.status-r {
    background-color: #830000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.status-zll {
    background-color: #006d88 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.status-retired {
    background-color: #a9a9a9 !important; /* Dark Gray */
    color: #ffffff !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}


/* Stiluri generale pentru tabel pontaj */

#pontajTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#pontajTable th,
#pontajTable td {
    color: black !important;
    border: 1px solid #000 !important;
    padding: 4px !important;
    font-size: 12px !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#pontajTable th:first-child,
#pontajTable td:first-child {
    text-align: left;
    width: 200px;
    white-space: normal;
}

#pontajTable th:last-child,
#pontajTable td:last-child {
    width: 80px;
}


/* Stiluri pentru zona de semnături */

.signatures-section {
    margin-top: 30px;
    page-break-inside: avoid;
}

.signatures-section .col-md-4 {
    margin-bottom: 20px;
}

.signatures-section p {
    margin: 0;
    color: black;
}

.signatures-section .font-weight-bold {
    font-weight: 600 !important;
    font-size: 14px;
}


/* Ajustări pentru selectoare în zona de filtre */

.filter-controls select {
    background-color: white;
    color: black;
}

.filter-controls label {
    color: black;
    margin-bottom: 5px;
}


/* Ajustări pentru header și semnături la printare */

@media print {
    /* Semnături după tabel */
    .signatures-section {
        margin-top: 20mm !important;
        /* Spațiu după tabel */
        page-break-inside: avoid !important;
        width: 100% !important;
        text-align: center !important;
    }
    .signatures-section .row {
        width: 100% !important;
        display: flex !important;
        justify-content: space-between !important;
        flex-wrap: nowrap !important;
    }
    .signatures-section .col-md-4 {
        flex: 1 !important;
        display: inline-block !important;
        vertical-align: top !important;
        padding: 0 15px !important;
        text-align: center !important;
    }
    .signatures-section p {
        font-size: 11pt !important;
        line-height: 1.2 !important;
        margin: 0 !important;
        text-align: center !important;
    }
    .signatures-section .font-weight-bold {
        display: block !important;
        margin-bottom: 4mm !important;
        font-weight: bold !important;
        font-size: 11pt !important;
    }
}

.filter-zone .row {
    display: flex;
    align-items: flex-end;
}

.header-content.mb-4 {
    margin: 0 !important;
}

#pontajTable {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

#pontajTable th,
#pontajTable td {
    color: black !important;
    border: 1px solid #000 !important;
    padding: 4px !important;
    font-size: 12px !important;
    text-align: center;
    vertical-align: middle;
    white-space: nowrap;
}

#pontajTable th:first-child,
#pontajTable td:first-child {
    text-align: left;
    width: 200px;
    white-space: normal;
}

#pontajTable th:last-child,
#pontajTable td:last-child {
    width: 80px;
}

.print-popup .signatures-section {
    margin-top: 30px;
}

.print-popup .signatures-section p {
    margin: 0;
    line-height: 1.2;
}

.print-popup .signatures-section .font-weight-bold {
    font-weight: 600 !important;
    font-size: 14px;
}

.header-content {
    color: black;
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.header-content img {
    height: 50px;
    width: auto;
}

.print-legend {
    text-align: right;
}

.filter-zone .row {
    display: inline-flex;
    align-items: flex-end;
}

.header-content.mb-4 {
    margin: 0;
}

.uppercase {
    text-transform: uppercase;
}

@media print {
    /* Ascunde tot conținutul paginii inițiale */
    body>*:not(.print-popup) {
        display: none;
    }
    /* Arată doar popup-ul de printare */
    .print-popup {
        position: absolute !important;
        left: 0 !important;
        top: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
        padding: 0 !important;
        margin: 0 !important;
        background: white !important;
    }
    /* Asigură-te că conținutul din popup este vizibil */
    .print-popup .pontaje-print-area {
        display: block !important;
        visibility: visible !important;
        overflow: visible !important;
    }
    /* Ascunde butoanele și elementele de control */
    .print-popup .fixed-buttons,
    .no-print {
        display: none !important;
    }
    /* Setări pentru pagină */
    @page {
        size: landscape;
        margin: 10mm;
    }
    /* Previne ruperea elementelor importante */
    .signatures-section {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
    }
    #pontajTable {
        page-break-inside: avoid !important;
        break-inside: avoid !important;
        color: black !important;
    }
    #pontajTable th,
    #pontajTable td {
        color: black !important;
    }
    /* Elimină scroll-ul și overflow */
    html,
    body {
        overflow: visible !important;
        height: auto !important;
        width: auto !important;
        margin: 0 !important;
        padding: 0 !important;
        color: black !important;
    }
}

.recuperari-summary .card {
    background: #173b64 !important;
}


/* Main cell colors */

.efectuat-row {
    background-color: #1a4d80;
    /* Darker blue for effectuated rows */
}

.neefectuat-row {
    background-color: #225d9f;
    /* Standard theme blue for non-effectuated rows */
}


/* Status text colors */

.efectuat-status {
    color: #8ccfff;
    /* Light blue for effectuated status */
}

.neefectuat-status {
    color: #ffd700;
    /* Gold/yellow for non-effectuated status */
}


/* Button colors */

.sterge-btn {
    background-color: #cc3333;
    border-color: #aa2222;
}


/* Toggle switch colors */

.custom-control-input:checked~.custom-control-label::before {
    background-color: #1a4d80;
    border-color: #153d66;
}

@media (max-width: 768px) {
    .titles {
        padding-top: 75px !important;
        font-size: 20px !important;
    }
}

@media (max-width: 768px) {
    form {
        width: 98vw;
    }
    .create-zone {
        margin: 0px;
        padding: 10px;
    }
    .bootstrap-table .table:not(.table-condensed),
    .bootstrap-table .table:not(.table-condensed)>tbody>tr>td,
    .bootstrap-table .table:not(.table-condensed)>tbody>tr>th,
    .bootstrap-table .table:not(.table-condensed)>tfoot>tr>td,
    .bootstrap-table .table:not(.table-condensed)>tfoot>tr>th,
    .bootstrap-table .table:not(.table-condensed)>thead>tr>td {
        padding: 3px;
    }
    input[type="text"],
    input[type="password"] {
        margin-top: 10px;
    }
    .nav-link {
        padding: 0.1rem 0.3rem;
        border: 1px solid #ffffff !important;
    }
    .bootstrap-table svg {
        width: 25px;
        height: 25px;
    }
    .form-group {
        margin: 0;
    }
    .filter-zone {
        margin: 5px;
    }
}

nav.navbar {
    z-index: 998;
}


/* Stilizare pentru alerte */

.alert {
    position: relative;
    padding: .75rem 1.25rem;
    margin-bottom: 0;
    border: 1px solid transparent;
    border-radius: 0;
}

.alert-info {
    color: #ffffff;
    background-color: #00970d;
    border-color: #173b64;
}

.alert-dismissible .close {
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
    padding: 0;
    color: inherit;
    opacity: .8;
}

.alert-dismissible .close:hover {
    opacity: 1;
    color: inherit;
}

@media (max-width: 768px) {
    .alert {
        text-align: center;
        font-size: 0.9rem;
    }
}

.history-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.card {
    background-color: #173b64;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.card-header {
    background-color: #225d9f;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-content {
    font-family: monospace;
    white-space: pre-wrap;
    max-height: 70vh;
    overflow-y: auto;
    padding: 15px;
    background-color: #0a1622;
    color: #e0e0e0;
    border-radius: 4px;
}

.log-entry {
    padding: 5px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-entry:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.log-level-INFO {
    color: #4CAF50;
}

.log-level-WARNING {
    color: #FFC107;
}

.log-level-ERROR {
    color: #f44336;
}

.log-filters {
    margin-bottom: 15px;
    padding: 10px;
    background-color: #225d9f;
    border-radius: 4px;
}

.log-filters .form-group {
    margin-bottom: 10px;
}

.log-entry {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-family: monospace;
}

.log-entry:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.log-entry .timestamp {
    min-width: 180px;
    color: #888;
}

.log-entry .user-info {
    min-width: 200px;
    color: #4FC3F7;
}

.log-entry .action {
    min-width: 150px;
    font-weight: bold;
}

.log-entry .details {
    flex-grow: 1;
    padding-left: 20px;
    font-size: 14;
    line-height: 1.2;
}

.log-entry[data-type="VACATION_CREATE"] .action {
    color: #4CAF50;
}

.log-entry[data-type="VACATION_UPDATE"] .action {
    color: #2196F3;
}

.log-entry[data-type="VACATION_STATUS_CHANGE"] .action {
    color: #FF9800;
}

.log-entry[data-type="VACATION_ERROR"] .action {
    color: #f44336;
}

.actions-map {
    display: none;
}

.log-entry-grid {
    display: grid;
    grid-template-columns: 180px 200px 200px 1fr;
    gap: 10px;
    align-items: center;
    padding: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.log-content {
    background-color: #0d1c2e;
    border-radius: 6px;
    padding: 10px;
    margin-top: 20px;
}

.spinner-border {
    width: 3rem;
    height: 3rem;
}

.log-entry {
    transition: background-color 0.2s ease;
}

.log-entry:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.log-level-info .action {
    color: #ffffff;
    font-size: 14px;
}

.log-level-warning .action {
    color: #FFC107;
}

.log-level-error .action {
    color: #f44336;
}

.timestamp {
    font-family: 'Consolas', monospace;
    font-size: 0.9em;
}

.user-info {
    color: #64B5F6;
}

.details {
    word-break: break-word;
}

.no-results-message {
    text-align: center;
    padding: 20px;
    background-color: rgba(33, 150, 243, 0.1);
    border-radius: 4px;
    margin-top: 20px;
}


/* În style.css, adăugăm/actualizăm */

.log-entries-wrapper {
    background: #0d1c2e;
    border-radius: 6px;
    padding: 15px;
    margin-top: 20px;
}

.loading-wrapper {
    padding: 40px;
}

.loading-text {
    margin-top: 10px;
    font-size: 14px;
}

.log-entry {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    margin-bottom: 8px;
    transition: all 0.2s ease;
}

.log-entry:hover {
    background: rgba(255, 255, 255, 0.1);
}

.log-entry-content {
    padding: 12px;
}

.log-entry-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
    font-size: 0.9em;
}

.timestamp {
    color: #8f9ba8;
    font-family: monospace;
}

.user {
    color: #64B5F6;
}

.level {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.8em;
    font-weight: 500;
}

.level-info {
    background: #1b5e20;
    color: #a5d6a7;
}

.level-warning {
    background: #f57f17;
    color: #fff3e0;
}

.level-error {
    background: #b71c1c;
    color: #ffcdd2;
}

.log-entry-body {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 12px;
}

.action {
    font-weight: 500;
    color: #90caf9;
}

.details {
    color: #ffffff;
}

.alert {
    border: none;
    border-radius: 4px;
}

.alert-info {
    background: rgba(33, 150, 243, 0.15);
    color: #90caf9;
}

.alert-danger {
    background: rgba(244, 67, 54, 0.15);
    color: #ef9a9a;
}

pre {
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.debug-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.pontaj-table .weekend-day,

/* Applies to both th and td */

.pontaj-table .status-zll,

/* Applies to td */

.pontaj-table th.holiday-day {
    /* Added for holiday th */
    background-color: #d1d1d1 !important;
    color: black !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

@media print {
    .pontaj-table .weekend-day,
    /* Applies to both th and td */
    .pontaj-table .status-zll,
    /* Applies to td */
    .pontaj-table th.holiday-day {
        /* Added for holiday th */
        background-color: rgb(201, 201, 201) !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
    }
}

.pontaj-table .status-in-progress {
    background-color: #f1be15 !important;
    color: black !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.pontaj-table .status-retired {
    background-color: #fafafa !important;
    color: black !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.card-body {
    width: auto;
}

.flatpickr-calendar .flatpickr-weekday:nth-child(6),
.flatpickr-calendar .flatpickr-weekday:nth-child(7) {
    color: #ff5757 !important;
}

.status-zlr {
    background-color: #004455 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
}

.cust-filter {
    padding-left: 30px;
}

.intranet-section {
    width: 900px;
    margin: 20px auto;
    padding: 20px;
    border: 1px solid #fff;
    border-radius: 10px;
}

.intranet-section h1 {
    font-size: 24px;
    margin-bottom: 20px;
}

.intranet-section .list-group-item {
    background-color: #173b64;
    border-color: #225d9f;
}

.intranet-section .list-group-item:hover {
    background-color: #225d9f;
}

.intranet-section .btn {
    margin-left: 10px;
}

.upload-zone {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 20px;
}

.custom-file-input {
    color: transparent;
}

.custom-file-input::-webkit-file-upload-button {
    visibility: hidden;
}

.custom-file-input::before {
    content: 'Selecteaza fisier';
    color: white;
    display: inline-block;
    background: #173b64;
    border: 1px solid #ffffff;
    border-radius: 5px;
    padding: 8px 12px;
    outline: none;
    white-space: nowrap;
    -webkit-user-select: none;
    cursor: pointer;
    font-weight: 600;
    margin-right: 10px;
}

.custom-file-input:hover::before {
    border-color: black;
}

.custom-file-input:active::before {
    background: -webkit-linear-gradient(top, #e3e3e3, #f9f9f9);
}

/* Cool upload area */
.upload-card {
    background: linear-gradient(135deg, rgba(23,59,100,0.4), rgba(34,93,159,0.4));
    border: 1px dashed #9ec1ff;
    border-radius: 12px;
    padding: 18px;
    backdrop-filter: blur(2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    max-width: 855px;
    margin-bottom: 20px;
}

.upload-area {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    min-height: 120px;
    border: 2px dashed rgba(255,255,255,0.6);
    border-radius: 12px;
    color: #fff;
    cursor: pointer;
    transition: all .25s ease;
    background: rgba(255,255,255,0.06);
}

.upload-area:hover {
    transform: translateY(-1px);
    background: rgba(255,255,255,0.1);
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}

.upload-area:focus {
    outline: 2px solid #64B5F6;
    outline-offset: 4px;
}

.upload-instructions {
    font-weight: 600;
    opacity: .9;
}

.upload-filename {
    font-weight: 700;
    color: #a9d6ff;
    display: none;
    word-break: break-word;
    text-align: center;
    padding: 0 10px;
}

.upload-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 12px;
}

.btn-upload {
    background-color: #28a745;
    border-color: #28a745;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .3px;
    box-shadow: 0 6px 14px rgba(40,167,69,0.35);
}

.btn-upload[disabled] {
    opacity: .6;
    cursor: not-allowed;
    box-shadow: none;
}

.hidden-input {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

@media (max-width: 768px) {
    .upload-card { padding: 14px; }
    .upload-area { min-height: 100px; }
}
