* {
    box-sizing: border-box;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

body {
    background-color: #f8f9fa;
    padding: 20px;
}

/* Form Login */
.login-wrapper {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 80px auto;
    max-width: 400px;
    padding: 30px;
}

/* Container Admin */
.admin-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
    margin: 0 auto;
    max-width: 950px;
    padding: 25px;
}

/* Navbar Tema Merah */
.navbar {
    align-items: center;
    background: #8b0000; /* Merah ABT Danie Group */
    border-radius: 6px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 12px 20px;
}

.navbar a {
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    margin-left: 15px;
    text-decoration: none;
}

.navbar a:hover {
    text-decoration: underline;
}

h2 {
    border-bottom: 2px solid #8b0000;
    color: #8b0000;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 8px;
}

.form-grid {
    display: grid;
    gap: 15px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    color: #333333;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 5px;
}

.form-group input, .form-group select {
    border: 1px solid #cccccc;
    border-radius: 4px;
    font-size: 13px;
    padding: 8px 10px;
}

/* Tabel Input dan Data */
table.input-table, table.data-table {
    border-collapse: collapse;
    margin-bottom: 15px;
    width: 100%;
}

table.input-table th, table.input-table td, 
table.data-table th, table.data-table td {
    border: 1px solid #dddddd;
    font-size: 12px;
    padding: 8px;
    text-align: left;
}

table.input-table th, table.data-table th {
    background: #8b0000;
    color: #ffffff;
}

table.input-table input {
    border: 1px solid #cccccc;
    border-radius: 3px;
    font-size: 12px;
    padding: 5px;
    width: 100%;
}

/* Tombol-tombol */
.btn {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    padding: 8px 15px;
}

.btn-add {
    background: #28a745;
    color: #ffffff;
    margin-bottom: 15px;
}

.btn-danger {
    background: #dc3545;
    color: #ffffff;
    padding: 4px 8px;
}

.btn-submit {
    background: #8b0000;
    color: #ffffff;
    font-size: 15px;
    margin-top: 10px;
    padding: 12px;
    width: 100%;
}

.btn-primary {
    background: #8b0000;
    border-radius: 4px;
    color: #ffffff;
    display: inline-block;
    padding: 6px 12px;
    text-decoration: none;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    font-size: 13px;
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 4px;
}

/* Tampilan Nota Cetak */
.invoice-card {
    background: #ffffff;
    border: 1px solid #dddddd;
    margin: 30px auto;
    max-width: 800px;
    padding: 30px;
}

.header {
    align-items: center;
    border-bottom: 2px solid #8b0000;
    display: flex;
    justify-content: space-between;
    padding-bottom: 15px;
}

.company-brand {
    align-items: center;
    display: flex;
    gap: 15px;
}

.logo {
    max-height: 65px;
    width: auto;
}

.company-details h1 {
    color: #8b0000;
    font-size: 18px;
    margin-bottom: 3px;
}

.company-details p {
    color: #555555;
    font-size: 11px;
    line-height: 1.3;
}

.title-section {
    text-align: right;
}

.title-section h2 {
    border: none;
    color: #333333;
    font-size: 15px;
    margin-bottom: 3px;
}

.meta-info {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

.meta-box {
    font-size: 13px;
    width: 48%;
}

.meta-box p {
    margin-bottom: 6px;
}

.meta-box strong {
    display: inline-block;
    width: 140px;
}

table.print-table {
    border-collapse: collapse;
    margin-top: 15px;
    width: 100%;
}

table.print-table, table.print-table th, table.print-table td {
    border: 1px solid #cccccc;
}

table.print-table th, table.print-table td {
    font-size: 12px;
    padding: 8px 10px;
    text-align: left;
}

table.print-table th {
    background-color: #8b0000;
    color: #ffffff;
}

.text-center { text-align: center; }
.text-right { text-align: right; }
.total-row { font-weight: bold; }

.terms {
    border: 1px dashed #aaaaaa;
    font-size: 11px;
    margin-top: 20px;
    padding: 10px;
}

.terms ol {
    margin-left: 15px;
}

.signatures {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    text-align: center;
}

.sig-box {
    font-size: 12px;
    width: 220px;
}

.sig-space {
    height: 60px;
}

/* Pengaturan Media Cetak */
@media print {
    .admin-container, .navbar, .btn-print-wrapper {
        display: none !important;
    }
    body {
        background: #ffffff;
        padding: 0;
    }
    .invoice-card {
        border: none;
        margin: 0;
        max-width: 100%;
        padding: 0;
    }
}