/*
 * ============================================================
 * BRILL VAULT DESKTOP OS V9
 * LEDGER WORKSPACE
 * ============================================================
 */

#bvLedgerWorkspace {
  --lw-panel: rgba(11, 18, 29, .93);
  --lw-panel-2: rgba(14, 23, 37, .96);

  --lw-line: rgba(128, 151, 188, .105);
  --lw-blue-line: rgba(73, 132, 225, .27);

  --lw-text: #eef3f8;
  --lw-muted: #718097;

  --lw-blue: #4b87e8;
  --lw-green: #54d5a5;
  --lw-gold: #d5ad60;
  --lw-red: #dd747e;

  display: grid;
  gap: 16px;

  color: var(--lw-text);
}

#bvlLegacy {
  display: none !important;
}


/* ============================================================
   HEADER
   ============================================================ */

.bvl-header {
  display: flex;

  align-items: flex-end;

  justify-content: space-between;

  min-height: 80px;

  gap: 24px;
}

.bvl-heading {
  display: grid;
  gap: 4px;
}

.bvl-kicker {
  margin: 0;

  color: #6e91c4;

  font-size: 8px;

  font-weight: 850;

  letter-spacing: .19em;

  text-transform: uppercase;
}

.bvl-heading h1 {
  margin: 0;

  color: #f3f6fa;

  font-size: 31px;

  font-weight: 780;

  letter-spacing: -.035em;
}

.bvl-heading p:last-child {
  margin: 2px 0 0;

  color: var(--lw-muted);

  font-size: 11px;
}

.bvl-actions {
  display: flex;

  align-items: center;

  gap: 8px;
}

.bvl-chip {
  display: inline-flex;

  align-items: center;

  min-height: 34px;

  gap: 7px;

  padding: 0 11px;

  border:
    1px solid
    var(--lw-line);

  border-radius: 9px;

  background:
    rgba(14, 22, 35, .70);

  color: #79879c;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: .07em;
}

.bvl-chip.live {
  border-color:
    rgba(82, 198, 153, .15);

  background:
    rgba(46, 128, 96, .055);

  color: #8fc8af;
}

.bvl-chip.live::before {
  content: "";

  width: 6px;

  height: 6px;

  border-radius: 50%;

  background: var(--lw-green);

  box-shadow:
    0 0 11px
    rgba(84, 213, 165, .5);
}

.bvl-refresh {
  min-height: 34px !important;

  padding: 0 13px !important;

  border-radius: 9px !important;

  font-size: 9px !important;
}


/* ============================================================
   SUMMARY
   ============================================================ */

.bvl-summary {
  display: grid;

  grid-template-columns:
    repeat(
      4,
      minmax(0, 1fr)
    );

  overflow: hidden;

  border:
    1px solid
    var(--lw-line);

  border-radius: 15px;

  background:
    linear-gradient(
      145deg,
      rgba(13, 21, 34, .91),
      rgba(8, 14, 23, .93)
    );
}

.bvl-stat {
  display: grid;

  min-height: 84px;

  align-content: center;

  gap: 5px;

  padding: 15px 18px;

  border-right:
    1px solid
    var(--lw-line);
}

.bvl-stat:last-child {
  border-right: 0;
}

.bvl-stat span {
  color: #606f86;

  font-size: 8px;

  font-weight: 750;

  letter-spacing: .08em;

  text-transform: uppercase;
}

.bvl-stat strong {
  overflow: hidden;

  color: #edf1f7;

  font-size: 18px;

  font-weight: 760;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.bvl-stat.credit strong {
  color: #83c4aa;
}

.bvl-stat.debit strong {
  color: #d8aa70;
}


/* ============================================================
   TOOLBAR
   ============================================================ */

.bvl-toolbar {
  display: grid;

  grid-template-columns:
    minmax(0, 1fr)
    280px;

  align-items: center;

  gap: 15px;
}

.bvl-filters {
  display: flex;

  align-items: center;

  gap: 6px;
}

.bvl-filter {
  min-height: 34px;

  padding: 0 12px;

  border:
    1px solid
    transparent;

  border-radius: 9px;

  background: transparent;

  color: #748297;

  cursor: pointer;

  font: inherit;

  font-size: 8px;

  font-weight: 760;

  transition: .15s ease;
}

.bvl-filter:hover {
  color: #dce4ee;

  background:
    rgba(47, 72, 108, .07);
}

.bvl-filter.active {
  border-color:
    rgba(75, 132, 222, .23);

  background:
    rgba(47, 89, 157, .12);

  color: #dbe7f8;
}

.bvl-search-wrap {
  position: relative;
}

.bvl-search-wrap::before {
  content: "⌕";

  position: absolute;

  top: 50%;

  left: 12px;

  transform:
    translateY(-50%);

  color: #6784ad;

  font-size: 14px;
}

.bvl-search {
  width: 100%;

  min-height: 36px !important;

  padding:
    0
    12px
    0
    33px !important;

  border:
    1px solid
    rgba(128, 151, 187, .12) !important;

  border-radius:
    10px !important;

  background:
    rgba(8, 14, 23, .72) !important;

  color:
    #e6ebf3 !important;

  font-size:
    9px !important;
}


/* ============================================================
   WORKSPACE
   ============================================================ */

.bvl-workspace {
  display: grid;

  grid-template-columns:
    minmax(570px, 1fr)
    385px;

  align-items: start;

  gap: 14px;
}


/* ============================================================
   LEDGER BROWSER
   ============================================================ */

.bvl-browser {
  min-height: 605px;

  overflow: hidden;

  border:
    1px solid
    var(--lw-line);

  border-radius:
    17px;

  background:
    linear-gradient(
      145deg,
      rgba(12, 19, 31, .92),
      rgba(8, 14, 23, .94)
    );
}

.bvl-browser-head {
  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 54px;

  gap: 16px;

  padding: 0 17px;

  border-bottom:
    1px solid
    var(--lw-line);
}

.bvl-browser-head strong {
  color: #e4eaf2;

  font-size: 10px;

  font-weight: 780;
}

.bvl-browser-head span {
  color: #59687f;

  font-size: 8px;
}

.bvl-list {
  max-height:
    calc(100vh - 360px);

  min-height: 540px;

  overflow-y: auto;

  padding: 9px;
}


/* Transaction row */

.bvl-item {
  display: grid;

  grid-template-columns:
    40px
    minmax(0, 1fr)
    auto;

  align-items: center;

  width: 100%;

  min-height: 74px;

  gap: 11px;

  margin-bottom: 5px;

  padding: 9px 11px;

  border:
    1px solid
    transparent;

  border-radius: 11px;

  background: transparent;

  color: inherit;

  cursor: pointer;

  font: inherit;

  text-align: left;

  transition: .15s ease;
}

.bvl-item:hover {
  border-color:
    rgba(125, 151, 193, .09);

  background:
    rgba(42, 62, 94, .075);
}

.bvl-item.selected {
  border-color:
    var(--lw-blue-line);

  background:
    linear-gradient(
      90deg,
      rgba(43, 84, 151, .17),
      rgba(27, 43, 68, .055)
    );

  box-shadow:
    inset 3px 0 0
    var(--lw-blue);
}

.bvl-icon {
  display: grid;

  width: 37px;

  height: 37px;

  place-items: center;

  border:
    1px solid
    rgba(78, 129, 207, .15);

  border-radius: 10px;

  background:
    rgba(44, 83, 145, .075);

  color: #7aa2de;

  font-size: 12px;

  font-weight: 800;
}

.bvl-item.credit
.bvl-icon {
  border-color:
    rgba(76, 187, 144, .15);

  background:
    rgba(48, 126, 94, .055);

  color: #7fc2a5;
}

.bvl-item.game_purchase
.bvl-icon {
  border-color:
    rgba(204, 165, 88, .16);

  background:
    rgba(143, 106, 42, .055);

  color: #cba65e;
}

.bvl-copy {
  display: grid;

  min-width: 0;

  gap: 4px;
}

.bvl-copy strong {
  overflow: hidden;

  color: #e4eaf2;

  font-size: 10px;

  font-weight: 740;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.bvl-copy small {
  overflow: hidden;

  color: #617087;

  font-size: 8px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.bvl-money {
  display: grid;

  justify-items: end;

  gap: 4px;
}

.bvl-money strong {
  color: #dce4ee;

  font-size: 9px;

  font-weight: 760;
}

.bvl-item.credit
.bvl-money strong {
  color: #83c4aa;
}

.bvl-money small {
  color: #536178;

  font-size: 7px;
}


/* ============================================================
   INSPECTOR
   ============================================================ */

.bvl-inspector {
  position: sticky;

  top: 83px;

  min-height: 605px;

  overflow: hidden;

  border:
    1px solid
    var(--lw-line);

  border-radius:
    17px;

  background:
    linear-gradient(
      150deg,
      rgba(15, 24, 39, .97),
      rgba(8, 14, 23, .98)
    );

  box-shadow:
    0 22px 55px
    rgba(0, 0, 0, .15);
}

.bvl-inspector-empty {
  display: grid;

  min-height: 605px;

  place-items: center;

  padding: 35px;

  color: #617086;

  font-size: 10px;

  text-align: center;
}

.bvl-inspector-head {
  display: grid;

  gap: 6px;

  padding: 19px;

  border-bottom:
    1px solid
    var(--lw-line);
}

.bvl-inspector-head small {
  color: #6889ba;

  font-size: 8px;

  font-weight: 850;

  letter-spacing: .15em;

  text-transform: uppercase;
}

.bvl-inspector-head h2 {
  margin: 0;

  color: #f1f4f9;

  font-size: 21px;

  font-weight: 770;

  letter-spacing: -.025em;
}

.bvl-inspector-head p {
  margin: 0;

  overflow: hidden;

  color: #65748b;

  font-size: 8px;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.bvl-amount {
  display: grid;

  gap: 5px;

  padding: 19px;

  border-bottom:
    1px solid
    var(--lw-line);
}

.bvl-amount span {
  color: #596a83;

  font-size: 8px;

  font-weight: 800;

  letter-spacing: .11em;

  text-transform: uppercase;
}

.bvl-amount strong {
  color: #f0f3f8;

  font-size: 28px;

  font-weight: 640;

  letter-spacing: -.035em;
}

.bvl-amount.credit strong {
  color: #84c5aa;
}

.bvl-inspector-section {
  display: grid;

  gap: 10px;

  padding: 15px 19px;

  border-bottom:
    1px solid
    var(--lw-line);
}

.bvl-section-title {
  color: #53647d;

  font-size: 8px;

  font-weight: 850;

  letter-spacing: .15em;

  text-transform: uppercase;
}

.bvl-info {
  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 26px;

  gap: 18px;
}

.bvl-info span {
  color: #68768c;

  font-size: 8px;
}

.bvl-info strong {
  max-width: 230px;

  overflow: hidden;

  color: #dce3ed;

  font-size: 8px;

  font-weight: 720;

  text-align: right;

  text-overflow: ellipsis;

  white-space: nowrap;
}

.bvl-description {
  color: #78879c;

  font-size: 9px;

  line-height: 1.6;

  word-break: break-word;
}

.bvl-inspector-actions {
  display: grid;

  gap: 8px;

  padding: 16px 19px 19px;
}

.bvl-action {
  min-height: 39px;

  border:
    1px solid
    rgba(77, 132, 223, .21);

  border-radius: 10px;

  background:
    rgba(44, 83, 147, .10);

  color: #a7c3ef;

  cursor: pointer;

  font: inherit;

  font-size: 9px;

  font-weight: 760;

  transition: .15s ease;
}

.bvl-action:hover {
  border-color:
    rgba(77, 132, 223, .36);

  background:
    rgba(48, 91, 161, .17);

  color: #dceaff;
}


/* ============================================================
   EMPTY
   ============================================================ */

.bvl-empty {
  display: grid;

  min-height: 260px;

  place-items: center;

  padding: 30px;

  color: #66758b;

  font-size: 9px;

  line-height: 1.6;

  text-align: center;
}

.bvl-empty.error {
  color: #cf8088;
}


/* ============================================================
   FOOTER
   ============================================================ */

.bvl-footer {
  display: flex;

  align-items: center;

  justify-content: space-between;

  min-height: 35px;

  padding: 0 3px;

  color: #4f5e73;

  font-size: 8px;
}

.bvl-footer-left,
.bvl-footer-right {
  display: flex;

  align-items: center;

  gap: 11px;
}

.bvl-footer-dot {
  width: 5px;

  height: 5px;

  border-radius: 50%;

  background: var(--lw-green);
}


/* ============================================================
   DESKTOP
   ============================================================ */

@media (max-width: 1450px) {

  .bvl-workspace {
    grid-template-columns:
      minmax(500px, 1fr)
      350px;
  }

}

@media (max-width: 1250px) {

  .bvl-toolbar {
    grid-template-columns:
      minmax(0, 1fr)
      230px;
  }

  .bvl-workspace {
    grid-template-columns:
      minmax(450px, 1fr)
      320px;
  }

}
