
@import url('/resources/css/shared-theme.css');

/* ==========================================================================
   Author's custom styles
   ========================================================================== */
@font-face {
	font-family: Lobster;
	src: url("../fonts/Lobster 1.4.otf") format("opentype");
}

@font-face {
	font-family: Alcubierre;
	src: url("../fonts/Alcubierre.otf") format("opentype");
}

@font-face {
    font-family: 'Kirvy';
    src: url('../fonts/Kirvy-Thin.otf') format('opentype');
    font-weight: 100;
}
@font-face {
    font-family: 'Kirvy';
    src: url('../fonts/Kirvy-Light.otf') format('opentype');
    font-weight: lighter;
}
@font-face {
    font-family: 'Kirvy';
    src: url('../fonts/Kirvy-Regular.otf') format('opentype');
    font-weight: normal;
}
@font-face {
    font-family: 'Kirvy';
    src: url('../fonts/Kirvy-Bold.otf') format('opentype');
    font-weight: bold;
    font-stretch: expanded;
}

html {
	font-size: 16px;
}

h1, h2, h3, h4 {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	letter-spacing: normal;
	text-shadow: none;
}
h1, h2 {
	font-weight:600;
}

body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
	font-size: 15px;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	background: linear-gradient(180deg, #f2f5f9 0%, #eef2f7 100%);
}

hr {
	border-top: 1px solid #aaa;
}
.container{
	box-shadow: 0px 3px 3px #A0A0A0;
	flex: 1;
	position:relative;
	/* background-image: url("../img/template/background-dark.jpg");  */
	/* background-image: url("../img/template/brushed-metal-s.jpg"); */
	background-repeat: repeat;
	padding:0 50px;
	background-color:white;
	color: #222;
	max-width: none;
	width: 100%;
}
.containerwidth {
	width:auto !important;
}

.iframecontainer {
	padding:0 5px 5px 5px !important;
	margin:10px auto;
	max-width: none !important;

}

.container .modal-body {
	background-color:#F0F0F0;
	color: #222;
	min-height:250px;
	padding: 20px;
}

.container .modal-body a, 
a.tradlink  {
	color:#1d5f8a;
	text-decoration: underline;
}

.container .modal-body a.btn{
	text-decoration: none;
}

.container .modal-header h1,
.container .modal-header h2,
.container .modal-header h3,
.container .modal-header h4
{
	font-weight:bold;
	text-shadow:none;
	color:#eee;
	margin-top:5px;
	margin-bottom:5px;
}

.navbar {
	border-top: 0;
	border-left: 0;
	border-right: 0;
	box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}
.modal-header-app {
	background-color: #133f5e;
	color: #fff;
	border-radius: 4px 4px 0 0;
}
.modal-header-app .modal-title { color: #fff; }
.modal-header-app .close { color: #fff; opacity: 0.8; text-shadow: none; }
.modal-header-app .close:hover { opacity: 1; }
.navbar .container {
	box-shadow: none;
}

#contentwrap {
	padding-top: 22px;
}

footer {
	background-color: #133f5e;
	background-image: none;
	border-top: 1px solid #0d2d44;
	text-align: center;
	height: 40px;
	line-height: 40px;
	flex-shrink: 0;
}


footer a{
	color: rgba(255,255,255,0.8);
}

.morelink {
	text-align:right;
}

.morelink a {
	color: #1d5f8a;
}


#loginform label {
	width:auto;
	min-width:130px;
	display:inline-block;
}

#loginform .logininput {
	width:280px;
}

#loginform form > div {
	display:flex;
	align-items:center;
	gap:8px;
	margin-bottom:8px;
}

#loginform .loginhint {
	margin: 4px 0 10px 50px;
	max-width: 220px;
	font-size: 12px;
	line-height: 1.3;
	color: #555;
}

#logingo {
	float: right;
	background-color: #1d5f8a;
	color: white;
	font-weight: bold;
	padding: 3px 10px;
	text-decoration: none;
	border-radius: 3px;
	font-size: 18px;
	cursor: pointer;
	height: 50px;
	margin-left: 3px;
	margin-bottom: 10px;
	margin-top: 3px;
}

#logingo:hover {
	background-color: #133f5e;
	box-shadow: 0px 0px 1px #777;
}

#loginform .resetseclink {
	color: #1d5f8a;
}


/*
#loginbox:hover #loginform {
	display: block;
}
*/


#logo {
	height: 45px;
	margin-left: 0;
	margin-top: 0;
}


#headersearch input {
	margin:10px 0px 5px 10px;
	color:black;
	width:100px;
	border-radius:5px;
	padding:1px 5px;
	background-color:white;
}
#headersearch button {
	margin:10px 5px 0 0;
	background:none;
	border:none;
}



.introtext {
	border: 1px solid #c5d9ed;
	padding: 16px 18px;
	margin-bottom: 15px;
	background: #edf4fb;
	border-radius: 6px;
}

.inline-block {
	display:inline-block;
}

.introtext p {
	margin:0.5em 0;
}

.introtext p:first-child {
	margin-top:0;
}

.introtext p:last-child {
	margin-bottom:0;
}

.error, .warning {
	padding:25px;
	border:1px solid #FB4717;
	border-radius:5px;
	color: #FB4717;
	margin:5px;
	display:inline-block;
	background-color:rgba(0,0,0,0.1);
	background:linear-gradient(135deg, #f0f0f0 0%,#fafafa 100%);
	font-size:110%;
}

.info {
	padding:10px;
	border:1px solid #1d5f8a;
	color: #1d5f8a;
	margin:5px;
	display:inline-block;
}

.valerr {
	color: red;
}

.taberr {
	border: 1px solid #A00 !important;
	box-shadow: 0px 0px 3px #F66;
	background: rgba(255,0,0,0.6) !important;
}

.help {
	display:inline-block;
	height:20px;
	width:20px;
	background-image: url("../img/icons/helpbw.png");
}

.subarea{
	padding:15px;
	background: linear-gradient(180deg, #f9fbfd 0%, #f0f5fa 100%);
	border:1px solid #d2dbe6;
	border-radius:10px;
	box-shadow: 0 6px 16px rgba(15, 45, 72, 0.07);
}

.nopadding {
   padding-left: 0 !important;
   padding-right: 0 !important;
}

.noleftpadding {
   padding-left: 0 !important;
}

/* tooltip  (using bootstrap) */
.tooltiphelp {
	padding-bottom:1px;
	height:22px;
	padding-left:5px;
	padding-right:5px;
	vertical-align:bottom;
}

.smalltip {
	padding-left:3px;
	padding-right:3px;
	height:16px;
	vertical-align:text-top;
}

img.popoverhelp {
	width: 20px;
	height: 20px;
	padding: 0;
}
.tooltip {
	z-index:9999
}
.text-center th, 
.text-center td,
.text-center
 {
	text-align:center;
}

.text-left {
	text-align:left;
}
.text-right {
	text-align:right;
}
.first-cell-left td:first-child, .first-cell-left th:first-child {
	text-align:left;
}
.modalimage {
	display:none;
}

.thumbnail {
	display:inline-block;
}

/* common form styles */

.editstep  {
	display:inline-block;
	vertical-align:top;
	width:100%;
	margin-bottom:30px;
}

.steptitle {
	font-weight:bold;
	background-color: #aaa;
	font-weight: bold;
	padding: 4px 10px;
	background: linear-gradient(70deg, rgb(200, 200, 200) 0%,rgb(230, 230, 230) 90%);

	border-radius: 3px;
}

.editstep textarea {
	width:100%;
}

/* additional bootstrap style classes */
.vtop0 { margin-top:0px !important; }
.vtop5 { margin-top:5px !important; }
.vtop7 { margin-top:7px !important; }
.vtop10 { margin-top:10px !important; }
.vtop15 { margin-top:15px !important; }
.vtop17 { margin-top:17px !important; }
.vtop30 { margin-top:30px !important; }

.vbottom0 { margin-bottom:0px !important; }
.vbottom5 { margin-bottom:5px !important; }
.vbottom7 { margin-bottom:7px !important; }
.vbottom10 { margin-bottom:10px !important; }
.vbottom15 { margin-bottom:15px !important; }
.vbottom17 { margin-bottom:17px !important; }
.vbottom30 { margin-bottom:30px !important; }

.vleft15 { padding-left:15px !important; }
.vleft30 { padding-left:30px !important; }

.verysmall {
	font-size:0.7em;
}

.row {
	margin-left: -20px;
	margin-right: -20px;
}
[class*='col-'] {
	padding-left: 20px;
	padding-right: 20px;
}

.no-gutter {
	padding-right:0;
	padding-left:0;
}
.no-gutter > [class*='col-'] {
	padding-right:0;
	padding-left:0;
}

.form-inline .prevue-wrapper {
	display:inline-block;
}

.altrow{
	background-color:rgba(255,255,255,0.05);
}
/* bootstrap color fix (merge into bootstrap css at some point */

.fullwidth{
	width:100%;
}

.table-striped > tbody > tr:nth-of-type(2n+1) {
	background-color: #f7fbff;
}

.table > tbody > tr > th, .table > tbody > tr > td {
	border-top-color:#d8e1eb;
}

.form-control, .input-group-addon {
	border:1px solid #b8c5d3;
	background-color:#FAFAFA;
}

.form-control:focus {
	border-color: #1d5f8a;
	box-shadow: 0 0 0 3px rgba(29, 95, 138, 0.14);
}

.plainpage-shell {
	max-width: 1060px;
	margin: 0 auto 24px auto;
}

.plain-card {
	background: linear-gradient(165deg, #ffffff 0%, #f8fbfe 100%);
	border: 1px solid #d2dbe6;
	border-radius: 12px;
	padding: 18px 20px;
	margin-bottom: 18px;
	box-shadow: 0 10px 24px rgba(15, 45, 72, 0.08);
}

.plain-form .form-group {
	margin-bottom: 14px;
}

.plain-form .btn {
	min-width: 150px;
}

.community-results {
	border-radius: 10px;
	overflow: hidden;
	background: #fff;
	border: 1px solid #d6e0ea;
	box-shadow: 0 8px 18px rgba(15, 45, 72, 0.08);
}

.community-results thead th {
	background: #e8f1f8;
	border-bottom: 1px solid #c8d8e7;
	color: #123a58;
}

.branch-chip {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 5px 9px;
	border: 1px solid #c9d7e6;
	border-radius: 16px;
	background: #f4f9fd;
	line-height: 1.35;
}

.branch-chip small {
	color: #4c5c6c;
}

@media (max-width: 768px) {
	.plain-card {
		padding: 14px;
		border-radius: 10px;
	}

	.plain-form .btn {
		min-width: 0;
		width: 100%;
	}

	.plainpage-sidebar {
		margin-top: 18px;
	}
}

.plain-legal {
	line-height: 1.7;
	font-size: 15px;
}

.plain-legal h1 {
	margin-top: 0;
	margin-bottom: 12px;
	font-size: clamp(1.5rem, 2.8vw, 2rem);
}

.plain-legal h2,
.plain-legal h3 {
	margin-top: 26px;
	margin-bottom: 10px;
	color: #123a58;
}

.plain-legal p,
.plain-legal li {
	color: #2b3946;
}

.plain-legal ul,
.plain-legal ol {
	padding-left: 22px;
	margin-bottom: 14px;
}

.legal-close-btn {
	margin-bottom: 16px;
}

.nav-tabs {
	margin-bottom: 0;
	border-bottom-color: #1d5f8a;
}

.nav-tabs > li > a {
	background-color: #1d5f8a;
	color: #fff;
	border: 1px solid #133f5e;
	border-bottom: none;
	margin-right: 3px;
	border-radius: 4px 4px 0 0;
}

.nav-tabs > li > a:hover,
.nav-tabs > li > a:focus {
	background-color: #2c7ab5;
	color: #fff;
	border-color: #1d5f8a;
	border-bottom: none;
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
	background-color: #fff;
	color: #1d5f8a;
	border: 1px solid #1d5f8a;
	border-bottom-color: #fff;
	font-weight: 600;
}

/* Shared unsaved indicator pill used across merchant edit pages */
.form-unsaved-indicator,
.merchant-unsaved-indicator,
.merchant-account-unsaved-indicator {
	display: none;
	padding: 5px 9px;
	border: 1px solid #e4c780;
	border-radius: 999px;
	background: #fff8e7;
	color: #755200;
	font-size: 12px;
	font-weight: 600;
	line-height: 1.2;
	white-space: nowrap;
}

.form-unsaved-indicator.is-visible,
.merchant-unsaved-indicator.is-visible,
.merchant-account-unsaved-indicator.is-visible {
	display: inline-block;
}

.form-unsaved-indicator.is-saving,
.merchant-unsaved-indicator.is-saving,
.merchant-account-unsaved-indicator.is-saving {
	border-color: #c9d4f5;
	background: #edf2ff;
	color: #2f4a91;
}

.welcomemsg {
	float: right;
	margin: 8px 16px 0 0;
	font-size: 14px;
	color: #555;
}

@media (max-width: 767px) {
	.welcomemsg {
		float: none;
		font-size: 12px;
		color: #888;
		margin: 0 0 6px 0;
		text-align: right;
	}
}


.xdebug-error, .xe-notice {
	color:black !important;
}
	
	
.disabled {
	color:#888;
}

.ui-datepicker{ 
	z-index: 9999 !important;
}

.rgraphcanvas {
	width:100%;
}
.rgraphcanvas canvas{
	display: table;
    border-radius: 5px;
    box-shadow: 3px 3px 3px #202020;
    padding:10px;
    margin:0 auto;
	/* Permalink - use to edit and share this gradient: http://colorzilla.com/gradient-editor/#eaeaea+0,dbdbdb+50,d1d1d1+56,fefefe+100&0.5+0,0.5+100 */
	background: -moz-linear-gradient(-35deg,  rgba(255,255,255,0.55) 0%, rgba(255,255,255,0.25) 50%, rgba(255,255,255,0.3) 56%, rgba(255,255,255,0.5) 100%); /* FF3.6-15 */
	background: -webkit-linear-gradient(-35deg,  rgba(255,255,255,0.55) 0%,rgba(255,255,255,0.25) 50%,rgba(255,255,255,0.3) 56%,rgba(255,255,255,0.5) 100%); /* Chrome10-25,Safari5.1-6 */
	background: linear-gradient(145deg,  rgba(255,255,255,0.55) 0%,rgba(255,255,255,0.25) 50%,rgba(255,255,255,0.3) 56%,rgba(255,255,255,0.5) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#50ffffff', endColorstr='#80ffffff',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}


.clearfix {
  overflow: visible; zoom:1;
}

.subtabs  {
	padding-top:15px;
	padding-bottom:15px;
	background:rgba(255,255,255,0.1);
	border:1px solid black;
	border-radius:5px;
}

pre.prewrap {
	word-break: break-all; /* webkit /
	word-wrap: break-word;
	white-space: pre;
	white-space: -moz-pre-wrap; / fennec /
	white-space: pre-wrap;
	white-space: pre\9; / IE7+ */
}

div.spinner {
	margin-top:35px;
	margin-bottom:35px;
}

/* place holder select options */
select:required:invalid {
  color: gray;
}
option {
  color: #222;
}
option:disabled {
  color: grey;
}

form.form-submitted textarea:invalid,
form.form-submitted input:invalid,
form.form-submitted select:invalid
{
	border: 1px solid #800;
	box-shadow: 0px 0px 3px #C55;
}


/* Adjust for login form */
#loginform .password-field-wrapper {
	position: relative;
}

/* Suppress native IE/Edge password reveal controls */
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear {
	display: none;
}

#loginform .password-field-wrapper label {
	display: block;
	margin-bottom: 5px;
}

#loginform .password-field {
	width: 100%;
	padding-right: 35px;
}

.btn-primary {
	background-color: #1d5f8a;
	border-color: #1d5f8a;
}
.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
	background-color: #133f5e;
	border-color: #133f5e;
}

/* Site-wide modal header theme */
.modal-header {
	background-color: #1d5f8a;
	border-bottom: 1px solid #133f5e;
	color: #fff;
	border-radius: 5px 5px 0 0;
}

.modal-header .modal-title {
	color: #fff;
}

.modal-header .close {
	color: #fff;
	opacity: 0.9;
	text-shadow: none;
}


/* Responsive adjustments */
@media (max-width: 768px) {
	#loginmenu,
	#loginform {
		max-width: calc(100vw - 24px);
	}

	#loginmenu {
		width: auto;
		left: 0;
		right: auto;
	}

	#loginbox .dropdown-menu::before {
		left: 18px;
		right: auto;
	}

	#loginform form > div {
		gap: 6px;
		margin-bottom: 6px;
	}

	#loginform label {
		min-width: 108px;
	}

	#loginform .logininput {
		width: min(58vw, 240px);
	}
}


/* Image library picker — shared between topic and event forms */
.topic-img-row { display: flex; align-items: flex-start; gap: 0; flex-wrap: wrap; border: 1px solid #ddd; border-radius: 6px; padding: 12px; background: #fafafa; }
.topic-img-left { flex: 0 0 auto; }
.topic-img-or { flex: 0 0 auto; align-self: center; padding: 0 14px; color: #999; font-style: italic; font-size: 13px; }
.topic-img-right { flex: 1 1 180px; min-width: 160px; }
.topic-img-upload-label { font-weight: normal; margin-bottom: 4px; display: block; }
.topic-img-selector { display: flex; align-items: center; gap: 10px; }
#topic-image-preview { display: flex; align-items: center; gap: 12px; }
#evt-image-preview { display: flex; align-items: center; gap: 12px; }
.topic-img-preview-hidden { display: none !important; }
.topic-image-thumb { max-height: 80px; max-width: 140px; object-fit: cover; border: 2px solid #ccc; border-radius: 4px; }
#topic-image-thumb, #evt-image-thumb { max-height: 80px; max-width: 140px; object-fit: cover; cursor: pointer; border: 2px solid #ccc; border-radius: 4px; }
#topic-image-thumb:hover, #evt-image-thumb:hover { border-color: #888; }
.topic-img-cat-heading { margin: 16px 0 8px; font-weight: 600; border-bottom: 1px solid #ddd; padding-bottom: 4px; }
.topic-img-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 4px; }
.topic-img-tile { width: 130px; cursor: pointer; border: 2px solid transparent; border-radius: 6px; overflow: hidden; text-align: center; background: #f5f5f5; transition: border-color 0.15s; }
.topic-img-tile:hover { border-color: #aaa; }
.topic-img-tile.selected { border-color: #007bff; box-shadow: 0 0 0 2px #007bff44; }
.topic-img-tile img { width: 100%; height: 90px; object-fit: cover; display: block; }
.topic-img-tile span { font-size: 11px; padding: 3px 4px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #333; }
#topic-img-lightbox, #evt-img-lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); z-index: 9999; justify-content: center; align-items: center; cursor: zoom-out; }
#topic-img-lightbox.open, #evt-img-lightbox.open { display: flex; }
#topic-img-lightbox-img, #evt-img-lightbox-img { max-width: 90%; max-height: 90%; border-radius: 6px; box-shadow: 0 4px 32px rgba(0,0,0,0.5); }

/* Demo mode banner */
#demo-banner {
    background: #1a6b3c;
    color: #fff;
    text-align: center;
    padding: 8px 16px;
    font-size: 13px;
}
#demo-banner a { color: #a8e6c0; text-decoration: underline; }
#demo-banner a:hover { color: #fff; }
