.banner {
  background-color: #CBDBFB;
  text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000;
  text-align: center;  
  color: white !important;  
  background-image: url("../images/pauper_banner.jpg");
  background-repeat: no-repeat;
  background-position: left;
  width: 100%;
}

.jumbotron {
  height: 120px;
  padding: 10px;
  margin-top: 5px;
  margin-bottom: 5px;
}

h3 {
  text-align: center;
}

h5 {
  text-align: center;
}

h6 {
  text-align: center;
}

.form_label {
  float: left;
  text-align: right;
  margin-right: 15px;
  width: 120px;
}

.text_short {
  width: 80px;
}

.text_long {
  width: 400px;
}

.text_name {
  width: 300px;
}

.text_med {
  width: 120px;
}

.row_margin {
  margin-top: 10px;
}

#account_header {
  background-image: url("../images/balances.png");
  background-repeat: no-repeat;
  background-position: right;
  margin-bottom: 5px;
  padding: 10px;
}

#expense_header {
  background-image: url("../images/income_expense.png");
  background-repeat: no-repeat;
  background-position: right;
  margin-bottom: 5px;
  padding: 10px;
}

#goal_header {
  background-image: url("../images/pillars.png");
  background-repeat: no-repeat;
  background-position: right;
  margin-bottom: 5px;
  padding: 10px;  
}

#user_header {
  background-image: url("../images/users.png");
  background-repeat: no-repeat;
  background-position: right;
  margin-bottom: 5px;
  padding: 10px;  
}

/* Context menu */
.context-menu {
  display: none;
  position: absolute;
  border: 1px solid black;
  border-radius: 3px;
  width: 100px;
  background: white;
  box-shadow: 10px 10px 5px #888888;
}

.context-menu ul{
  list-style: none;
  padding: 2px;
}

.context-menu ul li{
  padding: 5px 2px;
  margin-bottom: 3px;
  /* font-weight: bold; */
}

.context-menu ul li:hover{
  cursor: pointer;
  background-color: lightgray;
}

.edit_balance {
  width: 15px;
  height: 15px;
  border: 0px solid black;
  display: inline-block;
  margin-right: 5px;
}

th { 
  white-space: nowrap; 
}

input { 
  text-align: right; 
}

.home_group {
  border-radius: 25px;
  border: 2px solid #CBDBFB;
  background-color: white;
  padding: 10px;
  margin: 5px;
}

.display_table th {
  text-align: center;
  font-weight: bold;
  /* border: solid black 1px; */
}

.display_table {
  border: 2px solid #CBDBFB;;
  border-collapse: separate;
  border-left: 0;
  border-radius: 10px;
  border-spacing: 0px;
}

.display_table thead {
  display: table-header-group;
  vertical-align: middle;
  border-color: inherit;
  border-collapse: separate;
}

.display_table tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

.display_table th, .display_table td {
  padding: 8px;
  /* vertical-align: top; */
  border-left: 1px solid #CBDBFB;;
}

.display_table td {
  border-top: 1px solid #CBDBFB;;
}

.display_table thead:first-child tr:first-child th:first-child, tbody:first-child tr:first-child td:first-child {
  border-radius: 10px 0 0 0;
}
.display_table thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

.income_expense_table th {
  text-align: center;
  font-weight: bold;
  /* border: solid black 1px; */
}

.income_expense_table {
  border: 2px solid #1f77b4;
  border-collapse: separate;
  border-left: 0;
  border-radius: 10px;
  border-spacing: 0px;
  margin-left: 70px;
}
/* 
.income_expense_table table {
  margin-left: 20px;
} */

.income_expense_table thead {
  display: table-header-group;
  vertical-align: middle;
  border-color: inherit;
  border-collapse: separate;
}

.income_expense_table tr {
  display: table-row;
  vertical-align: inherit;
  border-color: inherit;
}

.income_expense_table th, .income_expense_table td {
  padding: 8px;
  /* vertical-align: top; */
  /* border-left: 1px solid #1f77b4;  */
}

.income_expense_table {
  border-left: 1px solid #1f77b4;
  background-image: url('/static/images/income_expense.png');
  background-repeat: no-repeat;
  /* background-attachment: fixed; */
  background-position: center;  
  background-color: whitesmoke;
  opacity: 0.7;
}

.income_expense_table td {
  border-top: 1px solid #1f77b4;
}

.income_expense_table thead:first-child tr:first-child th:first-child, tbody:first-child tr:first-child td:first-child {
  border-radius: 10px 0 0 0;
}
.income_expense_table thead:last-child tr:last-child th:first-child, tbody:last-child tr:last-child td:first-child {
  border-radius: 0 0 0 10px;
}

.report_num {
  text-align: right;
}

.report_group {
  text-align: left;
}

.table_title {
  font-weight: bold;
  font-size: large;
  text-align: center;
  
  /* background-color: #CBDBFB; */
  /* text-shadow: -1px 1px 0 #000, 1px 1px 0 #000, 1px -1px 0 #000, -1px -1px 0 #000; */
  /* color: #CBDBFB; */
}

.table_total_title {
  font-weight: bold;
  text-align: left;
}
.table_footer {
  padding: 10px;
}
.blank_row {
  padding: 30px;
}
.table_subtitle {
  font-style: italic !important;
  text-align: center;
}

.table_subtotal_subtitle {
  font-style: italic !important;
  text-align: left;
}

.table_subtotal {
  font-style: italic !important;
}

.table_total {
  font-weight: bold;
  text-align: right;
}

.asset_color {
  background-color: rgba(31,119,180,0.07);

}
.liability_color {
  background-color: rgba(255,127,14,0.07);
}

.tnw_color {
  background-color: rgba(44,160,44,0.07);
}

.chart_box_asset {
  border: 1px solid #1f77b4;
  margin-top: 2px;
  padding: 10px;
  border-radius: 25px;
  background-color: whitesmoke;
  /* border-color: rgba(0,0,255,0.05); */
}
.chart_box_liability {
  border: 1px solid rgba(255,0,0,0.5);
  margin-top: 10px;
  border-radius: 25px;
  padding: 10px;
  /* border-color: rgba(255,0,0,0.05); */
}
.chart_box_total {
  border: 1px solid #2ca02c;
  margin-top: 10px;
  border-radius: 25px;
  padding: 10px;
  /* border-color: rgba(0,255,0,0.05); */
  background-color: whitesmoke;
}
.chart_box_pie {
  border: 1px solid #1f77b4;
  margin-top: 10px;
  border-radius: 25px;
  padding: 10px;
  background-color: whitesmoke;
  display: flex;
  justify-content: center;
  cursor: pointer;
  /* border-color: rgba(0,255,0,0.05); */
}
#btn_add_goal {
  margin-left: 10px;
  cursor: pointer;
}
#goal_header {
  display: flex;
  align-items: center;
  gap: 10px;
}
#bank_sync_bar {
  margin: 6px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}
#bank_sync_bar button {
  cursor: pointer;
}
#bank_sync_bar button[disabled] {
  cursor: not-allowed;
  opacity: 0.6;
}
#bank_sync_status {
  font-size: 12px;
  color: #555;
  margin-left: 8px;
}
#bank_sync_status.success { color: #2ca02c; }
#bank_sync_status.error   { color: #c62828; }
#goal_filter_bar {
  margin: 10px 0;
}
#goal_filter_bar select {
  padding: 4px 8px;
  border: 1px solid #1f77b4;
  border-radius: 4px;
}
.chart_box_pie_cell {
  margin: 0 auto;
  max-width: 410px;
}
#table_goals_list td {
  padding: 8px;
  vertical-align: top;
}
#table_goals_list th.goal_chart_col,
#table_goals_list td.goal_chart_col {
  width: 420px;
  min-width: 420px;
  max-width: 420px;
}
#table_goals_list th.goal_summary_col,
#table_goals_list td.goal_summary_col {
  width: auto;
}
.goal_summary_cell {
  font-family: Georgia, 'Times New Roman', serif;
  line-height: 1.45;
  color: #333;
}
.goal_summary_text {
  font-size: 17px;
  font-style: italic;
}
.goal_summary_sources {
  margin-top: 10px;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: 11px;
  color: #666;
}
.goal_summary_sources a {
  color: #1f77b4;
  text-decoration: none;
  margin-right: 4px;
}
.goal_summary_sources a:hover {
  text-decoration: underline;
}
.goal_summary_refresh {
  display: inline-block;
  margin-top: 6px;
  font-family: Arial, sans-serif;
  font-style: normal;
  font-size: 11px;
  color: #1f77b4;
  text-decoration: none;
}
.goal_summary_refresh:hover {
  text-decoration: underline;
}
.goal_summary_loading,
.goal_summary_error {
  color: #888;
  font-size: 12px;
}
.goal_summary_error {
  color: #c62828;
}
.chart_box_header {
  border: 1px solid #1f77b4;
  margin-top: 2px;
  padding: 8px;
  border-radius: 25px;
  background-color: whitesmoke;
  /* border-color: rgba(0,0,255,0.05); */
}
.chart_box_detail {
  border: 1px solid #1f77b4;
  margin-top: 2px;
  padding: 8px;
  border-radius: 25px;
  background-color: whitesmoke;
  /* border-color: rgba(0,0,255,0.05); */
}
.drill_cell {
  cursor: pointer;
}
.drill_cell:hover {
  background-color: #eef4ff;
}
.drill_cell.drill_cell_liability:hover {
  background-color: #ffe6d6;
}
.drill_cell.drill_cell_total:hover {
  background-color: #dff2db;
}
td.balance_clickable {
  cursor: pointer;
  color: #1f77b4;
  text-decoration: underline dotted;
}
td.balance_clickable:hover {
  background-color: #eef4ff;
}

/* Dialog close button — draw a guaranteed-visible "x" instead of relying
   on the jQuery UI icon sprite, which was rendering blank. */
.ui-dialog .ui-dialog-titlebar-close {
  text-indent: 0;
  font-size: 0;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 3px;
}
.ui-dialog .ui-dialog-titlebar-close .ui-icon,
.ui-dialog .ui-dialog-titlebar-close .ui-button-icon-space {
  display: none;
}
.ui-dialog .ui-dialog-titlebar-close::after {
  content: "\2715";
  display: block;
  font-size: 14px;
  line-height: 1;
  color: #333;
  text-align: center;
}
.ui-dialog .ui-dialog-titlebar-close:hover {
  background: #e6e6e6;
  border-color: #999;
}
.ui-dialog .ui-dialog-titlebar-close:hover::after {
  color: #000;
}

/* "+" buttons next to the account-type / institution dropdowns in the account
   detail dialog; open a small modal to add a new lookup value */
.add_lookup_btn {
  margin-left: 6px;
  width: 26px;
  height: 26px;
  line-height: 22px;
  text-align: center;
  font-size: 18px;
  font-weight: bold;
  color: #1f77b4;
  background: whitesmoke;
  border: 1px solid #1f77b4;
  border-radius: 50%;
  cursor: pointer;
  vertical-align: middle;
  padding: 0;
}
.add_lookup_btn:hover {
  background: #1f77b4;
  color: white;
}

/* admin tab */
#tab_admin {
  margin-top: 10px;
}
/* jquery-ui.css paints every .ui-tabs-panel with #CBDBFB; for the nested
   admin tabs we want the inner panels to inherit the .home_group white so
   the DataTables striping isn't washed out on a blue background */
#tab_admin .ui-tabs-panel {
  background-color: white;
}
.admin_add_btn {
  margin-bottom: 10px;
}
.admin_table {
  margin-top: 10px;
}
.admin_action_col {
  white-space: nowrap;
  text-align: right;
}
.admin_edit_btn, .admin_delete_btn {
  padding: 2px 8px;
  font-size: 0.85em;
}
