/* Odoo's home screen, copied: a light lavender grey with a soft diagonal sheen, a thin top bar,
   a centred grid of white rounded tiles with flat multi coloured icons. */
:root {
  --bg: #e3e2ec;
  --ink: #374151;
  --ink-soft: #6b6f80;
  --tile: #ffffff;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  font-family: Roboto, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(122deg, rgba(255,255,255,0) 34%, rgba(255,255,255,.28) 46%, rgba(255,255,255,.34) 62%, rgba(255,255,255,.12) 74%, rgba(255,255,255,0) 86%),
    linear-gradient(160deg, #dcdae8 0%, #e6e5ee 45%, #ebeaf2 70%, #e2e0ec 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* the top bar */
.topbar {
  height: 40px; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 0 16px; font-size: 13px;
}
.company { text-transform: uppercase; font-variant: small-caps; letter-spacing: .02em; color: #2b2d38; font-size: 13px; }
.me { position: relative; }
.me summary { list-style: none; }
.me summary::-webkit-details-marker { display: none; }
.avatar {
  width: 24px; height: 24px; border-radius: 4px; color: #fff; font-size: 13px; font-weight: 500;
  display: flex; align-items: center; justify-content: center; cursor: pointer; user-select: none;
}
.menu {
  position: absolute; right: 0; top: 32px; min-width: 200px; background: #fff; border-radius: 6px;
  box-shadow: 0 6px 18px rgba(30,30,60,.16); padding: 6px 0; z-index: 10; font-size: 13.5px;
}
.menu .email { padding: 8px 16px; color: var(--ink-soft); border-bottom: 1px solid #ececf2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu a { display: block; padding: 8px 16px; color: var(--ink); text-decoration: none; }
.menu a:hover { background: #f3f2f7; }

/* the grid */
.grid {
  display: grid; grid-template-columns: repeat(6, 120px); grid-auto-rows: 118px;
  justify-content: center; padding: 46px 16px 40px;
}
.app {
  display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--ink);
  min-width: 0; outline: none;
}
.tile {
  width: 64px; height: 64px; border-radius: 6px; background: var(--tile);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 1px rgba(40,40,70,.08), 0 2px 6px rgba(40,40,70,.10);
  transition: transform .12s ease, box-shadow .12s ease;
}
.app:hover .tile, .app:focus-visible .tile { transform: translateY(-1px); box-shadow: 0 2px 3px rgba(40,40,70,.10), 0 6px 14px rgba(40,40,70,.14); }
.tile img { width: 40px; height: 40px; display: block; }
.label {
  margin-top: 8px; max-width: 112px; font-size: 13.5px; line-height: 1.3; color: #2f3341;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-align: center;
}

/* no app yet */
.empty { text-align: center; padding: 120px 16px; font-size: 15px; color: var(--ink); }
.empty a { color: #8f4a7d; }

/* the sign in page */
.signin { display: flex; align-items: center; justify-content: center; padding: 16px; }
.card {
  width: 100%; max-width: 340px; background: #fff; border-radius: 8px; text-align: center;
  padding: 36px 28px 30px; box-shadow: 0 1px 2px rgba(40,40,70,.08), 0 8px 24px rgba(40,40,70,.10);
}
.card h1 { margin: 0; font-size: 26px; font-weight: 600; color: #2b2d38; letter-spacing: -.01em; }
.card p { margin: 8px 0 22px; font-size: 14px; color: var(--ink-soft); }
.button-slot { display: flex; justify-content: center; min-height: 44px; }
.card .refused { margin: 16px 0 0; color: #c0392b; font-size: 13px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 112px; padding-top: 28px; }
  .label { max-width: 100%; font-size: 13px; padding: 0 2px; }
}
@media (max-width: 400px) {
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
