html,
body {
    font-family: sans-serif;
    margin: 0;
    padding: 0;
    background-color: white;
}

.panel {
    position: fixed;
    overflow-y: scroll;
    overflow-x: scroll;
    background-color: #f0f0f0;
    box-sizing: border-box;
    box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.2);
}

.loader {
    display: none;
    position: absolute;
    top: calc(50% - 20px);
    left: calc(50% - 20px);
    width: 40px;
    height: 40px;

    background-image: url('/svg/loader.svg');
    background-size: 100% 100%;
    animation: spin 4s linear infinite;
}

@keyframes spin {
    100% {
        -webkit-transform: rotate(360deg);
        transform: rotate(360deg);
    }
}

.panel-loading .loader {
    display: block;
}

.message-item-body .loader {
    position: relative;
    display: block;
}

.panel-error-dialog {
    position: absolute;
    top: 10px;
    left: 10px;
    width: calc(100% - 20px);
    height: calc(100% - 20px);
    text-align: center;
    padding: 16px;
    background-color: white;
    box-sizing: border-box;
}

.panel-error-dialog-header {
    margin: 10px 0;
}

.panel-error-dialog-error {
    margin-bottom: 10px;
}

.panel-error-dialog-close {
    display: block;
    margin: 30px auto;
    border: none;
    padding: 8px 16px;
    color: white;
    background-color: #65bcd4;
    font-size: 1em;
    cursor: pointer;
}

.panel-error-dialog-close:hover {
    background-color: #4f98ad;
}

#messages-list-container {
    top: 16px;
    left: 16px;
    width: calc(50% - 24px);
    height: calc(50% - 24px);
}

#packages-list-container {
    top: 16px;
    left: calc(50% + 8px);
    width: calc(50% - 24px);
    height: calc(50% - 24px);
}

#wall-post-list-container {
    top: calc(50% + 8px);
    left: 16px;
    width: calc(50% - 24px);
    height: calc(50% - 24px);
}

#calendar-container {
    top: calc(50% + 8px);
    left: calc(50% + 8px);
    width: calc(50% - 24px);
    height: calc(50% - 24px);
}

ol {
    padding: 0;
    margin: 0;
}

.package-item,
.wall-post-item,
.message-item,
.calendar-item {
    list-style-type: none;
    margin: 16px;
    width: calc(100% - 32px);
    background-color: white;
    box-sizing: border-box;
    padding: 8px;
    box-shadow: 0 0 3px 1px rgba(0, 0, 0, 0.2);
}

.message-item-username,
.message-item-subject,
.message-item-date {
    display: block;
}

.message-item-date {
    font-style: oblique;
}

.message-item-subject {
    font-weight: bolder;
}

.message-item-expand-button {
    width: 100%;
    height: 30px;
    font-size: 0;
    position: relative;
    margin-top: 5px;
    border: none;
    background: #e0e0e0;
    background-image: url(/svg/open.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 40px;
    cursor: pointer;
}

.message-item-expand-button-close {
    background-image: url(/svg/close.svg);
}

.message-item-body img {
    width: 100%;
}

.message-item-body a {
    word-break: break-all;
}

.wall-post-item-header::after {
    content: ' ';
    display: block;
    clear: both;
}

.wall-post-item-poster-name {
    float: left;
}

.wall-post-item-post-time {
    float: right;
    font-style: oblique;
}

.wall-post-item-contents {
    word-break: break-all;
    margin-top: 8px;
}

.wall-post-item-contents img {
    width: 100%;
}

.wall-post-item-contents a {
    word-break: break-all;
}

.wall-post-item-attachments-button {
    width: 100%;
    height: 30px;
    font-size: 0;
    position: relative;
    margin-top: 5px;
    border: none;
    background: #e0e0e0;
    background-image: url(/svg/paperclip.svg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 50px 40px;
    cursor: pointer;
}

.wall-post-item-attachments-button-collapse {
    background-image: url(/svg/close.svg);
}

.wall-post-item-attachments-hidden {
    display: none;
}

.package-item {
    position: relative;
    min-height: 64px;
}

.package-item-icon {
    position: absolute;
    top: calc(50% - 24px);
    left: 16px;
    width: 48px;
    height: 48px;
}

.package-item-fields {
    position: relative;
    left: 72px;
    width: calc(100% - 88px);
}

.package-item-field {
    margin-top: 4px;
}

.package-item-field:first-child {
    margin-top: 0;
}

.package-item-field-name {
    margin-right: 5px;
    font-weight: bolder;
}

.calendar-item-title {
    display: block;
    font-weight: bolder;
}