/*
	Componentele noastre peste Bootstrap 5.3.9 (17.11.2026, clasele rămase din Bootstrap 3:
	docs/superpowers/specs/2026-11-17-bootstrap-3-clase-design.md). Se încarcă din templates/_bootstrap_foi.tpl imediat după
	css/bootstrap/duviana-5.css (deci și pe paginile de sine stătătoare: login, înregistrare, parolă uitată, parolă nouă) și
	înaintea temei și a CSS-ului aplicației; versiunea vine din ACTIVE_CADRU (lib/Controller.php).

	Aici stau regulile din Bootstrap 4.4.1 ale claselor redenumite pe `duv-` (tools/interfata/clase-vechi.json, grupurile din
	„gata”): când o clasă e redenumită, regula ei cade din duviana-5.css (care se generează din inventar) și vine aici, cu
	selectorul pe numele nou, cu aceleași declarații, în același @media și în ordinea din 4.4.1.
	Spre deosebire de duviana-5.css, foaia SE EDITEAZĂ DE MÂNĂ.
*/

/* ---------- formulare: .form-group, .custom-select (din Bootstrap 4.4.1) ---------- */
.duv-form-group {
	margin-bottom: 1rem;
}
.was-validated .duv-custom-select:valid,
.duv-custom-select.is-valid {
	border-color: #28a745;
	padding-right: calc(0.75em + 2.3125rem);
	background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='8' height='8' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.was-validated .duv-custom-select:valid:focus,
.duv-custom-select.is-valid:focus {
	border-color: #28a745;
	box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}
.was-validated .duv-custom-select:invalid,
.duv-custom-select.is-invalid {
	border-color: #dc3545;
	padding-right: calc(0.75em + 2.3125rem);
	background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px, url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e") #fff no-repeat center right 1.75rem/calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}
.was-validated .duv-custom-select:invalid:focus,
.duv-custom-select.is-invalid:focus {
	border-color: #dc3545;
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}
.input-group > .duv-custom-select {
	position: relative;
	flex: 1 1 0%;
	min-width: 0;
	margin-bottom: 0;
}
.input-group > .form-control + .duv-custom-select,
.input-group > .duv-custom-select + .form-control,
.input-group > .duv-custom-select + .duv-custom-select {
	margin-left: -1px;
}
.input-group > .duv-custom-select:focus {
	z-index: 3;
}
.input-group > .duv-custom-select:not(:last-child) {
	border-top-right-radius: 0;
	border-bottom-right-radius: 0;
}
.input-group > .duv-custom-select:not(:first-child) {
	border-top-left-radius: 0;
	border-bottom-left-radius: 0;
}
.input-group-lg > .duv-custom-select {
	height: calc(1.5em + 1rem + 2px);
}
.input-group-lg > .duv-custom-select {
	padding: 0.5rem 1rem;
	font-size: 1.25rem;
	line-height: 1.5;
	border-radius: 0.3rem;
}
.input-group-sm > .duv-custom-select {
	height: calc(1.5em + 0.5rem + 2px);
}
.input-group-sm > .duv-custom-select {
	padding: 0.25rem 0.5rem;
	font-size: 0.875rem;
	line-height: 1.5;
	border-radius: 0.2rem;
}
.input-group-lg > .duv-custom-select,
.input-group-sm > .duv-custom-select {
	padding-right: 1.75rem;
}
.duv-custom-select {
	display: inline-block;
	width: 100%;
	height: calc(1.5em + 0.75rem + 2px);
	padding: 0.375rem 1.75rem 0.375rem 0.75rem;
	font-size: 1rem;
	font-weight: 400;
	line-height: 1.5;
	color: #495057;
	vertical-align: middle;
	background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") no-repeat right 0.75rem center/8px 10px;
	border: 1px solid #ced4da;
	border-radius: 0.25rem;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.duv-custom-select:focus {
	border-color: #80bdff;
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}
.duv-custom-select:focus::-ms-value {
	color: #495057;
	background-color: #fff;
}
.duv-custom-select[multiple],
.duv-custom-select[size]:not([size="1"]) {
	height: auto;
	padding-right: 0.75rem;
	background-image: none;
}
.duv-custom-select:disabled {
	color: #6c757d;
	background-color: #e9ecef;
}
.duv-custom-select::-ms-expand {
	display: none;
}
.duv-custom-select:-moz-focusring {
	color: transparent;
	text-shadow: 0 0 0 #495057;
}
.duv-custom-select {
	transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
	.duv-custom-select {
		transition: none;
	}
}

/* ---------- butoane: .btn-block, .badge-*, .close (din Bootstrap 4.4.1) ---------- */
.duv-btn-block {
	display: block;
	width: 100%;
}
.duv-btn-block + .duv-btn-block {
	margin-top: 0.5rem;
}
input[type="submit"].duv-btn-block,
input[type="reset"].duv-btn-block,
input[type="button"].duv-btn-block {
	width: 100%;
}
.duv-badge-secondary {
	color: #fff;
	background-color: #6c757d;
}
a.duv-badge-secondary:hover,
a.duv-badge-secondary:focus {
	color: #fff;
	background-color: #545b62;
}
a.duv-badge-secondary:focus,
a.duv-badge-secondary.focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(108, 117, 125, 0.5);
}
.duv-badge-success {
	color: #fff;
	background-color: #28a745;
}
a.duv-badge-success:hover,
a.duv-badge-success:focus {
	color: #fff;
	background-color: #1e7e34;
}
a.duv-badge-success:focus,
a.duv-badge-success.focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.5);
}
.duv-badge-warning {
	color: #212529;
	background-color: #ffc107;
}
a.duv-badge-warning:hover,
a.duv-badge-warning:focus {
	color: #212529;
	background-color: #d39e00;
}
a.duv-badge-warning:focus,
a.duv-badge-warning.focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.5);
}
.duv-badge-danger {
	color: #fff;
	background-color: #dc3545;
}
a.duv-badge-danger:hover,
a.duv-badge-danger:focus {
	color: #fff;
	background-color: #bd2130;
}
a.duv-badge-danger:focus,
a.duv-badge-danger.focus {
	outline: 0;
	box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.5);
}
.alert-dismissible .duv-close {
	position: absolute;
	top: 0;
	right: 0;
	padding: 0.75rem 1.25rem;
	color: inherit;
}
.duv-close {
	float: right;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1;
	color: #000;
	text-shadow: 0 1px 0 #fff;
	opacity: .5;
}
.duv-close:hover {
	color: #000;
	text-decoration: none;
}
.duv-close:not(:disabled):not(.disabled):hover,
.duv-close:not(:disabled):not(.disabled):focus {
	opacity: .75;
}
button.duv-close {
	padding: 0;
	background-color: transparent;
	border: 0;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
a.duv-close.disabled {
	pointer-events: none;
}
.modal-header .duv-close {
	padding: 1rem 1rem;
	margin: -1rem -1rem -1rem auto;
}

/* [apăsat / meniu deschis] .duv-btn-default (fost .btn-default; adus din tools/interfata/extrase-4.json la 17.11.2026): anularea
   .btn-check:checked+.btn,.btn.active,.btn.show,.btn:first-child:active,… a lui 5 (0,3,0) bate .duv-btn-default:active din app1.css (0,2,0)
   și dădea fond transparent, fără chenar; variabilele de repaus primesc valorile din app1.css (fond var(--white), chenar și text #1E1E1E) */
.duv-btn-default{--bs-btn-color:#1E1E1E;--bs-btn-bg:var(--white);--bs-btn-border-color:#1E1E1E}

/* ---------- panouri: .media (din Bootstrap 4.4.1; panel*, well, table-condensed, navbar-header, hidden-* / visible-* nu au
   reguli în 4 — le stilizează duviana-tema.css și foile aplicației, pe numele noi) ---------- */
.duv-media {
	display: -ms-flexbox;
	display: flex;
	align-items: flex-start;
}

/* ---------- x-editable (19.11.2026): foaia bootstrap.editable.css a ieșit din pagini; singurul ei efect rămas era cursorul peste
   textele editabile din lista de proiecte (/project-management, .duv-xedit pe #tasks-list). Restul .editable-* e în duviana.css. ---------- */
.duv-xedit .editable-click {
	cursor: default;
}

/* ---------- vizualizatorul de imagini / PDF (js/perp/vizualizator.js, 19.11.2026, pe fereastra modală a lui Bootstrap 5) ---------- */
.duv-viz .modal-content {
	position: relative;
}
.duv-viz-corp {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
	padding: 12px;
}
.duv-viz-img {
	max-width: 100%;
	max-height: calc(100vh - 180px);
	object-fit: contain;
}
.duv-viz-cadru {
	width: 100%;
	height: calc(100vh - 180px);
	border: 0;
}
.duv-viz-ant,
.duv-viz-urm {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: rgba(0, 0, 0, .45);
	color: #fff;
	font-size: 30px;
	line-height: 40px;
	cursor: pointer;
}
.duv-viz-ant { left: 10px; }
.duv-viz-urm { right: 10px; }
.duv-viz-ant:hover,
.duv-viz-urm:hover,
.duv-viz-ant:focus-visible,
.duv-viz-urm:focus-visible {
	background: rgba(0, 0, 0, .7);
}

/* ---------- comutatoarele (form-switch din Bootstrap 5) în .form-grup (19.11.2026, recenzia finală) ----------
   `.form-grup input[type="checkbox"] { width: initial; height: initial }` și `.form-grup input { padding: 0 10px }` din duviana.css,
   plus `.form-check-input { position: absolute }` adus din 4 în duviana-5.css, striveau comutatorul la 21,6 × 1,6 px. */
.form-grup .form-switch {
	display: block;
	min-height: 1.5em;
	padding-left: 2.5em;
	margin: 0 0 6px;
}
.form-grup .form-switch .form-check-input {
	position: static;
	float: left;
	width: 2em;
	height: 1em;
	padding: 0;
	margin: .25em 0 0 -2.5em;
	border: 1px solid #a4b0bc;
	border-radius: 2em;
	background-repeat: no-repeat;   /* `.form-grup input { background: #fff }` le punea la loc pe „repeat” / „auto”: butonul apărea de două ori */
	background-size: contain;
	background-image: var(--bs-form-switch-bg);   /* `.tema-dark .form-grup input { background: … }` îi ștergea butonul */
	cursor: pointer;
}
.form-grup .form-switch .form-check-input:checked {
	background-color: var(--mov);
	border-color: var(--mov);
}
.tema-dark .form-grup .form-switch .form-check-input:not(:checked) {
	--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.55%29'/%3e%3c/svg%3e");
}
