@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

a:link,
a:visited {
  text-decoration: none; /* Remove underline if desired */
}

:root {
  --light-bg-50: #fafafd;
  --light-bg-100: #f6f7fb;
  --light-bg-200: #dee5f1;
  --light-btn-bg: #e0dce5;
  --light-heading: #c3c7db;
  --light-heading: #cfd2e2;
  --light-heading-2: #dde0eb;
  --light-blue: #f8fbff;
  --primary-accent: #eeeef5;
  --secondary-bg: #47455f;
  --full-bg: #1b1a23;
  --theme-margin: 3rem;
  --theme-padding: 1rem;
  --theme-padding-lg: 1.5rem;
  --light-gray: #bfc1cb;
  --dark-gray: #333;
  --gray: #86878e;
  --white: white;
  --black: black;

  --blue: #3960a7;  
  --blue-link: #005e9e;
  --blue-200: #6ba3ed;
  --blue-400-link: #2c7be5; /* for links */
  --blue-500: #2362b7;
  --orange: #fbab50;
  --red: #ef3a34;
  --green: #0CC665;
  --brown: #ad8350;
  --purple-400: #6d6ced;
  --purple-500: #5756be;

  --blue-700: #0f4488;
  --blue-600: #155cb4;
  --blue-500: #1973e3;
  --blue-400: #468feb;
  --blue-300: #74abee;
  --blue-200: #a1c6f3;
  --blue-100: #d0e2fa;
  --blue-50:  #f6f9fe;

  --purple-400: #468feb;
  --purple-400: #1973e3;
  --purple-500: #155cb4;

  --green-400: #43986B;
  --green-500: #388059;

  --dark-slate-blue-50: #636592;
  --dark-slate-blue-50: #6c749d;
  --dark-slate-blue-20: #8990b1;
  --dark-slate-blue: #4f5369;
  --dark-slate-blue-100: #373a49;
  --dark-slate-blue-200: #2c2e3a;
  --orange-200: #fb9623;
  --red-200: #aa130e;

  --base-row: white;
  --accent-row: var(--light-bg-100);

  --green-200: #0a9e51;

  --home: var(--dark-slate-blue);
  --twitter: #379683;
  --codepen: #5cdb95;
  --github: #8ee4af;
  --background: #edf5e1;
  --shadow: #cccccc;
  --illumination: #fdc6be;
}

body {
  background-color: #ffffff;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  overflow-x: hidden; /* Prevent horizontal scroll */
}

.bg-success {
  background-color: #28a745;
  color: white;
}

.bg-danger {
  background-color: #dc3545;
  color: white;
}

.bg-warning {
  background-color: #ffc107;
  color: #343a40;
}

.bg-info {
  background-color: #17a2b8;
  color: white;
}

h1,
h2,
h3 {
  text-align: center;
  margin-bottom: 20px;
}
/* 
h1 {
  margin-bottom: 2.5rem;
} */

ul {
  padding: 0;
  list-style-type: none;
}
a {
  text-decoration: none;
  color: inherit;
}

.App {
  display: flex;
  background-color: #f6f7fb;
  flex-direction: column;
  overflow-x: hidden;
  min-height: 100vh;
}

.main-content {
  margin-left: 260px;
  padding: 50px;
  padding-top: 110px;
  padding-bottom: 5rem;
  width: calc(100% - 260px);
  transition: margin-left 0.3s ease-in-out;
  /* padding-top: 0; */
}

.grid-container {
  display: flex;
  /* max-width: 1170px; */
  margin: 0 auto;
  gap: 40px;
  background-color: var(--white);
  justify-content: space-between;
  padding: var(--theme-padding-lg);
  padding: 0;
}

.table {
  width: 100%;
  background-color: #ffffff;
  color: #000000;
  /* box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px; */
  font-size: 14px;
  border-spacing: 0;
  border-collapse: collapse;
  overflow-x: auto;
  margin-bottom: var(--theme-padding-lg);
}

.table-md {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.table tr {
  margin-bottom: 3px;
  border-collapse: collapse;
}

.table td,
.table th {
  padding: 8px;
  border-bottom: 1px solid #ddd;
  margin: 0;
  text-align: left;
  border: 1px solid #ddd;
}

.table th {
  text-align: left;
  /* border-color: var(--dark-slate-blue-20);
  border: 1px solid var(--dark-slate-blue-20);
  border-bottom: 1px solid var(--dark-slate-blue-20); */
  /* height: 50px; */
}

.table th.ta-center, .table td.ta-center {
  text-align: center;
}

.table td {
  height: 50px;
  /* border: 1px solid #ddd; */
}

.table thead {
  color: var(--black);
  /* background-color: var(--dark-slate-blue-50); */
  background-color: var(--light-heading-2);
  /* border-bottom: 2px solid #fff; */
  height: 50px;
}

.table tbody td {
  color: var(--secondary-bg);
  color: #222;
}
.table tbody td.alert {
  color: var(--red);
  font-weight: 600;
}
.table tbody td.success {
  color: var(--green-200);
  font-weight: 600;
}
.table tbody td.uppercase {
  text-transform: uppercase;
}

.table th {
  font-size: 13px;
  text-transform: uppercase;
  font-weight: 600;
  /* border-right: 1px solid var(--dark-slate-blue-200); */
}
.table th:last-of-type {
  border-right: none;
}

.table tbody tr:nth-child(odd) {
  background-color: var(--base-row);
}

.table tbody tr:nth-child(even) {
  background-color: var(--accent-row);
}

.radnik {
  display: flex;
}

.radnik-column {
  width: 150px;
}

.upload-form-wrapper {
  background-color: #f7f3f5;
  padding: 30px;
  box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
}

.form-fields-container {
  display: flex;
}

.form-row-description {
  margin-bottom: 20px;
  text-transform: uppercase;
  font-weight: 500;
}

.form-field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
}

label {
  margin-right: 20px;
}

.content-row {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: var(--theme-margin);
}

.content-row .report-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
}

.content-row .report-table-wrapper {
  display: flex;
  flex-wrap: wrap;
}

.content-row .report-table-wrapper .table {
  margin-right: 30px;
  background-color: transparent;
  align-self: flex-start;
}

.content-row .report-table-wrapper .table .list-subcategory {
  color: var(--blue);
}

.report-table-wrapper {
  display: flex;
}

.report-table-wrapper table {
  max-width: 30%;
  margin-bottom: var(--theme-margin);
}
.table-report {
  display: table;
}

.table-report td {
  border-right: 1px solid #ddd;
}

.table-report td:last-of-type {
  border-right: none;
}

.table-report td span {
  display: block;
  margin: 20px 0;
}

.table-report tr td:first-of-type span {
  color: var(--blue);
  display: initial;
}

.content-row a {
  /* flex: 1 1 calc(20% - 20px); Adjust the width to ensure equal size, accounting for gap */
  text-decoration: none;
  /* flex: 1; */
}

.table-list {
  list-style-type: none;
  padding: 0;
  font-size: 14px;
}

.table-list .list-thead {
  background-color: #f8f9fa;
  font-weight: bold;
  padding: 8px 10px;
  border-top: 2px solid #dee2e6;
  border-bottom: 2px solid #dee2e6;
}

.table-list .list-subcategory {
  background-color: #f8f9fa;
  font-weight: bold;
  padding: 5px 10px;
}

.table-list li {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  border-bottom: 1px solid #dee2e6;
}

.table-list .list-total {
  font-weight: bold;
}

.icon {
  font-size: 45px;
  margin-bottom: 10px;
}

.calculated-total-revenue {
  background-color: #007bff;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  padding: 10px;
  margin-top: 20px;
  text-align: center;
}

.calculated-total-revenue span {
  font-size: 24px;
}

/* PREVOZNICE I EVIDENCIJE RADA - FILTER FORME I TABELE */

.date-row td {
  font-weight: bold;
}

.ucinak-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 20px;
}

.ucinak-table th,
.ucinak-table td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.ucinak-table th {
  background-color: #134983;
  color: #fff;
  font-weight: bold;
}

.ucinak-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.ucinak-table tbody tr:hover td {
  background-color: #e9e9e9;
}

.filters-form {
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.filters-form .title {
  font-size: 20px;
  margin-bottom: 10px;
}

.filters-form label {
  display: block;
  margin-bottom: 5px;
}
.filters-form .btn-submit {
  margin-top: var(--theme-padding);
}


.form-row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.form-group {
  flex: 1;
  width: 100%;
  margin-bottom: 20px;
}
form .form-group input, form .form-group select {
  width: 100%;
}

.form-group:nth-child(3n) {
  margin-right: 0;
}

.filtered-title {
  text-align: left;
  margin-top: var(--theme-margin);
}
.filtered-title .title-highlight {
  color: var(--dark-slate-blue-50);
  display: inline-block;
  margin: 0 4px;
}

.buttons-wrapper {
  display: flex;
  gap: 10px;
  justify-content: flex-start;
}

.filters .buttons-wrapper .btn, .filters .buttons-wrapper .btn-outline {
    /* border: 1px solid var(--purple-500); */
  margin-top: 0;
  /* height: 37px; */
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-line {
  display: flex;
  align-items: center;
  margin-bottom: var(--theme-padding);
}
.form-line label {
  white-space: nowrap;
}

/* One line filters form */
.filters-form-wrapper {
  padding: var(--theme-padding);
  border-radius: 4px;
  background-color: var(--white);
  margin-bottom: var(--theme-margin);
  box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
}

.filters-form-small {
  display: flex;
  gap: 5px;
}

.filters-form-small input {
  background-color: var(--light-bg-50);
}
.filters-form-small .row {
  /* width: 100%; */
  flex-direction: row;
  display: flex;
  justify-content: flex-start;
  margin-bottom: var(--theme-padding);
  gap: 10px;
}
.filters-form-small .row .form-group {
  flex: unset;
}

.filters-form-full {
  display: flex;
  flex-direction: column;
}

.filters-form-full .form-row {
  gap: 15px;
}

.filters-form-full label {
  font-weight: 500;
  font-size: 15px;
}

.filters-form-full .form-group {
  background-color: var(--light-bg-100);
  padding: 15px;
  margin-bottom: 15px;
  max-height: 130px;
  overflow-y: auto;
}

.filters-form-full .fixed-buttons {
  align-items: center;
  padding-left: 15px;
}
.filters-form-full .fixed-buttons .btn-block {
  margin: 0;
}

.filters-form-full input[type="checkbox"] {
  margin-right: 5px;
}

.filters-toggle-button {
  display: none; /* Hide the button on larger screens */
}


.filters-form-selects {
  display: flex;
  margin-bottom: var(--theme-padding);
}

.btn {
  /* margin-inline-start: auto; */
  display: block;
  white-space: nowrap;
}
.button-group .btn {
  margin-inline-start: unset;
}

.btn-submit {
  padding: 10px 30px;
}

.add-form label {
  font-weight: 600;
  margin-top: 10px;
  margin-bottom: 3px;
  font-size: 16px;
}

.add-form .btn-submit {
  margin: var(--theme-padding) 0;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 5px;
  color: #555;
  color: var(--dark-slate-blue-50);
}

.table-section {
  margin: 0 auto;
  margin-top: 40px;
  margin-bottom: 40px;
  /*background-color: #f7f7f7;*/
  border-radius: 8px;
  /*box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
}

.table-small {
  max-width: 600px;
  width: 100%;
  border-collapse: collapse;
  margin-left: auto;
  margin-right: auto;
}

.table-small caption {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 500;
}
.table-small th,
.table-small td {
  border: 1px solid #ddd;
  padding: 12px 15px;
  text-align: left;
}

.table-small thead {
  background-color: var(--dark-slate-blue-50);
  color: #fff;
  font-weight: 500;
}

.table-small td {
  background-color: var(--light-bg-100);
}

.table-small tbody tr:nth-child(even) td {
  background-color: white;
}

.table-small tbody tr:hover td {
  background-color: #dee5f1;
}

.table tfoot td {
  background-color: var(--light-btn-bg);
}

.ta-center {
  text-align: center;
}

.table-total {
  text-align: right;
  display: flex;
  justify-content: flex-end;
  margin-top: var(--theme-padding);
}

.table-total-value {
  padding: 10px 30px;
  border: 1px solid var(--dark-slate-blue);
  font-size: 16px;
  font-weight: 500;
}

.table-total-value .val {
  margin-left: var(--theme-padding);
  font-size: 20px;
}

/* END OF - PREVOZNICE I EVIDENCIJE RADA - FILTER FORME I TABELE */

/* MEHANIZACIJA INFO */

.container {
  max-width: 800px;
  max-width: 1170px;
  margin: 50px auto;
  padding: calc(var(--theme-padding-lg) * 2);
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.container-600px {
  max-width: 600px;
}
.container .filters-form {
  box-shadow: none;
  padding: 0;
}

.right-sidebar {
  width: 240px;
  /* margin-top: 20px; */
}

.right-sidebar ul {
  list-style: none;
}
.right-sidebar ul li {
  margin-bottom: 6px;
}
.right-sidebar ul li a {
  padding: 8px 10px;
  background-color: var(--light-btn-bg);
  background-color: white;
  border: 1px solid var(--blue-400-link);
  border-radius: 4px;
  color: var(--blue-500);
  display: block;
  font-size: 14px;
  transition: all .25s ease;
  /* border-bottom: 1px solid var(--light-gray); */
}

.right-sidebar ul li a::before {
  content: "+";
  margin-right: 8px;
}

.right-sidebar ul li a:hover {
  background-color: var(--blue-400);
  color: var(--white);
}

.photo {
  max-width: 100%; /* Adjust the width as needed */
  height: auto;
  display: block;
  margin-top: 10px;
  margin-bottom: 10px;
}
.info-section {
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 5px;
  padding: 20px;
  background-color: #fcfcfd;
}
.info-section label {
  display: inline-block;
  margin-right: 10px;
}

.info-section h2 {
  font-size: 1.5em;
  margin-bottom: 10px;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.field {
  margin-bottom: 10px;
  border-bottom: 1px solid #ddd;
}
.field:last-child {
  border-bottom: none;
}
.field strong {
  font-weight: bold;
  margin-right: 5px;
}
.field a {
  display: inline-block;
  margin-top: 5px;
  color: #007bff;
  text-decoration: none;
  font-weight: bold;
}
.field a:hover {
  text-decoration: underline;
}

/* END OF MEHANIZACIJA INFO */

.pagination {
  text-align: center;
  margin-top: 20px;
}
.pagination a {
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  text-decoration: none;
  color: #333;
  border-radius: 3px;
}
.pagination a:hover {
  background-color: #f0f0f0;
}
.pagination .current {
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px solid #333;
  background-color: #333;
  color: #fff;
  border-radius: 3px;
}
.pagination .disabled {
  margin: 0 5px;
  padding: 5px 10px;
  border: 1px solid #ddd;
  color: #ddd;
  border-radius: 3px;
}

.logout-container {
  text-align: right;
  margin-bottom: 20px;
}

.toggle-content {
  display: none;
  margin-top: 10px;
}

.toggle-content.active {
  display: block;
}

/* horizontal filter form */
.filter-form {
  display: flex;
}


/* BUTTONS */

.btn {
  background-color: var(--purple-400);
  box-sizing: border-box;
  padding: 8px 30px;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  box-shadow: rgba(0, 0, 0, 0.1) 0px 1px 3px 0px, rgba(0, 0, 0, 0.06) 0px 1px 2px 0px;
}

.btn:hover {
  background-color: var(--purple-500);
}

.btn-primary,
.btn-green,
.btn-red,
.link-button {
  display: inline-block;
  width: 265px;
  margin: 0 auto;
  padding: 8px 20px;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.3s;
  margin-top: 15px;
}

.btn-primary {
  background-color: var(--purple-400);
  display: block;
  text-align: center;
  margin-inline-start: auto; /* Push the button to the next line */  
}
.btn-primary:hover {
  background-color: var(--purple-500);
}
.btn-secondary {
  background-color: var(--green-400);
}
.btn-secondary:hover {
  background-color: var(--green-500);
}
.btn-red {
  background-color: #dc3545;
  display: none;
}
.btn-red:hover {
  background-color: #c82333;
}

.btn-green {
  /* background-color: #28a745; Green color */
  background-color: var(--green);
  background-color: #0CC665;
}
.btn-green:hover {
  /* background-color: #218838; Darker green color on hover */
  background-color: var(--green-200);
}
.btn-block {
  display: block;
  text-align: center;
}
.btn-outline {
  background-color: transparent;
  border: 1px solid var(--blue-500);
  box-shadow: none;
  text-align: center;
  color: var(--blue-500);
}
.btn-outline:hover {
  background-color: var(--blue-500);
  color: var(--white);
}
.btn-active:hover {
  background-color: var(--blue-400);
}
.btn {
  display: inline-block;
  text-align: center;
}
.btn-sec {
  width: 94%;
  text-align: center;
}
.btn-margin {
  margin-top: 0px;
}
.btn-line {
  flex: 1;
}
.button-group {
  display: flex;
  flex-wrap: wrap; /* Allows buttons to wrap to the next line if needed */
  justify-content: space-between; /* Adjusts space between buttons */
  gap: 10px; /* Adds space between buttons */
}
.plain-link {
  color: var(--blue-link);
  font-weight: 500;
  margin-top: var(--theme-padding-lg);
  display: inline-block;
}
.plain-link:hover {
  color: var(--dark-slate-blue-200);
}


/* Nested Table Styling */
.nested-table {
    width: 100%;
    border-collapse: collapse;
    border-spacing: 10px; 
    font-family: Arial, sans-serif;
    font-size: 15px;
    margin-bottom: var(--theme-margin);
}

.nested-table th, .nested-table td {
    padding: 8px;
    text-align: left;
    border: 1px solid #ddd;
}

.nested-table tbody td {
    border: 1px solid #9BA7C0;
    font-size: 14px;
}

.nested-table tbody td:last-of-type {
  width: 150px;
}

.nested-table tbody {
    border: none;
    /* border: 1px solid blue; */
}

.nested-table tbody::after
{
  content: '';
  display: block;
  height: 10px;
  width: 100%;
  background-color: #f6f7fb;
}

/* Header Styling */
.nested-table thead th {
    background-color: var(--dark-slate-blue-50);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 14px;
    color: #fff;
}

.nested-table thead th.hours {
  font-weight: 500;
}

.nested-table thead tr .hours {
  color: white;
}

/* Alternating Background Colors for Readability */
.nested-table tbody:nth-of-type(odd) {
    background-color: var(--base-row);
}

.nested-table tbody:nth-of-type(even) {
    background-color: var(--accent-row);
    background-color: #E9EBF8;
}

/* Bold Font for Hours Column */
.nested-table .hours {
    font-weight: bold;
    color: #343542;
    text-align: right;
}
.highlight-table tbody tr:nth-of-type(even) {
  background-color: var(--white);
}

.highlight-table tbody tr:hover {
    background-color: #f9f9f9;
    transition: background-color 0.25s ease;
}

.table tbody .table-title-row {
  text-transform: uppercase;
  font-weight: 500;
  color: var(--blue-500);
  font-size: 15px;
  padding-top: 10px;
  height: 60px;
  background-color: var(--light-bg-50);
  border-bottom: 1px solid var(--blue-200);
}
.table tbody .table-title-row::before {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  transform: translate(-8px, -1px);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid #555; /* Arrow color */
  margin-right: 0.25rem; /* Spacing between the arrow and text */
  vertical-align: middle; /* Aligns the arrow with text */
}

/* Make smaller scroll bars */
/* WebKit Browsers */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f0f0f0;
}

::-webkit-scrollbar-thumb {
    background: #c6c6c6;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #BBB;
}

/* Hijerarhijski prikaz radnih naloga */
.project-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.project-card {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
  padding: 16px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  flex: 1 1 calc(33.333% - 16px); 
  max-width: calc(50% - 16px);
  /* align-self: flex-start; */
  max-height: 500px;
  overflow-y: auto;
}

.card-header {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: var(--theme-padding);
  border-bottom: 1px solid #eee;
  padding-bottom: 16px;
  text-transform: uppercase;
}

.card-header strong {
  color: var(--blue-500)
}

.card-content {
  margin-top: 12px;
}

.sub-item {
  margin-bottom: 16px;
  padding: 12px;
  border-radius: 6px;
  background-color: var(--accent-row); /* Add light background for separation */
  border: 1px solid #e0e0e0; /* Optional border for distinction */
}

.sub-item-header {
  margin-bottom: 10px;
  padding-bottom: 10px;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--light-gray);
}

.sub-item ul {
  margin-left: 16px;
  list-style-type: none;
  padding-left: 0;
}

.sub-item ul li {
  margin-bottom: 8px;
  font-size: 15px;
}

.sub-item ul li ul {
  margin-left: 16px;
  padding-left: 12px;
  border-left: 2px solid var(--blue-200); /* Optional vertical line for hierarchy */
}

.sub-item-values {
  /* border: 1px solid var(--gray); */
  white-space: nowrap;
}
.sub-item-values span {
  padding: 8px;
  font-weight: 500;
  font-size: 14px;
}
.sub-item-values span:first-of-type {
  background-color: var(--light-bg-200);
}
.sub-item-values span:last-of-type {
  background-color: var(--light-btn-bg);
  padding: 8px;
}

/* Nested list to show nivo, pozicije, etaze */
.nested-list {
  display: flex;
  flex-direction: column;
}

.nested-list > li {
  margin-bottom: var(--theme-padding);
  display: inline-block;
}

.nested-list > li ul {
  padding-left: var(--theme-padding);
}


/* INPUTS */


input,
select {
  /* width: 100%; */
  width: auto;
  padding: 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
  /* text-align: center; */
}
.form-row input, .form-row select {
  width: 100%;
}
input[type="checkbox"] {
  width: 20px;
  margin-right: 6px;
}
.table input {
  width: auto;
}
textarea {
  resize: vertical;
  height: 70px;
  width: 100%;
}

.section-title-container {
  margin-top: 2rem;
  margin-bottom: 1rem;
  text-align: center;
}
/* .section-title-container h1 {
  font-size: 2em;
  margin: 0;
} */
.title {
  font-size: 22px;
}

.section-title {
  margin-bottom: 30px;
}
.text-left {
  text-align: left;
}
.table td.align-right, .table th.align-right {
  text-align: right;
}
.table td.align-center, .table th.align-center {
  text-align: center;
}
.table td.bold, .table th.bold {
  font-weight: 600;
}
.table td.muted, .table th.muted {
  color: var(--gray);
}
.vertical-align {
  display: flex;
  align-items: center;
}
.hidden {
    display: none;
}
.table-wrapper .section-title-container {
  margin-bottom: 10px;
}
.section-title-container p {
  font-size: 1.2em;
  color: #777;
}

.page-title {
  background-color: var(--white);
  text-align: left;
  border-bottom: 1px solid var(--light-gray);
  width: 100%;
  padding: var(--theme-padding);
  padding-top: 0;
  padding-left: 0;
  font-size: 1.75rem;
  margin-bottom: var(--theme-margin);
  margin-left: calc(var(--theme-padding-lg) * -2);
  margin-right: calc(var(--theme-padding-lg) * -2);
  padding-left: calc(var(--theme-padding-lg) * 2); 
  padding-right: calc(var(--theme-padding-lg) * 2); 
  width: calc(100% + calc(var(--theme-padding-lg) * 4)); 
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 1.5rem;
}
.table-wrapper .table {
    margin-bottom: 0;
}

.table-buttons {
  display: flex;
  justify-content: flex-end;
  margin-bottom: var(--theme-padding-lg);
  gap: 8px;
}


.table-buttons.align-start {
  justify-content: flex-start;
}
.table-buttons.align-center {
  justify-content: center;
}
.table td.align-center, .table th.align-center {
  text-align: center;
}
.table td.align-center .btn-edits {
  margin-right: 0;
}

.title-small {
  color: var(--dark-gray);
  font-weight: 700;
  font-size: 20px;
}

.small-section {
  background-color: var(--white);
  margin-bottom: var(--theme-margin);
}

.small-section input, .small-section select {
  margin-bottom: var(--theme-padding);
}

ol {
  list-style-position: inside;   
}

.table-buttons a {
  padding: 8px 10px;
  background-color: var(--light-btn-bg);
  background-color: white;
  border: 1px solid var(--blue-400-link);
  /* border-bottom: 1px solid var(--light-gray); */
  border-radius: 4px;
  color: var(--blue-500);
  display: block;
  font-size: 16px;
  transition: all .25s ease-in-out;
}

.table-buttons a::before {
  content: "+";
  margin-right: 8px;
}

.table-buttons a:hover {
  background-color: var(--blue-500);
  color: var(--white);  
}

.table-buttons .btn-link-view {
  background-color: var(--blue-400-link);
  color: var(--white);
  padding-left: var(--theme-padding-lg);
  padding-right: var(--theme-padding-lg);
}
.table-buttons .btn-link-view:hover {
  background-color: var(--blue-600);
}

.table-buttons .btn-link-view::before {
  content: "";
}

.table-buttons .btn-secondary {
  background-color: var(--green-400);
  color: var(--white);
  border: none;
  padding: 8px 20px;
}
.table-buttons .btn-secondary:hover {
  background-color: var(--green-500);
}

.table-fixed-col tr td:last-of-type,
.table-fixed-col tr th:last-of-type {
  width: 55%;
}

.table-list-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.zaposleni-link {
  color: var(--blue-400-link);
  font-weight: 500;
}
.zaposleni-link:hover {
  color: var(--blue-link);
}

/* for icon buttons */
.table-buttons-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

/* CHECKINS */

.checkin-date-section {
  margin-top: 30px;
  background-color: #fff;
  padding: 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-bottom: 20px;
}

.checkin-date-section h2 {
  margin-top: 0;
}

.checkin-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

.checkin-table th,
.checkin-table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #ddd;
}
.checkin-table th.align-center,
.checkin-table td.align-center {
  text-align: center;
}
.checkin-table td.margin-auto a {
  margin: 0 auto;
}

.checkin-table th {
  background-color: var(--dark-slate-blue-50);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 14px;
  color: white;
}

.checkin-table tr:hover {
  background-color: #f2f2f2;
}

.employee-number {
  font-weight: bold;
  color: #333;
}

.name-info {
  font-weight: bold;
  color: #333;
  text-decoration: none;
}

.name-info:hover {
  text-decoration: underline;
}

.checkbox-container {
  margin-left: 15px;
}

.checkbox-container label {
  font-weight: normal;
}

.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
}

.checkbox-group label {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* One line filtering system on top of a page/table */
.filters {
    display: flex;
    gap: 10px;
    margin-bottom: 0;
    margin-bottom: 2rem;
    align-items: stretch;
    flex-wrap: wrap;
}

.filters-dropdown {
    position: relative;
    width: 180px; /* Adjust width as needed */

    min-width: 180px;
}

/* form input, form select {
  width: 100%;
}
.filters input, .filters select {
  width: auto;
  max-width: 100%;
} */

/* Button/Search Input Styling */
.dropdown-btn {
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 6px 8px;
    padding: 10px;
    background-color: #fff;
    height: 100%;
    /* min-width: 100px; */
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    transition: background-color .25s ease-in-out;
}
.dropdown-btn:hover {
    background-color: var(--blue-50);
}
.flatpickr-input {
  transition: all .25s ease-in-out;
}
.flatpickr-input:hover {
    background-color: var(--blue-50);
}

.dropdown-search {
    border: none;
    outline: none;
    background: transparent;
    font-size: 15px;
    width: 100%;
    cursor: pointer;
    padding: 0;
}

.dropdown-search:focus {
    cursor: text;
}
/* Dropdown Content Styling */
.filters .dropdown-content {
    position: absolute;
    top: calc(100% - 4px); /* Aligns dropdown just below the button with a 20px offset */
    left: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    max-height: 300px; /* Limit dropdown height */
    overflow-y: auto;
    padding: 0.5rem;
    display: none; /* Hidden by default */
    grid-auto-rows: min-content; /* Automatically size rows based on content */
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Adjust dynamically */
    gap: 0.5rem;
    z-index: 1000;
    width: max-content; /* Dynamically size based on content */
    min-width: 100%; /* Ensure it doesn't get smaller than the button */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); /* Optional: add shadow */
}

/* Visible Dropdown */
.filters-dropdown.open .dropdown-content {
    display: flex;
}

/* Checkbox Labels Styling */
.dropdown-content .dropdown-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    font-size: 15px;
    margin: 0;
}

/* Hover Effect for Labels */
.dropdown-content .dropdown-label:hover {
    background-color: var(--blue-50);
}

/* Checkbox Styling */
.dropdown-content input {
    margin-right: 8px;
    height: 18px;
    width: 18px;
}

/* Make dropdown content more responsive */
@media (max-width: 768px) {
    .dropdown-content .dropdown-label {
        width: 100%; /* 1 item per row on tablets (fallback for grid layout) */
    }
}

@media (max-width: 480px) {
    .dropdown-content .dropdown-label {
        width: 100%; /* 1 item per row on mobile */
    }
}


.toggle-btn {
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;

    background-color: var(--blue-200);
    color: black;
    font-weight: 500;
    font-family: "Open sans", sans-serif;
    font-size: 15px;
    transition: all .25s ease-in-out;
}
.toggle-btn:hover {
    background-color: var(--blue-400);
    color: var(--white);
}
.btn-submit {
    background-color: var(--blue-500);
    color: white;
    padding: 6px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-family: "Open sans", sans-serif;
    font-size: 15px;
    cursor: pointer;
}

.btn-form-submit {
    background-color: var(--blue-500);
    color: white;
    padding: 10px 30px;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    font-family: "Open sans", sans-serif;
    font-size: 15px;
    cursor: pointer;
}

.btn-form-submit:hover {
    background-color: var(--blue-600);
}

.container-full {
  max-width: none;
}


.date-filters-wrapper {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
}

.date-wrapper {
  position: relative;
}
.date-wrapper input {
    padding-right: 2.5rem; /* Space for the icon */
    font-size: 15px;
    height: 37px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    height: 100%;
    max-width: 150px;
    width: 100%;
}

.date-wrapper i.fa-calendar {
    position: absolute;
    bottom: 14px;
    right: 0.75rem; /* Adjust spacing */
    /* transform: translateY(-50%); */
    font-size: 1.2rem;
    color: #666;
    pointer-events: none; /* Allows clicking through the icon */
}




/* SORTING */

.sort-dropdown {
  position: relative;
  display: inline-block;
}

.sort-dropdown-content {
  display: none;
  position: absolute;
  right: 0;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 1;
}

.sort-dropdown-content a {
  color: black;
  padding: 6px 10px;
  text-decoration: none;
  display: block;
}

.sort-dropdown-content a:hover {
  background-color: #f1f1f1;
}

.sort-dropdown:hover .sort-dropdown-content {
  display: block;
}

.sort-dropdown:hover .dropbtn {
  background-color: var(--green);
}

.dropbtn {
  background-color: var(--green);
  color: white;
  padding: 10px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.sort-table-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.header {
  display: flex;
  position: fixed;
  height: 60px;
  align-items: center;
  justify-content: space-between;
  padding: 10px 1rem;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--dark-slate-blue-200);
  z-index: 1001;
  box-sizing: border-box; /* Include padding in the width calculation */
}

.header a {
  display: flex;
}

.header .logo {
  flex-shrink: 0;
}

.header .logo img {
  flex-shrink: 0;
  /* height: 40px; */
}

.nav-toggle-container {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1; /* Ensure it stays above other elements */
}

.nav-toggle-btn {
  background-color: #d4d6ed;
  color: var(--home);
  border: 1px solid var(--home);
  border: none;
  padding: 7px 11px;
  border-radius: 12px;
  cursor: pointer;
}

.hamburger {
  display: block;
  transition: transform 0.3s ease-in-out;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  z-index: 1002;
  position: fixed;
  right: 20px;
  top: 8px;
  color: white;
  box-sizing: border-box;
}

.close-btn {
  position: absolute;
  top: 15px;
  right: 15px;
  font-size: 24px;
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  z-index: 12001;
}

.close-btn:hover {
  color: #ddd;
}

.icon-link {
  display: inline-block;
  margin-right: 20px; /* Adjust the value as needed */
  padding: 5px; /* Adjust the padding as needed */
  text-align: center;
  flex-grow: 0;
}

.icon-link:last-child {
  margin-right: 0;
}

/* MAIN HEADER ON THE RIGHT */

/* Main Header */
.main-header {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 60px;
  background-color: white; /* Light background color */
  padding: 0 20px;
  box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow */
  position: fixed;
  top: 0;
  left: 260px;
  width: calc(100% - 260px);
  z-index: 99;
}

/* Left: Dropdown Menu */
.dropdown-menu {
  position: relative;
}

.menu-link {
  color: #444;
  font-size: 20px;
  text-decoration: none;
}

.dropdown-content {
  display: none;
  position: absolute;
  top: 40px;
  transform: translateY(5px);
  right: -20px;
  background-color: var(--light-btn-bg);
  box-shadow: 0px 2px 8px rgba(0, 0, 0, 0.1);
  box-shadow: rgba(0, 0, 0, 0.15) 0px 20px 25px -5px,
    rgba(0, 0, 0, 0.07) 0px 10px 10px -5px;
  min-width: 200px;
  z-index: 1299;
}

.dropdown-content::before {
  content: "";
  position: absolute;
  /* background-color: var(--snuff-gray); */
  top: -10px; /* Position it above the dropdown content */
  right: 20px; /* Adjust the position depending on where you want the triangle */
  border-left: 10px solid transparent; /* Left side of the triangle */
  border-right: 10px solid transparent; /* Right side of the triangle */
  border-bottom: 10px solid var(--snuff-gray); /* The actual triangle color */
}

.dropdown-content a {
  padding: 10px;
  display: block;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--light-gray);
}

.dropdown-content a:hover {
  background-color: #e9ecef; /* Hover effect */
}

/* Visible when 'active' class is added */
.dropdown-menu.active .dropdown-content {
  display: block;
}

.user-info {
  position: relative;
  display: inline-block;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 1.5rem;
}

.dropdown-menu-logout {
  display: none; /* Hidden by default */
  position: absolute;
  top: 100%;
  right: 0;
  background-color: #fff;
  border: 1px solid #ccc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  padding: 10px;
  border-radius: 5px;
  z-index: 10;

  top: 30px;
  transform: translateY(5px);
  right: 10px;
  background-color: var(--light-btn-bg);
}

.dropdown-menu-logout a {
  color: #333;
  text-decoration: none;
  display: block;
  font-size: 14px;
  white-space: nowrap;
  font-weight: 500;
}

.logout-link i {
  margin-left: 8px;
}

.dropdown-menu-logout a:hover {
  color: #007bff;
}


/* Right: User Info */

.user-info #user-icon {
  font-size: 30px;
  color: #444;
  text-align: center;
  cursor: pointer;
}

.user-name {
  font-size: 14px;
  color: #444;
}


.centered-text {
  text-align: center !important;
}

/* Card container hidden by default */
.card-container {
  display: none;
}

/* Card styling */
.card {
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: var(--theme-padding-lg);
  margin: 8px 0;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  background-color: #fff;
}

/* Card item styling */
.card-item {
  display: flex;
  justify-content: space-between;
  margin: 8px 0;
}
.card-item span {
  font-weight: normal;
}
.icon-container {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  border-bottom: none;
}
/* Card label styling */
.card-label {
  font-weight: bold;
  color: #333;
}


.table-cards-container {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 3.5rem;
}
.table-card {
  width: calc(50% - 2.5rem);
  width: 100%;
  background-color: var(--white);
  background-color: var(--accent-row);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
.table-card .title {
  text-align: left;
  background-color: var(--blue-100);
  background-color: #e7eddd;
  padding: var(--theme-padding) var(--theme-padding-lg);
  font-size: 1.25rem;
  font-weight: 600;
  border: 1px solid var(--blue-200);
  border: 1px solid #cbd1bf;
  color: var(--dark-slate-blue);
  color: #626953;
  margin-bottom: var(--theme-padding-lg);
}
.table-card .title i {
  color: var(--dark-slate-blue-50);
  color: #878b7f;
  margin-right: 10px;
  font-size: 20px;
}
.card-desc-wrapper {
  display: flex;  
  flex-direction: column;
  width: 280px;
  min-width: 280px;
  margin-bottom: 1rem;
  align-items: flex-start;
  justify-content: flex-start;
  align-self: flex-start;
}
.card-desc-wrapper p {
  padding: 8px var(--theme-padding);
  text-align: left;
  border: 1px solid var(--light-bg-200);
  width: 100%;
}
.table-card .sub-title {
  text-align: left;
  background-color: var(--light-bg-100);
  background-color: var(--blue-400);
  color: var(--white);
  padding: 8px var(--theme-padding);
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
  margin-bottom: 0;
  width: 100%;
  border: 1px solid var(--light-bg-200);
}
.table-card .card-content {
  padding: 2rem;
  padding-top: .5rem;
  display: flex;
  flex-direction: column;
  gap: var(--theme-margin);
}
.card-content .table-wrapper {
  width: 100%;
}
.tables-row {
  display: flex;
  gap: var(--theme-margin);
  width: 100%;

}

.btn-transparent {
  background-color: transparent;
  color: var(--dark-slate-blue-50);
  border: 1px solid var(--home);
  /* padding: 7px 12px; */
  /* padding: 7px; */
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: all .2s ease-in-out;
}

.btn-transparent:hover {
  background-color: var(--dark-slate-blue-50);
  color: #fff;
  border-color: var(--dark-slate-blue-50);
  text-decoration: none;
}

.table td:last-of-type {
  min-width: 110px;
}



.btn-edits {
  border: 1px solid var(--gray);
  width: 33px;
  height: 33px;
  padding-top: 4px;
  border-radius: 3px;
  color: var(--orange);
  font-size: 15px;
  min-width: 33px;
  display: inline-block;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-right: 10px;
}

.btn-edits:hover {
  color: var(--orange-200);
}



.btn-container {
  position: relative; /* Ensure relative positioning for absolute elements */
  display: inline-block; /* Keep the container size stable */
  width: 32px; /* Default button size */
  height: 32px;
}

.btn-extend {
  background-color: transparent;
  /* color: var(--dark-slate-blue-50); */
  /* border: 1px solid var(--orange-200); */
  width: 32px;
  height: 32px;
  min-width: 32px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden; /* Hide the text initially */
  position: relative;
  transition: all 0.3s ease-in-out;
  white-space: nowrap;
}

.btn-extend i {
  margin-right: 0; /* Icon stays in place initially */
  position: absolute;
  left: 8px;
  transition: margin-right 0.3s ease-in-out;
}

.btn-extend .btn-text {
  display: inline-block;
  opacity: 0; /* Hide text initially */
  margin-left: 8px; /* Add spacing between icon and text */
  transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
  transform: translateX(-10px); /* Shift text offscreen */
  pointer-events: none; /* Disable interactions initially */
  position: absolute;
  right: -30px;
  color: white;
}

.btn-extend:hover {
  width: 90px; /* Adjust width for text reveal */
  background-color: var(--orange-200); /* Change background on hover */
}

.btn-extend:hover .btn-text {
  opacity: 1; /* Make text visible */
  transform: translateX(0); /* Reset text position */
  pointer-events: auto; /* Enable interactions */
  right: 10px;
}

.btn-extend:hover i {
  margin-right: 4px; /* Add spacing for the expanded text */
}

.btn-delete {
  border: 1px solid #f15a55;
  color: #f15a55;
}

.btn-delete:hover {
  background-color: #f15a55;
  color: var(--white);
  border: 1px solid #f15a55;
}

.btn-view {
  color: var(--blue-400);
  border-color: var(--blue-400);
}
.btn-view:hover {
  background-color: var(--blue-400);  
  border-color: var(--blue-400);
  color: var(--white);
}
.btn-edit {
  color: var(--orange-200);
  border: 1px solid var(--orange-200);
}
.btn-edit:hover {
  background-color: var(--orange-200);  
  border-color: var(--orange-200);
  color: var(--white);
}


/* usually primary color button inside table */
.table-btn {
    background-color: var(--blue-500);
    border-radius: 4px;
    outline: none;
    border: none;
    cursor: pointer;
    color: white;
    padding: 6px 12px;
    transition: background-color .25s ease-in-out;
}
.table-btn:hover {
    background-color: var(--blue-600);
}


.icon-clock {
  color: var(--gray);
  font-size: 16px;
}

.paragraf {
  text-align: center;
}

.paragraf-left {
  text-align: left;
}
.necekirani-radnici {
  padding: 12px;
}
/* Ensuring the button changes from + to - and vice versa */
.nav-toggle-btn i.fa-plus {
  display: inline;
}

.nav-toggle-btn i.fa-minus {
  display: none;
}

.nav-toggle-btn.active i.fa-plus {
  display: none;
}

.nav-toggle-btn.active i.fa-minus {
  display: inline;
}

.btn-vrsta-odrzavanja {
  background-color: #f0f0f0;
  border: 1px solid #ccc;
  padding: 10px;
  cursor: pointer;
  margin: 5px;
}

.btn-vrsta-odrzavanja.selected {
  background-color: #007bff;
  color: #fff;
}

.select_machine {
  margin-bottom: 10px;
}
.text-success {
  color: green;
  font-size: 18px;
  text-align: center;
}

.text-danger {
  color: red;
  font-size: 18px;
  text-align: center;
}

/* -------------
Sidebar
----------------*/
.sidebar {
  position: fixed;
  width: 260px;
  max-width: 260px;
  height: 100%;
  top: 0;
  left: 0;
  overflow: hidden;
  transform: translateZ(0);
  visibility: visible;
  backface-visibility: hidden;
  background-color: #414358;
  scrollbar-width: thin;
  transition: all .3s ease-in-out;
}
.sidebar::-webkit-scrollbar {
    width: 6px; /* Adjust width for vertical scrollbar */
}
.sidebar header {
  width: 100%;
  display: block;
}

.sidebar-nav {
  position: fixed;
  /* background-color: #e3e2e2; */
  height: 100%;
  width: 100%;
  font-weight: 400;
  font-size: 1.2em;
  padding-right: 0;
  padding-bottom: 6em;
  z-index: 9;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* For Firefox */
}
.sidebar-nav::-webkit-scrollbar {
  display: none; /* For Chrome, Safari */
}
.sidebar-nav ul {
  list-style: none;
  /* display: block; */
  margin: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
}
.sidebar-nav ul li {
  margin-left: 0;
  padding-left: 0;
  display: inline-block;
  width: 100%;
  /* -------------
  Sidebar: icons
  ----------------*/
}
.sidebar-nav ul li hr {
  border: none; /* Removes default border */
  border-top: 1px solid #d8d8d8; /* Adds custom color and thickness */
}
.sidebar-nav ul li a {
  /* color: #667183; */
  color: #dee5f1;
  font-size: .925rem;
  font-weight: 500;
  padding: 1.05rem 0.5rem;
  position: relative;
  display: block;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  white-space: nowrap;
}
.sidebar-nav ul li a:hover {
  background-color: var(--dark-slate-blue-200);
  -webkit-transition: all 0.6s ease;
  -moz-transition: all 0.6s ease;
  transition: all 0.6s ease;
}
.sidebar-nav ul li i {
  font-size: 1.25rem;
  margin-right: 0.5rem;
  width: 32px;
  height: 32px;
  min-width: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  color: #dee5f1;
  text-align: center;
  opacity: 0.7;
}
.sidebar-nav > ul > li > a.dropdown-toggle:after {
  font-family: "FontAwesome";
  content: "\f105";
  font-size: 0.875em;
  width: 10px;
  color: #dee5f1;
  position: absolute;
  right: 1.25em;
  top: 33%;
}
.sidebar-nav .nav-flyout {
  overflow: hidden; /* Ensure content stays within bounds */
  max-height: 0; /* Start collapsed */
  opacity: 0; /* Invisible when closed */
  transform: translateY(-10px); /* Subtle upward position */
  padding: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
}

.sidebar-header {
  /* height: 40px; */
  padding: 0;
  padding-right: 10px;
  display: flex;
  align-items: center;
  width: 100%;
  margin-bottom: 1rem;
  justify-content: flex-end;
  position: relative;
}
.toggle-sidebar {
  border: none;
  width: 30px;
  height: 30px;
  margin-right: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  /* padding: 8px; */
  cursor: pointer;
  align-self: flex-end;
  background-color: var(--dark-slate-blue-20);
  color: var(--black);
  transition: all 0.3s ease-in-out;
}
.toggle-sidebar:hover {
  background-color: var(--blue-300);
}
.sidebar.close {
  /* width: 60px; */
  max-width: 60px;
  overflow: hidden;
}
.sidebar.close .logo img {
  max-width: 40px;
  opacity: 0;
}
.main-content.expanded {
  margin-left: 60px; /* Adjusted margin to match the sidebar's small width */
  width: calc(100% - 60px);
}
.main-header.expanded {
  left: 60px; /* Matches the minimized sidebar width */
  width: calc(100% - 60px);
}
.sidebar.close .sidebar-nav ul li a {
  padding-left: 0;
}
.sidebar.close .sidebar-nav ul li a i {
  width: 60px;
  min-width: 60px;
}
.sidebar.close .sidebar-nav > ul > li > a.dropdown-toggle:after {
  right: -15px;
}

/* Expanded flyout styles */
.sidebar-nav .nav-flyout.expanded {
  opacity: 1; /* Fully visible */
  transform: translateY(0); /* Reset position */
  max-height: 500px; /* Large enough to fit content; adjust if needed */
  border-top: 1px solid var(--dark-slate-blue-50);
}

/* Sidebar scrollbar stabilization */
.sidebar-nav {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}


.sidebar-nav .nav-flyout li a {
  padding-left: 1.5rem;
}

.sidebar-nav .nav-flyout a:hover {
  background-color: var(--dark-slate-blue-200);
}
/* .sidebar-nav ul > li:hover .nav-flyout { */
.nav-flyout.visible {
  /* -webkit-transform: translateX(0);
  -moz-transform: translateX(0);
  -ms-transform: translateX(0);
  -o-transform: translateX(0);
  transform: translateX(0);
  -webkit-transition: all 0.5s ease;
  -moz-transition: all 0.5s ease;
  transition: all 0.5s ease; */

  height: auto; /* Expand to fit content */
}
/* Sidebar Logo */
.sidebar .logo {
  /* padding: 20px; */
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--dark-slate-blue-200);
  max-width: 100%;
  margin-bottom: 20px;
}

.sidebar .logo img {
  max-width: 55%;
  height: auto;
  opacity: 1;
}

/* Sidebar Menu Item Styling */
.sidebar-menu ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

hr {
  display: block;
  height: 1px;
  border: 0;
  border-top: 1px solid #9b9898;
  padding: 0;
}

/* General Styling for the Nav Bar */
.nav-bar {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: var(--theme-margin);
}

.navigation {
  width: 100%;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Styling for Each navigation Item */
.navigation li {
  position: relative;
  background-color: #e1e0e0;
  border-radius: 8px;
  flex: 1;
  height: 120px;
  overflow: hidden;
  box-shadow: rgba(0, 0, 0, 0.09) 0px 3px 12px;
  transition: all 0.25s ease-in-out;
}

.navigation li:hover {
  box-shadow: 0px 18px 15px -10px rgba(0, 0, 0, 0.2);
}
.navigation a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--home); /* Square color */
  color: #4c5562;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 20px;
  /* width: 180px; */
  height: 100%;
  /* border-radius: 8px; */
  background-color: white;
  position: relative;
}

.navigation a:hover {
  height: 120px; /* Adjust to control growth on hover */
  /* background-color: #032242; Optional hover background color change */
}

.navigation a:hover::after {
  opacity: 1;
  transform: translateY(-5px);
}

.navigation a::after {
  font-family: "FontAwesome";
  content: "\f078";
  font-size: 0.875em;
  width: 10px;
  color: #667183;
  position: absolute;
  left: calc(50% - 7px);
  /* transform: translateX(-5px); */
  bottom: 0;
  transform: translateY(-30px);
  opacity: 0;
  transition: all 0.25s ease-in-out;
}

/* Styling the Icon */
.navigation i {
  font-size: 32px; /* Adjust icon size as needed */
  margin-bottom: 16px;
  transition: transform 0.25s ease-in-out;
}

.navigation a:hover i {
  transform: translateY(-5px); /* Lift icon on hover */
}


.homepage-nav-ul li:nth-child(1) a i {
  background-color: #2c7be5;
}
.navigation li:first-child a i {
  color: #2c7be5;
}

.homepage-nav-ul li:nth-child(2) a i {
  background-color: #fdbf5a;
}

.navigation li:nth-child(2) a i {
  color: #fdbf5a;
}

.homepage-nav-ul li:nth-child(3) a i {
  background-color: #20d88b;
}
.navigation li:nth-child(3) a i {
  color: #20d88b;
}

.homepage-nav-ul li:nth-child(4) a i {
  background-color: #6675ff;
}
.navigation li:nth-child(4) a i {
  color: #6675ff;
}

.homepage-nav-ul li:nth-child(5) a i {
  background-color: #ff6b6b;
}
.navigation li:nth-child(5) a i {
  color: #ff6b6b;
}

.homepage-nav-ul li:nth-child(6) a i {
  background-color: #ffa726;
}
.navigation li:nth-child(6) a i {
  color: #ffa726;
}

/* Styling the Title */
.nav-title {
  font-size: 16px;
  flex-wrap: nowrap;
  color: #4c5562;
  font-weight: 500;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.navigation a:hover .nav-title {
  opacity: 1;
  transform: translateY(0);
}
.homepage {
  margin-top: 100px;
}

.homepage .nav-bar {
  display: flex;
}

.homepage h1 {
  margin-bottom: 2.5rem;
}

.homepage-nav {
  display: flex;
  justify-content: center;
}

.homepage .homepage-nav-ul {
  max-width: 960px;
  width: 100%;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  gap: 1.5rem;
  align-items: flex-start;
  justify-content: flex-start;
}

.homepage .homepage-nav-ul li {
  width: calc(100% / 3 - 1rem);
  position: relative;
  background-color: #e1e0e0;
  border-radius: 8px;
  /* flex: 1; */
  height: 140px;
  overflow: hidden;
  box-shadow: 0px 18px 12px -10px rgba(0, 0, 0, 0.1);
  transition: all 0.25s ease-in-out;
}

.homepage .homepage-nav-ul li:hover {
  box-shadow: rgba(17, 17, 26, 0.15) 0px 4px 16px, rgba(17, 17, 26, 0.1) 0px 8px 32px;
}

.homepage .homepage-nav-ul li a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: #4c5562;
  text-decoration: none;
  transition: all 0.3s ease;
  overflow: hidden;
  padding: 20px;
  padding-right: 2.5rem;
  height: 100%;
  background-color: white;
  position: relative;
}

.homepage .homepage-nav-ul li a::after {
  font-family: "FontAwesome";
  content: "\f105";
  color: black;
  font-size: 0.875em;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.homepage .homepage-nav-ul li a i {
  margin-right: 1rem;
  font-size: 1.5rem;
  color: white;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  padding-top: 14px;
  text-align: center;
  border-radius: 50%;
  box-shadow: 0px 3px 6px rgba(0, 0, 0, 0.15);
}

.homepage .homepage-nav-ul li .nav-title {
  font-size: 1.125rem;
  color: black;
  margin-bottom: 6px;
}

.homepage .homepage-nav-ul li .nav-subtext {
  font-size: 0.875rem;
  color: var(--gray);
  display: inline-block;
  line-height: 1.5;
}

.grid-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 20px; /* Space between the cards */
  max-width: 1200px;
  margin: 0 auto;
}

.content-left {
  width: calc(100% - 200px);
}

.content-left .container {
  max-width: 100%;
  margin: 0;
  box-shadow: none;
}

.custom-card {
  padding: 40px;
  color: #f0f0f0;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.custom-card:hover {
  transform: translateY(-5px);
  box-shadow: 0px 6px 10px rgba(0, 0, 0, 0.15);
}

.custom-card a {
  text-decoration: none;
  color: inherit;
}

.custom-card i {
  font-size: 40px;
  margin-bottom: 20px;
}

.custom-card .card-title {
  font-size: 24px;
  font-weight: bold;
}

.grid-layout a:nth-child(1) .custom-card {
  background: #1c2841;
}

.grid-layout a:nth-child(2) .custom-card {
  background: #1d2951;
}

.grid-layout a:nth-child(3) .custom-card {
  background: #003153;
}

.grid-layout a:nth-child(4) .custom-card {
  background: #002147;
}

.grid-layout a:nth-child(5) .custom-card {
  background: #001834;
}

.grid-layout a:nth-child(6) .custom-card {
  background: #1b1b1b;
}

.card-item-dnevni-raspored {
  display: flex;
  justify-content: space-between;
  padding: 5px;
  font-size: 15px;
  border-bottom: 0.5px solid #b7b7b7;
}
.card-item-dnevni-raspored:last-child {
  border-bottom: none;
}
.card-label-dnevni-raspored {
  flex: 1;
  margin-right: 10px;
}

.card-item-dnevni-raspored ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card-item-dnevni-raspored ul li {
  margin-bottom: 5px;
}

.card-item-dnevni-raspored span {
  padding: 0;
  font-size: 15px;
  margin-left: 0;
}

.card-label-header {
  font-weight: bold !important;
}

.card-date {
  text-align: center;
  margin-bottom: 10px;
}

.card-date-label {
  font-size: 1em; /* Adjust as needed */
  font-weight: bold;
}
.filters-form label {
  font-weight: 500;
}

.toggle-button {
  background-color: var(--blue-600);
  margin-top: 0;
}
.toggle-button:hover {
  background-color: var(--blue-700);
}
.middle-section {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  margin-bottom: 15px;
}
.toggle-buttons {
  width: 25%; /* 25% of the form's width */
  padding-right: 20px;
  border-right: 2px solid #ccc;
  overflow-y: auto;
}

.toggle-buttons button {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  font-size: 13px !important;
}

.toggle-sections {
  width: 75%; /* 75% of the form's width */
  padding-left: 20px;
  padding-right: 10px; /* Add padding to avoid content behind scrollbar */
  overflow-y: auto; /* Make this section scrollable */
  margin-top: 10px;
}

.toggle-section {
  display: none;
  margin-bottom: 20px;
}

.form-row.fixed-buttons {
  margin-top: auto; /* Push the buttons to the bottom */
  padding-top: 10px;
  background-color: #f9f9f9; /* Optional: background for buttons section */
  position: sticky;
  bottom: 0;
  z-index: 1;
  padding-bottom: 10px; /* Optional: padding for buttons */
}

/* Dodavanje radnog naloga */
.form-container {
  max-width: 600px;
  margin: 0 auto;
  padding: 2rem 0;
}

/* General form styles */
#radniNalogForm {
  width: 100%;
  margin: 0 auto;
  padding: 25px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: var(--light-bg-50);
}

#radniNalogForm .btn {
  padding: 6px 20px;
  font-size: 14px;
}

/* .btn {
    padding: 8px 15px;
    margin: 10px 0;
    background-color: #2c7be5;
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
}

label {
  display: block;
  font-weight: bold;
  margin-top: 12px;
  font-size: 14px;
} */

/* Input fields */
/* input[type="text"],
input[type="number"],
input[type="date"] {
  width: 100%;
  padding: 10px;
  margin-top: 5px;
  border: 1px solid #ccc;
  border-radius: 4px;
} */

/* Etaza Section (Floor) */
.etaz-section {
  padding: 20px;
  border-radius: 6px;
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid #c0d7f7; /* Blue border for Etaza */
  background-color: #f1f9fe; /* Light blue background */
}

/* Pozicija Section (Position) */
.pozicija-section {
  padding: 20px;
  border-radius: 6px;
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid #a6efd1; /* Green border for Pozicija */
  background-color: #f3fcf9; /* Light green background */
  margin-left: 20px; /* Indent Pozicija */
}

/* Vrsta Radova Section (Work Type) */
.vrsta-radova-section {
  padding: 20px;
  border-radius: 6px;
  margin-top: 15px;
  margin-bottom: 20px;
  border: 1px solid #feecce; /* Yellow border for Vrsta Radova */
  background-color: #fffefc; /* Light yellow background */
  margin-left: 40px; /* Indent Vrsta Radova further */
}

.btn-submit {
  width: 100%;
  padding: 10px;
  background-color: #1aad6f;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  font-size: 15px;
  margin-top: 20px;
  transition: background-color .3s ease;
}

.btn-submit:hover {
  background-color: #169761;
}

/* Additional styling for cleaner form layout */
.etaza, .vrsta-radova, .pozicija {
  margin-bottom: 15px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  form {
    padding: 15px;
  }

  .etaz-section, .vrsta-radova-section, .pozicija-section {
    padding: 15px;
    margin-top: 10px;
    margin-bottom: 15px;
  }

  button[type="button"],
  button[type="submit"] {
    /* padding: 10px; */
  }
}



/* Mobile Styles */
@media (max-width: 768px) {
  .App {
    margin-top: 60px;
  }

  .table,
  .checkin-table-hidden {
    /* display: none; */
  }
  .container {
    padding: 1rem 10px;
    margin: 1.5rem auto;
  }
  .table thead th {
    font-size: 12px;
  }
  .table tbody td {
    font-size: 12px;
  }
  .toggle-btn {
    font-size: 13px;
  }
  .edit-btn {
    font-size: 13px;
  }

  .content-row {
    margin-bottom: 0;
  }
  .btn {
    font-size: 14px;
  }
  .homepage {
    margin-top: 0;
  }

  .homepage .navigation li {
    width: 100%;
    height: 100px;
    border-radius: 0;
  }
  h1 {
    font-size: 1.5rem;
  }

  .homepage h1 {
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;
  }
  .page-title {
    font-size: 1.375rem;
    text-align: center;
    padding-right: 0;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
  }
  .table-buttons a {
    width: 100%;
    font-size: 13px;
    text-align: center;
  }
  .grid-container {
    flex-direction: column;
    padding: 0;
    background-color: transparent;
    gap: var(--theme-padding);
  }

  .content-left {
    width: 100%;
    order: 2;
  }

  .content-left .container {
    padding: var(--theme-padding) 0;
    background-color: transparent;
  }
  .right-sidebar {
    margin-top: 0;
    order: 1;
    align-self: flex-end;
    align-self: center;
  }
  .sidebar-header {
    display: none;
  }
  .form-row {
    /* padding: var(--theme-padding) 0; */
    padding: 0;
    padding-bottom: var(--theme-padding);
  }
  .card-container {
    display: block;
    width: 100%;
  }
  .custom-card i {
    font-size: 30px;
  }
  .custom-card .card-title {
    font-size: 20px;
  }

  .custom-card {
    padding: 16px;
  }
  .card-item {
    border-bottom: 0.2px solid #c8c5c5;
  }
  .icon-container {
    border-bottom: none; /* Remove border from the last row */
    margin-top: 1rem;
  }
  .card-item span {
    display: block;
    margin: 5px 0;
    margin-left: 10px;
    font-size: 15px;
  }

  .card-label {
    display: block;
    margin-bottom: 5px;
  }

  .card-item .near-expiry {
    color: #ff0000;
    font-weight: bold;
    background-color: #fff;
  }
  .section-title-container {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 18px;
  }
  .title {
    font-size: 18px;
  }
  .pagination {
    margin-top: 15px;
  }

  .pagination a,
  .pagination .current,
  .pagination .disabled {
    margin: 0 3px;
    padding: 4px 8px;
    font-size: 13px;
  }

  input.flatpickr {
    padding: 10px;
  }
  .flatpickr-time {
    display: none;
  }
  .date-wrapper input {
    max-width: 100%;
  }

  .section-title-container p {
    font-size: 1rem;
  }

  .ture-po-vrsti-robe-table {
    margin-top: 20px;
  }
  /* Add border-radius to the table */
  .ture-po-vrsti-robe-table {
    border-collapse: separate; /* Ensure that border-radius works */
    border-spacing: 0; /* Remove default spacing */
    border-radius: 8px; /* Adjust the radius as needed */
    overflow: hidden; /* Hide overflow to ensure rounded corners */
    border: 1px solid #dee2e6; /* Optional: add a border to the table */
  }

  /* Style the table header */
  .ture-po-vrsti-robe-table thead th {
    text-align: left; /* Align text to the left */
  }

  /* Style the table body */
  .ture-po-vrsti-robe-table tbody td {
    border-top: 1px solid #dee2e6; /* Border between rows */
  }

  /* Optional: Style the last row */
  .ture-po-vrsti-robe-table tbody tr:last-child td {
    border-bottom: none; /* Remove border from the last row */
  }

  /* Optional: Add box shadow to make it stand out */
  .ture-po-vrsti-robe-table {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Adjust shadow as needed */
  }

  .date-card {
    padding: 4px 16px;
    background-color: var(--home);
  }

  .card-value,
  .date-card .card-label {
    color: #fff;
  }

  .date-card .card-item {
    border-bottom: none;
  }
  .header {
    display: flex;
    border-bottom: 1px solid var(--dark-slate-blue-50);
  }


 .main-header {
    padding: 0 10px;
    left: unset;
    right: 50px;
    background-color: transparent;
    border-bottom: none;
  }

  .main-header .menu-link {
    color: var(--light-bg-100);
  }

  .main-header .menu-link i {
    font-size: 18px;
    color: var(--light-gray);
  }

  .user-info #user-icon {
    color: var(--light-gray);
  }

  .user-name {
    display: none; /* Hide user name on small screens */
  }

  .dropdown-content {
    min-width: 200px;
    /* left: unset; */
    /* right: 0; */
    top: 40px;
  }

  .dropdown-content::before {
    top: -9px;
  }

  .homepage .homepage-nav-ul {
    display: block;
    width: 100%;
    gap: 5px;
  }

  .homepage .homepage-nav-ul li {
    width: 100%;
    height: 90px;
    box-shadow: none;
    border-radius: 0;
  }
  .homepage .homepage-nav-ul li:hover {
    box-shadow: none;
  }
  .homepage .homepage-nav-ul li:hover a {
    background-color: var(--light-blue);
  }

  .homepage .homepage-nav-ul li a {
    display: flex;
    align-items: center;
    padding: 10px;
    width: 100%;
    box-shadow: none;
    flex-direction: row;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  .homepage .homepage-nav-ul li a i {
    margin-right: 15px;
    font-size: 1.125em;
    min-width: 36px;
    transition: none;
    margin-bottom: 0;
    height: 48px;
    width: 48px;
  }

  .homepage .homepage-nav-ul a:hover i {
    transform: none;
  }

  .homepage .nav-title {
    font-size: 1em;
    flex-grow: 1;
    opacity: 1;
    transform: none;
    font-weight: 500;
  }
  .homepage .homepage-nav-ul li .nav-title {
    font-size: 15px;
  }


  .nav-toggle-btn {
    display: block; 
    display: none;
  }

  .nav-toggle-btn.active i {
    content: "\f068"; 
  }

   .nav-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--full-bg);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
    z-index: 1000;
    height: 80px;
    padding: 0 5px;
    margin-bottom: 0;
    border-top-right-radius: 8px;
    border-top-left-radius: 8px;
    box-shadow: 1px -8px 22px -8px rgba(50, 50, 50, 0.64);
  }

  .navigation {
    display: flex;
    width: 100%;
    justify-content: space-around;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0;
    height: 100%;
  }

  .navigation li {
    flex: 1;
    height: 100%;
    background-color: transparent;
    text-align: center;
    border-radius: 0;
  }

  .navigation li:nth-of-type(2) {
    display: none;
  }

  .navigation a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--light-gray);
    font-size: 12px;
    text-decoration: none;
    background-color: transparent;
    padding: 0;
    border-radius: 0px;
  }

  .navigation li.active a {
    border-top: 3px solid var(--blue-400);
  }

  .navigation li.active a::before {
    color: var(--blue-50);
  }

  .nav-bar .navigation li a i {
    font-size: 20px;
    margin-bottom: 8px;
    margin-top: 2px;
    color: var(--light-gray);
    order: 1;
  }
  .nav-bar .navigation li.active a i {
    color: var(--blue-50);
  }

  .navigation a:hover {
    color: var(--blue);
    height: 100%;
  }

  .navigation a:hover i {
    transform: translateY(0); /* Lift icon on hover */
  }

  .navigation a::after {
    display: none;
  }

  .navigation .nav-title {
    font-size: 8px;
    color: var(--light-gray);
    display: none;
  }
  .navigation li a::before {
    content: attr(data-mobile-title);
    display: block;
    font-size: 10px;
    color: var(--light-gray);
    text-align: center;
    order: 2;
  }



  .sidebar {
    width: 100%;
    margin-top: 60px;
    transform: translateX(-100%);
    z-index: 999;
    transition: all 0.3s ease-in-out;
  }

  .sidebar.visible {
    display: block;
    transform: translateX(0);
  }

  .sidebar .logo {
    display: none;
  }

  .sidebar-nav .nav-flyout {
    max-height: 0;
    overflow: hidden;
    position: initial; /* Keep as-is for dropdown positioning */
    transform: none; /* No need for transforms on mobile dropdowns */
    transition: max-height 0.3s ease; /* Add smooth dropdown animation */
  }

  .sidebar-nav .nav-flyout.expanded {
    max-height: 500px; /* Large enough to fit content */
  }

  .sidebar-nav {
    padding-bottom: 1rem;
    width: 100%;
  }

  .sidebar-nav .nav-flyout li a {
    padding: 0.75rem 0.5rem;
    padding-left: 2rem;
  }

  .sidebar-nav > ul > li > a {
    padding-left: 1rem;
  }
  .sidebar-nav > ul > li > a:after {
    right: 1.5rem;
  }

  .form-row-column {
    flex-direction: column; /* Stack items vertically on smaller screens */
  }
  .form-group-column {
    min-width: 100%; /* Ensure items take full width on smaller screens */
    margin-bottom: 5px;
  }

  /* .navigation {
    width: 100%;
  }

  .navigation li {
    width: 100%;
  }

  .navigation a {
    display: flex;
    align-items: center;
    padding: 15px 20px; 
    width: 100%;
    box-shadow: none; 
    background-color: #f0f0f0;
    flex-direction: row;
  }

  .navigation i {
    margin-right: 15px; 
    font-size: 1.2em; 
    transition: none;
    margin-bottom: 0;
  }
  .navigation a:hover {
    height: auto; 
  }

  .navigation a:hover i {
    transform: none;
  }

  .nav-title {
    font-size: 1.125rem; 
    flex-grow: 1;
    opacity: 1;
    transform: none;
    font-weight: 500;
  } */

  .btn-primary,
  .btn-green,
  .btn-red,
  .link-button {
    /* max-width: 170px; */
  }
  .btn-primary.active {
    background-color: #3960a7;
  }
  .header {
    display: flex;
  }
  .hamburger {
    display: block;
  }
  /* .sidebar-menu.active {
    display: block;
    transform: translateX(0);
  }
  .sidebar-menu {
    width: 100%;
    margin-top: 60px;
  } */
  .logo img {
    max-width: 120px; /* Adjust max-width for mobile */
    max-height: 40px; /* Adjust max-height for mobile */
    margin-top: 8px;
  }
  .main-content {
    width: 100%;
    margin-left: 0;
    padding: 1rem 10px;
    padding-bottom: 5rem;
    overflow-x: auto;
  }
  .table {
    background-color: transparent;
  }
  .table tbody tr:nth-child(even) {
    background-color: var(--light-blue);
  }
  .icon {
    display: none; /* Hide icons on mobile */
  }

  .form-row {
    gap: 10px;
  }

  .checkin-table th,
  .checkin-table td,
  .paragraf,
  .nav-item span,
  .subtitle,
  input,
  select,
  .btn-primary,
  .btn-green,
  .btn-red,
  .link-button,
  .dropbtn,
  a,
  .submenu a,
  label,
  tr,
  input.flatpickr,
  .flatpickr-calendar,
  .info-section,
  .entry-name,
  .entry-value-1,
  .paragraf {
    font-size: 15px;
    font-weight: normal;
  }
  label {
    font-weight: 600;
  }

  table th,
  table td {
    padding: 7px 10px;
  }
  input.datepicker {
    width: 100%; /* Ensure the input field takes the full width on mobile */
    box-sizing: border-box; /* Ensure padding and border are included in the width */
  }
  input[type="date"],
  input[type="datetime-local"],
  input[type="time"],
  input[type="month"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    -ms-appearance: none;
    -o-appearance: none;
  }

  .nav-item {
    padding: 0;
    margin: 0;
    min-height: 40px; /* Adjust to your preferred height */
  }
  /* Hide table layout on small screens */
  .desktop-only {
    display: none;
  }

  /* Show card layout on small screens */
  .mobile-only {
    display: block;
  }
  .checkin-date-section-hidden {
    display: none;
  }

  .toggle-buttons {
    width: 40%; /* 35% of the form's width for mobile */
    padding-bottom: 10px; /* Space below toggle buttons */
    box-sizing: border-box; /* Ensure padding is included in width */
  }

  .toggle-sections {
    width: 60%; /* 65% of the form's width for mobile */
    overflow-y: auto; /* Make this section scrollable */
    margin-top: 0;
    box-sizing: border-box; /* Ensure padding is included in width */
  }

  .form-row.fixed-buttons {
    width: 100%; /* Full width for buttons on mobile */
    text-align: center; /* Center the buttons */
    position: static; /* Remove sticky positioning for mobile */
    margin-top: 10px;
    padding-bottom: 0;
  }
  .fixed-buttons .btn {
    flex: 1;
  }
  .buttons-wrapper {
    width: 100%;
    margin-top: 10px;
  }
  .buttons-wrapper .btn {
    flex: 1;
  }

  .filters-form-full .form-row {
    flex-direction: column;
    padding: 0;
    margin-bottom: 15px;
  }
  .filters-form-full .form-group {
    margin-bottom: 0;
  }
  .filters-form-full .fixed-buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    background-color: transparent;
  }
  .filters-form-full .fixed-buttons .btn-block {
    flex: 1;
  }
  .filters-form-wrapper {
    display: none; /* Initially hidden */
    transition: max-height 0.3s ease; /* For smooth animation */
    overflow: hidden;
  }
  .filters-form-wrapper.open {
    display: block; /* Show the form when toggled */
  }
  .filters-toggle-button {
      display: block; /* Visible only for mobile */
      margin: 1em auto;
      padding: 0.5em 1em;
      font-size: 1rem;
      cursor: pointer;
      background-color: var(--light-btn-bg);
      color: var(--dark-slate-blue-200);
      background-color: #fff;
      border-radius: 4px;
      width: 100%;
      border: none;
      outline: none;
      transition: background-color 0.3s;
      /* box-shadow: rgba(0, 0, 0, 0.2) 0px 1px 3px 0px, rgba(0, 0, 0, 0.016) 0px 1px 2px 0px; */
      border: 1px solid var(--blue-400);
  }

  .table-buttons {
    justify-content: center;
    align-items: center;
    flex-direction: column;
  }

  /* one line filters above the table */
  .filters {
    flex-direction: column;
    width: 100%;
  }
  .filters-dropdown {
    width: 100%;
  }

  .table-card {
    width: 100%;
  }
  .table-card .card-content {
    padding: 1rem;
  }
  .card-desc-wrapper {
    margin-top: 1rem;
  }



  .filters-form-small {
    background-color: var(--white);
  }
  .filters-form-small .row {
    width: 100%;
   flex-direction: column; 
  }
  .filters-form-small .row .btn-submit {
    margin-top: 5px;
  }
  .filters-form-small .row .btn {
    width: 100%;
  }

  .responsive-table {
    display: block;
    box-shadow: none;
  }
  .responsive-table thead {
      display: none; /* Hide table headers */
  }
  .responsive-table tbody {
    display: block;
  }

  .responsive-table tbody tr {
      display: block; /* Make rows behave like cards */
      margin-bottom: 1rem;
      border: 1px solid #ddd;
      border-radius: 5px;
      padding: 1rem;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
      background-color: #fff;
  }

  .responsive-table td {
      display: flex;
      justify-content: space-between;
      padding: 0.25rem;
      height: 42px;
      align-items: center;
      border: none;
      border-bottom: 1px solid var(--light-gray);
      text-align: left;
  }
  .responsive-table td:last-of-type {
    border-bottom: none;
  }

  .responsive-table td::before {
      content: attr(data-label); /* Use the data-label attribute as the label */
      font-weight: bold;
      text-transform: uppercase;
      margin-right: 1rem;
      color: #333;
      flex-shrink: 0;
  }

  .table-buttons.align-start {
    flex-direction: column;
  }
  .action-column .btn-active, .action-column .btn-disabled {
    margin: 5px 0;
    background-color: transparent;
    color: var(--blue-200);
    padding-right: 0;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
  }
  .action-column .btn-active::before, .action-column .btn-disabled::before {
    content: "+";
    margin-right: 5px;
    font-size: 18px;
    transform: translateY(2px);
  }
  .action-column .btn-disabled {
    color: #bbb;
  }

  .plain-link {
    font-size: 16px;
  }
  .project-cards {
    flex-direction: column;
  }
  .project-cards .project-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .btn-edits {
    margin-right: 0;
  }
  .table-card .sub-title {
    white-space: unset;
  }
  .table-card {
    background-color: var(--accent-row);
  }
  .tables-row {
    flex-direction: column;
    gap: var(--theme-padding);
  }
  .card-desc-wrapper {
    width: 100%;
  }
  .card-desc-wrapper p {
    background-color: var(--white);
  }
  .table-card .title {
    margin-bottom: 0;
    text-align: center;
    padding-right: 54px;
  }
}

@media (min-width: 769px) {
  .header {
    display: none;
  }

  .sidebar-menu {
    display: none; /* Hide sidebar on larger screens */
  }

  .logo img {
    max-width: 180px; /* Adjust max-width for tablets and up */
    max-height: 60px; /* Adjust max-height for tablets and up */
  }
}

@media (max-width: 480px) {
  .pagination {
    margin-top: 10px;
  }

  .pagination a,
  .pagination .current,
  .pagination .disabled {
    margin: 0 2px;
    padding: 3px 6px;
    font-size: 12px;
  }
}