html, body {
    height: 100%;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f7fb;
}

.app-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background: linear-gradient(180deg, #0f172a, #1e3a8a);
    color: #fff;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.08);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 22px;
    font-weight: 700;
    padding: 0 24px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 20px;
}

    .sidebar-brand i {
        font-size: 24px;
    }

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 12px;
}

.menu-link {
    color: #e5e7eb;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    transition: 0.2s ease;
    font-size: 15px;
}

    .menu-link:hover {
        background-color: rgba(255,255,255,0.12);
        color: #fff;
    }

    .menu-link i {
        width: 20px;
        text-align: center;
    }

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    height: 75px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.page-title {
    font-weight: 700;
    color: #111827;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 8px 14px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    color: #374151;
}

    .user-box i {
        font-size: 18px;
    }

.content-wrapper {
    padding: 24px;
}

.dashboard-card {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.table-container {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.table thead th {
    background-color: #f8fafc;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.btn-primary {
    background-color: #2563eb;
    border-color: #2563eb;
    border-radius: 10px;
    padding: 8px 16px;
}

    .btn-primary:hover {
        background-color: #1d4ed8;
        border-color: #1d4ed8;
    }

@media (max-width: 991px) {
    .sidebar {
        width: 80px;
    }

    .sidebar-brand span,
    .menu-link span {
        display: none;
    }

    .sidebar-brand {
        justify-content: center;
    }

    .menu-link {
        justify-content: center;
    }
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 1px solid #dbe1ea;
    padding: 10px 12px;
    box-shadow: none;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #2563eb;
        box-shadow: 0 0 0 0.15rem rgba(37, 99, 235, 0.15);
    }

.btn-outline-primary {
    border-radius: 8px;
}

.card-form {
    background: #fff;
    border-radius: 18px;
    padding: 24px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
    border: 1px solid #eef2f7;
}

.form-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 6px;
}

@media print {
    .sidebar,
    .topbar,
    .btn,
    form,
    .topbar-right,
    .sidebar-menu,
    .no-print {
        display: none !important;
    }

    body,
    html {
        background: #ffffff !important;
    }

    .main-content {
        margin: 0 !important;
        width: 100% !important;
    }

    .content-wrapper {
        padding: 0 !important;
    }

    .dashboard-card,
    .table-container,
    .card-form {
        box-shadow: none !important;
        border: 1px solid #ccc !important;
        break-inside: avoid;
    }

    canvas {
        max-width: 100% !important;
        height: auto !important;
    }
}

.login-info-panel {
    max-width: 520px;
    padding: 30px;
}

.login-company-logo {
    max-width: 260px;
    width: 100%;
    height: auto;
    object-fit: contain;
}

.login-info-text {
    font-size: 1.05rem;
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.login-info-subtext {
    font-size: 0.95rem;
    color: #6c757d;
    line-height: 1.7;
}

@media (max-width: 768px) {
    .login-info-panel {
        margin-top: 30px;
        padding: 15px;
    }

    .login-company-logo {
        max-width: 180px;
    }
}