/*
Stanza Law law office management software
Copyright 2024 CanCan Systems, Inc.
*/

:root {
  /* Modern neutral: neutral greys, one slate-indigo accent */
  --brand-50:#eef0f7;
  --brand-100:#e0e4f0;
  --brand-200:#c5cce3;
  --brand-500:#6e7ca8;
  --brand-600:#4f5d95;
  --brand-700:#434f80;
  --gray-50:#f9fafb;
  --gray-100:#f3f4f6;
  --gray-200:#e5e7eb;
  --gray-300:#d1d5db;
  --gray-400:#9ca3af;
  --gray-500:#6b7280;
  --gray-600:#4b5563;
  --gray-700:#374151;
  --gray-900:#111827;
  --danger-600:#c62828;
  --focus-ring:0 0 0 3px rgba(79, 93, 149, .25);
  --shadow-sm:0 1px 2px rgba(16, 24, 40, .05);
  --shadow-md:0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg:0 12px 32px rgba(16, 24, 40, .16), 0 2px 6px rgba(16, 24, 40, .08);
  --hairline:0 0 0 1px var(--gray-200); /* a 1px outline that takes no space */
  --chevron-down:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --header-height:3.5rem;

  --root-font-size:clamp(14px, 14px + 2vw, 16px);
  --default-body-font-size:16px; /* default body font size */
  --font-family:system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-color:var(--gray-900);
  --font-weight:400;
  --site-background-color:#f6f7f9;
  --box-border-radius:.5rem;
  --box-border:1px solid var(--gray-200);
  --header-background-color:transparent;
  --header-company-name-background-color:#ffffff;
  --header-company-name-color:var(--gray-900);
  --header-font-color:var(--gray-900);
  --field-set-border:1px solid var(--gray-300);
  --field-set-background-color:transparent;
  --legend-color:var(--gray-600);
  --label-font-color:var(--gray-600);
  --label-font-weight:500;
  --label-font-size:.9rem;
  --label-required-color:var(--danger-600);
  --error-message-font-color:var(--danger-600);
  --error-message-background-color:transparent;
  --error-message-font-size:.95rem;
  --focus-background-color:#ffffff;
  --content-background-color:#ffffff;
  --content-box-shadow:var(--shadow-md);
  --content5-background-color:#fafbfc;
  --content-highlight-background:var(--gray-50);
  --row-hover-color:var(--gray-50);
  --pop-overlay-color:#111827;
  --pop-content-background-color:#ffffff;
  --input-color:var(--gray-900);
  --input-background-color:#ffffff;
  --input-readonly-background-color:var(--gray-50);
  --input-border:1px solid var(--gray-300);
  --input-focus-color:#ffffff;
  --menu-option-color:var(--gray-900);
  --menu-option-background-color:transparent;
  --menu-option-hover-background-color:var(--gray-100);
  --menu-option-hover-color:var(--gray-900);
  --scrollbar-background-color:transparent;
  --scrollbar-slide-color:var(--gray-300);
  --side-menu-background-color:var(--gray-50);
  --side-menu-title-font-color:var(--gray-900);
  --side-menu-option-color:var(--gray-900);
  --side-menu-option-background-color:#ffffff;
  --side-menu-option-hover-color:var(--gray-900);
  --side-menu-option-hover-background-color:var(--brand-50);
  --side-menu-option-width:100%;
  --top-menu-title-font-color:var(--gray-900);
  --top-menu-title-background-color:transparent;
  --top-menu-background-color:#ffffff;
  --top-menu-option-color:var(--gray-600);
  --top-menu-option-background-color:transparent;
  --top-menu-option-hover-color:var(--gray-900);
  --top-menu-option-hover-background-color:var(--gray-100);
  --top-menu-option-selected-color:var(--brand-600);
  --top-menu-option-selected-background-color:transparent;
  --top-menu-option-width:auto;
  --dropdown-menu-background-color:#ffffff;
  --dropdown-menu-option-color:var(--gray-900);
  --dropdown-menu-option-hover-color:var(--gray-900);
  --dropdown-menu-option-hover-background-color:var(--gray-100);
  --dropdown-select-background-color:#ffffff;
  --dropdown-select-option-color:var(--gray-900);
  --dropdown-select-option-hover-color:var(--gray-900);
  --dropdown-select-option-hover-background-color:var(--gray-100);
  --dropdown-select-option-selected-color:var(--brand-700);
  --dropdown-option-border-bottom:1px solid var(--gray-100);
  --dropdown-select-option-selected-background-color:var(--brand-50);
  --table-background-color:#ffffff;
  --table-font-color:var(--gray-900);
  /* light header; the sorted-column cue (an inline white th) gets an accent underline below */
  --table-header-background-color:var(--gray-50);
  --table-header-font-color:var(--gray-600);
  --table-even-row-background:#ffffff;
  --table-odd-row-background:#fbfbfc;
  --table-row-border:1px solid var(--gray-100);
  --table-th-hover-color:var(--brand-50);
  --button-background-color:var(--brand-600);
  --button-font-color:white;
  --button-hover-background-color:var(--brand-700);
  --button-hover-font-color:white;
  --button-disabled-background-color:var(--gray-100);
  --button-disabled-font-color:var(--gray-400);
  --icon-color:white; 
}


@media (min-width: 875px) { 
  div#primary {
   margin: 0 auto;
   float: unset;
  }
}  

/*  Set body-html defaults */

html {
  font-family: var(--font-family);
  font-weight: var(--font-weight);
  font-size: var(--root-font-size); /* root font size */
  color: var(--font-color);
  background-color:var(--site-background-color); 
  -webkit-font-smoothing: antialiased;
  /* Arial's line height: many screens fix panel heights to the old text and field sizes */
  line-height:1.15;
}

body{
  margin:0;
}

* { box-sizing: border-box;}
* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-slide-color) var(--scrollbar-background-color);
}
   h1{font-size:1.5rem;}
   h2{font-size:1.125rem;}
   h3{font-size:1.05rem;}
   h4{font-size:1rem;}
  .col-1 {width: 8.33%;}
  .col-2 {width: 16.66%;}
  .col-3 {width: 25%;}
  .col-4 {width: 33.33%;}
  .col-5 {width: 41.66%;}
  .col-6 {width: 50%;}
  .col-7 {width: 58.33%;}
  .col-8 {width: 66.66%;}
  .col-9 {width: 75%;}
  .col-10 {width: 83.33%;}
  .col-11 {width: 91.66%;}
  .col-12 {width: 100%;}

[class*="col-"] { 
  margin:auto;
  padding:0.6rem;
}
h1,h2,h3,h4,h5,h6 {
    border-radius: var(--box-border-radius);
    width:100%;
    font-weight:600;
    line-height:1.3;
}

h1 {
    color: var(--header-company-name-color);
}
/* Section titles: dark text over a thin rule (an inset shadow, so the box keeps its size).
   A title with an inline background (case stage colours) keeps it. */
h2 {
    background-color:var(--header-background-color);
    color: var(--header-font-color);
    padding:.4rem .75rem;
    margin:.25rem 0 .5rem 0;
    border-radius:0;
    box-shadow: inset 0 -1px 0 var(--gray-200);
}
h3 {
  margin:.0rem .0rem .0rem 0rem;
  width:100%;
  padding: .4rem .75rem;
  color: var(--top-menu-title-font-color);
  background-color:var(--top-menu-title-background-color);
  letter-spacing:-.01em;
}
h4 {
  background-color:var(--header-background-color);
  color: var(--header-font-color);
  padding:.2rem .75rem;
  margin: .5rem 0rem .5rem 0rem;
  border-radius:0;
  box-shadow: inset 0 -1px 0 var(--gray-200);
}
/* h5 is the screens' notice line: "no records" messages and notes (about 70 across the screens).
   Grey, not the error red; the two that are errors carry the error look. Box and size unchanged. */
h5 {
	color:var(--gray-600);
  background-color:var(--error-message-background-color);
  font-size:var(--error-message-font-size);
	text-align:center;
}
h5.error-message, #pop-password-message {
  color:var(--error-message-font-color);
  font-weight:600; /* .error-message would make it 500 */
}

#site_content{
  width:100%;
  height:100%;
}

#site-content {
  width:100%;
  height:100%;
}

#application-content{
  width:100%;
  height:100%;
}

#content {
    width:100%;
    min-height:48%;
}
.content1 {
    width:100%;
    border:var(--box-border);
    margin: .06rem;
    padding:.06rem .25rem;
    box-shadow: var(--content-box-shadow);
    background-color: var(--content-background-color);
    border-radius: var(--box-border-radius);
}
.content2 {
	  width: 100%;
    margin:.06rem;
    padding:.06rem .25rem;
    background-color: var(--content-background-color);    
    border-radius: var(--box-border-radius);
    box-shadow: var(--hairline), var(--shadow-sm);
}
.content3 {
    width: 100%;
    border: var(--box-border);
    margin: .06rem;
    padding:.06rem;
    background-color: var(--content-background-color);
    box-shadow:  var(--content-box-shadow);
    border-radius: var(--box-border-radius);
    overflow-y:auto;
    overflow-x:hidden;
    /*max-height:40vh;*/
    max-height:45rem;
}
.content4 {
    width: 100%;
    float:left;
    border: var(--box-border);
    background-color:var(--content-background-color);
    border-radius: var(--box-border-radius);
    margin: .06rem;
    padding:.06rem;
    overflow-y:auto;
    overflow-x:hidden;
    max-height:40rem;
}
.content5 {
  width:100%;
  float:left;
  padding:.06rem .25rem;
  background-color:var(--content5-background-color);
  box-shadow: inset 0 0 0 1px var(--gray-200); /* an outline that takes no space */
  border-radius: var(--box-border-radius);
}
.content6 {
  width: 100%;
  float:left;
  border: var(--box-border);
  background-color:var(--content-background-color);
  border-radius: var(--box-border-radius);
  margin: .06rem;
  padding:.06rem;
}
.content7 {
    width: 100%;
    float:left;
    border: var(--box-border);
    background-color:var(--content-background-color);
    border-radius: var(--box-border-radius);
    margin: .06rem;
    padding:.06rem;
    overflow-y:auto;
    overflow-x:hidden;
}
.content-highlight {
  background-color: var(--content-highlight-background);
}
.row {
  width:100%; 
 }
 .row:hover {
   background-color:var(--row-hover-color);
 } 
 .row::after {
   content: "";
   clear: both;
   display: table;
 }
 .rowcontent{
   visibility:visible;
 }
fieldset {
  border:var(--field-set-border);
  border-radius: var(--box-border-radius);
  background-color:var(--field-set-background-color);
}
legend{
  color:var(--legend-color);
  font-weight:600;
  padding:0 .25rem;
}
.icon {
  margin: 0rem .71rem 0rem .71rem;
  font-size:1.25rem;
  color:var(--icon-color);
	text-align:center;
	cursor:pointer;
}
.center-div { 
    position: absolute;
    top: 50rem;
    left: 35rem;        
    -ms-transform: translateY(-50rem);
    transform: translateY(-50rem);
}
.search-table {
	cursor: pointer;
}
.search-table-rows-content {
  overflow-x:hidden;    
  max-height:55vh;
  max-width:90%;
}

/* Pop-up screens. The scripts centre each pop-up with negative margins of half the
   size it has when it opens, but its content can grow afterwards (a Save row, a
   checklist block). So pop-ups are anchored near the top, the scripts' vertical
   margin is ignored, and the height cap keeps the whole box on screen; long
   content scrolls inside it. */

#pop, #pop-message, #pop-search, #pop-print {
  display:none;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  position: fixed;
  background-color:var(--pop-overlay-color);
  opacity: .45;
}
#pop { z-index: 20; }
#pop-message { z-index: 40; }
#pop-search { z-index: 60; }
#pop-print { z-index: 80; }

#pop-content, #pop-message-content, #pop-search-content, #pop-print-content {
	display:none;
	position:fixed;
  left: 50%;
  top : 1.5rem;
  margin-top:0 !important;
  min-width:min(30%, calc(100vw - 2rem));
  max-width:calc(100vw - 2rem);
  max-height:calc(100vh - 3rem);
  overflow:auto;
  padding:.75rem;
  background-color:var(--pop-content-background-color);
  border: var(--box-border);
  box-shadow: var(--shadow-lg);
  border-radius: .75rem;
  opacity:1;
}
#pop-content { z-index: 30; }
#pop-message-content { z-index: 50; }
#pop-search-content { z-index: 70; }
#pop-print-content { z-index: 90; }

#pop-selection-workarea {
	width: auto;
	max-width: 100%;
	padding: .71rem;
}
.pop-selection-workarea {
	max-width: 100%;
}
#pop-spinner {
  display:none;
  z-index: 100;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  position: fixed;
  opacity: .65;
}
#pop-spinner-content {
	display:none;
	position:fixed;
  padding:.71rem;
  z-index: 110;
  opacity:1;
  left: 50%;
  top : 50%;
}
label {
  margin:.05rem .71rem .05rem .71rem;
  padding:.05rem;
  min-width:2rem;
  text-align: right;
  color: var(--label-font-color);
  display:inline-block;
  font-weight: var(--label-font-weight);
  font-size:var(--label-font-size);
}
.label-required:before {
  color: var(--label-required-color);
  font-weight: 600;
  content: '*';
  display:inline;
  margin-right:.15rem;
}
.label-missing {
  color:var(--label-required-color);
}
input,select,textarea {
  border: var(--input-border);
  border-radius: .375rem;
  background-color: var(--input-background-color);
  color: var(--input-color);
  margin:.05rem .14rem .05rem .14rem;
  padding: .125rem .35rem;
  font-family: inherit;
  font-weight: var(--font-weight);
  font-size: .95rem;
  line-height:1.15;
  transition: border-color .12s, box-shadow .12s;
}
/* the original field height, so rows keep their old vertical size */
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=image]):not([type=button]):not([type=submit]), select {
  height:1.625rem;
}
/* a file field (photo, licence upload) is a field high too; its button fills it */
input[type=file] {
  height:1.625rem;
  padding:0 .35rem 0 0;
}
input[type=file]::file-selector-button {
  height:100%;
  margin-right:.5rem;
  border:0;
  border-right:var(--input-border);
  background-color:var(--gray-100);
  color:var(--gray-700);
  font:inherit;
  cursor:pointer;
}
input[readonly]:not(.get-date-js):not(.autocomplete_input):not(.select-input), textarea[readonly] {
  background-color: var(--input-readonly-background-color);
}
input:hover, select:hover, textarea:hover {
  border-color: var(--gray-400);
}
::placeholder {
  color: var(--gray-400);
}
/* Every list shows its chevron inside the field's right edge, as a native select does.
   select() / select_autocomplete() write a text glyph (▼ / ▽) after their field: it becomes an
   overlay over the field's right end (clicks go through to the field), and the field keeps room
   for it. Native selects draw the same chevron as a background at the same place.
   Chevron: Lucide chevron-down (from Feather, MIT), see icons/LICENSE-lucide.txt. */
.dropdown-select > span, .autocomplete-select > span {
  position: absolute;
  top: 50%;
  right: calc(.05rem + 1px);
  width: 1.4rem;
  height: 1.4rem;
  transform: translateY(-50%);
  overflow: hidden;
  color: transparent;
  background: var(--chevron-down) center / .875rem no-repeat;
  pointer-events: none;
}
/* An editable list's field is wider than select() used to make it (common_functions.php) by the
   room its glyph took after it: ▼ 1rem for select(), ▽ .75rem for select_autocomplete(). Its right
   padding keeps the old text room and clears the chevron. A read-only list has no chevron and
   keeps its padding. */
.dropdown-select > input:has(+ span) {
  padding-right: 1.35rem;
}
.autocomplete-select > input:has(+ span) {
  padding-right: 1.1rem;
}
/* a list never runs past its column or cell (checklist status lists sit in 10-15% cells): its
   wrapper is capped there, as responsive.css does below 1024px */
.dropdown-select, .autocomplete-select {
  max-width: 100%;
}
/* in a narrow column the wrapper is capped at the column; the field's own inline side margins
   (.3rem + .05rem) would then push it past the wrapper and away from its chevron (at 640px and
   narrower those margins are zeroed) */
@media (min-width: 640.02px) {
  .dropdown-select > input, .autocomplete-select > input {
    max-width: calc(100% - .35rem);
  }
}
select {
  appearance: none;
  padding-right: 1.5rem;
  background-image: var(--chevron-down);
  background-repeat: no-repeat;
  background-position: right .26rem center;
  background-size: .875rem;
  cursor: pointer;
}
/* select() renders a read-only text input that opens a hover menu; a read-only
   select() has no option list */
.select-input {
  cursor:pointer;
}
/* a list value too long for its field ends in … (a field capped by a narrow column, e.g. the
   plaintiff's mailing address at 1024px) */
.select-input, .autocomplete_input {
  text-overflow: ellipsis;
}
.dropdown-select:not(:has(.dropdown-select-content)) .select-input {
  background-color: var(--input-readonly-background-color);
  cursor:default;
}
textarea {	
	resize: none;  
  font-size: 1rem;
  font-weight: var(--font-weight);
}
#note_body {
  font-size: 1.05rem;
  line-height:1.5;
}
input:focus, select:focus, textarea:focus {
  outline: none;
	border-color: var(--brand-500);
	box-shadow: var(--focus-ring);
	background-color: var(--input-focus-color);
}
[type="checkbox"], [type="radio"] {
	width:1.1rem;
	height:1.1rem;
  margin: 0rem .14rem;
  vertical-align: middle;
  accent-color: var(--brand-600);
}
[type="checkbox"]:focus-visible, [type="radio"]:focus-visible {
  outline: 2px solid var(--brand-500);
  outline-offset: 2px;
  box-shadow:none;
}
button {
  border: 1px solid var(--button-background-color);
  border-radius: .375rem;
  background-color: var(--button-background-color);
  color: var(--button-font-color);
  text-align:center;
  font-family: inherit;
  font-weight: 500;
  font-size: .95rem;
  line-height:1.15;
  margin:.714rem;
  padding: .25rem .9rem;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
  transition: background-color .12s, box-shadow .12s;
}
button:hover{
  background-color: var(--button-hover-background-color);
  border-color: var(--button-hover-background-color);
  color: var(--button-hover-font-color);
}
button:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}
button:disabled,button[disabled] {
  background-color: var(--button-disabled-background-color);
  border-color: var(--button-disabled-background-color);
  color: var(--button-disabled-font-color);
  cursor: not-allowed;
}
.close-pop-screen-button {
	float:right;
	position:sticky;
	top:0;
	z-index:2;
	margin:-.4rem -.4rem .25rem .5rem;
	padding:.15rem .55rem;
}
table {
	width:100%;
  table-layout: fixed;
  border-collapse: collapse;
	padding: .14rem .36rem .14rem .36rem; 
  color:var(--table-font-color);
  background-color: var(--table-background-color); 
}
th {
	background-color:var(--table-header-background-color);
  color:var(--table-header-font-color);
  font-size:.85rem;
  font-weight:600;
  height:2em;
  text-align:center;
  text-overflow:ellipsis;	
  box-shadow: inset 0 -1px 0 var(--gray-200);
}
/* About 70 inline "solid black" borders in screen markup: same width, hairline grey */
[style*="solid black"] {
  border-color: var(--gray-300) !important;
}
/* Sorted column: screens mark it with an inline white header cell */
th[style*="background-color:white"], th[style*="background-color:#ffffff"] {
  background-color: var(--brand-50) !important;
  color: var(--brand-700) !important;
  box-shadow: inset 0 -2px 0 var(--brand-600);
}
/* Header rows stay visible while the table body scrolls inside its box */
.content3 th, .content4 th, .content7 th {
  position:sticky;
  top:0;
  z-index:1;
}
tr {
  height:2em;
  border-bottom:var(--table-row-border);
}
tr:nth-child(even) {
	background: var(--table-even-row-background);
  border-bottom:var(--table-row-border);
}
tr:nth-child(odd) {
	background: var(--table-odd-row-background);
  border-bottom:var(--table-row-border);
}
tr:hover{
  background-color:var(--table-th-hover-color);
}
.error-message {
  color: var(--error-message-font-color);
  background-color:var(--error-message-background-color);
  font-size:var(--error-message-font-size);
  font-weight:500;
  text-align:center;
}
tr.stanza-totals {
  width:90rem;
  color:var(--font-color);
  border:0;
  margin:1.43rem;
}
td {
  white-space: nowrap;
  overflow: hidden;
  text-overflow:ellipsis;
}

.menu-option{
  width:100%;  
  border:0;
  border-radius:.375rem;
  margin-bottom:.5rem;
  padding:0 .6rem;
  font-size:.95rem;
  white-space: nowrap;
  cursor:pointer;
  background-color:var(--menu-option-background-color);
}
.menu-option:hover{
  color:var(--menu-option-hover-color);
  background-color:var(--menu-option-hover-background-color);
}
.menu-option-selected{
  color:var(--menu-option-hover-color);
  background-color:var(--menu-option-hover-background-color);
}
select option {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /*max-width: 20rem;*/
}
#top-menu { 
	text-align:left;
	width: 100%;
	margin-top:.36rem;
	padding:.25rem;
	background-color:var(--top-menu-background-color);
	border:var(--box-border);
	border-radius:var(--box-border-radius);
	box-shadow:var(--shadow-sm);
}
.top-menu-title {
  margin:.5rem 0rem .5rem 0rem;
  width:100%;
  padding: .4rem .75rem;
  color:var(--top-menu-title-font-color); 
  background-color:var(--top-menu-title-background-color);
}  
.top-menu-option {
  width:var(--top-menu-option-width);
  margin:.1rem .1rem .1rem 0rem;
  padding:.3rem .75rem;
  display: inline-block;
  text-align:center;
  font-size:.95rem;
  font-weight:500;
  color:var(--top-menu-option-color);
  background-color:var(--top-menu-option-background-color);
  border-radius: .375rem;
  cursor:pointer;
  white-space:nowrap;
}
.top-menu-option:hover{
  color:var(--top-menu-option-hover-color);
  background-color:var(--top-menu-option-hover-background-color);
}
.top-menu-option-selected, .top-menu-option-selected:hover{
  color:var(--top-menu-option-selected-color);
  background-color:var(--top-menu-option-selected-background-color);
  box-shadow: inset 0 -2px 0 var(--brand-600);
  border-radius:0;
}
/* The open case's tab is marked with an inline white background (cases_menu.php): underline it */
.top-menu-option[action=display_case][style*="background-color:#ffffff"] {
  background-color: transparent !important;
  color: var(--brand-600) !important;
  box-shadow: inset 0 -2px 0 var(--brand-600);
  border-radius:0;
}
/* The case Exit tab sets a red background inline (cases_case_top_menu.php): red text instead */
.top-menu-option[style*="background-color:red"] {
  background-color: transparent !important;
  color: var(--danger-600);
}
.top-menu-option[style*="background-color:red"]:hover {
  background-color: #fdecec !important;
  color: var(--danger-600);
}
.dropdown-menu {
  position: relative;
  display: inline-block;
}
.dropdown-menu-content {
  display: none;
  position: absolute; 
  background-color:var(--dropdown-menu-background-color);
  max-height:35rem;
  box-shadow: var(--shadow-lg);
  padding: .35rem;
  z-index: 900;
  overflow-y:auto;
  overflow-x:hidden;
  border: var(--box-border);
  border-radius: var(--box-border-radius);
  margin-top:-.1rem;
  margin-left:0;
  /*max-width:20rem;*/
  font-size:90%; 
  font-weight: var(--font-weight);
}
.dropdown-menu:hover   .dropdown-menu-content{
  display: block;
}
.dropdown-menu-option{
  width:100%;
  padding: .4rem .6rem;
  border-bottom: var(--dropdown-option-border-bottom); 
  border-radius:.25rem;
  white-space: nowrap;
  cursor:pointer;
  text-align:left;
  color:var(--dropdown-menu-option-color);
}
.dropdown-menu-option:last-child{
  border-bottom:0;
}
.dropdown-menu-option:hover{
  color:var(--dropdown-menu-option-hover-color);
  background-color:var(--dropdown-menu-option-hover-background-color);
}
 .dropdown-menu-option-selected{
  color:var(--dropdown-menu-option-hover-color);
  background-color:var(--dropdown-menu-option-hover-background-color);
}

.dropdown-select {
  position: relative;
  display: inline-block;  
}
.dropdown-select-content {
  display: none;
  position: absolute;
  text-align: left;
  background-color:var(--dropdown-select-background-color);
  white-space: nowrap;
  max-height:10rem;
  min-width:5rem;
  box-shadow: var(--shadow-lg);
  padding: .35rem;
  z-index: 900;
  overflow-y:auto;
  overflow-x:hidden;
  border: var(--box-border);
  border-radius: var(--box-border-radius);
  margin-left:.3rem; /* the field's own inline margin-left, so the list lines up under it */
}
.dropdown-select:hover   .dropdown-select-content{
  display: block;
}
.dropdown-select-selected:hover {
  border-color: var(--gray-400);
}
.dropdown-select-option {
  color:var(--dropdown-select-option-color);
  padding: .35rem .5rem;
  border-bottom:var(--dropdown-option-border-bottom);  
  border-radius:.25rem;
  /*font-size:1rem;*/ 
  margin:.1rem;
  cursor:pointer;
  white-space: nowrap;
}
.dropdown-select-option:hover{
  color:var(--dropdown-select-option-hover-color);
  background-color:var(--dropdown-select-option-hover-background-color);
}
 .dropdown-select-option-selected{
  color:var(--dropdown-select-option-selected-color);
  background-color:var(--dropdown-select-option-selected-background-color);
}
.autocomplete-select {
  position: relative;
  display: inline-block;  
}
.autocomplete-select-content {
  display: none;
  position: absolute;
  text-align: left;
  background-color:var(--dropdown-select-background-color);
  white-space: nowrap;
  max-height:10rem;
  min-width:5rem;
  box-shadow: var(--shadow-lg);
  padding: .35rem;
  z-index: 900;
  overflow-y:auto;
  overflow-x:hidden;
  border: var(--box-border);
  border-radius: var(--box-border-radius);
  margin-left:.3rem; /* the field's own inline margin-left, so the list lines up under it */
}
.autocomplete_input:hover {
  border-color: var(--gray-400);
}
.autocomplete-select-option {
  color:var(--dropdown-select-option-color);
  padding: .35rem .5rem;
  border-bottom: var(--dropdown-option-border-bottom);  
  border-radius:.25rem;
  /*font-size:1rem;*/ 
  margin:.1rem;
  cursor:pointer;
  white-space: nowrap;
}
.autocomplete-select-option:hover{
  color:var(--dropdown-select-option-hover-color);
  background-color:var(--dropdown-select-option-hover-background-color);
}
 .autocomplete-option-selected{
  color:var(--dropdown-select-option-selected-color);
  background-color:var(--dropdown-select-option-selected-background-color);
}
.side-menu { 
	text-align:left;
	width: 35rem;
  height:100%;
  font-size:90%;
  float:left;
	margin-right:.25rem;
	padding:.06rem .25rem;
  font-weight:var(--font-weight);
	background-color:var(--side-menu-background-color);
	box-shadow: inset 0 0 0 1px var(--gray-200); /* an outline that takes no space */
	border-radius:var(--box-border-radius);
}
.side-menu-option {
  width:var(--side-menu-option-width);
  margin:.1rem 0;
  padding:0 .5rem;
  display: inline-block;
  font-size:.95rem;
  color:var(--side-menu-option-color);
  background-color:var(--side-menu-option-background-color);
  box-shadow: inset 0 0 0 1px var(--gray-200); /* an outline that takes no space */
  border-radius: .375rem;
  cursor:pointer; 
  overflow:hidden;
  white-space:nowrap; 
  text-overflow:ellipsis;	
}
.side-menu-option::after {
  content: "";
  clear: both;
  display: table;
}
.side-menu-option:hover{
  color:var(--side-menu-option-hover-color);
  background-color:var(--side-menu-option-hover-background-color);
}
.side-menu-option-selected{
  color:var(--side-menu-option-hover-color);
  background-color:var(--side-menu-option-hover-background-color);
  box-shadow: inset 0 0 0 1px var(--brand-200);
  font-weight:600;
}
.stanzalaw-amount{
  text-align:right;
  width:8.57rem;	
}
.image_cropped_pop {
  width: 50%; /* width of container */
  height: 50%; /* height of container */
  object-fit: cover;
  margin: auto;
}

.image_cropped {
  width: 100%; /* width of container */
  height: 100%; /* height of container */
  object-fit: cover;
  margin: auto;
}
.tinymce {
  font-family: cursive;
  font-size:110%;
  line-height: 1.5;
  margin: 1rem;
  background: #6A7A95;
  color: white;
}

/* Loading bar: common.js shows it while a request runs longer than 300ms */

#loading-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  overflow: hidden;
  z-index: 1000;
  pointer-events: none;
  background-color: var(--brand-100);
}
#loading-bar.loading-bar-on {
  display: block;
}
#loading-bar::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background-color: var(--brand-600);
  animation: loading-bar 1.1s ease-in-out infinite;
}
@keyframes loading-bar {
  from { left: -40%; }
  to { left: 100%; }
}

/* Date picker (jQuery UI) and time list (jquery.timepicker) in the app's look. Their stylesheets
   load after this one, so each rule leads with an id or with body to outrank them. */

#ui-datepicker-div {
  font-family: var(--font-family);
  font-size: .875rem;
  color: var(--gray-900);
  background: #ffffff;
  border: var(--box-border);
  border-radius: .75rem;
  box-shadow: var(--shadow-lg);
  padding: .5rem;
}
#ui-datepicker-div .ui-datepicker-group {
  padding: 0 .25rem;
}
#ui-datepicker-div .ui-datepicker-header {
  background: var(--brand-600);
  border: 0;
  border-radius: .5rem;
  color: #ffffff;
  font-weight: 600;
}
#ui-datepicker-div .ui-datepicker-prev,
#ui-datepicker-div .ui-datepicker-next {
  top: 2px;
  border: 0;
  border-radius: .375rem;
  background: transparent;
  color: #ffffff;
  cursor: pointer;
}
#ui-datepicker-div .ui-datepicker-header .ui-datepicker-prev-hover,
#ui-datepicker-div .ui-datepicker-header .ui-datepicker-next-hover {
  background: var(--brand-700); /* outranks the hovered day rule below: the arrow is .ui-state-hover too */
}
#ui-datepicker-div .ui-datepicker-header .ui-icon {
  background-image: url("jquery-ui-1.13.3.custom/images/ui-icons_ffffff_256x240.png");
}
#ui-datepicker-div table,
#ui-datepicker-div tr,
#ui-datepicker-div tr:hover,
#ui-datepicker-div th {
  background: transparent;
  border: 0;
  box-shadow: none; /* the weeks are not data rows: no zebra, rule or row hover */
}
#ui-datepicker-div th {
  color: var(--gray-500);
  font-weight: 500;
}
#ui-datepicker-div .ui-state-default {
  border: 1px solid transparent;
  border-radius: .375rem;
  background: transparent;
  color: var(--gray-700);
  text-align: center;
}
#ui-datepicker-div .ui-state-hover {
  border-color: var(--brand-50);
  background: var(--brand-50);
  color: var(--brand-700);
}
#ui-datepicker-div .ui-state-highlight {
  border-color: var(--brand-200);
  color: var(--brand-700);
  font-weight: 600;
}
#ui-datepicker-div .ui-state-active {
  border-color: var(--brand-600);
  background: var(--brand-600);
  color: #ffffff;
}

body .ui-timepicker-container.ui-timepicker-standard {
  font-family: var(--font-family);
  font-size: .875rem;
  color: var(--gray-900);
  background: #ffffff;
  border: var(--box-border);
  border-radius: .5rem;
  box-shadow: var(--shadow-lg);
  padding: .25rem;
}
body .ui-timepicker-standard .ui-timepicker {
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
}
body .ui-timepicker-standard a {
  border: 0;
  border-radius: .375rem;
  color: var(--gray-700);
}
body .ui-timepicker-standard .ui-state-hover {
  border: 0;
  background: var(--brand-600);
  color: #ffffff;
}

/* Lucide icons inside screens (magnifiers, step arrows), from icons/lucide.svg: the size of the
   emoji they replace. In a button they take the button's text colour. */
.screen-icon {
  display: inline-block;
  width: 1.25em;
  height: 1.375em; /* the emoji's box: 1.0625em above the baseline, .3125em below */
  vertical-align: -.2375em;
  margin: -.15em 0 -.075em; /* takes no more line height than text, as the emoji did */
  color: var(--brand-600);
  fill: none;
  stroke: currentColor;
  pointer-events: none;
}
button .screen-icon {
  color: inherit;
}
/* New journal: the Detail button floats beside the Reference field, which sits .5rem down in its
   own float; a button's .714rem top margin put it 3px lower than the field */
button[content="journal-entry-header"][action="save_header"] {
  margin-top:.5rem;
}
/* An icon that follows a field (magnifier, date icon) is centred on the field: the span that holds
   it is as high as a field (1.625rem) and its bottom sits where a field's bottom sits, .29rem below
   the text baseline (a field's font and height are fixed in rem; measured), whatever else is on
   the line */
span:has(> svg.screen-icon:only-child) {
  display: inline-flex;
  align-items: center;
  height: 1.625rem;
  vertical-align: -.29rem;
}
span:has(> svg.screen-icon:only-child) > svg.screen-icon {
  margin: 0;
}
/* the step arrows float at their own inline size, as the images did */
.screen-icon[style*="float"] {
  margin: 0;
}

/* Colours chosen in Setup (case steps, checklist codes, note and mail ranks, note types, the
   prescription warnings) reach a row or a title as --data-color: a light tint of the colour, a
   4px bar in the exact colour on the left, and the app's dark text. A table row draws its bar on
   its first cell. */
[style*="--data-color"] {
  background-color: color-mix(in srgb, var(--data-color) 16%, #ffffff) !important;
  box-shadow: inset 4px 0 0 var(--data-color);
  color: var(--font-color) !important;
}
:is(tr, td, th)[style*="--data-color"] {
  box-shadow: none;
}
tr[style*="--data-color"] > :first-child {
  box-shadow: inset 4px 0 0 var(--data-color);
  padding-left: calc(4px + .375rem);
}
/* text clears the bar (a box's own inline padding is .25rem at most). A grid row (.row) keeps its
   full width for its percentage columns, so they line up with uncoloured rows: its first cell
   takes the padding instead (cells are border-box) */
div[style*="--data-color"]:not(.row) {
  padding-left: calc(4px + .375rem) !important;
}
.row[style*="--data-color"] > :first-child {
  padding-left: calc(4px + .375rem);
}

/* Sort arrows in table headers (Lucide chevrons from icons/lucide.svg), centred on the header text */
th:has(> .sort-icon), .table-navigation-arrows:has(> .sort-icon) {
  white-space: nowrap;
}
.sort-icon {
  width: .875em;
  height: .875em;
  margin-left: .125rem;
  vertical-align: -.1em;
  fill: none;
  stroke: currentColor;
}
/* Desktop checklist: the due date field stays inside its cell (it is 7rem wide in a 10% cell
   and ran under the status list) */
#desktop-checklist-content .row > div > input {
  max-width: 100%;
}
/* Desktop checklist: a plaintiff's name stays on one line (full name on hover) */
.checklist-plaintiff {
  white-space: nowrap;
  overflow: clip; /* unlike hidden, the box keeps its text baseline, in line with the other cells */
  text-overflow: ellipsis;
}
