/* style.css – soft-modern, kanciasty, minimalistyczny */
* {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    text-decoration: none;
    margin: 0;
    padding: 0;
    list-style: none;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f6fa;
    color: #03045e;
    margin: 0;
    padding: 0;
    margin-top: 120px;
}

/* Wrapper */
.container-wrapper {
    display: flex;
    gap: 20px;
    margin: 30px 30px;
    justify-content: center;
    flex-direction: row;
}

/* Kontenery */
.container {
    width: 90%;
    padding: 25px;
    background: #ffffff;
    border: 1px solid #dce1f0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    gap: 15px;
}

label {
    margin: 14px 0 8px 0;
    font-size: 13px !important;
}

/* Formularze i inputy */
input[type=text],
input[type=password],
input[type=datetime-local],
input[type=number],
input[type=date],
select {
    width: 100%;
    padding: 8px 12px;
    margin: 8px 0 8px 0;
    border: 1px solid #c0c6e4;
    outline: none;
    font-size: 14px;
    background: #fefefe;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
}

input[type=text]:disabled,
input[type=password]:disabled,
input[type=datetime-local]:disabled,
input[type=number]:disabled,
input[type=date]:disabled,
select:disabled {
    background: #ebebeb;
}

textarea {
    width: 100%;
    min-width: 100%;
    max-width: 100%;
    min-height: 100px;
    padding: 12px;
    margin: 8px 0 20px 0;
    border: 1px solid #c0c6e4;
    outline: none;
    font-size: 14px;
    background: #fefefe;
    box-sizing: border-box;
    transition: border 0.2s, box-shadow 0.2s;
}

input:focus {
    border-color: #03045e;
    box-shadow: 0 0 5px rgba(3,4,94,0.3);
}

/* Przyciski */
button {
    padding: 12px 20px;
    background: #03045e;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    transition: background 0.2s, box-shadow 0.2s;
    display: inline-flex;
    border: 1px solid #03045e;
    flex-wrap: nowrap;
    gap: 8px;
    align-items: center;
}

button.small {
    padding: 8px 14px;
    font-size: 11px;
}

button:hover {
    background: #ffc400;
    border-color: #ffc400;
}

button i {
    font-size: 16px;
}

.btn-approve {
    background-color: green; /* Zielony kolor */
    color: white;
    border-color: green;
}

.btn-approve:hover {
    background-color: #195f29; /* Ciemniejszy zielony na hover */
    border-color: #195f29;
}

.btn-deny {
    background-color: #ee3d4e; /* Zielony kolor */
    color: white;
    border-color: #ee3d4e;
}

.btn-deny:hover {
    background-color: #ae1d2c; /* Ciemniejszy zielony na hover */
    border-color: #ae1d2c;
}

.btn-info {
    background-color: #939393; /* Zielony kolor */
    color: white;
    border-color: #939393;
}

.btn-info:hover {
    background-color: #6e6d6d; /* Ciemniejszy zielony na hover */
    border-color: #6e6d6d;
}

button.cancel {
    background-color: transparent;
    border: 1px solid #03045e;
    color: #03045e;
}

/* Komunikaty */
.message {
    padding: 8px 15px;
    font-weight: bold;
    border-left: 4px solid #03045e;
    background: #e6e9f7;
    color: #03045e;
    font-size: 12px;
}

.message.error {
    border-left-color: #d9534f;
    background: #f8d7da;
    color: #842029;
}

.message.success {
    border-left-color: #28a745;
    background: #d1e7dd;
    color: #0f5132;
}

.message a {
    color: inherit;
    text-decoration: underline;
}

.validation-error {
    padding: 8px 15px;
    font-weight: bold;
    border-left: 4px solid #d9534f;
    background: #f8d7da;
    color: #842029;
    font-size: 12px;
    margin-top: 3px;
    margin-bottom: 16px;
}

/* Tabele */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

table, th, td {
    border: 1px solid #dce1f0;
}

th, td {
    padding: 8px 10px;
    text-align: left;
    font-size: 14px;
}

th {
    background: #f0f2fa;
    font-weight: 600;
}

/* Formularze w tabeli */
td form {
    margin: 0;
}

/* Modal */
.modal-content {
    background-color: #fefefe;
    margin: 20px auto;
    padding: 40px;
    border: 1px solid #03045e;
    width: 650px;
    max-height: -webkit-fill-available;
    overflow-y: auto;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: none;
    background-color: rgba(0,0,0,0.4);
}

/* Formularze w rzędzie */
.row-form-items {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

/* Responsywność */
@media (max-width: 600px) {
    body {
        /* margin-top: 80px; */
    }

    .container-wrapper {
        margin: 10px;
        /* flex-direction: column; */
        align-items: center;
    }

    .container {
        width: 100%;
        padding: 15px;
    }

    .row-form-items {
        flex-direction: column;
        gap: 8px;
    }

    th, td {
        font-size: 12px;
        padding: 8px 5px;
    }

    button {
        padding: 10px 15px;
        font-size: 12px;
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 90%;
        padding: 20px;
        margin: 20px;
        width: -webkit-fill-available;
        max-height: -webkit-fill-available;
    }

    .buttons {
    display: flex;
    gap: 10px;
    flex-direction: column;
    width: -webkit-fill-available;
}
    
}


header {
    background: #03045e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
    height: 60px;
    position: fixed;
    width: -webkit-fill-available;
    top: 0px;
    flex-direction: row;
    z-index: 999;
}

.sub-header {
    background: #778899;
    color: #ffffffff;
    font-size: 12px;
    padding: 8px 20px;
    font-weight: bold;
    position: fixed;
    width: -webkit-fill-available;
    top: 60px;
    z-index: 999;
}

.logo {
    background: white;
    height: 60px;
}

.logo img {
    height: -webkit-fill-available;
    padding: 10px 15px;
}

.row {
    display: flex;
    flex-direction: row;
}

.menu {
    height: 60px;
    display: flex;
}

.menu-link {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    font-size: 12px;
    height: -webkit-fill-available;
    transition: 0.1s;
    flex-direction: column;
    justify-content: center;
    color: white;
    min-width: 40px;
        text-align: center;
}

.menu-link i {
    font-size: 18px;
    margin-bottom: 4px;
}

.menu-link:hover {
    background: #ffc400;
}

.logout {
    color: white;
}

/* Wyświetlanie tabeli jako "karty" poniżej 600px */
@media (max-width: 600px) {
  .table,
  .table thead,
  .table tbody,
  .table th,
  .table td,
  .table tr {
    display: block;
    border: none;
  }

  .table thead {
    display: none; /* chowamy nagłówki */
  }

  .table tr {
    margin-bottom: 15px;
    border: 1px solid #dce1f0;
    padding: 10px;
    background: #fafafa;
    box-shadow: 0 2px 6px rgba(0,0,0,0.05);
  }

  .table td {
    border: none;
    position: relative;
    /* padding-left: 50%; */
    font-size: 13px;
    min-height: 25px;
  }

  .table td:before {
    position: absolute;
    top: 8px;
    left: 10px;
    width: 45%;
    white-space: nowrap;
    font-weight: bold;
    color: #03045e;
    content: attr(data-label); /* tu pokażemy nazwę kolumny */
  }
}

.buttons {
    display: inline-flex;
    gap: 10px;
}

::-webkit-scrollbar {
  width: 12px; /* Szerokość paska przewijania */
background-color: #d5d5f1;
  height: 12px; /* Wysokość paska przewijania (przewijanie poziome) */
}

:-webkit-scrollbar-track {
  background-color: #cbccd9; /* Tło ścieżki paska przewijania */
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background-color: #7b7b93; /* Kolor "uchwytu" paska */
 
  border: 0px solid #ffffffa6; /* Biały kontur dla lepszego efektu */
}

::-webkit-scrollbar-thumb:hover {
  background-color: #03045e; /* Kolor uchwytu po najechaniu */
}

::-webkit-scrollbar-corner {
  background-color: #03045e; /* Kolor rogów, gdzie paski łączą się */
}