/*
 * 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; }

/* Company selection after the user id: full-width grid of cards. */
form[name="loginform1"] .row:has(#companyFieldset) > .col-md-4 { display: none; }
form[name="loginform1"] .row:has(#companyFieldset) > .col-md-8 { flex: 0 0 100%; max-width: 100%; }
#head-container { max-width: 1100px; margin: 0 auto; padding: 32px 16px 0; }
#head-container > * { margin: 0; }
#companyFieldset { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; padding: 0; margin: 0; background: none; border: 0; }
#companyFieldset > * { width: auto; max-width: none; min-width: 0; margin: 0; }
#companyFieldset .card { border-left-width: 6px !important; border-radius: 8px; border-color: #e3e7ec; box-shadow: 0 1px 4px rgba(0, 0, 0, .06); transition: box-shadow .15s, transform .15s; }
#companyFieldset .card:hover { box-shadow: 0 6px 18px rgba(0, 0, 0, .12); transform: translateY(-1px); }
#companyFieldset .card-header { background: #fff; border-bottom: 1px solid #e3e7ec !important; font-weight: 600; letter-spacing: .02em; }
#companyFieldset .card-header a { text-decoration: none; }
#companyFieldset .card-title { margin: 0 0 2px; font-size: 16px; font-weight: 600; color: #222; }
#companyFieldset .card-text { margin: 0; font-size: 13px; color: #6b7684; }
@media (prefers-reduced-motion: reduce) {
	#companyFieldset .card { transition: none; }
	#companyFieldset .card:hover { transform: none; }
}

/* 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; }
