table.record_table
{
    width: 895px;
    border: 1px solid #C8CDD6;
    border-radius: 4px;
    border-collapse: separate;
    border-spacing: 0;
    margin-bottom: 10px;
}

table.record_table td
{
    text-align: left;
    height: 20px;
    border: none;
    margin: 0;
    padding: 0;
}

/* a flat header in the record list's blue tint, ruled off from the rows */
table.record_table th
{
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    color: #2B3A5C;
    border: none;
    border-bottom: 1px solid #C5D0E6;
    margin: 0;
    padding: 0;
    background: #F3F6FC;
}

table.record_table tr:first-child th:first-child { border-top-left-radius: 3px; }
table.record_table tr:first-child th:last-child { border-top-right-radius: 3px; }

table.record_table th.record_name {
    width: 445px;
}

table.record_table th.record_size {
}
table.record_table th.record_date {
}
table.record_table th.record_time {
}
table.record_table th.record_user {
}


table.record_table tr.odd
{
    background-color: #F7F8FA;
}

table.record_table tr.even
{
    background-color: #FFF;
}

table.record_table tr.home-row:hover {
    background-color: #EDF5FF;
}

/* a line between records, and a frame around an open one and its details */
table.record_list tr.home-row td {
    border-top: 1px solid #E3E6EC;
}

table.record_list tr.home-row.expanded,
table.record_list tr.home-row.expanded + tr.record_details {
    background-color: #F3F6FC;
}

table.record_list tr.home-row.expanded td {
    border-top-color: #4161A8;
}

table.record_list tr.home-row.expanded td:first-child,
table.record_list tr.home-row.expanded + tr.record_details td:first-child {
    box-shadow: inset 3px 0 0 #4161A8;
}

table.record_list tr.home-row.expanded + tr.record_details td {
    border-bottom: 1px solid #4161A8;
}

table.record_list tr.home-row.expanded + tr.record_details td:first-child {
    padding-left: 18px;
}

table.record_list tr.home-row.expanded + tr.record_details td:last-child {
    padding-right: 14px;
}

table.record_table span.comment-count {
    background-color: #4161A8;
    border-radius: 9px;
    box-sizing: border-box;
    color: #fff;
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    height: 18px;
    /* fallback: the line box leaves room for descenders, which digits don't use, so
       start it 2px down to centre the digit (right in Firefox, a little low in Safari) */
    line-height: 16px;
    min-width: 18px;
    padding: 2px 6px 0;
    text-align: center;
    vertical-align: middle;
}

/* where the font's extra space above and below can be trimmed, the content is exactly
   the digit's height (cap height to baseline), and equal padding centres it */
@supports (text-box: trim-both cap alphabetic) {
    table.record_table span.comment-count {
        height: auto;
        line-height: 1;
        padding: calc((18px - 1cap) / 2) 6px;
        text-box: trim-both cap alphabetic;
    }
}

table.record_table tr td, table.record_table tr th
{
    margin:0;
    padding:4px 4px;
    vertical-align: middle;
}

table.record_table tr td div.record_details_toggle {
    height: 18px;
    width: 18px;
    line-height: 18px;
    text-align: center;
    margin-left: 4px;
    border-radius: 3px;
    color: #6B7A99;
    font-size: 11px;
}

table.record_table tr td div.record_details_toggle:hover {
    background-color: #E6ECF7;
    color: #4161A8;
}

table.record_table tr td div.record_details_toggle:before {
    display: inline-block;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
}

table.record_table tr td div.record_details_toggle_exp:before {
    content: '\f054'; /* chevron-right */
}

table.record_table tr td div.record_details_toggle_col:before {
    content: '\f078'; /* chevron-down */
    color: #4161A8;
}

/* this rule had no :before, so the spinner never showed while details loaded */
table.record_table tr td div.record_details_toggle_loading:before {
    content: '\f110'; /* spinner */
    animation: record-toggle-spin 1s linear infinite;
}

@keyframes record-toggle-spin {
    to { transform: rotate(360deg); }
}

table.record_table td span.file-size {
    font-size: 10px;
}

table.record_table td.new:before
{
    font-family: "Font Awesome 6 Free";
    content:'\e185';
    font-weight: 900;
    color: rgb(255, 123, 0);
}

table.record_table td.old:before
{
    font-family: "Font Awesome 6 Free";
    content: '\f772';
    font-weight: 900;
    color: #0ebf00;
}

table.record_table td.old,
table.record_table td.new
{
    padding-left: 32px;
}

div.note
{
    font-size: 11px;
    padding: 10px;
}

div.header
{
    padding: 5px;
    margin: 0;
    font-weight: bold;
    width: 70px;
    border: 1px solid #CBCBCB;
}

div.facility_link a
{
    font-size: 14px;
    font-weight:bold;
}

table.record_table div.record_comments_header {
    border-bottom: 1px solid #C5D0E6;
    border-radius: 0;
    color: #4161A8;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 6px;
    padding: 2px 0 4px;
}

table.record_table ol.record_comments {
    list-style: none;
    margin-left: 0;
    margin-top: 5px;
    padding-right: 10px;
}

table.record_table ol.record_comments li {
    margin-bottom: 5px;
}

table.record_table ol.record_comments li {
    border-left: 2px solid #C5D0E6;
    padding: 2px 0 2px 10px;
}
table.record_table ol.record_comments li div.comment_header {
    color: #6B7A99;
    font-size: 11px;
}
table.record_table ol.record_comments li div.comment_header strong {
    color: #2B3A5C;
    font-size: 13px;
    margin-right: 4px;
}
table.record_table ol.record_comments li div.comment_body {
    font-size: 12px;
    margin-top: 2px;
    width: 350px;
    max-width: 100%;
    overflow-wrap: anywhere;
}
table.record_table ol.record_comments li div.comment_attachment {
    font-size: 11px;
    margin-top: 2px;
    overflow-wrap: anywhere;
}

table.record_table button.attach_button {
    margin-top: 5px;
}

/* N / IP / C stay on one line; the column widens instead of wrapping. */
table.record_table td.record_status {
    white-space: nowrap;
}

table.record_table .status {
    background-color: #FFF6D6;
    border-radius: 3px;
    color: #6B5300;
    font-size: 12px;
    margin-left: 6px;
    padding: 3px 8px;
}

table.record_table div.attach_link_container {
    color: #6B7A99;
    font-size: 11px;
    margin: 6px 0 10px;
}

table.record_table div.attach_link_container a.attach_link:before {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    content: '\f0c6'; /* paperclip */
    margin-right: 5px;
    text-decoration: none;
    display: inline-block;
}

table.record_table textarea:focus {
    border-color: #4161A8;
    box-shadow: 0 0 0 2px #E6ECF7;
    outline: none;
}

table.record_table textarea {
    border: 1px solid #C8CDD6;
    border-radius: 4px;
    font: inherit;
    font-size: 12px;
    height: 25px;
    margin-top: 4px;
    padding: 6px 8px;
    width: 430px;
    max-width: 100%;
}

table.record_table div.record_statuses {
    font-size: 11px;
}

table.record_table div.record_statuses ul {
    margin-left: 15px;
}

table.record_table tr.record_details td {
    padding-bottom: 15px;
    vertical-align: top;
}

table.record_table div.record_expire {
    float: right;
    font-size: 9px;
    padding: 1px 5px;
    text-align: right;
}

table.record_table td.right,
table.record_table th.right {
    text-align: right;
}

table.record_table td.center,
table.record_table th.center {
    text-align: center;
}
