
#read_more {
	margin-left:10px;
/*
    border:1px solid #000;
    background-color:#CCC;
    cursor:pointer;
    width:100px;
 */
/*     text-align:center; */
}


.fixed{
     position: fixed;
    bottom: 100px;
    left: 0px;
    z-index: auto;
    background-color:#fff;
	box-shadow:0 .15rem 1.75rem 0 rgba(58,59,69,.15)!important;
}

* {
	font-family: Tahoma;
}


/*
 * Row expand / collapse control. Inline SVG (URL-encoded) replaces the
 * legacy DataTables bitmaps (details_open.png / details_close.png) so the
 * icon stays crisp at any zoom and matches the green-plus / red-dash
 * convention the rental log uses via svgs.greenPlusDT / svgs.redDashDT
 * in machines.ts. Format mirrors the proven `url("data:image/svg+xml;
 * charset=utf8,%3Csvg ...%3E")` pattern in vendor/.../sb-admin-2.css.
 *  - !important so this beats any later DataTables / vendor rule that
 *    writes `background:` on the same cell.
 *  - explicit width keeps the cell from collapsing when DataTables
 *    auto-sizes a column whose `defaultContent` is the empty string.
 */
td.details-control {
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%2317a673'/%3E%3Cpath d='M12 7v10M7 12h10' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center center !important;
    background-size: 16px 16px !important;
    cursor: pointer;
    width: 18px;
    min-width: 18px;
}
tr.shown td.details-control {
    background: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='10' fill='%23e74a3b'/%3E%3Cpath d='M7 12h10' stroke='%23fff' stroke-width='2.5' stroke-linecap='round' fill='none'/%3E%3C/svg%3E") no-repeat center center !important;
    background-size: 16px 16px !important;
}

/*
 * Rental log marks its + column with .details-control-inline and injects SVG
 * via svgs.greenPlusDT / svgs.redDashDT in machines.ts. Suppress the shared
 * background-image on that column only (id="datatable" is reused site-wide).
 */
td.details-control.details-control-inline,
tr.shown td.details-control.details-control-inline {
    background: none !important;
    width: auto;
    min-width: 0;
}

/*
 * Bootstrap .custom-switch (pill toggle).
 * sb-admin-2.min.css omits .custom-switch and strips `position: relative` from
 * `.custom-control-label`, so pseudo-elements anchor to `.custom-control` and sit
 * on top of the label text. Bootstrap 4.6.2 math: gutter 0.5rem, track 1.75rem,
 * padding-left = 2.25rem; track/handle offsets match _custom-forms.scss.
 */
.custom-control.custom-switch {
	padding-left: 2.25rem;
}

/* Required for ::before/::after `left: -2.25rem` to land in the gutter, not on text */
.custom-switch .custom-control-label {
	position: relative;
	vertical-align: top;
}

.custom-switch .custom-control-input {
	position: absolute;
	left: 0;
	width: 1.75rem;
	height: 1rem;
	z-index: -1;
	opacity: 0;
}

.custom-switch .custom-control-label::before {
	top: 0.25rem;
	left: -2.25rem;
	width: 1.75rem;
	height: 1rem;
	border-radius: 0.5rem;
	border: 1px solid #d1d3e2;
	pointer-events: all;
}

/* BS4.6: (line-height box − 1rem) / 2 + 2×border-width for vertical center in track */
.custom-switch .custom-control-label::after {
	top: calc(0.25rem + 2px);
	left: calc(-2.25rem + 2px);
	width: calc(1rem - 4px);
	height: calc(1rem - 4px);
	border-radius: 0.5rem;
	background-color: #fff;
	background-image: none !important;
	transition: transform 0.15s ease-in-out, background-color 0.15s ease-in-out;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::before {
	border-color: #4e73df;
	background-color: #4e73df;
}

.custom-switch .custom-control-input:checked ~ .custom-control-label::after {
	background-color: #fff;
	transform: translateX(0.75rem);
}

.custom-switch .custom-control-input:focus ~ .custom-control-label::before {
	box-shadow: 0 0 0 1px #fff, 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.custom-switch .custom-control-input:disabled ~ .custom-control-label::before,
.custom-switch .custom-control-input:disabled ~ .custom-control-label::after {
	cursor: not-allowed;
}

/* DataTables: avoid clipping switches in tight cells */
.dataTables_wrapper table.dataTable td .custom-control.custom-switch {
	overflow: visible;
	min-height: 1.5rem;
}

/* Contract machine card + check-in: DEF input shares Fuel Return value cell (one column left) */
.machineHead .machineTable td.contract-fuel-def-input,
.checkInOut-dialog td.contract-fuel-def-input {
	white-space: nowrap;
	vertical-align: middle;
}
.machineHead .machineTable td.contract-fuel-def-input .contract-def-inline-label,
.checkInOut-dialog td.contract-fuel-def-input .contract-def-inline-label {
	font-size: 0.88em;
	margin: 0 0 0 0.35rem;
	font-weight: normal;
}
.machineHead .machineTable td.contract-fuel-def-input .input[data-field="defEnd"],
.checkInOut-dialog td.contract-fuel-def-input .input[data-field="defEnd"] {
	width: 4.25rem !important;
	max-width: 4.25rem;
	min-width: 0;
	box-sizing: border-box;
	margin-left: 0.15rem;
}

/* Contract machine card: DEF + haul-out/in stack under Thumb / Charged for Tracks / Void / Priority columns */
.machineHead .machineTable td.contract-charged-tracks-col {
	vertical-align: top;
	padding-top: 0.35rem;
}
.machineHead .machineTable .contract-charged-tracks-split {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: flex-start;
	gap: 0.5rem;
}
.machineHead .machineTable .contract-charged-tracks-split__def {
	flex: 0 0 auto;
}
.machineHead .machineTable .contract-charged-tracks-split__def--empty {
	min-width: 9.5rem;
	flex-shrink: 0;
}
.machineHead .machineTable .contract-charged-tracks-split__haul {
	flex: 1 1 auto;
	min-width: 0;
}
.machineHead .machineTable .contract-charged-tracks-col__row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	column-gap: 0.35rem;
	row-gap: 0.15rem;
	margin-bottom: 0.35rem;
	font-size: 0.92em;
}
.machineHead .machineTable .contract-charged-tracks-col__row--haul-inline {
	flex-wrap: nowrap;
	column-gap: 0.65rem;
	margin-bottom: 0;
}
.machineHead .machineTable .contract-charged-tracks-haul-group {
	display: inline-flex;
	flex-wrap: nowrap;
	align-items: center;
	column-gap: 0.35rem;
	flex: 0 1 auto;
	min-width: 0;
}
.machineHead .machineTable .contract-charged-tracks-split__haul .contract-charged-tracks-col__row:last-child {
	margin-bottom: 0;
}
.machineHead .machineTable .contract-charged-tracks-split__def .contract-charged-tracks-col__row {
	margin-bottom: 0;
}
.machineHead .machineTable .contract-charged-tracks-col__row label {
	margin-bottom: 0;
	font-weight: normal;
}
.machineHead .machineTable td.contract-charged-tracks-col .input[data-field="defEnd"] {
	width: 4.25rem !important;
	max-width: 4.25rem;
	min-width: 0;
	box-sizing: border-box;
}