* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: #f5f7fb;
    color: #1d2433;
    font-family: Arial, sans-serif;
}

.container {
    width: calc(100% - 32px);
    margin: 0 auto;
}

.topbar {
    background: #f9fafb;
    color: #1d2433;
    margin-bottom: 24px;
    border-bottom: 1px solid #e5e7eb;

}

.topbar-inner {
    min-height: 64px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand a,
.nav a {
    color: #1d2433;
    text-decoration: none;
    margin-right: 16px;
    font-weight: bold;
}

.nav a:hover {
    color: #1f6feb;
}

.card {
    background: #fff;
    border-radius: 14px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}

.inner-card {
    background: #f9fbff;
}

.narrow {
    max-width: 700px;
}

h1, h2 {
    margin-top: 0;
}

.form-grid {
    display: grid;
    gap: 14px;
}

label {
    display: block;
    font-weight: bold;
    margin-bottom: 6px;
}

input, textarea, select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccd5e0;
    border-radius: 8px;
    background: #fff;
}

button,
.button {
    display: inline-block;
    padding: 10px 14px;
    border: 0;
    border-radius: 8px;
    background: #1f6feb;
    color: white;
    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.button.secondary {
    background: #7a8797;
}

button.danger {
    background: #c0392b;
}

.small {
    padding: 7px 10px;
    font-size: 12px;
}

.alert {
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 16px;
}

.alert-success { background: #dff5e8; }
.alert-danger  { background: #f9dede; }
.alert-info    { background: #ddeefe; }

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.filters {
    display: flex;
    gap: 16px;
    align-items: end;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 280px));
    gap: 14px;
    margin-bottom: 20px;
}

.summary-box {
    background: #f3f7fd;
    border-radius: 10px;
    padding: 14px;
}

.summary-label {
    font-size: 13px;
    color: #5b6676;
}

.summary-value {
    font-size: 22px;
    font-weight: bold;
    margin-top: 6px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    border-bottom: 1px solid #e7edf4;
    padding: 10px;
    vertical-align: top;
    text-align: left;
}

.right {
    text-align: right;
}

.actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.actions.stacked {
    flex-direction: column;
    align-items: flex-start;
}

.inline-reset {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.autocomplete-wrap {
    position: relative;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccd5e0;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    z-index: 20;
    display: none;
    max-height: 220px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eef2f7;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item:hover {
    background: #f4f8ff;
}
.vma-box {
    padding: 12px 14px;
    background: #f7faff;
    border: 1px solid #dce7f5;
    border-radius: 10px;
}
.brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #fff;
    font-weight: bold;
}

.logo {
    height: 34px;
    width: auto;
    display: block;
}
.login-logo {
    text-align: center;
    margin-bottom: 20px;
}

.login-logo img {
    height: 60px;
}
.actions.stacked {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.inline-reset {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}