/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

body {
  display: grid;
  grid-template-columns: 1fr;
  padding: 0px;
}

main {
  padding: 1rem;
}

body > header {
  grid-column: 1 / span 2;
  padding: 0px;
  background-color: #eee;

  div {
    display: flex;
    align-items: center;
    padding: 0.7rem 1rem 0.7rem 1rem;

    img {
      width: 120px;
    }

    nav {
      margin-left: 1rem;
      margin-top: 0px;
      display: flex;
      align-items: flex-start;
      gap: 1.75rem;

      span {
        display: flex;
        flex-direction: column;
        gap: 0.05rem;
        line-height: 1;
      }

      span > a {
        font-size: 1rem;
        font-weight: 600;
      }

      small {
        font-size: 0.65rem;
        opacity: 0.6;
      }
    }
  }
}

form.new-login {
  max-width: 400px;
}

/* Framework nastavuje display:block na všechny inputy vč. hidden — oprava */
input[type="hidden"] {
  display: none;
  margin: 0;
}

a.plain { color: inherit; text-decoration: none; font-weight: 500; cursor: pointer; }
a.plain[target="_blank"]::after,
a.plain[href^="tel:"]::after,
a.plain[href^="mailto:"]::after {
  font-size: 0.7em;
  color: #aaa;
  margin-left: 0.2em;
  vertical-align: 0.35em;
  opacity: 0;
  transition: opacity 0.15s;
}
a.plain[target="_blank"]:hover::after,  a.plain[target="_blank"]:active::after,
a.plain[href^="tel:"]:hover::after,     a.plain[href^="tel:"]:active::after,
a.plain[href^="mailto:"]:hover::after,  a.plain[href^="mailto:"]:active::after { opacity: 1; }
a.plain[target="_blank"]::after { content: "↗"; }
a.plain[href^="tel:"]::after    { content: "☎"; }
a.plain[href^="mailto:"]::after { content: "✉"; }

.tag--green { background-color: #2e7d32; color: #fff; }
.tag--blue  { background-color: #1565c0; color: #fff; }
.tag--gray  { background-color: #9e9e9e; color: #fff; }

.timeline {
  max-width: 760px;
}

.timeline__day {
  margin-bottom: 2rem;
}

.timeline__date {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #999;
  margin-bottom: 0.5rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid #ebebeb;
}

.timeline__item {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid #f5f5f5;
}

.timeline__item:last-child {
  border-bottom: none;
}

.timeline__dot {
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #bbb;
  margin-top: 0.45rem;
}

.timeline__content {
  flex: 1;
  min-width: 0;
}

.timeline__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-bottom: 0.2rem;
}

.timeline__note {
  font-size: 0.9rem;
  color: #222;
  margin-bottom: 0.2rem;
}

.timeline__actions {
  margin-top: 0.1rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  align-items: start;
}

.dashboard-box {
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  padding: 1rem 1.25rem;
  background: #fafafa;
}

.dashboard-box__title {
  margin: 0 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e0e0e0;
  font-size: 1rem;
  font-weight: 600;
  color: #333;
}
