:root {
    --primary-color: #c11f1f;
    --primary-hover: #e53e3e;
    --primary-dark: #8b0000;
    --primary-light: #ffebee;
    --secondary-color: #f8f9fa;
    --text-color: #333333;
    --text-on-dark: #ffffff;
    --border-color: #e0e0e0;
    --border-radius: 8px;
    --shadow-small: 0 2px 5px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 10px rgba(0, 0, 0, 0.15);
    --transition-speed: 0.2s;
}
body {
    font-family: "Roboto", -apple-system, BlinkMacSystemFont, "Segoe UI", Oxygen, Ubuntu, Cantarell, "Open Sans", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-repeat: repeat;
    background-image: url(../images/swish/background.png);
    background-color: #cbcccd;
    margin: 0;
    padding: 0;
}
a {
    color: #9c6767;
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}
a:hover {
    color: var(--primary-color);
}
h4 {
    font-size: 1.2em;
    font-weight: 500;
    margin: 1em 0 0.5em 0;
}
label {
    font-weight: 500;
    display: block;
    margin-bottom: 0.5rem;
}
.homeButtons tr:nth-child(4) {
    display: none;
}
.header-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1rem 0;
    flex-wrap: wrap;
}
#logo {
    float: none;
    height: auto;
    padding: 0 20px 0 0;
    text-decoration: none;
    font-weight: bold;
    color: #a5abb0;
    font-size: 2.5rem;
    text-shadow: 1px 1px 0 #fbfbfb;
    margin: 0;
    display: flex;
    align-items: flex-end;
    flex: 0 0 auto;
    max-width: 270px;
    overflow: hidden;
}
#logo a {
    color: #a5abb0;
}
#logoxclip {
    overflow-y: visible;
}
#topMenu {
    float: none;
    flex: 1 1 auto;
    height: auto;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}
#topMenu ul {
    height: auto;
    /* margin: 0 0 -34px 0; */
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* z-index: 999; */
}
#topMenu li {
    float: none;
    position: relative;
    width: auto;
    min-width: 120px;
    height: auto;
    text-align: center;
    margin-right: 5px;
    border-style: solid solid none solid;
    border-radius: 4px 4px 0 0;
    border-width: 1px;
    border-color: #c11f1f;
}
#topMenu li.selected {
    background: #c11f1f;
    color: white;
}
#topMenu li a {
    width: auto;
    height: auto;
    padding: 10px 15px;
    display: block;
}
#topMenu li:hover {
    background: #f06262;
    background-color: #f06262;
}
#topMenu li a {
    color: white;
    display: block;
    height: auto;
    width: auto;
    font-weight: bold;
    text-decoration: none;
}
.dropdownMenu {
    position: relative;
    display: flex;
    float: none;
    padding-top: 0;
    height: auto;
    margin: 0 0 0 10px;
    z-index: 100;
    align-self: flex-end;
}
.dropdownButton {
    color: white;
    cursor: pointer;
    border-style: solid;
    border-radius: 4px;
    border-width: 1px;
    border-color: #c11f1f;
    padding: 8px 15px;
    height: auto;
    line-height: normal;
    font-size: 14px;
    display: flex;
    align-items: center;
    background-color: #c11f1f;
}
.dropdown-has-hover:hover,
.dropdown-has-hover:focus {
    background: #f06262;
    background-color: #f06262;
    cursor: pointer;
}
.dropdownContent {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #c11f1f;
    white-space: nowrap;
    z-index: 1000;
    border-radius: 0 0 4px 4px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    min-width: 150px;
}
.dropdownContent a {
    color: white;
    font-size: 14px;
    padding: 8px 15px;
    text-decoration: none;
    display: block;
    transition: background-color 0.2s ease;
}
.dropdownContent a:hover {
    background: #f06262;
    background-color: #f06262;
    color: white;
}
.show {
    display: block;
}
#container {
    clear: both;
    background: white;
    border-radius: 5px;
    padding: 20px;
    min-height: 250px;
    box-shadow: 0 1px 5px #7f7e7e;
    color: #371616;
    margin-top: 0;
    width: 100%;
}
.content {
    width: 100%;
    max-width: 1200px;
    margin: 30px auto;
    padding: 0;
}
#overlay {
    position: fixed;
    display: none;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: #ffffbc;
    background-color: rgba(255, 255, 188, 0.7);
    z-index: 10000;
    cursor: pointer;
}
#overlaytext {
    position: absolute;
    top: 50%;
    left: 50%;
    text-align: center;
    font-size: 4em;
    font-weight: bold;
    color: #c11f1f;
    transform: translate(-50%, -50%);
    -ms-transform: translate(-50%, -50%);
}
#overlaytextsub {
    font-size: 40%;
}
.downloading {
    background: #ffffbc;
    background-color: rgba(255, 255, 188, 1);
}
.systemAnnouncementTitle {
    font-weight: bold;
    font-size: larger;
    margin-bottom: 0.5rem;
}
.systemAnnouncementText {
    font-weight: bold;
}
a.UD_textbutton,
a.UD_textbutton_admin,
input[type="submit"],
input[type="button"],
button.dt-paging-button,
a.dt-paging-button,
a.button.dt-paging-button,
button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    float: none;
    margin: 0.5rem 1rem 0.5rem 0;
    text-align: center;
    font-size: 1rem;
}
button.dt-paging-button,
a.dt-paging-button {
    min-width: 150px;
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
}
a.UD_textbutton:hover,
button.dt-paging-button:hover:not(.disabled),
a:not(.disabled).dt-paging-button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
button:hover {
    background-color: var(--primary-hover);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}
.homeButtons a.UD_textbutton,
a.UD_textbutton_admin {
    width: auto;
    min-width: 180px;
    margin-bottom: 1rem;
}
.resetButton {
    float: none;
    width: auto;
    margin: 0;
    border: none;
    padding: 0;
    color: inherit;
    background: none;
    text-shadow: none;
    font-size: inherit;
    font-weight: normal;
}
input[type="submit"][disabled],
input[type="button"][disabled],
button[disabled],
.greyButton {
    background-color: #e0e0e0 !important;
    color: #9e9e9e !important;
    box-shadow: none !important;
    /*cursor: not-allowed !important;*/
    transform: none !important;
    border: 1px solid #636363;
}
a.UD_textbutton,
a.UD_textbutton_admin,
.UD_textbutton_admin {
    text-align: center;
    border-radius: 4px;
}
a.UD_textbutton_admin,
.UD_textbutton_admin {
    background: #d64545;
    border: #9c0b09 1px solid;
    border-radius: 4px;
}
a.UD_textbutton_admin:not(.greyButton):hover,
.UD_textbutton_admin:not(.greyButton):hover {
    background: #d50606;
}
input[type="text"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    font-family: "Roboto", sans-serif;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-bottom: 1rem;
}
input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(193, 31, 31, 0.15);
    outline: none;
}
.text {
    border-color: #892b2b !important;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    padding: 0.75rem !important;
    margin: 0.5rem 0 1rem 0 !important;
}
textarea {
    font-size: smaller;
    min-height: 100px;
}
.dataTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin: 1.5rem 0;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-small);
}
.dataTable thead th {
    background-color: var(--primary-color);
    color: white;
    font-weight: 500;
    text-align: left;
    padding: 1rem;
    border: none;
}
.dataTable tbody tr:nth-child(odd) {
    background-color: #f9f9f9;
}
.dataTable tbody tr:hover {
    background-color: var(--primary-light);
}
.dataTable td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.2s ease;
    cursor: pointer;
}
.dataTable tbody tr:last-child td {
    border-bottom: none;
}
.dt-search {
    float: right;
    text-align: right;
}
.dt-paging {
    float: right;
    text-align: right;
    padding-top: 0.25em;
}
.dt-info {
    float: left;
    margin-top: 15px;
}
.dt-container:after {
    visibility: hidden;
    display: block;
    content: "";
    clear: both;
    height: 0;
}
#progressouter {
    width: 100%;
    height: 8px;
    background: #e4e4e4;
    border-radius: 4px;
    box-shadow: none;
    overflow: hidden;
    margin: 1.5rem 0;
}
#progressinner {
    height: 8px;
    background: var(--primary-color);
    border-radius: 4px 0 0 4px;
    transition: width 0.3s ease;
    box-shadow: none;
}
#percentText {
    font-size: 1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-top: 0.5rem;
    text-align: center;
}
.emailButton {
    background: #e53f3f;
    border-radius: 4px;
    border: 1px solid #b82626;
    padding: 0.5rem 1rem;
    color: white;
    font-size: 1em;
    font-weight: 500;
    text-align: center;
    float: left;
    width: auto;
    margin-right: 10px;
    cursor: default;
    display: inline-flex;
    align-items: center;
}
.emailButton a.remove {
    font-weight: bold;
    margin-left: 10px;
    color: white;
    cursor: pointer;
}
.emailButton a.remove img {
    position: relative;
    top: 2px;
}
.infoBox {
    border-color: #892b2b;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    padding: 1rem;
    width: 100%;
    float: left;
    min-height: 22px;
    clear: both;
    margin-bottom: 1rem;
}
#error {
    background-color: rgba(255, 248, 183, 0.5);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #f0ad4e;
}
#info {
    background-color: rgba(188, 188, 188, 0.2);
    border-radius: 5px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-left: 4px solid #5bc0de;
}
.system-message {
    border-radius: var(--border-radius);
    padding: 1rem;
    margin: 1rem 0;
    border-left: 4px solid;
    display: flex;
    align-items: center;
}
.message-info {
    background-color: #e3f2fd;
    border-color: #2196f3;
}
.message-warning {
    background-color: #fff8e1;
    border-color: #ffb300;
}
.message-error {
    background-color: #ffebee;
    border-color: var(--primary-color);
}
.message-success {
    background-color: #e8f5e9;
    border-color: #4caf50;
}
#request-boxes {
    display: grid;
    grid-template-columns: max-content 1fr max-content 1fr;
    grid-template-rows: repeat(6, auto) 3px auto;
    align-items: center;
    gap: 0.5rem 1rem;
    margin: 1.5rem 0;
}
#request-boxes .labels {
    display: block;
    font-weight: bold;
    line-height: 26px;
    margin-right: 5px;
    justify-self: end;
}
#request-boxes .text {
    align-self: start;
    display: block;
    border-color: #892b2b;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    padding: 2px 5px;
    clear: both;
    margin: 5px 0;
}
#request-boxes #fromLabel {
    grid-column: 1;
    grid-row: 1;
}
#request-boxes #fromHolder {
    grid-column: 2;
    grid-row: 1;
}
#request-boxes #orgLabel {
    grid-column: 3;
    grid-row: 1;
    margin-left: 10px;
}
#request-boxes #senderOrg {
    grid-column: 4;
    grid-row: 1;
}
#request-boxes #recipNameLabel {
    grid-column: 1;
    grid-row: 2;
}
#request-boxes #recipName {
    grid-column: 2;
    grid-row: 2;
}
#request-boxes #recipEmailLabel {
    grid-column: 3;
    grid-row: 2;
    margin-left: 10px;
}
#request-boxes #recipEmail {
    grid-column: 4;
    grid-row: 2;
}
#request-boxes #subjectLabel {
    grid-column: 1;
    grid-row: 3;
}
#request-boxes #subject {
    grid-column-start: 2;
    grid-column-end: 5;
    grid-row: 3;
}
#request-boxes #subjectShow {
    grid-column: 2;
    grid-row: 3;
}
#request-boxes #timelimit {
    grid-column-start: 1;
    grid-column-end: 5;
    grid-row: 4;
}
#request-boxes #noteLabel {
    grid-column-start: 1;
    grid-column-end: 5;
    grid-row: 5;
    justify-self: start;
}
#request-boxes #noteHolder {
    grid-column-start: 1;
    grid-column-end: 3;
    grid-row-start: 6;
    grid-row-end: 9;
}
#request-boxes #note {
    width: 100%;
    min-height: 90px;
    flex: 1;
}
#request-boxes #noteLengthText {
    text-align: right;
    margin-right: -14px;
    padding-right: 0;
}
#request-boxes .request-checkbox {
    justify-self: end;
    align-self: center;
    margin-right: 1ch;
    grid-column: 3;
    display: block;
}
#request-boxes .request-checklabel {
    justify-self: start;
    align-self: center;
    grid-column: 4;
    display: block;
}
.request-encryptSpan {
    grid-row: 6;
}
.request-space {
    grid-row: 7;
    max-height: 5px;
}
.request-sendEmailSpan {
    grid-row: 8;
}
.inboxRowIsRequest {
    background: #ffffbc !important;
    background-color: rgba(255, 255, 188, 0.7) !important;
}
.inboxRowIsRequest td.sorting_1 {
    background: #ffffbc !important;
    background-color: rgba(255, 255, 188, 0.7) !important;
}
#newdropoff-boxes {
    display: grid;
    grid-template-columns: 48% 30px auto;
    gap: 1rem;
    margin: 1.5rem 0;
}
#newdropoff-boxes .labels {
    display: block;
    font-weight: bold;
    line-height: 26px;
}
#newdropoff-boxes .text {
    align-self: start;
    display: block;
    border-color: #892b2b;
    border-width: 1px;
    border-style: solid;
    border-radius: 4px;
    padding: 2px 5px;
    clear: both;
}
#newdropoff-boxes #fromLabel {
    grid-column: 1;
    grid-row: 1;
}
#newdropoff-boxes #subjectLabel {
    grid-column: 3;
    grid-row: 1;
}
#newdropoff-boxes #fromHolder {
    grid-column: 1;
    grid-row: 2;
}
#newdropoff-boxes #subject {
    grid-column: 3;
    grid-row: 2;
}
#newdropoff-boxes #emailLabel {
    grid-column: 1;
    grid-row: 3;
}
#newdropoff-boxes #emailHolder {
    grid-column-start: 1;
    grid-column-end: 4;
    grid-row: 4;
}
#newdropoff-boxes #noteLabel {
    grid-column: 1;
    grid-row: 5;
}
#newdropoff-boxes #noteHolder {
    grid-column: 1;
    grid-row: 6;
}
#newdropoff-boxes #note {
    width: 100%;
    min-height: 90px;
    flex: 1;
}
#newdropoff-boxes #noteLengthText {
    text-align: right;
    margin-right: -14px;
    padding-right: 0;
}
#newdropoff-boxes #fromHolder #fromName {
    padding-left: 5px;
}
#newdropoff-boxes #fromHolder span {
    margin-right: 5px;
}
#newdropoff-boxes #emailHolder a#addRecipients {
    display: block;
    float: left;
    margin-top: 7px;
    margin-left: 10px;
    width: 20px;
    height: 16px;
}
#newdropoff-checkboxes {
    grid-column: 3;
    grid-row: 6;
    align-self: start;
    display: grid;
    grid-template-columns: 1fr auto;
}
#newdropoff-checkboxes input {
    justify-self: end;
    align-self: center;
    margin-right: 1ch;
    grid-column: 1;
    display: block;
}
#newdropoff-checkboxes label {
    justify-self: start;
    align-self: center;
    grid-column: 2;
    display: block;
}
.newdropoff-encryptSpan {
    grid-row: 1;
}
.newdropoff-checksumSpan {
    grid-row: 2;
}
.newdropoff-confirmSpan {
    grid-row: 3;
}
.newdropoff-informRecipientsSpan {
    grid-row: 4;
}
.newdropoff-informPasscodeSpan {
    grid-row: 5;
}
.newdropoff-waiverSpan {
    grid-row: 6;
}
.newdropoff-oneTimeLinksSpan {
    grid-row: 7;
}
.newdropoff-lifetimeSpan {
    grid-row: 8;
}
#lifedays::-webkit-outer-spin-button,
#lifedays::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
#lifedays {
    -moz-appearance: textfield;
    width: 4ch;
    text-align: right;
    font-family: "Roboto", sans-serif;
}
#newdropoff-checkboxes #lifeexpiry {
    width: 8rem;
    display: inline-block;
    border-radius: 4px;
    padding: 2px 5px;
    margin: -4px -6px -4px 0;
    line-height: 24px;
    font-size: 92%;
}
#uploadDialog {
    background-color: #fafafa;
    width: 400px;
    border: 1px solid #a1b6c3;
    border-radius: 5px;
    margin-right: auto;
    margin-left: auto;
    text-align: center;
    position: absolute;
    box-shadow: 0 1px 20px #7f7e7e;
    display: none;
    padding: 1.5rem;
}
#uploadDialog #progressContainer {
    padding-bottom: 20px;
}
#uploadDialog h1 {
    margin-top: 0;
    display: block;
    background: #eff3f7;
    border-bottom: 1px solid #d0e1ea;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 1.5rem;
}
.error-highlight {
    background-color: pink;
    border-color: red;
}
.notetoolong {
    font-weight: bold;
    color: red;
}
.password-error {
    font-weight: bold;
    color: red;
}
.dataTable.disabled td {
    color: grey;
    text-decoration: line-through;
    cursor: default;
}
.dataTable.disabled tr {
    color: grey;
    text-decoration: line-through;
    cursor: default;
}
.linkUsed {
    opacity: 0.5;
    text-decoration: line-through;
    cursor: default;
}
.disabledtext {
    color: grey;
}
.UILabel {
    float: left;
    font-weight: bold;
    margin-right: 10px;
    line-height: 26px;
    text-align: left;
}
.round {
    border-radius: 5px;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
}
.fleft {
    float: left;
}
.fright {
    float: right;
}
.clear {
    clear: both;
}
.clearfix::after {
    content: "";
    clear: both;
    display: table;
}
.center {
    text-align: center;
    margin-top: 10px;
}
.center button {
    float: none;
}
.mono {
    font-family: "Roboto Mono", monospace;
}
.ndfilename {
    width: 400px;
    max-width: 400px;
    font-family: "Roboto Mono", monospace;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.checksum {
    font-family: "Roboto Mono", monospace;
    font-size: 80%;
    white-space: nowrap;
}
.filelabel,
.ndfilesize {
    text-align: right;
    white-space: nowrap;
}
.dark-red {
    color: #c00;
}
.hidden {
    display: none;
}
.nowrap {
    white-space: nowrap;
}
.toosmall {
    font-size: inherit;
}
#footer {
    color: #484848;
    margin-top: 25px;
    text-align: center;
    padding: 1rem;
    font-size: 0.9rem;
}
.request-link-text {
    font-size: 120%;
    font-weight: bold;
    border-style: dashed;
    border-width: 1px;
    border-radius: 4px;
    border-color: grey;
    padding: 3px 5px;
}
.request-link-text:hover {
    background: #ffffbc;
    cursor: pointer;
}
.waiverBox {
    border: 4px solid #892b2b;
    margin: 1em 5px 2em 2px;
    padding: 1rem;
    width: calc(100% - 14px);
    background-color: rgba(255, 248, 183, 0.2);
}
.ui-menu-item .ac-col2.ui-menu-item-wrapper {
    padding-left: 0;
    padding-right: 0;
}
.ac-row {
    display: flex;
    justify-content: stretch;
}
.ac-col1 {
    flex: 99%;
    white-space: nowrap;
    padding-right: 1em !important;
}
.ac-col2 {
    align-self: center;
    text-align: right;
    padding-top: 0;
    padding-bottom: 0;
    color: red;
}
.x-col.deleteme {
    text-align: right;
    padding: 3px 10px 3px 10px;
}
.ac-col2.deleteme.ui-state-active {
    border-top: 1px solid white;
    border-bottom: 1px solid white;
    border-left: 0;
    border-right: 1px solid #c5c5c5;
    background-color: white;
    color: red;
}
.ac-col2.deleteme.ui-state-active:hover {
    border-top: 1px solid red;
    border-bottom: 1px solid red;
    background-color: red;
    color: white;
}
div.ui-menu-item-wrapper {
    padding-right: 0;
}

#multipleRecipients, #recipName, #recipEmail, #encryptPassword1, #encryptPassword2, #decryptPassword {
    width: 90%;
}

#subject {
    width: 95%;
}

#facebox .content {
    width: 500px;
}

#sendMultiple {
    display: none;
}

.password-tooltip {
    position: relative;
    display: inline-block;
}

.password-tooltip .tooltiptext {
    visibility: hidden;
    width: 220px;
    background-color: #555;
    color: #fff;
    text-align: center;
    border-radius: 6px;
    padding: 5px;
    position: absolute;
    z-index: 1;
    bottom: 150%;
    opacity: 0;
    transition: opacity 0.3s;
}

.password-tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #555 transparent transparent transparent;
}

.password-tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

@media (max-width: 1024px) {
    .content {
        max-width: 95%;
    }
}
@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        align-items: center;
    }
    #topMenu {
        width: 100%;
    }
    #logo {
        margin-bottom: 15px;
        justify-content: center;
    }
    #topMenu {
        justify-content: center;
        margin-bottom: 15px;
        width: 100%;
    }
    .dropdownMenu {
        margin: 10px 0;
	align-self: center;
    }
    #topMenu ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    #topMenu li {
        width: 100%;
        margin-right: 0;
        margin-bottom: 5px;
    }
}

