html,
body {
	height: 100%;
	width: 100%;
}

/* -------------------------------
   HOME DASHBOARD
--------------------------------*/

.home-section {
	margin-bottom: 1.5rem;
}

.home-section .card-header {
	background: #fff;
	border-bottom: 1px solid #e9ecef;
}

.home-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
	gap: 1rem;
}

.home-tile {
	display: block;
	text-decoration: none;
	color: inherit;
	background: #fff;
	border: 1px solid #e9ecef;
	border-radius: 10px;
	padding: 16px;
	transition: all 0.15s ease;
	height: 100%;
}

.home-tile:hover {
	border-color: var(--bs-primary);
	box-shadow: 0 5px 12px rgba(0,0,0,.08);
	transform: translateY(-2px);
}

.home-tile-icon {
	width: 48px;
	height: 48px;
	object-fit: contain;
	margin-bottom: 10px;
}

.home-tile-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--bs-primary);
}

.home-content {
	padding: 12px;
}

.home-toolbar {
	position: sticky;
	top: 0;
	z-index: 5;
	background: #f8f9fa;
	padding-bottom: 8px;
}

.home-tile.is-hidden {
	display: none !important;
}

.home-section.is-empty {
	display: none !important;
}

.home-search-mode .tab-pane {
	display: block !important;
	opacity: 1 !important;
}

.home-search-mode .tab-pane:not(.search-has-results) {
	display: none !important;
}

.home-search-mode #main-menu-tab .nav-link {
	opacity: .6;
}

.home-recent-tile {
	background: #f8fafc;
	border-color: #e2e8f0;
}

.cursor-pointer {
	cursor: pointer;
}

.bg-light-gray {
	background-color: #d3d3d3;
}

.table-document-product {
	overflow-y: auto;
}

.table-document-product tbody {
	min-height: 100px;
	max-height: 230px;
	overflow-x: auto;
	width: calc(100% - 15px);
}

.table-document-product tbody tr {
	height: auto;
}

.dt-table-list {
	max-height: calc(100vh - 320px);
	overflow-y: auto;
	box-shadow: inset 0 -8px 8px -8px rgba(0,0,0,0.1);
}

.dt-table-list table thead th {
	position: sticky;
	top: 0;
	background: #fff;
	z-index: 2;
	border-bottom: 2px solid #dee2e6;
}

.sign-document-icon {
	height: 64px;
	width: 64px;
}

.img-48x48 {
	height: 56px;
	width: 52px;
}


.h-fit-content {
	height: fit-content;
}

.h-0 {
	height: 0px !important;
}

.w-15 {
	width: 15% !important;
}

.w-20 {
	width: 20% !important;
}

.w-40 {
	width: 40% !important;
}

.w-60 {
	width: 60% !important;
}

.w-80 {
	width: 80% !important;
}

.w-85 {
	width: 85% !important;
}

.table-registers-audits-documents {
	height: 350px;
	max-height: 350px;
	overflow-y: auto;
}

.tr-warning {
	box-shadow: 1px 1px 1px 1px red;
}

.sticky-subheader {
    position: sticky;
    top: 40px;
    z-index: 15;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.sticky-action-bar {
    position: sticky;
    bottom: 10px;
    z-index: 10;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.05);
    background-color: #fff;
}

/* Breadcrumb sizing */
.breadcrumb-lg {
    font-size: 1rem; /* slightly larger than Bootstrap’s .small */
    font-weight: 500;
}

.breadcrumb-lg .breadcrumb-item + .breadcrumb-item::before {
    color: #6c757d;
    font-weight: 400;
}

.breadcrumb-lg .breadcrumb-item a {
    color: #495057;
    text-decoration: none;
}

.breadcrumb-lg .breadcrumb-item a:hover {
    text-decoration: underline;
    color: var(--bs-primary);
}


.payments-table {
    max-height: 350px;
    overflow-y: auto;
    overflow-x: auto;
}

.payments-table thead th {
    position: sticky;
    top: 0;
    background: #a7b8d1; /* match table-primary */
    z-index: 2;
}