@digital-blueprint/dispatch-app
Version:
[GitHub Repository](https://github.com/digital-blueprint/dispatch-app) | [npmjs package](https://www.npmjs.com/package/@digital-blueprint/dispatch-app) | [Unpkg CDN](https://unpkg.com/browse/@digital-blueprint/dispatch-app/) | [Dispatch Bundle](https://gi
1,266 lines (1,055 loc) • 39.5 kB
JavaScript
import {css} from 'lit';
// import {getIconSVGURL} from '@dbp-toolkit/common';
// export function getDispatchRequestTableStyles() {
// // language=css
// return css`
// /**********************************\\
// Tabulator table styles
// \\*********************************/
// .tabulator .tabulator-header .tabulator-col .tabulator-col-content {
// display: inline-flex;
// padding: 0px;
// }
// .checkmark {
// height: 20px;
// width: 20px;
// left: 10px;
// top: 8px;
// }
// .button-container .checkmark::after {
// left: 7px;
// top: 2px;
// width: 5px;
// height: 11px;
// }
// .force-no-select {
// -webkit-user-select: none;
// -moz-user-select: none;
// -ms-user-select: none;
// user-select: none;
// }
// .filename {
// overflow: hidden;
// text-overflow: ellipsis;
// width: 100%;
// white-space: nowrap;
// }
// .select-all-icon {
// height: 40px;
// position: absolute;
// top: -27px;
// }
// .tabulator {
// overflow: unset;
// }
// .tabulator-table {
// width: 100%;
// }
// .tabulator-row {
// display: flex;
// flex-wrap: wrap;
// padding-right: .5rem;
// }
// .tabulator-responsive-collapse {
// flex-basis: 100%;
// }
// .tabulator-cell[tabulator-field="controls"] {
// flex-grow: 1;
// }
// /**************************************************************************************************************/
// .tabulator-icon-buttons {
// display: flex;
// align-items: center;
// justify-content: space-between;
// gap: 0.5rem;
// }
// .tabulator-row .tabulator-responsive-collapse td {
// white-space: wrap;
// }
// .tabulator-row .tabulator-responsive-collapse td:nth-child(2) {
// word-wrap: anywhere;
// }
// .tabulator-responsive-collapse table tr td:first-child {
// width: 8em;
// }
// .tabulator .tabulator-placeholder-contents {
// margin-bottom: auto;
// }
// .tabulator-row .tabulator-responsive-collapse {
// border: none;
// }
// .tabulator-row .tabulator-cell.tabulator-row-handle {
// display: inline-block !important;
// }
// /* TODO sets the grey color to white */
// .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle {
// height: 100%;
// width: 100%;
// /*background-color: unset;*/
// }
// .tabulator-responsive-collapse-toggle-open,
// .tabulator-responsive-collapse-toggle-close {
// content: none;
// visibility: hidden;
// }
// .tabulator-responsive-collapse-toggle,
// .tabulator-row .tabulator-cell .tabulator-responsive-collapse-toggle {
// margin: 0 0 0 0;
// }
// .tabulator-cell[tabulator-field="type"] {
// display: none !important;
// }
// .tabulator-responsive-collapse-toggle-open::after,
// .tabulator-responsive-collapse-toggle-close::after {
// content: '\\00a0\\00a0\\00a0\\00a0\\00a0';
// background-color: var(--dbp-content);
// -webkit-mask-repeat: no-repeat;
// mask-repeat: no-repeat;
// -webkit-mask-position: center center;
// mask-position: center center;
// margin: 0 0 0 4px;
// padding: 0 0 0.25% 0;
// -webkit-mask-size: 100%;
// mask-size: 100%;
// visibility: visible;
// }
// .tabulator-responsive-collapse-toggle-open::after {
// -webkit-mask-image: url("data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e %3c!-- Generator: Adobe Illustrator 26.1.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e %3csvg version='1.1' id='Ebene_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24.6 62.4' style='enable-background:new 0 0 24.6 62.4%3b' xml:space='preserve'%3e%3cg transform='translate(-382.21 -336.98)'%3e%3cg%3e%3cpath d='M388%2c380.5c-0.2%2c0-0.4-0.1-0.6-0.3c-0.3-0.3-0.3-0.8%2c0.1-1.1l12.5-10.9l-12.5-10.9c-0.3-0.3-0.4-0.8-0.1-1.1 c0.3-0.3%2c0.8-0.4%2c1.1-0.1l13.1%2c11.5c0.2%2c0.2%2c0.3%2c0.4%2c0.3%2c0.6s-0.1%2c0.5-0.3%2c0.6l-13.1%2c11.5C388.4%2c380.4%2c388.2%2c380.5%2c388%2c380.5z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
// mask-image: url("data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e %3c!-- Generator: Adobe Illustrator 26.1.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e %3csvg version='1.1' id='Ebene_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24.6 62.4' style='enable-background:new 0 0 24.6 62.4%3b' xml:space='preserve'%3e%3cg transform='translate(-382.21 -336.98)'%3e%3cg%3e%3cpath d='M388%2c380.5c-0.2%2c0-0.4-0.1-0.6-0.3c-0.3-0.3-0.3-0.8%2c0.1-1.1l12.5-10.9l-12.5-10.9c-0.3-0.3-0.4-0.8-0.1-1.1 c0.3-0.3%2c0.8-0.4%2c1.1-0.1l13.1%2c11.5c0.2%2c0.2%2c0.3%2c0.4%2c0.3%2c0.6s-0.1%2c0.5-0.3%2c0.6l-13.1%2c11.5C388.4%2c380.4%2c388.2%2c380.5%2c388%2c380.5z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
// margin-left: -9px;
// }
// .tabulator-responsive-collapse-toggle-close::after {
// -webkit-mask-image: url("data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e %3c!-- Generator: Adobe Illustrator 26.1.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e %3csvg version='1.1' id='Ebene_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24.6 62.4' style='enable-background:new 0 0 24.6 62.4%3b' xml:space='preserve'%3e%3cg transform='translate(-382.21 -336.98)'%3e%3cg%3e%3cpath d='M382.2%2c361.7c0-0.2%2c0.1-0.4%2c0.3-0.6c0.3-0.3%2c0.8-0.3%2c1.1%2c0.1l10.9%2c12.5l10.9-12.5c0.3-0.3%2c0.8-0.4%2c1.1-0.1 c0.3%2c0.3%2c0.4%2c0.8%2c0.1%2c1.1l-11.5%2c13.1c-0.2%2c0.2-0.4%2c0.3-0.6%2c0.3s-0.5-0.1-0.6-0.3l-11.5-13.1C382.3%2c362.1%2c382.2%2c361.9%2c382.2%2c361.7z '/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
// mask-image: url("data:image/svg+xml,%3c%3fxml version='1.0' encoding='utf-8'%3f%3e %3c!-- Generator: Adobe Illustrator 26.1.0%2c SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3e %3csvg version='1.1' id='Ebene_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 24.6 62.4' style='enable-background:new 0 0 24.6 62.4%3b' xml:space='preserve'%3e%3cg transform='translate(-382.21 -336.98)'%3e%3cg%3e%3cpath d='M382.2%2c361.7c0-0.2%2c0.1-0.4%2c0.3-0.6c0.3-0.3%2c0.8-0.3%2c1.1%2c0.1l10.9%2c12.5l10.9-12.5c0.3-0.3%2c0.8-0.4%2c1.1-0.1 c0.3%2c0.3%2c0.4%2c0.8%2c0.1%2c1.1l-11.5%2c13.1c-0.2%2c0.2-0.4%2c0.3-0.6%2c0.3s-0.5-0.1-0.6-0.3l-11.5-13.1C382.3%2c362.1%2c382.2%2c361.9%2c382.2%2c361.7z '/%3e%3c/g%3e%3c/g%3e%3c/svg%3e");
// margin-left: -8px;
// }
// .tabulator-responsive-collapse-toggle-open:hover::after,
// .tabulator-responsive-collapse-toggle-close:hover::after {
// background-color: var(--dbp-hover-color, var(--dbp-content));
// }
// .tabulator-selected .tabulator-responsive-collapse-toggle-open::after,
// .tabulator-selected .tabulator-responsive-collapse-toggle-close::after {
// background-color: var(--dbp-hover-color, var(--dbp-on-content-surface));
// }
// .tabulator-row.tabulator-selectable.tabulator-selected.no-select-styles
// .tabulator-responsive-collapse-toggle-close::after,
// .tabulator-row.tabulator-selectable.tabulator-selected.no-select-styles:hover
// .tabulator-responsive-collapse-toggle-close::after,
// .tabulator-row.tabulator-selectable.tabulator-selected.no-select-styles
// .tabulator-responsive-collapse-toggle-open::after,
// .tabulator-row.tabulator-selectable.tabulator-selected.no-select-styles:hover
// .tabulator-responsive-collapse-toggle-open::after {
// background-color: var(--dbp-content);
// }
// /**************************************************************************************************************/
// .tabulator .tabulator-header .tabulator-col[tabulator-field='details'] {
// min-height: 37px !important;
// /*display: inline-block !important;*/
// font-weight: 400;
// }
// .tabulator-responsive-collapse table {
// border-spacing: 1em;
// width: 100%;
// border-top: var(--dbp-border);
// }
// /*.tabulator-row .tabulator-responsive-collapse {*/
// /* border-top: var(--dbp-border);*/
// /*}*/
// .tabulator-responsive-collapse table tr td {
// vertical-align: top;
// }
// .tabulator .tabulator-footer {
// background-color: var(--dbp-background);
// color: var(--dbp-content);
// border-top: none;
// }
// .tabulator .tabulator-footer .tabulator-paginator .tabulator-page {
// opacity: unset;
// border: var(--dbp-border);
// border-radius: var(--dbp-border-radius);
// color: var(--dbp-content);
// cursor: pointer;
// justify-content: center;
// padding-bottom: calc(0.375em - 1px);
// padding-left: 1em;
// padding-right: 1em;
// padding-top: calc(0.375em - 1px);
// text-align: center;
// white-space: nowrap;
// font-size: inherit;
// font-weight: bolder;
// font-family: inherit;
// transition:
// all 0.15s ease 0s,
// color 0.15s ease 0s;
// background: var(--dbp-secondary-surface);
// color: var(--dbp-on-secondary-surface);
// border-color: var(--dbp-secondary-surface-border-color);
// box-sizing: border-box;
// min-height: 40px;
// }
// .tabulator .tabulator-footer .tabulator-paginator .tabulator-page-size {
// box-sizing: border-box;
// border: var(--dbp-border);
// border-radius: var(--dbp-border-radius);
// padding-left: 0.75em;
// padding-right: 1.7em;
// padding-top: calc(0.5em - 1px);
// padding-bottom: calc(0.5em - 1px);
// cursor: pointer;
// background-position-x: calc(100% - 0.4rem);
// background-size: auto 45%;
// min-height: 40px;
// }
// .tabulator .tabulator-footer .tabulator-page:not(.disabled):hover {
// background: var(--dbp-secondary-surface);
// color: var(--dbp-content);
// }
// .tabulator .tabulator-footer .tabulator-page.active {
// background: var(--dbp-on-secondary-surface);
// color: var(--dbp-secondary-surface);
// border-color: var(--dbp-secondary-surface-border-color);
// }
// .tabulator .tabulator-footer .tabulator-page.active:hover {
// background: var(--dbp-on-secondary-surface);
// color: var(--dbp-secondary-surface);
// border-color: var(--dbp-secondary-surface-border-color);
// }
// .tabulator-row .tabulator-frozen,
// .tabulator .tabulator-header .tabulator-col.tabulator-frozen {
// background-color: var(--dbp-background);
// }
// .tabulator-row.tabulator-selectable.tabulator-selected:hover,
// .tabulator-row.tabulator-selected .tabulator-frozen {
// color: var(--dbp-hover-color, var(--dbp-on-content-surface));
// background-color: var(--dbp-hover-background-color, var(--dbp-content-surface));
// }
// .tabulator .tabulator-header .tabulator-frozen.tabulator-frozen-right,
// .tabulator-row .tabulator-frozen.tabulator-frozen-right {
// border-left: unset;
// }
// .tabulator .tabulator-footer .tabulator-paginator label {
// color: var(--dbp-content);
// font-weight: 400;
// }
// .tabulator .tabulator-footer .tabulator-paginator {
// flex-direction: row;
// display: flex;
// align-items: center;
// }
// .tabulator .tabulator-footer .tabulator-footer-contents {
// flex-direction: column;
// }
// .tabulator-row,
// .tabulator-row.tabulator-row-even,
// .tabulator-row.tabulator-row-odd {
// margin-bottom: 1rem;
// border: 1px solid var(--dbp-muted);
// min-height: 65px;
// }
// .tabulator-cell {
// height: 65px;
// }
// .tabulator .tabulator-footer .tabulator-paginator .tabulator-page[disabled] {
// opacity: 0.4;
// }
// .tabulator .tabulator-footer .tabulator-page {
// display: inline-block;
// margin: 0 2px;
// padding: 2px 5px;
// border: 1px solid #aaa;
// border-radius: 3px;
// background: hsla(0, 0%, 100%, 0.2);
// }
// .tabulator-cell[tabulator-field='controls'] {
// justify-content: flex-end !important;
// }
// .tabulator
// .tabulator-header
// .tabulator-col.tabulator-sortable
// .tabulator-col-content
// .tabulator-col-sorter {
// position: unset;
// }
// .tabulator
// .tabulator-header
// .tabulator-col.tabulator-sortable
// .tabulator-col-content
// .tabulator-col-title-holder {
// display: inline-flex;
// }
// .tabulator .tabulator-tableholder .tabulator-table {
// background-color: var(--dbp-background);
// }
// @media only screen and (orientation: portrait) and (max-width: 768px) {
// .tabulator .tabulator-tableHolder {
// white-space: inherit;
// }
// .modal-container {
// width: 100%;
// height: 100%;
// max-width: 100%;
// }
// }
// /**************************\\
// Tablet Portrait Styles
// \\**************************/
// @media only screen and (orientation: portrait) and (max-width: 768px) {
// }
// /**************************\\
// Mobile Portrait Styles
// \\**************************/
// @media only screen and (orientation: portrait) and (max-width: 768px) {
// button[data-page='prev'],
// button[data-page='next'],
// button[data-page='first'],
// button[data-page='last'] {
// display: block;
// white-space: nowrap !important;
// overflow: hidden;
// line-height: 0;
// }
// button[data-page='prev']:after,
// button[data-page='next']:after,
// button[data-page='first']:after,
// button[data-page='last']:after {
// content: '\\00a0\\00a0\\00a0\\00a0';
// background-color: var(--dbp-content);
// -webkit-mask-repeat: no-repeat;
// mask-repeat: no-repeat;
// -webkit-mask-position: center center;
// mask-position: center center;
// padding: 0 0 0.25% 0;
// -webkit-mask-size: 1.5rem !important;
// mask-size: 1.4rem !important;
// }
// .tabulator .tabulator-footer .tabulator-paginator .tabulator-page {
// border: none;
// }
// button[data-page='prev']:after {
// -webkit-mask-image: url('${unsafeCSS(getIconSVGURL('chevron-left'))}');
// mask-image: url('${unsafeCSS(getIconSVGURL('chevron-left'))}');
// }
// button[data-page='next']:after {
// -webkit-mask-image: url('${unsafeCSS(getIconSVGURL('chevron-right'))}');
// mask-image: url('${unsafeCSS(getIconSVGURL('chevron-right'))}');
// }
// button[data-page='first']:after {
// content: '\\00a0\\00a0\\00a0\\00a0\\00a0\\00a0\\00a0';
// -webkit-mask-image: url('${unsafeCSS(getIconSVGURL('angle-double-left'))}');
// mask-image: url('${unsafeCSS(getIconSVGURL('angle-double-left'))}');
// }
// button[data-page='last']:after {
// content: '\\00a0\\00a0\\00a0\\00a0\\00a0\\00a0\\00a0';
// -webkit-mask-image: url('${unsafeCSS(getIconSVGURL('angle-double-right'))}');
// mask-image: url('${unsafeCSS(getIconSVGURL('angle-double-right'))}');
// }
// .tabulator
// .tabulator-footer
// .tabulator-footer-contents
// .tabulator-paginator
// .tabulator-pages {
// display: none;
// }
// .tabulator .tabulator-footer .tabulator-paginator {
// text-align: center;
// }
// .tabulator .tabulator-footer .tabulator-paginator label {
// display: none;
// }
// .tabulator .tabulator-footer .tabulator-paginator .tabulator-page {
// border: none;
// }
// .tabulator .tabulator-footer .tabulator-paginator .tabulator-page-size {
// padding-right: 0;
// background-size: auto 40%;
// }
// #custom-pagination {
// position: sticky;
// bottom: 0px;
// z-index: 10;
// }
// .tabulator-footer {
// position: sticky;
// bottom: 0px;
// z-index: 10;
// }
// .tabulator {
// overflow: visible;
// }
// }
// @media only screen and (max-width: 490px) {
// .tabulator-responsive-collapse table tr td:first-child {
// width: 4em;
// }
// .tabulator-row {
// padding-right: 0;
// }
// }
// @media only screen and (max-width: 420px) {
// .tabulator-row .tabulator-cell.tabulator-row-handle {
// width: 40px !important;
// }
// }
// `;
// }
export function getDispatchRequestStyles() {
// language=css
return css`
a {
color: var(--dbp-content);
cursor: pointer;
text-decoration: none;
}
.activity-description {
margin-top: 0;
}
h3 {
font-weight: 300;
margin-top: 1.3em;
margin-bottom: 1.3em;
}
select:not(.select) {
background-size: 13px;
background-position-x: calc(100% - 0.4rem);
padding-right: 1.3rem;
height: 33px;
width: 100%;
}
select:disabled {
cursor: not-allowed;
color: var(--dbp-muted);
}
.modal-overlay {
z-index: 9000;
}
.no-access-notification {
margin-top: 1.3em;
margin-bottom: 1.3em;
}
.country-select:not(.select) {
width: 100%;
border-color: var(--dbp-muted);
}
.country-select option {
background: var(--dbp-background);
color: var(--dbp-content);
}
.request-buttons {
display: flex;
justify-content: flex-end;
gap: 3px;
margin-top: -1.5em;
padding-bottom: 1.5em;
}
.edit-recipient-btn {
margin-left: -1.5em;
padding-bottom: 1em;
}
.request-item.details .recipients-data,
.request-item.details .files-data {
display: grid;
gap: 1.5em;
grid-template-columns: 1fr 1fr 1fr;
}
.request-item.details .files {
padding-bottom: 2em;
}
.request-item.details .request-buttons {
padding-top: 1.5em;
border-top: 1px solid var(--dbp-muted);
}
.request-item.details .sender-data-btn {
display: flex;
justify-content: space-between;
align-items: flex-end;
}
.recipient-entry .border,
.file-entry .border {
margin-left: -1.5em;
margin-bottom: 1em;
}
.edit-recipient-btn {
margin-left: -1.5em;
padding-bottom: 1em;
}
.recipient-entry .border,
.file-entry .border {
margin-left: -1.5em;
margin-bottom: 1em;
}
.file-entry {
display: flex;
justify-content: space-between;
}
#add-file-2-btn {
margin-top: 1em;
}
.delete-file-btn {
margin-top: 0.5em;
}
.rec-2-btns {
display: flex;
flex-direction: row-reverse;
}
.selected-buttons {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.file-entry {
display: flex;
justify-content: space-between;
}
#add-file-2-btn {
margin-top: 1em;
}
.delete-file-btn {
margin-top: 0.5em;
}
.rec-2-btns {
display: flex;
flex-direction: row-reverse;
}
.selected-buttons {
display: flex;
flex-direction: row;
justify-content: space-between;
}
h2:first-child {
margin-top: 0;
}
h2 {
margin-bottom: 10px;
}
#edit-sender-modal-box,
#add-sender-modal-box,
#add-recipient-modal-box,
#edit-recipient-modal-box,
#add-subject-modal-box,
#edit-subject-modal-box,
#edit-reference-number-modal-box,
#show-recipient-modal-box,
#file-viewer-modal-box {
display: flex;
flex-direction: column;
justify-content: space-between;
padding: 15px 20px 20px;
min-width: 320px;
}
.modal-content {
container-type: inline-size;
}
.modal-content-container {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
/* #add-recipient-modal-box h4 { */
.modal-content-container h4 {
margin-top: 0;
}
.modal-content-right {
display: flex;
flex-direction: column;
gap: 0.4em;
padding-left: 20px;
}
.modal-content-left {
border-right: var(--dbp-border);
padding-right: 20px;
}
@container (max-width: 490px) {
.modal-content-container {
grid-template-columns: minmax(0, 1fr);
}
.modal-content-right {
padding-left: 0;
}
.modal-content-left h4 {
margin-top: 0;
margin-bottom: 15px;
}
.modal-content-right h4 {
margin-top: 30px;
margin-bottom: 10px;
}
.modal-content-left {
padding-right: 0;
border-right: 0;
padding-bottom: 20px;
border-bottom: 1px solid var(--dbp-content);
}
}
#edit-recipient-modal-box {
height: auto;
min-height: fit-content;
max-width: 400px;
gap: 20px;
}
#add-recipient-modal-box {
height: auto;
min-height: fit-content;
max-width: 736px;
gap: 20px;
}
#add-subject-modal-box,
#edit-subject-modal-box,
#edit-reference-number-modal-box {
height: auto;
min-height: 185px;
max-width: 500px;
}
#edit-sender-modal-box {
height: auto;
min-height: fit-content;
max-width: 400px;
gap: 20px;
}
#show-recipient-modal-box {
height: auto;
width: 90vw;
max-width: 800px;
}
#edit-sender-modal-box header.modal-header,
#add-sender-modal-box header.modal-header,
#add-recipient-modal-box header.modal-header,
#edit-recipient-modal-box header.modal-header,
#show-recipient-modal-box header.modal-header,
#add-subject-modal-box header.modal-header,
#edit-subject-modal-box header.modal-header,
#edit-reference-number-modal-box header.modal-header,
#file-viewer-modal-box header.modal-header {
padding: 0px;
display: flex;
justify-content: space-between;
}
#show-recipient-modal-box header.modal-header {
padding: 0 10px 20px 0;
}
#edit-sender-modal-box footer.modal-footer .modal-footer-btn,
#add-sender-modal-box footer.modal-footer .modal-footer-btn,
#add-recipient-modal-box footer.modal-footer .modal-footer-btn,
#edit-recipient-modal-box footer.modal-footer .modal-footer-btn,
#show-recipient-modal-box footer.modal-footer .modal-footer-btn,
#add-subject-modal-box footer.modal-footer .modal-footer-btn,
#edit-subject-modal-box footer.modal-footer .modal-footer-btn,
#edit-reference-number-modal-box footer.modal-footer .modal-footer-btn {
padding: 0px;
display: flex;
justify-content: space-between;
}
#show-recipient-modal-box footer.modal-footer .modal-footer-btn {
padding: 0 10px 10px 0;
}
#edit-sender-modal-content,
#add-sender-modal-content,
#add-recipient-modal-content,
#edit-recipient-modal-content,
#add-subject-modal-content,
#edit-subject-modal-content,
#edit-reference-number-modal-content,
#file-viewer-modal-modal-content {
display: flex;
padding-left: 0px;
padding-right: 0px;
overflow: unset;
gap: 1em;
flex-direction: column;
}
#add-subject-modal-content,
#edit-subject-modal-content,
#edit-reference-number-modal-content {
gap: 0;
}
#edit-sender-modal-content div .input,
#add-sender-modal-content div .input,
#add-recipient-modal-content div .input,
#edit-recipient-modal-content div .input,
#add-subject-modal-content div .input,
#edit-subject-modal-content div .input,
#edit-reference-number-modal-content div .input {
width: 100%;
}
#edit-sender-modal-content .nf-label,
#add-sender-modal-content .nf-label,
#add-recipient-modal-content .nf-label,
#edit-recipient-modal-content .nf-label,
#add-subject-modal-content .nf-label,
#edit-subject-modal-content .nf-label,
#edit-reference-number-modal-content .nf-label {
padding-bottom: 2px;
}
.muted {
color: var(--dbp-muted);
}
#edit-sender-modal-title,
#add-sender-modal-title,
#add-recipient-modal-title,
#edit-recipient-modal-title,
#show-recipient-modal-title,
#add-subject-modal-title,
#edit-subject-modal-title,
#edit-reference-number-modal-title,
#file-viewer-modal-title {
margin: 0;
padding: 0.25em 0 0 0;
}
#tf-add-recipient-birthdate-day,
#tf-add-recipient-birthdate-month {
flex: 1;
}
#tf-add-recipient-birthdate-year {
flex: 2;
}
.birthdate-input {
display: flex;
flex-direction: row;
gap: 0.5em;
width: 100%;
}
#edit-recipient-modal-content .birthdate-input {
width: 100%;
}
#file-viewer-modal-box {
justify-content: unset;
gap: 1em;
height: 90%;
width: 90%;
max-width: 90%;
}
.line {
border-right: 1px solid var(--dbp-muted);
}
.details.header {
display: grid;
grid-template-columns: 1fr 1px 1fr 1px 1fr;
padding-bottom: 2em;
border-bottom: 1px solid var(--dbp-muted);
text-align: center;
}
.details.header.sub {
padding-top: 2em;
}
.details.sender,
.details.recipients {
padding-top: 1.5em;
padding-bottom: 1.5em;
border-bottom: 1px solid var(--dbp-muted);
}
.details.files {
padding-top: 1.5em;
}
.section-titles {
font-size: 1.3em;
color: var(--dbp-muted);
text-transform: uppercase;
padding-bottom: 0.5em;
/* to align titles when they are editable */
display: flex;
justify-content: center;
align-items: center;
height: 30px;
}
.header-btn {
display: flex;
flex-direction: row;
justify-content: space-between;
}
.button-row {
display: flex;
flex-direction: row;
}
.card {
display: grid;
grid-template-columns: 4fr min-content;
border: 1px solid var(--dbp-muted);
min-width: 320px;
}
.left-side {
margin: 18px;
display: flex;
flex-direction: column;
gap: 2px;
}
.left-side div {
word-break: break-all;
}
.file.card .left-side {
padding-bottom: 1.4em;
}
.file.card .left-side div:first-child {
padding-bottom: 0.2em;
font-weight: 400;
}
.right-side {
padding: 10px;
color: var(--dbp-on-primary-surface);
background-color: var(--dbp-primary-surface);
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 10px;
min-width: 40px;
}
.right-side dbp-icon {
color: #ffffff;
}
.recipients-data,
.files-data {
margin-top: 1em;
}
.status-green {
color: var(--dbp-success);
}
.status-orange {
color: var(--dbp-warning-surface);
}
.status-red {
color: var(--dbp-danger);
}
.delivery-status {
padding-top: 0.5em;
align-self: baseline;
margin-top: auto;
}
.back-container {
padding-top: 1em;
/*padding-bottom: 0.5em;*/
}
.section-title-counts {
font-style: italic;
}
.element-left {
background-color: var(--dbp-primary-surface);
border: var(--dbp-border);
border-color: var(--dbp-primary-surface-border-color);
color: var(--dbp-on-primary-surface);
padding: 0px 20px 12px 40px;
text-align: right;
white-space: nowrap;
}
.element-left.first,
.element-right.first {
padding-top: 12px;
}
.element-right {
text-align: left;
margin-left: 12px;
padding: 0px 0px 12px;
}
.detailed-recipient-modal-content-wrapper {
display: grid;
grid-template-columns: min-content auto;
grid-template-rows: auto;
max-height: calc(100vh - 149px);
overflow-y: auto;
width: 100%;
}
input[type='date'] {
width: 100%;
}
.modal-content:not(:has(.scroll)) .notification-container {
margin-top: 12px;
}
.notification-container label {
font-weight: bold;
}
.recipient-status {
margin-bottom: 2em;
display: flex;
justify-content: space-between;
gap: 10px;
}
.status-container {
display: flex;
flex-direction: column;
flex-grow: 1;
}
.recipient-status .status-detail {
font-weight: bolder;
}
.return-receipt-widget {
min-width: 220px;
background-color: var(--dbp-background);
padding: 0;
display: flex;
flex-direction: column;
/* Align right. */
align-items: flex-end;
}
.return-receipt-widget__title {
margin: 0;
}
.return-receipt-widget__upload-date {
display: block;
font-size: 14px;
text-align: right;
}
.return-receipt__buttons {
display: flex;
flex-direction: row;
/* margin-left: -8px; */
/* Align right. */
margin-right: -11px;
}
.upload-btn {
margin-left: -2px;
}
.download-btn {
margin-top: auto;
margin-bottom: auto;
}
.new-line-content {
/* white-space: pre-line; */
/* white-space: normal; */
/* width: 90%; */
/* margin-top: -1em; */
}
.scroll {
overflow-y: auto;
overflow-x: clip;
}
.dispatch-status {
padding-top: 0.5em;
}
.dispatch-status .status-title {
font-weight: 400;
}
.inline-label {
display: inline-block;
font-weight: 600;
min-width: 230px;
}
@media only screen and (orientation: portrait) and (max-width: 768px) {
.edit-selection-buttons {
display: flex;
flex-direction: column-reverse;
gap: 1em;
}
.filter-buttons {
width: calc(100% - 45px);
}
#show-recipient-modal-box {
height: 100%;
}
#show-recipient-modal-box header.modal-header {
padding: 0;
}
#show-recipient-modal-box .detailed-recipient-modal-content-wrapper {
grid-template-columns: unset;
max-height: 100%;
}
.mobile-hidden {
display: none;
}
/* inputs */
.element-right {
border: 1px solid var(--dbp-muted);
padding: 5px;
margin: 0;
}
.element-right.first {
padding-top: 5px;
}
/* labels */
.element-left {
margin-top: 8px;
font-weight: bold;
text-align: left;
padding: 5px 5px 5px 0;
background: initial;
color: var(--dbp-content);
border: 0 none;
}
.element-left.first {
padding-top: 5px;
}
.btn-row-left {
display: flex;
justify-content: space-between;
flex-direction: row;
gap: 4px;
height: 40px;
}
}
@media only screen and (max-width: 859.9px) {
.request-item.details .recipients-data,
.request-item.details .files-data {
gap: 1.5em;
grid-template-columns: 1fr;
}
.details.header {
grid-template-columns: unset;
gap: 0.5em;
text-align: left;
}
.section-titles {
display: block;
height: initial;
}
.header-btn {
flex-direction: column;
padding-bottom: 1em;
}
.request-buttons {
flex-direction: column-reverse;
gap: 1em;
}
.request-buttons .submit-button,
.request-buttons .edit-buttons {
display: flex;
flex-direction: column;
}
.details.sender .header-btn {
flex-direction: row;
padding-bottom: 0;
}
.sender-data {
margin-bottom: 0;
}
.return-receipt-widget__upload-date {
max-width: 180px;
}
}
@media only screen and (max-width: 650px) {
.recipient-status {
flex-direction: column;
}
.return-receipt-widget {
align-items: flex-start;
}
.return-receipt-widget__upload-date {
text-align: left;
}
.return-receipt__buttons {
margin-left: -8px;
}
}
@media only screen and (max-width: 369.9px) {
.card {
min-width: 30px;
max-width: 320px;
}
}
@media only screen and (min-width: 370px) and (max-width: 859.9px) {
.card {
min-width: 320px;
max-width: unset;
}
}
@media only screen and (min-width: 860px) and (max-width: 949.9px) {
.request-item.details .recipients-data,
.request-item.details .files-data {
gap: 0.5em;
grid-template-columns: 1fr 1fr;
}
}
@media only screen and (min-width: 950px) and (max-width: 1250px) {
.request-item.details .recipients-data,
.request-item.details .files-data {
gap: 1.5em;
grid-template-columns: 1fr 1fr;
}
}
`;
}