/* Makety obrazoviek e-faktur. Farby, zaoblenia a stitky su prevzate z prvkov
   karuselu pre socialne siete (socialne_siete_prispevky/finalne/efaktury),
   aby web ukazoval to iste co prispevok. Skladane v HTML, nie ako obrazok,
   aby text ostal citatelny aj na uzkom displeji. Farby textu v stitkoch
   a tlacidlach su oproti prispevku o odtien tmavsie, aby splnili kontrast
   WCAG AA 4,5:1 pre maly text. */

.ef-win {
  background: #fff;
  border: 1px solid #cfdcf1;
  border-radius: 22px;
  box-shadow: 0 18px 50px -24px rgba(4, 24, 79, 0.35);
  padding: 20px;
  text-align: left;
  max-width: 880px;
  margin: 0 auto;
}
.ef-win + .ef-caption { margin-top: 14px; }
.ef-caption { color: #6b6875; text-align: center; font-size: .8rem; line-height: 1.6; }

.ef-head { display: flex; align-items: center; gap: 14px; }
.ef-tile {
  width: 46px; height: 46px; flex: none;
  border-radius: 14px; background: #dbe7ff;
  display: flex; align-items: center; justify-content: center;
  color: #174ef1;
}
.ef-tile svg { width: 24px; height: 24px; }
.ef-head-text { min-width: 0; }
.ef-title { font-size: 1.0625rem; font-weight: 800; color: #04184f; letter-spacing: -.01em; }
.ef-sub { margin-top: 2px; font-size: .8125rem; color: #556891; }
.ef-head-action { margin-left: auto; }

/* Tlacidlo odoslania ako v aplikacii. */
.ef-send {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 13px;
  background: linear-gradient(90deg, #0b5fd6, #0d63e4);
  color: #fff; font-size: .8125rem; font-weight: 700; white-space: nowrap;
}
.ef-send svg { width: 16px; height: 16px; }
.ef-send.is-off { background: #dbe7ff; color: #0b5fd6; }

/* Filtre podla stavu. */
.ef-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ef-filter {
  display: inline-flex; align-items: center; gap: 0;
  padding: 8px 13px; border-radius: 11px;
  border: 1px solid #cfdcf1; background: #fff;
  font-size: .8125rem; font-weight: 500; color: #04184f; white-space: nowrap;
}
.ef-filter b { font-weight: 750; }
.ef-filter::before { content: ""; width: 7px; height: 7px; margin-right: 9px; border-radius: 999px; background: #8a97b4; }
.ef-filter.is-on { background: #0d63e4; border-color: #0d63e4; color: #fff; }
.ef-filter.is-on::before { display: none; }
.ef-filter.is-blue { border-color: #0f70f7; border-width: 1.5px; }
.ef-filter.is-blue::before { background: #0f70f7; }
.ef-filter.is-amber { border-color: #f08a1c; border-width: 1.5px; }
.ef-filter.is-amber::before { background: #f08a1c; }
.ef-filter.is-green::before { background: #09b77c; }

/* Tabulka faktur. */
.ef-th {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding: 10px 12px; border-radius: 10px;
  background: #eef3fc; color: #5e6d8e; font-size: .6875rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.ef-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  padding: 12px; border-radius: 10px;
  border-bottom: 1px solid #e8eef8;
}
.ef-row:last-child { border-bottom: 0; }
.ef-row.is-warn { background: #fff4e6; border-bottom-color: transparent; }
.ef-row.is-sel { background: #f2f7ff; border-bottom-color: transparent; }

.ef-box { width: 19px; height: 19px; flex: none; border-radius: 6px; border: 2px solid #9fb0cf; background: #fff; }
.ef-box.is-on {
  border-color: #0f70f7; background: #0f70f7;
  display: flex; align-items: center; justify-content: center;
}
.ef-box.is-on svg { width: 13px; height: 13px; color: #fff; }

.ef-num { width: 86px; flex: none; font-size: .875rem; font-weight: 700; color: #04184f; }
.ef-cust { flex: 1 1 130px; min-width: 0; font-size: .875rem; color: #40517e; }
.ef-amt { margin-left: auto; font-size: .875rem; font-weight: 650; color: #04184f; white-space: nowrap; }
.ef-th .ef-num, .ef-th .ef-cust, .ef-th .ef-amt { font: inherit; color: inherit; }
.ef-th .ef-state { flex: 0 0 150px; }
.ef-state { flex: 0 0 150px; }

/* Stitky stavov. */
.ef-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 10px; border-radius: 8px;
  font-size: .75rem; font-weight: 650; white-space: nowrap;
}
.ef-chip svg { width: 14px; height: 14px; flex: none; }
.ef-chip--ok { background: #dcf6ec; color: #05704c; }
.ef-chip--wait { background: #edf0f6; color: #56627c; }
.ef-chip--warn { background: #b45309; color: #fff; }
.ef-chip--sent { background: #e7efff; color: #0b5fd6; }
.ef-chip--err { background: #ffe7e8; color: #c42531; }

/* Karta dokladu v dialogu. */
.ef-doc {
  position: relative; overflow: hidden;
  margin-top: 14px; padding: 14px 16px 14px 22px;
  background: #f8fbff; border: 1px solid #dbe5f5; border-radius: 14px;
}
.ef-doc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: #e0303c; }
.ef-doc.is-ok::before { background: #09b77c; }
.ef-doc.is-warn::before { background: #f08a1c; }
.ef-doc-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.ef-doc-name { font-size: .9375rem; font-weight: 800; color: #04184f; }
.ef-doc-amt { margin-left: auto; text-align: right; }
.ef-doc-amt b { display: block; font-size: .9375rem; font-weight: 800; color: #04184f; }
.ef-doc-amt span { font-size: .6875rem; color: #5e6d8e; }
.ef-doc-cust { margin-top: 2px; font-size: .8125rem; color: #40517e; }
.ef-doc .ef-reason {
  margin-top: 10px; padding: 10px 12px; border-radius: 10px;
  background: #ffe7e8; font-size: .8125rem; line-height: 1.5; color: #04184f;
}
.ef-doc.is-warn .ef-reason { background: #fff4e6; }

.ef-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 18px; }
.ef-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-radius: 13px;
  background: linear-gradient(90deg, #0b5fd6, #0d63e4);
  color: #fff; font-size: .875rem; font-weight: 750;
}
.ef-btn svg { width: 16px; height: 16px; }
.ef-cancel { margin-left: auto; font-size: .875rem; font-weight: 650; color: #d42a2a; }

/* Aktivacia v styroch krokoch. */
.ef-steps { margin-top: 6px; }
.ef-step { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid #e8eef8; }
.ef-step-ico {
  width: 32px; height: 32px; flex: none; border-radius: 999px;
  background: linear-gradient(90deg, #0b5fd6, #0d63e4);
  display: flex; align-items: center; justify-content: center; color: #fff;
}
.ef-step-ico svg { width: 17px; height: 17px; }
.ef-step h3 { font-size: .9375rem; font-weight: 800; color: #04184f; line-height: 1.35; }
.ef-step p { margin-top: 2px; font-size: .8125rem; color: #5e6d8e; line-height: 1.5; }

/* Prehlad stavov pod sebou. */
.ef-legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; margin-top: 28px; }
.ef-legend div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px; }
.ef-legend span:not(.ef-chip) { font-size: .875rem; color: #6b6875; line-height: 1.5; }

/* Dvojica text a maketa vedla seba. */
.ef-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 40px; align-items: center; }
.ef-split .ef-win { max-width: none; }
.ef-split h2 { margin-top: 0; }

@media (max-width: 1199px) {
  .ef-split { grid-template-columns: 1fr; gap: 28px; }
  .ef-split .ef-win { max-width: 880px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .ef-win { padding: 16px; border-radius: 18px; }
  /* Filtre sa posuvaju do boku ako v aplikacii, nezaberu pol obrazovky. */
  .ef-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px; }
  /* Nadpis okna dostane cely riadok, tlacidlo ide pod neho. */
  .ef-head { flex-wrap: wrap; }
  .ef-head-text { flex: 1 1 140px; }
  .ef-head-action { flex: 1 1 100%; margin-left: 0; }
  .ef-send { justify-content: center; }
  .ef-th { display: none; }
  .ef-state { flex: none; }
  .ef-num { width: auto; }
  .ef-row { padding: 11px 8px; }
  .ef-legend { grid-template-columns: 1fr; }
  .ef-doc { padding: 12px 12px 12px 18px; }
  .ef-cancel { margin-left: 0; }
}
