html, body {
    margin: 0;
    padding: 0;
    height: 100%;
}
.login-body {
    display: block;
    max-height:100%;	
	height:100%;
    background: linear-gradient(135deg, #6366f1, #a855f7, #ec4899);
    font-family: Arial, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-box {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    min-height: 300px;
}

.table-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    transform: scale(1.1);
}

/* Title */
.login-title {
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.login-subtitle {
    font-size: 14px;
    color: #777;
}

/* Inputs */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    font-size: 14px;
    color: #555;
    display: block;
    margin-bottom: 5px;
}

.form-control {
    width: 100%;
    padding: 10px;
    border-radius: 8px;
    border: 1px solid #ccc;
    outline: none;
    transition: 0.2s;
}

.form-control:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

/* Errors */
.input-error {
    border-color: #f87171;
}

.error-text {
    color: #ef4444;
    font-size: 12px;
    margin-top: 4px;
}

/* Error box */
.login-error {
    background: #fee2e2;
    color: #b91c1c;
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
}

/* Button */
.btn-login {
    width: 100%;
    padding: 10px;
    background: #6366f1;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.btn-login:hover {
    background: #4f46e5;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
    color: #666;
}

.login-footer a {
    color: #6366f1;
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}
/* --- Main Header --- */
.main-header {
    height: 64px; /* înălțime header */
    background-color: #ffffff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 1000;
    font-family: Arial, sans-serif;
}

/* Logo */
.main-header .header-left img.logo {
    height: 64px;
    max-width: 200px;
    object-fit: contain;
}

/* Header right area (user info + lang + logout) */
.main-header .header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Username text */
.main-header .user-name {
    font-weight: 500;
    color: #333;
    font-size: 14px;
}

/* Language form */
.main-header .lang-form select {
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #ccc;
    background-color: #f5f5f5;
    font-size: 14px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.main-header .lang-form select:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 2px rgba(99,102,241,0.3);
}

/* Logout button */
.main-header .btn-logout {
    background-color: #ef4444; /* red-600 */
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s;
}

.main-header .btn-logout:hover {
    background-color: #dc2626; /* red-700 */
}

/* Sidebar fix */
.sidebar {
    position: fixed;
    top: 64px; /* sub header */
    left: 0;
    height: calc(100% - 64px);
    width: 16rem; /* 64 = 16*4px */
    background-color: #1f2937; /* bg-gray-900 */
    color: #fff;
    overflow-y: auto;
    transition: width 0.3s;
    z-index: 50;
}

.sidebar.collapsed {
    width: 4rem;
}

.sidebar-title {
    font-size: 1.25rem;
    font-weight: bold;
    padding: 1rem;
    border-bottom: 1px solid #374151; /* border-gray-700 */
}

.sidebar-content ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.menu-list li {
    margin-bottom: 0.25rem;
}

.menu-list a, .menu-list button {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.5rem 1rem;
    background: none;
    border: none;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border-radius: 0.375rem;
    transition: background 0.2s;
}

.menu-list a:hover, .menu-list button:hover {
    background-color: #374151; /* hover bg-gray-700 */
}

.submenu {
    display: none;
    margin-top: 0.25rem;
    padding-left: 1rem;
}
.show {
    display: block;
}

.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}
.hidden {
    display: none;
}

.submenu li a {
    font-size: 0.875rem;
    padding-left: 1rem;
}

/* Toggle Button */
.toggle-btn {
    position: absolute;
    top: 1.25rem;
    right: -1.25rem;
    background-color: #2563eb; /* bg-blue-600 */
    color: #fff;
    border: none;
    padding: 0.5rem;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
    transition: background 0.2s;
}

.toggle-btn:hover {
    background-color: #1d4ed8; /* hover bg-blue-700 */
}
.sidebar-content ul.submenu{padding-left:30px;}
/* Sidebar scroll hide, dar scrollabil */
.hidescroll {
    overflow: auto;           /* rămâne scrollabil */
}

/* Ascunde scroll-ul pentru Webkit (Chrome, Edge, Safari) */
.hidescroll::-webkit-scrollbar {
    width: 0px;
    height: 0px;
}

/* Optional: Firefox */
.hidescroll {
    scrollbar-width: none;   /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
}
#sidebar i{
    width: 1.25rem;
    text-align: center;
    margin-right: 0.75rem;
}


/* Sidebar deschis */
#sidebar.open {
    transform: translateX(0);
}
/* Sidebar */
#sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: 250px;
    height: 100%;
    background: #1f2937; /* gri închis */
    color: white;
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(-250px); /* implicit închis */
    z-index: 1000;
}

/* Buton toggle */
#toggleBtn {
    position: fixed;
    top: 100px;
    left: 10px;
    width: 40px;
    height: 40px;
    background: #3b82f6; /* albastru */
    border: none;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000; /* peste sidebar */
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* Icon din buton */
#toggleBtn i {
    font-size: 18px;
}

/* Sidebar deschis */
#sidebar.open {
    transform: translateX(0);
}

/* Content principal */
.content {
    margin-left: 0; /* implicit full width */
    transition: margin-left 0.3s ease;
}

/* Content restrâns când sidebar e deschis */
.content.content-shifted {
    margin-left: 250px;
}

/* Submenu (hidden implicit) */
.submenu {
    padding-left: 20px;
}

/* Rotire icon */
.rotate-180 {
    transform: rotate(180deg);
    transition: transform 0.3s;
}
.page-title {
    font-size: 1.5rem;   
    font-weight: bold;
    margin-bottom: 1.5rem;
    margin-top: 1.5rem;	
    color: #111;          
	text-align:center;
}

.form-control-sm,
.form-select-sm {
    height: 36px; 
    padding: 4px 8px; 
    font-size: 0.875rem;
}

.input-group .col-auto {
    margin-bottom: 6px;
}

.input-group label {
    font-size: 0.8rem; 
    margin-bottom: 2px;
    display: block;
}
.input-group {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
}

.input-group .col-auto {
    flex: 1 1 auto; 
    max-width: 220px;
	min-width:100px;
}
ul.ui-autocomplete {
  list-style: none; /* Elimină marcatorul din lista sugestiilor */
  padding: 0;
  margin: 0;
  position: absolute; /* Setează poziția absolută pentru lista sugestiilor */
  z-index: 999; /* Asigură că sugestiile sunt în partea de sus a altor elemente */
  background-color: #fff; /* Culorea de fundal a sugestiilor */
  border: 1px solid #ccc; /* Stilul bordurii pentru sugestii */
  border-radius: 4px; /* Rotunjirea colțurilor */
  max-height: 300px; /* Înălțimea maximă a listei de sugestii (pentru a evita scroll bar) */
  overflow-y: auto; /* Adaugă scrollbar dacă lista devine prea lungă */
}

ul.ui-autocomplete li {
  padding: 8px 10px; /* Spațierea dintre fiecare sugestie */
  text-align:left;
  font-weight:bold;
  font-size:15px;
  cursor: pointer; /* Cursorul devine o mână când utilizatorul trece peste o sugestie */
}
.ui-helper-hidden-accessible { display:none; }
ul.ui-autocomplete li:hover {
  background-color: #f0f0f0; /* Schimbă culoarea de fundal la trecerea cu mouse-ul peste sugestie */
}
.pagination{
			  align-items: center;
  justify-content: center;margin-top:20px;
		}
p.totalcount{
    text-align: center;
}
.totalcount {
    display: flex;
    justify-content: center; /* centru */
    align-items: center;
    gap: 0.75rem;           /* spațiu între butoane și text */
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    background-color: #f8f9fa; /* gri deschis */
    border-radius: 0.5rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    flex-wrap: wrap; /* pe mobil trece pe linie nouă dacă e nevoie */
}

.totalcount .count-text {
    margin: 0 0.5rem;
    white-space: nowrap;
}

.scroll-button {
    background-color: #0d6efd; /* albastru Bootstrap */
    color: #fff;
    border: none;
    padding: 0.3rem 0.6rem;
    border-radius: 0.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    transition: background-color 0.2s, transform 0.1s;
}

.scroll-button:hover {
    background-color: #084298; /* albastru închis la hover */
    transform: translateY(-1px);
}

.scroll-button i {
    font-size: 0.85rem; /* iconul să fie proporțional */
}
.table-container {
  overflow-x: auto;   
  white-space: nowrap;
  width: 100%;
}
.table-container > * {
  display: inline-block; 
}
.actionsinline {
  display: flex;           /* toate elementele inline */
  flex-wrap: nowrap;       /* nu trece pe rândul următor */
  gap: 5px;                /* spațiu între butoane */
  align-items: center;     /* aliniere verticală centrală */
}

.actionsinline a,
.actionsinline button,
.actionsinline input[type="submit"] {
  margin: 0 !important;    /* eliminăm marginile care rup rândul */
}

.inline-button-form {
  display: inline-flex;    /* form-ul devine inline cu celelalte butoane */
  margin: 0;
  padding: 0;
  align-items: center;
}
.d-inline button{color:#fff;margin-right:3px;}
/* --- CONTAINER SCROLL --- */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* --- TABLE --- */
.table-container table {
  min-width: 900px; /* IMPORTANT pentru scroll */
  margin-bottom: 0;
}

/* --- HEADER STICKY --- */
.table-container thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  font-size: 12px;
  white-space: wrap;
  text-align:center;
}
.table-container thead.head-green th{
	background:#198754;
	color:#fff;
}
/* --- CELULE --- */
.table-container th,
.table-container td {
  white-space: nowrap;
  vertical-align: middle;
  padding: 6px 8px;
  font-size: 13px;
}

/* --- CHECKBOX HEADER --- */
.table-container th input[type="checkbox"] {
  display: block;
  margin: 0 auto 5px auto;
  transform: scale(0.9);
}

.zui-sticky-col {
  position: sticky;
  left: 0;
  width: 50px;          /* IMPORTANT */
  min-width: 50px;
  max-width: 50px;
  background: #fff;
  z-index: 4;
}

th.zui-sticky-col,
td.zui-sticky-col {
  width: 50px;
}

th.zui-sticky-col2,
td.zui-sticky-col2 {
  width: 150px;
}
.zui-sticky-col2 {
  position: sticky;
  left: 50px;           /* EXACT cât prima coloană */
  width: 150px;         /* cât vrei tu */
  min-width: 150px;
  background: #fff;
  z-index: 4;
   box-shadow: 2px 0 5px rgba(0,0,0,0.05);
}
.share-link{font-weight:normal;}

/* --- HOVER --- */
.table-hover tbody tr:hover {
  background-color: #f1f3f5;
}

/* --- SCROLLBAR --- */
.table-container::-webkit-scrollbar {
  height: 6px;
}

.table-container::-webkit-scrollbar-thumb {
  background: #adb5bd;
  border-radius: 10px;
}
.updated, .updated textarea, .updated select, .updated input{background: #FFEFAF !important;}
.textarea-blocked{
	pointer-events: none;
    background-color: #f2f2f2;
cursor: not-allowed !important;	
}
#resetButton{background:red;}
form.inline-button{margin:0!important;}
/* --- Responsive --- */
@media (max-width: 768px) {
.zui-sticky-col, .zui-sticky-col2{position:static;}
.linear {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start; 
    gap: 5px;
    overflow-x: auto;
    padding: 5px 10px;
}

.linear button {
    white-space: nowrap;
}

.linear::-webkit-scrollbar {
    height: 4px;
}

.linear::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 2px;
}

    .card-body.d-flex {
        flex-direction: column;
    }

    .card-body.d-flex > div[style*="width: 25%"] {
        width: 100% !important;
        margin-top: 20px; 
    }

    .card-body.d-flex .row.g-3 > div {
        flex: 1 1 100%; 
    }
.login-body{margin-top:50px;}
	    .totalcount {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
    .scroll-button {
        padding: 0.25rem 0.5rem;
        font-size: 0.8rem;
    }
    .main-header {
        flex-direction: column;
        height: auto;
        padding: 10px;
    }
    .main-header .header-right {
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 10px;
        margin-top: 5px;
    }
    .main-header .header-left img.logo {
        max-width: 150px;
        height: 40px;
    }
}