/* The home of the portal, the tiles of the groups over a list and the top row of a section - by the
   approved samples (макети/акаунти-2026-10-20/edin-portal.html, макети/нов-вид-2026-10-14/portal-plochki.html);
   drawn by HVAC CRM, classes HVAC_New_Portal and HVAC_New_Portal_List. */
.ovemo-user { font-size: 13px; opacity: .9; }
.ovemo-user a { color: #fff; }

.ovemo-home,
.ovemo-section { display: grid; gap: 18px; }

.ovemo-hello { margin: 4px 0 0; text-align: center; font-weight: 600; font-size: 26px; color: var(--ovemo-navy); }
.ovemo-hello-sub { margin: -10px 0 0; text-align: center; color: var(--ovemo-muted); font-size: 13px; }
.ovemo-cta { margin: 0; text-align: center; }
.ovemo-cta .ovemo-btn { display: inline-block; text-decoration: none; }

.ovemo-section-label { margin: 6px 0 -4px; display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ovemo-muted); font-weight: 600; }
.ovemo-section-label::after { content: ""; flex: 1; height: 1px; background: var(--ovemo-line); }

/* The tiles of the home ("Work", "Your data"). */
.ovemo-mods { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ovemo-mod { flex: 0 1 270px; min-width: 0; text-align: left; color: inherit; text-decoration: none; background: var(--ovemo-tile); border: 1px solid transparent; border-radius: 10px; padding: 16px 18px; display: grid; gap: 6px; transition: background .15s, transform .15s, box-shadow .15s; }
.ovemo-mod:hover { background: var(--ovemo-tile-hover); transform: translateY(-1px); box-shadow: var(--ovemo-shadow); }
.ovemo-mod:focus-visible { outline: 2px solid var(--ovemo-accent); outline-offset: 2px; }
.ovemo-mod-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ovemo-mod-name { font-weight: 600; font-size: 16px; }
.ovemo-mod-num { font-weight: 600; color: var(--ovemo-navy); font-variant-numeric: tabular-nums; }
.ovemo-mod-desc { font-size: 13px; color: var(--ovemo-muted); line-height: 1.4; }
.ovemo-mod-todo { font-size: 12px; color: var(--ovemo-warn); font-weight: 600; }
.ovemo-mod-line { font-size: 12px; color: var(--ovemo-navy); }
.ovemo-mod.has-alert { border-color: rgba(179, 45, 46, .35); background: var(--ovemo-warn-soft); }

/* The tiles of the groups over a list: the chosen one framed, the urgent one red with "!". */
.ovemo-tiles { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.ovemo-tile { position: relative; flex: 0 1 200px; min-width: 0; text-align: left; color: inherit; text-decoration: none; background: var(--ovemo-tile); border: 1px solid transparent; border-radius: 10px; padding: 16px 18px; display: grid; gap: 6px; min-height: 104px; transition: background .15s, transform .15s, box-shadow .15s; }
.ovemo-tile:hover { background: var(--ovemo-tile-hover); transform: translateY(-1px); box-shadow: var(--ovemo-shadow); }
.ovemo-tile:focus-visible { outline: 2px solid var(--ovemo-accent); outline-offset: 2px; }
.ovemo-tile-name { font-weight: 600; font-size: 15px; padding-right: 22px; }
.ovemo-tile-num { font-size: 34px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--ovemo-navy); line-height: 1; }
.ovemo-tile-hint { font-size: 12px; color: var(--ovemo-muted); }
.ovemo-tile.is-zero .ovemo-tile-num { color: var(--ovemo-muted); font-weight: 400; }
.ovemo-tile.is-alert { border-color: rgba(179, 45, 46, .35); background: var(--ovemo-warn-soft); }
.ovemo-tile.is-alert .ovemo-tile-num { color: var(--ovemo-warn); }
.ovemo-tile-bang { position: absolute; top: 10px; right: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--ovemo-warn); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.ovemo-tile.is-active { background: var(--ovemo-card); border-color: var(--ovemo-accent); box-shadow: var(--ovemo-shadow), 0 0 0 1px var(--ovemo-accent); }

@media (prefers-reduced-motion: reduce) {
	.ovemo-mod, .ovemo-mod:hover, .ovemo-tile, .ovemo-tile:hover { transition: none; transform: none; }
}

/* The top row of a section: "Back to home" (and "Back to list"), the name in the middle, where one is on the right. */
.ovemo-topbar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; min-height: 38px; }
.ovemo-topbar h1 { margin: 0; text-align: center; font-weight: 600; font-size: 26px; color: var(--ovemo-navy); }
.ovemo-backs { display: flex; flex-wrap: wrap; gap: 8px; }
.ovemo-crumb { justify-self: end; text-align: right; color: var(--ovemo-muted); font-size: 13px; }
.ovemo-back { display: inline-block; font-size: 13px; font-weight: 600; color: var(--ovemo-accent); background: var(--ovemo-card); border: 1px solid var(--ovemo-accent); border-radius: 6px; padding: 8px 14px; text-decoration: none; }
.ovemo-back:hover { background: var(--ovemo-tile); }
.ovemo-back:focus-visible { outline: 2px solid var(--ovemo-accent); outline-offset: 2px; }

/* Phone: the home tiles one under another, the group tiles two in a row, the top row centred. */
@media (max-width: 720px) {
	.ovemo-topbar { grid-template-columns: 1fr; justify-items: center; }
	.ovemo-crumb { justify-self: center; text-align: center; }
	.ovemo-backs { justify-content: center; }
	.ovemo-mod { flex-basis: 100%; }
	.ovemo-tile { flex: 0 1 calc(50% - 6px); min-height: 84px; padding: 12px; }
	.ovemo-tile-num { font-size: 26px; }
	.ovemo-tile-hint { display: none; }
	.ovemo-cta .ovemo-btn { width: 100%; }
	.ovemo-back { padding: 6px 10px; }
}
