/* You can add global styles to this file, and also import other style files */

/* html, body { height: 100%; }
body { margin: 0; font-family: Roboto, "Helvetica Neue", sans-serif; } */

bb-root:not(:defined) {
	visibility: hidden !important;
	/* display: inline-block;  
	height: 100vh;  
	opacity: 0;  
	transition: opacity 0.3s ease-in-out; */
}

bb-container:not(:defined) {
	visibility: hidden !important;
	/* display: inline-block;  
	height: 100vh;  
	opacity: 0;  
	transition: opacity 0.3s ease-in-out; */
}

bb-grid:not(:defined) {
	visibility: hidden !important;
	/* display: inline-block;  
	height: 100vh;  
	opacity: 0;  
	transition: opacity 0.3s ease-in-out; */
}

/* bb-container {
	display: flex;
	padding-bottom:20px;
} */

bb-grid {
	display: grid;
	/* its one column never wider than the grid: a wide table scrolls in its own box (.table-container)
	   instead of widening the page (on a phone, the whole page scrolled sideways) */
	grid-template-columns: minmax(0, 1fr);
	margin-bottom: 20px;
}

/* A Grid's cell edit style (editstyle cell, bb-gridcelledit.ts): a closed cell's input shows as its value;
   double-click, F2 or Enter opens it */
.bb-grid-celledit td.bb-grid-cell[tabindex] { cursor: text; }
.bb-grid-celledit td.bb-grid-cell:focus-visible { outline: 2px solid var(--bulma-link, #485fc7); outline-offset: -2px; }
.bb-grid-celledit td.bb-grid-cell:not(.is-editing) :is(input:not([type=checkbox]):not([type=radio]), select, textarea) {
  border-color: transparent; box-shadow: none; background: transparent; pointer-events: none; padding-left: 0; resize: none;
}
.bb-grid-celledit td.bb-grid-cell:not(.is-editing) .select::after { display: none; }
.bb-grid-celledit td.bb-grid-cell:not(.is-editing) :is(input[type=checkbox], input[type=radio]) { pointer-events: none; }
.bb-grid-celledit td.bb-grid-cell.is-editing { box-shadow: inset 0 0 0 2px var(--bulma-link, #485fc7); }
/* Grids on a phone (bb-gridcards.ts): when the table doesn't fit the grid's box (is-cards), each row is
   a card and each cell shows its column's heading (data-label) beside its value. A grid with phonelayout
   "table" keeps its table, which scrolls sideways in its own box. */
/* a long value with no spaces (an address, a name in capitals) wraps inside its cell, so one value
   doesn't make the whole table wide (bb-gridcards.ts marks those cells; other words never break) */
table.bb-grid-cards > tbody > tr > td.bb-cell-long {
	overflow-wrap: anywhere;
	min-width: 12em;
}
.is-cards > table.bb-grid-cards,
.is-cards > table.bb-grid-cards > tbody,
.is-cards > table.bb-grid-cards > tbody > tr {
	display: block;
	width: 100%;
}
.is-cards > table.bb-grid-cards > thead > tr:first-child {
	display: none;
}
/* the filters, above the cards: each with its column's heading, those without a filter left out */
.is-cards > table.bb-grid-cards > thead,
.is-cards > table.bb-grid-cards > thead > tr.bb-grid-filter-row {
	display: block;
	width: 100%;
}
.is-cards > table.bb-grid-cards > thead > tr.bb-grid-filter-row {
	margin: 0 0 10px;
}
.is-cards > table.bb-grid-cards > thead > tr.bb-grid-filter-row > td {
	display: none;
}
.is-cards > table.bb-grid-cards > thead > tr.bb-grid-filter-row > td.has-filter:not(.is-hidden) {
	display: grid;
	grid-template-columns: minmax(84px, 38%) minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 4px 0;
	border: 0;
}
.is-cards > table.bb-grid-cards > thead > tr.bb-grid-filter-row > td.has-filter::before {
	content: attr(data-label);
	font-weight: 600;
	color: var(--bulma-text-weak, #6a7086);
}
.is-cards > table.bb-grid-cards > thead > tr.bb-grid-filter-row > td.has-filter > input {
	width: 100%;
}
.is-cards > table.bb-grid-cards > tbody > tr {
	margin: 0 0 10px;
	padding: 6px 14px;
	border: 1px solid var(--bulma-border-weak, #e3e5ee);
	border-radius: 10px;
}
.is-cards > table.bb-grid-cards > tbody > tr > td {
	display: grid;
	grid-template-columns: minmax(84px, 38%) minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 6px 0;
	border: 0;
	text-align: left;
	overflow-wrap: anywhere;
}
.is-cards > table.bb-grid-cards > tbody > tr > td.is-hidden {
	display: none !important;
}
.is-cards > table.bb-grid-cards > tbody > tr > td::before {
	content: attr(data-label);
	font-weight: 600;
	color: var(--bulma-text-weak, #6a7086);
}
.is-cards > table.bb-grid-cards > tbody > tr > td:not([data-label]),
.is-cards > table.bb-grid-cards > tbody > tr > td[data-label=""] {
	grid-template-columns: minmax(0, 1fr);
}
.is-cards > table.bb-grid-cards > tbody > tr > td:not([data-label])::before,
.is-cards > table.bb-grid-cards > tbody > tr > td[data-label=""]::before {
	content: none;
}


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

/* .bb-is-disabled {
	pointer-events: none !important;
	cursor: not-allowed !important;
	color: lightgrey !important;
} */

.bb-trg-dsb {
	pointer-events: none !important;
	cursor: not-allowed !important;
	color: lightgrey !important;
}

/* .bb-is-enabled {
	pointer-events: initial !important;
	cursor: initial !important;
	color: initial !important;
} */

.bb-msgbox {
	z-index: 2147483647;
}

.bb-msgbox-head {
	align-items: center;
	display: flex;
	flex-shrink: 0;
	justify-content: flex-start;
	padding: 20px;
	position: relative;
	border-end-end-radius: unset !important;
	border-end-start-radius: unset !important;
}

.bb-msgbox-card-foot {
	display: flex;
	justify-content: right;
	column-gap: 10px;
	align-items: center;
	background-color: var(--bulma-scheme-main-bis, #f5f5f5);
	flex-shrink: 0;
	padding: 20px;
	position: relative;
	border-end-end-radius: unset !important;
	border-end-start-radius: unset !important;
}

.is-head-rounded {
	border-start-end-radius: var(--bulma-modal-card-head-radius) !important;
	border-start-start-radius: var(--bulma-modal-card-head-radius) !important;
}

.is-foot-rounded {
	border-end-end-radius: var(--bulma-modal-card-foot-radius) !important;
	border-end-start-radius: var(--bulma-modal-card-foot-radius) !important;
}

/* A dialog taller than the window: the dialog scrolls, so its footer (Done, Save) can be reached.
   Many dialogs let their body overflow (overflow: visible) so menus and dropdowns aren't cut off;
   such a body can't scroll itself, and its footer was pushed below the window. The backdrop stays put. */
.modal.is-active {
	overflow-y: auto;
}

.modal.is-active > .modal-background {
	position: fixed;
}

.select {
	width: 100%;
}

select {
	width: 100%;
}

.bb-is-disabled {
	/* user-select: none !important; */
	cursor: not-allowed !important;
	pointer-events: none !important;
	color: lightgrey !important;
}

.bb-no-records-col {
	text-align: center !important;
}

.no-hover {
	pointer-events: auto !important;;
	/* Ensures the link remains clickable */
	text-decoration: none !important;;
	/* Removes underline */
	color: inherit !important;;
	/* Keeps the original text color */
}

.no-hover:hover {
	text-decoration: none !important;;
	/* Prevents underline on hover */
	color: inherit !important;;
	/* Prevents color change on hover */
	background-color:transparent !important;
}

/* breadcrumb: the current page (a level without a link) shows as text, not in the link colour */
.breadcrumb li.is-active a {
	color: var(--bulma-text-weak);
}

/* a password field's show/hide button (bb-itemfactory.ts _addShowPassword): Bulma's right icon, clickable */
.control.has-icons-right .bb-showpassword{pointer-events:auto;cursor:pointer;border:0;background:transparent;padding:0;color:var(--bulma-text-weak,#6a7086)}
.control.has-icons-right .bb-showpassword:hover{color:var(--bulma-text,#363636)}
.control.has-icons-right .bb-showpassword:focus-visible{outline:2px solid var(--bulma-link,#485fc7);outline-offset:-2px;border-radius:4px}
/* Edge's own reveal and clear buttons: the field has its own */
input::-ms-reveal,input::-ms-clear{display:none}
