/* modern-style.css */
body {
    font-family: 'Segoe UI', sans-serif;
    background: #f5f5f5;
    margin: 0;
    padding: 10px;
}

h1, h2, h3 {
    text-align: center;
    color: #333;
    margin-top: 20px;
}

.list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 600px;
    margin: auto;
    margin-top: 20px;
}

.list-item {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    padding: 16px;
    transition: transform 0.2s ease;
}

.list-item:hover {
    transform: translateY(-2px);
}

.product-name {
    font-weight: bold;
    color: #2c3e50;
    font-size: 1.1em;
    margin-bottom: 6px;
}

.product-detail {
    color: #555;
    font-size: 0.95em;
}

.back {
    text-align: center;
    margin-top: 30px;
}

.button-link {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.button-link:hover {
    background-color: #2980b9;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}


.invoice-card {
    background: #fff;
    margin: 10px auto;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    max-width: 700px;
}

.invoice-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    font-size: 0.95em;
    margin-bottom: 10px;
    color: #333;
}

.product-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.product-item {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #eee;
    font-size: 0.92em;
}

.product-item:last-child {
    border-bottom: none;
}

.prod-name {
    flex: 2;
    font-weight: bold;
    color: #222;
}

.prod-unit, .prod-price, .prod-total {
    flex: 1;
    text-align: right;
    color: #444;
}

.pagination {
    text-align: center;
    margin-top: 20px;
}

.pagination a {
    display: inline-block;
    margin: 0 4px;
    padding: 6px 12px;
    border-radius: 6px;
    background: #eee;
    text-decoration: none;
    color: #333;
    transition: 0.2s;
}

.pagination a.active {
    background-color: #3498db;
    color: white;
    font-weight: bold;
}

.pagination a:hover {
    background-color: #2980b9;
    color: white;
}

.summary {
    max-width: 600px;
    margin: 20px auto;
    background: #e8f0fe;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 1em;
    text-align: center;
    color: #333;
}

.summary p {
    margin: 6px 0;
}

.filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.filter-form label {
    font-weight: bold;
}


.filter-form input,
.filter-form select,
.filter-form button {
    padding: 8px 10px;
    margin: 4px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 1em;
	
}

/* Kad Keuntungan */
.card {
    max-width: 500px;
    margin: 20px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    text-align: center;
}

.value {
    font-size: 1.1em;
    margin: 10px 0;
}

.profit {
    color: green;
}

.loss {
    color: red;
}

/* Susun Form */
.filter-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
    padding: 0 10px;
}

.filter-form.column {
    flex-direction: column;
    align-items: center;
}

.filter-form form {
    background: #f9f9f9;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0,0,0,0.05);
    margin-bottom: 10px;
}

.filter-form label {
    margin-right: 6px;
    font-weight: bold;
}


.date-input {
  width: 100%;
  max-width: 180px;
  font-size: 14px;
  padding: 4px 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;       /* Auto turun baris jika sempit */
  gap: 1px;               /* Jarak antara elemen */
  align-items: center;
}

.filter-bar select,
.filter-bar input,
.filter-bar button {
  padding: 6px 10px;
  font-size: 14px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.filter-bar button {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}
/* Tambahan untuk form-group */
.form-group {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 150px;
}

/* Centered */
.center {
  text-align: center;
  margin-top: 30px;
}

/* Link Button Gaya */
.button-link {
  display: inline-block;
  padding: 10px 16px;
  background-color: #444;
  color: white;
  border-radius: 6px;
  text-decoration: none;
  transition: background-color 0.2s;
}

.button-link:hover {
  background-color: #666;
}

/* Responsive Text/Container */
@media (max-width: 600px) {
    body {
        padding: 8px;
    }

    .list-item {
        padding: 12px;
    }

    .product-name {
        font-size: 1em;
    }

    .product-detail {
        font-size: 0.9em;
    }
}
