
html, body {
    height: 100%;
	width: 100%;
	overflow: hidden;
	padding: 0;
	margin: 0;
	background: #FAFAFA;
	font-family: 'Helvetica Neue', arial, sans-serif;
	font-weight: 400;
	/* color: #444; */
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	/* padding-top: env(safe-area-inset-top); */
	/* overscroll-behavior-y: contain; */
}
/*
body.android {
	padding-top: 30px !important;
} */

[data-bs-theme='dark'] .logoImg {
    /* turn black → white, keep transparency */
    /* filter: invert(1); */
    /* optional tiny tweaks */
    filter: invert(1) brightness(1.05) contrast(1.05);
}

[data-bs-theme='light'] .logoImg {
    filter: none;
}

body {
	padding: constant(safe-area-inset-top) constant(safe-area-inset-right) constant(safe-area-inset-bottom) constant(safe-area-inset-left);
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

/* Tight Mode for global spacing reduction */
/* body.tight-mode  {
	font-size: 0.9rem !important;
	line-height: 1.0rem !important;
} */

/* .tight-mode p,
.tight-mode h1, .tight-mode h2, .tight-mode h3, .tight-mode h4, .tight-mode h5, .tight-mode h6,
.tight-mode ul, .tight-mode ol, .tight-mode li,
.tight-mode div, .tight-mode section, .tight-mode article {
    margin: 0 !important;
    line-height: 1.1 !important;
} */

/* Optional: Override Bootstrap-specific elements for tighter spacing */
/* .tight-mode .container,
.tight-mode .container-fluid,
.tight-mode .row,
.tight-mode .col {
    padding: 0 !important;
} */

/* Lists: remove padding/margin for tight layout */
/* .tight-mode ul, .tight-mode ol {
    padding-left: 1rem !important;
    margin-bottom: 0 !important;
} */

/* Tighten buttons and forms */
/* .tight-mode button,
.tight-mode input,
.tight-mode textarea {
    padding: 0.25rem 0.5rem !important;
    margin: 0 !important;
} */

/* Adjust table padding/margins for tighter spacing */
/* .tight-mode table {
    margin: 0 !important;
    padding: 0 !important;
} */

/* Tighter margin utility classes */
/* .tight-mode .m-1 { margin: 0.1rem !important; }
.tight-mode .m-2 { margin: 0.2rem !important; }
.tight-mode .m-3 { margin: 0.3rem !important; }
.tight-mode .m-4 { margin: 0.5rem !important; }
.tight-mode .m-5 { margin: 0.75rem !important; } */

/* Tighter padding utility classes */
/* .tight-mode .p-1 { padding: 0.1rem !important; }
.tight-mode .p-2 { padding: 0.2rem !important; }
.tight-mode .p-3 { padding: 0.3rem !important; }
.tight-mode .p-4 { padding: 0.5rem !important; }
.tight-mode .p-5 { padding: 0.75rem !important; } */

/* Tighter margin and padding for specific directions (top, bottom, left, right) */
/* .tight-mode .mt-1, .tight-mode .mb-1, .tight-mode .ms-1, .tight-mode .me-1 { margin: 0.1rem !important; } */
/* .tight-mode .pt-1, .tight-mode .pb-1, .tight-mode .ps-1, .tight-mode .pe-1 { padding: 0.1rem !important; } */

/* .tight-mode .mt-2, .tight-mode .mb-2, .tight-mode .ms-2, .tight-mode .me-2 { margin: 0.2rem !important; } */
/* .tight-mode .pt-2, .tight-mode .pb-2, .tight-mode .ps-2, .tight-mode .pe-2 { padding: 0.2rem !important; } */


/* .bootstrap .fixed-top {
	top: env(safe-area-inset-top) !important;
} */

.hljs {
    color: #abb2bf !important;   /* default Atom One Dark text */
	background-color: #282c34 !important; /* dark bg */
    border-radius: 0.5rem;                /* rounded corners */
    padding: 0.75rem;                     /* some inner space */
    overflow-x: auto;                    /* scroll long lines */
}

/* optional: tweak code font & size */
.hljs code {
	color: #f0f0f0;
    font-family: 'Source Code Pro', monospace;
    font-size: 0.9rem;
}
.hljs-property {
    color: #E06C75 !important;  /* lighter, Atom One Dark “red” */
}

.selected {
	outline: 2px solid blue;
}


.islink {
	cursor: pointer;
}
.font-style-narrow {
	font-family: 'Roboto Condensed', var(--bs-font-sans-serif);
	font-weight: 300;         /* try 300–400 */
	font-stretch: condensed; /* try condensed or semi-condensed */
}

.hoverelementonly {
    display: none;
}
.hoverElement:hover .hoverelementonly {
    display : inline;
}
.hoverElement:hover .hoverelementhide {
    display : none;
}

.box-container {
	border-radius: 15px;
}

.progress-bar-vertical {
    width: 40px;
    min-height: 100px;
    /* margin-right: 30px; */
    float: left;
    display: -webkit-box;  /* OLD - iOS 6-, Safari 3.1-6, BB7 */
    display: -ms-flexbox;  /* TWEENER - IE 10 */
    display: -webkit-flex; /* NEW - Safari 6.1+. iOS 7.1+, BB10 */
    display: flex;         /* NEW, Spec - Firefox, Chrome, Opera */
    align-items: flex-end;
    -webkit-align-items: flex-end; /* Safari 7.0+ */
}

.progress-bar-vertical .progress-bar {
    width: 100%;
    height: 0;
    -webkit-transition: height 0.6s ease;
    -o-transition: height 0.6s ease;
    transition: height 0.6s ease;
}

.progress-bar-container {
	position: relative;
	width: 100%;
	margin-bottom: 20px;
}
.progress-bar-container .progress {
	height: 4px;
}
.progress-bar-container .progress-bar {
	/* background-color: #e9ecef; */
	height: 4px;
	position: relative;
}
.progress-dot-container {
	position: absolute;
	width: 100%;
	top: -10px;
	display: flex;
	justify-content: space-between;
}
.progress-dot {
	width: 20px;
	height: 20px;
	background-color: #dddddd;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: white;
	font-size: 12px;
}
.progress-dot.active {
	background-color: #007bff;
}
/* Label styling */
.progress-label-container {
	position: absolute;
	width: 100%;
	top: -30px; /* Positioning labels above dots */
	display: flex;
	justify-content: space-between;
	font-size: 14px;
	color: #333;
	text-wrap: nowrap;
}
.progress-label {
	position: relative;
	text-align: center;
	width: 20px;  /* Ensures labels are centered with dots */
}
.progress-label-text {
	position: absolute;
	top: 0px; /* Positioning text below dots */
	left: 50%;
	transform: translateX(-50%);
}

.vertical-text {
	display: inline-block;
	writing-mode: vertical-rl; /* Standard property */
    -webkit-writing-mode: vertical-rl; /* Safari */
    -ms-writing-mode: tb-rl; /* IE and old Edge */

    text-orientation: mixed; /* Standard property */
    -webkit-text-orientation: mixed; /* Safari */

    white-space: nowrap;
}

.keyboardShortcut {
	font-size: 0.8em;
	font-family:'Courier New', Courier, monospace;
}

/* custom.css (load this after bootstrap.css) */


/* Fallback for browsers that do not support writing-mode */
@supports not (writing-mode: vertical-rl) {
    .vertical-text {
        writing-mode: unset;
        -webkit-writing-mode: unset;
        -ms-writing-mode: unset;
        transform: rotate(90deg);
        transform-origin: left bottom;
    }
}

.top {
	vertical-align: top !important;
}
.middle {
	vertical-align: middle !important;
}
.bottom {
	vertical-align: bottom !important;
}
.baseline {
	vertical-align: baseline !important;
}

.w-1 {
	width: 1% !important;
}
.w-2 {
	width: 2% !important;
}
.w-3 {
	width: 3% !important;
}
.w-4 {
	width: 4% !important;
}
.w-5 {
	width: 5% !important;
}
.w-10 {
	width: 10% !important;
}
.w-15 {
	width: 15% !important;
}
.w-20 {
	width: 20% !important;
}

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

.input-plain[type="number"]::-webkit-inner-spin-button,
.input-plain[type="number"]::-webkit-outer-spin-button {
	-webkit-appearance: none;
  	margin: 0;
}

.input-plain[type="number"] {
	-moz-appearance: textfield; /* Firefox */
	text-align: right;
}

.dragged {
    border: 2px dotted #ff0000;
}

.over {
    border: 2px dotted #00ff00;
}

.list {
    list-style-type: none;
}


.navbar-toggler-icon{
	font-size: 0.6em;
}
.navbar-toggler {
	padding-top: 2px !important;
    padding-bottom: 2px !important;
	padding-left: 5px !important;
	padding-right: 5px !important;
}

.bg-black {
	background-color: #0a0a0a;
}

.bg-orange {
	background-color: rgb(255,95,51);
}

.btn.btn-orange {
	background-color: rgb(255, 95, 51); /* Or use a specific orange hex code like #FFA500 */
    color: white;
}

/* Optional: Add hover effect */
.btn.btn-orange:hover {
    background-color: rgba(255, 95, 51, 0.853); /* Darker shade for hover */
    color: white;
}

/* Glow background utilities */
.bg-glow-primary {
    background-color: #007bff !important;
    box-shadow: 0 0 0.2rem #007bff, 0 0 0.2rem #007bff;
    transition: box-shadow .2s ease-in-out;
}
.bg-glow-primary:hover {
    box-shadow: 0 0 0.5rem #007bff, 0 0 0.5rem #007bff;
}

.bg-glow-secondary {
    background-color: #6c757d !important;
    box-shadow: 0 0 0.2rem #6c757d, 0 0 0.2rem #6c757d;
    transition: box-shadow .2s ease-in-out;
}
.bg-glow-secondary:hover {
    box-shadow: 0 0 0.5rem #6c757d, 0 0 0.5rem #6c757d;
}

.bg-glow-success {
    background-color: #28a745 !important;
    box-shadow: 0 0 0.2rem #28a745, 0 0 0.2rem #28a745;
    transition: box-shadow .2s ease-in-out;
}
.bg-glow-success:hover {
    box-shadow: 0 0 0.5rem #28a745, 0 0 0.5rem #28a745;
}

.bg-glow-danger {
    background-color: #dc3545 !important;
    box-shadow: 0 0 0.2rem #dc3545, 0 0 0.2rem #dc3545;
    transition: box-shadow .2s ease-in-out;
}
.bg-glow-danger:hover {
    box-shadow: 0 0 0.5rem #dc3545, 0 0 0.5rem #dc3545;
}

.bg-glow-warning {
    background-color: #ffc107 !important;
    box-shadow: 0 0 0.2rem #ffc107, 0 0 0.2rem #ffc107;
    transition: box-shadow .2s ease-in-out;
}
.bg-glow-warning:hover {
    box-shadow: 0 0 0.5rem #ffc107, 0 0 0.5rem #ffc107;
}

.bg-glow-info {
    background-color: #17a2b8 !important;
    box-shadow: 0 0 0.2rem #17a2b8, 0 0 0.2rem #17a2b8;
    transition: box-shadow .2s ease-in-out;
}
.bg-glow-info:hover {
    box-shadow: 0 0 0.5rem #17a2b8, 0 0 0.5rem #17a2b8;
}

/* Optional pulsing animation */
@keyframes glowPulse {
    0%   { box-shadow: 0 0 0.2rem currentColor; }
    50%  { box-shadow: 0 0 1rem currentColor; }
    100% { box-shadow: 0 0 0.5rem currentColor; }
}
.pulse-glow {
    animation: glowPulse 2s infinite ease-in-out;
    /* combine with any bg-glow-* class: <div class='bg-glow-primary pulse-glow'>…</div> */
}


.form-control-sm-no-height {
	height: inherit !important;
}

.tracking-nav .nav-link {
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

* {
	box-sizing: border-box;
}

#app {
	height: 100%;
}

.imageRounded {
	width: 76px;
	min-width: 76px;
	height: 76px;
	min-height: 76px;
  	background-size: cover;
  	background-repeat: no-repeat;
	background-position: 50% 50%;
}

.imageRoundedXLarge {
	width: 250px;
	min-width: 250px;
	height: 250px;
	min-height: 250px;
}
.imageRoundedLarge {
	width: 150px;
	min-width: 150px;
	height: 150px;
	min-height: 150px;
}
.imageRoundedMediumPlus {
	width: 100px;
	min-width: 100px;
	height: 100px;
	min-height: 100px;
}
.imageRoundedMedium {
	width: 55px;
	min-width: 55px;
	height: 55px;
	min-height: 55px;
}
.imageRoundedSmall {
	width: 40px;
	min-width: 40px;
	height: 40px;
	min-height: 40px;
}
.imageRoundedThumb2 {
	width: 28px;
	min-width: 28px;
	height: 28px;
	min-height: 28px;
}
.imageRoundedThumb {
	width: 25px;
	min-width: 25px;
	height: 25px;
	min-height: 25px;
}
.imageRoundedIcon {
	width: 17px;
	min-width: 17px;
	height: 17px;
	min-height: 17px;
}
.imageRoundedSmallIcon {
	width: 13px;
	min-width: 13px;
	height: 13px;
	min-height: 13px;
}

.imageRoundedResponsive {
	width: 90px;
	min-width: 90px;
	height: 90px;
	min-height: 90px;
}
.imageRoundedResponsivePosition {
	top: -45px;
}

.badge-light {
	border: 1px solid #e6e6e6;
}
.badge-dark {
	border: 1px solid #191d21;
}
.badge-warning {
	border: 1px solid #efb506;
}
.badge-danger {
	border: 1px solid #c92f3f;
}
.badge-success {
	border: 1px solid #22933d;
}
.badge-primary {
	border: 1px solid #0073ee;
}
.badge-info {
	border: 1px solid #1492a6;
}


.bootstrap .rounded-lg,
.bootstrap-dark .rounded-lg {
	border-radius: 1.0rem !important;
}
.bootstrap .rounded-bottom-lg,
.bootstrap-dark .rounded-bottom-lg {
	border-bottom-left-radius: 1.0rem !important;
	border-bottom-right-radius: 1.0rem !important;
}
.bootstrap .rounded-top-lg,
.bootstrap-dark .rounded-top-lg {
	border-top-left-radius: 1.0rem !important;
	border-top-right-radius: 1.0rem !important;
}

.bootstrap .rounded-md,
.bootstrap-dark .rounded-md {
	border-radius: 0.5rem !important;
}
.bootstrap .rounded-bottom-md,
.bootstrap-dark .rounded-bottom-md {
	border-bottom-left-radius: 0.5rem !important;
	border-bottom-right-radius: 0.5rem !important;
}
.bootstrap .rounded-top-md,
.bootstrap-dark .rounded-top-md {
	border-top-left-radius: 0.5rem !important;
	border-top-right-radius: 0.5rem !important;
}

.bootstrap .rounded-lg-lg,
.bootstrap-dark .rounded-lg-lg {
	border-radius: 1.0rem !important;
}
.bootstrap .rounded-lg-md,
.bootstrap-dark .rounded-lg-md {
	border-radius: 0.5rem !important;
}

@media only screen and (max-width: 600px) {
	.bootstrap .rounded-lg-lg,
	.bootstrap-dark .rounded-lg-lg {
		border-radius: 0rem !important;
	}
	.bootstrap .rounded-lg-md,
	.bootstrap-dark .rounded-lg-md {
		border-radius: 0rem !important;
	}
}

.scrollbar {
	scrollbar-width: auto; /* Firefox */
	-ms-overflow-style: none;  /* Internet Explorer 10+ */
}

.no-scrollbar {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
}
.no-scrollbar::-webkit-scrollbar { /* WebKit */
    width: 0;
    height: 0;
}

/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {
	.imageRoundedResponsive {
		width: 100px;
		min-width: 100px;
		height: 100px;
		min-height: 100px;
	}
	.imageRoundedResponsivePosition {
		top: -50px;
	}
}

/* Medium devices (tablets, 768px and up) The navbar toggle appears at this breakpoint */
@media (min-width: 768px) {
    .imageRoundedResponsive {
		width: 120px;
		min-width: 120px;
		height: 120px;
		min-height: 120px;
	}
	.imageRoundedResponsivePosition {
		top: -60px;
	}
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {
	.imageRoundedResponsive {
		width: 150px;
		min-width: 150px;
		height: 150px;
		min-height: 150px;
	}
    .imageRoundedResponsivePosition {
		top: -85px;
	}
}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {
    .imageRoundedResponsive {
		width: 150px;
		min-width: 150px;
		height: 150px;
		min-height: 150px;
	}
    .imageRoundedResponsivePosition {
		top: -85px;
	}
}

.subtopmenu {
	line-height: 1.8em;
}

.calendarIsWeekend {
	background-color: rgba(255,50,50,0.2);
}

.calendarIsToday {
	background-color: rgba(23,162,184,0.2);
}

.calendarIsChosen {
	background-color: rgba(0,123,255,0.2);
}

.jumbotron-thumb {
	max-height: 450px;
    overflow: hidden;
}

.list-thumb {
	max-height: 200px;
    overflow: hidden;
}

.bootstrap-dark .nav-link {
	padding: .5rem 1.8rem;
	font-size: 1.2em;
}

.bootstrap-dark .form-control-plaintext {
	color: #d3d3d3;
}

.text-overflow {
	text-overflow: ellipsis;
	overflow: hidden;
	white-space: nowrap;
}
.text-strikethrough {
	text-decoration: line-through;
}

.pointerCursor {
    cursor: pointer;
    pointer-events: inherit;
}

.contain-images img {
	max-width: 100%;
}

.btn:focus, .btn:active, .btn:hover {
	outline: none !important;
	box-shadow: none !important;
}
.btn-outline-success:hover, .btn-outline-success:focus,
.btn-outline-primary:hover, .btn-outline-primary:hover,
.btn-outline-info:hover, .btn-outline-info:hover,
.btn-outline-danger:hover, .btn-outline-danger:hover,
.btn-outline-warning:hover, .btn-outline-warning:hover {
	background: none !important;
}

.map-marker {
	position: relative;
	background: #00aabb;
	border-radius: .4em;
}

.map-marker:after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 20%;
	width: 0;
	height: 0;
	border: 30px solid transparent;
	border-top-color: #00aabb;
	border-bottom: 0;
	border-left: 0;
	margin-left: -15px;
	margin-bottom: -30px;
}

.bubble {
	text-overflow: ellipsis;
	white-space: nowrap;
	position: relative;
	width: 120px;
	height: 30px;
	padding: 0px;
	background: #FFFFFF;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	border: #7F7F7F solid 1px;
}

.bubble:after {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 40px 10px 0;
	border-color: #FFFFFF transparent;
	display: block;
	width: 0;
	z-index: 1;
	bottom: -40px;
	left: 50px;
}

.bubble:before {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 40px 10px 0;
	border-color: #7F7F7F transparent;
	display: block;
	width: 0;
	z-index: 0;
	bottom: -41px;
	left: 50px;
}

.bubble2 {
	text-overflow: ellipsis;
	white-space: nowrap;
	position: relative;
	width: 120px;
	height: 30px;
	padding: 0px;
	background: #FFFFFF;
	-webkit-border-radius: 10px;
	-moz-border-radius: 10px;
	border-radius: 10px;
	border: #7F7F7F solid 1px;
}

.bubble2:after {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 10px 10px 0;
	border-color: #FFFFFF transparent;
	display: block;
	width: 0;
	z-index: 1;
	bottom: -10px;
	left: 50px;
}

.bubble2:before {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 10px 10px 0;
	border-color: #7F7F7F transparent;
	display: block;
	width: 0;
	z-index: 0;
	bottom: -11px;
	left: 50px;
}


.bubble3 {
	position: relative;
	width: 200px;
	height: 30px;
	padding: 0px;
	background: #ffffff;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	border: #7C7F7F solid 1px;

	-webkit-transform: rotate(-45deg);
	-moz-transform: rotate(-45deg);
	-o-transform: rotate(-45deg);
}

.bubble3:after {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 5px 0 5px 30px;
	border-color: transparent #ffffff;
	display: block;
	width: 0;
	z-index: 1;
	right: -30px;
	top: 10px;
}

.bubble3:before {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 5px 0 5px 30px;
	border-color: transparent #7C7F7F;
	display: block;
	width: 0;
	z-index: 0;
	right: -31px;
	top: 10px;
}


.bubble4 {
	position: relative;
	width: 200px;
	height: 30px;
	padding: 0px;
	background: #ffffff;
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	border: #7C7F7F solid 1px;

	-webkit-transform: rotate(45deg);
	-moz-transform: rotate(45deg);
	-o-transform: rotate(45deg);
}

.bubble4:after {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 5px 0 5px 30px;
	border-color: transparent #ffffff;
	display: block;
	width: 0;
	z-index: 1;
	right: -30px;
	top: 10px;
}

.bubble4:before {
	content: '';
	position: absolute;
	border-style: solid;
	border-width: 5px 0 5px 30px;
	border-color: transparent #7C7F7F;
	display: block;
	width: 0;
	z-index: 0;
	right: -31px;
	top: 10px;
}

.commentBubble {
    max-width: 100%;         /* limit width so it looks like a bubble */
    padding: 0.75rem 1rem;
    margin: 0.5rem 0;       /* some vertical spacing between bubbles */
	margin-bottom: 0;
    border-radius: 1rem;    /* large radius for bubble edges */
    display: inline-block;   /* important for bubble shape */
    position: relative;      /* so we can do “arrow” effects if desired */
}

.commentBody {
	font-size: 1.0rem !important;
}

/* For your own comments (on the right, green-ish background) */
.myComment {
    /* background-color: #358cfc; */
	/* background-color: color-mix(in srgb, 100%, 50%); */
	/* color: #ffffff; */
    /* margin-left: auto;      push to the right */
	background-color: var(--bs-tertiary-bg);   /* nice card-like surface */
    color: var(--bs-body-color);               /* readable text for the theme */
    border: 1px solid var(--bs-border-color);  /* subtle border that adapts */
    /* border-radius: var(--bs-border-radius); */

	margin-right: auto;     /* push to the left */

    /* You can also float or text-align right, but flex auto margin is simpler */
    text-align: left;       /* keep text left-aligned even if bubble is right */
}

/* For others’ comments (on the left, gray-ish background) */
.othersComment {
    background-color: var(--bs-tertiary-bg);   /* nice card-like surface */
    color: var(--bs-body-color);               /* readable text for the theme */
    border: 1px solid var(--bs-border-color);  /* subtle border that adapts */
    margin-right: auto;     /* push to the left */
}

/* For your own comments (on the right, green-ish background) */
.myMessage {
    /* background-color: #358cfc; */
	/* background-color: color-mix(in srgb, 100%, 50%); */
	/* color: #ffffff; */
    margin-left: auto;      /* push to the right */
	background-color: var(--bs-primary) !important;   /* nice card-like surface */
    color: var(--bs-light) !important;               /* readable text for the theme */
    /* border: 1px solid var(--bs-border-color);  subtle border that adapts */
    /* border-radius: var(--bs-border-radius); */

	/* margin-right: auto;     push to the left */

    /* You can also float or text-align right, but flex auto margin is simpler */
    text-align: left;       /* keep text left-aligned even if bubble is right */
}

.comment-replies {
	/* Only rounded on the right side */
	border-top-right-radius: 1rem;
	border-bottom-right-radius: 1rem;
	border-bottom-left-radius: 0.2rem;;
	border-top-left-radius: 0.2rem; /* no rounding on the left side */
	border-left: 3px solid #ddd; /* optional left border to separate from parent comment */
}

.likes {
	font-size: 1.0rem !important;
}
.likes-comment {
	font-size: 0.85rem !important;
}



/* If you want an arrow-like shape for the bubble:
   You can do something like a pseudo-element pointing out. */
.myComment2::after,
.othersComment2::after {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
}

.myComment2::after {
    border-width: 0.5rem 0 0.5rem 0.5rem;  /* top, right, bottom, left */
    border-color: transparent transparent transparent #358cfc; /* arrow color matches bubble */
    right: -0.4rem;
    top: 1rem;       /* adjust to place arrow where you want */
}

.othersComment2::after {
    border-width: 0.5rem 0.5rem 0.5rem 0;
    border-color: transparent #f1f1f1 transparent transparent;
    left: -0.4rem;
    top: 1rem;
}


@keyframes like-heart-animation {
	0%,
	to {
		opacity: 0;
		-webkit-transform: scale(0);
		transform: scale(0);
	}
	15% {
		opacity: 0.9;
		-webkit-transform: scale(1.2);
		transform: scale(1.2);
	}
	30% {
		-webkit-transform: scale(0.95);
		transform: scale(0.95);
	}
	45%,
	80% {
		opacity: 0.9;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
}

.likeStory {
	animation: 2s like-heart-animation ease-in-out forwards;
}

@keyframes unlike-heart-animation {
	0%,
	to {
		opacity: 0;
		-webkit-transform: scale(0);
		transform: scale(0);
	}
	15% {
		opacity: 0.9;
		-webkit-transform: scale(1.2);
		transform: scale(1.2);
	}
	30% {
		-webkit-transform: scale(0.95);
		transform: scale(0.95);
	}
	45%,
	80% {
		opacity: 0.9;
		-webkit-transform: scale(1);
		transform: scale(1);
	}
}

.unlikeStory {
	animation: 2s unlike-heart-animation ease-in-out forwards;
}


/* add to your global CSS or a module */
@keyframes pop {
    0%   { transform: scale(1); }
    50%  { transform: scale(1.9); }
    100% { transform: scale(1); }
}

.heart {
    cursor: pointer;
    transition: fill 0.2s ease;
    will-change: transform;
}

.heart.liked {
    fill: #e0245e;
}

.heart.animate {
    animation: pop 0.3s ease-out;
}

.bigHeart {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    pointer-events: none;
    animation: bigPop 0.8s forwards;
}

@keyframes bigPop {
    0%   { transform: translate(-50%, -50%) scale(0); opacity: 1; }
    50%  { transform: translate(-50%, -50%) scale(1.5); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.bigHeart svg {
    width: 120px;
    height: 120px;
    fill: rgba(224, 36, 94, 0.9);
}






@keyframes placeholderFade {
    0% {
        background-color: rgba(165, 165, 165, 0.1);
    }
    50% {
        background-color: rgba(165, 165, 165, 0.3);
    }
    100% {
        background-color: rgba(165, 165, 165, 0.1);
    }
}

.placeholder {
    animation: placeholderFade 1.5s infinite;
    height: 20px;
	min-width: 100px;
    margin: 0px 0;
    border-radius: 4px;
}

.table-placeholder {
    animation: placeholderFade 1.5s infinite;
    height: 20px;
    width: 100%;
    border-radius: 4px;
}

.table-header-sticky {
    /* Set an explicit or max height so the container can scroll */
    max-height: 80vh;
    overflow-y: auto;
}

.table-header-sticky thead th {
    position: sticky;
    top: 0;         /* Sticks to the top of the scrolling container */
    z-index: 2;     /* Ensures it's above the rows */
    background: #fff; /* So the header text isn’t obscured by rows scrolling underneath */
}

.skeleton-row {
    display: flex;
    justify-content: space-between;
}

.skeleton-cell {
    flex: 1;
    margin: 5px 5px;
    background-color: #eee;
}



.bootstrap .bg-light {
	background-color: rgb(242, 242, 246) !important;
}
.bootstrap .bg-success-light {
	background-color: rgba(40, 167, 69, 0.2) !important;
}
.bootstrap .bg-danger-light {
	background-color: rgba(255, 0, 0, 0.2) !important;
}
.bootstrap .bg-primary-light {
	background-color: rgba(0, 123, 255, 0.2) !important;
}
.bootstrap .bg-info-light {
	background-color: rgba(23, 162, 184, 0.2) !important;
}
.bootstrap .bg-warning-light {
	background-color: rgba(255, 193, 7, 0.6) !important;
}
.bootstrap .bg-secondary-light {
	background-color: rgba(108, 117, 125, 0.2) !important;
}

.bg-darkmode,
.bootstrap .bg-darkmode,
.bootstrap-dark .bg-darkmode {
	background-color: #191d21 !important;
}

.bg-lightmode,
.bootstrap .bg-lightmode,
.bootstrap-dark .bg-lightmode {
	background-color: #fff !important;
}
.bootstrap .border-darkmode,
.bootstrap-dark .border-darkmode,
.border-darkmode {
	border-color: #191d21 !important;
	border-width: 4px !important;
}
.bootstrap .border-lightmode,
.bootstrap-dark .border-lightmode,
.border-lightmode {
	border-color: #fff !important;
	border-width: 4px !important;
}

.rounded-lg.inboxBubble {
	border-radius: 1rem !important;
	font-size: 1.1em;
}

.bootstrap .rounded-none,
.bootstrap-dark .rounded-none {
    border-radius: 0rem 0rem 0rem 0rem !important;
}
.bootstrap .rounded-pill-left,
.bootstrap-dark .rounded-pill-left {
    border-radius: 50rem 0rem 0rem 50rem !important;
}
.bootstrap .rounded-pill-right,
.bootstrap-dark .rounded-pill-right {
	border-radius: 0rem 50rem 50rem 0rem !important;
}
.bootstrap .rounded-pill-both,
.bootstrap-dark .rounded-pill-both {
	border-radius: 50rem 50rem 50rem 50rem !important;
}

.btn-circle {
	border-radius: 50% !important;
}

.loginContainer {
	color: #ffffff;
}

.storyPoll .markup p {
	margin-bottom: 0;
}

.noscroll {
	overflow: hidden;
}

.bg-img-cover {
	background-size: cover;
	background-repeat: no-repeat;
	background-position: center;
}

.nospace .markup p {
	/* margin-bottom: 0; */
}


.bootstrap-dark .custom-file-label {
	border-radius: 10px;
	border-style: dashed;
}
.bootstrap-dark .custom-file-input:lang(en) ~ .custom-file-label::after {
	display: none;
	content: "";
}

.bootstrap .custom-file-label {
	border-radius: 10px;
	border-style: dashed;
}
.bootstrap .custom-file-input:lang(en) ~ .custom-file-label::after {
	display: none;
	content: "";
}


/* BS5 theme-aware file tile (replaces .custom-file from BS4) */
.fileDrop {
    position: relative;
    min-height: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .25rem;
    border: 1px dashed var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-secondary-bg);
    color: var(--bs-secondary-color);
    transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.fileDrop i { font-size: 1.6rem; }

.fileDrop:hover {
    background-color: var(--bs-tertiary-bg);
}

.fileDrop:focus-within {
    border-style: solid;
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25);
}

/* make the whole tile clickable, keep it accessible */
.fileDrop input[type='file'] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}





.profileSmallName {
	font-size: 18px;
	font-weight: 700;
}
.profileSmallHeader {
	font-size: 13px;
	font-weight: 700;
}
.profileSmallNumbers {
	font-size: 13px;
	font-weight: 400;
}
.profileMediumNumbers {
	font-size: 18px;
	font-weight: 510;
}
.header2 {
	font-size: 18px;
	font-weight: 700;
	line-height: 22px;
}
.header3 {
	font-size: 18px;
	font-weight: 400;
	line-height: 22px;
}
.header4 {
	font-size: 15px;
	font-weight: 510;
	line-height: 19px;
}

.widgetHeaderTop {
	font-size: 15px;
	font-weight: 700;
	line-height: 15px;
}


.widgetHeaderIcon {
	font-size: 16px;
	font-weight: 900;
	line-height: 24px;
}
.widgetHeaderIconLarge {
	font-size: 19px;
	font-weight: 900;
	line-height: 24px;
}
.widgetHeaderIconXLarge {
	font-size: 24px;
	font-weight: 900;
	line-height: 26px;
}
.widgetHeader {
	font-size: 15px;
	font-weight: 510;
	line-height: 22px;
}
.widgetHeaderLarge {
	font-size: 18px;
	font-weight: 510;
	line-height: 22px;
}
.widgetHeaderSmall {
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
}
.widgetSubHeaderSmall {
	font-size: 15px;
	font-weight: 400;
	line-height: 15px;
}

.widgetContentText {
	font-size: 28px;
	font-weight: 700;
	line-height: 30px;
	margin-top: 37px;
	margin-bottom: 37px;
}
.widgetContentTextMedium {
	font-size: 22px;
	font-weight: 600;
	line-height: 22px;
	margin-top: 10px;
}
.widgetContentTextSmall {
	font-size: 18px;
	font-weight: 510;
	line-height: 18px;
	margin-top: 10px;
}
.appHeader {
	line-height: 22px !important;
	font-size: 20px !important;
	font-weight: 400 !important;
}
.appMenu {
	line-height: 22px !important;
	font-size: 20px !important;
	font-weight: 400 !important;
}
.appNavigation {
	line-height: 22px !important;
	font-size: 17px !important;
	font-weight: 400 !important;
}
.appSegmentControllerPrimary {
	line-height: 18px !important;
	font-size: 15px !important;
	font-weight: 400 !important;
}
.appSegmentControllerSecondary {
	line-height: 22px !important;
	font-size: 17 !important;
	font-weight: 600 !important;
}
.markup-header .markup p {
	margin: 0px;
}

.markup > p:last-child {
	margin: 0px;
}
.markup img {
	max-width: 100%;
}

.drag {
	margin-right: 15px;
	cursor: move;
}

.tabbable .nav-tabs {
	overflow-x: auto;
	overflow-y:hidden;
	flex-wrap: nowrap;
 }
.tabbable .nav-tabs .nav-link {
	white-space: nowrap;
}

.box-header {
	font-size: 1.45em;
	line-height: 1.0em;
}
.box-header-info {
	font-size: 1.2em;
}
.bootstrap-dark .box-line {
	/* border-bottom: 2px solid #151515; */
}
.bootstrap .box-line {
	/* border-bottom: 2px solid rgb(242, 242, 246); */
}
.box-line:last-child {
	border-bottom: none;
}
.box-line:hover {
	cursor: pointer;
}

.box-line-add {
	font-size: 2.0em;
}
.bootstrap-dark .box-line-add {
	color: #505050;
}
.bootstrap .box-line-add {
	color: #d0d0d0;
}

.box-line-header {
	font-size: 0.8em !important;
	font-weight: 350;
}
.box-line-title {
	font-size: 1.1em;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 100%;
	white-space: nowrap;
}
.box-line-qty {
	font-size: 2.25em;
	font-weight: 100;
	width: 50px;
	min-width: 50px;
	display: grid;
  	align-items: center;
	justify-items: end;
}
.box-line-title-info {
	font-size: 0.9em;
	line-height: 1.0em;
	font-weight: 350;
}
.box-line-status {
	font-size: 1.0em;
}
.box-line-focused {
	border-left: 2px solid #007bff;
}
.box-line-info {
	font-size: 0.9em;
	font-weight: 350;
	text-overflow: ellipsis;
	overflow: hidden;
	max-width: 100%;
	white-space: nowrap;
}
.box-line-image {
	width: 100px !important;
	height: 90px;
}
.box-line-image-placeholder {
	width: 100% !important;
	height: 100% !important;
}
.box-line-image img {
	width: 100px !important;
	height: 90px;
	object-fit: cover;
}
.box-line-image-large {
	max-height: 300px;
	overflow: hidden;
}
.box-line-image-large img {
	max-height: 300px;
	object-fit: cover;
}

.bootstrap-dark .box-line-info {
	color: #505050;
}
.bootstrap .box-line-info {
	color: #a0a0a0;
}

.form-label-inline {
	position: absolute;
	top: 6px;
	left: 8px;
	font-size: 0.75em;
}

.bootstrap .fastlist-hide,
.bootstrap-dark .fastlist-hide {
	display: none !important;
}


.swipe-container > div:first-child {
    border-top-left-radius: 10px;
    border-bottom-left-radius: 10px;
}
.swipe-container > div:last-child {
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.swipe-container > div:not(:last-child) {
	margin-right: 2px;
}


/* Make the video container fill the entire window */
.video-container {
	/* position: fixed; */
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	background-color: rgba(0, 0, 0, 0.8); /* Optional: background color */
}

/* Make the video player responsive */
.video-player {
	max-width: 100%;
	max-height: 50vh;
}

.resultLine .selected {
	background-color: #007bff;
	color: #ffffff;
}

.toastui-calendar-dropdown-menu-item .toastui-calendar-content {
	font-size: 1.0rem !important;
	font-weight: 400 !important;
}

.no-select {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none;    /* Firefox */
    -ms-user-select: none;     /* IE/Edge */
}

.leaflet-marker-icon.leaflet-div-icon {
	background: transparent;
	border: none;
}

tr.deleted td {
	text-decoration: line-through;
}

.scroll-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.scroll-button {
	background-color: rgba(255, 255, 255, 1.0);
	border: none;
	cursor: pointer;
	font-size: 32px;
	padding: 10px;
	z-index: 1;
	opacity: 0.5;
	transition: opacity 0.3s;
	z-index: 100000;
	border: 2px solid #808080;
}

.scroll-button.left {
	position: absolute;
	top: 40%;
	left: 0 !important;
}

.scroll-button.right {
	position: absolute;
	top: 40%;
	right: 0 !important;
}

.scroll-button:hover {
	opacity: 1;
}

.scroll-button:disabled {
	opacity: 0.2;
	cursor: default;
}

@media print {
	/* Default page settings for receipts/invoices */
	@page {
		margin: 10mm;
	}

	/* Brother QL-820NWB label printer - continuous roll landscape (default) */
	@page landscape {
		size: auto 58mm; /* Landscape: auto width (continuous), 58mm height (roll width - padding) */
		margin: 0; /* No margins for label printing */
	}

	/* Portrait mode for shipping code labels, barcodes, and QR codes */
	@page portrait {
		size: 60mm auto; /* Portrait: 60mm width (label width), auto height (continuous) */
		margin: 0;
	}

	html, body {
		background: white !important;
		-webkit-print-color-adjust: exact !important;
		print-color-adjust: exact !important;
	}

    body * {
        visibility: hidden;
		margin: 0;
		padding: 0;
    }
    .receipt, .receipt * {
        visibility: visible;
    }
    .receipt {
        width: 100%;
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
		padding: 5mm;
        box-sizing: border-box;
        font-size: 9pt; /* Adjust as needed */
        color: black; /* Better for printing */
        background: white !important;
    }
	/* Prevent nested .receipt elements from getting extra padding */
	.receipt .receipt {
		position: relative;
		padding: 0;
	}
	/* Reset Bootstrap padding/margin utilities inside receipt for print */
	.receipt .px-5,
	.receipt .py-5,
	.receipt .p-5,
	.receipt .px-3,
	.receipt .py-3,
	.receipt .p-3,
	.receipt .mx-3,
	.receipt .my-3,
	.receipt .m-3 {
		padding: 0 !important;
		margin: 0 !important;
	}
	.receipt .mt-5 {
		margin-top: 1rem !important;
	}
	.receipt .box-container {
		padding: 0 !important;
		background: white !important;
	}

    /* Ensure stamps are visible and properly positioned in print */
    .receipt-stamp {
        visibility: visible !important;
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        background: transparent !important;
    }

    .barcodeLabelPage, .barcodeLabelPage * {
        visibility: visible;
    }
    .barcodeLabelPage {
        page: landscape; /* Use landscape named page */
        position: absolute;
        top: 0;
        left: 0;
        margin: 0;
		padding: 0;
		width: auto; /* Auto width for continuous roll in landscape */
		height: 58mm; /* Fixed height: 62mm roll width - 4mm padding */
        box-sizing: border-box;
        /* font-size: 9pt; Adjust as needed */
        color: black; /* Better for printing */
        /* background: #ff00ff; */ /* Debug: uncomment to see label boundaries */
    }
	.barcodeLabelPage .container {
		width: 100%;
		padding: 0;
		/* background-color: #00ff00; */
	}
	.barcodeLabelPage > svg {
		/* background-color: #ff0000; */
		width: 100%;
		height: 100%;
	}

	/* Portrait mode for shipping code labels */
	.barcodeLabelPagePortrait, .barcodeLabelPagePortrait * {
        visibility: visible;
    }
	.barcodeLabelPagePortrait {
		page: portrait; /* Use portrait named page */
		position: absolute;
		top: 0;
		left: 0;
		margin: 0;
		padding: 0;
		width: 60mm; /* Fixed width: 60mm label width */
		height: auto; /* Auto height for continuous roll in portrait */
		box-sizing: border-box;
		color: black;
		/* background: #ffff00; */ /* Debug: uncomment to see label boundaries */
	}
	.barcodeLabelPagePortrait .container {
		width: 100%;
		padding: 0;
	}

	.page-break {
        display: block;
        page-break-before: always; /* Force page breaks */
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    .printPrescription, .printPrescription * {
        visibility: visible;
    }
    .printPrescription {
		width: 100%;
        position: absolute;
		font-size: 13px;
        top: 0;
        left: 0;
        margin: 0;
        padding: 15mm;
        box-sizing: border-box;
    }
}

@media print {
    body * {
        visibility: hidden;
    }
    .viewForm, .viewForm * {
        visibility: visible;
    }
    .viewForm {
		width: 100%;
        position: absolute;
		font-size: 13px;
        top: 0;
        left: 0;
        margin: 0;
        padding: 5mm;
        box-sizing: border-box;
    }
}

.show-pad-down {
  	display: block !important;
}

@media (max-width: 767px) {
	.show-pad-down {
		display: none !important;
	}
}

.show-ipad-up-2 {
	color: var(--bs-tertiary-color) !important;
}

.show-ipad-up {
  	display: none !important;
}

/* show (as flex) on md+ (>=768px) */
@media (min-width: 768px) {
	.show-ipad-up {
		display: flex !important;
	}
}
@media (max-width: 767px) {
	.w-50.w-ipad {
		margin-top: 10px !important;
		width: 100% !important;
	}
	.w-25.w-ipad {
		margin-top: 10px !important;
		width: 50% !important;
	}
}
@media (max-width: 1024px) {
	.w-50.w-ipad {
		margin-top: 10px !important;
		width: 100% !important;
	}
	.w-25.w-ipad {
		margin-top: 10px !important;
		width: 50% !important;
	}
}

/* iOS */
@media (device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) {
    body {
        padding-top: 44px; /* iPhone X, iPhone XS */
    }
}

/* iOS-style Toggle Switches (Bootstrap 4.5 compatible) */
.custom-switch {
    position: relative;
    display: inline-block;
    width: auto !important;
    height: 34px;
}

.custom-switch .custom-control-input {
    opacity: 0;
    width: 0;
    height: 0;
}

.custom-switch .custom-control-label {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    border-radius: 34px;
    transition: .4s;
}

.custom-switch .custom-control-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.custom-switch .custom-control-input:checked + .custom-control-label {
    background-color: #007bff;
}

.custom-switch .custom-control-input:focus + .custom-control-label {
    box-shadow: 0 0 1px #007bff;
}

.custom-switch .custom-control-input:checked + .custom-control-label:before {
    transform: translateX(26px);
}

/* Medium switch variant */
.custom-switch-md {
    width: 48px;
    height: 28px;
}

.custom-switch-md .custom-control-label:before {
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
}

.custom-switch-md .custom-control-input:checked + .custom-control-label:before {
    transform: translateX(20px);
}

/* Small switch variant */
.custom-switch-sm {
    width: 36px;
    height: 20px;
}

.custom-switch-sm .custom-control-label {
    border-radius: 20px;
}

.custom-switch-sm .custom-control-label:before {
    height: 12px;
    width: 12px;
    left: 4px;
    bottom: 4px;
}

.custom-switch-sm .custom-control-input:checked + .custom-control-label:before {
    transform: translateX(16px);
}

/* Bootstrap 5 form-switch fallback */
.form-switch .form-check-input {
    width: 2em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: 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, 1.0%29'/%3e%3c/svg%3e");
    background-color: #007bff;
    border-color: #007bff;
}

/* Specific styling for your current markup */
.form-check.custom-switch .form-check-input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}

.form-check.custom-switch .form-check-label {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
    background-color: #ccc;
    border-radius: 34px;
    cursor: pointer;
    transition: .4s;
    padding-left: 0;
}

.form-check.custom-switch .form-check-label:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: .4s;
}

.form-check.custom-switch .form-check-input:checked + .form-check-label {
    background-color: #007bff;
}

.form-check.custom-switch .form-check-input:checked + .form-check-label:before {
    transform: translateX(26px);
}

.form-check.custom-switch-md .form-check-label {
    width: 48px;
    height: 28px;
}

.form-check.custom-switch-md .form-check-label:before {
    height: 20px;
    width: 20px;
}

.form-check.custom-switch-md .form-check-input:checked + .form-check-label:before {
    transform: translateX(20px);
}

/* Remove underlines from functional button-like links */
a.btn,
a.nav-link,
a.navbar-brand,
a.dropdown-item,
a.list-group-item,
a.breadcrumb-item,
a.page-link,
a.badge,
a.alert-link,
a.card-link,
a[role="button"],
a.font-style-narrow,
a.stretched-link,
.btn-link,
.islink,
.pointerCursor {
    text-decoration: none !important;
}

/* Hover states should also have no underline */
a.btn:hover,
a.nav-link:hover,
a.navbar-brand:hover,
a.dropdown-item:hover,
a.list-group-item:hover,
a.breadcrumb-item:hover,
a.page-link:hover,
a.badge:hover,
a.alert-link:hover,
a.card-link:hover,
a[role="button"]:hover,
a.font-style-narrow:hover,
a.stretched-link:hover,
.btn-link:hover,
.islink:hover,
.pointerCursor:hover {
    text-decoration: none !important;
}

/* Focus states should also have no underline */
a.btn:focus,
a.nav-link:focus,
a.navbar-brand:focus,
a.dropdown-item:focus,
a.list-group-item:focus,
a.breadcrumb-item:focus,
a.page-link:focus,
a.badge:focus,
a.alert-link:focus,
a.card-link:focus,
a[role="button"]:focus,
a.font-style-narrow:focus,
a.stretched-link:focus,
.btn-link:focus,
.islink:focus,
.pointerCursor:focus {
    text-decoration: none !important;
}

/* Dark mode ToastUI Calendar styles */
[data-bs-theme='dark'] .toastui-calendar-month-more-list,
[data-bs-theme='dark'] .toastui-calendar-month,
[data-bs-theme='dark'] .toastui-calendar-week,
[data-bs-theme='dark'] .toastui-calendar-day,
[data-bs-theme='dark'] .toastui-calendar-time,
[data-bs-theme='dark'] .toastui-calendar-timegrid,
[data-bs-theme='dark'] .toastui-calendar-daygrid,
[data-bs-theme='dark'] .toastui-calendar-panel,
[data-bs-theme='dark'] .toastui-calendar-panel-container {
    background-color: #212529 !important;
    color: #f8f9fa !important;
}

/* Calendar grid and header backgrounds */
[data-bs-theme='dark'] .toastui-calendar-header,
[data-bs-theme='dark'] .toastui-calendar-month-column-header,
[data-bs-theme='dark'] .toastui-calendar-week-header,
[data-bs-theme='dark'] .toastui-calendar-day-header {
    background-color: #343a40 !important;
    color: #f8f9fa !important;
    border-color: #495057 !important;
}

/* Calendar day cells */
[data-bs-theme='dark'] .toastui-calendar-month-daygrid-cell,
[data-bs-theme='dark'] .toastui-calendar-week-daygrid-cell,
[data-bs-theme='dark'] .toastui-calendar-timegrid-cell,
[data-bs-theme='dark'] .toastui-calendar-time-date,
[data-bs-theme='dark'] .toastui-calendar-time-timezone {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #f8f9fa !important;
}

/* Today cell highlighting */
[data-bs-theme='dark'] .toastui-calendar-month-daygrid-cell.toastui-calendar-today,
[data-bs-theme='dark'] .toastui-calendar-week-daygrid-cell.toastui-calendar-today {
    background-color: #0d6efd !important;
    color: #ffffff !important;
}

/* Weekend cells */
[data-bs-theme='dark'] .toastui-calendar-month-daygrid-cell.toastui-calendar-weekend,
[data-bs-theme='dark'] .toastui-calendar-week-daygrid-cell.toastui-calendar-weekend {
    background-color: #2d3748 !important;
}

/* Calendar events */
[data-bs-theme='dark'] .toastui-calendar-event,
[data-bs-theme='dark'] .toastui-calendar-event-bar,
[data-bs-theme='dark'] .toastui-calendar-time-event {
    color: #000000 !important; /* Keep event text black for readability on colored backgrounds */
}

/* Time grid lines */
[data-bs-theme='dark'] .toastui-calendar-timegrid-line,
[data-bs-theme='dark'] .toastui-calendar-time-hour-line {
    border-color: #495057 !important;
}

/* Current time indicator */
[data-bs-theme='dark'] .toastui-calendar-timegrid-current-time,
[data-bs-theme='dark'] .toastui-calendar-time-current-time {
    background-color: #dc3545 !important;
}

/* Dropdown menus */
[data-bs-theme='dark'] .toastui-calendar-dropdown-menu,
[data-bs-theme='dark'] .toastui-calendar-month-more-list {
    background-color: #343a40 !important;
    border-color: #495057 !important;
    box-shadow: 0 0.5rem 1rem rgba(255, 255, 255, 0.15) !important;
}

[data-bs-theme='dark'] .toastui-calendar-dropdown-menu-item,
[data-bs-theme='dark'] .toastui-calendar-month-more-item {
    color: #f8f9fa !important;
}

[data-bs-theme='dark'] .toastui-calendar-dropdown-menu-item:hover,
[data-bs-theme='dark'] .toastui-calendar-month-more-item:hover {
    background-color: #495057 !important;
}

/* Calendar navigation buttons */
[data-bs-theme='dark'] .toastui-calendar-btn,
[data-bs-theme='dark'] .toastui-calendar-btn-prev,
[data-bs-theme='dark'] .toastui-calendar-btn-next,
[data-bs-theme='dark'] .toastui-calendar-btn-today {
    background-color: #6c757d !important;
    color: #f8f9fa !important;
    border-color: #495057 !important;
}

[data-bs-theme='dark'] .toastui-calendar-btn:hover,
[data-bs-theme='dark'] .toastui-calendar-btn-prev:hover,
[data-bs-theme='dark'] .toastui-calendar-btn-next:hover,
[data-bs-theme='dark'] .toastui-calendar-btn-today:hover {
    background-color: #5c636a !important;
}

/* Calendar titles and text */
[data-bs-theme='dark'] .toastui-calendar-title,
[data-bs-theme='dark'] .toastui-calendar-month-title,
[data-bs-theme='dark'] .toastui-calendar-week-title {
    color: #f8f9fa !important;
}

/* Time grid labels */
[data-bs-theme='dark'] .toastui-calendar-timegrid-timezone-label,
[data-bs-theme='dark'] .toastui-calendar-time-timezone-label {
    color: #adb5bd !important;
}

/* Event popups and forms */
[data-bs-theme='dark'] .toastui-calendar-popup,
[data-bs-theme='dark'] .toastui-calendar-form {
    background-color: #343a40 !important;
    border-color: #495057 !important;
    color: #f8f9fa !important;
}

[data-bs-theme='dark'] .toastui-calendar-popup-form-row,
[data-bs-theme='dark'] .toastui-calendar-form-row {
    border-color: #495057 !important;
}

[data-bs-theme='dark'] .toastui-calendar-form-input,
[data-bs-theme='dark'] .toastui-calendar-popup-form-input {
    background-color: #212529 !important;
    border-color: #495057 !important;
    color: #f8f9fa !important;
}

/* Scrollbars for dark mode calendar */
[data-bs-theme='dark'] .toastui-calendar-time::-webkit-scrollbar,
[data-bs-theme='dark'] .toastui-calendar-timegrid::-webkit-scrollbar {
    width: 8px;
    background-color: #212529;
}

[data-bs-theme='dark'] .toastui-calendar-time::-webkit-scrollbar-thumb,
[data-bs-theme='dark'] .toastui-calendar-timegrid::-webkit-scrollbar-thumb {
    background-color: #495057;
    border-radius: 4px;
}

[data-bs-theme='dark'] .toastui-calendar-time::-webkit-scrollbar-thumb:hover,
[data-bs-theme='dark'] .toastui-calendar-timegrid::-webkit-scrollbar-thumb:hover {
    background-color: #6c757d;
}

/* base: default is `blue` so no attr needed */
html[data-hue='blue'], body[data-hue='blue'] {
    --bs-primary: var(--bs-blue);
    --bs-primary-rgb: var(--bs-blue-rgb);
    --bs-link-color: var(--bs-blue);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-blue), #000 20%);
    --bs-primary-text-emphasis: #052c65;
    --bs-primary-bg-subtle: #cfe2ff;
    --bs-primary-border-subtle: #9ec5fe;
}
html[data-hue='indigo'], body[data-hue='indigo'] {
    --bs-primary: var(--bs-indigo);
    --bs-primary-rgb: var(--bs-indigo-rgb);
    --bs-link-color: var(--bs-indigo);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-indigo), #000 20%);
    --bs-primary-text-emphasis: var(--bs-indigo);
    --bs-primary-bg-subtle: #e0cffc;
    --bs-primary-border-subtle: #c29ffa;
}
html[data-hue='purple'], body[data-hue='purple'] {
    --bs-primary: var(--bs-purple);
    --bs-primary-rgb: var(--bs-purple-rgb);
    --bs-link-color: var(--bs-purple);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-purple), #000 20%);
    --bs-primary-text-emphasis: var(--bs-purple);
    --bs-primary-bg-subtle: #e2d9f3;
    --bs-primary-border-subtle: #c5b3e6;
}
html[data-hue='pink'], body[data-hue='pink'] {
    --bs-primary: var(--bs-pink);
    --bs-primary-rgb: var(--bs-pink-rgb);
    --bs-link-color: var(--bs-pink);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-pink), #000 20%);
    --bs-primary-text-emphasis: var(--bs-pink);
    --bs-primary-bg-subtle: #f7d6e6;
    --bs-primary-border-subtle: #efadcd;
}
html[data-hue='red'], body[data-hue='red'] {
    --bs-primary: var(--bs-red);
    --bs-primary-rgb: var(--bs-red-rgb);
    --bs-link-color: var(--bs-red);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-red), #000 20%);
    --bs-primary-text-emphasis: var(--bs-danger-text-emphasis);
    --bs-primary-bg-subtle: var(--bs-danger-bg-subtle);
    --bs-primary-border-subtle: var(--bs-danger-border-subtle);
}
html[data-hue='orange'], body[data-hue='orange'] {
    --bs-primary: var(--bs-orange);
    --bs-primary-rgb: var(--bs-orange-rgb);
    --bs-link-color: var(--bs-orange);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-orange), #000 20%);
    --bs-primary-text-emphasis: var(--bs-orange);
    --bs-primary-bg-subtle: #ffe5d0;
    --bs-primary-border-subtle: #fecba1;
}
html[data-hue='yellow'], body[data-hue='yellow'] {
    --bs-primary: var(--bs-yellow);
    --bs-primary-rgb: var(--bs-yellow-rgb);
    --bs-link-color: var(--bs-yellow);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-yellow), #000 25%);
    --bs-primary-text-emphasis: var(--bs-warning-text-emphasis);
    --bs-primary-bg-subtle: var(--bs-warning-bg-subtle);
    --bs-primary-border-subtle: var(--bs-warning-border-subtle);
}
html[data-hue='green'], body[data-hue='green'] {
    --bs-primary: var(--bs-green);
    --bs-primary-rgb: var(--bs-green-rgb);
    --bs-link-color: var(--bs-green);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-green), #000 20%);
    --bs-primary-text-emphasis: var(--bs-success-text-emphasis);
    --bs-primary-bg-subtle: var(--bs-success-bg-subtle);
    --bs-primary-border-subtle: var(--bs-success-border-subtle);
}
html[data-hue="teal"], body[data-hue="teal"] {
    --bs-primary: var(--bs-teal);
    --bs-primary-rgb: var(--bs-teal-rgb);
    --bs-link-color: var(--bs-teal);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-teal), #000 20%);
    --bs-primary-text-emphasis: var(--bs-teal-text-emphasis, #0f5132);
    --bs-primary-bg-subtle: var(--bs-teal-bg-subtle, #d2f4ea);
    --bs-primary-border-subtle: var(--bs-teal-border-subtle, #a6e9d5);
}
html[data-hue="cyan"], body[data-hue="cyan"] {
    --bs-primary: var(--bs-cyan);
    --bs-primary-rgb: var(--bs-cyan-rgb);
    --bs-link-color: var(--bs-cyan);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-cyan), #000 20%);
    --bs-primary-text-emphasis: var(--bs-info-text-emphasis);
    --bs-primary-bg-subtle: var(--bs-info-bg-subtle);
    --bs-primary-border-subtle: var(--bs-info-border-subtle);
}

/* optional gray palette (maps primary to gray) */
html[data-hue='gray'], body[data-hue='gray'] {
    --bs-primary: var(--bs-gray-700);
    --bs-primary-rgb: 73,80,87;
    --bs-link-color: var(--bs-gray-700);
    --bs-link-hover-color: color-mix(in srgb, var(--bs-gray-700), #000 20%);
    --bs-primary-text-emphasis: var(--bs-gray-800);
    --bs-primary-bg-subtle: var(--bs-gray-100);
    --bs-primary-border-subtle: var(--bs-gray-300);
}

/* === Buttons: make .btn-primary & .btn-outline-primary follow the current hue === */
.btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);

    /* hover/active states derived from current hue */
    --bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary), #000 12%);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary), #000 18%);

    --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary), #000 18%);
    --bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary), #000 24%);

    --bs-btn-disabled-bg: color-mix(in srgb, var(--bs-primary), #000 30%);
    --bs-btn-disabled-border-color: color-mix(in srgb, var(--bs-primary), #000 30%);
}

.btn-outline-primary {
    --bs-btn-color: var(--bs-primary);
    --bs-btn-border-color: var(--bs-primary);
    --bs-btn-bg: transparent;

    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: var(--bs-primary);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary), #000 12%);

    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: color-mix(in srgb, var(--bs-primary), #000 12%);
    --bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary), #000 18%);

    --bs-btn-disabled-color: color-mix(in srgb, var(--bs-primary), #000 35%);
    --bs-btn-disabled-border-color: color-mix(in srgb, var(--bs-primary), #000 35%);
}

/* Optional: badges that follow hue */
.text-bg-primary {
    background-color: var(--bs-primary) !important;
    color: #fff !important;
}

/* Background utility that follows hue */
.bg-primary {
	background-color: var(--bs-primary) !important;
	color: #fff !important;
}


/* color-picker.css */
.colorGrid {
    --columns: 8;
    display: grid;
    grid-template-columns: repeat(var(--columns), 32px);
    gap: 8px;
}

.colorSwatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.15);
    padding: 0;
    cursor: pointer;
    position: relative;
    outline: none;
    transition: transform 80ms ease, box-shadow 80ms ease;
}

.colorSwatch:hover { transform: scale(1.06); }
.colorSwatch:focus-visible { box-shadow: 0 0 0 3px rgba(0,0,0,0.25); }

.colorSwatch[aria-checked='true'] {
    /* uses button's currentColor set in JS for ring */
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px currentColor;
    transform: scale(1.08);
}

.swatchMark {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 18px;
    font-weight: 700;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.visuallyHidden {
    position: absolute !important;
    height: 1px; width: 1px;
    overflow: hidden; clip: rect(1px, 1px, 1px, 1px);
    white-space: nowrap;
}
