html {
    background: #c7c7c7;
}

body {
    margin: 0;
    padding: 0;
    color: #222222;
    background: #c7c7c7;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
}

* {
    box-sizing: border-box;
}

a {
    color: #174f8c;
    text-decoration: underline;
}

a:hover {
    color: #9c1d13;
}

button,
input,
textarea,
select {
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
}

#page {
    width: 980px;
    margin: 14px auto;
    border: 1px solid #4d4d4d;
    background: #eeeeee;
    box-shadow: 2px 2px 0 #8e8e8e;
}

.utility-strip {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    padding: 4px 10px;
    border-bottom: 1px solid #202020;
    color: #dddddd;
    background: #333333;
    font-size: 10px;
}

.site-header {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #6e6e6e;
    background: #f4f4f4;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    display: flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    border: 1px solid #0f3c68;
    color: #ffffff;
    background: #2e659b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: bold;
}

.brand-name {
    color: #1d4772;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 25px;
    font-weight: bold;
    letter-spacing: -1px;
}

.brand-subtitle {
    margin-top: 2px;
    color: #676767;
    font-size: 11px;
}

.header-status {
    padding: 8px 10px;
    border: 1px solid #aaaaaa;
    background: #e4e4e4;
    color: #555555;
    font-size: 9px;
    line-height: 18px;
}

.status-online {
    display: block;
    color: #347100;
    font-size: 11px;
    font-weight: bold;
}

.main-tabs {
    display: flex;
    min-height: 31px;
    align-items: stretch;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #455b70;
    background: #6e8498;
}

.main-tabs a {
    display: flex;
    align-items: center;
    padding: 0 17px;
    border-right: 1px solid #53697d;
    border-left: 1px solid #8799a9;
    color: #ffffff;
    font-size: 11px;
    font-weight: bold;
    text-decoration: none;
}

.main-tabs a:hover,
.main-tabs a.active {
    background: #3e627f;
}

.workspace {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
}

.sidebar {
    min-width: 0;
}

.side-box,
.crm-panel,
.welcome-panel {
    margin-bottom: 12px;
    border: 1px solid #9d9d9d;
    background: #ffffff;
}

.box-title,
.crm-title {
    border-bottom: 1px solid #53677a;
    color: #ffffff;
    background: #6b8093;
    font-size: 11px;
    font-weight: bold;
}

.box-title {
    padding: 6px 8px;
}

.crm-title {
    display: flex;
    min-height: 27px;
    align-items: center;
    justify-content: space-between;
    padding: 5px 9px;
}

.crm-title span:last-child {
    color: #dce4eb;
    font-size: 9px;
    font-weight: normal;
}

.box-body,
.crm-body {
    padding: 9px;
}

.side-links a {
    display: block;
    padding: 5px 2px;
    border-bottom: 1px dotted #b8b8b8;
    text-decoration: none;
}

.side-links a:last-child {
    border-bottom: 0;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    padding: 5px 3px;
    border-bottom: 1px solid #dddddd;
    vertical-align: top;
}

.info-table td:first-child {
    color: #666666;
}

.queue-number {
    padding: 7px;
    border: 1px solid #aac28e;
    color: #3a650e;
    background: #e8f0df;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
}

.small-text {
    color: #666666;
    font-size: 10px;
    line-height: 1.5;
}

.content {
    min-width: 0;
}

.welcome-panel {
    border-color: #8a9bad;
}

.welcome-title {
    padding: 7px 10px;
    border-bottom: 1px solid #2d5579;
    color: #ffffff;
    background: #466f94;
    font-size: 12px;
    font-weight: bold;
}

.welcome-body {
    padding: 15px;
}

.welcome-body h1 {
    margin: 0 0 10px;
    color: #214e76;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 22px;
}

.welcome-body p {
    margin: 8px 0;
    line-height: 1.55;
}

.notice-bar {
    margin-top: 13px;
    padding: 8px 10px;
    border: 1px solid #d1bd7e;
    background: #fff9db;
    color: #5d512c;
    font-size: 11px;
}

.site-footer {
    display: flex;
    min-height: 34px;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-top: 1px solid #717171;
    color: #d5d5d5;
    background: #414141;
    font-size: 10px;
}

@media (max-width: 1020px) {
    #page {
        width: calc(100% - 20px);
        margin: 10px;
    }
}

@media (max-width: 760px) {
    .workspace {
        grid-template-columns: 1fr;
    }

    .sidebar {
        order: 2;
    }

    .content {
        order: 1;
    }

    .main-tabs {
        overflow-x: auto;
    }

    .main-tabs a {
        flex: 0 0 auto;
        min-height: 31px;
    }

    .site-header {
        align-items: flex-start;
        gap: 12px;
    }

    .header-status {
        display: none;
    }

    .utility-strip {
        display: none;
    }
}