

/* Main */
body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #f4f4f4;
    padding: 0;
    max-width: 100vw; /* Nastavenie maximálnej šírky pre celé telo */
    margin: 0 auto; /* Centrum obsahu */
    padding-top: 0px;
}

.content {
    padding: 20px; /* Zvýšenie paddingu */
    margin-left: 200px; /* Toľko má sidebar */
    margin-top: 70px; /* Pridanie margin-top pre priestor pod headerom */
    font-size: 14px; /* Už existujúca veľkosť textu */
    max-width: 100vw; /* Nastavenie maximálnej šírky pre content */
}



/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center; /* Zarovnané na stred vertikálne */
    padding: 10px 20px;
    background-color: #e9e9e9;
    border-bottom: 1px solid #ddd;
    position: fixed;
    width: calc(100% - 200px); /* Šírka znížená o šírku sidebaru */
    top: 0;
    left: 200px; /* Začiatok po sidebare */
    z-index: 1000;
}
.header h2 {
    margin-bottom: 0;
}
.header-buttons {
    display: flex;
    gap: 10px;
    margin-left: auto; /* Pridať pre zarovnanie doprava */
}

.header-buttons .btn-primary {
    background-color: #007bff; /* Kontrastná farba k btn-secondary */
    color: white;
}

.header-buttons .btn-primary:hover {
    background-color: #007bff; /* Kontrastná farba k btn-secondary */
}


/* Dashboard.php - zobrazenie ticketov*/
.server-list {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 10px;
    border: 1px solid #e1e1e1;
    margin-top: 15px;
    padding-bottom: 10px;
    border-radius: 10px;
}

.server-list li {
    flex: 1 1 calc(25% - 20px); /* 25% width minus margin */
    max-width: calc(25% - 20px);
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin: 10px;
    margin-bottom: auto;
}

.server-list li {
    flex: 1 1 calc(25% - 20px); /* 25% width minus margin */
    max-width: calc(25% - 20px);
    box-sizing: border-box;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    background-color: #f9f9f9;
    margin: 10px;
    margin-bottom: auto;
}
.server-list .all_tickets {
    flex: 1 1 100%; 
    max-width: 100%;
}

.server-list li a {
    font-size: 15px;
    text-decoration: none;
    text-align: left;
    margin-top: 0px;
}

.server-list li p {
    margin: 10px 0px 10px 0px;
    font-size: 14px;
    line-height: normal;
}



.ticket_my .btn-success{
    border-color: #1886ff;
    background: #1886ff !important;
}

.ticket_my .btn-success:hover{
    border-color: #006de5;
    background: #006de5 !important;
}
.btn-warning, .non_asigned .btn-success, .non_asigned .btn-secondary{
    margin-top: 10px !important;
}
.content .btn-success, .content .btn-secondary, .content .btn-primary{
    margin-top: 10px !important;
}
.btn-edit{
    margin-top: 15px !important;
    float: right;
    color: grey;
}
.ticket_company{
    width: auto; 
    display: inline-block;
    background-color: grey;
    margin-left: -15px;
    margin-bottom: 10px;
    padding: 5px 10px;
    border-radius: 0 15px 15px 0;
    color: white;
    font-weight: bold;
}
.ticket_date{
    width: auto; 
    margin-left: 10px;
    display: inline-block;
    font-weight: bold;
}
.ticket_time{
    width: auto; 
    margin-left: 5px;
    display: inline-block;
    font-weight: bold;
}
.ticket_title{
    font-size: 18px;
    line-height: normal;
}
.ticket_id{
    width: auto; 
    display: inline-block;
    float: right;
}
.ticket_by{
    width: auto; 
    margin-left: 5px;
    display: inline-block;
    font-weight: bold;
}
.ticket_done_by{
    width: auto; 
    margin-right: 5px;
    display: inline-block;
    color: green;
}
.ticket_assigned_by{
    width: auto; 
    margin-right: 5px;
    display: inline-block;
    color: red;
}
.ticket_done_date{
    width: auto; 
    margin-right: 5px;
    display: inline-block;
    color: green;
}
.ticket_done_time{
    width: auto; 
    margin-right: 5px;
    display: inline-block;
    color: green;
}
.server-list i{
    margin-right: 5px;
}

/* Edit/Add Pages Templates  */
.container {
    display: block;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    width: auto;
    max-width: 100%;
    margin: auto; 
    padding: auto; 
    box-shadow: none; 
}
.container h2{
    text-align: center;
}
.form-wrapper {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 900px;
    display: flex;
    flex-direction: row;
    margin: auto;
}
form {
    display: flex;
    flex-direction: column;
}
label {
    margin-bottom: 5px;
    color: #555;
    font-size: 1.1em;
}
.left-column {
    width: 70%;
    padding: 10px;
}
.right-column {
    width: 30%;
    padding: 10px;
    border-left: 1px solid lightgrey;
    margin-left: 10px;
    padding-left: 20px;
}
label {
    display: block;
    margin-bottom: 8px;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0;
}
textarea {
    resize: vertical;
}
input[type="submit"] {
    background-color: #007BFF;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
input[type="submit"]:hover {
    background-color: #0056b3;
}
input[type="text"],
input[type="password"],
input[type="email"],
input[type="datetime-local"],
textarea,
select {
    margin-bottom: 0;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1em;
    box-sizing: border-box;
}
form{
    width: 100%;
    display: flex;
    flex-direction: row;
}.break {
    flex-basis: 100%;
    height: 0;
}
.button-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}
.button-spat, .button-remove, .button-save{
    background-color: grey;
    border: none;
    width: fit-content;
    cursor: pointer;
    color: #fff;
    border-radius: .25rem;
    padding: 8px 10px;
    margin: 0;
    text-decoration: none !important;
    font-size: 16px;
}
.button-remove{
    background-color: #dc3545;
}
.button-save{
    background-color: green;
}
#solution, #description{
    min-height: 170px;
}

/* asign_tickets.php, edit_ticket.php */
.input-group {
    display: flex;
    align-items: center;
}
.input-group button {
    padding: 5px 11px;
    cursor: pointer;
    border-radius: 20px;
    background: #1886ff;
    color: white;
    border: none;
}
#plus-btn{
    padding: 5px 9px;
}
input, select, textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 0;
}
#time_spent, #hourly_rate {
    padding: 5px;
    width: 70px;
    margin-bottom: 0px;
    font-size: 20px;
}
#hourly_rate {
    width: 70px;
}
.popis-ticket{
    border-bottom: 1px solid lightgrey;
    margin-bottom: 10px;
    padding-bottom: 10px;
    color: #555;
}
#solution{
    min-height: 210px;
    margin-bottom: 0px;
}
#asign_server, #doprava{
    margin-bottom: 0px;
    width: 23px;
    height: 40px;
}

/* Tickets.php */
/* -- Filtrovanie */
.filter-form {
    margin-bottom: 0px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background-color: #f9f9f9;
}
.filter-form .btn.btn-primary{
    border: 1px solid #cd0a0a;
    background-color: #cd0a0a;
}
.form-inline .form-control {
    display: inline-block;
    width: -webkit-fill-available;
    vertical-align: bottom;
}
.filter-form .form-group {
    margin-bottom: 10px;
}
.filter-form .form-inline .form-group {
    display: flex;
    flex-direction: row;
    align-items: center;
}
.form-inline {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
    -ms-flex-flow: row wrap;
    flex-flow: row wrap;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    justify-content: space-around;
}
.filter-form .form-inline .form-group label {
    margin-right: 10px;
}
.filter-form .form-inline .form-group input {
    margin-right: 20px;
}


/* groups.php */

/* === Modal field overrides (all modals) === */
.mfield,
.lic-mfield {
    padding: 5px 10px !important;
    border-radius: 8px !important;
    margin-bottom: 0 !important;
}
textarea.mfield,
textarea.lic-mfield {
    border-radius: 8px !important;
}
select.mfield,
select.lic-mfield {
    border-radius: 8px !important;
}
