:root {
  --font-main: "Outfit", ui-sans-serif, system-ui, sans-serif,
    "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}

/* Base */
body {
  background: #fff;
  color: #333;
  font-family: var(--font-main);
  text-align: left;
  font-size: 0.8rem;
  /* min-width: 420px; */
  margin: 0;
}

#menu {
  display: none !important;
}

#wrap {
  width: 100%;
  max-width: 1400px;
  padding-bottom: 1rem;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  border: 1px solid #eee;
}

#page {
  margin: 1rem;
}

/* Boxes */
.box,
.general.box,
.files.box {
  border: none;
  margin: 0;
  padding: 0;
}

.box.general,
.box.files {
  margin: 1rem;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 0.5em 1rem;
}

.disclamer {
  /* note: original typo retained intentionally */
  margin: 1rem;
  text-align: center;
  font-size: 1rem;
  line-height: 1.2rem;
}

.fieldcontainer {
  padding: 0.5em;
  font-size: 0.9rem;
}

.content-box {
  padding: 0.5rem;
  border: 1px solid #aaa;
  border-radius: 0.5rem;
  margin: 0 0.25em 0.5em 0.25rem;
}

/* Status */
.status-badge {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: bold;
}

.status-badge.expired {
  background: #f8d7da;
  color: #610009;
  border: 1px solid #610009;
}

.status-badge.warning {
  background: #fff3cd;
  color: #664d03;
  border: 1px solid #664d03;
}

.status-badge.active {
  background: #d1e7dd;
  color: #00502b;
  border: 1px solid #00502b;
}

/* Fonts */
.ui-widget {
  font-family: var(--font-main);
}

.pager_bottom_nav {
  text-align: center;
}

/* Encryption password messages */
#encryption_password_container_too_short_message,
#encryption_password_container_must_have_numbers_message,
#encryption_password_container_must_have_upper_and_lower_case_message,
#encryption_password_container_must_have_special_characters_message {
  color: #9b0000;
}

#encryption_password_container_can_have_text_only_min_password_length_message {
  color: #00464b;
}

div#encryption_description_container {
  color: #9b9b00;
}

.encryption-warning {
  padding: .4rem 0;
}

/* Download page */
.download_page .files .file .name {
  max-width: 25rem;
  width: 100%;
  font-size: 1.4rem;
  padding: 1em 0;
}

.download_page .disclaimer,
.download_page .disclamer {
  margin: 1em auto;
  padding: 0 2rem;
  font-size: 1.1rem;
  line-height: 1.2rem;
  text-align: center;
  max-width: 60rem;
}

/* Message banners */
div.info.message,
div.notification.info {
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  border-radius: 0.5rem;
  padding: 0.5rem;
  margin: 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.info-icon {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  color: #4338ca;
}

div.info.message span,
div.info.message a {
  font-size: 0.8rem;
  line-height: 1rem;
  color: #333;
}

div.success.message,
div.notification.success {
  background: #cfc;
  border-color: #beb;
  background-image: none;
}

/* Tables */
table.general {
  width: 100%;
  min-width: 475px;
  margin: 0.5rem 0;
}

th,
td {
  vertical-align: middle;
  padding: .5rem 0.3rem;
}

/* Custom checkbox */
input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  float: left;
  height: 1rem;
  width: 1rem;
  border: 0.1rem solid #001c1e;
  border-radius: 3px;
  display: inline-block;
  vertical-align: middle;
  cursor: pointer;
  position: relative;
  margin: 0 0.5em 0 0;
}

input[type="checkbox"]:checked {
  background: #006a71;
}

input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 0.25rem;
  top: -1px;
  width: 4px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Icons */
.files-list i.fas.fa-download {
  font-size: 1rem;
  margin-top: .1rem;
}

i.fa-chisel.fa-regular.fa-circle-info {
  font-size: 1.5rem;
  color: #006a71;
}

/* Clickable affordances */
nav.clickable,
span.clickable {
  transition: color 0.2s ease-in-out;
}

span.clickable.fas {
  text-decoration: none;
}

span.clickable.audit-link {
  font-weight: 600;
}

span.downloads-badge {
  font-weight: 800;
}

span.downloads-badge.has-downloads {
  vertical-align: top;
  font-size: 0.9rem;
}

/* Transfer metadata */
.transfer-meta {
  border-bottom: 0.1em dashed #ddd;
}

.transfer-meta .row {
  display: grid;
  grid-template-columns: 5em 1fr;
  column-gap: 1rem;
  align-items: start;
  padding: 0.5em 0;
  border-bottom: 0.1em dashed #ddd;
}

.transfer-meta .row:last-child {
  border-bottom: 0;
}

.transfer-meta dt,
.transfer-message .label {
  font-weight: 600;
  color: #333;
  font-size: 1.2rem;
}

.transfer-meta dd {
  margin: 0;
  color: #222;
  font-size: 1.2rem;
}

.transfer-message {
  margin-top: 0.5rem;
}

.transfer-message .content {
  border: 1px solid #dcdfe4;
  border-radius: 8px;
  padding: 14px 16px;
  background: #fafafa;
}

.transfer-message .content p {
  margin: 0;
}

/* Headings */
#page h1,
#page h2,
#page h3,
#page h4 {
  font-weight: bold;
  margin: 0;
  padding: 0;
}

#page h1 {
  font-size: 2rem;
}

#page h2 {
  font-size: 1.7rem;
}

#page h3 {
  font-size: 1.4rem;
  line-height: normal;
  text-align: center;
}

#page h4 {
  font-size: 1.1rem;
}

#page .guests_page h2,
.transfer_details h3 {
  text-align: center;
}

#page.guests_page h2 {
  line-height: 3rem;
}

#page.guests_page h3 {
  line-height: 2rem;
}

#page.download_page h4 {
  display: inline;
}

#page .options_box h4 {
  margin-top: 1rem;
  text-align: center;
}

#page .fa-2x {
  font-size: 1.5rem;
}

/* Descriptions and dialogs */
.fieldcontainer .description {
  margin-left: 1.5rem;
  margin-top: 0.2rem;
  font-size: 0.7rem;
  line-height: 1rem;
  color: #555;
}

.ui-dialog-content p {
  margin: 0.5rem;
  font-weight: 200;
}

/* Privacy page */
#page.privacy_page h1 {
  text-align: center;
}

#page.privacy_page h4 {
  margin-top: 2rem;
}

#page.privacy_page p {
  text-align: center;
  font-size: 1rem;
  line-height: 1.3rem;
}

#page.privacy_page th,
#page.privacy_page td {
  line-height: 1rem;
  padding: 0.2em;
}

/* Side-by-side inputs */
.side-by-side-container {
  display: flex;
  align-items: center;
  gap: 1em;
}

.side-by-side-container label {
  flex-shrink: 0;
}

.side-by-side-container input[type="text"] {
  flex-grow: 1;
  width: 100%;
}

/* Collapsible */
.collapsible-container {
  margin: 1em 0;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
}

.collapsible-header {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  background: #f7f7f7;
  color: #333;
  cursor: pointer;
  list-style: none;
  position: relative;
}

.collapsible-header::-webkit-details-marker {
  display: none;
}

.collapsible-header .arrow {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #555;
  transition: transform 0.3s ease-in-out;
  position: absolute;
  right: 1em;
}

.collapsible-container[open]>.collapsible-header .arrow {
  transform: rotate(180deg);
}

.toggle_advanced_options {
  padding: 0.5em;
  border-top: 1px solid #ddd;
  background: rgb(252 252 252);
}

/* Help/About pages */
#page.help_page p,
#page.help_page .fa-ul {
  line-height: 1rem;
  margin: 0.5rem;
}

#page.help_page h3 {
  padding-top: 1rem;
}

#page.about_page p {
  line-height: 1rem;
}

/* Menu tabs */
.menu {
  border-bottom: 2px solid #e5e7eb;
  margin-bottom: 1rem;
}

.menu ul {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.menu li {
  margin: 0 0 -2px 0;
  border: 1px solid #e5e7eb;
  border-bottom: none;
  background: #f9fafb;
  border-radius: 8px 8px 0 0;
  transition: background-color 0.2s ease-in-out;
}

.transfers_page .menu li a {
  display: block;
  padding: 0.5rem 1rem;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: #6b7280;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease-in-out;
  border-radius: 0.5rem 0.5rem 0 0;
}

.menu li:not(.current) a:hover {
  color: #111827;
}

h2 {
  font-size: 24px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 16px;
  padding: 0;
}

.detail-section td.desc {
  text-align: right;
  padding-right: 0.5rem;
}

table.list {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

table.list th,
table.list td {
  vertical-align: middle;
  line-height: 1.2em;
}

table.list .transfer_id,
table.list .downloads,
table.list .size {
  text-align: left;
  white-space: nowrap;
}

table.list tbody tr {
  border-bottom: 1px solid #e5e7eb;
}

table.list tbody tr:hover {
  background: #f9fafb;
}

table.list .fa {
  font-size: 0.9rem;
  color: #9ca3af;
  cursor: pointer;
  transition: color 0.2s ease;
}

table.list .fa:hover {
  color: #111827;
}

table.list .fa-lock {
  font-size: 0.7rem;
  cursor: default;
}

table.list .actions .fa {
  margin: 0 4px;
}

table.list .actions {
  text-align: left;
  padding: .2rem;
}

table.list .transfer_details .actions,
table.list .transfer_details div {
  margin: 0;
}

.transfer_details div#details {
  background: #00000005;
  border: 1px solid #00000020;
  border-radius: 0.5rem;
}

.table .transfer_details .general .options ul,
table.list .transfer_details .general .options ul {
  line-height: 1rem;
}

table.list td div.details-container .detail-section {
  padding: 0 1rem 1rem;
}

.detail-section h3 {
  margin: 0 0 1rem;
  font-size: 1.1em;
  color: #555;
}

.detail-list {
  border-bottom: none;
}

.detail-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.detail-list .detail-list-item:first-of-type {
  padding-top: 0;
}

.detail-list .detail-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.detail-list-item .item-info {
  flex-direction: row;
  align-items: center;
}

.paginator {
  border: none !important;
  border-collapse: collapse;
}

.paginator td {
  padding: 0 3px;
  vertical-align: middle;
}

.paginator span.disabled .fa-stack {
  opacity: 0.4;
  cursor: not-allowed;
}

.paginator a:hover .fa-stack {
  opacity: 0.7;
  transition: opacity 0.2s ease-in-out;
}

.paginator .pageheader {
  font-weight: bold;
  font-size: 1.2em;
  padding-left: 1rem;
}

table.general td.desc {
  vertical-align: middle;
  font-weight: bold;
  width: 7rem;
}

table.general tbody tr:last-child td {
  border-bottom: none;
}

table.list .transfer_details .download_link input {
  display: block;
  width: 100%;
  max-width: 40rem;
}

tr.transfer_details.objectholder:hover {
  background: transparent !important;
  box-shadow: none !important;
}

table.list .actions {
  text-align: center;
  width: 5rem;
}

table.guests .created,
table.guests .expires {
  text-align: center;
}

table.guests .subject {
  overflow: hidden;
}

table.guests th.expand {
  width: 1rem;
}
table.guests th.created {
  width: 5rem;
}
table.guests th.expires {
  width: 5rem;
}
table.guests th.actions {
  width: 5rem;
}

table.guests .to,
table.guests .subject,
table.guests .message {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

table.list td.downloads,
table.list td.size {
  text-align: left;
}

table.transfers .expires {
  width: 8em;
  text-align: center;
}

/* Upload UI */
.upload-box {
  margin: 1rem 0;
  padding: 0.5rem;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.upload-settings-box {
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  margin: 1rem;
  background: #fff;
}

.two_columns.modern-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.two_columns.modern-layout>.upload-settings-box,
.aup.fieldcontainer.box {
  padding: 0.75rem;
  margin: 0;
  flex-grow: 1;
  flex-basis: 310px;
  border-radius: 1rem;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

#sender {
  font-weight: 500;
}

#encrypt_checkbox {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Shared input styling for upload and voucher forms */
#upload_form :is(div#sender, div#to, div#subject, input#expires, .fieldcontainer :is(input[type="text"], input[type="email"], input[type="password"], select, textarea)),
#send_voucher :is(#sender, #from, #to, #subject, #message, .fieldcontainer :is(input[type="text"], input[type="email"], input[type="password"], select, textarea)) {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-top: 0.2rem;
  box-sizing: border-box;
}

div#sender {
  background-color: #e1e1e1;
}

input#expires {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1rem;
  padding: 0.7rem 0.5rem 0.5rem;
  margin-top: 0.2rem;
}

.label-with-notice {
  display: flex;
  flex-direction: column;
  margin-right: 0.5rem;
}

.label-with-notice .expiry-info {
  font-size: 0.8rem;
  font-style: italic;
  color: #666;
  text-align: center;
  line-height: 1rem;
}

label#datepicker_label {
  font-size: 1rem;
}

.datepicker-container {
  display: flex;
  align-items: center;
}

.datepicker-container input {
  width: auto;
  max-width: 10rem;
  text-align: center;
}

.datepicker-container label {
  margin-right: 1rem;
  white-space: nowrap;
}

.fieldcontainer label {
  font-size: 0.9rem;
}

/* Drag & drop area */
.files_dragdrop {
  border: 2px dashed #a7a7a7;
  border-radius: 8px;
  background: #f8f9fa;
  transition: background-color 0.2s ease;
  padding: 0.5rem 0;
  font-weight: bold;
}

.files_dragdrop:hover {
  background: #e9ecef;
}

#upload_form .files_dragdrop .instructions {
  font-size: 1rem;
  color: #666;
  font-weight: bold;
  padding: 0.3rem 0.3rem 0.4rem;
  line-height: 3rem;
  text-align: center;
}

/* Upload log */
.files_uploadlogtop {
  border: 1px dashed #bfbfbf;
  border-radius: 0.8rem;
  background: #fff;
  padding: 1rem;
  overflow: hidden;
}

.uploadlogheader {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 1rem;
  border-bottom: 1px solid #e4e4e4;
  text-align: center;
  text-transform: uppercase;
  line-height: 2rem;
}

.uploadlog {
  width: 100%;
  border-collapse: collapse;
}

.files_uploadlogtop .uploadlogbox {
  font-size: 1.1rem;
  color: #666;
  font-weight: bold;
  max-height: 300rem;
  overflow-y: scroll;
  padding: 0;
  width: 100%;
}

.uploadlog tr.log td {
  padding: 8px 16px;
  font-size: 13px;
  color: #4b5563;
  border-bottom: 1px solid #ebebeb;
  text-align: left;
}

.uploadlog tr.log:last-child td {
  border-bottom: none;
}

.uploadlog .date {
  width: 12rem;
  color: #6b7280;
}

.uploadlog .tpl {
  display: none;
}

/* Upload actions */
.uploading_actions,
.uploading_actions .resumetable {
  display: table;
  width: 100%;
  margin: 0.25rem 1rem 0 0;
}

.uploading_actions div,
.uploading_actions .msg {
  display: table-cell;
  width: 100%;
}

.uploading_actions .auto_resume_timer_top {
  background: #fcc;
  display: none;
}

.uploading_actions .auto_resume_timer_top .auto_resume_timer {
  font-size: 1.3rem;
  font-weight: bold;
  display: none;
  padding: 0.5rem;
}

.uploading_actions .resumetable tr,
.uploading_actions .resumetable td {
  padding: 0;
  width: 100%;
}

.seconds_since_data_sent {
  font-size: 1rem;
}

.uploading_actions .stats,
.files_actions .stats {
  display: table-cell;
  width: 33%;
}

.uploading_actions .stats div {
  text-align: right;
  font-size: 1rem;
  vertical-align: middle;
  width: 100%;
}

.uploading_actions .msg,
.uploading_actions .stats .uploaded,
.uploading_actions .stats .average_speed,
.uploading_actions .stats .estimated_completion {
  display: none;
  font-size: 0.8rem;
  padding: 0.1rem;
  text-align: center;
}

.uploading_actions .stats .value {
  font-weight: 500;
}

/* Files list tiles */
.upload_form_regular .files .file,
.upload_form_regular .required_files .file,
.upload_form_stats .files .file,
.upload_form_stats .required_files .file {
  position: relative;
  margin: 0.2rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 0.5rem;
  background: #dedede;
}

.upload_form_stats .files .file,
.upload_form_stats .required_files .file {
  line-height: 5.4rem;
}

.required_files .file {
  background: #faa;
}

.files .file {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.files .file .info,
.required_files .file .info {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: bold;
  font-size: 0.8rem;
}

.files .file .remove,
.files .file .done_icon {
  flex: 0 0 auto;
  float: none;
}

.files .file .progressbar {
  position: relative;
  display: none;
  float: none;
  margin: 0 0 0 0.5rem;
  width: 10rem;
  height: 1rem;
}

.files .file.done {
  background: #afa;
}

.files .file.done .done_icon {
  display: inline;
  font-size: 1.5rem;
  color: #0a0;
  margin-top: 0.5rem;
}

.files .file.done .progressbar {
  display: none !important;
}

.files .file input {
  display: none;
}

.files .file .invalid_reason {
  color: #f00;
  font-style: italic;
}

/* Files actions bar */
.files_actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  width: 100%;
  margin: 0;
}

.files_actions .stats {
  font-weight: 600;
  gap: 1rem;
}

.files_actions .stats .value {
  font-size: 0.9rem;
  font-weight: 600;
}

.files_actions .stats div {
  text-align: right;
  font-size: 0.9rem;
  vertical-align: middle;
  width: 100%;
}

.files_actions .div3:nth-of-type(2) {
  display: flex;
  justify-content: center;
}

.files_actions .stats .number_of_files,
.files_actions .stats .size {
  display: none;
  font-weight: 400;
}

/* AUP */
.upload-settings-box.hidden-for-guest {
  display: none;
}

.aup.fieldcontainer.box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 1rem 0;
}

.aup input[type="checkbox"] {
  margin: 0;
  float: none !important;
}

.aup .terms,
#upload_form .aup .terms {
  display: none;
  margin: 0;
  padding: 0;
}

.aup.fieldcontainer.box p {
  line-height: 1rem;
  font-size: 0.8rem;
}

.aup label {
  font-weight: bold;
  padding: 0.2rem;
}

.aup label span {
  color: #666;
}

/* Items */
.item-info {
  flex-grow: 1;
  display: flex;
  flex-direction: row;     /* row so date/name/badge sit horizontally */
  align-items: center;
  word-break: break-all;
}

.item-info .info-line-path {
  font-family: monospace;
  font-size: 0.8em;
  color: #666;
  margin-top: 4px;
}

.item-info span {
  color: #666;
}

.item-info .errors {
  color: #c92a2a;
  font-weight: bold;
}

.item-info .errors .fa-info-circle {
  margin-left: 5px;
  cursor: pointer;
}

/* Readonly inputs */
input[readonly],
input[readonly]:hover,
input[readonly]:focus {
  cursor: not-allowed !important;
  background: #f5f5f5;
  color: #555;
  pointer-events: auto;
}

/* Responsive */
@media (max-width: 699px) {
  .two_columns.modern-layout {
    flex-direction: column;
  }

  .two_columns.modern-layout>.content-box {
    width: 100%;
  }
}

@media (max-width: 615px) {
  .files_actions {
    flex-wrap: wrap;
    justify-content: center;
  }

  .files_actions>div {
    flex: 1 1 100%;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
  }

  .files_actions a {
    width: 180px !important;
    flex: 0 0 180px;
  }

  .files_actions>.div3:nth-of-type(1),
  .files_actions>.div3:nth-of-type(2) {
    flex: 0 0 auto;
    display: flex !important;
    justify-content: center;
    width: auto;
    margin: 0.3rem auto;
  }

  .files_actions>.div3:nth-of-type(1) a,
  .files_actions>.div3:nth-of-type(2) a {
    width: 180px !important;
    flex: 0 0 180px !important;
    gap: 1rem;
  }

  .files_actions .stats div:nth-of-type(1) {
    text-align: right;
    width: 100%;
  }

  .files_actions .stats div:nth-of-type(2) {
    text-align: left;
    width: 100%;
  }
}

.details-container.modern {
  background: #fff;
  border-radius: 8px;
  padding: .4rem .8rem;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.details-container.modern h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 12px;
  border-bottom: 1px solid #eee;
}

.details-container.modern .actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.details-container.modern .actions-grid a,
.details-container.modern .actions-grid span {
  color: #444;
  cursor: pointer;
  margin-left: 10px;
}

.details-container.modern .actions-grid a:hover,
.details-container.modern .actions-grid span:hover {
  color: #0078d4;
}

/* two-column facts */
.details-container.modern .details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 12px 24px;
}

.details-container.modern .kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  align-items: center;
}

.details-container.modern .k {
  font-weight: 600;
  color: #333;
}

.details-container.modern .v {
  color: #555;
}

/* badges */
.status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .8rem;
  text-transform: uppercase;
}

.status-badge.active {
  background: #e5f4e2;
  color: #2e7d32;
}

.status-badge.expired {
  background: #fbe9e7;
  color: #c62828;
}

/* files */
.details-container.modern .files-list {
  border-top: 1px solid #eee;
}

.details-container.modern .file.detail-list-item {
  display: flex;
  align-items: center;
  justify-content: flex-start;   /* was space-between */
  padding: .5rem;
  border-bottom: 1px solid #f1f1f1;
}

.details-container.modern .file.detail-list-item:last-child {
  border-bottom: none;
}

.details-container.modern .item-info {
  flex: 0 1 auto; 
  font-weight: 500;
  color: #333;
  display: flex;
  align-items: center;
}

.details-container.modern span.file-date {
  flex: 0 0 auto;
  min-width: 4.5rem;          /* enough for '12 Nov 2025' */
  margin-right: 1rem;
  white-space: nowrap;
}

.details-container.modern .downloads-info {
  flex: 0 0 auto;
  padding-left: 1rem;
  color: #666;
  font-size: .9em;
  display: inline-flex;
  min-width: 2rem;
}

.details-container.modern .downloads-badge {
  background: #eee;
  border-radius: 8px;
  padding: 1px 6px;
  font-size: .9rem;
}

.details-container.modern .downloads-badge.has-downloads {
  background: #c8e6c9;
  color: #2e7d32;
}

/* right side: action icons */
.details-container.modern .item-actions {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: 1rem;
}

.details-container.modern .item-actions a,
.details-container.modern .item-actions span {
  color: #555;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* normalize icon size inside item-actions (overrides .fa-lg) */
.details-container.modern .item-actions .fa,
.details-container.modern .item-actions .fa-lg {
  line-height: 1;
  font-size: 1rem;
}

.details-container.modern .item-actions a:hover,
.details-container.modern .item-actions span:hover {
  color: #0078d4;
}

/* alert */
#encryption_description_not_supported {
  margin-top: 16px;
  font-size: .9rem;
  color: #a94442;
  background: #f8d7da;
  padding: 8px 10px;
  border-radius: 4px;
}

/* --- Modern transfer detail separators --- */
.details-container.modern .details-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.files-header {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 700;
    margin-top: .5rem;
    margin-bottom: .2rem;
    text-align: center;
}

.details-container.modern .col {
  display: flex;
  flex-direction: column;
}

.details-container.modern .kv {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: .5rem;
  padding: 8px 0;
  position: relative;
}

/* unified faint line under each kv pair */
.details-container.modern .kv:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  transform: scaleY(.5);
}

/* key/value styling */
.details-container.modern .k {
  font-weight: 600;
  color: #333;
}

.details-container.modern .v {
  color: #555;
}

.details-container.modern .actions-bar .title {
  flex: 1 1 auto;
  text-align: center;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: .2px;
  color: #222;
  line-height: 2rem;
}

table.guests tr.guest_details > td {
  padding: 0 !important;
}

table.guests tr.guest_details div.details-container.modern {
  border-radius: 0;
  box-shadow: none;
  padding: .5rem 1rem 2rem 2rem;
}

.details-container.modern .details-message-section {
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0.5rem 0;
}

tr.guest.expanded td {
  color: #888;
  background-color: #f9f9f9;
}
