input {
    all: unset;
    width: 65%;
    background-color: white;
    text-align: left;
}

select {
    background-color: white;
}

label {
    width: 30%;
    text-transform: none;
    font-weight: 400;
    color: #333;
    font-size: 1.1em;
    display: block;
    padding: 0 0 .8em;
    margin: 0;
    line-height: 1.3em;
    white-space: nowrap;
}

.center {
    padding: 14px;
}

.flex-container {
    display: flex;
    flex-flow: row wrap;
    justify-content: stretch;
}

.flex-col {
    flex: 1 250px;
    background-color: #f1f1f1;
    margin: 10px;
    text-align: center;
    font-size: 12px;
}

legend {
    height: 20px;
    margin: 10px;
    padding: 10px;
    position: relative;
    width: 100px;
    background-color: paleturquoise;
    font-size: 14px;
}

.gallery_form_row {
    display: flex;
    padding: 10px;
    margin: 10px;
}

.column_col {
    align-self: flex-start;
}

.two_column_container {
    display: flex;
    align-items: center;
}

.two_column_container ul {
    list-style-type: none;
    margin-left: 20px;
    padding: 10px;
}

/* for the photo display */

#photosouterwrapper {
    width: 220px;
    margin: auto;
}

#photoswrapper {
    padding: 10px 0;
    overflow: auto;
}

#baphotos {
    width: 220px;
    margin: 0;
    padding: 0;
    list-style-type: none;
}

#baphotos li {
    position: relative;
    float: left;
    width: 90px;
    height: 55px;
    margin: 0 5px 5px 0;
    padding: 5px;
    border: 1px solid #BBB;
    background-color: #EEE;
    text-align: center;
    cursor: move;
}

#baphotos li {
    background-repeat: no-repeat;
    background-position: center center;
}

#baphotos li.deleted {
    display: none;
}

#baphotos a.delete {
    display: block;
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 0 0 1px 1px;
    border-color: #BBB;
    border-style: solid;
    border-width: 0 0 1px 1px;
    -moz-border-radius-bottomleft: 8px;
    background-color: #FFF;
}

#baphotos li.invalid {
    border: 1px solid red;
    background-color: #FFA;
}

#baphotos li.invalid a.delete {
    border-color: red;
}

#baphotos li .content {
    text-align: left;
}

#baphotos li.invalid .title {
    color: red;
    font-weight: bold;
}

#baphotos li.invalid .message {
    border: none;
    padding: 0;
    margin: 0;
    font: inherit;
    text-align: inherit;
}

#baphotos li .progressmsg {
    font-style: italic;
    padding-bottom: 5px;
}

#baphotos li .progress {
    background-color: #FFFFFF;
    border: 1px solid #808080;
    border-right-color: #C5C5C5;
    border-bottom-color: #C5C5C5;
}

#baphotos li .progressbar {
    background-color: #0099FF;
    width: 0;
    height: 15px;
}

#baphotos li .percentage {
    position: absolute;
    right: 35%;
}

#baphotos li .speed {
    float: right;
    padding: 5px 20px 0 0;
}

#baphotos img.photo {
    display: block;
    margin: auto;
    padding: 2px;
    border: 1px solid #AAA;
    background-color: #FFF;
    max-width: 80px;
}

#baphotos a.delete {
    display: block;
    position: absolute;
    top: -1px;
    right: -1px;
    padding: 0 0 1px 1px;
    border-color: #BBB;
    border-style: solid;
    border-width: 0 0 1px 1px;
    -moz-border-radius-bottomleft: 8px;
    background-color: #FFF;
}

#uploadwrapper {
    float: left;
    margin-top: 10px;
    text-align: center;
    width: 90%;
}

#uploadqueuewrapper {
    visibility: hidden;
    position: absolute;
    width: 300px;
    padding: 0;
    margin: 0;
    overflow: hide;
}

#uploadqueue {
    padding: 20px 20px 15px 20px;
    margin: 0;
    border: 1px solid #666;
    background-color: #FFE;
    opacity: 0.8;
}

#uploadqueue .title {
    font-weight: bold;
    padding-bottom: 5px;
}

.uploadifyQueueItem {
    border: 1px solid #363;
    background-color: #DED;
    margin-bottom: 5px;
    padding: 5px;
}

.uploadifyQueueItem .cancel {
    /*display: none;*/
    float: right;
}

.uploadifyError {
    border: 1px solid #D11814 !important;
    background-color: #FDE5DD !important;
}

.uploadifyProgress {
    background-color: #FFFFFF;
    border: 1px solid #808080;
    border-right-color: #C5C5C5;
    border-bottom-color: #C5C5C5;
}

.uploadifyProgressBar {
    background-color: #0099FF;
    width: 0;
    height: 15px;
}

.procedurephoto {
    width: 100%;
}

.procedurephoto {
    display: block;
    width: 90%;
    margin-top: 1em;
    margin-right: 1em;
    border: 1px solid;
    border-color: #DDD #AAA #AAA #DDD;
    border-radius: 2px;
    background-color: white;
    *position: relative;
    overflow: hidden;
}

.procedurephoto a {
    text-decoration: none;
    display: block;
    padding: 3px;
    font-size: 1.4em;
    width: 100%;
}

.procedurephoto a>span {
    display: table;
    *position: relative;
    *height: 100px;
}

.procedurephoto .albumtext_wrapper {
    display: table-cell;
    vertical-align: middle;
    *position: absolute;
    *top: 50%;
    cursor: pointer;
}

.procedurephoto .albumtext_wrapper>span {
    display: block;
    *position: relative;
    *top: -50%;
}

.procedurephoto a:hover {
    text-decoration: none;
}

.procedurephoto img {
    padding-right: 1em;
}

.procedurephoto .subprocedures {
    color: #666;
    font-size: 12px;
}

.baglistspacer {
    border-top: 1px solid #B8CEE6;
    line-height: 1px;
    margin-bottom: 10px;
    width: 90%;
}

.baglistphototh {
    width: 110px;
    font-weight: bold;
    text-align: left;
    color: #135CAE;
}

.baglistphoto {
    width: 120px;
    padding-bottom: 2em;
}

.baglistphoto img {
    vertical-align: top;
    margin-right: 10px;
    padding: 2px;
    border: 1px solid #AAA;
}

.baglistdetails {
    padding-bottom: 1em;
}

.baglistdetails .procedures {
    margin-bottom: 0.5em;
    font-style: italic;
}

.baglistdetails .heading {
    font-weight: bold;
    margin-bottom: 0.2em;
}

.baglistdetails .personal {
    color: #666;
    margin-bottom: 1em;
}

.baglistdetails .link {
    margin-bottom: 1em;
}

.bagphotos {
    width: 430px;
}

.bagphoto {
    padding: 1px;
}

.bagphoto img {
    margin-right: 10px;
    margin-bottom: 10px;
    padding: 2px;
    border: 1px solid #AAA;
}

.bagdetails {
    padding-bottom: 1em;
}

.bagdetails .metawrapper {
    clear: both;
    margin-bottom: 0.5em;
}

.bagdetails .metadescription {
    float: left;
    font-weight: bold;
    margin-bottom: 0.5em;
    margin-right: 0.5em;
}

.bagdetails .metavalues {
    float: left;
    font-weight: normal;
    margin-bottom: 1em;
}

.contentheading {
    margin-top: 0;
    margin-bottom: 1em;
}

.metaspace {
    height: 3em;
}

.pagination span {
    margin: 2px;
}

.pagination a {
    margin: 2px;
    text-decoration: underline !important;
}

#filterwrapperouter {
    float: left;
    border-radius: 3px;
    /* border: 1px solid #DDD; */
    /*border-color: #DDD #AAA #AAA #DDD; */
    margin-bottom: 1em;
    padding: 5px;
    width: 90%;
    background-color:#e9ecef;
}

#filterwrapper {
    position: absolute;
}

#filterwrapperinner {
    padding: 0 5px 5px 5px;
    border: 1px solid #DDD;
    border-color: #DDD #AAA #AAA #DDD;
    border-top: none;
    border-radius: 0 0 10px 10px;
    background-color: #F6F6F6;
    visibility: hidden;
}

#filterwrapper table {
    border-collapse: collapse;
}

#filterwrapper table td {
    padding: 1px;
}

#filterwrapper hr {
    border: none;
    border-top: 1px dashed #BBB;
    height: 1px;
    margin: 0 auto 5px;
}

#filtertogglewrapper {
    float: right;
}

#filtertogglewrapper a {
    display: block;
    padding: 1px 5px 0 8px;
    border: 1px solid;
    border-color: #7C99B7 #0E4582 #0E4582 #7C99B7;
    border-radius: 4px;
    background-color: #E1EAF4;
}

#filtertogglewrapper a:hover {
    text-decoration: none;
}

#filtertogglewrapper img {
    vertical-align: middle;
    display: inline;
}

#paginationwrapper {
    float: left;
    padding-right: 1em;
    font-size: 16px;
}

#patientlinkwrapper {
    float: right;
}

td {
    padding: 5px;
    margin: 5px;
    border: none;
    vertical-align: top;
}

/* Pagination styles */

#paginationwrapper ul {
    margin: 0 25px 0 0;
    padding: 0;
    float: left;
    list-style-type: none;
}

#paginationwrapper ul li {
    float: left;
    padding: 0 0 5px 10px;
    background: none;
    list-style: none;
}

#paginationwrapper ul li .pagenav {
    padding: 0;
    margin: 0;
    border: none;
}

.no_bullets ul {
    margin: 0 25px 0 0;
    padding: 0;
    float: left;
    list-style-type: none;
}

.no_bullets ul li {
    float: left;
    padding: 0 0 5px 10px;
    background: none;
    list-style: none;
}

.no_bullets ul li .pagenav {
    padding: 0;
    margin: 0;
    border: none;
}

/* Make album image area behave like the old "table" layout expects */
.procedurephoto .albumimg_wrapper {
  display: table-cell;
  vertical-align: middle;
}

/* Side-by-side before/after sample thumbnails */
.procedurephoto .albumimg_wrapper .subproc-pair {
  display: inline-flex;
  gap: 1px;
}

.procedurephoto .albumimg_wrapper .subproc-half {
  display: block;
  flex: 1 1 0;
  min-width: 0;
}

.procedurephoto .albumimg_wrapper .subproc-half img {
  display: block;
  width: 100%;
  height: auto;
}

.case-pair { margin-bottom: 18px; }
.case-pair-row { display: flex; gap: 8px; }
.case-pair-col { flex: 1 1 0; }
.case-pair-col img { width: 100%; height: auto; display: block; }
.case-pair-title { font-weight: bold; margin: 6px 0; }
.case-pair-label { font-weight: bold; margin: 10px 0 6px; }
.case-pair-caption { margin-top: 6px; }

/* Case detail: rely on Bootstrap grid */
.case-pair-row {
  margin-left: 0;
  margin-right: 0;
}

.case-pair-col {
  padding-left: 6px;
  padding-right: 6px;
}

.case-pair-col img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 767px) {
  .procedurephoto .albumimg_wrapper .subproc-pair {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
}