* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Tahoma, Arial, Helvetica, sans-serif;
    font-size: 14px;
    background: #f1f1f1;
    color: #222;
}

a {
    color: #075aa6;
}

.cabinet-shell {
    max-width: 1280px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
}

.cabinet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 24px;
    border-bottom: 1px solid #ccc;
    background: #fafafa;
}

.cabinet-brand {
    font-size: 22px;
    font-weight: bold;
}

.cabinet-subtitle {
    margin-top: 3px;
    color: #666;
}

.cabinet-user {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.cabinet-main {
    padding: 22px 24px 40px 24px;
}

h1, h2, h3 {
    margin-top: 0;
}

h2 {
    margin-top: 28px;
    margin-bottom: 10px;
}

.panel {
    padding: 14px 16px;
    margin-bottom: 16px;
    border: 1px solid #bbb;
    background: #fafafa;
}

.flash {
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #99b08d;
    background: #f3fff0;
    font-weight: bold;
}

.error {
    padding: 10px 12px;
    margin-bottom: 16px;
    border: 1px solid #c88181;
    background: #fff1f1;
    color: #8e0000;
}

.muted {
    color: #777;
}

.good {
    color: #216b21;
    font-weight: bold;
}

.bad {
    color: #a00000;
    font-weight: bold;
}

.warning {
    color: #8a5b00;
    font-weight: bold;
}

.summary {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 12px 0 18px 0;
}

.summary-card {
    min-width: 170px;
    padding: 12px 14px;
    border: 1px solid #bbb;
    background: #fff;
}

.summary-label {
    color: #666;
    margin-bottom: 5px;
}

.summary-value {
    font-size: 18px;
    font-weight: bold;
}

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

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

th {
    padding: 7px;
    border: 1px solid #777;
    background: #f1f1f1;
    text-align: left;
    white-space: nowrap;
}

td {
    padding: 7px;
    border: 1px solid #aaa;
    vertical-align: top;
}

.number {
    text-align: right;
    white-space: nowrap;
}

input[type="text"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="file"],
select,
textarea {
    padding: 7px;
    border: 1px solid #999;
    font: inherit;
    max-width: 100%;
}

textarea {
    min-height: 70px;
}

button,
input[type="submit"] {
    padding: 7px 13px;
    font: inherit;
    cursor: pointer;
}

.form-row {
    margin-bottom: 12px;
}

.form-row label.main-label {
    display: inline-block;
    width: 190px;
    vertical-align: top;
    padding-top: 7px;
}

.login-box {
    max-width: 440px;
    margin: 70px auto;
    padding: 24px;
    border: 1px solid #bbb;
    background: #fff;
}

.login-box h1 {
    margin-bottom: 20px;
}

.login-box .form-row label {
    display: block;
    margin-bottom: 5px;
}

.login-box input[type="text"],
.login-box input[type="password"] {
    width: 100%;
}

.receipt-status-pending {
    color: #8a5b00;
    font-weight: bold;
}

.receipt-status-approved {
    color: #216b21;
    font-weight: bold;
}

.receipt-status-rejected {
    color: #a00000;
    font-weight: bold;
}

.study-item {
    margin-bottom: 6px;
}

@media (max-width: 700px) {
    .cabinet-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .cabinet-main {
        padding-left: 12px;
        padding-right: 12px;
    }

    .form-row label.main-label {
        display: block;
        width: auto;
        padding-bottom: 4px;
    }
}
