/*
 * Login page (WEB-INF/jsp/index.jsp): shared look for every customer's
 * webeditor YGSTART layout. Targets the markup all YGSTART files share
 * (navbar + form-inline + {#SHOPS} + the {#COMDEP} row) and YGFOOTER.
 */

/* Top bar: login fields on the right, solid login button, inline "stay logged in". */
form[name="loginform1"] nav.navbar-expand-lg { border-bottom: 1px solid #e3e7ec; }
form[name="loginform1"] #navbarSupportedContent > div:last-child { margin-left: auto; }
form[name="loginform1"] .form-inline .btn-outline-success { color: #fff; background-color: #198754; border-color: #198754; }
form[name="loginform1"] .form-inline .btn-outline-success:hover,
form[name="loginform1"] .form-inline .btn-outline-success:focus-visible { background-color: #157347; border-color: #146c43; }
form[name="loginform1"] .form-inline .row > .col-12:last-child { flex: 0 0 auto; width: auto; }
form[name="loginform1"] .form-inline .row > .col-12:last-child span { color: #6b7684; white-space: nowrap; }
form[name="loginform1"] input[name="stayloggedin"] { vertical-align: middle; margin-left: 4px; }

/* Webshops dropdown: small logos next to the name, everything inside the menu. */
form[name="loginform1"] nav .dropdown-menu { min-width: 240px; padding: 6px 0; border-color: #e3e7ec; box-shadow: 0 4px 16px rgba(0, 0, 0, .08); }
form[name="loginform1"] nav .dropdown-item { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 14px; white-space: nowrap; }
form[name="loginform1"] nav .dropdown-item img { width: 48px; height: 28px; object-fit: contain; flex: none; }

/* Customer logo in the top bar, any shape, 40px high. */
form[name="loginform1"] .navbar-brand img.yg-brand { height: 40px; width: auto; max-width: 160px; object-fit: contain; }

/* Company selection after the user id: compact tiles on one light panel in the right-hand column. */
#head-container { padding: 24px 16px 0 0; }
#head-container > * { margin: 0; }
#companyFieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 16px; margin: 0; background: #f5f6f8; border: 1px solid #e3e7ec; border-radius: 10px; }
#companyFieldset > * { width: auto; max-width: none; min-width: 0; margin: 0; }
#companyFieldset .card { border-left-width: 5px !important; border-radius: 6px; border-color: #e3e7ec; box-shadow: none; transition: box-shadow .15s, transform .15s; }
#companyFieldset .card:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, .12); transform: translateY(-1px); }
#companyFieldset .card-header { padding: 6px 10px 0; background: transparent; border-bottom: 0 !important; font-size: 12px; font-weight: 600; letter-spacing: .03em; }
#companyFieldset .card-header a { text-decoration: none; }
#companyFieldset .card-body { padding: 2px 10px 8px; }
#companyFieldset .card-title { margin: 0; font-size: 15px; font-weight: 600; color: #222; }
#companyFieldset .card-text { margin: 0; font-size: 12px; color: #6b7684; line-height: 1.3; }
@media (prefers-reduced-motion: reduce) {
	#companyFieldset .card { transition: none; }
	#companyFieldset .card:hover { transform: none; }
}

/* "powered by YGlobal" line under a customer logo. */
.yg-powered { text-align: center; margin: 8px 0 16px; }
.yg-powered a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #6b7684; text-decoration: none; }
.yg-powered a:hover, .yg-powered a:focus-visible { color: #1a5f9e; }
.yg-powered img { width: 20px; height: 20px; }

/* Footer (YGFOOTER) pinned to the bottom; its Bootstrap 3 class does nothing in Bootstrap 5. */
body { padding-bottom: 64px; }
nav.navbar-fixed-bottom { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; background: #f8f9fa; border-top: 1px solid #e3e7ec; font-size: 12px; color: #6b7684; }
nav.navbar-fixed-bottom .container-fluid { flex-wrap: wrap; gap: 4px; }
nav.navbar-fixed-bottom .navbar-text { margin: 0; }
