* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: #bfbfbf;
    color: #111111;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 13px;
}

a {
    color: #003399;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.shell {
    padding: 18px;
}

.window,
.login-window {
    width: min(1100px, calc(100% - 24px));
    margin: 18px auto;
    border: 2px solid #4f4f4f;
    background: #efefef;
    box-shadow: 2px 2px 0 #ffffff inset, -2px -2px 0 #9a9a9a inset;
}

.login-window {
    max-width: 480px;
    margin-top: 60px;
}

.window-titlebar {
    background: linear-gradient(to bottom, #0b4ea2 0%, #08376f 100%);
    color: #ffffff;
    padding: 8px 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.window-toolbar {
    padding: 8px 10px;
    background: #d7d7d7;
    border-top: 1px solid #ffffff;
    border-bottom: 1px solid #9c9c9c;
}

.window-content {
    padding: 12px;
}

.classic-logo {
    width: 56px;
    height: 56px;
    line-height: 56px;
    text-align: center;
    margin: 4px auto 10px auto;
    font-weight: bold;
    font-size: 22px;
    color: #ffffff;
    background: #0b4ea2;
    border: 2px solid #4f4f4f;
    box-shadow: 1px 1px 0 #ffffff inset, -1px -1px 0 #08376f inset;
}

h1 {
    margin: 0 0 6px 0;
    font-size: 24px;
    text-align: center;
}

.subtitle {
    text-align: center;
    color: #333333;
    margin-bottom: 14px;
}

.box {
    border: 1px solid #808080;
    background: #f8f8f8;
    margin-bottom: 14px;
}

.box-title {
    padding: 6px 8px;
    font-weight: bold;
    background: #dcdcdc;
    border-bottom: 1px solid #a0a0a0;
}

.classic-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.form {
    padding: 10px;
}

.form label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
}

.form p {
    margin: 0 0 10px 0;
}

input[type="text"],
input[type="password"],
input[type="file"],
textarea {
    width: 100%;
    padding: 6px 7px;
    border: 1px solid #7f9db9;
    background: #ffffff;
    color: #111111;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 13px;
    margin-top: 4px;
}

textarea {
    min-height: 130px;
    resize: vertical;
}

button,
.button-link {
    display: inline-block;
    padding: 5px 10px;
    border: 1px solid #6f6f6f;
    background: #e1e1e1;
    color: #000000;
    font-family: Tahoma, Verdana, Arial, sans-serif;
    font-size: 12px;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 1px 1px 0 #ffffff inset;
}

button:hover,
.button-link:hover {
    background: #d5d5d5;
    text-decoration: none;
}

button:active,
.button-link:active {
    box-shadow: none;
    transform: translate(1px, 1px);
}

.danger {
    color: #8c0000;
}

.logout {
    color: #ffffff;
    font-weight: bold;
}

.pathbar {
    padding: 8px 10px;
}

.pathbar span {
    margin: 0 6px;
    color: #666666;
}

.alert {
    padding: 8px 10px;
    border: 1px solid;
    margin-bottom: 10px;
}

.alert-success {
    background: #e6f2dd;
    border-color: #7da05d;
    color: #264b13;
}

.alert-error {
    background: #f8dddd;
    border-color: #b97070;
    color: #7b1515;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

th,
td {
    border: 1px solid #b6b6b6;
    padding: 7px 8px;
    text-align: left;
    vertical-align: top;
}

th {
    background: #dcdcdc;
    font-weight: bold;
}

.inline-form {
    display: inline;
    margin-left: 6px;
}

.empty {
    text-align: center;
    padding: 20px;
    color: #444444;
}

.hash-box {
    margin-top: 14px;
    padding: 10px;
    border: 1px solid #9c9c9c;
    background: #fbfbfb;
}

.login-actions {
    margin-top: 10px;
}

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

    .shell {
        padding: 8px;
    }

    .window,
    .login-window {
        width: calc(100% - 8px);
        margin: 8px auto;
    }

    h1 {
        font-size: 21px;
    }
}
