:root {
	--main-color: #1b1c1c;
}

* {
	box-sizing: border-box;
}

html {
	font-size: 16px;
	overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Main content wrapper styling */
.main-content-wrapper {
	transition: margin-left 0.3s ease;
	padding: 20px;
	min-height: 100vh;
	box-sizing: border-box;
}

/* Fix for cashbook by date tables - remove Bootstrap padding from nested rows/cols */
#cashbook_entries_container .row,
#cashbook_entries .row {
	margin-left: 0;
	margin-right: 0;
}

#cashbook_entries_container .col-12,
#cashbook_entries_container .col-4,
#cashbook_entries_container .col-md-4,
#cashbook_entries .col-12,
#cashbook_entries .col-4,
#cashbook_entries .col-md-4 {
	padding-left: 0;
	padding-right: 0;
}

/* Ensure tables use full width */
#cashbook_entries_container table,
#cashbook_entries table {
	width: 100% !important;
	max-width: 100% !important;
	box-sizing: border-box;
}

/* Make Jour column bold in 4-column tables */
#cashbook_entries_container table td:nth-child(4) {
	font-weight: bold !important;
}

/* Make all values bold in Jour table (small screens) */
#cashbook_entries_container .d-lg-none .col-md-4:nth-child(3) table td:nth-child(2) {
	font-weight: bold !important;
}

@media screen and (max-width: 768px) {
	html {
		font-size: 13px;
	}
}

body {
	font-size: 1em;
}

ul {
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 2em;
}

#header {
	width: 100%;
	height: 60px;
	line-height: 60px;
	font-size: 1.5em;
	font-weight: 900;
	background-color: #000;
	margin: 0;
	color: white;
	margin-bottom: 24px;
}

#ttc,
#difference {
	font-weight: 600;
}

#ttc.red,
#difference.red {
	color: red;
}

#ttc.green,
#difference.green {
	color: green;
}

.form-horizontal .form-group {
	width: 100%;
	margin: auto;
}

.time select {
	width: auto;
	display: inline-block;
}

.groupField {
	margin-bottom: 12px;
}

.note {
	min-height: 250px;
}

/* Form error styling - visible inputs */
.form-error-message {
	color: red;
	font-style: italic;
	font-size: 0.875em;
	margin-top: 5px;
	margin-bottom: 10px;
	display: block;
}

/* Form error container - for global/hidden input errors */
.form-errors-container {
	color: red;
	background-color: #f2dede;
	border: 1px solid #ebccd1;
	padding: 15px;
	margin-bottom: 20px;
	border-radius: 4px;
}

.form-errors-container ul {
	margin: 0;
	padding-left: 20px;
}

.form-errors-container li {
	margin-bottom: 5px;
	font-style: italic;
}

/*
 * PAGE GENERALS
 */

.separator {
	height: 1px;
	background-color: #000;
	margin-top: 8px;
	margin-bottom: 12Px;
}

.page-buttons a.btn {
	margin-bottom: 12px;
	min-height: 48px;
	line-height: 48px;
}
/*
 * EMPLOYEES
 */

ul.listEmployee li {
	list-style-type: none;
	font-size: 1.2em;
	padding: 20px;
}

.listEmployee a {
	margin: 8px;
}

/*
 * TIMEKEEPING - RAPPORT EMPLOYES
 */

.page-break	{ display: none; break-before: always;}

/*
 * Modal styling - Full screen with centered dialog and blur backdrop
 * Higher specificity to override Bootstrap defaults
 */

/* Modal container - full screen with flex centering */
body .modal {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	z-index: 1055 !important;
	display: none !important; /* Hidden by default */
}

/* When modal is shown, display as flex to center the dialog and make it visible */
body .modal.show,
body .modal.fade.show {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	opacity: 1 !important; /* Ensure fully visible */
}

/* Bootstrap modal backdrop - full screen with opacity 0.5 and blur */
body .modal-backdrop {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background-color: rgba(0, 0, 0, 0.5) !important;
	backdrop-filter: blur(5px) !important;
	-webkit-backdrop-filter: blur(5px) !important;
	z-index: 1050 !important;
}

body .modal.fade .modal-dialog {
	transition: none !important;
}

/* Modal dialog - centered */
body .modal-dialog,
body .modal-dialog-centered {
	margin: 0 auto !important;
	max-width: 500px !important;
	width: 90% !important;
	position: relative !important;
	z-index: 1060 !important;
}

body .modal-content {
	background: white !important;
	padding: 20px !important;
	border-radius: 8px !important;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2) !important;
	z-index: 1060 !important;
}

body .modal-header {
	padding: 15px 20px !important;
	border-bottom: 1px solid #dee2e6 !important;
	border-top-left-radius: 8px !important;
	border-top-right-radius: 8px !important;
}

body .modal-body {
	padding: 20px !important;
	font-family: 'Raleway', sans-serif !important;
	font-size: 1.1rem !important;
	text-align: center !important;
	color: #333 !important;
}

body .modal-footer {
	padding: 15px 20px !important;
	border-top: 1px solid #dee2e6 !important;
	border-bottom-left-radius: 8px !important;
	border-bottom-right-radius: 8px !important;
	text-align: center !important;
}

body .modal-footer .btn {
	margin: 0 10px !important;
	min-width: 100px !important;
}
.table, table {
	page-break-inside: auto;
	font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
	font-weight: 200;
	table-layout: fixed;
	width: 100%;
	max-width: 100%;
}

.interline {
	height: 15px;
}

tr {
	page-break-inside: avoid;
}

td, th
{
  text-align: center;
  vertical-align: middle !important;
  border: 1px solid black;
  font-size: 0.8em;
}

.bt
{
  border-top: 2px solid black !important;
}

.bb
{
  border-bottom: 2px solid black !important;
}
.bl
{
  border-left: 2px solid black !important;
}
.br
{
  border-right: 2px solid black !important;
}

td.simple {
	font-size: 0.5em;
}

tr.line3,
tr.line4
{
  margin-bottom: 15px;
}

th.inactive,
td.inactive
{ 
  border-left: 0px solid #FFF !important;
  border-right: 0px solid #FFF !important;
  background-color: #ccc;
}

th.rotate
{
   min-width: 50px;
}

th span 
{
  -ms-writing-mode: tb-rl;
  -webkit-writing-mode: vertical-rl;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}

th.grayed,
td.grayed
{
	background-color: #ddd;
	border-left: 1px solid black;
	border-left: 1px solid black;
	font-style: italic;
	opacity: 0.5;
}

