/**
 *
 * Bootstrap breakpoints.
 *
 * Ray O'Donnell <ray@teladesign.ie>
 * August 2023
 *
 */
/*
 *
 * Colours, courtesy of https://coolors.co/090809-f40000-2660a4-f9cb40-ffffd2
 *
 * Ray O'Donnell
 * 13 November 2023
 *
 */
/* SCSS RGB */
.listing .row {
  padding-top: 0.4rem;
  padding-bottom: 0.4rem;
  border-top: 1px solid rgb(38, 96, 164);
}
.listing .row:last-child {
  border-bottom: 1px solid rgb(38, 96, 164);
}
.listing.no-top-border .row:first-child {
  border-top: none;
}
@media (max-width: 991px) {
  .listing.no-top-border .listing-head + .listing-row {
    border-top: none;
  }
}
.listing .listing-head {
  color: rgb(108, 117, 125);
  display: flex;
  margin-left: 0;
  margin-right: 0;
}
@media (max-width: 991px) {
  .listing .listing-head:not(.show-always) {
    display: none;
  }
}
.listing .listing-row {
  align-items: center;
  margin-left: 0;
  margin-right: 0;
}
.listing .listing-row:hover {
  background-color: rgb(255, 255, 210);
}
.listing .listing-row.highlighted {
  background-color: white;
  box-shadow: inset 0 0 0 0.25rem rgb(249, 203, 64);
}
.listing .listing-row.highlighted .buttons {
  padding-right: 0.5rem;
}
.listing .listing-row > div {
  display: flex;
}
.listing .total-row {
  margin-right: 0;
  margin-left: 0;
  background-color: rgb(245, 245, 245);
}
.listing .total-row:last-child {
  border-top: none;
}
.listing .buttons {
  justify-content: end;
  padding-right: 0;
}
.listing .buttons a {
  margin-right: 0.5rem;
}
.listing .buttons a:last-child {
  margin-right: 0;
}
.listing .item-label {
  color: rgb(108, 117, 125);
}
@media (max-width: 991px) {
  .listing .item-label {
    width: 25%;
  }
}
@media (min-width: 992px) {
  .listing .item-label {
    display: none;
  }
}
.listing .item-data {
  width: 100%;
}
@media (max-width: 991px) {
  .listing .item-data {
    width: 75%;
  }
}
.listing .row.inactive {
  background-color: rgb(245, 245, 245);
}
.listing .row.inactive:hover {
  background-color: #fff;
}
.listing .row .row {
  padding-top: 0;
  padding-bottom: 0;
  border: none;
  background-color: transparent;
}
.listing small {
  display: block;
}
.listing ul {
  margin-bottom: 0;
}

.button-cell {
  display: flex;
  align-items: center;
  padding-right: 12px;
}
.button-cell.buttons-right {
  justify-content: end;
}

.ps-12px {
  padding-left: 12px;
}

.pe-12px {
  padding-right: 12px;
}

/*
 * Main SCSS file.
 *
 * Ray O'Donnell <ray@teladesign.ie>
 * 13 November 2023
 *
 */
body {
  background-color: rgb(9, 8, 9);
}

#page-wrapper {
  background-color: rgb(255, 255, 210);
}

header.navbar {
  background-color: rgb(38, 96, 164);
  padding-right: 1rem;
  padding-left: 1rem;
}
header.navbar .navbar-brand {
  color: #fff;
}

#content-wrapper {
  min-height: 60vh;
}

.layout-logged-in #content-wrapper {
  background-color: #fff;
  padding-left: 0;
}
@media (min-width: 992px) {
  .layout-logged-in #content-wrapper {
    display: grid;
    grid-template-areas: "sidebar main";
    grid-template-columns: 1fr 5fr;
    gap: 3rem;
  }
}
@media (min-width: 992px) {
  .layout-logged-in header.navbar {
    justify-content: flex-end;
  }
}
.layout-logged-in header.navbar .navbar-toggler {
  color: #fff;
  border-color: transparent;
}
.layout-logged-in header.navbar .navbar-toggler:hover {
  color: rgb(249, 203, 64);
  box-shadow: none;
}
.layout-logged-in header.navbar .navbar-toggler:focus {
  box-shadow: none;
}

.layout-dialog #content-wrapper {
  min-height: inherit;
}
.layout-dialog #main-area {
  background-color: #fff;
  min-height: 60vh;
}

.layout-invoice #content-wrapper {
  min-height: inherit;
}
.layout-invoice #main-area {
  padding-top: 0;
  background-color: #fff;
  min-height: 60vh;
}
.layout-invoice .toolbar-area {
  padding: 0.5rem 1rem;
  margin-right: -1rem;
  margin-bottom: 2rem;
  margin-left: -1rem;
  text-align: right;
  background-color: rgb(245, 245, 245);
}
.layout-invoice .invoice-paid {
  font-size: 3rem;
  color: rgb(0, 240, 0);
  font-weight: bolder;
  text-transform: uppercase;
  text-align: center;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

#top-menu.navbar-nav {
  flex-direction: row;
  margin-top: 0.2rem;
}
#top-menu .nav-link {
  color: #fff;
}
#top-menu .nav-link:hover, #top-menu .nav-link:focus {
  color: rgb(249, 203, 64);
}
#top-menu .nav-item:not(:last-of-type) {
  margin-right: 2rem;
}
#top-menu .fa-solid {
  font-size: 1.6rem;
}
#top-menu .dropdown-item .fa-solid {
  font-size: 1rem;
  width: 2rem;
}

#sidebar-area {
  grid-area: sidebar;
  padding: 1rem;
}
@media (min-width: 992px) {
  #sidebar-area {
    background-color: rgb(255, 255, 210);
    padding-top: 2rem;
  }
}

#main-menu-offcanvas .offcanvas-body {
  flex-direction: column;
}
#main-menu-offcanvas ul.nav {
  width: 100%;
}
#main-menu-offcanvas a.nav-link {
  margin-top: 0;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  border: transparent;
  border-radius: 0.5rem;
}
#main-menu-offcanvas a.nav-link:hover {
  background-color: #fff;
}
#main-menu-offcanvas a.nav-link.active::after {
  display: inline-block;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  content: "\f054";
  color: rgb(244, 0, 0);
}
@media (max-width: 991px) {
  #main-menu-offcanvas a.nav-link:hover {
    background-color: rgb(255, 255, 210);
  }
}
#main-menu-offcanvas .fa-solid {
  width: 1.5rem;
}

.client-selector {
  width: 100%;
  margin-bottom: 3rem;
}

#main-area {
  grid-area: main;
  padding: 2rem 1rem;
}

#notification-dropdown h4 {
  font-weight: bold;
  color: rgb(38, 96, 164);
}
#notification-dropdown .more-link {
  background-color: rgb(255, 255, 210);
  text-align: center;
}
@media (min-width: 992px) {
  #notification-dropdown {
    min-width: 50rem;
  }
}

footer {
  padding-top: 2rem;
  color: rgb(255, 255, 210);
}
footer a {
  color: rgb(249, 203, 64);
  text-decoration: none;
}
footer a:hover {
  text-decoration: underline;
}

h1.page-title {
  color: rgb(38, 96, 164);
  margin-top: 0;
  margin-bottom: 2rem;
  font-size: 1.8rem;
  font-weight: bold;
}
h1.page-title small {
  display: block;
  font-weight: normal;
  margin-top: 0.6rem;
}

.alert {
  margin-bottom: 2rem;
  padding-left: 3rem;
}
.alert ul {
  list-style-type: none;
  padding-left: 0;
  margin-bottom: 0;
  line-height: normal;
}
.alert::before {
  float: left;
  margin-left: -2rem;
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
}
.alert.alert-success::before {
  content: "\f00c";
}
.alert.alert-danger::before {
  content: "\f00d";
}
.alert.alert-info::before {
  content: "\f129";
}
.alert.alert-warning {
  background-color: #f68c10;
  color: #fff;
}
.alert.alert-warning::before {
  content: "\f071";
}

button.btn,
a.btn,
span.btn {
  color: rgb(244, 0, 0);
  border-color: rgb(244, 0, 0);
}
button.btn:hover,
a.btn:hover,
span.btn:hover {
  color: #fff;
  background-color: rgb(244, 0, 0);
  border-color: rgb(244, 0, 0);
}
button.btn.btn-secondary,
a.btn.btn-secondary,
span.btn.btn-secondary {
  color: rgb(140, 140, 140);
  background-color: transparent;
  border-color: rgb(140, 140, 140);
}
button.btn.btn-secondary:hover,
a.btn.btn-secondary:hover,
span.btn.btn-secondary:hover {
  color: #fff;
  background-color: rgb(140, 140, 140);
}

.submit-cancel-buttons .btn {
  width: 100%;
}

.required::after {
  content: "*";
  color: rgb(244, 0, 0);
  margin-left: 0.3rem;
}

.amount {
  text-align: right;
}
@media (max-width: 991px) {
  .amount {
    text-align: left;
  }
}

.debit {
  color: rgb(255, 0, 0);
}

.credit {
  color: rgb(0, 240, 0);
}

#line-items > div {
  cursor: grabbing;
}

.sorting-ghost {
  background-color: rgb(249, 203, 64);
}

.due {
  color: rgb(255, 0, 0);
}

.paid {
  color: rgb(0, 240, 0);
}

dl dt {
  font-weight: normal;
  color: rgb(140, 140, 140);
  margin-bottom: 1rem;
}
dl dd {
  margin-bottom: 1rem;
}

.error-page h2 {
  margin-top: 2rem;
}
.error-page h3 {
  margin-top: 2rem;
}
.error-page dl {
  margin-top: 2rem;
}
