html, body {
	margin: 0;
	padding: 0;
	height: 100%;
}
body {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	font-family: Arial, sans-serif;
}
.top-bar {
	height: 60px;
	background-color: #2d4051;
	color: white;
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 0 10px;
	position: fixed;
	top: 0;
	width: 100%;
	z-index: 1000;
}

.top-bar img.logo {
	height: 40px;
}

.top-bar .user-icon {
	color: white;
	font-size: 20px;
	margin-left: 15px;
	cursor: pointer;
}

.user-icon:hover {
	color: #9ac7ff; 
 }

.top-bar .logoff-icon {
	color: white;
	font-size: 20px;
	margin-left: 15px;
	cursor: pointer;
}

.logoff-icon:hover {
	color: #dc3545; /*red on hoover*/
}

.top-bar .flag-icon {
	font-size: 22px;
	margin-left: 15px;
	cursor: pointer;
}

.actionbar {
	background-color: white;
	color: white;
	display: flex;
	padding: 0.5rem 1rem;
	position: fixed;
	top: 60px;
	width: 100%;
	z-index: 999;
}

.fixed-header-spacer {
	height: 80px;
	flex-shrink: 0;
	background-color: white;
}
#ui-sections, ui-sections-bottom {  /* do NOT flex this */
/*	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 0 10px; */
}



/* Make dynamic-area the expanding content region */
#dynamic-area {
  flex: 1 0 auto;     /* <-- THIS makes the footer stick to bottom */
  display: flex;
  flex-direction: column;
}

/* Make the main content wrapper a column flex container so sections stack */
#content-area {
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
}

/* Section defaults (no !important unless you must override external CSS) */
#quickaccess,
#filter-area,
#pageselect-area,
#pageselect-area-bottom,
#mainTable,
#dynamic-area {
  width: 100%;
  padding-left: 0;
  padding-right: 0;
  margin-left: 0;
  margin-right: 0;
  /* Remove flex sizing here to avoid row placement issues */
  /* flex: 1 0 auto;  <-- remove */
}

/* Temporary debug borders (remove when done) */
/*#quickaccess,
#filter-area,
#pageselect-area,
#pageselect-area-bottom,
#mainTable,
#dynamic-area {
  border: 2px solid blue;  /* proper border */
}*/

.quickaccess {
	background-color: #e6f0fa; /* lighter blue background */
	color: #0b1739; /* dark blue text */
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap; /* allows wrapping if needed */
	font-size: 0.85rem;
	padding-top: 4px;
	padding-bottom: 4px;

}

#quickaccess ._mapopenbox,
#quickaccess .quicktxt,
#quickaccess span {
	margin-right: 6px;
	height: 18px;
}



#quickaccess .container-fluid {
	gap: 8px; /* Reduce spacing between flex items */
}

/* Compact and aligned filter area */
#filter-area {
	max-width: 100%;
	padding: 2px 5px;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	text-align: left;
	font-size: 0.85rem;
}

/* Compact filter controls */
#filter-area .form-control,
#filter-area .form-select,
#filter-area .raplicobutton,
#filter-area .btn,
#filter-area .button {
	font-size: 0.8rem;
	padding: 0px !important;
	margin-bottom: 0 !important;
	text-align: left;
}

/* Label styling */
#filter-area label {
	display: inline-block !important;
	color: black !important;
	font-size: 12px !important;
	font-family: Arial, sans-serif !important;
/*	min-width: 80px; */
	white-space: nowrap;
	z-index: 1001;
	position: relative;
	background-color: white;
	opacity: 1 !important;
	margin-bottom: 2px;
}

#filter-area .col-auto {
	padding-top: 0px !important;
	padding-bottom: 0px !important;
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	flex: 0 0 auto;
	min-width: 100px; /* or more, depending on your layout */
	line-height: 1.2;
}

#pageselect-area .page-selector,
#pageselect-area-bottom .page-selector {
	display: flex;
	justify-content: center;
	align-items: center;
	width: 100%;
}
/*
#pageselect-area { border: 2px dashed purple }
#filter-area { border: 2px dashed purple }
#quickaccess { border: 2px dashed green }
*/

#pageselect-area-bottom {
	margin-bottom: 20px; /* or more, like 30px or 40px */
}

._mapopenbox {
	display: flex;
	align-items: center;
	gap: 5px;
	color: #0b1739; /* ensure text is visible */
}

._mapopenbox i,
._mapopenbox .quicktxt,
._mapopenbox span {
	display: inline-flex;
	align-items: center;
	color: #0b1739;
}


/* Container: reuse your existing notification-area */
#notification-area {
    position: fixed;       /* float */
    top: 1rem;
    right: 1rem;
    z-index: 1000;         /* above .actionbar */
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0;            /* container itself has no background */
    margin: 0;
    color: black;          /* default text color */
}

/* Individual toast item */
.toast-item {
    display: none;         /* start hidden for slideDown animation */
    min-width: 280px;
    max-width: 480px;
    padding: 10px 14px;
    border-radius: 6px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.15);
    color: #111;
    background: #ffc;      /* default (warning-like) */
    font-size: 14px;
    line-height: 1.4;
}

/* Severity colors */
.toast-item.info    { background: #e7f1ff; color: #0b3d91; } /* blue-ish */
.toast-item.success { background: #e8f7ee; color: #155f31; } /* green-ish */
.toast-item.warning { background: #fff6d6; color: #7a5b00; } /* yellow-ish */
.toast-item.error   { background: #fde7e7; color: #7a1717; } /* red-ish */

/* Title + close button row */
.toast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.toast-title {
    font-weight: 600;
    margin-right: 6px;
}

.toast-close {
    background: transparent;
    border: none;
    color: inherit;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}

/* Optional field highlight */
.input-error {
    outline: 2px solid #e23f3f;
}


.footer-bar {
	background-color: #2d4051;
	color: white;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-shrink: 0;
	padding: 0 15px;
}

.footer-bar img {
	height: 30px;
	object-fit: contain;
}

.bottomtext {
	font-size: 12px;
}

/* button section */

.btn-primary{
	border:0;
}

.modal-error .btn-primary {
	background-color: #721c24; /* Dark red button */
	border-color: #721c24;
}

.modal-error .btn-primary:hover {
	background-color: #501217; /* Darker red on hover */
	border-color: #501217;
}

.modal-error .modal-header {
	background-color: #dc3545; /* Bootstrap danger red */
	color: white;
}

label {
	font-size: 0.8rem;
	color: #333;
	margin-bottom: 2px;
	display: block;
}


.smallbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 4px 10px;
  height: auto;

  font-size: 12px;
  line-height: 1.2;

  border-radius: 5px;
  margin-right: 10px;

  cursor: pointer;
  color: #fff;
  background-color: #9ac7ff;
}

.smallbutton:hover {
  background-color: #0056b3;
}

/* Search Field */
#searchForm .form-control {
	height: 22px; /* Match button height */
	padding-top: 2px;
	padding-bottom: 2px;
	font-size: 12px;
	margin-top: 0;
	margin-bottom: 0;
	align-self: center;
}

#searchForm .smallbutton {
	height: 22px; /* Match input height */
	padding-top: 2px;
	padding-bottom: 2px;
	font-size: 12px;
	align-self: center;
}

#searchField {
	height: 22px; /* Adjust height to fit within the top-bar */
	width: 100px; /* default */
	margin-right: 5px; /* Ensure equal spacing between buttons */
	transition: width 0.3s ease-in-out;
}

#searchField:focus {
	width: 200px; /* Extend the width when focused */
}

/* End of Search */

/* Specific adjustments for the search button */

#searchButton {
	border-radius: 5px; /* Make the search button have rounded corners */
	margin-right: 10px; /* Ensure equal spacing between buttons */
}

.raplicobutton
{
	border: 0;
	padding: 5px 20px;
	background: #72ade6 !important;
	color: #fff;
	text-transform: uppercase;
	border-radius: 3px;
	font-size: 10px !important;
	display: inline-block;
	transition: .5s;
}

.raplicobutton:hover
{
	background: #9ac7ff;
}
/* end of button */

.topmenu-item {
	margin-right: 10px; /* Ensure equal spacing between buttons */
}

#topmenu-area .topmenu-item {
	margin-left: 15px; /* Ensure equal spacing between buttons */
	text-decoration: none;
}

#topmenu-area .topmenu-item:last-child {
	margin-right: 10px; /* Ensure equal spacing between buttons */
}

button {
	margin: 5px;
	padding: 6px 12px;
	font-size: 14px;
	cursor: pointer;
	border: none;
	border-radius: 4px;
	background-color: #007bff;
	color: white;
}
button:hover {
	background-color: #0056b3;
}

.menu-area {
	display: flex;
	align-items: center;
	margin-left: auto; /* This pushes the menu to the right */
}

.actionbar .menu-area {
	display: flex;
	margin-left: auto;
}

.menu-area .menu-item-area {
	color: white;
	margin-left: 20px;
	text-decoration: none;
	font-size: 12px;
}

/* everything around the spinner */
#spinner {
	display: none;
	width: 40px;
	height: 40px;
	position: relative;
	margin: 0 auto;
}
.spinner {
	margin: 20px auto;
	width: 40px;
	height: 40px;
	border: 4px solid rgba(0, 0, 0, 0.1);
	border-top: 4px solid #2d4051;
	border-radius: 50%;
	animation: spin 1s linear infinite;
	display: none; /* Hidden by default */
}

@keyframes spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* Progress Bar */
.progress-bar {
	display: none;
	width: 33.33%;
	background-color: #f3f3f3;
	border-radius: 5px;
	overflow: hidden;
	margin: 20px auto;
}

.progress-bar-fill {
	height: 20px;
	width: 0;
	background-color: #8fbc8f;
	transition: width 0.25s ease-in-out;
}

/* pre text for design */
.blog-container {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.blog-content {
  flex: 1;
  padding: 1rem;
}

.blog-text {
  font-size: 1rem;
  line-height: 1.5;
}

/* === UNIFIED FORM CONTROL HEIGHT @ 20px === */
:root {
  --field-height: 20px;      /* target visual height */
  --field-font-size: 0.75rem;/* matches your current compact text */
  --field-vpad: 1px;         /* top/bottom padding inside the control */
  --field-hpad: 4px;         /* left/right padding */
}

/* Inputs, selects (BS5 uses .form-select), and textareas */
input.form-control,
textarea.form-control,
select.form-select,
.form-control,
.form-select {
  height: var(--field-height) !important;
  min-height: var(--field-height) !important;
  font-size: var(--field-font-size) !important;
  line-height: calc(var(--field-height) - (var(--field-vpad) * 2) - 2px) !important; /* 2px ≈ border total */
  padding: var(--field-vpad) var(--field-hpad) !important;
  box-sizing: border-box;
}

/* 1‑line textareas should look like inputs */
textarea.form-control[rows="1"] {
  height: var(--field-height) !important;
  max-height: var(--field-height) !important;
  overflow-y: hidden;
  resize: vertical; /* keep if you want manual expand; 'none' to lock */
}

/* readonly variant: same height, subtle background */
.readonly-field {
  height: var(--field-height) !important;
  min-height: var(--field-height) !important;
  background-color: #f0f0f0 !important;
  border-color: #dcdcdc !important;
  color: #6c757d !important;
  opacity: 1 !important;
}

/* Input groups (date, etc.) */
.input-group > .form-control,
.input-group > .form-select,
.input-group-text {
  height: var(--field-height) !important;
  min-height: var(--field-height) !important;
  font-size: var(--field-font-size) !important;
  padding: var(--field-vpad) var(--field-hpad) !important;
  line-height: calc(var(--field-height) - (var(--field-vpad) * 2) - 2px) !important;
}

/* === Consistent vertical rhythm for form rows === */
.form-wrapper .row.form-group {
  margin-top: 0;              /* no extra top push on first row */
  margin-bottom: 10px;        /* unified gap between rows */
}

/* If you prefer slightly tighter or wider spacing, tweak this single token */
:root { --row-gap: 10px; }
.form-wrapper .row.form-group { margin-bottom: var(--row-gap); }

/* Neutralize nested .row used only as a spacer inside columns */
.form-wrapper .col-1,
.form-wrapper .col-2,
.form-wrapper .col-3,
.form-wrapper .col-4,
.form-wrapper .col-5,
.form-wrapper .col-6,
.form-wrapper .col-7,
.form-wrapper .col-8,
.form-wrapper .col-9,
.form-wrapper .col-10,
.form-wrapper .col-11,
.form-wrapper .col-12,
.form-wrapper [class^="col-"] > .row {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}

/* Optional: if you keep <p class="c_custom_html"> as placeholder, collapse it */
.form-wrapper p.c_custom_html {
  margin: 0 !important;
  height: 0 !important;
  line-height: 0 !important;
  padding: 0 !important;
}

/* Add breathing room before the action buttons */
.button-area {
  margin-top: 16px;           /* space between last row and buttons */
  padding-top: 4px;           /* subtle separation */
}

/* If you like a visual separator above the buttons, uncomment:
.button-area {
  border-top: 1px solid #e9ecef;
}
*/

/* Ensure invalid-feedback doesn't add surprise extra spacing */
.form-wrapper .invalid-feedback {
  margin-top: 2px;            /* tight, consistent */
}

/* end of pre text for design */

