body {
    font-family: Arial, sans-serif;
    font-size: 15px;
    margin: 0;
    background: linear-gradient(135deg, #1f4b99 0%, #5a7bd8 60%, #f7f7f9 100%);
    color: #222;
    min-height: 100vh;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: #1f4b99;
    color: #fff;
}
.topbar .brand {
    font-weight: bold;
}
.topbar a {
    color: #e9f0ff;
    margin-left: 12px;
    text-decoration: none;
}
.container {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
}
.card {
    background: #fff;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.auth-card {
    max-width: 420px;
    margin: 40px auto;
    padding: 26px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.15);
}
.brand-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}
.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: #1f4b99;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}
.brand-text .brand-name {
    font-weight: bold;
}
.brand-text .brand-desc {
    color: #666;
    font-size: 14px;
}
.auth-title {
    margin-top: 8px;
    margin-bottom: 6px;
}
.form-group {
    margin-bottom: 12px;
}
.form-group label {
    display: block;
    margin-bottom: 6px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.btn {
    display: inline-block;
    padding: 10px 14px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    background: #1f4b99;
    color: #fff;
    transition: transform 0.05s ease, box-shadow 0.1s ease;
}
.btn-secondary {
    background: #777;
}
.btn-ghost {
    background: #eef1f7;
    color: #1f4b99;
}
.btn-small {
    padding: 6px 8px;
    font-size: 12px;
}
.btn-block {
    width: 100%;
    text-align: center;
}
.btn:hover {
    box-shadow: 0 4px 10px rgba(31,75,153,0.25);
}
.btn:active {
    transform: translateY(1px);
}
.alert {
    padding: 10px 12px;
    border-radius: 4px;
    margin-bottom: 14px;
}
.alert-error {
    background: #ffe0e0;
    color: #a30000;
}
.alert-success {
    background: #e3f6e8;
    color: #236b32;
}
.card > .card {
    margin-top: 10px;
    border: 1px dashed #d6dcea;
    box-shadow: none;
}
.text-muted {
    color: #666;
    margin-top: -6px;
}
.password-toggle {
    display: flex;
    gap: 8px;
    align-items: center;
}
.password-toggle input {
    flex: 1;
}
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.flex-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 14px;
}
.card.nested {
    box-shadow: none;
    border: 1px dashed #d6dcea;
}
.tag-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tag-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f4fb;
    padding: 8px 10px;
    border-radius: 6px;
}
.inline-form {
    margin: 0;
    display: inline-block;
}
.inline-input {
    padding: 6px 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-right: 6px;
}
.edit-row {
    background: #f7f9ff;
}
.item-table td, .item-table th {
    vertical-align: middle;
}
.qty-badge {
    padding: 6px 10px;
    border-radius: 12px;
    font-weight: 700;
    display: inline-block;
}
.qty-ok {
    background: #e3f6e8;
    color: #236b32;
}
.qty-low {
    background: #fff4e5;
    color: #9a5a00;
}
.qty-out {
    background: #ffe0e0;
    color: #a30000;
}
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}
.modal-content {
    background: #fff;
    padding: 16px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    position: relative;
}
.close-modal {
    position: absolute;
    right: 12px;
    top: 8px;
    cursor: pointer;
    font-size: 20px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin: 14px 0;
}
.stat-card {
    background: #f6f8ff;
    border: 1px solid #d8e0ff;
    border-radius: 8px;
    padding: 14px;
}
.stat-card.warning {
    background: #fff4e5;
    border-color: #ffd8a8;
}
.stat-label {
    font-size: 14px;
    color: #555;
}
.stat-value {
    font-size: 22px;
    font-weight: 700;
    margin-top: 6px;
}
.simple-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.list-title {
    font-weight: 600;
}
.list-meta {
    color: #666;
    font-size: 13px;
}
.filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 10px;
}
.filter-form .form-group {
    min-width: 180px;
    margin-bottom: 0;
}
.tab-nav {
    display: inline-flex;
    gap: 8px;
    margin: 12px 0;
    flex-wrap: wrap;
    align-items: center;
    }
.tab-btn {
    border: 1px solid #d8e0ff;
    background: #f7f8ff;
    padding: 8px 12px;
    border-radius: 999px;
    cursor: pointer;
    color: #1f4b99;
}
.tab-btn.active {
    background: #1f4b99;
    color: #fff;
    border-color: #1f4b99;
}
.pagination-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}
.filter-input {
    width: 100%;
    padding: 8px;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}
.stock-info {
    display: flex;
    gap: 12px;
    margin-top: 6px;
    align-items: center;
    font-size: 14px;
}
.stock-status {
    padding: 4px 8px;
    border-radius: 12px;
    background: #eef1f7;
}
.stock-status.low {
    background: #fff4e5;
    color: #9a5a00;
}
.stock-status.out {
    background: #ffe0e0;
    color: #a30000;
}
.stock-status.ok {
    background: #e3f6e8;
    color: #236b32;
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
}
.table {
    width: 100%;
    border-collapse: collapse;
}
.table th, .table td {
    padding: 8px 10px;
    border-bottom: 1px solid #e5e7ef;
    text-align: left;
}
.table th {
    background: #f2f4fb;
    font-weight: 600;
}
.small {
    font-size: 12px;
}
.nav-tabs {
    margin-bottom: 16px;
}
.nav-tabs a {
    margin-right: 12px;
    text-decoration: none;
    color: #1f4b99;
}
.nav-tabs a.active {
    font-weight: bold;
}
.tab-pane {
    margin-bottom: 16px;
}
